id
stringlengths
12
53
messages
listlengths
3
3
code_easy-setup_c8916d47
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/messages/pt.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/easy-setup.navigation.label-group\": \"Easy Setup\",\n \"admin/easy-setup.navigation.label-home\": \"Easy Setup\",\n \"admin/easy-setup.navigation.kws\": \"easy, setup, catalog, products\",\n \"admin/easy-setup.title\": \"Easy Setup\"\n}\n\n```" } ]
code_easy-setup_80858634
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/messages/en.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/easy-setup.navigation.label-group\": \"Easy Setup\",\n \"admin/easy-setup.navigation.label-home\": \"Easy Setup\",\n \"admin/easy-setup.navigation.kws\": \"easy, setup, catalog, products\",\n \"admin/easy-setup.title\": \"Easy Setup\"\n}\n\n```" } ]
code_easy-setup_6dc5b8b9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/messages/context.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/easy-setup.navigation.label-group\": \"admin/easy-setup.navigation.label-group\",\n \"admin/easy-setup.navigation.label-home\": \"admin/easy-setup.navigation.label-home\",\n \"admin/easy-setup.navigation.kws\": \"admin/easy-setup.navigation.kws\",\n \"admin/easy-setup.title\": \"admin/easy-setup.title\"\n}\n\n```" } ]
code_easy-setup_9215971c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/messages/es.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/easy-setup.navigation.label-group\": \"Easy Setup\",\n \"admin/easy-setup.navigation.label-home\": \"Easy Setup\",\n \"admin/easy-setup.navigation.kws\": \"easy, setup, catalog, products\",\n \"admin/easy-setup.title\": \"Easy Setup\"\n}\n\n```" } ]
code_easy-setup_6a834903
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/admin/navigation.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"section\": \"storeSetup\",\n \"titleId\": \"admin/easy-setup.navigation.label-group\",\n \"searchKeyWordsHelpers\": \"admin/easy-setup.navigation.kws\",\n \"path\": \"/admin/easy-setup\"\n}\n\n```" } ]
code_easy-setup_feca99cd
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/admin/routes.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin.app.easy-setup\": {\n \"component\": \"AdminHome\",\n \"path\": \"/admin/app/easy-setup\"\n }\n}\n\n```" } ]
code_easy-setup_4993ece9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/docs/README.md from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Easy Setup\n\nEasy Setup is an app to rapid seed and setup resources for a working VTEX development environment with Brands, Categories, Products, Skus (including price and inventory), Payments, Logistics and B2B Features.\n\n<!-- @import \"[TOC]\" {cmd=\"toc\" depthFrom=2 depthTo=2 orderedList=false} -->\n\n<!-- code_chunk_output -->\n\n- [:warning: Before Proceeding](#warning-before-proceeding)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Resources](#resources)\n- [Support](#support)\n\n<!-- /code_chunk_output -->\n\n---\n\n## :warning: Before Proceeding\n\n**HEADS UP!** WE STRONGLY ADVISE THAT YOU DO NOT RUN EASY SETUP ON A PRODUCTION ENVIRONMENT. IT WILL MAKE IRREVERSIBLE CHANGES AND MAY BREAK YOUR STORE.\n\n---\n\n## Installation\n\nInstall the app using Toolbelt:\n\n```sh\nvtex install beightoneagency.easy-setup\n```\n\nOr visit: `https://{{account}}.myvtex.com/admin/apps/beightoneagency.easy-setup/install` and follow the instructions.\n\n## Usage\n\nAfter installing the app follow the steps:\n\nGo to: **STORE SETUP** &rarr; **Easy Setup** (`https://{{account}}.myvtex.com/admin/easy-setup`), on the right sidebar, select the resources you want Easy Setup to seed/configure and click \"Start Easy Setup\"\n\n![Screen Shot 2021-02-25 at 09.42.26](/docs/assets/Screen%20Shot%202021-02-25%20at%2009.42.26.png)\n\nClick \"I Understand\" button in \"Are you sure you want proceed?\" dialog\n\n![Screen Shot 2021-02-25 at 09.44.10](/docs/assets/Screen%20Shot%202021-02-25%20at%2009.44.10.png)\n\nWait a few secods for the seed to complete.\n\n![Screen Shot 2021-02-25 at 09.44.40](/docs/assets/Screen%20Shot%202021-02-25%20at%2009.44.40.png)\n\n![Screen Shot 2021-02-25 at 09.45.09](/docs/assets/Screen%20Shot%202021-02-25%20at%2009.45.09.png)\n\nIf you get an error message for some of the resources, try again this time only selecting the troublesome resources.\n\nIf the error persists contact support.\n\n## Resources\n\n### Users\n\nThis resource creates some users with priceTables data.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nE-mail: john@email.com\nPriceTable: platinum\n\nE-mail: steven@email.com\nPriceTable: gold\n\nE-mail: chris@email.com\nPriceTable: silver\n```\n\n</details>\n\n### Brands\n\nThis resource creates one brand.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: Brand (9280)\n```\n\n</details>\n\n### Collection\n\nThis resource creates a collection with all products.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: All\nType: Inclusive\nBrandId: 9280 (Brand)\n```\n\n</details>\n\n### Categories\n\nThis resource creates seven categories.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: Apparel (9281)\nName: Food and beverage (9282)\nName: Sporting (9283)\nName: Agribusiness (9284)\nName: Home Appliance (9285)\nName: Computer & Software (9286)\nName: Power tools (9287)\n```\n\n</details>\n\n### Fields\n\nThis resource creates a group with two fields containing a variety of fieldvalues for two specifics categories.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nGroup: Specifications\n\nCategory: Apparel (9281)\nField: Clothes Size\nField Values: S, M, L and XL\n\nCategory: Sporting (9283)\nField: Shoes Size\nField Values: 8, 8.5, 9, 9.5 and 10\n```\n\n</details>\n\n### Products\n\nThis resource creates a sort of products, skus and set the specifications, images and attachments (customization and subscription).\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nCategory: Apparel (9281)\nProducts:\n\n Name: adidas Men's Performance Polo - Blast Blue (880001)\n Skus:\n Name: S (880010)\n Name: M (880011)\n Name: L (880012)\n Name: XL (880013)\n\n Name: adidas Men's Performance Polo - Green Night (880002)\n Skus: [{\n Name: S (880020)\n Name: M (880021)\n Name: L (880022)\n Name: XL (880023)\n\n Name: adidas Women's Microdot Polo - Night Indigo (880003)\n Skus:\n Name: S (880030)\n Name: M (880031)\n Name: L (880032)\n Name: XL (880033)\n\n Name: adidas Women's Microdot Polo - True Pink (880004)\n Skus:\n Name: S (880040)\n Name: M (880041)\n Name: L (880042)\n Name: XL (880043)\n\nCategory: Food and beverage (9282)\nProducts:\n\n Name: Yellow Onions (10 lbs.) (880026)\n Sku: _same name_ (880260)\n\n Name: Cauliflower Fresh (880027)\n Sku: _same name_ (880270)\n\n Name: Asparagus Green Conventional (880028)\n Sku: _same name_ (880280)\n\n Name: Fresh Hass Avocadoes (880029)\n Sku: _same name_ (880290)\n\n Name: Fresh Coconuts (880030)\n Sku: _same name_ (880300)\n\n Name: Whole Watermelon Mini Fresh (880031)\n Sku: _same name_ (880310)\n\n Name: Navel Oranges Grown Large Fresh (880032)\n Sku: _same name_ (880320)\n\n Name: Navel Oranges Grown Large Fresh, Pack of 10 (880039)\n SkuKit: _same name_ (880390)\n SkuComponents: 10un of Navel Oranges Grown Large Fresh\n\nCategory: Sporting (9283)\nProducts:\n\n Name: Nike Men's Roshe G Spikeless Golf Shoes (880005)\n Skus:\n Name: 8 (880050)\n Name: 8.5 (880051)\n Name: 9 (880052)\n Name: 9.5 (880053)\n Name: 10 (880054)\n\n Name: Nike Men's Air Max 1 G Spikeless Golf Shoes (880006)\n Skus:\n Name: 8 (880060)\n Name: 8.5 (880061)\n Name: 9 (880062)\n Name: 9.5 (880063)\n Name: 10 (880064)\n\n Name: Nike Air Max 270 G Spikeless Golf Shoes (880007)\n Skus:\n Name: 8 (880070)\n Name: 8.5 (880071)\n Name: 9 (880072)\n Name: 9.5 (880073)\n Name: 10 (880074)\n\n Name: Skechers Women's Go Golf Drive 4 Dogs At Play Spikeless Golf Shoes (880008)\n Skus:\n Name: 8 (880080)\n Name: 8.5 (880081)\n Name: 9 (880082)\n Name: 9.5 (880083)\n Name: 10 (880084)\n\nCategory: Agribusiness (9284)\nProducts:\n\n Name: 2020 APACHE AS1040 (880033)\n Sku: _same name_ (880330)\n\n Name: 2 POST CANOPY (880034)\n Sku: _same name_ (880340)\n\n Name: 2020 AMACSA PH390 (880035)\n Sku: _same name_ (880350)\n\n Name: Faceplate Combine Snout (880036)\n Sku: _same name_ (880360)\n\n Name: 2016 MK MARTIN ENT MKGB788 Blades/Box Scraper (880037)\n Sku: _same name_ (880370)\n\n Name: 1998 JOHN DEERE 8400T (880038)\n Sku: _same name_ (880380)\n\nCategory: Home Appliance (9285)\nProducts:\n\n Name: Weber 45010001 Spirit II E-310 3-Burner Liquid Propane Grill, Black (880021)\n Sku: _same name_ (880210)\n\n Name: iRobot Roomba 675 Robot Vacuum-Wi-Fi Connectivity, Works with Alexa, Good for Pet Hair, Carpets, Hard Floors, Self-Charging (880022)\n Sku: _same name_ (880220)\n\n Name: ALROCKET Dehumidifier 35oz(1000ml) Small Dehumidifier for 2100 Cubic Feet (260 sq ft) Portable and Compact Ultra Quiet (880023)\n Sku: _same name_ (880230)\n\n Name: McCulloch MC1375 Canister Steam Cleaner with 20 Accessories (880024)\n Sku: _same name_ (880240)\n\n Name: Cuisinart GR-4N 5-in-1 Griddler (880025)\n Sku: _same name_ (880250)\n\nCategory: Computer & Software (9286)\nProducts:\n\n Name: Acer Aspire Z24-890-UA91 AIO Desktop - Windows 10 (880015)\n Sku: _same name_ (880150)\n\n Name: Lenovo IdeaCentre AIO 3 - Windows 10 (880016)\n Sku: _same name_ (880160)\n\n Name: Acer Aspire TC-885-UA92 Desktop - Windows 10 (880017)\n Sku: _same name_ (880170)\n\n Name: CYBERPOWERPC Gamer Xtreme VR Gaming PC - Windows 10 (880018)\n Sku: _same name_ (880180)\n\n Name: Acer Aspire 5 Slim Laptop - Windows 10 (880019)\n Sku: _same name_ (880190)\n\n Name: Jumper EZbook X3 Windows 10 Laptop (880020)\n Sku: _same name_ (880200)\n\n Name: Acer Aspire z24 890 + Acer Aspire ATC 885 (880040)\n SkuKit: _same name_ (880400)\n SkuComponents: 1un of Acer Aspire Z24-890-UA91 AIO Desktop - Windows 10 (880015)\n 1un of Acer Aspire TC-885-UA92 Desktop - Windows 10 (880017)\n\nCategory: Power tools (9287)\nProducts:\n\n Name: BLACK+DECKER 20V MAX Drill & Home Tool Kit, 68 Piece (LDX120PK),Black/Orange (880009)\n Sku: _same name_ (880090)\n\n Name: BLACK+DECKER 20V MAX Cordless Drill / Driver with 30-Piece Accessories (LD120VA) (880010)\n Sku: _same name_ (880100)\n\n Name: BLACK+DECKER 20V Max Cordless Chainsaw, 10-Inch, Tool Only (LCS1020B) (880011)\n Sku: _same name_ (880110)\n\n Name: BLACK+DECKER 20V MAX Cordless Drill Combo Kit, 2-Tool (BD2KITCDDI),Black/Orange Impact Combo Kit (880012)\n Sku: _same name_ (880120)\n\n Name: BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw, Tool Only (BDCCS20B) (880013)\n Sku: _same name_ (880130)\n\n Name: BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw (BDCCS20C) (880014)\n Sku: _same name_ (880140)\n```\n\n</details>\n\n### Attachments\n\n#### Customization\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: T-Shirt Customization (T-Shirt Name - 15 characters)\nProducts: adidas Men's Performance Polo - Blast Blue (880001)\n```\n\n</details>\n\n#### Subscription\n\nIt is mandatory to [follow these additional steps](https://help.vtex.com/tutorial/como-configurar-assinatura-v2--1FA9dfE7vJqxBna9Nft5Sj#2-how-to-install-the-subscription-app) to enable subscription.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: Subscription\nProducts: All from category Food and beverage (9282)\n```\n\n</details>\n\n### Logistics\n\nThis resource update the logistics module using the preset dock, warehouse and carrier.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nFreight Values:\n Country: BRA\n ZipCodeStart: 0\n ZipCodeEnd: 9999999\n\n Country: USA\n ZipCodeStart: 0\n ZipCodeEnd: 99999999\n\nDocks:\n Name: Doca Principal (1)\n Country: BRA\n\n Name: Main Dock (2)\n Country: USA\n\nWarehouse:\n Name: Estoque (1_1)\n Docks:\n Doca Principal (1)\n Main Dock (2)\n```\n\n</details>\n\n### Pricing\n\nThis resource set random prices for some products, custom prices for a few products and sets the price table.\n\n#### Most Products\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nListPrice: 30.00\nBasePrice: between 50.00 and 2000.00\nMarkup: 0%\n```\n\n</details>\n\n#### Quantity Prices\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nProduct: BLACK+DECKER 20V MAX Cordless Drill / Driver with 30-Piece Accessories (LD120VA) (880100)\nListPrice: null\nBasePrice: 100.00\nFixedPrices:\nMinimum Quantity: 1\nValue: 100.00\n\n Minimum Quantity: 10\n Value: 90.00\n\n Minimum Quantity: 50\n Value: 80.00\n\n Minimum Quantity: 100\n Value: 70.00\n```\n\n</details>\n\n#### Price Tables\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: silver\nPercentual Modifier: -5%\n\nName: gold\nPercentual Modifier: -10%\n\nName: platinum\nPercentual Modifier: -15%\n```\n\n</details>\n\n### Benefits\n\nThis resource sets a Progressive Discount benefit.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: Progressive Discount\nConditions:\nStart: 2010-01-01\nEnd: 2070-01-01\nCollection: All\nBenefit:\n Quantity: 5\n Discount: 5%\n\n Quantity: 10\n Discount: 15%\n\n Quantity: 15\n Discount: 25%\n\n Quantity: 20\n Discount: 35%\n```\n\n</details>\n\n### Taxes\n\nThis resource sets VAT and ICMS taxes.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nName: VAT\nCondition:\nStart: 2010-01-01\nEnd: 2070-01-01\nCategory: Agribusiness (9284)\nTax: 5%\n\nName: ICMS\nCondition:\nStart: 2010-01-01\nEnd: 2070-01-01\nCategory: Agribusiness (9284)\nTax: 12%\n```\n\n</details>\n\n### Payment\n\nThis resource set 3 affiliations (Promissory, Test and CreditControlV2), the custom payment Promissories and the payment condition using them, the VISA credit card condition and the Customer Credit condition.\n\n<details>\n <summary>View Sample Data</summary>\n\n```\nAffiliation: Promissory\nCustom Payment: Promissory (201)\nPayment Condition: Promissory\n\nAffiliation: Test\nPayment Condition: VISA (credit card)\n\nAffiliation: CreditControlV2\nPayment Conditions:\n15 days (0% interest)\n30 days (0% interest)\n15 and 30 days (1% interest)\n15, 30 and 45 days (1.5% interest)\n```\n\n</details>\n\n```" } ]
code_easy-setup_60106f67
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/service.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"memory\": 1024,\n \"ttl\": 10,\n \"timeout\": 999999,\n \"minReplicas\": 2,\n \"maxReplicas\": 4,\n \"workers\": 1,\n \"routes\": {\n \"populate\": {\n \"path\": \"/_v/api/easy-setup/populate\",\n \"public\": true\n },\n \"custom\": {\n \"path\": \"/_v/api/easy-setup/custom\",\n \"public\": true\n }\n }\n}\n\n```" } ]
code_easy-setup_0dedebcc
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/package.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"b8one.easy-setup\",\n \"version\": \"0.0.10\",\n \"private\": true,\n \"dependencies\": {\n \"axios\": \"^0.18.0\",\n \"co-body\": \"^6.0.0\",\n \"ramda\": \"^0.25.0\"\n },\n \"devDependencies\": {\n \"@types/axios\": \"^0.14.0\",\n \"@types/co-body\": \"^0.0.3\",\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.0.0\",\n \"@types/ramda\": \"types/npm-ramda#dist\",\n \"@vtex/api\": \"6.45.4\",\n \"@vtex/test-tools\": \"^1.0.0\",\n \"tslint\": \"^6.1.3\",\n \"tslint-config-prettier\": \"^1.18.0\",\n \"tslint-config-vtex\": \"^2.1.0\",\n \"typescript\": \"3.9.7\"\n },\n \"scripts\": {\n \"lint\": \"tsc --noEmit --pretty\"\n }\n}\n\n```" } ]
code_easy-setup_7dd7652b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/tslint.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"extends\": [\"tslint-config-vtex\", \"tslint-config-prettier\"],\n \"rules\": {\n \"object-literal-sort-keys\": false\n }\n}\n\n```" } ]
code_easy-setup_53f2a9ed
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { ClientsConfig, RecorderState, ServiceContext } from '@vtex/api'\nimport { LRUCache, method, Service } from '@vtex/api'\n\nimport { Clients } from './clients'\nimport {\n BenefitsMiddleware,\n BrandsMiddleware,\n CategoriesMiddleware,\n CollectionsMiddleware,\n FieldsMiddleware,\n LogisticsMiddleware,\n OrganizationsMiddleware,\n PaymentsMiddleware,\n PopulateMiddleware,\n PricingMiddleware,\n ProductsMiddleware,\n TaxesMiddleware,\n UsersMiddleware,\n CheckoutMiddleware,\n ResellerMiddleware,\n} from './middlewares'\n\nexport const TIMEOUT_MS = 9999999\n\n// Create a LRU memory cache for the Status client.\n// The @vtex/api HttpClient respects Cache-Control headers and uses the provided cache.\nconst memoryCache = new LRUCache<string, any>({ max: 5000 })\n\nmetrics.trackCache('status', memoryCache)\n\n// This is the configuration for clients available in `ctx.clients`.\nconst clients: ClientsConfig<Clients> = {\n // We pass our custom implementation of the clients bag, containing the Status client.\n implementation: Clients,\n options: {\n // All IO Clients will be initialized with these options, unless otherwise specified.\n default: {\n retries: 10,\n timeout: TIMEOUT_MS,\n },\n // This key will be merged with the default options and add this cache to our Status client.\n status: {\n memoryCache,\n },\n },\n}\n\ndeclare global {\n // We declare a global Context type just to avoid re-writing ServiceContext<Clients, State> in every handler and resolver\n type PopulateContext = ServiceContext<Clients, PopulateState>\n\n // The shape of our State object found in `ctx.state`. This is used as state bag to communicate between middlewares.\n type PopulateResourceType =\n | 'benefits'\n | 'brands'\n | 'categories'\n | 'collections'\n | 'empty'\n | 'fields'\n | 'logistics'\n | 'payments'\n | 'products'\n | 'prices'\n | 'taxes'\n | 'users'\n | 'subscription'\n | 'organizations'\n | 'checkout'\n | 'reseller'\n\n interface PopulateState extends RecorderState {\n resources: PopulateResourceType[]\n }\n}\n\n// Export a service that defines route handlers and client options.\nexport default new Service({\n clients,\n routes: {\n populate: method({\n POST: [\n PopulateMiddleware,\n UsersMiddleware,\n BrandsMiddleware,\n CategoriesMiddleware,\n CollectionsMiddleware,\n FieldsMiddleware,\n ProductsMiddleware,\n PricingMiddleware,\n PaymentsMiddleware,\n BenefitsMiddleware,\n TaxesMiddleware,\n LogisticsMiddleware,\n CheckoutMiddleware,\n OrganizationsMiddleware,\n ResellerMiddleware,\n ],\n }),\n },\n})\n\n```" } ]
code_easy-setup_d522ac5c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/react/AdminHome.tsx from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\n/* eslint-disable no-console */\nimport type { FunctionComponent } from 'react'\nimport React, { useCallback, useState } from 'react'\nimport { FormattedMessage } from 'react-intl'\nimport {\n Layout,\n PageHeader,\n Button,\n PageBlock,\n Progress,\n ModalDialog,\n Alert,\n IconFailure,\n IconSuccess,\n Tooltip,\n EmptyState,\n CheckboxGroup,\n ToastProvider,\n withToast,\n} from 'vtex.styleguide'\n\nimport type { PopulateResponse } from './typings/populate'\n\nimport './styles.global.css'\n\ninterface AdminHomeState {\n setupStarted: boolean\n isModalOpen: boolean\n setupSuccess: boolean | null\n error: any\n result: PopulateResponse | null\n checkedMap: CheckboxGroup\n}\n\ninterface CheckboxGroup {\n [key: string]: CheckboxGroupItem\n}\n\ninterface CheckboxGroupItem {\n label: string\n checked: boolean\n}\n\ninterface AdminHomeProps {\n showToast: any\n}\n\nconst AdminHome: FunctionComponent<AdminHomeProps> = ({ showToast }) => {\n const initialCheckedMap: CheckboxGroup = {\n benefits: { label: 'Benefits', checked: true },\n brands: { label: 'Brands', checked: true },\n categories: { label: 'Categories', checked: true },\n checkout: { label: 'Checkout', checked: true },\n collections: { label: 'Collections', checked: true },\n fields: { label: 'Fields', checked: true },\n logistics: { label: 'Logistics', checked: true },\n payments: { label: 'Payments', checked: true },\n prices: { label: 'Prices', checked: true },\n products: { label: 'Products', checked: true },\n taxes: { label: 'Taxes', checked: true },\n users: { label: 'Users', checked: true },\n organizations: { label: 'Organizations', checked: true },\n reseller: { label: 'Reseller', checked: true },\n }\n\n const initialState: AdminHomeState = {\n setupStarted: false,\n isModalOpen: false,\n setupSuccess: null,\n error: null,\n result: null,\n checkedMap: initialCheckedMap,\n }\n\n const [state, setState] = useState<AdminHomeState>(initialState)\n\n const {\n setupStarted,\n isModalOpen,\n setupSuccess,\n error,\n result,\n checkedMap,\n } = state\n\n const title = <FormattedMessage id=\"admin/easy-setup.title\" />\n\n const pageHeader = <PageHeader title={title} />\n\n const layoutProps = {\n pageHeader,\n }\n\n const resources = Object.keys(checkedMap)\n .map(key => {\n const { checked } = checkedMap[key]\n\n if (checked) return key\n\n return null\n })\n .filter(item => item)\n\n const handleStartSetupButtonOnClick = () => {\n if (!resources.length) {\n showToast({ message: 'Please choose at least one resource.' })\n\n return\n }\n\n setState({ ...state, isModalOpen: true })\n }\n\n const handleConfirmation = () => {\n setState({ ...state, isModalOpen: false, setupStarted: true })\n\n const myHeaders = new Headers()\n\n myHeaders.append('Accept', 'application/json')\n myHeaders.append('Content-Type', 'application/json')\n\n fetch('/_v/api/easy-setup/populate', {\n method: 'POST',\n headers: myHeaders,\n body: JSON.stringify({\n resources,\n }),\n })\n .then(response => {\n if (!response.ok) {\n // eslint-disable-next-line @typescript-eslint/no-throw-literal\n throw response\n }\n\n return response.json()\n })\n .then((JSONResult: PopulateResponse) => {\n console.log({ JSONResult })\n\n setState({\n ...state,\n isModalOpen: false,\n setupSuccess: true,\n setupStarted: false,\n result: JSONResult,\n })\n })\n .catch(err => {\n if (err.message) {\n setState({\n ...state,\n isModalOpen: false,\n setupSuccess: false,\n setupStarted: false,\n error: err.message,\n })\n } else {\n err.text().then((errorText: any) => {\n setState({\n ...state,\n isModalOpen: false,\n setupSuccess: false,\n setupStarted: false,\n error: errorText,\n })\n console.log('error', errorText)\n })\n }\n })\n }\n\n const handleCancelation = () => {\n setState({ ...state, isModalOpen: false })\n }\n\n const handleOnCloseAlert = () => {\n setState({ ...initialState })\n }\n\n const resultHasErrors = useCallback(() => {\n if (!result) return false\n\n return !!Object.keys(result)\n .map(item => {\n const { error: errorMsg } = result[item]\n\n if (errorMsg && errorMsg !== 'resource not set') return true\n\n return null\n })\n .filter(item => item).length\n }, [result])\n\n console.log(resultHasErrors())\n\n return (\n <>\n <Layout {...layoutProps}>\n <PageBlock\n variation={!setupStarted && setupSuccess === null ? 'aside' : 'full'}\n >\n {!setupStarted && setupSuccess === null ? (\n <EmptyState>\n <p className=\"lh-copy\">\n Please click the button bellow to start the setup process.\n </p>\n <Button onClick={handleStartSetupButtonOnClick}>\n Start Easy Setup\n </Button>\n </EmptyState>\n ) : null}\n {!setupStarted && setupSuccess === null ? (\n <CheckboxGroup\n name=\"resources\"\n label=\"All Resources\"\n id=\"resources\"\n value=\"resources\"\n checkedMap={checkedMap}\n onGroupChange={newCheckedMap => {\n console.log({ newCheckedMap })\n setState({ ...state, checkedMap: newCheckedMap })\n }}\n />\n ) : null}\n {setupStarted && setupSuccess === null ? (\n <Progress type=\"steps\" steps={['inProgress']} />\n ) : null}\n {!setupStarted && setupSuccess === true ? (\n <>\n {resultHasErrors() ? (\n <Alert type=\"warning\" onClose={handleOnCloseAlert}>\n Ops! Some items did not complete successfully.\n </Alert>\n ) : (\n <Alert type=\"success\" onClose={handleOnCloseAlert}>\n Yay! Setup has run successfully!\n </Alert>\n )}\n <p className=\"lh-title t-action\">Summary:</p>\n {result\n ? Object.keys(result).map((item, key) => {\n const { error: errorMsg } = result[item]\n\n if (errorMsg === 'resource not set') return null\n\n return (\n <div key={key} className=\"t-small lh-copy mb3\">\n {item}:{' '}\n {errorMsg ? (\n <>\n <div className=\"dib v-mid\">\n <Tooltip label={errorMsg}>\n <IconFailure size={16} color=\"#ff4c4c\" />\n </Tooltip>\n </div>\n <div className=\"br2 bg-muted-5 pa5\">\n <code>{`${errorMsg}`}</code>\n </div>\n </>\n ) : (\n <div className=\"dib v-mid\">\n <IconSuccess size={16} color=\"#79b03a\" />\n </div>\n )}\n </div>\n )\n })\n : null}\n </>\n ) : null}\n {!setupStarted && setupSuccess === false ? (\n <>\n <Alert type=\"error\" onClose={handleOnCloseAlert}>\n Oops! An error has occurred during the setup process.\n </Alert>\n <p className=\"lh-title t-action\">Error:</p>\n <div className=\"br2 bg-muted-5 pa5\">\n <code>{`${error}`}</code>\n </div>\n </>\n ) : null}\n </PageBlock>\n </Layout>\n <ModalDialog\n centered\n confirmation={{\n onClick: handleConfirmation,\n label: 'I understand',\n isDangerous: true,\n }}\n cancelation={{\n onClick: handleCancelation,\n label: 'Cancel',\n }}\n isOpen={isModalOpen}\n onClose={handleCancelation}\n >\n <p className=\"f3 f3-ns fw3 gray\">Are you sure you want proceed?</p>\n <p>\n This action is irreversible. It will remove any customizations\n previously made and can result in to an error if ran consecutively.\n </p>\n </ModalDialog>\n </>\n )\n}\n\nconst AdminWithToast = withToast(AdminHome)\n\n// eslint-disable-next-line react/display-name\nexport default function () {\n return (\n <ToastProvider positioning=\"window\">\n <AdminWithToast />\n </ToastProvider>\n )\n}\n\n```" } ]
code_easy-setup_0d5c0e89
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/react/package.json from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"scripts\": {\n \"test\": \"vtex-test-tools test\",\n \"lint\": \"tsc --noEmit && eslint --ext ts,tsx .\"\n },\n \"devDependencies\": {\n \"@types/jest\": \"^25.1.4\",\n \"@types/node\": \"^11.12.1\",\n \"@types/react\": \"^16.8.10\",\n \"@types/react-intl\": \"^2.3.17\",\n \"@vtex/test-tools\": \"^3.4.1\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"apollo-client\": \"^2.4.7\",\n \"eslint-config-vtex-react\": \"^6.9.3\",\n \"graphql\": \"^14.6.0\",\n \"prop-types\": \"^15.7.2\",\n \"react\": \"^16.8.6\",\n \"react-dom\": \"^16.8.6\",\n \"react-intl\": \"^5.10.6\",\n \"tslint-eslint-rules\": \"^5.4.0\",\n \"typescript\": \"3.9.7\"\n },\n \"version\": \"0.0.10\"\n}\n\n```" } ]
code_easy-setup_4d90d5b6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/react/styles.global.css from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\nhtml,\nbody,\n#render-container,\n#render-provider,\n.render-container,\n.render-provider {\n height: 100%;\n}\n\n```" } ]
code_easy-setup_41aa32f8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/fieldValuesData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst FieldValuesData = (fieldId: number) => {\n return [\n {\n CategoryId: 9281, // Apparel\n FieldValues: [\n {\n FieldId: fieldId, // Clothes Size\n Name: 'S',\n Text: 'S',\n IsActive: true,\n Position: 1,\n },\n {\n FieldId: fieldId, // Clothes Size\n Name: 'M',\n Text: 'M',\n IsActive: true,\n Position: 2,\n },\n {\n FieldId: fieldId, // Clothes Size\n Name: 'L',\n Text: 'L',\n IsActive: true,\n Position: 3,\n },\n {\n FieldId: fieldId, // Clothes Size\n Name: 'XL',\n Text: 'XL',\n IsActive: true,\n Position: 4,\n },\n ],\n },\n {\n CategoryId: 9283, // Sporting\n FieldValues: [\n {\n FieldId: fieldId, // Shoes Size\n Name: '8',\n Text: '8',\n IsActive: true,\n Position: 1,\n },\n {\n FieldId: fieldId, // Shoes Size\n Name: '9',\n Text: '9',\n IsActive: true,\n Position: 2,\n },\n {\n FieldId: fieldId, // Shoes Size\n Name: '10',\n Text: '10',\n IsActive: true,\n Position: 3,\n },\n {\n FieldId: fieldId, // Shoes Size\n Name: '11',\n Text: '11',\n IsActive: true,\n Position: 4,\n },\n {\n FieldId: fieldId, // Shoes Size\n Name: '12',\n Text: '12',\n IsActive: true,\n Position: 5,\n },\n ],\n },\n ]\n}\n\nexport interface SpecificationFieldValue {\n FieldId: number\n Name: string\n Text: string\n IsActive: boolean\n Position: number\n}\n\nexport { FieldValuesData }\n\n```" } ]
code_easy-setup_a5df8a44
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/usersData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { IMasterdataClientDocumentPayload } from '../clients/MasterdataClient/types'\n\nexport const UsersData: IMasterdataClientDocumentPayload[] = [\n {\n email: 'john@email.com',\n firstName: 'John 2',\n lastName: 'Doe',\n priceTables: 'platinum',\n },\n {\n email: 'steven@email.com',\n firstName: 'Steven 2',\n lastName: 'Doe',\n priceTables: 'gold',\n },\n {\n email: 'chris@email.com',\n firstName: 'Chris 2',\n lastName: 'Doe',\n priceTables: 'silver',\n },\n]\n\n```" } ]
code_easy-setup_a6a74582
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/collectionData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst CollectionData = {\n DateFrom: '2010-01-01T00:00:00',\n DateTo: '2070-01-01T00:00:00',\n Highlight: false,\n Name: 'All',\n Searchable: true,\n}\n\nconst SubCollectionData = (collectionId: any) => {\n return {\n CollectionId: collectionId,\n Name: 'Brand',\n PreSale: false,\n Release: false,\n Type: 'Inclusive',\n }\n}\n\nconst BrandSubCollectionData = {\n BrandId: 9280,\n}\n\ninterface ICollectionResponse {\n Id: number\n Name: string\n Description: any\n Searchable: boolean\n Highlight: boolean\n DateFrom: string\n DateTo: string\n TotalProducts: number\n Type: string\n}\n\ninterface ISubCollectionResponse {\n Id: number\n CollectionId: number\n Name: string\n Type: string\n PreSale: boolean\n Release: boolean\n}\n\nexport {\n ICollectionResponse,\n ISubCollectionResponse,\n BrandSubCollectionData,\n CollectionData,\n SubCollectionData,\n}\n\n```" } ]
code_easy-setup_528154f0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/logisticsData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst InventoryData = {\n unlimitedQuantity: true,\n dateUtcOnBalanceSystem: null,\n quantity: 0,\n}\n\nconst DockData = [\n {\n pickupStoreInfo: {\n isPickupStore: false,\n storeId: null,\n friendlyName: null,\n address: {\n postalCode: '04538-132',\n country: {\n acronym: 'BRA',\n name: 'Brazil',\n },\n city: 'São Paulo',\n state: 'SP',\n neighborhood: 'Itaim Bibi',\n street: 'Avenida Brigadeiro Faria Lima',\n number: '4440',\n complement: null,\n reference: null,\n location: null,\n },\n additionalInfo: null,\n dockId: null,\n distance: null,\n businessHours: null,\n pickupHolidays: null,\n sellerId: null,\n isThirdPartyPickup: false,\n },\n storeId: null,\n pickupInStoreInfo: {\n isActice: false,\n additionalInfo: null,\n },\n deliveryFromStoreInfo: {\n isActice: false,\n deliveryRadius: 0,\n deliveryFee: 0,\n deliveryTime: '00:00:00',\n maximumWeight: 0,\n },\n address: {\n postalCode: '04538-132',\n country: {\n acronym: 'BRA',\n name: 'Brazil',\n },\n city: 'São Paulo',\n state: 'SP',\n neighborhood: 'Itaim Bibi',\n street: 'Avenida Brigadeiro Faria Lima',\n number: '4440',\n complement: null,\n reference: null,\n location: null,\n },\n location: null,\n id: '1',\n name: 'Main Dock',\n priority: 1,\n dockTimeFake: '00:00:00',\n timeFakeOverhead: '00:00:00',\n salesChannels: ['1'],\n freightTableIds: ['1'],\n wmsEndPoint: null,\n isActive: true,\n },\n {\n pickupStoreInfo: {\n isPickupStore: false,\n storeId: null,\n friendlyName: null,\n address: {\n postalCode: '10017',\n country: {\n acronym: 'USA',\n name: 'United States of America',\n },\n city: 'New York',\n state: 'NY',\n neighborhood: '',\n street: '49th St',\n number: '12E',\n complement: null,\n reference: null,\n location: null,\n },\n additionalInfo: null,\n dockId: null,\n distance: null,\n businessHours: null,\n pickupHolidays: null,\n sellerId: null,\n isThirdPartyPickup: false,\n },\n storeId: null,\n pickupInStoreInfo: {\n isActice: false,\n additionalInfo: null,\n },\n deliveryFromStoreInfo: {\n isActice: false,\n deliveryRadius: 0,\n deliveryFee: 0,\n deliveryTime: '00:00:00',\n maximumWeight: 0,\n },\n address: {\n postalCode: '10017',\n country: {\n acronym: 'USA',\n name: 'United States of America',\n },\n city: 'New York',\n state: 'NY',\n neighborhood: '',\n street: '49th St',\n number: '12E',\n complement: null,\n reference: null,\n location: null,\n },\n location: null,\n id: '2',\n name: 'Alternative Dock',\n priority: 1,\n dockTimeFake: '00:00:00',\n timeFakeOverhead: '00:00:00',\n salesChannels: ['1'],\n freightTableIds: ['1'],\n wmsEndPoint: null,\n isActive: true,\n },\n]\n\nconst FreightValueData = [\n [\n {\n absoluteMoneyCost: '10.00',\n country: 'BRA',\n maxVolume: 1000000000,\n operationType: 1,\n pricePercent: 0,\n pricePercentByWeight: 0,\n timeCost: '2.00:00:00',\n weightEnd: 100000,\n weightStart: 1,\n zipCodeEnd: '99999999',\n zipCodeStart: '0',\n polygon: '',\n },\n ],\n [\n {\n absoluteMoneyCost: '10.00',\n country: 'USA',\n maxVolume: 1000000000,\n operationType: 1,\n pricePercent: 0,\n pricePercentByWeight: 0,\n timeCost: '2.00:00:00',\n weightEnd: 100000,\n weightStart: 1,\n zipCodeEnd: '99999999',\n zipCodeStart: '0',\n polygon: '',\n },\n ],\n]\n\nconst WarehouseData = {\n id: '1_1',\n name: 'Inventory',\n warehouseDocks: [\n {\n dockId: '1',\n time: '00:00:00',\n cost: 0.0,\n },\n {\n dockId: '2',\n time: '00:00:00',\n cost: 0.0,\n },\n ],\n pickupPointIds: [],\n priority: 0,\n isActive: true,\n}\n\nexport { InventoryData, DockData, FreightValueData, WarehouseData }\n\n```" } ]
code_easy-setup_2f7b573c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/benefitsData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst BenefitData = (collectionData: unknown) => {\n return {\n name: 'Progressive Discount',\n type: 'progressive',\n areSalesChannelIdsExclusive: false,\n beginDate: {\n year: 2010,\n month: 1,\n date: 1,\n day: 1,\n obj: '2010-01-01T00:00:00.000Z',\n pick: 1600743600000,\n },\n offset: -3,\n newOffset: -3,\n recurrencyCrons: null,\n activeDaysOfWeek: [],\n brands: [],\n brandsAreInclusive: true,\n campaigns: [],\n categories: [],\n clusterExpressions: [],\n clusterOperator: 'all',\n categoriesAreInclusive: true,\n collections1BuyTogether: [collectionData],\n cumulative: false,\n accumulateWithManualPrice: false,\n enableBuyTogetherPerSku: false,\n description: null,\n endDate: {\n year: 2070,\n month: 1,\n date: 1,\n day: 1,\n obj: '2070-01-01T00:00:00.000Z',\n pick: 1600743600000,\n },\n isMinMaxInstallments: false,\n daysAgoOfPurchases: null,\n purchaseHistoryType: 'toFrom',\n beginDateOfPurchasesUtc: null,\n endDateOfPurchasesUtc: null,\n slasIds: [],\n isShippingCountriesSelected: false,\n isSlaSelected: false,\n idCalculatorConfiguration: null,\n idCollectionIsInclusive: true,\n collectionsIsInclusive: true,\n collections: [],\n idsSalesChannel: [],\n idSeller: null,\n idSellerIsInclusive: true,\n installment: null,\n minInstallment: null,\n maxInstallment: null,\n isActive: true,\n isArchived: false,\n isFeatured: false,\n isFirstBuy: false,\n firstBuyIsProfileOptimistic: true,\n listSku1BuyTogether: [],\n listSku2BuyTogether: [],\n maxUsage: null,\n maxUsagePerClient: null,\n maxNumberOfAffectedItems: null,\n maxNumberOfAffectedItemsGroupKey: null,\n origin: 'Marketplace',\n minimumQuantityBuyTogether: null,\n quantityToAffectBuyTogether: null,\n paymentsMethods: [],\n paymentsRules: [],\n products: [],\n affiliates: [],\n productsAreInclusive: true,\n restrictionsBins: [],\n marketingTags: [],\n utmSource: null,\n utmCampaign: null,\n utmiCampaign: null,\n totalValueFloor: null,\n totalValueCeling: null,\n totalValueMode: 'IncludeMatchedItems',\n itemMinPrice: null,\n itemMaxPrice: null,\n compareListPriceAndPrice: false,\n isDifferentListPriceAndPrice: false,\n totalValuePurchase: null,\n rebatePercentualDiscountValue: null,\n percentualDiscountValueList: [\n {\n quantity: 5,\n percent: 5,\n },\n {\n quantity: 10,\n percent: 15,\n },\n {\n quantity: 15,\n percent: 25,\n },\n {\n quantity: 20,\n percent: 35,\n },\n ],\n percentualDiscountValueList1: null,\n percentualDiscountValueList2: null,\n skusGift: {\n quantitySelectable: 1,\n gifts: [],\n },\n activateGiftsMultiplier: false,\n applyToAllShippings: false,\n zipCodeRanges: [],\n stores: [],\n storesAreInclusive: true,\n maxPricePerItem: [],\n skusMaxPrices: [],\n maxPricesPerItems: [],\n generalValues: null,\n productsSpecifications: [],\n orderStatusRewardValue: 'invoiced',\n recurrencyErrors: null,\n beginDateUtc: '2010-01-01T00:00:00.000Z',\n endDateUtc: '2070-01-01T00:00:00.000Z',\n marketingTagsAreNotInclusive: false,\n nominalDiscountValue: null,\n }\n}\n\nconst TaxData = [\n {\n affiliates: [],\n name: 'ICMS',\n type: 'tax',\n areSalesChannelIdsExclusive: false,\n beginDate: {\n year: 2010,\n month: 1,\n date: 1,\n day: 2,\n obj: '2010-01-01T00:00:00.000Z',\n pick: 1598929200000,\n },\n brands: [],\n brandsAreInclusive: true,\n categories: [\n {\n id: 9284,\n name: 'Agribusiness (9284)',\n },\n ],\n clusterExpressions: [],\n clusterOperator: 'all',\n categoriesAreInclusive: true,\n collections1BuyTogether: [],\n description: null,\n endDate: {\n year: 2070,\n month: 1,\n date: 1,\n day: 4,\n obj: '2070-01-01T00:00:00.000Z',\n pick: 1662001200000,\n },\n slasIds: [],\n idCalculatorConfiguration: null,\n idCollectionIsInclusive: true,\n collectionsIsInclusive: true,\n collections: [],\n idsSalesChannel: [],\n installment: 0,\n isActive: true,\n isArchived: false,\n origin: 'Fulfillment',\n paymentsMethods: [],\n nominalTax: null,\n percentualTax: 12,\n products: [],\n productsAreInclusive: true,\n taxExpression: null,\n totalValueFloor: null,\n totalValueCeling: null,\n totalValueMode: 'IncludeMatchedItems',\n totalValuePurchase: null,\n zipCodeRanges: [],\n marketingTags: [],\n taxType: 'percentualTaxValue',\n beginDateUtc: '2020-09-01T03:00:00.000Z',\n endDateUtc: '2022-09-02T02:30:00.000Z',\n shippingPercentualTax: null,\n },\n {\n affiliates: [],\n name: 'VAT',\n type: 'tax',\n areSalesChannelIdsExclusive: false,\n beginDate: {\n year: 2010,\n month: 1,\n date: 1,\n day: 2,\n obj: '2010-01-01T00:00:00.000Z',\n pick: 1598929200000,\n },\n brands: [],\n brandsAreInclusive: true,\n categories: [\n {\n id: 9284,\n name: 'Agribusiness (9284)',\n },\n ],\n clusterExpressions: [],\n clusterOperator: 'all',\n categoriesAreInclusive: true,\n collections1BuyTogether: [],\n description: null,\n endDate: {\n year: 2070,\n month: 1,\n date: 1,\n day: 4,\n obj: '2070-01-01T00:00:00.000Z',\n pick: 1662001200000,\n },\n slasIds: [],\n idCalculatorConfiguration: null,\n idCollectionIsInclusive: true,\n collectionsIsInclusive: true,\n collections: [],\n idsSalesChannel: [],\n installment: 0,\n isActive: true,\n isArchived: false,\n origin: 'Fulfillment',\n paymentsMethods: [],\n nominalTax: null,\n percentualTax: 5,\n products: [],\n productsAreInclusive: true,\n taxExpression: null,\n totalValueFloor: null,\n totalValueCeling: null,\n totalValueMode: 'IncludeMatchedItems',\n totalValuePurchase: null,\n zipCodeRanges: [],\n marketingTags: [],\n taxType: 'percentualTaxValue',\n beginDateUtc: '2020-09-01T03:00:00.000Z',\n endDateUtc: '2022-09-02T02:30:00.000Z',\n shippingPercentualTax: null,\n },\n]\n\nexport { BenefitData, TaxData }\n\n```" } ]
code_easy-setup_442c910f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/paymentData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst AffiliationData = [\n {\n implementation: 'Vtex.PaymentGateway.Connectors.PromissoryConnector',\n name: 'Promissory',\n configuration: [\n {\n name: 'ExpiryDays',\n value: '7',\n },\n {\n name: 'isSelfAuthorized',\n value: 'false',\n },\n ],\n },\n {\n implementation: 'Vtex.PaymentGateway.Connectors.TestConnector',\n name: 'Credit Cards',\n configuration: [\n {\n name: 'OperationTime',\n value: '1000',\n },\n {\n name: 'applePay_MerchantId',\n value: '',\n },\n {\n name: 'applePay_MerchantCertificate',\n value: null,\n },\n {\n name: 'applePay_MerchantPassword',\n value: '',\n },\n {\n name: 'SamsungPayServiceId',\n value: '',\n },\n ],\n },\n {\n implementation:\n 'Vtex.PaymentGateway.Connectors.PaymentProvider.PaymentProviderConnector_CreditControlV2',\n name: 'CreditControlV2',\n configuration: [\n {\n name: 'connectorName',\n value: 'CreditControlV2',\n },\n {\n name: 'ApplicationAuthenticationLink',\n value:\n 'https://projetosuvinil.vtexpayments.com.br/payment-provider/authenticate-app?environment=stable',\n },\n {\n name: 'appKey',\n value: 'APP-KEY',\n },\n {\n name: 'appToken',\n value: 'APP-TOKEN',\n },\n {\n name: 'applicationId',\n value: 'vtex',\n },\n {\n name: 'requiresDocument',\n value: 'false',\n },\n {\n name: 'useAntifraud',\n value: 'false',\n },\n {\n name: 'useEarlySecurityCapture',\n value: '0',\n },\n {\n name: 'configReturnRedirectUrl',\n value: '',\n },\n ],\n },\n]\n\nconst PaymentConditionData = (affiliationId: any) => {\n return [\n {\n name: 'Promissory',\n enabled: true,\n installmentsService: false,\n externalInterest: false,\n paymentSystem: {\n id: 201,\n name: 'Promissory',\n implementation: 'Vtex.PaymentGateway.Promissory.PromissoryPayment',\n },\n deadlines: [],\n cobrand: {\n name: {\n name: null,\n },\n },\n cardLevel: {\n name: {\n name: null,\n },\n },\n connector: {\n affiliationId,\n },\n hasConnector: false,\n antifraud: {\n affiliationId: null,\n },\n hasAntifraud: false,\n isDefault: false,\n salesChannels: null,\n hasSalesChannels: false,\n issuer: {},\n hasIssuer: false,\n hasCobrand: false,\n hasCardLevel: false,\n hasCountry: false,\n condition: null,\n hasPullRate: false,\n excludedBinsRanges: '',\n multiMerchantList: null,\n hasMultiMerchantList: false,\n hasDate: false,\n hasRecurrency: 0,\n hasInstallmentOptions: false,\n installmentOptions: null,\n quickActions: {\n areOpen: false,\n },\n isPromissory: true,\n isCreditControlPaymentSystem: false,\n beginDate: null,\n endDate: null,\n dateIntervals: null,\n },\n {\n name: 'Visa',\n enabled: true,\n installmentsService: false,\n externalInterest: false,\n paymentSystem: {\n id: 2,\n name: 'Visa',\n implementation: 'Vtex.PaymentGateway.CreditCard.Visa',\n },\n deadlines: [],\n cobrand: {\n name: {\n name: null,\n },\n },\n cardLevel: {\n name: {\n name: null,\n },\n },\n connector: {\n affiliationId,\n },\n hasConnector: false,\n antifraud: {\n affiliationId: null,\n },\n hasAntifraud: false,\n isDefault: false,\n salesChannels: null,\n hasSalesChannels: false,\n issuer: null,\n hasIssuer: false,\n hasCobrand: false,\n hasCardLevel: false,\n country: null,\n hasCountry: false,\n condition: null,\n hasPullRate: false,\n excludedBinsRanges: '',\n multiMerchantList: null,\n hasMultiMerchantList: false,\n hasDate: false,\n hasRecurrency: 0,\n hasInstallmentOptions: false,\n installmentOptions: null,\n quickActions: {\n areOpen: false,\n },\n isPromissory: false,\n isCreditControlPaymentSystem: false,\n beginDate: null,\n endDate: null,\n dateIntervals: null,\n },\n {\n name: 'Customer Credit',\n enabled: true,\n installmentsService: false,\n externalInterest: false,\n paymentSystem: {\n id: 64,\n name: 'Customer Credit',\n implementation: 'Vtex.PaymentGateway.Promissory.CreditControlPayment',\n },\n deadlines: [\n {\n paymentOptions: [\n {\n days: 15,\n interestRate: 0,\n },\n ],\n },\n {\n paymentOptions: [\n {\n days: 30,\n interestRate: 0,\n },\n ],\n },\n {\n paymentOptions: [\n {\n days: 15,\n interestRate: 1,\n },\n {\n days: 30,\n interestRate: 1,\n },\n ],\n },\n {\n paymentOptions: [\n {\n days: 15,\n interestRate: 1.5,\n },\n {\n days: 30,\n interestRate: 1.5,\n },\n {\n days: 45,\n interestRate: 1.5,\n },\n ],\n },\n ],\n cobrand: {\n name: {\n name: null,\n },\n },\n cardLevel: {\n name: {\n name: null,\n },\n },\n connector: {\n affiliationId,\n },\n hasConnector: false,\n antifraud: {\n affiliationId: null,\n },\n hasAntifraud: false,\n isDefault: false,\n salesChannels: null,\n hasSalesChannels: false,\n issuer: {},\n hasIssuer: false,\n hasCobrand: false,\n hasCardLevel: false,\n hasCountry: false,\n condition: null,\n hasPullRate: false,\n excludedBinsRanges: '',\n multiMerchantList: null,\n hasMultiMerchantList: false,\n hasDate: false,\n hasRecurrency: 0,\n hasInstallmentOptions: true,\n installmentOptions: {\n installments: [\n {\n interestRate: 0,\n quantity: 1,\n },\n {\n interestRate: 1,\n quantity: 2,\n },\n {\n interestRate: 1.5,\n quantity: 3,\n },\n ],\n interestRateMethod: 2,\n minimumInstallmentValue: 0,\n dueDateType: 0,\n },\n quickActions: {\n areOpen: false,\n },\n isPromissory: false,\n isCreditControlPaymentSystem: true,\n installmentsLength: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n hasInstallmentTax: true,\n beginDate: null,\n endDate: null,\n dateIntervals: null,\n },\n ]\n}\n\nconst PromissoryData = {\n name: 'Promissory',\n id: 201,\n description: '',\n configuration: [\n {\n type: 'Text',\n regex: null,\n domain: null,\n mask: null,\n hint: 'Promissory description',\n hidden: false,\n friendlyName: 'Promissory',\n target: '_self',\n prefix: null,\n isReadOnly: false,\n adminOnly: false,\n isRequired: true,\n name: 'name',\n value: 'Promissory',\n },\n {\n type: 'Text',\n regex: null,\n domain: null,\n mask: null,\n hint: 'Promissory description',\n hidden: false,\n friendlyName: 'Promissory Description',\n target: '_self',\n prefix: null,\n isReadOnly: false,\n adminOnly: false,\n isRequired: false,\n name: 'description',\n value: 'Promissory Description',\n },\n {\n type: 'Text',\n regex: null,\n domain: null,\n mask: null,\n hint: 'Escreva o número de dias para expiração dos pagamentos',\n hidden: false,\n friendlyName: 'Expiring Days',\n target: '_self',\n prefix: null,\n isReadOnly: false,\n adminOnly: false,\n isRequired: true,\n name: 'expiryDays',\n value: '5',\n },\n {\n type: 'Select',\n regex: null,\n domain: [\n {\n domainText: 'Yes',\n domainValue: 'true',\n disabled: false,\n },\n {\n domainText: 'No',\n domainValue: 'false',\n disabled: false,\n },\n ],\n mask: null,\n hint: 'Se utilizará para autorizar automáticamente um pagamento.',\n hidden: false,\n friendlyName: 'Self Authorization',\n target: '_self',\n prefix: null,\n isReadOnly: false,\n adminOnly: false,\n isRequired: true,\n name: 'isSelfAuthorized',\n value: 'false',\n },\n {\n type: 'Select',\n regex: null,\n domain: [\n {\n domainText: '0',\n domainValue: '0',\n disabled: false,\n },\n {\n domainText: '5',\n domainValue: '5',\n disabled: false,\n },\n {\n domainText: '10',\n domainValue: '10',\n disabled: false,\n },\n {\n domainText: '15',\n domainValue: '15',\n disabled: false,\n },\n {\n domainText: '30',\n domainValue: '30',\n disabled: false,\n },\n {\n domainText: '50',\n domainValue: '50',\n disabled: false,\n },\n {\n domainText: '70',\n domainValue: '70',\n disabled: false,\n },\n {\n domainText: '80',\n domainValue: '80',\n disabled: false,\n },\n {\n domainText: '100',\n domainValue: '100',\n disabled: false,\n },\n ],\n mask: null,\n hint: 'Margen porcentual para cambiar el valor del pago',\n hidden: false,\n friendlyName: 'Change Margin',\n target: '_self',\n prefix: null,\n isReadOnly: false,\n adminOnly: false,\n isRequired: false,\n name: 'changeMargin',\n value: '0',\n },\n ],\n implementation: 'Vtex.PaymentGateway.Promissory.PromissoryPayment',\n friendlyName: 'Custom Payment',\n isConfigured: false,\n type: 'promissories',\n}\n\nexport { AffiliationData, PaymentConditionData, PromissoryData }\n\n```" } ]
code_easy-setup_9ccd5f32
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/imageData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst ImagesData: ProductImagePayload[] = [\n {\n ProductId: 880001,\n ImageData: {\n IsMain: true,\n Label: 'adidas-mens-performance-polo-blast-blue',\n Name: 'adidas-mens-performance-polo-blast-blue',\n Text: 'adidas-mens-performance-polo-blast-blue',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155678/adidas-mens-performance-polo-blast-blue.jpg',\n },\n },\n {\n ProductId: 880002,\n ImageData: {\n IsMain: true,\n Label: 'adidas-mens-performance-polo-green-night',\n Name: 'adidas-mens-performance-polo-green-night',\n Text: 'adidas-mens-performance-polo-green-night',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155681/adidas-mens-performance-polo-green-night.jpg',\n },\n },\n {\n ProductId: 880003,\n ImageData: {\n IsMain: true,\n Label: 'adidas-womens-microdot-polo-night-indigo',\n Name: 'adidas-womens-microdot-polo-night-indigo',\n Text: 'adidas-womens-microdot-polo-night-indigo',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155680/adidas-womens-microdot-polo-night-indigo.jpg',\n },\n },\n {\n ProductId: 880004,\n ImageData: {\n IsMain: true,\n Label: 'adidas-womens-microdot-polo-true-pink',\n Name: 'adidas-womens-microdot-polo-true-pink',\n Text: 'adidas-womens-microdot-polo-true-pink',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155682/adidas-womens-microdot-polo-true-pink.jpg',\n },\n },\n {\n ProductId: 880005,\n ImageData: {\n IsMain: true,\n Label: 'nike-mens-roshe-g-spikeless-golf-shoes',\n Name: 'nike-mens-roshe-g-spikeless-golf-shoes',\n Text: 'nike-mens-roshe-g-spikeless-golf-shoes',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155694/nike-mens-roshe-g-spikeless-golf-shoes.jpg',\n },\n },\n {\n ProductId: 880006,\n ImageData: {\n IsMain: true,\n Label: 'nike-mens-air-max-1-g-spikeless-golf-shoes',\n Name: 'nike-mens-air-max-1-g-spikeless-golf-shoes',\n Text: 'nike-mens-air-max-1-g-spikeless-golf-shoes',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155693/nike-mens-air-max-1-g-spikeless-golf-shoes.jpg',\n },\n },\n {\n ProductId: 880007,\n ImageData: {\n IsMain: true,\n Label: 'nike-air-max-270-g-spikeless-golf-shoes',\n Name: 'nike-air-max-270-g-spikeless-golf-shoes',\n Text: 'nike-air-max-270-g-spikeless-golf-shoes',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155692/nike-air-max-270-g-spikeless-golf-shoes.jpg',\n },\n },\n {\n ProductId: 880008,\n ImageData: {\n IsMain: true,\n Label:\n 'skechers-womens-go-golf-drive-4-dogs-at-play-spikeless-golf-shoes',\n Name: 'skechers-womens-go-golf-drive-4-dogs-at-play-spikeless-golf-shoes',\n Text: 'skechers-womens-go-golf-drive-4-dogs-at-play-spikeless-golf-shoes',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155695/skechers-womens-go-golf-drive-4-dogs-at-play-spikeless-golf-shoes.jpg',\n },\n },\n {\n ProductId: 880009,\n ImageData: {\n IsMain: true,\n Label:\n 'black-decker-20v-max-drill-home-tool-kit-68-piece-ldx120pk-black-orange',\n Name:\n 'black-decker-20v-max-drill-home-tool-kit-68-piece-ldx120pk-black-orange',\n Text:\n 'black-decker-20v-max-drill-home-tool-kit-68-piece-ldx120pk-black-orange',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155688/black-decker-20v-max-drill-home-tool-kit-68-piece-ldx120pk-black-orange.jpg',\n },\n },\n {\n ProductId: 880010,\n ImageData: {\n IsMain: true,\n Label:\n 'black-decker-20v-max-cordless-drill-driver-with-30-piece-acessories-ld120va',\n Name:\n 'black-decker-20v-max-cordless-drill-driver-with-30-piece-acessories-ld120va',\n Text:\n 'black-decker-20v-max-cordless-drill-driver-with-30-piece-acessories-ld120va',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155686/black-decker-20v-max-cordless-drill-driver-with-30-piece-acessories-ld120va.jpg',\n },\n },\n {\n ProductId: 880011,\n ImageData: {\n IsMain: true,\n Label:\n 'black-decker-20v-max-cordless-chainsaw-10-inch-tool-only-lcs1020b',\n Name: 'black-decker-20v-max-cordless-chainsaw-10-inch-tool-only-lcs1020b',\n Text: 'black-decker-20v-max-cordless-chainsaw-10-inch-tool-only-lcs1020b',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155685/black-decker-20v-max-cordless-chainsaw-10-inch-tool-only-lcs1020b.jpg',\n },\n },\n {\n ProductId: 880012,\n ImageData: {\n IsMain: true,\n Label:\n 'black-decker-20v-max-cordless-drill-combo-kit-2-tool-bd2kitcddi-black-orange-impact-combo-kit',\n Name:\n 'black-decker-20v-max-cordless-drill-combo-kit-2-tool-bd2kitcddi-black-orange-impact-combo-kit',\n Text:\n 'black-decker-20v-max-cordless-drill-combo-kit-2-tool-bd2kitcddi-black-orange-impact-combo-kit',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155687/black-decker-20v-max-cordless-drill-combo-kit-2-tool-bd2kitcddi-black-orange-impact-combo-kit.jpg',\n },\n },\n {\n ProductId: 880013,\n ImageData: {\n IsMain: true,\n Label:\n 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-tool-conly-bdccs20b',\n Name:\n 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-tool-conly-bdccs20b',\n Text:\n 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-tool-conly-bdccs20b',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155683/black-decker-20v-max-5-1-2-inch-cordless-circular-saw-tool-conly-bdccs20b.jpg',\n },\n },\n {\n ProductId: 880014,\n ImageData: {\n IsMain: true,\n Label: 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-bdccs20c',\n Name: 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-bdccs20c',\n Text: 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-bdccs20c',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155684/black-decker-20v-max-5-1-2-inch-cordless-circular-saw-bdccs20c.jpg',\n },\n },\n {\n ProductId: 880015,\n ImageData: {\n IsMain: true,\n Label: 'acer-aspire-z24-890-ua91-aio-desktop',\n Name: 'acer-aspire-z24-890-ua91-aio-desktop',\n Text: 'acer-aspire-z24-890-ua91-aio-desktop',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155679/acer-aspire-z24-890-ua91-aio-desktop.jpg',\n },\n },\n {\n ProductId: 880016,\n ImageData: {\n IsMain: true,\n Label: 'lenovo-ideacentre-aio-3-24-inch-all-in-one-computer',\n Name: 'lenovo-ideacentre-aio-3-24-inch-all-in-one-computer',\n Text: 'lenovo-ideacentre-aio-3-24-inch-all-in-one-computer',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155691/lenovo-ideacentre-aio-3-24-inch-all-in-one-computer.jpg',\n },\n },\n {\n ProductId: 880017,\n ImageData: {\n IsMain: true,\n Label: 'acer-aspire-atc-885-ua92-desktop',\n Name: 'acer-aspire-atc-885-ua92-desktop',\n Text: 'acer-aspire-atc-885-ua92-desktop',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155677/acer-aspire-atc-885-ua92-desktop.jpg',\n },\n },\n {\n ProductId: 880018,\n ImageData: {\n IsMain: true,\n Label: 'cyberpowerpc-gamer-xtreme-vr-gaming-pc-gxivr8060a8-black',\n Name: 'cyberpowerpc-gamer-xtreme-vr-gaming-pc-gxivr8060a8-black',\n Text: 'cyberpowerpc-gamer-xtreme-vr-gaming-pc-gxivr8060a8-black',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155689/cyberpowerpc-gamer-xtreme-vr-gaming-pc-gxivr8060a8-black.jpg',\n },\n },\n {\n ProductId: 880019,\n ImageData: {\n IsMain: true,\n Label: 'acer-aspire-5-slim-laptop-a515-43-r19l-silver',\n Name: 'acer-aspire-5-slim-laptop-a515-43-r19l-silver',\n Text: 'acer-aspire-5-slim-laptop-a515-43-r19l-silver',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155676/acer-aspire-5-slim-laptop-a515-43-r19l-silver.jpg',\n },\n },\n {\n ProductId: 880020,\n ImageData: {\n IsMain: true,\n Label: 'jumper-ezbook-x3-windows-10-laptop',\n Name: 'jumper-ezbook-x3-windows-10-laptop',\n Text: 'jumper-ezbook-x3-windows-10-laptop',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155690/jumper-ezbook-x3-windows-10-laptop.jpg',\n },\n },\n {\n ProductId: 880040,\n ImageData: {\n IsMain: true,\n Label: 'acer-aspire-z24-890-acer-aspire-atc-885',\n Name: 'acer-aspire-z24-890-acer-aspire-atc-885',\n Text: 'acer-aspire-z24-890-acer-aspire-atc-885',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155723/acer-aspire-z24-890-acer-aspire-atc-885.jpg',\n },\n },\n {\n ProductId: 880021,\n ImageData: {\n IsMain: true,\n Label: 'weber-spirit-ii-e-310-3-burner-liquid-propane-grill',\n Name: 'weber-spirit-ii-e-310-3-burner-liquid-propane-grill',\n Text: 'weber-spirit-ii-e-310-3-burner-liquid-propane-grill',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155700/weber-spirit-ii-e-310-3-burner-liquid-propane-grill.jpg',\n },\n },\n {\n ProductId: 880022,\n ImageData: {\n IsMain: true,\n Label: 'irobot-roomba-675-robot-vacuum-wi-fi-connectivity',\n Name: 'irobot-roomba-675-robot-vacuum-wi-fi-connectivity',\n Text: 'irobot-roomba-675-robot-vacuum-wi-fi-connectivity',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155697/irobot-roomba-675-robot-vacuum-wi-fi-connectivity.jpg',\n },\n },\n {\n ProductId: 880023,\n ImageData: {\n IsMain: true,\n Label: 'alrocket-dehumidifier',\n Name: 'alrocket-dehumidifier',\n Text: 'alrocket-dehumidifier',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155696/alrocket-dehumidifier.jpg',\n },\n },\n {\n ProductId: 880024,\n ImageData: {\n IsMain: true,\n Label: 'mcculloch-mc1375-canister-steam-cleaner',\n Name: 'mcculloch-mc1375-canister-steam-cleaner',\n Text: 'mcculloch-mc1375-canister-steam-cleaner',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155699/mcculloch-mc1375-canister-steam-cleaner.jpg',\n },\n },\n {\n ProductId: 880025,\n ImageData: {\n IsMain: true,\n Label: 'cuisinart-gr-4n-5-in-1-griddler',\n Name: 'cuisinart-gr-4n-5-in-1-griddler',\n Text: 'cuisinart-gr-4n-5-in-1-griddler',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155698/cuisinart-gr-4n-5-in-1-griddler.jpg',\n },\n },\n {\n ProductId: 880026,\n ImageData: {\n IsMain: true,\n Label: 'yellow-onions',\n Name: 'yellow-onions',\n Text: 'yellow-onions',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155707/yellow-onions.jpg',\n },\n },\n {\n ProductId: 880027,\n ImageData: {\n IsMain: true,\n Label: 'cauliflower-fresh',\n Name: 'cauliflower-fresh',\n Text: 'cauliflower-fresh',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155701/cauliflower-fresh.jpg',\n },\n },\n {\n ProductId: 880028,\n ImageData: {\n IsMain: true,\n Label: 'asparagus-green-conventional',\n Name: 'asparagus-green-conventional',\n Text: 'asparagus-green-conventional',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155703/asparagus-green-conventional.jpg',\n },\n },\n {\n ProductId: 880029,\n ImageData: {\n IsMain: true,\n Label: 'fresh-hass-avocadoes',\n Name: 'fresh-hass-avocadoes',\n Text: 'fresh-hass-avocadoes',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155704/fresh-hass-avocadoes.jpg',\n },\n },\n {\n ProductId: 880030,\n ImageData: {\n IsMain: true,\n Label: 'fresh-coconuts',\n Name: 'fresh-coconuts',\n Text: 'fresh-coconuts',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155702/fresh-coconuts.jpg',\n },\n },\n {\n ProductId: 880031,\n ImageData: {\n IsMain: true,\n Label: 'whole-watermelon-mini-fresh',\n Name: 'whole-watermelon-mini-fresh',\n Text: 'whole-watermelon-mini-fresh',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155706/whole-watermelon-mini-fresh.jpg',\n },\n },\n {\n ProductId: 880032,\n ImageData: {\n IsMain: true,\n Label: 'navel-oranges-grown-large-fresh',\n Name: 'navel-oranges-grown-large-fresh',\n Text: 'navel-oranges-grown-large-fresh',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155705/navel-oranges-grown-large-fresh.jpg',\n },\n },\n {\n ProductId: 880039,\n ImageData: {\n IsMain: true,\n Label: 'navel-oranges-grown-large-fresh-pack',\n Name: 'navel-oranges-grown-large-fresh-pack',\n Text: 'navel-oranges-grown-large-fresh-pack',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155716/navel-oranges-grown-large-fresh-pack.jpg',\n },\n },\n {\n ProductId: 880033,\n ImageData: {\n IsMain: true,\n Label: '2020-apache-as1040',\n Name: '2020-apache-as1040',\n Text: '2020-apache-as1040',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155712/2020-apache-as1040.jpg',\n },\n },\n {\n ProductId: 880034,\n ImageData: {\n IsMain: true,\n Label: '2-post-canopy',\n Name: '2-post-canopy',\n Text: '2-post-canopy',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155708/2-post-canopy.jpg',\n },\n },\n {\n ProductId: 880035,\n ImageData: {\n IsMain: true,\n Label: '2020-amacsa-ph390',\n Name: '2020-amacsa-ph390',\n Text: '2020-amacsa-ph390',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155710/2020-amacsa-ph390.jpg',\n },\n },\n {\n ProductId: 880036,\n ImageData: {\n IsMain: true,\n Label: 'faceplate-combine-snout',\n Name: 'faceplate-combine-snout',\n Text: 'faceplate-combine-snout',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155713/faceplate-combine-snout.jpg',\n },\n },\n {\n ProductId: 880037,\n ImageData: {\n IsMain: true,\n Label: '2016-mk-martin-ent-mkgb788-blades-box-scraper',\n Name: '2016-mk-martin-ent-mkgb788-blades-box-scraper',\n Text: '2016-mk-martin-ent-mkgb788-blades-box-scraper',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155711/2016-mk-martin-ent-mkgb788-blades-box-scraper.jpg',\n },\n },\n {\n ProductId: 880038,\n ImageData: {\n IsMain: true,\n Label: '1998-john-deere-8400t',\n Name: '1998-john-deere-8400t',\n Text: '1998-john-deere-8400t',\n Url:\n 'http://beightoneagency.vtexassets.com/arquivos/ids/155709/1998-john-deere-8400t.jpg',\n },\n },\n]\n\nexport interface ProductImage {\n IsMain: boolean\n Label: string\n Name: string\n Text: string\n Url: string\n}\n\nexport interface ProductImagePayload {\n ProductId: number\n ImageData: ProductImage\n}\n\nexport { ImagesData }\n\n```" } ]
code_easy-setup_f5c81406
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/skuData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst SKUData = [\n {\n Id: 880010,\n ProductId: '880001',\n IsActive: false,\n Name: 'S',\n RefId: '880010a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880011,\n ProductId: '880001',\n IsActive: false,\n Name: 'M',\n RefId: '880011a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880012,\n ProductId: '880001',\n IsActive: false,\n Name: 'L',\n RefId: '880012a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880013,\n ProductId: '880001',\n IsActive: false,\n Name: 'XL',\n RefId: '880013a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880020,\n ProductId: '880002',\n IsActive: false,\n Name: 'S',\n RefId: '880020a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880021,\n ProductId: '880002',\n IsActive: false,\n Name: 'M',\n RefId: '880021a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880022,\n ProductId: '880002',\n IsActive: false,\n Name: 'L',\n RefId: '880022a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880023,\n ProductId: '880002',\n IsActive: false,\n Name: 'XL',\n RefId: '880023a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880030,\n ProductId: '880003',\n IsActive: false,\n Name: 'S',\n RefId: '880030a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880031,\n ProductId: '880003',\n IsActive: false,\n Name: 'M',\n RefId: '880031a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880032,\n ProductId: '880003',\n IsActive: false,\n Name: 'L',\n RefId: '880032a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880033,\n ProductId: '880003',\n IsActive: false,\n Name: 'XL',\n RefId: '880033a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880040,\n ProductId: '880004',\n IsActive: false,\n Name: 'S',\n RefId: '880040a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880041,\n ProductId: '880004',\n IsActive: false,\n Name: 'M',\n RefId: '880041a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880042,\n ProductId: '880004',\n IsActive: false,\n Name: 'L',\n RefId: '880042a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880043,\n ProductId: '880004',\n IsActive: false,\n Name: 'XL',\n RefId: '880043a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880050,\n ProductId: '880005',\n IsActive: false,\n Name: '8',\n RefId: '880050a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880051,\n ProductId: '880005',\n IsActive: false,\n Name: '9',\n RefId: '880051a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880052,\n ProductId: '880005',\n IsActive: false,\n Name: '10',\n RefId: '880052a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880053,\n ProductId: '880005',\n IsActive: false,\n Name: '11',\n RefId: '880053a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880054,\n ProductId: '880005',\n IsActive: false,\n Name: '12',\n RefId: '880054a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880060,\n ProductId: '880006',\n IsActive: false,\n Name: '8',\n RefId: '880060a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880061,\n ProductId: '880006',\n IsActive: false,\n Name: '9',\n RefId: '880061a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880062,\n ProductId: '880006',\n IsActive: false,\n Name: '10',\n RefId: '880062a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880063,\n ProductId: '880006',\n IsActive: false,\n Name: '11',\n RefId: '880063a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880064,\n ProductId: '880006',\n IsActive: false,\n Name: '12',\n RefId: '880064a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880070,\n ProductId: '880007',\n IsActive: false,\n Name: '8',\n RefId: '880070a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880071,\n ProductId: '880007',\n IsActive: false,\n Name: '9',\n RefId: '880071a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880072,\n ProductId: '880007',\n IsActive: false,\n Name: '10',\n RefId: '880072a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880073,\n ProductId: '880007',\n IsActive: false,\n Name: '11',\n RefId: '880073a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880074,\n ProductId: '880007',\n IsActive: false,\n Name: '12',\n RefId: '880074a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880080,\n ProductId: '880008',\n IsActive: false,\n Name: '8',\n RefId: '880080a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880081,\n ProductId: '880008',\n IsActive: false,\n Name: '9',\n RefId: '880081a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880082,\n ProductId: '880008',\n IsActive: false,\n Name: '10',\n RefId: '880082a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880083,\n ProductId: '880008',\n IsActive: false,\n Name: '11',\n RefId: '880083a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880084,\n ProductId: '880008',\n IsActive: false,\n Name: '12',\n RefId: '880084a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880090,\n ProductId: '880009',\n IsActive: false,\n Name:\n 'BLACK+DECKER 20V MAX Drill & Home Tool Kit, 68 Piece (LDX120PK),Black/Orange',\n RefId: '880090a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880100,\n ProductId: '880010',\n IsActive: false,\n Name:\n 'BLACK+DECKER 20V MAX Cordless Drill / Driver with 30-Piece Accessories (LD120VA)',\n RefId: '880100a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880110,\n ProductId: '880011',\n IsActive: false,\n Name:\n 'BLACK+DECKER 20V Max Cordless Chainsaw, 10-Inch, Tool Only (LCS1020B)',\n RefId: '880110a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880120,\n ProductId: '880012',\n IsActive: false,\n Name:\n 'BLACK+DECKER 20V MAX Cordless Drill Combo Kit, 2-Tool (BD2KITCDDI),Black/Orange Impact Combo Kit',\n RefId: '880120a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880130,\n ProductId: '880013',\n IsActive: false,\n Name:\n 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw, Tool Only (BDCCS20B)',\n RefId: '880130a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880140,\n ProductId: '880014',\n IsActive: false,\n Name: 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw (BDCCS20C)',\n RefId: '880140a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880150,\n ProductId: '880015',\n IsActive: false,\n Name: 'Acer Aspire Z24-890-UA91 AIO Desktop - Windows 10',\n RefId: '880150a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880160,\n ProductId: '880016',\n IsActive: false,\n Name: 'Lenovo IdeaCentre AIO 3 - Windows 10',\n RefId: '880160a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880170,\n ProductId: '880017',\n IsActive: false,\n Name: 'Acer Aspire TC-885-UA92 Desktop - Windows 10',\n RefId: '880170a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880180,\n ProductId: '880018',\n IsActive: false,\n Name: 'CYBERPOWERPC Gamer Xtreme VR Gaming PC - Windows 10',\n RefId: '880180a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880190,\n ProductId: '880019',\n IsActive: false,\n Name: 'Acer Aspire 5 Slim Laptop - Windows 10',\n RefId: '880190a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880200,\n ProductId: '880020',\n IsActive: false,\n Name: 'Jumper EZbook X3 Windows 10 Laptop',\n RefId: '880200a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880400,\n ProductId: '880040',\n IsActive: false,\n Name: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n RefId: '880400a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: true,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880210,\n ProductId: '880021',\n IsActive: false,\n Name: 'Weber 45010001 Spirit II E-310 3-Burner Liquid Propane Grill, Black',\n RefId: '880210a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880220,\n ProductId: '880022',\n IsActive: false,\n Name:\n 'iRobot Roomba 675 Robot Vacuum-Wi-Fi Connectivity, Works with Alexa, Good for Pet Hair, Carpets, Hard Floors, Self-Charging',\n RefId: '880220a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880230,\n ProductId: '880023',\n IsActive: false,\n Name:\n 'ALROCKET Dehumidifier 35oz(1000ml) Small Dehumidifier for 2100 Cubic Feet (260 sq ft) Portable and Compact Ultra Quiet',\n RefId: '880230a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880240,\n ProductId: '880024',\n IsActive: false,\n Name: 'McCulloch MC1375 Canister Steam Cleaner with 20 Accessories',\n RefId: '880240a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880250,\n ProductId: '880025',\n IsActive: false,\n Name: 'Cuisinart GR-4N 5-in-1 Griddler',\n RefId: '880250a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880260,\n ProductId: '880026',\n IsActive: false,\n Name: 'Yellow Onions (10 lbs.)',\n RefId: '880260a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880270,\n ProductId: '880027',\n IsActive: false,\n Name: 'Cauliflower Fresh',\n RefId: '880270a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880280,\n ProductId: '880028',\n IsActive: false,\n Name: 'Asparagus Green Conventional',\n RefId: '880280a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880290,\n ProductId: '880029',\n IsActive: false,\n Name: 'Fresh Hass Avocadoes',\n RefId: '880290a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880300,\n ProductId: '880030',\n IsActive: false,\n Name: 'Fresh Coconuts',\n RefId: '880300a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880310,\n ProductId: '880031',\n IsActive: false,\n Name: 'Whole Watermelon Mini Fresh',\n RefId: '880310a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880320,\n ProductId: '880032',\n IsActive: false,\n Name: 'Pack of 1',\n RefId: '880320a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880321,\n ProductId: '880032',\n IsActive: false,\n Name: 'Pack of 12',\n RefId: '880321a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 12,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880330,\n ProductId: '880033',\n IsActive: false,\n Name: '2020 APACHE AS1040',\n RefId: '880330a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880340,\n ProductId: '880034',\n IsActive: false,\n Name: '2 POST CANOPY',\n RefId: '880340a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880350,\n ProductId: '880035',\n IsActive: false,\n Name: '2020 AMACSA PH390',\n RefId: '880350a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880360,\n ProductId: '880036',\n IsActive: false,\n Name: 'Faceplate Combine Snout',\n RefId: '880360a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880370,\n ProductId: '880037',\n IsActive: false,\n Name: '2016 MK MARTIN ENT MKGB788 Blades/Box Scraper',\n RefId: '880370a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880380,\n ProductId: '880038',\n IsActive: false,\n Name: '1998 JOHN DEERE 8400T',\n RefId: '880380a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n]\n\nconst SKUKitData = [\n {\n StockKeepingUnitParent: 880390,\n StockKeepingUnitId: 880320,\n Quantity: 10,\n UnitPrice: 50.0,\n },\n {\n StockKeepingUnitParent: 880400,\n StockKeepingUnitId: 880150,\n Quantity: 1,\n UnitPrice: 50.0,\n },\n {\n StockKeepingUnitParent: 880400,\n StockKeepingUnitId: 880170,\n Quantity: 1,\n UnitPrice: 50.0,\n },\n]\n\nexport { SKUData, SKUKitData }\n\n```" } ]
code_easy-setup_1be719b8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/attachmentData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst AttachmentData: IAttachmentPayload = {\n Id: 3,\n Name: 'T-Shirt Customization',\n IsRequired: false,\n IsActive: true,\n Domains: [\n {\n FieldName: 'T-Shirt Name',\n MaxCaracters: '15',\n DomainValues: '[]',\n },\n ],\n}\n\nconst SubscriptionData: IAttachmentPayload = {\n Id: 4,\n Name: 'vtex.subscription.subscription',\n IsRequired: false,\n IsActive: true,\n Domains: [\n {\n FieldName: 'vtex.subscription.key.frequency',\n MaxCaracters: '15',\n DomainValues: '1 month',\n },\n {\n FieldName: 'vtex.subscription.key.purchaseday',\n MaxCaracters: '15',\n DomainValues: '1,15,28',\n },\n ],\n}\n\nconst SkuAttachmentData = (skuId: number, attachmentId: number) => ({\n SkuId: skuId,\n AttachmentId: attachmentId,\n})\n\nexport interface IDomain {\n FieldName: string\n MaxCaracters: string\n DomainValues: string\n}\n\nexport interface IAttachmentResponse {\n Name: string\n Id: number\n IsRequired: boolean\n IsActive: boolean\n Domains: IDomain[]\n}\n\nexport interface IAttachmentPayload {\n Id: number\n Name: string\n IsRequired: boolean\n IsActive: boolean\n Domains: IDomain[]\n}\n\nexport { AttachmentData, SubscriptionData, SkuAttachmentData }\n\n```" } ]
code_easy-setup_69972c70
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/brandData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst BrandData = {\n Active: true,\n AdWordsRemarketingCode: '',\n Id: 9280,\n Keywords: 'brand',\n LinkId: 'brand',\n LomadeeCampaignCode: '',\n MenuHome: true,\n Name: 'Brand',\n Score: null,\n SiteTitle: 'Brand',\n Text: 'Brand',\n}\n\nexport { BrandData }\n\n```" } ]
code_easy-setup_6fee7a9a
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/productData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { CreateProductData } from '../clients/CatalogClient/types'\n\nconst ProductData: CreateProductData[] = [\n {\n Id: 880001,\n Name: \"adidas Men's Performance Polo - Blast Blue\",\n DepartmentId: 9281, // Apparel\n CategoryId: 9281, // Apparel\n BrandId: 9280,\n LinkId: 'adidas-mens-performance-polo-blast-blue',\n RefId: '880001',\n IsVisible: true,\n Description:\n '<div id=\"ProDescList\">\\n<h2>adidas Men\\'s Performance Polo</h2>\\n</div>\\n\\n<div id=\"fandb\">\\n<ul>\\n\\t<li>Lightweight jersey fabric</li>\\n\\t<li>Regular fi</li>\\n\\t<li>UPF 30+</li>\\n\\t<li>Fold-down ribbed collar.</li>\\n\\t<li>Three-button placket.</li>\\n\\t<li>Straight hem.</li>\\n\\t<li>100% polyester.</li>\\n</ul>\\n</div>',\n DescriptionShort:\n \"adidas Men's Performance PoloLightweight jersey fabricRegular fiUPF 30+Fold-down ribbed collar.Three-button placket.Straight hem.100% polyester.\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"adidas Men's Performance Polo - Blast Blue\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"adidas Men's Performance PoloLightweight jersey fabricRegular fiUPF 30+Fold-down ribbed collar.Three-button placket.Straight hem.100% polyester.\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880002,\n Name: \"adidas Men's Performance Polo - Green Night\",\n DepartmentId: 9281, // Apparel\n CategoryId: 9281, // Apparel\n BrandId: 9280,\n LinkId: 'adidas-mens-performance-polo-green-night',\n RefId: '880002',\n IsVisible: true,\n Description:\n '<div id=\"ProDescList\">\\n<h2>adidas Men\\'s Performance Polo</h2>\\n</div>\\n\\n<div id=\"fandb\">\\n<ul>\\n\\t<li>Lightweight jersey fabric</li>\\n\\t<li>Regular fi</li>\\n\\t<li>UPF 30+</li>\\n\\t<li>Fold-down ribbed collar.</li>\\n\\t<li>Three-button placket.</li>\\n\\t<li>Straight hem.</li>\\n\\t<li>100% polyester.</li>\\n</ul>\\n</div>',\n DescriptionShort:\n \"adidas Men's Performance PoloLightweight jersey fabricRegular fiUPF 30+Fold-down ribbed collar.Three-button placket.Straight hem.100% polyester.\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"adidas Men's Performance Polo - Green Night\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"adidas Men's Performance PoloLightweight jersey fabricRegular fiUPF 30+Fold-down ribbed collar.Three-button placket.Straight hem.100% polyester.\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880003,\n Name: \"adidas Women's Microdot Polo - Night Indigo\",\n DepartmentId: 9281, // Apparel\n CategoryId: 9281, // Apparel\n BrandId: 9280,\n LinkId: 'adidas-womens-microdot-polo-night-indigo',\n RefId: '880003',\n IsVisible: true,\n Description:\n '<div id=\"ProDescList\">\\n<h2>adidas Women\\'s Microdot Polo</h2>\\n\\n<p>This women\\'s golf polo shirt is built to keep you on the course even in the heat. Made of soft and stretchy polyester that moves with your body, it has a five-button placket for classic golf style. Moisture-wicking fabric and built-in UV protection keep you feeling comfortable for all 18 holes.</p>\\n</div>\\n\\n<div id=\"fandb\">\\n<ul>\\n\\t<li>Regular fit is wider at the body, with a straight silhouette</li>\\n\\t<li>Five-button polo</li>\\n\\t<li>Short sleeves</li>\\n\\t<li>76% recycled polyester / 13% polyester / 11% elastane single jersey</li>\\n\\t<li>Lightweight fabric</li>\\n\\t<li>Moisture-wicking fabric; UPF 50+ UV protection</li>\\n</ul>\\n</div>',\n DescriptionShort:\n \"adidas Women's Microdot PoloThis women's golf polo shirt is built to keep you on the course even in the heat. Made of soft and stretchy polyester that moves with your body, it has a five-button placket for classic golf style. Moisture-wicking fabric and built-in UV protection keep you feeling comfortable for all 18 holes.Regular fit is wider at the body, with a straight silhouetteFive-button poloShort sleeves76% recycled polyester / 13% polyester / 11% elastane single jerseyLightweight fabricMoisture-wicking fabric; UPF 50+ UV protection\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"adidas Women's Microdot Polo - Night Indigo\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"adidas Women's Microdot PoloThis women's golf polo shirt is built to keep you on the course even in the heat. Made of soft and stretchy polyester that moves with your body, it has a five-button placket for classic golf style. Moisture-wicking fabric and built-in UV protection keep you feeling comfortable for all 18 holes.Regular fit is wider at the body, with a straight silhouetteFive-button poloShort sleeves76% recycled polyester / 13% polyester / 11% elastane single jerseyLightweight fabricMoisture-wicking fabric; UPF 50+ UV protection\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880004,\n Name: \"adidas Women's Microdot Polo - True Pink\",\n DepartmentId: 9281, // Apparel\n CategoryId: 9281, // Apparel\n BrandId: 9280,\n LinkId: 'adidas-womens-microdot-polo-true-pink',\n RefId: '880004',\n IsVisible: true,\n Description:\n '<div id=\"ProDescList\">\\n<h2>adidas Women\\'s Microdot Polo</h2>\\n\\n<p>This women\\'s golf polo shirt is built to keep you on the course even in the heat. Made of soft and stretchy polyester that moves with your body, it has a five-button placket for classic golf style. Moisture-wicking fabric and built-in UV protection keep you feeling comfortable for all 18 holes.</p>\\n</div>\\n\\n<div id=\"fandb\">\\n<ul>\\n\\t<li>Regular fit is wider at the body, with a straight silhouette</li>\\n\\t<li>Five-button polo</li>\\n\\t<li>Short sleeves</li>\\n\\t<li>76% recycled polyester / 13% polyester / 11% elastane single jersey</li>\\n\\t<li>Lightweight fabric</li>\\n\\t<li>Moisture-wicking fabric; UPF 50+ UV protection</li>\\n</ul>\\n</div>',\n DescriptionShort:\n \"adidas Women's Microdot PoloThis women's golf polo shirt is built to keep you on the course even in the heat. Made of soft and stretchy polyester that moves with your body, it has a five-button placket for classic golf style. Moisture-wicking fabric and built-in UV protection keep you feeling comfortable for all 18 holes.Regular fit is wider at the body, with a straight silhouetteFive-button poloShort sleeves76% recycled polyester / 13% polyester / 11% elastane single jerseyLightweight fabricMoisture-wicking fabric; UPF 50+ UV protection\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"adidas Women's Microdot Polo - True Pink\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"adidas Women's Microdot PoloThis women's golf polo shirt is built to keep you on the course even in the heat. Made of soft and stretchy polyester that moves with your body, it has a five-button placket for classic golf style. Moisture-wicking fabric and built-in UV protection keep you feeling comfortable for all 18 holes.Regular fit is wider at the body, with a straight silhouetteFive-button poloShort sleeves76% recycled polyester / 13% polyester / 11% elastane single jerseyLightweight fabricMoisture-wicking fabric; UPF 50+ UV protection\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880005,\n Name: \"Nike Men's Roshe G Spikeless Golf Shoes\",\n DepartmentId: 9283, // Sporting\n CategoryId: 9283, // Sporting\n BrandId: 9280,\n LinkId: 'nike-mens-roshe-g-spikeless-golf-shoes',\n RefId: '880005',\n IsVisible: true,\n Description:\n '<div id=\"ProDescList\">\\n<h2>Nike Men\\'s Roshe G Spikeless Golf Shoes</h2>\\n\\n<h4>Iconic Design. Lasting Comfort.</h4>\\n\\n<p>Nike Roshe G Men\\'s Golf Shoe features a pressure-mapped outsole that provides traction in key zones. Inspired by a Nike icon, the mesh upper offers breathability and a modern look, while the soft, flexible, foam midsole cushions every step.</p>\\n</div>\\n\\n<div id=\"fandb\">\\n<ul>\\n\\t<li>Pressure-mapped outsole provides traction in key zones</li>\\n\\t<li>Iconic mesh upper delivers breathability and style</li>\\n\\t<li>Injected midsole delivers soft, lightweight cushioning</li>\\n\\t<li>Elastic gusset on the tongue helps keep out debris</li>\\n\\t<li>Pull tabs on the heel and tongue offer easy on and off</li>\\n\\t<li>Cupsole-like design offers flexible, low-profile support and a stable feel</li>\\n</ul>\\n</div>',\n DescriptionShort:\n \"Nike Men's Roshe G Spikeless Golf ShoesIconic Design. Lasting Comfort.Nike Roshe G Men's Golf Shoe features a pressure-mapped outsole that provides traction in key zones. Inspired by a Nike icon, the mesh upper offers breathability and a modern look, while the soft, flexible, foam midsole cushions every step.Pressure-mapped outsole provides traction in key zonesIconic mesh upper delivers breathability and styleInjected midsole delivers soft, lightweight cushioningElastic gusset on the tongue helps keep out debrisPull tabs on the heel and tongue offer easy on and offCupsole-like design offers flexible, low-profile support and a stable feel\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"Nike Men's Roshe G Spikeless Golf Shoes\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"Nike Men's Roshe G Spikeless Golf ShoesIconic Design. Lasting Comfort.Nike Roshe G Men's Golf Shoe features a pressure-mapped outsole that provides traction in key zones. Inspired by a Nike icon, the mesh upper offers breathability and a modern look, while the soft, flexible, foam midsole cushions every step.Pressure-mapped outsole provides traction in key zonesIconic mesh upper delivers breathability and styleInjected midsole delivers soft, lightweight cushioningElastic gusset on the tongue helps keep out debrisPull tabs on the heel and tongue offer easy on and offCupsole-like design offers flexible, low-profile support and a stable feel\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880006,\n Name: \"Nike Men's Air Max 1 G Spikeless Golf Shoes\",\n DepartmentId: 9283, // Sporting\n CategoryId: 9283, // Sporting\n BrandId: 9280,\n LinkId: 'nike-mens-air-max-1-g-spikeless-golf-shoes',\n RefId: '880006',\n IsVisible: true,\n Description:\n '<div id=\"ProDescList\">\\n<h2>Nike Men\\'s Air Max 1 G Spikeless Golf Shoes</h2>\\n\\n<h4>AN ICON ON COURSE.</h4>\\n\\n<p>The Nike Air Max 1 G elevates an icon with details made for the course. Synthetic overlays mimic the design of the original Air Max 1, while helping keep your feet dry. A visible Max Air unit cushions each step for comfort from the first tee to the final green.</p>\\n</div>\\n\\n<div id=\"fandb\">\\n<ul>\\n\\t<li>No-sew overlays help keep water out</li>\\n\\t<li>Visible Max Air unit in the heel cushions each step</li>\\n\\t<li>Integrated Traction pattern enhances grip</li>\\n\\t<li>Design details are inspired by the original Nike Air Max 1</li>\\n\\t<li>Full-length Phylon foam midsole provides lightweight comfort and a stable feel</li>\\n\\t<li>&quot;Nike Air&quot; is debossed on the heel</li>\\n\\t<li>Inspired by Nike Articulated Integrated Traction, the outsole flexes with your foot to promote a smooth, heel-to-toe transition</li>\\n\\t<li>Debossed eyestays add durability</li>\\n</ul>\\n</div>',\n DescriptionShort:\n \"Nike Men's Air Max 1 G Spikeless Golf ShoesAN ICON ON COURSE.The Nike Air Max 1 G elevates an icon with details made for the course. Synthetic overlays mimic the design of the original Air Max 1, while helping keep your feet dry. A visible Max Air unit cushions each step for comfort from the first tee to the final green.No-sew overlays help keep water outVisible Max Air unit in the heel cushions each stepIntegrated Traction pattern enhances gripDesign details are inspired by the original Nike Air Max 1Full-length Phylon foam midsole provides lightweight comfort and a stable feelNike Air is debossed on the heelInspired by Nike Articulated Integrated Traction, the outsole flexes with your foot to promote a smooth, heel-to-toe transitionDebossed eyestays add durability\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"Nike Men's Air Max 1 G Spikeless Golf Shoes\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"Nike Men's Air Max 1 G Spikeless Golf ShoesAN ICON ON COURSE.The Nike Air Max 1 G elevates an icon with details made for the course. Synthetic overlays mimic the design of the original Air Max 1, while helping keep your feet dry. A visible Max Air unit cushions each step for comfort from the first tee to the final green.No-sew overlays help keep water outVisible Max Air unit in the heel cushions each stepIntegrated Traction pattern enhances gripDesign details are inspired by the original Nike Air Max 1Full-length Phylon foam midsole provides lightweight comfort and a stable feelNike Air is debossed on the heelInspired by Nike Articulated Integrated Traction, the outsole flexes with your foot to promote a smooth, heel-to-toe transitionDebossed eyestays add durability\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880007,\n Name: 'Nike Air Max 270 G Spikeless Golf Shoes',\n DepartmentId: 9283, // Sporting\n CategoryId: 9283, // Sporting\n BrandId: 9280,\n LinkId: 'nike-air-max-270-g-spikeless-golf-shoes',\n RefId: '880007',\n IsVisible: true,\n Description:\n '<div>\\n<h1>Nike Air Max 270 G Spikeless Golf Shoes</h1>\\n\\n<p>Look legendary in the Nike Air Max 270 G. The silhouette is a stitch-for-stitch reconstruction of the original big Air icon, with the addition of breathable mesh and innovative traction that performs at the highest level of play.</p>\\n</div>\\n\\n<p>&nbsp;</p>\\n\\n<div>\\n<div>\\n<p><img height=\"“470”\" src=\"Assets/product_images/ProductTechImages/Shoe_Size_Conversion_Chart.jpg\" width=\"“278”\" /></p>\\n</div>\\n\\n<ul>\\n\\t<li><strong>Flexible &amp; Breathable</strong> - Sleeve-like upper is a stitch-for-stitch reconstruction of the original Nike Air Max 270. The mesh has a flexible overlay that helps keep out of water and makes it easier to clean your shoes.</li>\\n\\t<li><strong>Cushioned Comfort </strong>- Foam midsole has a large Max Air unit for plush cushioning with each step.</li>\\n\\t<li><strong>Versatile Grip</strong> - Integrated traction pattern is designed to perform at the highest levels of play, while still being versatile enough to wear off course. The perimeter of the outsole is specially designed to enhance grip during rotational movements. External heel counter helps stabilize your foot.</li>\\n</ul>\\n</div>\\n\\n<p>&nbsp;</p>',\n DescriptionShort:\n 'Nike Air Max 270 G Spikeless Golf ShoesLook legendary in the Nike Air Max 270 G. The silhouette is a stitch-for-stitch reconstruction of the original big Air icon, with the addition of breathable mesh and innovative traction that performs at the highest level of play.Flexible Breathable - Sleeve-like upper is a stitch-for-stitch reconstruction of the original Nike Air Max 270. The mesh has a flexible overlay that helps keep out of water and makes it easier to clean your shoes.Cushioned Comfort - Foam midsole has a large Max Air unit for plush cushioning with each step.Versatile Grip - Integrated traction pattern is designed to perform at the highest levels of play, while still being versatile enough to wear off course. The perimeter of the outsole is specially designed to enhance grip during rotational movements. External heel counter helps stabilize your foot.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Nike Air Max 270 G Spikeless Golf Shoes',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Nike Air Max 270 G Spikeless Golf ShoesLook legendary in the Nike Air Max 270 G. The silhouette is a stitch-for-stitch reconstruction of the original big Air icon, with the addition of breathable mesh and innovative traction that performs at the highest level of play.Flexible Breathable - Sleeve-like upper is a stitch-for-stitch reconstruction of the original Nike Air Max 270. The mesh has a flexible overlay that helps keep out of water and makes it easier to clean your shoes.Cushioned Comfort - Foam midsole has a large Max Air unit for plush cushioning with each step.Versatile Grip - Integrated traction pattern is designed to perform at the highest levels of play, while still being versatile enough to wear off course. The perimeter of the outsole is specially designed to enhance grip during rotational movements. External heel counter helps stabilize your foot.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880008,\n Name: \"Skechers Women's Go Golf Drive 4 Dogs At Play Spikeless Golf Shoes\",\n DepartmentId: 9283, // Sporting\n CategoryId: 9283, // Sporting\n BrandId: 9280,\n LinkId: 'skechers-womens-go-golf-drive-4-dogs-at-play-spikeless-golf-shoes',\n RefId: '880008',\n IsVisible: true,\n Description:\n \"<div>\\n<h1>Skechers Women's Go Golf Drive 4 Dogs At Play Spikeless Golf Shoes</h1>\\n\\n<p>The Skechers GO GOLF Drive 4&trade; - Dogs At Play is ideally suited for style and comfort on the course. It combines innovative, lightweight athletic materials with our advanced ULTRA FLIGHT&trade; midsole and Goga Max&reg; Technology insole, perfect for all-day comfort from tee off to the 18th hole. Leather lace-up golf shoe with colorful dog designs.&nbsp;</p>\\n</div>\\n\\n<p>&nbsp;</p>\\n\\n<div>\\n<p><strong>Details</strong></p>\\n\\n<ul>\\n\\t<li>Skechers Goga Max&reg; Technology insole for high-rebound cushioning</li>\\n\\t<li>Ultra-lightweight, responsive ULTRA GO&trade; cushioning midsole</li>\\n\\t<li>Water repellent protection</li>\\n\\t<li>Smooth clean leather upper</li>\\n\\t<li>Durable rubber traction plate</li>\\n\\t<li>Breathable Dri-Lex&reg; moisture wicking lining</li>\\n</ul>\\n&nbsp;\\n\\n<p><strong>Construction</strong></p>\\n\\n<ul>\\n\\t<li>Smooth leather upper</li>\\n\\t<li>Colorful 'dogs playing golf' print designs on sides and heel panel for fun detail</li>\\n\\t<li>Side S logo</li>\\n\\t<li>Lace up front</li>\\n\\t<li>Padded collar and tongue</li>\\n\\t<li>Soft fabric shoe lining</li>\\n\\t<li>Flexible rubber outsole</li>\\n\\t<li>Weight: 9 oz. in a women's size 7</li>\\n\\t<li>1 inch heel</li>\\n</ul>\\n</div>\\n\\n<p>&nbsp;</p>\",\n DescriptionShort:\n \"Skechers Women's Go Golf Drive 4 Dogs At Play Spikeless Golf ShoesThe Skechers GO GOLF Drive 4 - Dogs At Play is ideally suited for style and comfort on the course. It combines innovative, lightweight athletic materials with our advanced ULTRA FLIGHT midsole and Goga Max Technology insole, perfect for all-day comfort from tee off to the 18th hole. Leather lace-up golf shoe with colorful dog designs.DetailsSkechers Goga Max Technology insole for high-rebound cushioningUltra-lightweight, responsive ULTRA GO cushioning midsoleWater repellent protectionSmooth clean leather upperDurable rubber traction plateBreathable Dri-Lex moisture wicking liningConstructionSmooth leather upperColorful 'dogs playing golf' print designs on sides and heel panel for fun detailSide S logoLace up frontPadded collar and tongueSoft fabric shoe liningFlexible rubber outsoleWeight: 9 oz. in a women's size 71 inch heel\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: \"Skechers Women's Go Golf Drive 4 Dogs At Play Spikeless Golf Shoes\",\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"Skechers Women's Go Golf Drive 4 Dogs At Play Spikeless Golf ShoesThe Skechers GO GOLF Drive 4 - Dogs At Play is ideally suited for style and comfort on the course. It combines innovative, lightweight athletic materials with our advanced ULTRA FLIGHT midsole and Goga Max Technology insole, perfect for all-day comfort from tee off to the 18th hole. Leather lace-up golf shoe with colorful dog designs.DetailsSkechers Goga Max Technology insole for high-rebound cushioningUltra-lightweight, responsive ULTRA GO cushioning midsoleWater repellent protectionSmooth clean leather upperDurable rubber traction plateBreathable Dri-Lex moisture wicking liningConstructionSmooth leather upperColorful 'dogs playing golf' print designs on sides and heel panel for fun detailSide S logoLace up frontPadded collar and tongueSoft fabric shoe liningFlexible rubber outsoleWeight: 9 oz. in a women's size 71 inch heel\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880009,\n Name:\n 'BLACK+DECKER 20V MAX Drill & Home Tool Kit, 68 Piece (LDX120PK),Black/Orange',\n DepartmentId: 9287, // Power Tools\n CategoryId: 9287, // Power Tools\n BrandId: 9280,\n LinkId:\n 'black-decker-20v-max-drill-home-tool-kit-68-piece-ldx120pk-black-orange',\n RefId: '880009',\n IsVisible: true,\n Description:\n '<h1 class=\"a-size-base-plus a-text-bold\">About this item</h1><ul class=\"a-unordered-list a-vertical a-spacing-mini\"><div id=\"hsx-rpp-bullet-fits-message\" class=\"aok-hidden\"><div class=\"a-box a-alert-inline a-alert-inline-success hsx-rpp-fitment-bullets\"><div class=\"a-box-inner a-alert-container\"><i class=\"a-icon a-icon-alert\"></i><div class=\"a-alert-content\">This fits your&nbsp;<span class=\"hsx-rpp-bullet-model-info\"></span>.</div></div></div></div><li id=\"replacementPartsFitmentBullet\" data-doesntfitmessage=\"We\\'re not sure this item fits your \" data-fitsmessage=\"This fits your \" class=\"aok-hidden\"><span class=\"a-list-item\"><span id=\"replacementPartsFitmentBulletInner\"> <a class=\"a-link-normal hsx-rpp-fitment-focus\" href=\"#\">Make sure this fits</a><span>by entering your model number.</span></span></span></li><li><span class=\"a-list-item\">Includes 20V Lithium drill for a variety of home projects, hanging pictures or wall decor, assembling furniture, updating fixtures, building birdhouses</span></li><li><span class=\"a-list-item\">Lithium ion battery: Always ready, holds a charge up to 18 months</span></li><li><span class=\"a-list-item\">The 11 position clutch prevents stripping and overdriving screws</span></li><li><span class=\"a-list-item\">Included components: (1) LDX120 drill/driver, (1) 20 volt max lithium ion battery, (1) charger, (1) storage bag, (1) tape measure, (1) adjustable wrench, (1) needle nose pliers, (2) manual screwdrivers, (1) utility knife, (1) slip joint pliers, (1) 12 ounce hammer, (1) ratcheting screwdriver, (4) hole saws with mandrel, (32) screwdriving bits, (1) magnetic bit holder, (10) drilling bits, (5) spade bits</span></li></ul>',\n DescriptionShort:\n 'The BLACK+DECKER LDX120PK 20V Max cordless drill and battery power project Kit is a great power tool set for a variety of home projects. Includes 20V cordless drill, which provides an extra level of control with an 11 position clutch that prevents stripping and overdriving screws. The lithium ion battery is always ready and holds a charge up to 18 months. This battery powered drill kit includes 68 hand tools and accessories and a carrying bag for easy portability and storage. Includes carrying bag for easy portability and storage.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'BLACK+DECKER 20V MAX Drill & Home Tool Kit, 68 Piece (LDX120PK),Black/Orange',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'The BLACK+DECKER LDX120PK 20V Max cordless drill and battery power project Kit is a great power tool set for a variety of home projects. Includes 20V cordless drill, which provides an extra level of control with an 11 position clutch that prevents stripping and overdriving screws. The lithium ion battery is always ready and holds a charge up to 18 months. This battery powered drill kit includes 68 hand tools and accessories and a carrying bag for easy portability and storage. Includes carrying bag for easy portability and storage.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880010,\n Name:\n 'BLACK+DECKER 20V MAX Cordless Drill / Driver with 30-Piece Accessories (LD120VA)',\n DepartmentId: 9287, // Power Tools\n CategoryId: 9287, // Power Tools\n BrandId: 9280,\n LinkId:\n 'black-decker-20v-max-cordless-drill-driver-with-30-piece-acessories-ld120va',\n RefId: '880010',\n IsVisible: true,\n Description:\n \"The Black and Decker LD120-VoltA 20-Volt Max Lithium Drill/Driver with 30 Accessories come with the Black and Decker 20-volt max Lithium Ion Battery. These batteries are always ready, holding a charge up to 18 months. This drill provides an extra level of control with a 24 position clutch that helps to prevent stripping and overdriving screws. It has a soft grip handle that provides added comfort during use and a light weight to prevent user fatigue. This drill is ideal for drilling and screwdriving through wood, metal, and plastic. The LD120-VoltA set includes: LD120 20-Volt MAX Lithium Drill/Driver, (1) LB20 20-Volt MAX Lithium Ion Battery, (1) LCS20 Charger, (6) Brad Point Drill Bits, (10) 1-Inch Screwdriving Bits, (9) 2-Inch Screwdriving Bits, (4) Nut Drivers, (1) Magnetic Bit Tip Holder and is backed by Black and Decker's 2 year limited warranty.\",\n DescriptionShort:\n \"The Black and Decker LD120-VoltA 20-Volt Max Lithium Drill/Driver with 30 Accessories come with the Black and Decker 20-volt max Lithium Ion Battery. These batteries are always ready, holding a charge up to 18 months. This drill provides an extra level of control with a 24 position clutch that helps to prevent stripping and overdriving screws. It has a soft grip handle that provides added comfort during use and a light weight to prevent user fatigue. This drill is ideal for drilling and screwdriving through wood, metal, and plastic. The LD120-VoltA set includes: LD120 20-Volt MAX Lithium Drill/Driver, (1) LB20 20-Volt MAX Lithium Ion Battery, (1) LCS20 Charger, (6) Brad Point Drill Bits, (10) 1-Inch Screwdriving Bits, (9) 2-Inch Screwdriving Bits, (4) Nut Drivers, (1) Magnetic Bit Tip Holder and is backed by Black and Decker's 2 year limited warranty.\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'BLACK+DECKER 20V MAX Cordless Drill / Driver with 30-Piece Accessories (LD120VA)',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"The Black and Decker LD120-VoltA 20-Volt Max Lithium Drill/Driver with 30 Accessories come with the Black and Decker 20-volt max Lithium Ion Battery. These batteries are always ready, holding a charge up to 18 months. This drill provides an extra level of control with a 24 position clutch that helps to prevent stripping and overdriving screws. It has a soft grip handle that provides added comfort during use and a light weight to prevent user fatigue. This drill is ideal for drilling and screwdriving through wood, metal, and plastic. The LD120-VoltA set includes: LD120 20-Volt MAX Lithium Drill/Driver, (1) LB20 20-Volt MAX Lithium Ion Battery, (1) LCS20 Charger, (6) Brad Point Drill Bits, (10) 1-Inch Screwdriving Bits, (9) 2-Inch Screwdriving Bits, (4) Nut Drivers, (1) Magnetic Bit Tip Holder and is backed by Black and Decker's 2 year limited warranty.\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880011,\n Name:\n 'BLACK+DECKER 20V Max Cordless Chainsaw, 10-Inch, Tool Only (LCS1020B)',\n DepartmentId: 9287, // Power Tools\n CategoryId: 9287, // Power Tools\n BrandId: 9280,\n LinkId: 'black-decker-20v-max-cordless-chainsaw-10-inch-tool-only-lcs1020b',\n RefId: '880011',\n IsVisible: true,\n Description:\n 'The BLACK+DECKER LCS1020B 10-inch 20v MAX Lithium Chainsaw is a bare tool item that operates with a 20v max lithium battery - (bare tool items do not include a battery). This saw offers a 10-inch premium Oregon low kickback bar & chain that provides smooth and fast cuts. The tool-free blade tension system allows for improved ease of use and quick adjustments and it has a lightweight design for ease of maneuverability and reduced fatigue at only 7.2 Pounds. The wrap around bale handle provides increased control and comfort. And, as an added features, this unit has an improved oiling system with a clear window to gauge oil level. Battery sold separately.',\n DescriptionShort:\n 'The BLACK+DECKER LCS1020B 10-inch 20v MAX Lithium Chainsaw is a bare tool item that operates with a 20v max lithium battery - (bare tool items do not include a battery). This saw offers a 10-inch premium Oregon low kickback bar & chain that provides smooth and fast cuts. The tool-free blade tension system allows for improved ease of use and quick adjustments and it has a lightweight design for ease of maneuverability and reduced fatigue at only 7.2 Pounds. The wrap around bale handle provides increased control and comfort. And, as an added features, this unit has an improved oiling system with a clear window to gauge oil level. Battery sold separately.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'BLACK+DECKER 20V Max Cordless Chainsaw, 10-Inch, Tool Only (LCS1020B)',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'The BLACK+DECKER LCS1020B 10-inch 20v MAX Lithium Chainsaw is a bare tool item that operates with a 20v max lithium battery - (bare tool items do not include a battery). This saw offers a 10-inch premium Oregon low kickback bar & chain that provides smooth and fast cuts. The tool-free blade tension system allows for improved ease of use and quick adjustments and it has a lightweight design for ease of maneuverability and reduced fatigue at only 7.2 Pounds. The wrap around bale handle provides increased control and comfort. And, as an added features, this unit has an improved oiling system with a clear window to gauge oil level. Battery sold separately.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880012,\n Name:\n 'BLACK+DECKER 20V MAX Cordless Drill Combo Kit, 2-Tool (BD2KITCDDI),Black/Orange Impact Combo Kit',\n DepartmentId: 9287, // Power Tools\n CategoryId: 9287, // Power Tools\n BrandId: 9280,\n LinkId:\n 'black-decker-20v-max-cordless-drill-combo-kit-2-tool-bd2kitcddi-black-orange-impact-combo-kit',\n RefId: '880012',\n IsVisible: true,\n Description:\n 'The BLACK+DECKER BD2KITCDDI 20V max* drill/Driver + impact Driver Combo Kit is part of the BLACK+DECKER 20V max* battery system; compatible with the full line of Black & Decker 20-Volt max line of power and gardening tools. The drill/Driver features an 11 position Clutch to Avoid stripping screws and damaging work surface with a LED work light to illuminate the work surface, Keyless chuck, 0-650rpm. It offers a lightweight compact design which makes it easy to use in tight and confined spaces. This drill/Driver is ideal for drilling into wood, metal plastic and all screw driving tasks. Impact Driver features a high performance transmission that delivers 1375 in-lbs of max torque. It also offers a quick release 1/4-inch hex chuck, 0-8000rpm, 0-3900ipm, and an LED work light. Backed by black+deckers 2 year warranty. Kit includes: (1) Ldx120 drill/Driver, (1) Bdci20 impact Driver, (1) LBXR20 20V max* battery, (1) battery charger, (1) Double-ended driver bit',\n DescriptionShort:\n 'The BLACK+DECKER BD2KITCDDI 20V max* drill/Driver + impact Driver Combo Kit is part of the BLACK+DECKER 20V max* battery system; compatible with the full line of Black & Decker 20-Volt max line of power and gardening tools. The drill/Driver features an 11 position Clutch to Avoid stripping screws and damaging work surface with a LED work light to illuminate the work surface, Keyless chuck, 0-650rpm. It offers a lightweight compact design which makes it easy to use in tight and confined spaces. This drill/Driver is ideal for drilling into wood, metal plastic and all screw driving tasks. Impact Driver features a high performance transmission that delivers 1375 in-lbs of max torque. It also offers a quick release 1/4-inch hex chuck, 0-8000rpm, 0-3900ipm, and an LED work light. Backed by black+deckers 2 year warranty. Kit includes: (1) Ldx120 drill/Driver, (1) Bdci20 impact Driver, (1) LBXR20 20V max* battery, (1) battery charger, (1) Double-ended driver bit',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'BLACK+DECKER 20V MAX Cordless Drill Combo Kit, 2-Tool (BD2KITCDDI),Black/Orange Impact Combo Kit',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'The BLACK+DECKER BD2KITCDDI 20V max* drill/Driver + impact Driver Combo Kit is part of the BLACK+DECKER 20V max* battery system; compatible with the full line of Black & Decker 20-Volt max line of power and gardening tools. The drill/Driver features an 11 position Clutch to Avoid stripping screws and damaging work surface with a LED work light to illuminate the work surface, Keyless chuck, 0-650rpm. It offers a lightweight compact design which makes it easy to use in tight and confined spaces. This drill/Driver is ideal for drilling into wood, metal plastic and all screw driving tasks. Impact Driver features a high performance transmission that delivers 1375 in-lbs of max torque. It also offers a quick release 1/4-inch hex chuck, 0-8000rpm, 0-3900ipm, and an LED work light. Backed by black+deckers 2 year warranty. Kit includes: (1) Ldx120 drill/Driver, (1) Bdci20 impact Driver, (1) LBXR20 20V max* battery, (1) battery charger, (1) Double-ended driver bit',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880013,\n Name:\n 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw, Tool Only (BDCCS20B)',\n DepartmentId: 9287, // Power Tools\n CategoryId: 9287, // Power Tools\n BrandId: 9280,\n LinkId:\n 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-tool-conly-bdccs20b',\n RefId: '880013',\n IsVisible: true,\n Description:\n 'The Black & Decker BDCCS20B 20v Max 5-1/2 Circular Saw Bare Tool is designed with a powerful high torque motor. This saw features a tool free Depth of Cut and an easy to use bevel adjustment which allows for accurate angled cuts. An included 5-1/2 blade provides smooth and fast cutting ideal for tough, everyday jobs. The compact design is great for ease of use. This tool works with the entire Black & Decker 20v Max system. Tool only - battery sold separately. Included Components: (1) BDCCS20 Circular Saw',\n DescriptionShort:\n 'The Black & Decker BDCCS20B 20v Max 5-1/2 Circular Saw Bare Tool is designed with a powerful high torque motor. This saw features a tool free Depth of Cut and an easy to use bevel adjustment which allows for accurate angled cuts. An included 5-1/2 blade provides smooth and fast cutting ideal for tough, everyday jobs. The compact design is great for ease of use. This tool works with the entire Black & Decker 20v Max system. Tool only - battery sold separately. Included Components: (1) BDCCS20 Circular Saw',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw, Tool Only (BDCCS20B)',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'The Black & Decker BDCCS20B 20v Max 5-1/2 Circular Saw Bare Tool is designed with a powerful high torque motor. This saw features a tool free Depth of Cut and an easy to use bevel adjustment which allows for accurate angled cuts. An included 5-1/2 blade provides smooth and fast cutting ideal for tough, everyday jobs. The compact design is great for ease of use. This tool works with the entire Black & Decker 20v Max system. Tool only - battery sold separately. Included Components: (1) BDCCS20 Circular Saw',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880014,\n Name: 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw (BDCCS20C)',\n DepartmentId: 9287, // Power Tools\n CategoryId: 9287, // Power Tools\n BrandId: 9280,\n LinkId: 'black-decker-20v-max-5-1-2-inch-cordless-circular-saw-bdccs20c',\n RefId: '880014',\n IsVisible: true,\n Description:\n 'The BLACK+DECKER BDCCS20C 20V max* 5-1/2-inch Circular saw is designed with a powerful high torque motor. This saw features a tool free depth of cut and an easy to use bevel adjustment which allows for accurate angled cuts. An included 5-1/2-inch blade provides smooth and fast cutting ideal for tough, everyday jobs. The compact design is great for ease of use. This tool works with the entire black & Decker 20V max* system. High torque motor 5-1/2-inch. Fast cutting blade for a variety of cuts, bevel adjustment with detents at 45 and 90 degrees, tool-free depth of cut allows for easy depth adjustments. Backed by BLACK+DECKER 2 year limited warranty. Includes: 1) Circular saw, 1) 20V max* Lithium battery, charger.',\n DescriptionShort:\n 'The BLACK+DECKER BDCCS20C 20V max* 5-1/2-inch Circular saw is designed with a powerful high torque motor. This saw features a tool free depth of cut and an easy to use bevel adjustment which allows for accurate angled cuts. An included 5-1/2-inch blade provides smooth and fast cutting ideal for tough, everyday jobs. The compact design is great for ease of use. This tool works with the entire black & Decker 20V max* system. High torque motor 5-1/2-inch. Fast cutting blade for a variety of cuts, bevel adjustment with detents at 45 and 90 degrees, tool-free depth of cut allows for easy depth adjustments. Backed by BLACK+DECKER 2 year limited warranty. Includes: 1) Circular saw, 1) 20V max* Lithium battery, charger.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw (BDCCS20C)',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'The BLACK+DECKER BDCCS20C 20V max* 5-1/2-inch Circular saw is designed with a powerful high torque motor. This saw features a tool free depth of cut and an easy to use bevel adjustment which allows for accurate angled cuts. An included 5-1/2-inch blade provides smooth and fast cutting ideal for tough, everyday jobs. The compact design is great for ease of use. This tool works with the entire black & Decker 20V max* system. High torque motor 5-1/2-inch. Fast cutting blade for a variety of cuts, bevel adjustment with detents at 45 and 90 degrees, tool-free depth of cut allows for easy depth adjustments. Backed by BLACK+DECKER 2 year limited warranty. Includes: 1) Circular saw, 1) 20V max* Lithium battery, charger.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880015,\n Name: 'Acer Aspire Z24-890-UA91 AIO Desktop - Windows 10',\n DepartmentId: 9286, // Computer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'acer-aspire-z24-890-ua91-aio-desktop',\n RefId: '880015',\n IsVisible: true,\n Description: 'Acer Aspire Z24 890 UA91 All in One desktop PC',\n DescriptionShort: 'Acer Aspire Z24 890 UA91 All in One desktop PC',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Acer Aspire Z24-890-UA91 AIO Desktop - Windows 10',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: 'Acer Aspire Z24 890 UA91 All in One desktop PC',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880016,\n Name: 'Lenovo IdeaCentre AIO 3 - Windows 10',\n DepartmentId: 9286, // Computer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'lenovo-ideacentre-aio-3-24-inch-all-in-one-computer',\n RefId: '880016',\n IsVisible: true,\n Description:\n 'With the Lenovo IdeaCentre AIO 3, powerful performance meets stylish engineering in an all-in-one computer. This AIO desktop PC handles demanding apps with ease thanks to the ultra-fast responsiveness of an AMD Ryzen mobile processor, 16GB of seamless DDR4 memory, and 512GB solid-state drive storage. You will love the elegant stand and near-borderless display, and because it is an all-in-one, it gives you more desk space, too, whether you want to work, watch, or video call someone. The IdeaCentre AIO 3 is an all-in-one PC that is perfect for home users, busy college students, and anyone looking for a reliable Windows desktop that looks as good as it performs. The eye-catching design of the IdeaCentre AIO 3 will look great anywhere, while the stylish stand and base have a small footprint. When you connect smartphones, digital cameras, and other devices to a PC, you usually end up with a sea of messy cables across your desk. Not so with this all-in-one desktop, which has a cable collector built into its stand to give you more space to work and play with. A seriously sleek performer, you will enjoy a 23.8-inch FHD (1920 x 1080) display. A 720p webcam is included – and you can use the TrueBlock privacy shutter to physically close your webcam with just a flick of the button.',\n DescriptionShort:\n 'With the Lenovo IdeaCentre AIO 3, powerful performance meets stylish engineering in an all-in-one computer. This AIO desktop PC handles demanding apps with ease thanks to the ultra-fast responsiveness of an AMD Ryzen mobile processor, 16GB of seamless DDR4 memory, and 512GB solid-state drive storage. You will love the elegant stand and near-borderless display, and because it is an all-in-one, it gives you more desk space, too, whether you want to work, watch, or video call someone. The IdeaCentre AIO 3 is an all-in-one PC that is perfect for home users, busy college students, and anyone looking for a reliable Windows desktop that looks as good as it performs. The eye-catching design of the IdeaCentre AIO 3 will look great anywhere, while the stylish stand and base have a small footprint. When you connect smartphones, digital cameras, and other devices to a PC, you usually end up with a sea of messy cables across your desk. Not so with this all-in-one desktop, which has a cable collector built into its stand to give you more space to work and play with. A seriously sleek performer, you will enjoy a 23.8-inch FHD (1920 x 1080) display. A 720p webcam is included – and you can use the TrueBlock privacy shutter to physically close your webcam with just a flick of the button.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Lenovo IdeaCentre AIO 3 - Windows 10',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'With the Lenovo IdeaCentre AIO 3, powerful performance meets stylish engineering in an all-in-one computer. This AIO desktop PC handles demanding apps with ease thanks to the ultra-fast responsiveness of an AMD Ryzen mobile processor, 16GB of seamless DDR4 memory, and 512GB solid-state drive storage. You will love the elegant stand and near-borderless display, and because it is an all-in-one, it gives you more desk space, too, whether you want to work, watch, or video call someone. The IdeaCentre AIO 3 is an all-in-one PC that is perfect for home users, busy college students, and anyone looking for a reliable Windows desktop that looks as good as it performs. The eye-catching design of the IdeaCentre AIO 3 will look great anywhere, while the stylish stand and base have a small footprint. When you connect smartphones, digital cameras, and other devices to a PC, you usually end up with a sea of messy cables across your desk. Not so with this all-in-one desktop, which has a cable collector built into its stand to give you more space to work and play with. A seriously sleek performer, you will enjoy a 23.8-inch FHD (1920 x 1080) display. A 720p webcam is included – and you can use the TrueBlock privacy shutter to physically close your webcam with just a flick of the button.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880017,\n Name: 'Acer Aspire TC-885-UA92 Desktop - Windows 10',\n DepartmentId: 9286, // Computer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'acer-aspire-atc-885-ua92-desktop',\n RefId: '880017',\n IsVisible: true,\n Description:\n 'Acer Aspire TC-885-UA92 Desktop PC comes with these specs: 9th Generation Intel Core i5-9800 Processor 2.9GHz with Turbo Boost 2.0 Technology up to 4.1GHz, Windows 10 Home, 12GB DDR4 2666MHz RAM Memory, Intel UHD Graphics 630, 8X DVD-Writer Double-Layer Drive (DVD-RW), 512GB SSD, High-Def Audio with 5.1-Channel Surround Sound Support, 1 - USB 3.1 Type C Gen 2 port (up to 10 Gbps) (Front), 1 - USB 3.1 Gen 2 Port (Front), 2 - USB 3.1 Gen 1 Ports (Rear), 4 - USB 2.0 Ports (Rear), 2 - HDMI Ports (Rear), 1 - VGA Port (Rear), 802.11ac WiFi, 10/100/1000 Gigabit Ethernet LAN (RJ-45 Port), Bluetooth 5.0, 300W Power Supply, USB Keyboard and Optical Mouse, 17.2 lbs. | 7.8 kg (system unit only), 1 Year Parts and Labor Limited Warranty with Toll Free Tech Support (DT.BAPAA.031, DT.BDGAA.002). Wireless LAN Standard - IEEE 802.11ac',\n DescriptionShort:\n 'Acer Aspire TC-885-UA92 Desktop PC comes with these specs: 9th Generation Intel Core i5-9800 Processor 2.9GHz with Turbo Boost 2.0 Technology up to 4.1GHz, Windows 10 Home, 12GB DDR4 2666MHz RAM Memory, Intel UHD Graphics 630, 8X DVD-Writer Double-Layer Drive (DVD-RW), 512GB SSD, High-Def Audio with 5.1-Channel Surround Sound Support, 1 - USB 3.1 Type C Gen 2 port (up to 10 Gbps) (Front), 1 - USB 3.1 Gen 2 Port (Front), 2 - USB 3.1 Gen 1 Ports (Rear), 4 - USB 2.0 Ports (Rear), 2 - HDMI Ports (Rear), 1 - VGA Port (Rear), 802.11ac WiFi, 10/100/1000 Gigabit Ethernet LAN (RJ-45 Port), Bluetooth 5.0, 300W Power Supply, USB Keyboard and Optical Mouse, 17.2 lbs. | 7.8 kg (system unit only), 1 Year Parts and Labor Limited Warranty with Toll Free Tech Support (DT.BAPAA.031, DT.BDGAA.002). Wireless LAN Standard - IEEE 802.11ac',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Acer Aspire TC-885-UA92 Desktop - Windows 10',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Acer Aspire TC-885-UA92 Desktop PC comes with these specs: 9th Generation Intel Core i5-9800 Processor 2.9GHz with Turbo Boost 2.0 Technology up to 4.1GHz, Windows 10 Home, 12GB DDR4 2666MHz RAM Memory, Intel UHD Graphics 630, 8X DVD-Writer Double-Layer Drive (DVD-RW), 512GB SSD, High-Def Audio with 5.1-Channel Surround Sound Support, 1 - USB 3.1 Type C Gen 2 port (up to 10 Gbps) (Front), 1 - USB 3.1 Gen 2 Port (Front), 2 - USB 3.1 Gen 1 Ports (Rear), 4 - USB 2.0 Ports (Rear), 2 - HDMI Ports (Rear), 1 - VGA Port (Rear), 802.11ac WiFi, 10/100/1000 Gigabit Ethernet LAN (RJ-45 Port), Bluetooth 5.0, 300W Power Supply, USB Keyboard and Optical Mouse, 17.2 lbs. | 7.8 kg (system unit only), 1 Year Parts and Labor Limited Warranty with Toll Free Tech Support (DT.BAPAA.031, DT.BDGAA.002). Wireless LAN Standard - IEEE 802.11ac',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880018,\n Name: 'CYBERPOWERPC Gamer Xtreme VR Gaming PC - Windows 10',\n DepartmentId: 9286, // Computer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'cyberpowerpc-gamer-xtreme-vr-gaming-pc-gxivr8060a8-black',\n RefId: '880018',\n IsVisible: true,\n Description:\n 'Destroy the competition with the Cyber PowerPC Gamer Xtreme VR series of gaming desktops. The Gamer Xtreme VR series features the latest generation of high performance Intel Core processors and ultra-quick DDR RAM to easily handle system-intensive tasks, such as high definition video playback and gaming. Coupled with powerful discreet video cards, the Gamer Xtreme series provides a smooth gaming and multimedia experience.',\n DescriptionShort:\n 'Destroy the competition with the Cyber PowerPC Gamer Xtreme VR series of gaming desktops. The Gamer Xtreme VR series features the latest generation of high performance Intel Core processors and ultra-quick DDR RAM to easily handle system-intensive tasks, such as high definition video playback and gaming. Coupled with powerful discreet video cards, the Gamer Xtreme series provides a smooth gaming and multimedia experience.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'CYBERPOWERPC Gamer Xtreme VR Gaming PC - Windows 10',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Destroy the competition with the Cyber PowerPC Gamer Xtreme VR series of gaming desktops. The Gamer Xtreme VR series features the latest generation of high performance Intel Core processors and ultra-quick DDR RAM to easily handle system-intensive tasks, such as high definition video playback and gaming. Coupled with powerful discreet video cards, the Gamer Xtreme series provides a smooth gaming and multimedia experience.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880019,\n Name: 'Acer Aspire 5 Slim Laptop - Windows 10',\n DepartmentId: 9286, // Computer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'acer-aspire-5-slim-laptop-a515-43-r19l-silver',\n RefId: '880019',\n IsVisible: true,\n Description:\n 'Acer Aspire 5 A515-43-R19L comes with these high level specs: AMD Ryzen 3 3200U Dual-Core Processor 2.6GHz with Precision Boost up to 3.5GHz (Up to 4MB L3 Cache), Windows 10 in S mode, 15.6-inch Full HD (1920 x 1080) widescreen LED-backlit IPS Display, AMD Radeon Vega 3 Mobile Graphics, 4GB DDR4 Memory, 128GB PCIe NVMe SSD, True Harmony Technology, Two Built-in Stereo Speakers, Acer Purified.Voice Technology with Two Built-in Microphones, 802.11ac WiFi featuring 2x2 MIMO technology (Dual-Band 2.4GHz and 5GHz), 10/100/1000 Gigabit Ethernet LAN (RJ-45 port), Bluetooth 4.0, Back-lit Keyboard, HD Webcam (1280 x 720), 1 - USB 3.1 Gen 1 Port, 2 - USB 2.0 Ports, 1 - HDMI Port with HDCP support, Lithium-Ion Battery, Up to 7.5-hours Battery Life, 3.97 lbs. | 1.8 kg (system unit only) (NX.HG8AA.001).',\n DescriptionShort:\n 'Acer Aspire 5 A515-43-R19L comes with these high level specs: AMD Ryzen 3 3200U Dual-Core Processor 2.6GHz with Precision Boost up to 3.5GHz (Up to 4MB L3 Cache), Windows 10 in S mode, 15.6-inch Full HD (1920 x 1080) widescreen LED-backlit IPS Display, AMD Radeon Vega 3 Mobile Graphics, 4GB DDR4 Memory, 128GB PCIe NVMe SSD, True Harmony Technology, Two Built-in Stereo Speakers, Acer Purified.Voice Technology with Two Built-in Microphones, 802.11ac WiFi featuring 2x2 MIMO technology (Dual-Band 2.4GHz and 5GHz), 10/100/1000 Gigabit Ethernet LAN (RJ-45 port), Bluetooth 4.0, Back-lit Keyboard, HD Webcam (1280 x 720), 1 - USB 3.1 Gen 1 Port, 2 - USB 2.0 Ports, 1 - HDMI Port with HDCP support, Lithium-Ion Battery, Up to 7.5-hours Battery Life, 3.97 lbs. | 1.8 kg (system unit only) (NX.HG8AA.001).',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Acer Aspire 5 Slim Laptop - Windows 10',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Acer Aspire 5 A515-43-R19L comes with these high level specs: AMD Ryzen 3 3200U Dual-Core Processor 2.6GHz with Precision Boost up to 3.5GHz (Up to 4MB L3 Cache), Windows 10 in S mode, 15.6-inch Full HD (1920 x 1080) widescreen LED-backlit IPS Display, AMD Radeon Vega 3 Mobile Graphics, 4GB DDR4 Memory, 128GB PCIe NVMe SSD, True Harmony Technology, Two Built-in Stereo Speakers, Acer Purified.Voice Technology with Two Built-in Microphones, 802.11ac WiFi featuring 2x2 MIMO technology (Dual-Band 2.4GHz and 5GHz), 10/100/1000 Gigabit Ethernet LAN (RJ-45 port), Bluetooth 4.0, Back-lit Keyboard, HD Webcam (1280 x 720), 1 - USB 3.1 Gen 1 Port, 2 - USB 2.0 Ports, 1 - HDMI Port with HDCP support, Lithium-Ion Battery, Up to 7.5-hours Battery Life, 3.97 lbs. | 1.8 kg (system unit only) (NX.HG8AA.001).',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880020,\n Name: 'Jumper EZbook X3 Windows 10 Laptop',\n DepartmentId: 9286, // Computer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'jumper-ezbook-x3-windows-10-laptop',\n RefId: '880020',\n IsVisible: true,\n Description:\n 'CPU: Apollo N3350\\nOS: Windows 10 preinstalled\\nFrequency: 1.1GHz-2.4GHz,Dual Core\\nMemory: 6GB DDR3L\\nInternal storage: 64GB eMMC\\nVideo card: HD Graphics 800\\nCamera: HD Camera\\nAudio: Dual horn\\nBattery: 7.6V/4800mAh\\nTF card: support up to 256GB expansion',\n DescriptionShort:\n 'CPU: Apollo N3350\\nOS: Windows 10 preinstalled\\nFrequency: 1.1GHz-2.4GHz,Dual Core\\nMemory: 6GB DDR3L\\nInternal storage: 64GB eMMC\\nVideo card: HD Graphics 800\\nCamera: HD Camera\\nAudio: Dual horn\\nBattery: 7.6V/4800mAh\\nTF card: support up to 256GB expansion',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Jumper EZbook X3 Windows 10 Laptop',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'CPU: Apollo N3350\\nOS: Windows 10 preinstalled\\nFrequency: 1.1GHz-2.4GHz,Dual Core\\nMemory: 6GB DDR3L\\nInternal storage: 64GB eMMC\\nVideo card: HD Graphics 800\\nCamera: HD Camera\\nAudio: Dual horn\\nBattery: 7.6V/4800mAh\\nTF card: support up to 256GB expansion',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880040,\n Name: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n DepartmentId: 9282, // Co6mputer & Software\n CategoryId: 9286, // Computer & Software\n BrandId: 9280,\n LinkId: 'acer-aspire-z24-890-acer-aspire-atc-885',\n RefId: '880040',\n IsVisible: true,\n Description: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n DescriptionShort: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880021,\n Name: 'Weber 45010001 Spirit II E-310 3-Burner Liquid Propane Grill, Black',\n DepartmentId: 9285, // Home Appliance\n CategoryId: 9285, // Home Appliance\n BrandId: 9280,\n LinkId: 'weber-spirit-ii-e-310-3-burner-liquid-propane-grill',\n RefId: '880021',\n IsVisible: true,\n Description:\n 'Get ready to step up your grilling experience. As the family sits down for dinner, or a couple of friends come over for a bite - This three burner grill will do its magic. With the spacious cooking area You can sear steaks on one side while grilling an appetizer on the other, & The convenient open-cart allows you to keep your tools & equipment within reach. Armed with the strong GS4 grilling system & grill 3 compatible (sold separately), This gas grill is sure to take you & your meals to the next level.',\n DescriptionShort:\n 'Get ready to step up your grilling experience. As the family sits down for dinner, or a couple of friends come over for a bite - This three burner grill will do its magic. With the spacious cooking area You can sear steaks on one side while grilling an appetizer on the other, & The convenient open-cart allows you to keep your tools & equipment within reach. Armed with the strong GS4 grilling system & grill 3 compatible (sold separately), This gas grill is sure to take you & your meals to the next level.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'Weber 45010001 Spirit II E-310 3-Burner Liquid Propane Grill, Black',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Get ready to step up your grilling experience. As the family sits down for dinner, or a couple of friends come over for a bite - This three burner grill will do its magic. With the spacious cooking area You can sear steaks on one side while grilling an appetizer on the other, & The convenient open-cart allows you to keep your tools & equipment within reach. Armed with the strong GS4 grilling system & grill 3 compatible (sold separately), This gas grill is sure to take you & your meals to the next level.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880022,\n Name:\n 'iRobot Roomba 675 Robot Vacuum-Wi-Fi Connectivity, Works with Alexa, Good for Pet Hair, Carpets, Hard Floors, Self-Charging',\n DepartmentId: 9285, // Home Appliance\n CategoryId: 9285, // Home Appliance\n BrandId: 9280,\n LinkId: 'irobot-roomba-675-robot-vacuum-wi-fi-connectivity',\n RefId: '880022',\n IsVisible: true,\n Description:\n 'Connect to clean from anywhere with the Roomba 675 robot vacuum. The patented 3-Stage Cleaning System is specially engineered to loosen, lift, and suction everything from small particles to large debris from carpets and hard floors. Just press Clean or schedule Roomba on the go with the iRobot HOME App.',\n DescriptionShort:\n 'Connect to clean from anywhere with the Roomba 675 robot vacuum. The patented 3-Stage Cleaning System is specially engineered to loosen, lift, and suction everything from small particles to large debris from carpets and hard floors. Just press Clean or schedule Roomba on the go with the iRobot HOME App.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'iRobot Roomba 675 Robot Vacuum-Wi-Fi Connectivity, Works with Alexa, Good for Pet Hair, Carpets, Hard Floors, Self-Charging',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Connect to clean from anywhere with the Roomba 675 robot vacuum. The patented 3-Stage Cleaning System is specially engineered to loosen, lift, and suction everything from small particles to large debris from carpets and hard floors. Just press Clean or schedule Roomba on the go with the iRobot HOME App.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880023,\n Name:\n 'ALROCKET Dehumidifier 35oz(1000ml) Small Dehumidifier for 2100 Cubic Feet (260 sq ft) Portable and Compact Ultra Quiet',\n DepartmentId: 9285, // Home Appliance\n CategoryId: 9285, // Home Appliance\n BrandId: 9280,\n LinkId: 'alrocket-dehumidifier',\n RefId: '880023',\n IsVisible: true,\n Description:\n \"High-Efficiency Dehumify:ALROCKET portable dehumidifier with 35oz(1000ml) capacity tank extracts up to 16oz(450ml) of water daily in a humid environment of 86°F and 80% RH. ALROCKET dehumidifier helps you improve air quality and create a comfortable and clean living environment for you. Ultra Quiet: ALROCKET small dehumidifier Built-in Thermo-Electric Tech(Peltier) operation which means whisper-quiet(39db). Allowing you to run it all day and night without any loud or disturbing noises. Energy Saving-Healthy: This mini dehumidifier is effective and energy saving with a power only 40W/hour which means using only 0.96kW of electricity after running for 24 hours. It's environmentally friendly and more affordable than traditional chemical absorbents. Auto-Shutoff Function: This dehumidifier will auto shut off (When the water of the tank reaches between 24oz and 27oz) to protect from the risk of overflow. And the light turns red when shut off. Note: Product optimal operating temperature is 41°F-122°F, below 41°F the effect of dehumidification is not obvious. Contact us if you have any questions. Portable and Compact: One-touch switch design helps you easily operate the unit. The size (5.7 x 5.7 x 8.9 inches) and lightweight (2.87lb). Ideal for rooms up to 2100 Cubic Feet (260 sq ft). You can easy to move it into bedrooms, bathrooms, and offices.\",\n DescriptionShort:\n \"High-Efficiency Dehumify:ALROCKET portable dehumidifier with 35oz(1000ml) capacity tank extracts up to 16oz(450ml) of water daily in a humid environment of 86°F and 80% RH. ALROCKET dehumidifier helps you improve air quality and create a comfortable and clean living environment for you. Ultra Quiet: ALROCKET small dehumidifier Built-in Thermo-Electric Tech(Peltier) operation which means whisper-quiet(39db). Allowing you to run it all day and night without any loud or disturbing noises. Energy Saving-Healthy: This mini dehumidifier is effective and energy saving with a power only 40W/hour which means using only 0.96kW of electricity after running for 24 hours. It's environmentally friendly and more affordable than traditional chemical absorbents. Auto-Shutoff Function: This dehumidifier will auto shut off (When the water of the tank reaches between 24oz and 27oz) to protect from the risk of overflow. And the light turns red when shut off. Note: Product optimal operating temperature is 41°F-122°F, below 41°F the effect of dehumidification is not obvious. Contact us if you have any questions. Portable and Compact: One-touch switch design helps you easily operate the unit. The size (5.7 x 5.7 x 8.9 inches) and lightweight (2.87lb). Ideal for rooms up to 2100 Cubic Feet (260 sq ft). You can easy to move it into bedrooms, bathrooms, and offices.\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title:\n 'ALROCKET Dehumidifier 35oz(1000ml) Small Dehumidifier for 2100 Cubic Feet (260 sq ft) Portable and Compact Ultra Quiet',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"High-Efficiency Dehumify:ALROCKET portable dehumidifier with 35oz(1000ml) capacity tank extracts up to 16oz(450ml) of water daily in a humid environment of 86°F and 80% RH. ALROCKET dehumidifier helps you improve air quality and create a comfortable and clean living environment for you. Ultra Quiet: ALROCKET small dehumidifier Built-in Thermo-Electric Tech(Peltier) operation which means whisper-quiet(39db). Allowing you to run it all day and night without any loud or disturbing noises. Energy Saving-Healthy: This mini dehumidifier is effective and energy saving with a power only 40W/hour which means using only 0.96kW of electricity after running for 24 hours. It's environmentally friendly and more affordable than traditional chemical absorbents. Auto-Shutoff Function: This dehumidifier will auto shut off (When the water of the tank reaches between 24oz and 27oz) to protect from the risk of overflow. And the light turns red when shut off. Note: Product optimal operating temperature is 41°F-122°F, below 41°F the effect of dehumidification is not obvious. Contact us if you have any questions. Portable and Compact: One-touch switch design helps you easily operate the unit. The size (5.7 x 5.7 x 8.9 inches) and lightweight (2.87lb). Ideal for rooms up to 2100 Cubic Feet (260 sq ft). You can easy to move it into bedrooms, bathrooms, and offices.\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880024,\n Name: 'McCulloch MC1375 Canister Steam Cleaner with 20 Accessories',\n DepartmentId: 9285, // Home Appliance\n CategoryId: 9285, // Home Appliance\n BrandId: 9280,\n LinkId: 'mcculloch-mc1375-canister-steam-cleaner',\n RefId: '880024',\n IsVisible: true,\n Description:\n \"The McCulloch MC1375 Canister Steam System is a multi-purpose steam cleaner, great for cleaning and mopping. Using ordinary water heated to over 200F, the MC1375 effectively and naturally cleans and sanitizes a wide variety of surfaces. Includes 20 versatile accessories. Variable steam control, up to 58 psi makes MC1375 great for blasting away grease and grime. Backed by a 2-year warranty and supported in Andover, Kansas. With over 50 years of experience in the design and manufacture of outdoor power equipment, McCulloch has established an unrivalled reputation for design, reliability and value in a wide range of outdoor, garden and workshop products. Model is made for 120 volts only. Do not operate unit if steam opening is blocked.Should this occur,immediately cease usage and unplug from electrical outlet.- This steam cleaner is not a regular carpet cleaner as it doesn't provide suction to remove excess moisture. However, it can be used to loosen stains from carpet, which can need to be dried by dabbing excess moisture with a towel. - If the steam output is weak, it may be because the water level in the boiler is running low, or there is mineral build-up in the unit. Please reference the owner's guide to further troubleshoot. - If you're experiencing excess water coming out of the nozzle, this may be due to a build-up of water condensation in the steam hose, or the boiler has been overfilled. Please reference the owner's guide to further troubleshoot.\",\n DescriptionShort:\n \"The McCulloch MC1375 Canister Steam System is a multi-purpose steam cleaner, great for cleaning and mopping. Using ordinary water heated to over 200F, the MC1375 effectively and naturally cleans and sanitizes a wide variety of surfaces. Includes 20 versatile accessories. Variable steam control, up to 58 psi makes MC1375 great for blasting away grease and grime. Backed by a 2-year warranty and supported in Andover, Kansas. With over 50 years of experience in the design and manufacture of outdoor power equipment, McCulloch has established an unrivalled reputation for design, reliability and value in a wide range of outdoor, garden and workshop products. Model is made for 120 volts only. Do not operate unit if steam opening is blocked.Should this occur,immediately cease usage and unplug from electrical outlet.- This steam cleaner is not a regular carpet cleaner as it doesn't provide suction to remove excess moisture. However, it can be used to loosen stains from carpet, which can need to be dried by dabbing excess moisture with a towel. - If the steam output is weak, it may be because the water level in the boiler is running low, or there is mineral build-up in the unit. Please reference the owner's guide to further troubleshoot. - If you're experiencing excess water coming out of the nozzle, this may be due to a build-up of water condensation in the steam hose, or the boiler has been overfilled. Please reference the owner's guide to further troubleshoot.\",\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'McCulloch MC1375 Canister Steam Cleaner with 20 Accessories',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n \"The McCulloch MC1375 Canister Steam System is a multi-purpose steam cleaner, great for cleaning and mopping. Using ordinary water heated to over 200F, the MC1375 effectively and naturally cleans and sanitizes a wide variety of surfaces. Includes 20 versatile accessories. Variable steam control, up to 58 psi makes MC1375 great for blasting away grease and grime. Backed by a 2-year warranty and supported in Andover, Kansas. With over 50 years of experience in the design and manufacture of outdoor power equipment, McCulloch has established an unrivalled reputation for design, reliability and value in a wide range of outdoor, garden and workshop products. Model is made for 120 volts only. Do not operate unit if steam opening is blocked.Should this occur,immediately cease usage and unplug from electrical outlet.- This steam cleaner is not a regular carpet cleaner as it doesn't provide suction to remove excess moisture. However, it can be used to loosen stains from carpet, which can need to be dried by dabbing excess moisture with a towel. - If the steam output is weak, it may be because the water level in the boiler is running low, or there is mineral build-up in the unit. Please reference the owner's guide to further troubleshoot. - If you're experiencing excess water coming out of the nozzle, this may be due to a build-up of water condensation in the steam hose, or the boiler has been overfilled. Please reference the owner's guide to further troubleshoot.\",\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880025,\n Name: 'Cuisinart GR-4N 5-in-1 Griddler',\n DepartmentId: 9285, // Home Appliance\n CategoryId: 9285, // Home Appliance\n BrandId: 9280,\n LinkId: 'cuisinart-gr-4n-5-in-1-griddler',\n RefId: '880025',\n IsVisible: true,\n Description:\n 'With five separate cooking options, the Cuisinart Griddler can handle everything from pancakes and sausages to grilled cheese to steaks, hamburgers, and panini. A floating cover and one set of reversible plates turn the Griddler into a contact grill, panini press, full grill, full griddle, or half grill/half griddle. Dual temperature controls ensure everything is perfectly cooked every time on the removable dishwasher safe nonstick cooking plates for easy meals and clean up.',\n DescriptionShort:\n 'With five separate cooking options, the Cuisinart Griddler can handle everything from pancakes and sausages to grilled cheese to steaks, hamburgers, and panini. A floating cover and one set of reversible plates turn the Griddler into a contact grill, panini press, full grill, full griddle, or half grill/half griddle. Dual temperature controls ensure everything is perfectly cooked every time on the removable dishwasher safe nonstick cooking plates for easy meals and clean up.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Cuisinart GR-4N 5-in-1 Griddler',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'With five separate cooking options, the Cuisinart Griddler can handle everything from pancakes and sausages to grilled cheese to steaks, hamburgers, and panini. A floating cover and one set of reversible plates turn the Griddler into a contact grill, panini press, full grill, full griddle, or half grill/half griddle. Dual temperature controls ensure everything is perfectly cooked every time on the removable dishwasher safe nonstick cooking plates for easy meals and clean up.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880026,\n Name: 'Yellow Onions (10 lbs.)',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'yellow-onions',\n RefId: '880026',\n IsVisible: true,\n Description:\n 'Yellow onions are the go-to onion and can be used whenever a recipe simply calls for \"onion.\" Storing: Onions last for several weeks when kept in a cool, dry, well-ventilated place. After an onion is cut, wrap the extra in plastic wrap and put it in the refrigerator for up to 4 days.',\n DescriptionShort:\n 'Yellow onions are the go-to onion and can be used whenever a recipe simply calls for \"onion.\" Storing: Onions last for several weeks when kept in a cool, dry, well-ventilated place. After an onion is cut, wrap the extra in plastic wrap and put it in the refrigerator for up to 4 days.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Yellow Onions (10 lbs.)',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Yellow onions are the go-to onion and can be used whenever a recipe simply calls for \"onion.\" Storing: Onions last for several weeks when kept in a cool, dry, well-ventilated place. After an onion is cut, wrap the extra in plastic wrap and put it in the refrigerator for up to 4 days.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880027,\n Name: 'Cauliflower Fresh',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'cauliflower-fresh',\n RefId: '880027',\n IsVisible: true,\n Description: 'CAULIFLOWER FRESH PRODUCE FRUIT VEGETABLES EACH BUNDLE',\n DescriptionShort: 'CAULIFLOWER FRESH PRODUCE FRUIT VEGETABLES EACH BUNDLE',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Cauliflower Fresh',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'CAULIFLOWER FRESH PRODUCE FRUIT VEGETABLES EACH BUNDLE',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880028,\n Name: 'Asparagus Green Conventional',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'asparagus-green-conventional',\n RefId: '880028',\n IsVisible: true,\n Description: 'Asparagus Green Conventional, 1 Bunch',\n DescriptionShort: 'Asparagus Green Conventional, 1 Bunch',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Asparagus Green Conventional',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: 'Asparagus Green Conventional, 1 Bunch',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880029,\n Name: 'Fresh Hass Avocadoes',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'fresh-hass-avocadoes',\n RefId: '880029',\n IsVisible: true,\n Description: '10 fresh Hass avocados.',\n DescriptionShort: '10 fresh Hass avocados.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Fresh Hass Avocadoes',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: '10 fresh Hass avocados.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880030,\n Name: 'Fresh Coconuts',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'fresh-coconuts',\n RefId: '880030',\n IsVisible: true,\n Description: 'Moist and milky, the coconut has a sweet, nutty flavor.',\n DescriptionShort: 'Moist and milky, the coconut has a sweet, nutty flavor.',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Fresh Coconuts',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'Moist and milky, the coconut has a sweet, nutty flavor.',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880031,\n Name: 'Whole Watermelon Mini Fresh',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'whole-watermelon-mini-fresh',\n RefId: '880031',\n IsVisible: true,\n Description: 'WHOLE WATERMELON MINI FRESH FRUIT PRODUCE VEGETABLES',\n DescriptionShort: 'WHOLE WATERMELON MINI FRESH FRUIT PRODUCE VEGETABLES',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Whole Watermelon Mini Fresh',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: 'WHOLE WATERMELON MINI FRESH FRUIT PRODUCE VEGETABLES',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880032,\n Name: 'Navel Oranges Grown Large Fresh Fruit',\n DepartmentId: 9282, // Food and beverage\n CategoryId: 9282, // Food and beverage\n BrandId: 9280,\n LinkId: 'navel-oranges-grown-large-fresh-fruit',\n RefId: '880032',\n IsVisible: true,\n Description: 'NAVEL ORANGES GROWN LARGE FRESH FRUIT',\n DescriptionShort: 'NAVEL ORANGES GROWN LARGE FRESH FRUIT',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Navel Oranges Grown Large Fresh Fruit',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: 'NAVEL ORANGES GROWN LARGE FRESH FRUIT',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880033,\n Name: '2020 APACHE AS1040',\n DepartmentId: 9284, // Agribusiness\n CategoryId: 9284, // Agribusiness\n BrandId: 9280,\n LinkId: '2020-apache-as1040',\n RefId: '880033',\n IsVisible: true,\n Description:\n 'The Apache Model AS1040 Sprayer\\nComfort. Speed. Accuracy. Efficiency. That’s exactly what you get from every Apache\\nSprayer. They’re built to handle the toughest field conditions with a higher standard of\\ncomfort and performance. Because all we do is build sprayers, we’re 100% focused on\\nbuilding the best sprayers in the industry.\\nWith a 1,000-gallon capacity tank, the Apache AS1040 Sprayer is the most popular sized\\nmodel in the lineup. It features a mechanical drive that makes it simple to operate and\\nnimble enough to work in field conditions competitive sprayers can’t. When the days are\\nlong, its 35 mph road speed will get you to the next field (or home) faster.\\nLightweight\\nThe AS1040 is engineered lightweight at just 20,000 lbs. That means better fuel\\neconomy, reduced compaction and a lower price.\\nPerfect Size\\nThis model offers a turning radius of 18 ft and a wheel base of 15 ft — perfect for\\ntight-fit areas.\\nAffordable\\nEnjoy the lower cost of ownership and better resale value of an Apache. Apache\\nSprayers retain an average of 72 percent of their value after five years and is\\nwhy the 1000 Series sprayers have won the Highest Retained Value Award from\\nEquipmentWatch™ three years running',\n DescriptionShort:\n 'The Apache Model AS1040 Sprayer\\nComfort. Speed. Accuracy. Efficiency. That’s exactly what you get from every Apache\\nSprayer. They’re built to handle the toughest field conditions with a higher standard of\\ncomfort and performance. Because all we do is build sprayers, we’re 100% focused on\\nbuilding the best sprayers in the industry.\\nWith a 1,000-gallon capacity tank, the Apache AS1040 Sprayer is the most popular sized\\nmodel in the lineup. It features a mechanical drive that makes it simple to operate and\\nnimble enough to work in field conditions competitive sprayers can’t. When the days are\\nlong, its 35 mph road speed will get you to the next field (or home) faster.\\nLightweight\\nThe AS1040 is engineered lightweight at just 20,000 lbs. That means better fuel\\neconomy, reduced compaction and a lower price.\\nPerfect Size\\nThis model offers a turning radius of 18 ft and a wheel base of 15 ft — perfect for\\ntight-fit areas.\\nAffordable\\nEnjoy the lower cost of ownership and better resale value of an Apache. Apache\\nSprayers retain an average of 72 percent of their value after five years and is\\nwhy the 1000 Series sprayers have won the Highest Retained Value Award from\\nEquipmentWatch™ three years running',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: '2020 APACHE AS1040',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'The Apache Model AS1040 Sprayer\\nComfort. Speed. Accuracy. Efficiency. That’s exactly what you get from every Apache\\nSprayer. They’re built to handle the toughest field conditions with a higher standard of\\ncomfort and performance. Because all we do is build sprayers, we’re 100% focused on\\nbuilding the best sprayers in the industry.\\nWith a 1,000-gallon capacity tank, the Apache AS1040 Sprayer is the most popular sized\\nmodel in the lineup. It features a mechanical drive that makes it simple to operate and\\nnimble enough to work in field conditions competitive sprayers can’t. When the days are\\nlong, its 35 mph road speed will get you to the next field (or home) faster.\\nLightweight\\nThe AS1040 is engineered lightweight at just 20,000 lbs. That means better fuel\\neconomy, reduced compaction and a lower price.\\nPerfect Size\\nThis model offers a turning radius of 18 ft and a wheel base of 15 ft — perfect for\\ntight-fit areas.\\nAffordable\\nEnjoy the lower cost of ownership and better resale value of an Apache. Apache\\nSprayers retain an average of 72 percent of their value after five years and is\\nwhy the 1000 Series sprayers have won the Highest Retained Value Award from\\nEquipmentWatch™ three years running',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880034,\n Name: '2 POST CANOPY',\n DepartmentId: 9284, // Agribusiness\n CategoryId: 9284, // Agribusiness\n BrandId: 9280,\n LinkId: '2-post-canopy',\n RefId: '880034',\n IsVisible: true,\n Description:\n '2 post canopy for tractors..69 inches tall from base, 5 pol wide',\n DescriptionShort:\n '2 post canopy for tractors..69 inches tall from base, 5 pol wide',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: '2 POST CANOPY',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n '2 post canopy for tractors..69 inches tall from base, 5 pol wide',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880035,\n Name: '2020 AMACSA PH390',\n DepartmentId: 9284, // Agribusiness\n CategoryId: 9284, // Agribusiness\n BrandId: 9280,\n LinkId: '2020-amacsa-ph390',\n RefId: '880035',\n IsVisible: true,\n Description: 'Agricultural boom for giant and roll bales',\n DescriptionShort: 'Agricultural boom for giant and roll bales',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: '2020 AMACSA PH390',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: 'Agricultural boom for giant and roll bales',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880036,\n Name: 'Faceplate Combine Snout',\n DepartmentId: 9284, // Agribusiness\n CategoryId: 9284, // Agribusiness\n BrandId: 9280,\n LinkId: 'faceplate-combine-snout',\n RefId: '880036',\n IsVisible: true,\n Description: 'NEW TAKE OFF Contour Master face plate for S6XX combine',\n DescriptionShort: 'NEW TAKE OFF Contour Master face plate for S6XX combine',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: 'Faceplate Combine Snout',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n 'NEW TAKE OFF Contour Master face plate for S6XX combine',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880037,\n Name: '2016 MK MARTIN ENT MKGB788 Blades/Box Scraper',\n DepartmentId: 9284, // Agribusiness\n CategoryId: 9284, // Agribusiness\n BrandId: 9280,\n LinkId: '2016-mk-martin-ent-mkgb788-blades-box-scraper',\n RefId: '880037',\n IsVisible: true,\n Description: '32016 MK MARTIN ENT MK778 - 7 FT - 3 PT',\n DescriptionShort: '32016 MK MARTIN ENT MK778 - 7 FT - 3 PT',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: '2016 MK MARTIN ENT MKGB788 Blades/Box Scraper',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription: '32016 MK MARTIN ENT MK778 - 7 FT - 3 PT',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n {\n Id: 880038,\n Name: '1998 JOHN DEERE 8400T',\n DepartmentId: 9284, // Agribusiness\n CategoryId: 9284, // Agribusiness\n BrandId: 9280,\n LinkId: '1998-john-deere-8400t',\n RefId: '880038',\n IsVisible: true,\n Description:\n '1998 John Deere 8400T, 3-point hitch, quick hitch, large 1000-PTO, 4-hydraulic remotes w/return, 20-front weights, 3 inches tracks, 9728 hours',\n DescriptionShort:\n '1998 John Deere 8400T, 3-point hitch, quick hitch, large 1000-PTO, 4-hydraulic remotes w/return, 20-front weights, 3 inches tracks, 9728 hours',\n ReleaseDate: '2020-01-01T00:00:00',\n KeyWords: 'product,sample',\n Title: '1998 JOHN DEERE 8400T',\n IsActive: true,\n TaxCode: null,\n MetaTagDescription:\n '1998 John Deere 8400T, 3-point hitch, quick hitch, large 1000-PTO, 4-hydraulic remotes w/return, 20-front weights, 3 inches tracks, 9728 hours',\n SupplierId: null,\n ShowWithoutStock: true,\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n Score: null,\n },\n]\n\nexport { ProductData }\n\n```" } ]
code_easy-setup_22ba02a6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/skuSpecification.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst SkuSpecData = (fieldId: any, fieldValueId: any) => [\n {\n SkuID: 880010,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880011,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880012,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880013,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880020,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880021,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880022,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880023,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880030,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880031,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880032,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880033,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880040,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880041,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880042,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880043,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880050,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880051,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880052,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880053,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880054,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880060,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880061,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880062,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880063,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880064,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880070,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880071,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880072,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880073,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880074,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880080,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880081,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880082,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880083,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n {\n SkuID: 880084,\n SpecValues: [\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n {\n FieldId: fieldId,\n FieldValueId: fieldValueId,\n },\n ],\n },\n]\n\nexport { SkuSpecData }\n\n```" } ]
code_easy-setup_18fc0713
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/groupData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst GroupData = {\n // CategoryID: null,\n Name: 'Specifications',\n}\n\nexport interface IGroupResponse {\n // CategoryId: number\n Id: number\n Name: string\n Position: number\n}\n\nexport { GroupData }\n\n```" } ]
code_easy-setup_1c63759f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/fieldsData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst FieldsData = (groupId: number): SpecificationField[] => [\n {\n Name: 'Clothes Size',\n CategoryId: 9281, // Apparel\n IsActive: true,\n IsRequired: true,\n FieldTypeId: 6,\n FieldValueId: null,\n Description: 'clothes size',\n IsStockKeepingUnit: true,\n IsFilter: true,\n IsOnProductDetails: false,\n Position: 1,\n IsWizard: false,\n IsTopMenuLinkActive: false,\n IsSideMenuLinkActive: false,\n DefaultValue: null,\n FieldGroupId: groupId, // Specifications\n FieldGroupName: 'Specifications',\n },\n {\n Name: 'Shoes Size',\n CategoryId: 9283, // Sporting\n IsActive: true,\n IsRequired: true,\n FieldTypeId: 6,\n FieldValueId: null,\n Description: 'shoes size',\n IsStockKeepingUnit: true,\n IsFilter: true,\n IsOnProductDetails: false,\n Position: 1,\n IsWizard: false,\n IsTopMenuLinkActive: false,\n IsSideMenuLinkActive: false,\n DefaultValue: null,\n FieldGroupId: groupId, // Specifications\n FieldGroupName: 'Specifications',\n },\n]\n\nexport interface SpecificationField {\n Name: string\n CategoryId: number\n IsActive: boolean\n IsRequired: boolean\n FieldTypeId: number\n FieldValueId: string | null\n Description: string\n IsStockKeepingUnit: boolean\n IsFilter: boolean\n IsOnProductDetails: boolean\n Position: number\n IsWizard: boolean\n IsTopMenuLinkActive: boolean\n IsSideMenuLinkActive: boolean\n DefaultValue: any\n FieldGroupId: number\n FieldGroupName: 'Specifications'\n}\n\nexport interface IFieldResponse {\n CategoryId: any\n FieldId: number\n Name: string\n IsStockKeepingUnit: boolean\n IsActive: boolean\n}\n\nexport { FieldsData }\n\n```" } ]
code_easy-setup_08c39dfe
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/dataSources/priceData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { UpdatePriceTableData } from '../clients/PricingClient'\n\nconst PriceData = {\n listPrice: 3000,\n basePrice: randomNumber(50, 2000),\n markup: 0,\n fixedPrices: [],\n}\n\nconst CustomPrices = [\n {\n // 880320\n listPrice: 100,\n basePrice: 100,\n markup: 0,\n fixedPrices: [],\n },\n {\n // 880321\n listPrice: 1000,\n basePrice: 1000,\n markup: 0,\n fixedPrices: [],\n },\n]\n\nconst context = {\n categories: {},\n brands: {},\n stockStatuses: null,\n internalCategories: null,\n markupRange: null,\n dateRange: null,\n}\n\nconst SILVER_PRICE_TABLE_ID = 'silver'\nconst GOLD_PRICE_TABLE_ID = 'gold'\nconst PLATINUM_PRICE_TABLE_ID = 'platinum'\n\nconst PriceTableData: UpdatePriceTableData[] = [\n {\n rules: [\n {\n id: 0,\n tradePolicyId: SILVER_PRICE_TABLE_ID,\n percentualModifier: -5,\n dateRangeStatus: null,\n context,\n },\n ],\n tradePolicyId: SILVER_PRICE_TABLE_ID,\n },\n {\n rules: [\n {\n id: 0,\n tradePolicyId: GOLD_PRICE_TABLE_ID,\n percentualModifier: -10,\n dateRangeStatus: null,\n context,\n },\n ],\n tradePolicyId: GOLD_PRICE_TABLE_ID,\n },\n {\n rules: [\n {\n id: 0,\n tradePolicyId: PLATINUM_PRICE_TABLE_ID,\n percentualModifier: -15,\n dateRangeStatus: null,\n context,\n },\n ],\n tradePolicyId: PLATINUM_PRICE_TABLE_ID,\n },\n]\n\nconst FixedPrice = {\n markup: 30,\n basePrice: 100,\n listPrice: null,\n fixedPrices: [\n {\n tradePolicyId: '1',\n value: 100,\n listPrice: null,\n minQuantity: 1,\n },\n {\n tradePolicyId: '1',\n value: 90,\n listPrice: null,\n minQuantity: 10,\n },\n {\n tradePolicyId: '1',\n value: 80,\n listPrice: null,\n minQuantity: 50,\n },\n {\n tradePolicyId: '1',\n value: 70,\n listPrice: null,\n minQuantity: 100,\n },\n ],\n}\n\nfunction randomNumber(min: number, max: number) {\n return Math.floor(Math.random() * (max - min) + min)\n}\n\nexport { PriceData, PriceTableData, FixedPrice, CustomPrices }\n\n```" } ]
code_easy-setup_ac21c2e9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\n\nimport BenefitClient from './BenefitClient'\nimport CatalogClient from './CatalogClient'\nimport GatewayClient from './GatewayClient'\nimport LogisticsClient from './LogisticsClient'\nimport MasterdataClient from './MasterdataClient'\nimport PricingClient from './PricingClient'\nimport CheckoutClient from './CheckoutClient'\nimport CreditClient from './CreditClient'\n\nexport class Clients extends IOClients {\n public get masterdataClient() {\n return this.getOrSet('masterdataClient', MasterdataClient)\n }\n\n public get catalogClient() {\n return this.getOrSet('catalogClient', CatalogClient)\n }\n\n public get logisticsClient() {\n return this.getOrSet('logisticsClient', LogisticsClient)\n }\n\n public get pricingClient() {\n return this.getOrSet('pricingClient', PricingClient)\n }\n\n public get benefitClient() {\n return this.getOrSet('benefitClient', BenefitClient)\n }\n\n public get gatewayClient() {\n return this.getOrSet('gatewayClient', GatewayClient)\n }\n\n public get checkoutClient() {\n return this.getOrSet('checkoutClient', CheckoutClient)\n }\n\n public get creditClient() {\n return this.getOrSet('creditClient', CreditClient)\n }\n}\n\n```" } ]
code_easy-setup_3d260fcb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { BenefitsMiddleware } from './BenefitsMiddleware'\nimport { BrandsMiddleware } from './BrandsMiddleware'\nimport { CategoriesMiddleware } from './CategoriesMiddleware'\nimport { CollectionsMiddleware } from './CollectionsMiddleware'\nimport { FieldsMiddleware } from './FieldsMiddleware'\nimport { LogisticsMiddleware } from './LogisticsMiddleware'\nimport { PaymentsMiddleware } from './PaymentsMiddleware'\nimport { PopulateMiddleware } from './PopulateMiddleware'\nimport { PricingMiddleware } from './PricingMiddleware'\nimport { ProductsMiddleware } from './ProductsMiddleware'\nimport { TaxesMiddleware } from './TaxesMiddleware'\nimport { UsersMiddleware } from './UsersMiddleware'\nimport { OrganizationsMiddleware } from './OrganizationsMiddleware'\nimport { ResellerMiddleware } from './ResellerMiddleware'\nimport { CheckoutMiddleware } from './CheckoutMiddleware'\n\nexport {\n PopulateMiddleware,\n UsersMiddleware,\n BrandsMiddleware,\n BenefitsMiddleware,\n CategoriesMiddleware,\n CollectionsMiddleware,\n FieldsMiddleware,\n ProductsMiddleware,\n PricingMiddleware,\n PaymentsMiddleware,\n TaxesMiddleware,\n LogisticsMiddleware,\n OrganizationsMiddleware,\n CheckoutMiddleware,\n ResellerMiddleware,\n}\n\n```" } ]
code_easy-setup_2e67a146
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/utils/errors.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { AxiosError } from 'axios'\n\nimport type { CreateOrUpdateSchemaResponse } from '../clients/MasterdataClient'\n\nexport const throwIfNotModified = (error: AxiosError) => {\n // 304 means document was not updated therefore we do not treat as an error\n if (error.response?.status !== 304) throw error\n}\n\nexport const returnDocumentIdOrTrhow = (error: AxiosError) => {\n throwIfNotModified(error)\n\n return error.response?.headers?.['x-vtex-document-id'] ?? ''\n}\n\nexport const returnMessageOrThrow = (\n error: AxiosError\n): CreateOrUpdateSchemaResponse => {\n throwIfNotModified(error)\n\n return { Message: 'Not Modified' }\n}\n\nexport const returnDataIfConflictOrThrow = (data: any) => (\n error: AxiosError\n) => {\n // If SKU already exists catalog API will return 409\n if (error.response?.status === 409) return data\n throw error\n}\n\n```" } ]
code_easy-setup_c060dd9e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/utils/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport async function sleep(delay_ms = 1000) {\n return new Promise<boolean>(resolve => {\n setTimeout(() => {\n resolve(true)\n }, delay_ms)\n })\n}\n\nexport async function delayPromise<T = unknown>(\n promise: Promise<T>,\n delay_ms = 1000\n) {\n return new Promise<T>(resolve => {\n setTimeout(() => resolve(promise), delay_ms)\n })\n}\n\n```" } ]
code_easy-setup_54ea51d3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/CatalogClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext, IOResponse } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nimport type { SpecificationField } from '../../dataSources/fieldsData'\nimport type { IGroupResponse } from '../../dataSources/groupData'\nimport { returnDataIfConflictOrThrow } from '../../utils/errors'\nimport type {\n AssociateSKUAttachmentData,\n AssociateSKUAttachmentResponse,\n CreateAttachmentData,\n CreateAttachmentResponse,\n CreateProductData,\n CreateProductResponse,\n CreateSKUFileData,\n CreateSKUFileResponse,\n IBrand,\n ICollectionPayload,\n ICollectionResponse,\n ISKUPayload,\n ISubCollectionPayload,\n ISubCollectionResponse,\n} from './types'\n\nexport default class CatalogClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(`http://${context.account}.vtexcommercestable.com.br`, context, {\n ...options,\n headers: {\n Accept: 'application/json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n VtexIdclientAutcookie: context.adminUserAuthToken as string,\n 'X-Vtex-Use-Https': 'true',\n },\n })\n }\n\n public async createBrand(BrandPayload: IBrand): Promise<IOResponse<IBrand>> {\n try {\n return await this.http.post('/api/catalog/pvt/brand', BrandPayload)\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public createCollection(\n collectionPayload: ICollectionPayload\n ): Promise<IOResponse<ICollectionResponse>> {\n return this.http.post('/api/catalog/pvt/collection', collectionPayload)\n }\n\n public createSubCollection(\n subCollectionPayload: ISubCollectionPayload\n ): Promise<IOResponse<ISubCollectionResponse>> {\n return this.http.post(\n '/api/catalog/pvt/subcollection',\n subCollectionPayload\n )\n }\n\n public setBrandSubCollection(\n subCollectionId: number,\n BrandSubCollectionData: any\n ): Promise<IOResponse<ISubCollectionResponse>> {\n return this.http.post(\n `/api/catalog/pvt/subcollection/${subCollectionId}/brand`,\n BrandSubCollectionData\n )\n }\n\n public async createCategory(categoryPayload: any): Promise<IOResponse<any>> {\n try {\n return await this.http.post(`/api/catalog/pvt/category`, categoryPayload)\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public createSkuSpecificationGroup = (groupData: any) =>\n this.post<IGroupResponse>(\n 'api/catalog_system/pvt/specification/group',\n groupData\n )\n\n public createSkuSpecificationField = (\n specificationField: SpecificationField\n ) =>\n this.post('/api/catalog_system/pvt/specification/field', specificationField)\n\n public createSkuSpecificationFieldValue = (fieldValue: any) =>\n this.post('/api/catalog_system/pvt/specification/fieldValue', fieldValue)\n\n public createProduct = (\n data: CreateProductData\n ): Promise<CreateProductResponse> =>\n this.post<CreateProductResponse>('/api/catalog/pvt/product', data)\n\n /* public createSKU = (\n data: ISKUPayload\n ): Promise<ISKUPayload> =>\n this.post<ISKUPayload>('/api/catalog/pvt/stockkeepingunit', data)\n */\n\n public async createSKU(\n skuPayLoad: ISKUPayload\n ): Promise<IOResponse<ISKUPayload>> {\n try {\n return await this.http.post(\n `/api/catalog/pvt/stockkeepingunit`,\n skuPayLoad\n )\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n console.log(\n `${skuPayLoad.Id}-RefId:${skuPayLoad.RefId}-ProductId:${skuPayLoad.ProductId}`\n )\n console.log(error)\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public createSKUFile = (skuId: string | number, data: CreateSKUFileData) =>\n this.post<CreateSKUFileResponse>(\n `/api/catalog/pvt/stockkeepingunit/${skuId}/file`,\n data\n )\n\n public setSkuSubscription = (data: AssociateSKUAttachmentData) =>\n this.post<AssociateSKUAttachmentResponse>(\n '/api/catalog/pvt/skuattachment',\n data\n )\n\n public createAttachment = (data: CreateAttachmentData) =>\n this.post<CreateAttachmentResponse>(`/api/catalog/pvt/attachment`, data)\n\n private post = <T = any>(url: string, data: any) =>\n this.http.post<T>(url, data).catch<T>(returnDataIfConflictOrThrow(data))\n}\n\n```" } ]
code_easy-setup_8997d1e8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/PricingClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nexport default class PricingClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(`http://${context.account}.myvtex.com/api/pricing`, context, {\n ...options,\n headers: {\n ...options?.headers,\n Accept: 'application/vnd.vtex.pricing.v3+json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n 'X-Vtex-Use-Https': 'true',\n VtexIdclientAutcookie: context.adminUserAuthToken ?? '',\n },\n })\n }\n\n public addPrice(skuId: string | number, pricePayload: any) {\n return this.http.put<any>(`/prices/${skuId}`, pricePayload)\n }\n\n public createPriceTable = (tradePolicyId: string) =>\n this.http.put(`/tables/${tradePolicyId}`)\n\n public addPriceTableRules = (data: UpdatePriceTableData) =>\n this.http.put(`/pipeline/catalog/${data.tradePolicyId}`, data)\n}\n\nexport interface UpdatePriceTableData {\n tradePolicyId: string\n rules: Rule[]\n}\n\nexport interface Rule {\n id: number\n tradePolicyId: string\n percentualModifier: number\n dateRangeStatus: null\n context: Context\n}\n\nexport interface Context {\n categories: Record<string, never>\n brands: Record<string, never>\n markupRange: null\n dateRange: null\n}\n\n```" } ]
code_easy-setup_3fa6eca7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/CheckoutClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext, IOResponse } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nimport type { IOrderFormConfiguration, IOrderConfiguration } from './types'\n\nexport default class CheckoutClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(`http://${context.account}.vtexcommercestable.com.br`, context, {\n ...options,\n headers: {\n Accept: 'application/json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n VtexIdclientAutcookie: context.adminUserAuthToken as string,\n 'X-Vtex-Use-Https': 'true',\n },\n })\n }\n\n public async getOrderFormConfiguration(): Promise<\n IOResponse<IOrderFormConfiguration>\n > {\n try {\n return this.http.getRaw('/api/checkout/pvt/configuration/orderForm')\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public async getOrderConfiguration(): Promise<\n IOResponse<IOrderConfiguration>\n > {\n try {\n return this.http.getRaw('/api/checkout/pvt/configuration/order')\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public async updateOrderFormConfiguration(\n OrderFormConfigurationPayload: IOrderFormConfiguration\n ): Promise<IOResponse<IOrderFormConfiguration>> {\n try {\n return this.http.post(\n '/api/checkout/pvt/configuration/orderForm',\n OrderFormConfigurationPayload\n )\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public async updateOrderConfiguration(\n OrderConfigurationPayload: IOrderConfiguration\n ): Promise<IOResponse<IOrderConfiguration>> {\n try {\n return this.http.post(\n '/api/checkout/pvt/configuration/order',\n OrderConfigurationPayload\n )\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n}\n\n```" } ]
code_easy-setup_ac89841d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/MasterdataClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { IOResponse } from '@vtex/api'\nimport { MasterData } from '@vtex/api'\n\nimport {\n returnDocumentIdOrTrhow,\n returnMessageOrThrow,\n} from '../../utils/errors'\nimport type {\n IMasterdataNewDocument,\n IMasterdataClientDocumentPayload,\n} from './types'\n\nexport interface CreateOrUpdateInput {\n dataEntity: string\n fields: Record<string, unknown>\n id?: string\n schema?: string\n}\n\nexport interface CreateSchemaInput {\n dataEntity: string\n schemaName: string\n schemaBody: Record<string, unknown>\n}\n\nexport interface CreateOrUpdateSchemaResponse {\n Message: string\n}\n\nexport default class MasterdataClient extends MasterData {\n /**\n * Add MasterData Document\n * @param clientDocumentPayload Document Payload\n */\n public async add(\n clientDocumentPayload: IMasterdataClientDocumentPayload\n ): Promise<IOResponse<IMasterdataNewDocument>> {\n try {\n return await this.http.post(`/documents`, clientDocumentPayload, {\n metric: 'masterdata-CL-add',\n })\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n headers,\n status,\n data,\n }\n }\n }\n\n /**\n * Add or Update MasterData Document\n * @param clientDocumentPayload Document Payload\n */\n public async addOrUpdateDocument(\n clientDocumentPayload: IMasterdataClientDocumentPayload\n ): Promise<IOResponse<IMasterdataNewDocument>> {\n try {\n return await this.http.put('/documents', clientDocumentPayload, {\n metric: 'masterdata-CL-addOrUpdateDocument',\n })\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n status,\n data: data || `${clientDocumentPayload.email} - duplicated entry`,\n headers,\n }\n }\n }\n\n public create = (data: CreateOrUpdateInput) =>\n this.createOrUpdateEntireDocument(data)\n .then(({ DocumentId }) => DocumentId)\n .catch<string>(returnDocumentIdOrTrhow)\n\n public createSchema = (schema: CreateSchemaInput) =>\n this.createOrUpdateSchema<CreateOrUpdateSchemaResponse>(schema).catch(\n returnMessageOrThrow\n )\n}\n\n```" } ]
code_easy-setup_d24642a9
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/BenefitClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nexport default class BenefitClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(\n `http://${context.account}.vtexcommercestable.com.br/api/rnb/pvt`,\n context,\n {\n ...options,\n headers: {\n Accept: 'application/json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n VtexIdclientAutcookie: context.adminUserAuthToken as string,\n 'X-Vtex-Use-Https': 'true',\n },\n }\n )\n }\n\n public getCollection(collectionName: string) {\n return this.http.get(`/collections/${collectionName}`)\n }\n\n public addBenefit = (data: unknown) =>\n this.http.post('/calculatorconfiguration/', data)\n}\n\n```" } ]
code_easy-setup_03f9402b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/GatewayClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { ExternalClient } from '@vtex/api'\nimport type { InstanceOptions, IOContext } from '@vtex/api'\nimport type { AxiosError } from 'axios'\n\nexport default class GatewayClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(\n `http://${context.account}.vtexcommercestable.com.br/api/payments/pvt`,\n context,\n {\n ...options,\n headers: {\n Accept: 'application/json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n VtexIdclientAutcookie: context.adminUserAuthToken as string,\n 'X-Vtex-Use-Https': 'true',\n },\n }\n )\n }\n\n public addPayment(paymentPayload: any) {\n return this.http.post<any>(\n `/${paymentPayload.type}/${paymentPayload.id}/config`,\n paymentPayload\n )\n }\n\n public addAffiliation = (data: any) => this.post('/affiliations', data)\n\n public addPaymentCondition = (data: any) => this.post('/rules', data)\n\n private post = <T = any>(url: string, data: T) =>\n this.http.post<T>(url, data).catch<T>((error: AxiosError) => {\n if (\n error.response?.status !== 400 &&\n error.response?.statusText !== 'Bad Request' &&\n error.response?.data.error.code !== 400 &&\n error.response?.data.error.message !==\n 'Affiliation name is already used'\n ) {\n throw error\n }\n\n return data\n })\n}\n\n```" } ]
code_easy-setup_32a4f7bd
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/CreditClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext, IOResponse } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nimport type {\n ICreditAccountPayload,\n OpenOrChangeAccountRequest,\n OpenOrChangeAccountResponse,\n} from './types'\n\nexport default class CreditClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(`http://${context.account}.vtexcommercestable.com.br`, context, {\n ...options,\n headers: {\n Accept: 'application/json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n VtexIdclientAutcookie: context.adminUserAuthToken as string,\n 'X-Vtex-Use-Https': 'true',\n },\n })\n }\n\n public async openAccount(\n CreditAccountPayload: ICreditAccountPayload\n ): Promise<IOResponse<string>> {\n try {\n return this.http.post('/api/creditcontrol/accounts', CreditAccountPayload)\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public openOrChangeAccount = (data: OpenOrChangeAccountRequest) =>\n this.http.put<OpenOrChangeAccountResponse>(\n `/api/creditcontrol/accounts/${data.id}`,\n data\n )\n}\n\n```" } ]
code_easy-setup_498cb0cc
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/LogisticsClient/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { InstanceOptions, IOContext, IOResponse } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nimport type { ISKUPayload } from '../CatalogClient/types'\nimport type {\n CreateOrUpdateCarrierData,\n IDockPayload,\n IFreightValuePayload,\n IInventoryPayload,\n IWarehousePayload,\n} from './types'\n\nexport default class LogisticsClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(\n `http://${context.account}.vtexcommercestable.com.br/api/logistics/pvt`,\n context,\n {\n ...(options ?? {}),\n headers: {\n ...(options?.headers ?? {}),\n Accept: 'application/json',\n 'Cache-Control': 'no-cache',\n 'Content-Type': 'application/json',\n VtexIdclientAutcookie: context?.adminUserAuthToken ?? '',\n 'X-Vtex-Use-Https': 'true',\n },\n }\n )\n }\n\n public async setFreightValues(\n carrierId: string,\n FreightValuePayload: IFreightValuePayload\n ): Promise<IOResponse<string>> {\n try {\n return this.http.post(\n `/configuration/freights/${carrierId}/values/update`,\n [FreightValuePayload]\n )\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public async updateDock(\n DockPayload: IDockPayload\n ): Promise<IOResponse<boolean>> {\n try {\n return this.http.post('/configuration/docks', DockPayload)\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public async setInventory(\n SKU: ISKUPayload,\n InventoryPayload: IInventoryPayload\n ): Promise<IOResponse<boolean>> {\n try {\n return this.http.put(\n `/inventory/skus/${SKU.Id}/warehouses/1_1`,\n InventoryPayload\n )\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public async updateWarehouse(\n WarehousePayload: IWarehousePayload\n ): Promise<IOResponse<boolean>> {\n try {\n return this.http.post('/configuration/warehouses', WarehousePayload)\n } catch (error) {\n const {\n response: { data, status },\n headers,\n } = error\n\n return {\n data,\n headers,\n status,\n }\n }\n }\n\n public createOrUpdateCarrier = (data: CreateOrUpdateCarrierData) =>\n this.http.post(`/configuration/carriers`, data)\n}\n\n```" } ]
code_easy-setup_befd5dcb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/CatalogClient/types/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface ICollectionResponse {\n Id: number\n Name: string\n Description: any\n Searchable: boolean\n Highlight: boolean\n DateFrom: string\n DateTo: string\n TotalProducts: number\n Type: string\n}\nexport interface ICollectionPayload {\n Name: string\n Searchable: boolean\n Highlight: boolean\n DateFrom: string\n DateTo: string\n}\n\nexport interface ISubCollectionResponse {\n Id: number\n CollectionId: number\n Name: string\n Type: string\n PreSale: boolean\n Release: boolean\n}\n\nexport interface ISubCollectionPayload {\n CollectionId: number\n Name: string\n Type: string\n PreSale: boolean\n Release: boolean\n}\n\nexport interface IBrand {\n Active: boolean\n AdWordsRemarketingCode: string\n Id: number\n Keywords: string\n LinkId: string\n LomadeeCampaignCode: string\n MenuHome: boolean\n Name: string\n Score: string | null\n SiteTitle: string\n Text: string\n}\n\nexport interface ISKUPayload {\n Id: number\n ProductId: string\n IsActive: boolean\n Name: string\n RefId: string\n Height: number\n Length: number\n Width: number\n WeightKg: number\n PackagedHeight: number\n PackagedLength: number\n PackagedWidth: number\n PackagedWeightKg: number\n ModalId: number\n CubicWeight: number\n IsKit: boolean\n CreationDate: any\n RewardValue: any\n EstimatedDateArrival: any\n ManufacturerCode: string\n CommercialConditionId: number\n MeasurementUnit: string\n UnitMultiplier: number\n ModalType: any\n KitItensSellApart: boolean\n}\n\nexport interface ISKUKitPayload {\n StockKeepingUnitParent: number\n StockKeepingUnitId: number\n Quantity: number\n UnitPrice: number\n}\n\nexport interface CreateProductData {\n Id: number\n Name: string\n DepartmentId: number\n CategoryId: number\n BrandId: number\n LinkId: string\n RefId: string\n IsVisible: boolean\n Description: string\n DescriptionShort: string\n ReleaseDate: string\n KeyWords: string\n Title: string\n IsActive: boolean\n TaxCode: string | null\n MetaTagDescription: string\n SupplierId: number | null\n ShowWithoutStock: boolean\n AdWordsRemarketingCode: null\n LomadeeCampaignCode: null\n Score: number | null\n}\n\nexport interface CreateProductResponse {\n Id: number\n Name: string\n DepartmentId: number\n CategoryId: number\n BrandId: number\n LinkId: string\n RefId: string\n IsVisible: boolean\n Description: string\n DescriptionShort: string\n ReleaseDate: string\n KeyWords: string\n Title: string\n IsActive: boolean\n TaxCode: string | null\n MetaTagDescription: string\n SupplierId: number | null\n ShowWithoutStock: boolean\n AdWordsRemarketingCode: null\n LomadeeCampaignCode: null\n Score: number | null\n}\n\nexport interface AssociateSKUAttachmentData {\n AttachmentId: number\n SkuId: number\n}\n\nexport interface AssociateSKUAttachmentResponse {\n Id: number\n AttachmentId: number\n SkuId: number\n}\n\nexport interface CreateSKUFileData {\n IsMain: boolean\n Label: string\n Name: string\n Text: string | null\n Url: string\n}\n\nexport interface CreateSKUFileResponse {\n Id: number\n SkuId: number\n Name: string\n IsMain: boolean\n Label: string\n}\n\nexport interface CreateAttachmentData {\n Name: string\n IsRequired: boolean\n IsActive: boolean\n Domains: Domain[]\n}\n\nexport interface Domain {\n FieldName: string\n MaxCaracters: string\n DomainValues: string\n}\n\nexport interface CreateAttachmentResponse extends CreateAttachmentData {\n Id: number\n}\n\n```" } ]
code_easy-setup_5d260adf
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/CheckoutClient/types/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface IOrderFormConfiguration {\n paymentConfiguration: IPaymentConfiguration\n taxConfiguration: ITaxConfiguration\n minimumQuantityAccumulatedForItems: number\n decimalDigitsPrecision: number\n minimumValueAccumulated: number\n apps: IApps[]\n allowMultipleDeliveries: boolean\n allowManualPrice: boolean\n maxNumberOfWhiteLabelSellers: number\n maskFirstPurchaseData: boolean\n recaptchaValidation: boolean\n maskStateOnAddress: boolean\n}\n\nexport interface IPaymentConfiguration {\n requiresAuthenticationForPreAuthorizedPaymentOption: boolean\n allowInstallmentsMerge: boolean\n blockPaymentSession: boolean\n paymentSystemToCheckFirstInstallment: boolean\n defaultPaymentSystemToApplyOnUserOrderForm: boolean\n}\n\nexport interface ITaxConfiguration {\n url: string\n authorizationHeader: string\n allowExecutionAfterErrors: boolean\n integratedAuthentication: boolean\n appId: string\n}\n\nexport interface IApps {\n fields: string[]\n id: string\n major: number\n}\n\nexport interface IOrderConfiguration {\n erpEndpoint: string\n workflowName: string\n shortageTimeoutCancellation: number\n allowOrderEdition: boolean\n}\n\n```" } ]
code_easy-setup_9029bc41
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/MasterdataClient/types/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface IMasterdataDocument {\n id: string\n accountId: string\n accountName: string\n dataEntityId: string\n}\n\nexport interface IMasterdataNewDocument {\n Id: string\n Href: string\n}\n\nexport interface IMasterdataClientDocumentPayload {\n id: string\n email: string\n document: string\n firstName: string\n lastName: string\n priceTables: string\n isOrgAdmin?: boolean\n organizationId?: string\n}\n\nexport interface IMasterdataClientDocument {\n userId: string\n email: string\n document: string\n firstName: string\n lastName: string\n priceTables: string\n}\n\n```" } ]
code_easy-setup_21b2f334
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/CreditClient/types/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface ICreditAccountPayload {\n id: string\n balance: number\n document: string\n status: string\n documentType: string\n creditLimit: number\n updatedAt: string\n createdAt: string\n description: string\n availableCredit: number\n preAuthorizedCredit: number\n email: string\n tolerance: number\n availableBalance: number\n}\n\nexport interface OpenOrChangeAccountRequest {\n email: string\n creditLimit?: number\n document?: string\n id: string\n}\n\nexport interface OpenOrChangeAccountResponse {\n id: string\n balance: number\n document: string\n status: string\n documentType: string\n creditLimit: number\n updatedAt: string\n createdAt: string\n description: string\n availableCredit: number\n preAuthorizedCredit: number\n email: string\n tolerance: number\n availableBalance: number\n}\n\n```" } ]
code_easy-setup_5adf3902
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/clients/LogisticsClient/types/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface IInventoryPayload {\n unlimitedQuantity: boolean\n dateUtcOnBalanceSystem: any\n quantity: number\n}\n\nexport interface IFreightValuePayload {\n absoluteMoneyCost: string\n country: string\n maxVolume: number\n operationType: number\n pricePercent: number\n pricePercentByWeight: number\n timeCost: string\n weightEnd: number\n weightStart: number\n zipCodeEnd: string\n zipCodeStart: string\n polygon: string\n}\n\nexport interface IDockPayload {\n pickupStoreInfo: IPickupStoreInfo\n storeId: any\n pickupInStoreInfo: IPickupInStoreInfo\n deliveryFromStoreInfo: IDeliveryFromStoreInfo\n address: IAddress\n location: any\n id: string\n name: string\n priority: number\n dockTimeFake: string\n timeFakeOverhead: string\n salesChannels: [string]\n freightTableIds: [string]\n wmsEndPoint: any\n isActive: boolean\n}\n\ninterface IPickupStoreInfo {\n isPickupStore: boolean\n storeId: any\n friendlyName: any\n address: IAddress\n additionalInfo: any\n dockId: any\n distance: any\n businessHours: any\n pickupHolidays: any\n sellerId: any\n isThirdPartyPickup: boolean\n}\n\ninterface IPickupInStoreInfo {\n isActice: boolean\n additionalInfo: any\n}\n\ninterface IDeliveryFromStoreInfo {\n isActice: boolean\n deliveryRadius: number\n deliveryFee: number\n deliveryTime: string\n maximumWeight: number\n}\n\ninterface IAddress {\n postalCode: string\n country: ICountry\n city: string\n state: string\n neighborhood: string\n street: string\n number: string\n complement: any\n reference: any\n location: any\n}\n\ninterface ICountry {\n acronym: string\n name: string\n}\n\nexport interface IWarehousePayload {\n id: string\n name: string\n warehouseDocks: any\n pickupPointIds: []\n priority: number\n isActive: boolean\n}\n\nexport interface CreateOrUpdateCarrierData {\n id: string\n slaType: string\n name: string\n scheduledDelivery: boolean\n maxRangeDelivery: number\n dayOfWeekForDelivery: null\n dayOfWeekBlockeds: any[]\n freightValue: any[]\n factorCubicWeight: null\n freightTableProcessStatus: number\n freightTableValueError: null\n modals: any[]\n onlyItemsWithDefinedModal: boolean\n deliveryOnWeekends: boolean\n carrierSchedule: any[]\n maxDimension: MaxDimension\n exclusiveToDeliveryPoints: boolean\n minimunCubicWeight: number\n isPolygon: boolean\n numberOfItemsPerShipment: null\n}\n\nexport interface MaxDimension {\n weight: number\n height: number\n width: number\n length: number\n maxSumDimension: number\n}\n\n```" } ]
code_easy-setup_989455e6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/CollectionsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { ISubCollectionResponse } from '../../clients/CatalogClient/types'\nimport {\n BrandSubCollectionData,\n CollectionData,\n SubCollectionData,\n} from './data/collectionData'\n\nexport async function CollectionsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { catalogClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('collections')) {\n throw new Error('resource not set')\n }\n\n const collectionItems: any = await Promise.all(\n CollectionData.map((collectionData: any) =>\n catalogClient.createCollection(collectionData)\n )\n )\n\n const subCollectionItems: any = await Promise.all(\n collectionItems.map((collectionItem: ISubCollectionResponse) =>\n catalogClient.createSubCollection(SubCollectionData(collectionItem.Id))\n )\n )\n\n const brandSubCollectionItems: any = await Promise.all(\n subCollectionItems.map((subCollectionItem: any) =>\n catalogClient.setBrandSubCollection(\n subCollectionItem.Id,\n BrandSubCollectionData\n )\n )\n )\n\n ctx.response.body = {\n ...body,\n Collections: {\n results: {\n brandSubCollections: brandSubCollectionItems,\n collections: collectionItems,\n subCollections: subCollectionItems,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Collections: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_f60ed5a6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/CheckoutMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { CustomData } from './data/customData'\n\nexport async function CheckoutMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { checkoutClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('checkout')) {\n throw new Error('resource not set')\n }\n\n const orderFormConfigPayload = await checkoutClient.getOrderFormConfiguration()\n\n orderFormConfigPayload.data.minimumValueAccumulated = 5000\n orderFormConfigPayload.data.apps = CustomData\n const orderFormConfigResponse = await checkoutClient.updateOrderFormConfiguration(\n orderFormConfigPayload.data\n )\n\n const orderConfigPayload = await checkoutClient.getOrderConfiguration()\n\n orderConfigPayload.data.allowOrderEdition = true\n const orderConfigResponse = await checkoutClient.updateOrderConfiguration(\n orderConfigPayload.data\n )\n\n ctx.response.body = {\n ...body,\n Checkout: {\n result: {\n orderFormConfigResponse,\n orderConfigResponse,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n // console.log('CHECKOUT', error)\n ctx.response.body = {\n ...body,\n Checkout: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_d6237079
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/UsersMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { Users } from './data/users'\nimport { CreditData } from './data/credit'\n\nexport async function UsersMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { masterdataClient, creditClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('users')) {\n throw new Error('resource not set')\n }\n\n const users = await Promise.all(\n Users.map(fields => masterdataClient.create({ dataEntity: 'CL', fields }))\n )\n\n const credit = await Promise.all(\n CreditData.map(creditData => creditClient.openOrChangeAccount(creditData))\n )\n\n ctx.response.body = {\n ...body,\n Users: {\n users,\n credit,\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n User: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_cd1155be
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/ProductsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport {\n AttachmentData,\n SubscriptionData,\n} from '../../dataSources/attachmentData'\nimport { ImagesData } from '../../dataSources/imageData'\nimport { ProductData } from '../../dataSources/productData'\nimport { SKUData } from '../../dataSources/skuData'\nimport { sleep } from '../../utils/index'\n\nexport async function ProductsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { catalogClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('products')) {\n throw new Error('resource not set')\n }\n\n const subscriptionSkus = [\n 880260,\n 880270,\n 880280,\n 880290,\n 880300,\n 880310,\n 880320,\n // 880390,\n ]\n\n const products = await Promise.all(\n ProductData.map(product => catalogClient.createProduct(product))\n )\n\n for await (const sku of SKUData) {\n await catalogClient.createSKU(sku)\n await sleep(100)\n }\n\n const attachments = await Promise.all(\n [AttachmentData, SubscriptionData].map(attachment =>\n catalogClient.createAttachment(attachment)\n )\n )\n\n const productSkusAttachments = await Promise.all(\n subscriptionSkus.map(SkuId =>\n catalogClient.setSkuSubscription({\n SkuId,\n AttachmentId: SubscriptionData.Id,\n })\n )\n )\n\n const productSkuImages = await Promise.all(\n SKUData.map(({ ProductId: SKUProductId, Id: SkuId }) =>\n ImagesData.filter(\n ({ ProductId }) => String(ProductId) === SKUProductId\n ).map(({ ImageData }) => catalogClient.createSKUFile(SkuId, ImageData))\n )\n )\n\n // await this.setSpecifications(product.CategoryId)\n\n ctx.response.body = {\n ...body,\n Products: {\n results: {\n products,\n // productSkus,\n attachments,\n productSkusAttachments,\n productSkuImages,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Products: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_a1c6af7f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/CategoriesMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { CategoriesData } from './data'\n\nexport async function CategoriesMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { catalogClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('categories')) {\n throw new Error('resource not set')\n }\n\n let delay = 0\n const delayIncrement = 500\n const results = await Promise.all(\n CategoriesData.map((categoryData: any) => {\n delay += delayIncrement\n // console.log('timeout...')\n\n return new Promise(resolve => setTimeout(resolve, delay)).then(() =>\n catalogClient.createCategory(categoryData)\n )\n })\n )\n\n ctx.response.body = {\n ...body,\n Categories: {\n results,\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Categories: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_e97ded55
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/LogisticsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { SKUData } from '../SkuMiddleware/data/skuData'\nimport {\n CarrierData,\n DockData,\n FreightValueData,\n InventoryData,\n WarehouseData,\n} from './data/logisticsData'\n\nexport async function LogisticsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { logisticsClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('logistics')) {\n throw new Error('resource not set')\n }\n\n const carrier = await logisticsClient.createOrUpdateCarrier(CarrierData)\n\n const loadingDocks = await Promise.all(\n DockData.map(dockData => logisticsClient.updateDock(dockData))\n )\n\n const warehouse = await logisticsClient.updateWarehouse(WarehouseData)\n\n const inventory = await Promise.all(\n SKUData.map(skuData =>\n logisticsClient.setInventory(skuData, InventoryData)\n )\n )\n\n const freightValues = await Promise.all(\n FreightValueData.map(freightValueData => {\n return logisticsClient.setFreightValues(\n CarrierData.id,\n freightValueData\n )\n })\n )\n\n ctx.response.body = {\n ...body,\n Logistics: {\n result: {\n loadingDocks,\n warehouse,\n carrier,\n inventory,\n freightValues,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Logistics: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_fccdfebb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/ResellerMiddleware/reseller.schema.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport default {\n title: 'Revenda',\n type: 'object',\n properties: {\n email: {\n type: 'string',\n format: 'email',\n title: 'Email',\n },\n stateRegistration: {\n type: 'string',\n maxLength: 750,\n title: 'State Registration',\n },\n homePhone: {\n type: 'string',\n title: 'Mobile',\n },\n corporateDocument: {\n type: 'string',\n maxLength: 14,\n title: 'EIN #: ',\n },\n phone: {\n type: 'string',\n title: 'Phone',\n },\n lastName: {\n type: 'string',\n maxLength: 750,\n title: 'Last Name',\n },\n tradeName: {\n type: 'string',\n maxLength: 750,\n title: 'Trade Name',\n },\n corporateName: {\n type: 'string',\n maxLength: 750,\n title: 'Company Name',\n },\n firstName: {\n type: 'string',\n maxLength: 750,\n title: 'First Name',\n },\n streetType: {\n type: 'string',\n title: 'Stree Type',\n enum: ['Street', 'Avenue', 'Boulevard', 'Road', 'Junction'],\n },\n city: {\n type: 'string',\n maxLength: 750,\n title: 'City',\n },\n reference: {\n type: 'string',\n maxLength: 750,\n title: 'Reference',\n },\n street: {\n type: 'string',\n title: 'Street',\n },\n state: {\n type: 'string',\n title: 'State',\n enum: [\n 'Alabama',\n 'Alaska',\n 'American Samoa',\n 'Arizona',\n 'Arkansas',\n 'California',\n 'Colorado',\n 'Connecticut',\n 'Delaware',\n 'District Of Columbia',\n 'Federated States Of Micronesia',\n 'Florida',\n 'Georgia',\n 'Guam',\n 'Hawaii',\n 'Idaho',\n 'Illinois',\n 'Indiana',\n 'Iowa',\n 'Kansas',\n 'Kentucky',\n 'Louisiana',\n 'Maine',\n 'Marshall Islands',\n 'Maryland',\n 'Massachusetts',\n 'Michigan',\n 'Minnesota',\n 'Mississippi',\n 'Missouri',\n 'Montana',\n 'Nebraska',\n 'Nevada',\n 'New Hampshire',\n 'New Jersey',\n 'New Mexico',\n 'New York',\n 'North Carolina',\n 'North Dakota',\n 'Northern Mariana Islands',\n 'Ohio',\n 'Oklahoma',\n 'Oregon',\n 'Palau',\n 'Pennsylvania',\n 'Puerto Rico',\n 'Rhode Island',\n 'South Carolina',\n 'South Dakota',\n 'Tennessee',\n 'Texas',\n 'Utah',\n 'Vermont',\n 'Virgin Islands',\n 'Virginia',\n 'Washington',\n 'West Virginia',\n 'Wisconsin',\n 'Wyoming',\n ],\n },\n complement: {\n type: 'string',\n maxLength: 750,\n title: 'Complement',\n },\n neighborhood: {\n type: 'string',\n maxLength: 750,\n title: 'Neighborhood',\n },\n number: {\n type: 'string',\n maxLength: 750,\n title: 'Number',\n },\n postalCode: {\n type: 'string',\n maxLength: 9,\n title: 'Zip Code',\n },\n upload: {\n type: 'string',\n maxLength: 99999,\n title: 'Operating Agreement',\n },\n },\n required: [\n 'email',\n 'stateRegistration',\n 'corporateDocument',\n 'tradeName',\n 'corporateName',\n 'firstName',\n 'lastName',\n 'city',\n 'street',\n 'state',\n 'postalCode',\n ],\n 'v-security': {\n allowGetAll: true,\n publicWrite: [\n 'email',\n 'firstName',\n 'lastName',\n 'homePhone',\n 'corporateName',\n 'corporateDocument',\n 'stateRegistration',\n 'tradeName',\n 'city',\n 'street',\n 'state',\n 'neighborhood',\n 'number',\n 'postalCode',\n ],\n publicRead: [\n 'email',\n 'stateRegistration',\n 'homePhone',\n 'corporateDocument',\n 'phone',\n 'lastName',\n 'tradeName',\n 'corporateName',\n 'firstName',\n 'city',\n 'street',\n 'state',\n 'streetType',\n 'neighborhood',\n 'number',\n 'postalCode',\n 'upload',\n 'complement',\n 'reference',\n ],\n publicJsonSchema: true,\n },\n 'v-triggers': [\n {\n name: 'insert-customer-table',\n active: true,\n condition: '',\n action: {\n type: 'save',\n dataEntity: 'CL',\n json: {\n id: '{!id}',\n approved: 'false',\n firstName: '{!firstName}',\n lastName: '{!lastName}',\n email: '{!email}',\n homePhone: '{!homePhone}',\n isCorporate: 'true',\n corporateName: '{!corporateName}',\n tradeName: '{!tradeName}',\n stateRegistration: '{!stateRegistration}',\n corporateDocument: '{!corporateDocument}',\n isOrgAdmin: 'true',\n },\n },\n },\n {\n name: 'insert-address-table',\n active: true,\n condition: '',\n action: {\n type: 'save',\n dataEntity: 'AD',\n json: {\n userId: '{!id}',\n city: '{!city}',\n reference: '{!reference}',\n street: '{!street}',\n state: '{!state}',\n streetType: '{!streetType}',\n neighborhood: '{!neighborhood}',\n addressName: 'Principal',\n number: '{!number}',\n country: 'USA',\n postalCode: '{!postalCode}',\n complement: '{!complement}',\n upload: '{!upload}',\n },\n },\n },\n ],\n}\n\n```" } ]
code_easy-setup_0c8481c3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/ResellerMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport schemaBody from './reseller.schema'\n\nexport interface CreateSchemaInput {\n dataEntity: string\n schemaName: string\n schemaBody: Record<string, unknown>\n}\n\nexport interface CreateOrUpdateSchemaResponse {\n Message: string\n}\n\nexport async function ResellerMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { masterdata },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('reseller')) {\n throw new Error('resource not set')\n }\n\n const result = await masterdata\n .createOrUpdateSchema<CreateOrUpdateSchemaResponse>({\n dataEntity: 'Reseller',\n schemaName: 'v2',\n schemaBody,\n })\n .catch(error => {\n // 304 means schema was not updated therefore we do not treat as an error\n if (error.response.status !== 304) throw error\n\n return { Message: 'Not Modified' }\n })\n\n ctx.response.body = {\n ...body,\n Reseller: {\n result,\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Reseller: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_e3469634
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/FieldsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { SpecificationField } from '../../dataSources/fieldsData'\nimport { FieldsData } from '../../dataSources/fieldsData'\nimport { FieldValuesData } from '../../dataSources/fieldValuesData'\nimport { GroupData } from '../../dataSources/groupData'\n\nexport async function FieldsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { catalogClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('fields')) {\n throw new Error('resource not set')\n }\n\n const groupResponse = await catalogClient.createSkuSpecificationGroup(\n GroupData\n )\n\n if (groupResponse) {\n const fields = await Promise.all(\n FieldsData(groupResponse.Id).map(\n async (specificationField: SpecificationField) => {\n return {\n fieldId: await catalogClient.createSkuSpecificationField(\n specificationField\n ),\n ...specificationField,\n }\n }\n )\n )\n\n const fieldValues = await Promise.all(\n fields.map(fieldResponse => {\n const fieldValuesData = FieldValuesData(\n fieldResponse.fieldId as number\n ).filter(\n fieldValue => fieldValue.CategoryId === fieldResponse.CategoryId\n )\n\n if (fieldValuesData.length > 0) {\n return Promise.all(\n fieldValuesData[0].FieldValues.map(FieldValueData =>\n catalogClient.createSkuSpecificationFieldValue(FieldValueData)\n )\n )\n }\n\n return {}\n })\n )\n\n ctx.response.body = {\n ...body,\n Fields: {\n results: {\n fields,\n fieldValues,\n },\n status: 'OK',\n },\n }\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Fields: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_bbe2c534
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/BrandsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { IBrand } from '../../clients/CatalogClient/types'\nimport { BrandData } from './data/brandData'\n\nexport async function BrandsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { catalogClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('brands')) {\n throw new Error('resource not set')\n }\n\n const results = await Promise.all(\n BrandData.map((brandData: IBrand) => catalogClient.createBrand(brandData))\n )\n\n ctx.response.body = {\n ...body,\n Brands: {\n results,\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Brands: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_450ea92d
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/OrganizationsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { CreateSchemaInput } from '../../clients/MasterdataClient'\nimport { john, steven } from '../UsersMiddleware/data/users'\n\nexport async function OrganizationsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n vtex: { account },\n clients: { masterdataClient: md },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('organizations')) {\n throw new Error('resource not set')\n }\n\n const permissionSchema: CreateSchemaInput = {\n dataEntity: 'BusinessPermission',\n schemaName: 'business-permission-schema-v1',\n schemaBody: {\n properties: {\n name: {\n type: 'string',\n },\n label: {\n type: 'string',\n },\n },\n 'v-default-fields': ['name', 'label', 'id'],\n required: ['name'],\n 'v-indexed': ['name'],\n 'v-security': {\n allowGetAll: true,\n publicRead: ['name', 'label', 'id'],\n publicWrite: ['name', 'label'],\n publicFilter: ['name', 'id'],\n },\n },\n }\n\n const roleSchema: CreateSchemaInput = {\n dataEntity: 'BusinessRole',\n schemaName: 'business-role-schema-v1',\n schemaBody: {\n properties: {\n name: {\n type: 'string',\n },\n label: {\n type: 'string',\n },\n permissions: {\n type: 'string',\n },\n },\n 'v-default-fields': ['name', 'label', 'id', 'permissions'],\n required: ['name'],\n 'v-indexed': ['name'],\n 'v-security': {\n allowGetAll: true,\n publicRead: ['name', 'label', 'permissions', 'id'],\n publicWrite: ['name', 'label', 'permissions'],\n publicFilter: ['name', 'id'],\n },\n },\n }\n\n const organizationSchema: CreateSchemaInput = {\n dataEntity: 'BusinessOrganization',\n schemaName: 'business-organization-schema-v1',\n schemaBody: {\n properties: {\n name: {\n type: 'string',\n },\n telephone: {\n type: 'string',\n },\n address: {\n type: 'string',\n },\n email: {\n type: 'string',\n },\n },\n 'v-default-fields': ['name', 'telephone', 'id', 'address', 'email'],\n required: ['name', 'telephone'],\n 'v-indexed': ['name', 'telephone', 'email'],\n 'v-security': {\n allowGetAll: true,\n publicRead: ['name', 'telephone', 'id', 'address', 'email'],\n publicWrite: ['name', 'telephone', 'address', 'email'],\n publicFilter: ['name', 'telephone', 'id', 'email'],\n },\n },\n }\n\n const userOrganizationSchema: CreateSchemaInput = {\n dataEntity: 'UserOrganization',\n schemaName: 'user-organization-schema-v1',\n schemaBody: {\n properties: {\n email: {\n type: 'string',\n },\n businessOrganizationId: {\n type: 'string',\n link: `http://api.vtex.com/${account}/dataentities/BusinessOrganization/schemas/business-organization-schema-v1`,\n },\n roleId: {\n type: 'string',\n link: `http://api.vtex.com/${account}/dataentities/BusinessRole/schemas/business-role-schema-v1`,\n },\n status: {\n type: 'string',\n },\n },\n 'v-default-fields': [\n 'email',\n 'id',\n 'businessOrganizationId',\n 'roleId',\n 'status',\n ],\n required: ['email', 'businessOrganizationId', 'roleId', 'status'],\n 'v-indexed': ['email', 'businessOrganizationId', 'roleId', 'status'],\n 'v-security': {\n allowGetAll: true,\n publicRead: [\n 'email',\n 'id',\n 'businessOrganizationId',\n 'businessOrganizationId_linked',\n 'roleId',\n 'roleId_linked',\n 'status',\n ],\n publicWrite: [\n 'id',\n 'email',\n 'businessOrganizationId',\n 'roleId',\n 'status',\n ],\n publicFilter: [\n 'email',\n 'id',\n 'businessOrganizationId',\n 'roleId',\n 'status',\n ],\n },\n 'v-triggers': [\n {\n name: 'organization-assignment-accept-email',\n active: true,\n condition: 'status=APPROVED',\n action: {\n type: 'email',\n provider: 'default',\n subject: 'Organization Assignment Acceptance',\n to: ['{!email}'],\n replyTo: 'noreply@company.com',\n body:\n 'You have been assigned to {!businessOrganizationId_linked.name}.',\n },\n },\n {\n name: 'organization-assignment-decline-email',\n active: true,\n condition: 'status=DECLINED',\n action: {\n type: 'email',\n provider: 'default',\n subject: 'Organization Assignment Decline',\n to: ['{!email}'],\n replyTo: 'noreply@company.com',\n body:\n 'You have left the organization {!businessOrganizationId_linked.name}.',\n },\n },\n ],\n },\n }\n\n const schemas = [\n permissionSchema,\n roleSchema,\n organizationSchema,\n userOrganizationSchema,\n ]\n\n const results = await Promise.all(schemas.map(md.createSchema))\n\n const viewPricesPermissionId = await md.create({\n dataEntity: permissionSchema.dataEntity,\n schema: permissionSchema.schemaName,\n fields: {\n id: 'f43a0146-6299-43b4-af46-310ee19b0284',\n name: 'view_prices',\n label: 'View Prices',\n },\n })\n\n const roleId = await md.create({\n dataEntity: roleSchema.dataEntity,\n schema: roleSchema.schemaName,\n fields: {\n id: 'c7a03457-ae36-46d2-bc7e-9c24ae37fe9e',\n name: 'sales_manager',\n label: 'Sales Manager',\n permissions: JSON.stringify([viewPricesPermissionId]),\n },\n })\n\n const businessOrganizationId = await md.create({\n dataEntity: organizationSchema.dataEntity,\n schema: organizationSchema.schemaName,\n fields: {\n id: 'bf6297a1-99be-4459-8e5e-c1f28b270684',\n name: 'abCorp',\n telephone: '11999876543',\n address: 'Av. Faria Lima 1440',\n email: 'abcorp@example.com',\n },\n })\n\n await md.create({\n dataEntity: userOrganizationSchema.dataEntity,\n schema: userOrganizationSchema.schemaName,\n fields: {\n id: '3d6a3c0c-8a62-4623-8f71-9f144814a7eb',\n email: john.email,\n businessOrganizationId,\n roleId,\n status: 'APPROVED',\n },\n })\n\n await md.create({\n dataEntity: userOrganizationSchema.dataEntity,\n schema: userOrganizationSchema.schemaName,\n fields: {\n id: '404a97d2-7f91-42c7-9d8b-51be848acaeb',\n email: steven.email,\n businessOrganizationId,\n roleId,\n status: 'APPROVED',\n },\n })\n\n ctx.response.body = {\n ...body,\n Organizations: {\n results,\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Organizations: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_e402b7ce
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/OrganizationsMiddleware/userOrganization.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { AxiosError } from 'axios'\n\nexport interface CreateUserOrganizationFields {\n id: string\n email: string\n businessOrganizationId: string\n roleId: string\n status: string\n}\n\nexport async function createUserOrganization(\n ctx: PopulateContext,\n fields: CreateUserOrganizationFields\n): Promise<string> {\n const {\n clients: { masterdata },\n } = ctx\n\n const dataEntity = 'UserOrganization'\n const schema = 'user-organization-schema-v1'\n\n return masterdata\n .createOrUpdateEntireDocument({\n dataEntity,\n schema,\n fields,\n })\n .then<string>(({ DocumentId }) => DocumentId)\n .catch<string>(error => {\n // 304 means schema was not updated therefore we do not treat as an error\n if (error.response.status !== 304 || !error.isAxiosError) throw error\n const axiosError = error as AxiosError\n\n return axiosError.response?.headers?.['x-vtex-document-id'] ?? ''\n })\n}\n\n```" } ]
code_easy-setup_0b0cc843
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/PricingMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport {\n FixedPrice,\n PriceData,\n PriceTableData,\n} from '../../dataSources/priceData'\nimport { sleep } from '../../utils'\nimport { SKUData } from '../SkuMiddleware/data/skuData'\n\nexport async function PricingMiddleware(\n ctx: PopulateContext,\n next: () => Promise<void>\n) {\n const {\n clients: { pricingClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('prices')) {\n throw new Error('resource not set')\n }\n\n const RATE_LIMIT_MS = 1000 / 40\n\n for await (const priceTable of PriceTableData) {\n await pricingClient.createPriceTable(priceTable.tradePolicyId)\n\n await sleep(RATE_LIMIT_MS)\n\n await pricingClient.addPriceTableRules(priceTable)\n\n await sleep(RATE_LIMIT_MS)\n }\n\n for await (const sku of SKUData) {\n if (sku.Id === 880100) {\n await pricingClient.addPrice(sku.Id, FixedPrice)\n } else if (sku.Id === 880320 || sku.Id === 880321) {\n await pricingClient.addPrice(sku.Id, FixedPrice)\n } else {\n await pricingClient.addPrice(sku.Id, PriceData)\n }\n\n await sleep(RATE_LIMIT_MS)\n }\n\n ctx.response.body = {\n ...body,\n Prices: {\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Prices: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_fb8a21b0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/PaymentsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport {\n AffiliationData,\n PaymentConditionData,\n PromissoryData,\n} from '../../dataSources/paymentData'\n\nexport async function PaymentsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { gatewayClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('payments')) {\n throw new Error('resource not set')\n }\n\n const payment = await gatewayClient.addPayment(PromissoryData)\n\n const affiliations = await Promise.all(\n AffiliationData.map((affiliation: any) => {\n return gatewayClient.addAffiliation(affiliation)\n })\n )\n\n const paymentCondition = await Promise.all(\n affiliations.map((affiliation: any, index: number) => {\n const payload = PaymentConditionData(affiliation.id)[index]\n\n return gatewayClient.addPaymentCondition(payload)\n })\n )\n\n ctx.response.body = {\n ...body,\n Payments: {\n result: {\n payment,\n affiliations,\n paymentCondition,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Payments: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_9135ab71
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/BenefitsMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { BenefitData } from '../../dataSources/benefitsData'\n\nexport async function BenefitsMiddleware(\n ctx: PopulateContext,\n next: () => Promise<unknown>\n) {\n const {\n clients: { benefitClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('benefits')) {\n throw new Error('resource not set')\n }\n\n const collections = await benefitClient.getCollection('_')\n const benefitPayload = BenefitData(collections[0])\n\n const benefits = await benefitClient.addBenefit(benefitPayload)\n\n ctx.response.body = {\n ...body,\n Benefits: {\n result: {\n benefits,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Benefits: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_99143651
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/TaxesMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { TaxData } from '../../dataSources/benefitsData'\n\nexport async function TaxesMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n const {\n clients: { benefitClient },\n state: { resources },\n response: { body },\n } = ctx\n\n try {\n if (!resources.includes('empty') && !resources.includes('taxes')) {\n throw new Error('resource not set')\n }\n\n const taxes = await Promise.all(\n TaxData.map(taxItem => {\n return benefitClient.addBenefit(taxItem)\n })\n )\n\n ctx.response.body = {\n ...body,\n Taxes: {\n result: {\n taxes,\n },\n status: 'OK',\n },\n }\n } catch (error) {\n ctx.response.body = {\n ...body,\n Taxes: {\n error: error.message,\n status: 'ERROR',\n },\n }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_7ded4e8b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/PopulateMiddleware/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { json } from 'co-body'\n\nexport async function PopulateMiddleware(\n ctx: PopulateContext,\n next: () => Promise<any>\n) {\n ctx.set('Cache-Control', 'no-cache')\n // ctx.state.appKey = ctx.req.headers['x-vtex-api-appkey']\n // ctx.state.appToken = ctx.req.headers['x-vtex-api-apptoken']\n\n try {\n const { resources } = await json(ctx)\n\n // console.log({ resources })\n\n ctx.state.resources = resources || ['empty']\n\n // If there's empty setup, remove all others\n if (\n ctx.state.resources.includes('empty') &&\n ctx.state.resources.length > 1\n ) {\n ctx.state.resources = ['empty']\n }\n } catch (error) {\n ctx.response.body = { error }\n }\n\n await next()\n}\n\n```" } ]
code_easy-setup_27a14425
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/CollectionsMiddleware/data/collectionData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type {\n ICollectionPayload,\n ISubCollectionPayload,\n} from '../../../clients/CatalogClient/types'\n\nconst BrandSubCollectionData = {\n BrandId: 9280,\n}\n\nconst CollectionData: ICollectionPayload[] = [\n {\n DateFrom: '2010-01-01T00:00:00',\n DateTo: '2070-01-01T00:00:00',\n Highlight: false,\n Name: 'All',\n Searchable: true,\n },\n]\n\nconst SubCollectionData = (collectionId: number): ISubCollectionPayload => ({\n CollectionId: collectionId,\n Name: 'Brand',\n PreSale: false,\n Release: false,\n Type: 'Inclusive',\n})\n\nexport { BrandSubCollectionData, CollectionData, SubCollectionData }\n\n```" } ]
code_easy-setup_e9075265
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/CheckoutMiddleware/data/customData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { IApps } from '../../../clients/CheckoutClient/types'\n\nexport const CustomData: IApps[] = [\n {\n fields: ['poNumber'],\n id: 'profile',\n major: 1,\n },\n {\n fields: ['test', 'abc'],\n id: 'custom-prices',\n major: 1,\n },\n]\n\n```" } ]
code_easy-setup_7c5283ce
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/UsersMiddleware/data/credit.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { ICreditAccountPayload } from '../../../clients/CreditClient/types'\nimport { chris, john, steven } from './users'\n\nexport const CreditData: ICreditAccountPayload[] = [\n {\n id: '00000000191_CPF',\n balance: 0.0,\n document: '00000000191',\n status: 'Open',\n documentType: 'CPF',\n creditLimit: 50000000.0,\n updatedAt: new Date().toISOString(),\n createdAt: new Date().toISOString(),\n description: '',\n availableCredit: 0.0,\n preAuthorizedCredit: 0.0,\n email: john.email,\n tolerance: 1.0,\n availableBalance: 0.0,\n },\n {\n id: '90750680008_CPF',\n balance: 0.0,\n document: '90750680008',\n status: 'Open',\n documentType: 'CPF',\n creditLimit: 50000000.0,\n updatedAt: new Date().toISOString(),\n createdAt: new Date().toISOString(),\n description: '',\n availableCredit: 0.0,\n preAuthorizedCredit: 0.0,\n email: steven.email,\n tolerance: 1.0,\n availableBalance: 0.0,\n },\n {\n id: '45854060000_CPF',\n balance: 0.0,\n document: '45854060000',\n status: 'Open',\n documentType: 'CPF',\n creditLimit: 50000000.0,\n updatedAt: new Date().toISOString(),\n createdAt: new Date().toISOString(),\n description: '',\n availableCredit: 0.0,\n preAuthorizedCredit: 0.0,\n email: chris.email,\n tolerance: 1.0,\n availableBalance: 0.0,\n },\n]\n\n```" } ]
code_easy-setup_fb5b610c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/UsersMiddleware/data/users.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface User extends Record<string, unknown> {\n id: string\n email: string\n document: string\n firstName: string\n lastName: string\n priceTables: string\n isOrgAdmin: boolean\n organizationId?: string\n}\n\nexport const john: User = {\n id: '461dde1b-2dbd-4ddb-8eba-f33a4f2b000b',\n email: 'john@email.com',\n document: '00000000191',\n firstName: 'John',\n lastName: 'Doe',\n priceTables: 'platinum',\n isOrgAdmin: true,\n organizationId: 'bf6297a1-99be-4459-8e5e-c1f28b270684',\n}\n\nexport const steven: User = {\n id: 'aea191a3-e63f-48c6-87f3-cf63044d15c7',\n email: 'steven@email.com',\n document: '90750680008',\n firstName: 'Steven',\n lastName: 'Doe',\n priceTables: 'gold',\n isOrgAdmin: false,\n organizationId: 'bf6297a1-99be-4459-8e5e-c1f28b270684',\n}\n\nexport const chris: User = {\n id: 'f5767052-b6b1-4652-87fc-7ccccfe53d71',\n email: 'chris@email.com',\n document: '45854060000',\n firstName: 'Chris',\n lastName: 'Doe',\n priceTables: 'silver',\n isOrgAdmin: false,\n}\n\nexport const Users = [john, steven, chris]\n\n```" } ]
code_easy-setup_9808095c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/CategoriesMiddleware/data/index.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nconst CategoriesData = [\n {\n Id: 9281,\n Name: 'Apparel',\n Keywords: 'Apparel',\n Title: 'Apparel',\n Description: 'Apparel',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n {\n Id: 9282,\n Name: 'Food and beverage',\n Keywords: 'Food and beverage',\n Title: 'Food and beverage',\n Description: 'Food and beverage',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n {\n Id: 9283,\n Name: 'Sporting',\n Keywords: 'Sporting',\n Title: 'Sporting',\n Description: 'Sporting',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n {\n Id: 9284,\n Name: 'Agribusiness',\n Keywords: 'Agribusiness',\n Title: 'Agribusiness',\n Description: 'Agribusiness',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n {\n Id: 9285,\n Name: 'Home Appliance',\n Keywords: 'Home Appliance',\n Title: 'Home Appliance',\n Description: 'Home Appliance',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n {\n Id: 9286,\n Name: 'Computer & Software',\n Keywords: 'Computer & Software',\n Title: 'Computer & Software',\n Description: 'Computer & Software',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n {\n Id: 9287,\n Name: 'Power tools',\n Keywords: 'Power tools',\n Title: 'Power tools',\n Description: 'Power tools',\n AdWordsRemarketingCode: null,\n LomadeeCampaignCode: null,\n FatherCategoryId: null,\n GlobalCategoryId: 222,\n ShowInStoreFront: true,\n IsActive: true,\n ActiveStoreFrontLink: true,\n ShowBrandFilter: true,\n Score: null,\n StockKeepingUnitSelectionMode: 'SPECIFICATION',\n },\n]\n\nexport { CategoriesData }\n\n```" } ]
code_easy-setup_106c1351
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/LogisticsMiddleware/data/logisticsData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type {\n CreateOrUpdateCarrierData,\n IDockPayload,\n IFreightValuePayload,\n IInventoryPayload,\n IWarehousePayload,\n} from '../../../clients/LogisticsClient/types'\n\nexport const InventoryData: IInventoryPayload = {\n unlimitedQuantity: true,\n dateUtcOnBalanceSystem: null,\n quantity: 0,\n}\n\nexport const CarrierData: CreateOrUpdateCarrierData = {\n id: '13942e4',\n slaType: 'Normal',\n name: 'Normal Delivery',\n scheduledDelivery: false,\n maxRangeDelivery: 0,\n dayOfWeekForDelivery: null,\n dayOfWeekBlockeds: [],\n freightValue: [],\n factorCubicWeight: null,\n freightTableProcessStatus: 1,\n freightTableValueError: null,\n modals: [],\n onlyItemsWithDefinedModal: false,\n deliveryOnWeekends: false,\n carrierSchedule: [],\n maxDimension: {\n weight: 0,\n height: 0,\n width: 0,\n length: 0,\n maxSumDimension: 0,\n },\n exclusiveToDeliveryPoints: false,\n minimunCubicWeight: 0,\n isPolygon: false,\n numberOfItemsPerShipment: null,\n}\n\nexport const DockData: IDockPayload[] = [\n {\n pickupStoreInfo: {\n isPickupStore: false,\n storeId: null,\n friendlyName: null,\n address: {\n postalCode: '04538-132',\n country: {\n acronym: 'BRA',\n name: 'Brazil',\n },\n city: 'São Paulo',\n state: 'SP',\n neighborhood: 'Itaim Bibi',\n street: 'Avenida Brigadeiro Faria Lima',\n number: '4440',\n complement: null,\n reference: null,\n location: null,\n },\n additionalInfo: null,\n dockId: null,\n distance: null,\n businessHours: null,\n pickupHolidays: null,\n sellerId: null,\n isThirdPartyPickup: false,\n },\n storeId: null,\n pickupInStoreInfo: {\n isActice: false,\n additionalInfo: null,\n },\n deliveryFromStoreInfo: {\n isActice: false,\n deliveryRadius: 0,\n deliveryFee: 0,\n deliveryTime: '00:00:00',\n maximumWeight: 0,\n },\n address: {\n postalCode: '04538-132',\n country: {\n acronym: 'BRA',\n name: 'Brazil',\n },\n city: 'São Paulo',\n state: 'SP',\n neighborhood: 'Itaim Bibi',\n street: 'Avenida Brigadeiro Faria Lima',\n number: '4440',\n complement: null,\n reference: null,\n location: null,\n },\n location: null,\n id: '1',\n name: 'Main Dock',\n priority: 1,\n dockTimeFake: '00:00:00',\n timeFakeOverhead: '00:00:00',\n salesChannels: ['1'],\n freightTableIds: [CarrierData.id],\n wmsEndPoint: null,\n isActive: true,\n },\n {\n pickupStoreInfo: {\n isPickupStore: false,\n storeId: null,\n friendlyName: null,\n address: {\n postalCode: '10017',\n country: {\n acronym: 'USA',\n name: 'United States of America',\n },\n city: 'New York',\n state: 'NY',\n neighborhood: '',\n street: '49th St',\n number: '12E',\n complement: null,\n reference: null,\n location: null,\n },\n additionalInfo: null,\n dockId: null,\n distance: null,\n businessHours: null,\n pickupHolidays: null,\n sellerId: null,\n isThirdPartyPickup: false,\n },\n storeId: null,\n pickupInStoreInfo: {\n isActice: false,\n additionalInfo: null,\n },\n deliveryFromStoreInfo: {\n isActice: false,\n deliveryRadius: 0,\n deliveryFee: 0,\n deliveryTime: '00:00:00',\n maximumWeight: 0,\n },\n address: {\n postalCode: '10017',\n country: {\n acronym: 'USA',\n name: 'United States of America',\n },\n city: 'New York',\n state: 'NY',\n neighborhood: '',\n street: '49th St',\n number: '12E',\n complement: null,\n reference: null,\n location: null,\n },\n location: null,\n id: '2',\n name: 'Alternative Dock',\n priority: 1,\n dockTimeFake: '00:00:00',\n timeFakeOverhead: '00:00:00',\n salesChannels: ['1'],\n freightTableIds: [CarrierData.id],\n wmsEndPoint: null,\n isActive: true,\n },\n]\n\nexport const FreightValueData: IFreightValuePayload[] = [\n {\n absoluteMoneyCost: '10.00',\n country: 'BRA',\n maxVolume: 1000000000,\n operationType: 1,\n pricePercent: 0,\n pricePercentByWeight: 0,\n timeCost: '2.00:00:00',\n weightEnd: 100000,\n weightStart: 1,\n zipCodeEnd: '99999999',\n zipCodeStart: '0',\n polygon: '',\n },\n {\n absoluteMoneyCost: '10.00',\n country: 'USA',\n maxVolume: 1000000000,\n operationType: 1,\n pricePercent: 0,\n pricePercentByWeight: 0,\n timeCost: '2.00:00:00',\n weightEnd: 100000,\n weightStart: 1,\n zipCodeEnd: '99999999',\n zipCodeStart: '0',\n polygon: '',\n },\n]\n\nexport const WarehouseData: IWarehousePayload = {\n id: '1_1',\n name: 'Inventory',\n warehouseDocks: [\n {\n dockId: '1',\n time: '00:00:00',\n cost: 0.0,\n },\n {\n dockId: '2',\n time: '00:00:00',\n cost: 0.0,\n },\n ],\n pickupPointIds: [],\n priority: 0,\n isActive: true,\n}\n\n```" } ]
code_easy-setup_d08694d5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/SkuMiddleware/data/skuData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type {\n ISKUKitPayload,\n ISKUPayload,\n} from '../../../clients/CatalogClient/types'\n\nexport const SKUData: ISKUPayload[] = [\n {\n Id: 880010,\n ProductId: '880001',\n IsActive: true,\n Name: 'S',\n RefId: '880010a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880011,\n ProductId: '880001',\n IsActive: true,\n Name: 'M',\n RefId: '880011a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880012,\n ProductId: '880001',\n IsActive: true,\n Name: 'L',\n RefId: '880012a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880013,\n ProductId: '880001',\n IsActive: true,\n Name: 'XL',\n RefId: '880013a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880020,\n ProductId: '880002',\n IsActive: true,\n Name: 'S',\n RefId: '880020a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880021,\n ProductId: '880002',\n IsActive: true,\n Name: 'M',\n RefId: '880021a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880022,\n ProductId: '880002',\n IsActive: true,\n Name: 'L',\n RefId: '880022a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880023,\n ProductId: '880002',\n IsActive: true,\n Name: 'XL',\n RefId: '880023a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880030,\n ProductId: '880003',\n IsActive: true,\n Name: 'S',\n RefId: '880030a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880031,\n ProductId: '880003',\n IsActive: true,\n Name: 'M',\n RefId: '880031a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880032,\n ProductId: '880003',\n IsActive: true,\n Name: 'L',\n RefId: '880032a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880033,\n ProductId: '880003',\n IsActive: true,\n Name: 'XL',\n RefId: '880033a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880040,\n ProductId: '880004',\n IsActive: true,\n Name: 'S',\n RefId: '880040a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880041,\n ProductId: '880004',\n IsActive: true,\n Name: 'M',\n RefId: '880041a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880042,\n ProductId: '880004',\n IsActive: true,\n Name: 'L',\n RefId: '880042a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880043,\n ProductId: '880004',\n IsActive: true,\n Name: 'XL',\n RefId: '880043a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880050,\n ProductId: '880005',\n IsActive: true,\n Name: '8',\n RefId: '880050a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880051,\n ProductId: '880005',\n IsActive: true,\n Name: '9',\n RefId: '880051a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880052,\n ProductId: '880005',\n IsActive: true,\n Name: '10',\n RefId: '880052a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880053,\n ProductId: '880005',\n IsActive: true,\n Name: '11',\n RefId: '880053a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880054,\n ProductId: '880005',\n IsActive: true,\n Name: '12',\n RefId: '880054a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880060,\n ProductId: '880006',\n IsActive: true,\n Name: '8',\n RefId: '880060a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880061,\n ProductId: '880006',\n IsActive: true,\n Name: '9',\n RefId: '880061a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880062,\n ProductId: '880006',\n IsActive: true,\n Name: '10',\n RefId: '880062a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880063,\n ProductId: '880006',\n IsActive: true,\n Name: '11',\n RefId: '880063a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880064,\n ProductId: '880006',\n IsActive: true,\n Name: '12',\n RefId: '880064a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880070,\n ProductId: '880007',\n IsActive: true,\n Name: '8',\n RefId: '880070a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880071,\n ProductId: '880007',\n IsActive: true,\n Name: '9',\n RefId: '880071a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880072,\n ProductId: '880007',\n IsActive: true,\n Name: '10',\n RefId: '880072a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880073,\n ProductId: '880007',\n IsActive: true,\n Name: '11',\n RefId: '880073a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880074,\n ProductId: '880007',\n IsActive: true,\n Name: '12',\n RefId: '880074a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880080,\n ProductId: '880008',\n IsActive: true,\n Name: '8',\n RefId: '880080a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880081,\n ProductId: '880008',\n IsActive: true,\n Name: '9',\n RefId: '880081a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880082,\n ProductId: '880008',\n IsActive: true,\n Name: '10',\n RefId: '880082a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880083,\n ProductId: '880008',\n IsActive: true,\n Name: '11',\n RefId: '880083a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880084,\n ProductId: '880008',\n IsActive: true,\n Name: '12',\n RefId: '880084a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880090,\n ProductId: '880009',\n IsActive: true,\n Name:\n 'BLACK+DECKER 20V MAX Drill & Home Tool Kit, 68 Piece (LDX120PK),Black/Orange',\n RefId: '880090a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880100,\n ProductId: '880010',\n IsActive: true,\n Name:\n 'BLACK+DECKER 20V MAX Cordless Drill / Driver with 30-Piece Accessories (LD120VA)',\n RefId: '880100a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880110,\n ProductId: '880011',\n IsActive: true,\n Name:\n 'BLACK+DECKER 20V Max Cordless Chainsaw, 10-Inch, Tool Only (LCS1020B)',\n RefId: '880110a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880120,\n ProductId: '880012',\n IsActive: true,\n Name:\n 'BLACK+DECKER 20V MAX Cordless Drill Combo Kit, 2-Tool (BD2KITCDDI),Black/Orange Impact Combo Kit',\n RefId: '880120a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880130,\n ProductId: '880013',\n IsActive: true,\n Name:\n 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw, Tool Only (BDCCS20B)',\n RefId: '880130a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880140,\n ProductId: '880014',\n IsActive: true,\n Name: 'BLACK+DECKER 20V MAX 5-1/2-Inch Cordless Circular Saw (BDCCS20C)',\n RefId: '880140a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880150,\n ProductId: '880015',\n IsActive: true,\n Name: 'Acer Aspire Z24-890-UA91 AIO Desktop - Windows 10',\n RefId: '880150a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880160,\n ProductId: '880016',\n IsActive: true,\n Name: 'Lenovo IdeaCentre AIO 3 - Windows 10',\n RefId: '880160a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880170,\n ProductId: '880017',\n IsActive: true,\n Name: 'Acer Aspire TC-885-UA92 Desktop - Windows 10',\n RefId: '880170a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880180,\n ProductId: '880018',\n IsActive: true,\n Name: 'CYBERPOWERPC Gamer Xtreme VR Gaming PC - Windows 10',\n RefId: '880180a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880190,\n ProductId: '880019',\n IsActive: true,\n Name: 'Acer Aspire 5 Slim Laptop - Windows 10',\n RefId: '880190a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880200,\n ProductId: '880020',\n IsActive: true,\n Name: 'Jumper EZbook X3 Windows 10 Laptop',\n RefId: '880200a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880400,\n ProductId: '880040',\n IsActive: true,\n Name: 'Acer Aspire z24 890 + Acer Aspire ATC 885',\n RefId: '880400a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: true,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880210,\n ProductId: '880021',\n IsActive: true,\n Name: 'Weber 45010001 Spirit II E-310 3-Burner Liquid Propane Grill, Black',\n RefId: '880210a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880220,\n ProductId: '880022',\n IsActive: true,\n Name:\n 'iRobot Roomba 675 Robot Vacuum-Wi-Fi Connectivity, Works with Alexa, Good for Pet Hair, Carpets, Hard Floors, Self-Charging',\n RefId: '880220a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880230,\n ProductId: '880023',\n IsActive: true,\n Name:\n 'ALROCKET Dehumidifier 35oz(1000ml) Small Dehumidifier for 2100 Cubic Feet (260 sq ft) Portable and Compact Ultra Quiet',\n RefId: '880230a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880240,\n ProductId: '880024',\n IsActive: true,\n Name: 'McCulloch MC1375 Canister Steam Cleaner with 20 Accessories',\n RefId: '880240a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880250,\n ProductId: '880025',\n IsActive: true,\n Name: 'Cuisinart GR-4N 5-in-1 Griddler',\n RefId: '880250a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880260,\n ProductId: '880026',\n IsActive: true,\n Name: 'Yellow Onions (10 lbs.)',\n RefId: '880260a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880270,\n ProductId: '880027',\n IsActive: true,\n Name: 'Cauliflower Fresh',\n RefId: '880270a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880280,\n ProductId: '880028',\n IsActive: true,\n Name: 'Asparagus Green Conventional',\n RefId: '880280a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880290,\n ProductId: '880029',\n IsActive: true,\n Name: 'Fresh Hass Avocadoes',\n RefId: '880290a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880300,\n ProductId: '880030',\n IsActive: true,\n Name: 'Fresh Coconuts',\n RefId: '880300a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880310,\n ProductId: '880031',\n IsActive: true,\n Name: 'Whole Watermelon Mini Fresh',\n RefId: '880310a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880320,\n ProductId: '880032',\n IsActive: true,\n Name: 'Pack of 1',\n RefId: '880320a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880321,\n ProductId: '880032',\n IsActive: true,\n Name: 'Pack of 12',\n RefId: '880321a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 12,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880330,\n ProductId: '880033',\n IsActive: true,\n Name: '2020 APACHE AS1040',\n RefId: '880330a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880340,\n ProductId: '880034',\n IsActive: true,\n Name: '2 POST CANOPY',\n RefId: '880340a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880350,\n ProductId: '880035',\n IsActive: true,\n Name: '2020 AMACSA PH390',\n RefId: '880350a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880360,\n ProductId: '880036',\n IsActive: true,\n Name: 'Faceplate Combine Snout',\n RefId: '880360a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880370,\n ProductId: '880037',\n IsActive: true,\n Name: '2016 MK MARTIN ENT MKGB788 Blades/Box Scraper',\n RefId: '880370a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n {\n Id: 880380,\n ProductId: '880038',\n IsActive: true,\n Name: '1998 JOHN DEERE 8400T',\n RefId: '880380a',\n Height: 10,\n Length: 10,\n Width: 10,\n WeightKg: 10,\n PackagedHeight: 10,\n PackagedLength: 10,\n PackagedWidth: 10,\n PackagedWeightKg: 10,\n ModalId: 1,\n CubicWeight: 0.1667,\n IsKit: false,\n CreationDate: null,\n RewardValue: null,\n EstimatedDateArrival: null,\n ManufacturerCode: '',\n CommercialConditionId: 1,\n MeasurementUnit: 'un',\n UnitMultiplier: 1,\n ModalType: null,\n KitItensSellApart: false,\n },\n]\n\nexport const SKUKitData: ISKUKitPayload[] = [\n {\n StockKeepingUnitParent: 880390,\n StockKeepingUnitId: 880320,\n Quantity: 10,\n UnitPrice: 50.0,\n },\n {\n StockKeepingUnitParent: 880400,\n StockKeepingUnitId: 880150,\n Quantity: 1,\n UnitPrice: 50.0,\n },\n {\n StockKeepingUnitParent: 880400,\n StockKeepingUnitId: 880170,\n Quantity: 1,\n UnitPrice: 50.0,\n },\n]\n\n```" } ]
code_easy-setup_ddb9da12
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/node/middlewares/BrandsMiddleware/data/brandData.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { IBrand } from '../../../clients/CatalogClient/types'\n\nconst BrandData: IBrand[] = [\n {\n Active: true,\n AdWordsRemarketingCode: '',\n Id: 9280,\n Keywords: 'brand',\n LinkId: 'brand',\n LomadeeCampaignCode: '',\n MenuHome: true,\n Name: 'Brand',\n Score: null,\n SiteTitle: 'Brand',\n Text: 'Brand',\n },\n]\n\nexport { BrandData }\n\n```" } ]
code_easy-setup_0d06c22b
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of easy-setup/react/typings/populate.d.ts from the easy-setup VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport interface PopulateResponseItem {\n status: 'OK' | 'ERROR'\n results?: any[]\n error?: string\n}\n\nexport interface PopulateResponse {\n [key: string]: PopulateResponseItem\n}\n\n```" } ]
code_policies-example-2_6e5d9994
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/docs/README.md from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n\n\n# Service Example\n\nA reference app implementing a VTEX IO service with HTTP route handlers.\n\n![Service Example Architecture](https://user-images.githubusercontent.com/18706156/77381360-72489680-6d5c-11ea-9da8-f4f03b6c5f4c.jpg)\n\nWe use [**KoaJS**](https://koajs.com/) as the web framework, so you might want to get into that\n\nWe also use the [**node-vtex-api**](https://github.com/vtex/node-vtex-api), a VTEX set of utilities for Node services. You can import this package using NPM from `@vtex/api` (already imported on this project)\n\n- Start from `node/index.ts` and follow the comments and imports :)\n\n## Recipes\n\n### Defining routes on _service.json_ \n```json\n{\n \"memory\": 256,\n \"ttl\": 10,\n \"timeout\": 2,\n \"minReplicas\": 2,\n \"maxReplicas\": 4,\n \"routes\": {\n \"status\": {\n \"path\": \"/_v/status/:code\",\n \"public\": true\n }\n }\n}\n```\n\nThe `service.json` file that sits on the root of the `node` folder holds informations about this service, like the maximum timeout and number of replicas, what might be discontinued on the future, but also **sets its routes**. \n\nKoa uses the [path-to-regexp](https://github.com/pillarjs/path-to-regexp) format for defining routes and, as seen on the example, we use the `:code` notation for declaring a **route param** named code, in this case. A HTTP request for `https://{{workspace}}--{{account}}.myvtex.com/_v/status/500` will match the route we've defined. \n\nFor cach _key_ on the `routes` object, there should be a **corresponding entry** on the exported Service object on `node/index.ts`, this will hook your code to a specific route.\n\n### Access Control\nYou can also provide a `public` option for each route. If `true`, that resource will be reachable for everyone on the internet. If `false`, VTEX credentials will be requested as well.\n\nAnother way of controlling access to specific routes is using **ReBACs (Resource-based access)**, that supports more robust configuration. You can read more [on this document](https://docs.google.com/document/d/1ZxNHMFIXfXz3BgTN9xyrHL3V5dYz14wivYgQjRBZ6J8/edit#heading=h.z7pad3qd2qw7) (VTEX only).\n\n#### Query String\nFor `?accepting=query-string`, you **don't need to declare anything**, as any query provided to the URL will already be available for you to use on the code as `ctx.query`, already parsed as an object, or `ctx.queryString`, taken directly from the URL as a string.\n\n#### Route Params\nRoute Params will be available for you to use on the code as `ctx.vtex.params`, already parsed as an object.\nFor a path like `/_v/status/:code`, if you receive the request `/_v/status/200`, `ctx.vtex.params` will return `{ code: '200' }`\n\n#### HTTP methods\nWhen you define a route on the `service.json`, your NodeJS handlers for that route will be triggered **on every HTTP method** (GET, POST, PUT...), so, if you need to handle them separately you need to implement a \"sub-router\". Fortunately, the _node-vtex-api_ provides a helper function `method`, exported from `@vtex/api`, to accomplish that behaviour. Instead of passing your handlers directly to the corresponding route on `index.ts`, you pass a `method` call passing **an object with the desired method as key and one handler as its corresponding value**. Check this example:\n```typescript\nimport { method } from '@vtex/api'\n...\n\nexport default new Service<Clients, State>({\n clients,\n routes: {\n status: method({\n GET: statusGetHandler,\n POST: statusPostHandler,\n }),\n },\n})\n```\n\n### Throwing errors\n\nWhen building a HTTP service, we should follow HTTP rules regarding data types, cache, authorization, and status code. Our example app sets a `ctx.status` value that will be used as a HTTP status code return value, but often we also want to give proper information about errors as well.\n\nThe **node-vtex-api** already exports a handful of **custom error classes** that can be used for that purpose, like the `NotFoundError`. You just need to throw them inside one of the the route handlers that the appropriate response will be sent to the server.\n\n```typescript\nimport { UserInputError } from '@vtex/api'\n\nexport async function validate(ctx: Context, next: () => Promise<any>) {\n const { code } = ctx.vtex.route.params\n if (isNaN(code) || code < 100 || code > 600) {\n throw new UserInputError('Code must be a number between 100 and 600')\n }\n...\n```\n\nYou can check all the available errors [here](https://github.com/vtex/node-vtex-api/tree/fd6139349de4e68825b1074f1959dd8d0c8f4d5b/src/errors), but some are not useful for just-HTTP services. Check the most useful ones:\n\n|Error Class | HTTP Code |\n|--|:--:|\n| `UserInputError` | 400 |\n| `AuthenticationError` | 401 |\n| `ForbiddenError` | 403 |\n| `NotFoundError` | 404 |\n\nYou can also **create your custom error**, just see how it's done above ;)\n\n### Reading a JSON body\n\nWhen writing POST or PUT handlers, for example, often you need to have access to the **request body** that comes as a JSON format, which is not provided directly by the handler function.\n\nFor this, you have to use the [co-body](https://www.npmjs.com/package/co-body) package that will parse the request into a readable JSON object, used as below: \n```typescript\nimport { json } from 'co-body'\nexport async function method(ctx: Context, next: () => Promise<any>) {\n const body = await json(ctx.req)\n```\n\n### Other example apps\n\nWe use Node services across all VTEX, and there are a lot inspiring examples. If you want to dive deeper on learning about this subject, don't miss those internal apps: [builder-hub](https://github.com/vtex/builder-hub) or [store-sitemap](https://github.com/vtex-apps/store-sitemap)\n\n\n## Testing\n\n`@vtex/test-tools` and `@types/jest` should be installed on `./node` package as `devDependencies`.\n\nRun `vtex test` and [Jest](https://jestjs.io/) will do its thing.\n\nCheck the `node/__tests__/simple.test.ts` test case and also [Jest's Documentation](https://jestjs.io/docs/en/getting-started).\n\n## Splunk Dashboard\n\nWe have an (for now, VTEX-only, internal) Splunk dashboard to show all metrics related to your app. You can find it [here](https://splunk7.vtex.com/en-US/app/vtex_colossus/node_app_metrics).\n\nAfter linking this app and making some requests, you can select `vtex.service-example` and see the metrics for your app. **Don't forget to check the box Development, as you are linking your app in a development workspace**.\n\nFor convenience, the link for the current version: https://splunk7.vtex.com/en-US/app/vtex_colossus/node_app_metrics?form.time.earliest=-30m%40m&form.time.latest=%40m&form.picked_context=false&form.picked_region=aws-us-east-*&form.picked_service=vtex.service-example\n\n```" } ]
code_policies-example-2_017a67b0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/service.json from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"memory\": 256,\n \"ttl\": 10,\n \"timeout\": 2,\n \"minReplicas\": 2,\n \"maxReplicas\": 4,\n \"workers\": 1,\n \"routes\": {\n \"testPolicie\": {\n \"path\": \"/_v/test-policies-route\",\n \"public\": false\n }\n }\n}\n\n```" } ]
code_policies-example-2_01bf4609
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/package.json from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"@types/xmldom\": \"^0.1.31\",\n \"co-body\": \"^6.0.0\",\n \"ramda\": \"^0.25.0\",\n \"xmldom\": \"^0.6.0\"\n },\n \"devDependencies\": {\n \"@types/co-body\": \"^0.0.3\",\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.0.0\",\n \"@types/ramda\": \"types/npm-ramda#dist\",\n \"@vtex/api\": \"6.45.11-beta\",\n \"@vtex/tsconfig\": \"^0.5.6\",\n \"typescript\": \"3.9.7\"\n },\n \"scripts\": {\n \"lint\": \"tsc --noEmit --pretty\"\n },\n \"version\": \"0.2.0\"\n}\n\n```" } ]
code_policies-example-2_526c558f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/index.ts from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport type { ClientsConfig, ServiceContext } from '@vtex/api'\nimport { method, Service } from '@vtex/api'\n\nimport { Clients } from './clients'\nimport { testPolicieCode } from './middlewares/testPolicieCode'\n\nconst TIMEOUT_MS = 800\n\nconst clients: ClientsConfig<Clients> = {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: TIMEOUT_MS,\n },\n },\n}\n\ndeclare global {\n type Context = ServiceContext<Clients>\n}\n\nexport default new Service({\n clients,\n routes: {\n testPolicie: method({\n GET: [testPolicieCode],\n }),\n },\n})\n\n```" } ]
code_policies-example-2_892cc9eb
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/clients/formula1.ts from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\n/* eslint-disable no-console */\nimport type { InstanceOptions, IOContext } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nexport class Formula1 extends ExternalClient {\n constructor(ctx: IOContext, options?: InstanceOptions) {\n super('http://ergast.com/api/f1/2020', ctx, {\n ...options,\n headers: {\n 'X-Vtex-Use-Https': 'false',\n },\n })\n }\n\n public async getConstructor() {\n const constructor = await this.http.get('/constructorStandings.json')\n\n if (\n constructor.MRData.StandingsTable.StandingsLists[0].ConstructorStandings\n ) {\n const constructorsInfos: ConstructorsInfos[] = []\n\n constructor.MRData.StandingsTable.StandingsLists[0].ConstructorStandings.forEach(\n (element: any) => {\n constructorsInfos.push({\n name: element.Constructor.name,\n points: parseFloat(element.points),\n })\n }\n )\n\n return constructorsInfos\n }\n\n return []\n }\n}\n\n```" } ]
code_policies-example-2_39eb1df6
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/clients/index.ts from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\n\nimport { Formula1 } from './formula1'\n\n// Extend the default IOClients implementation with our own custom clients.\nexport class Clients extends IOClients {\n public get f1() {\n return this.getOrSet('formula1', Formula1)\n }\n}\n\n```" } ]
code_policies-example-2_462a8906
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/typings/ConstructorsInfos.d.ts from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\ninterface ConstructorsInfos {\n points: number\n name: string\n}\n\n```" } ]
code_policies-example-2_8e5088e1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of policies-example-2/node/middlewares/testPolicieCode.ts from the policies-example-2 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\nexport async function testPolicieCode(ctx: Context) {\n const {\n clients: { f1 },\n } = ctx\n\n const retorno = await f1.getConstructor()\n\n ctx.status = 200\n ctx.body = retorno\n}\n\n```" } ]
code_admin-ley-gondolas-arg_d02470b3
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/messages/pt.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/admin.app.navigation.title\": \"Ley de Gondolas\",\n \"admin/admin.app.navigation.search.kws\": \"ley, gondolas, arg, argentina\",\n \"admin/admin.app.ley-gondolas-arg.pageTitle\": \"Ley de Gondolas\",\n \"admin/admin.app.ley-gondolas-arg.textOf\": \"do\",\n \"admin/admin.app.ley-gondolas-arg.textShowRows\": \"Exibir linhas\",\n \"admin/admin.app.ley-gondolas-arg.filterClear\": \"Filtros Claros\",\n \"admin/admin.app.ley-gondolas-arg.filterAll\": \"Tudo\",\n \"admin/admin.app.ley-gondolas-arg.filterNone\": \"Nenhum\",\n \"admin/admin.app.ley-gondolas-arg.filterAny\": \"Algum\",\n \"admin/admin.app.ley-gondolas-arg.filterIs\": \"igual\",\n \"admin/admin.app.ley-gondolas-arg.filterIsNot\": \"não igual\",\n \"admin/admin.app.ley-gondolas-arg.filterContains\": \"contém\",\n \"admin/admin.app.ley-gondolas-arg.filterApply\": \"Aplique\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableCategorieLaw\": \"Categoria da lei\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableCategorieCatalog\": \"Categoria de catálogo\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableBestLowerProduct\": \"Produtos\",\n \"admin/admin.app.ley-gondolas-arg.selectCategory\": \"Selecione uma categoria\",\n \"admin/admin.app.ley-gondolas-arg.changeCategory\": \"Mudar uma categoria\",\n \"admin/admin.app.ley-gondolas-arg.currentCategory\": \"Categoria Atual\",\n \"admin/admin.app.ley-gondolas-arg.cancel\": \"Cancelar\",\n \"admin/admin.app.ley-gondolas-arg.saveSelectedCategory\": \"Salvar categoria selecionada\",\n \"admin/admin.app.ley-gondolas-arg.productsTableImage\": \"Imagem\",\n \"admin/admin.app.ley-gondolas-arg.productsTableProductId\": \"Identificação\",\n \"admin/admin.app.ley-gondolas-arg.productsTableProductName\": \"Nome\",\n \"admin/admin.app.ley-gondolas-arg.productsTableBrand\": \"Marca\",\n \"admin/admin.app.ley-gondolas-arg.productsTablePricePerUnit\": \"Preço por unidade\",\n \"admin/admin.app.ley-gondolas-arg.productsTablePyMEs\": \"PyMEs\",\n \"admin/admin.app.ley-gondolas-arg.productsTableMejorMenorPrecio\": \"Mejor Menor Precio\",\n \"admin/admin.app.ley-gondolas-arg.currentProduct\": \"Produto Atual\",\n \"admin/admin.app.ley-gondolas-arg.showProduct\": \"Mostrar Produtos\",\n \"admin/admin.app.ley-gondolas-arg.lastSeen\": \"Visto pela última vez\",\n \"admin/admin.app.ley-gondolas-arg.showInCatalog\": \"Mostrar no Catálogo\",\n \"admin/admin.app.ley-gondolas-arg.warningSelectCategory\": \"Escolha uma categoria para exibir os produtos.\",\n \"admin/admin.app.ley-gondolas-arg.tryLater\": \"Ocorreu um problema, tente novamente mais tarde.\",\n \"admin/admin.app.ley-gondolas-arg.noProducts\": \"Nenhum produto encontrado.\"\n}\n\n```" } ]
code_admin-ley-gondolas-arg_7ad1e461
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/messages/en.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/admin.app.navigation.title\": \"Ley de Gondolas\",\n \"admin/admin.app.navigation.search.kws\": \"ley, gondolas, arg, argentina\",\n \"admin/admin.app.ley-gondolas-arg.pageTitle\": \"Ley de Gondolas\",\n \"admin/admin.app.ley-gondolas-arg.textOf\": \"of\",\n \"admin/admin.app.ley-gondolas-arg.textShowRows\": \"Show rows\",\n \"admin/admin.app.ley-gondolas-arg.filterClear\": \"Clear Filters\",\n \"admin/admin.app.ley-gondolas-arg.filterAll\": \"All\",\n \"admin/admin.app.ley-gondolas-arg.filterNone\": \"None\",\n \"admin/admin.app.ley-gondolas-arg.filterAny\": \"Any\",\n \"admin/admin.app.ley-gondolas-arg.filterIs\": \"is\",\n \"admin/admin.app.ley-gondolas-arg.filterIsNot\": \"is not\",\n \"admin/admin.app.ley-gondolas-arg.filterContains\": \"contains\",\n \"admin/admin.app.ley-gondolas-arg.filterApply\": \"Apply\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableCategorieLaw\": \"Law category\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableCategorieCatalog\": \"Catalog category\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableBestLowerProduct\": \"Products\",\n \"admin/admin.app.ley-gondolas-arg.selectCategory\": \"Select the Category\",\n \"admin/admin.app.ley-gondolas-arg.changeCategory\": \"Change the Category\",\n \"admin/admin.app.ley-gondolas-arg.currentCategory\": \"Current Category\",\n \"admin/admin.app.ley-gondolas-arg.cancel\": \"Cancel\",\n \"admin/admin.app.ley-gondolas-arg.saveSelectedCategory\": \"Save Selected Category\",\n \"admin/admin.app.ley-gondolas-arg.productsTableImage\": \"Image\",\n \"admin/admin.app.ley-gondolas-arg.productsTableProductId\": \"Id\",\n \"admin/admin.app.ley-gondolas-arg.productsTableProductName\": \"Name\",\n \"admin/admin.app.ley-gondolas-arg.productsTableBrand\": \"Brand\",\n \"admin/admin.app.ley-gondolas-arg.productsTablePricePerUnit\": \"Price Per Unit\",\n \"admin/admin.app.ley-gondolas-arg.productsTablePyMEs\": \"PyMEs\",\n \"admin/admin.app.ley-gondolas-arg.productsTableMejorMenorPrecio\": \"Mejor Menor Precio\",\n \"admin/admin.app.ley-gondolas-arg.currentProduct\": \"Current Product\",\n \"admin/admin.app.ley-gondolas-arg.showProduct\": \"Show Products\",\n \"admin/admin.app.ley-gondolas-arg.lastSeen\": \"Last Seen\",\n \"admin/admin.app.ley-gondolas-arg.showInCatalog\": \"Show in Catalog\",\n \"admin/admin.app.ley-gondolas-arg.warningSelectCategory\": \"Choose a category from which to display products.\",\n \"admin/admin.app.ley-gondolas-arg.tryLater\": \"There was a problem, please try again later.\",\n \"admin/admin.app.ley-gondolas-arg.noProducts\": \"No products found.\"\n}\n\n```" } ]
code_admin-ley-gondolas-arg_63316898
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/messages/es.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin/admin.app.navigation.title\": \"Ley de Gondolas\",\n \"admin/admin.app.navigation.search.kws\": \"ley, gondolas, arg, argentina\",\n \"admin/admin.app.ley-gondolas-arg.pageTitle\": \"Ley de Gondolas\",\n \"admin/admin.app.ley-gondolas-arg.textOf\": \"de\",\n \"admin/admin.app.ley-gondolas-arg.textShowRows\": \"Mostrar filas\",\n \"admin/admin.app.ley-gondolas-arg.filterClear\": \"Limpiar Filtros\",\n \"admin/admin.app.ley-gondolas-arg.filterAll\": \"Todos\",\n \"admin/admin.app.ley-gondolas-arg.filterNone\": \"Ninguno\",\n \"admin/admin.app.ley-gondolas-arg.filterAny\": \"Cualquiera\",\n \"admin/admin.app.ley-gondolas-arg.filterIs\": \"igual\",\n \"admin/admin.app.ley-gondolas-arg.filterIsNot\": \"no igual\",\n \"admin/admin.app.ley-gondolas-arg.filterContains\": \"contiene\",\n \"admin/admin.app.ley-gondolas-arg.filterApply\": \"Aplicar\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableCategorieLaw\": \"Categoria Ley\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableCategorieCatalog\": \"Categoria Catalogo\",\n \"admin/admin.app.ley-gondolas-arg.categoriesTableBestLowerProduct\": \"Productos\",\n \"admin/admin.app.ley-gondolas-arg.selectCategory\": \"Seleccionar Categoria\",\n \"admin/admin.app.ley-gondolas-arg.changeCategory\": \"Cambiar Categoria\",\n \"admin/admin.app.ley-gondolas-arg.currentCategory\": \"Categoria Actual\",\n \"admin/admin.app.ley-gondolas-arg.cancel\": \"Cancelar\",\n \"admin/admin.app.ley-gondolas-arg.saveSelectedCategory\": \"Guardar Categoria Selecionada\",\n \"admin/admin.app.ley-gondolas-arg.productsTableImage\": \"Imagen\",\n \"admin/admin.app.ley-gondolas-arg.productsTableProductId\": \"Id\",\n \"admin/admin.app.ley-gondolas-arg.productsTableProductName\": \"Nombre\",\n \"admin/admin.app.ley-gondolas-arg.productsTableBrand\": \"Marca\",\n \"admin/admin.app.ley-gondolas-arg.productsTablePricePerUnit\": \"Precio x Uni. de Medida\",\n \"admin/admin.app.ley-gondolas-arg.productsTablePyMEs\": \"PyMEs\",\n \"admin/admin.app.ley-gondolas-arg.productsTableMejorMenorPrecio\": \"Mejor Menor Precio\",\n \"admin/admin.app.ley-gondolas-arg.currentProduct\": \"Producto Actual\",\n \"admin/admin.app.ley-gondolas-arg.showProduct\": \"Mostrar Productos\",\n \"admin/admin.app.ley-gondolas-arg.lastSeen\": \"Último visto\",\n \"admin/admin.app.ley-gondolas-arg.showInCatalog\": \"Mostrar en Catálogo\",\n \"admin/admin.app.ley-gondolas-arg.warningSelectCategory\": \"Elija una categoría de la cual mostrar productos.\",\n \"admin/admin.app.ley-gondolas-arg.tryLater\": \"Hubo un problema, intente despues nuevamente.\",\n \"admin/admin.app.ley-gondolas-arg.noProducts\": \"No se encontraron productos.\"\n}\n\n```" } ]
code_admin-ley-gondolas-arg_7b203c1f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/admin/navigation.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"section\": \"products\",\n \"subSection\": \"catalog\",\n \"subSectionItems\": [\n {\n \"isNew\": true,\n \"labelId\": \"admin/admin.app.navigation.title\",\n \"path\": \"/admin/ley-gondolas\"\n }\n ],\n \"searchKeyWordsHelpers\": \"admin/admin.app.navigation.search.kws\"\n}\n\n```" } ]
code_admin-ley-gondolas-arg_0c173434
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/admin/routes.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"admin.app.ley-gondolas-arg\": {\n \"component\": \"LeyGondolas\",\n \"path\": \"/admin/app/ley-gondolas\"\n }\n}\n\n```" } ]
code_admin-ley-gondolas-arg_827869c8
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/docs/README.md from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n## ⚠️ Maintenance ⚠️\n*After June 27 of 2022, this application will no longer be maintained by the FPA APUB team or the RPT LATAM team. Maintenance will be the responsibility of the ecosystem, everyone will be able to make a branch with the changes or improvements they want to make, make a pull request and we will approve it.*\n\n---\n\n📢 Use this project, [contribute](https://github.com/vtex-apps/promotion-cloner) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# Admin Ley de Gondolas\n\n<!-- DOCS-IGNORE:start -->\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-)\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<!-- DOCS-IGNORE:end -->\n\nThe Admin Ley de Gondolas will help to carry out the **necessary integration** to comply with the [Ley de Gondolas](https://www.argentina.gob.ar/justicia/derechofacil/leysimple/ley-de-gondolas) from Argentina\n\n![Media Placeholder](https://user-images.githubusercontent.com/55905671/137961451-a9f0f85e-a3d9-43ab-af9e-84e5be9f6346.gif)\n\n---\n\n## Configuration\n\n1. Using your terminal and the [VTEX IO Toolbelt](https://vtex.io/docs/recipes/development/vtex-io-cli-installment-and-command-reference), log into the desired VTEX account.\n2. Run `vtex install vtexarg.admin-ley-gondolas-arg` on the account you're working on.\n3. We needs to **Config MasterData**, do a [`GET`] to the endpoint dedicated to **config** the app [https://{account}.myvtex.com/v0/config](https://{account}.myvtex.com/v0/config) (Replace `{account}` with the desired VTEX account)\n ![image](https://user-images.githubusercontent.com/55905671/137963832-03e66403-b45c-4b3f-9517-5758829e2b99.png)\n4. Access your VTEX account's admin.\n5. Access **Catalog** and then **Ley de Gondolas**.\n\n---\n\n## Modus Operandi\n\nIn the first column you can see all the\n[Categories includes in the law](https://www.argentina.gob.ar/produccion/leydegondolas/categorias-y-productos).\n![image](https://user-images.githubusercontent.com/55905671/137969788-efb1be53-ceaf-4cb7-aa35-469e3ee9e067.png)\n\nThen you can select for each Law's Category which category **in your catalog** correspond.\n\n![Media Placeholder](https://user-images.githubusercontent.com/55905671/137970575-d6a29ba4-cece-4b23-bf21-af83606ecc26.gif)\n\nThen you can see the products of that category.\n![Media Placeholder](https://user-images.githubusercontent.com/55905671/137971112-3b9c9957-3cc2-45c4-b3a7-c65111693293.gif)\n\nIn this table we can see:\n![image](https://user-images.githubusercontent.com/55905671/137974137-fea954dd-eb2f-4207-9d48-0fdc7f6c74cf.png)\n\n1. Image\n2. See on Catalog, if you click you can see the product in the catalog to check if you need to change the `Ley de Gondolas's Products Fields`.\n ![Media Placeholder](https://user-images.githubusercontent.com/55905671/137973483-9abcfe9d-15b8-49a1-b7e0-40cfc8d9fadc.gif)\n3. Name: if you click, you will we redirect to the PDP of the product.\n4. Price Per Unit: this data is getting from the `pricePerUnit` product field from `leyDeGondolas` group, the list of products will **always order by this column**.\n5. Best Lower Price: you will see a check if in the `leyDeGondolas` product field from `leyDeGondolas` group have checked the value `Mejor Menor Valor x Unidad`.\n6. PyMEs: you will see a check if in the `leyDeGondolas` product field from `leyDeGondolas` group have checked the value `PyMEs`.\n7. Brand\n <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n <!-- prettier-ignore-start -->\n <!-- markdownlint-disable -->\n\n<!-- DOCS-IGNORE:start -->\n\n---\n\n## Contributors ✨\n\nThanks goes to these wonderful people:\n\n<table>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/germanBonacchi\"><img src=\"https://avatars.githubusercontent.com/u/55905671?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Germán Bonacchi</b></sub></a><br /><a href=\"https://github.com/vtex-apps/quantity-on-cart/commits?author=germanBonacchi\" title=\"Code\">💻</a></td>\n </tr>\n</table>\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!\n\n<!-- DOCS-IGNORE:end -->\n\n```" } ]
code_admin-ley-gondolas-arg_05a2537f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/graphql/schema.graphql from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ntype Query {\n getData: GetDataResponse\n\n getCategoryTree: GetCategoryTreeResponse\n getProductsOfCategory(categoryTree: String, from: Int, to: Int, params: String): GetProductsOfCategoryTreeResponse\n}\n\ntype Mutation {\n createDocument(body: BodyCreateDocumentMasterData): CreateDocumentResponse\n\n updateDocument(\n documentId: String\n body: BodyUpdateDocumentMasterData\n ): UpdateDocumentResponse\n}\n\n```" } ]
code_admin-ley-gondolas-arg_1d237dc5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/node/service.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"memory\": 512,\n \"ttl\": 10,\n \"timeout\": 600,\n \"minReplicas\": 10,\n \"maxReplicas\": 40,\n \"workers\": 3,\n \"routes\": {\n \"config\": {\n \"path\": \"/v0/config\",\n \"public\": true\n }\n }\n}\n\n```" } ]
code_admin-ley-gondolas-arg_618b6300
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/node/package.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"@vtex/api\": \"6.45.12\",\n \"@vtex/clients\": \"^2.17.0\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.0.0\",\n \"@vtex/api\": \"6.45.12\",\n \"typescript\": \"3.9.7\"\n },\n \"resolutions\": {\n \"**/**/minimist\": \"^0.2.1\",\n \"**/**/lodash\": \"^4.17.17\"\n },\n \"version\": \"0.0.6\"\n}\n\n```" } ]
code_admin-ley-gondolas-arg_1a81dcc0
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/node/globals.ts from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\n/* eslint-disable prettier/prettier */\n\nimport type {\n IOContext,\n ParamsContext,\n RecorderState,\n SegmentData,\n ServiceContext,\n MessagesLoaderV2,\n EventContext,\n} from '@vtex/api'\n\nimport type { Clients } from './clients'\n\ndeclare global {\n type Context = ServiceContext<Clients, State>\n\n interface State extends RecorderState {\n messagesTenantLanguage?: MessagesLoaderV2\n messagesBindingLanguage?: MessagesLoaderV2\n }\n\n interface StaleRevalidateData<T> {\n ttl: Date\n data: T\n }\n\n interface CustomContext extends ParamsContext {\n cookie: string\n originalPath: string\n vtex: CustomIOContext\n }\n\n interface CustomIOContext extends IOContext {\n segment?: SegmentData\n }\n\n interface Property {\n name: string\n values: [string]\n }\n\n interface TranslatableMessage {\n content: string\n from: string\n id: string\n }\n\n interface Reference {\n Key: string\n Value: string\n }\n\n interface StatusChangeContext extends EventContext<Clients> {\n body: {\n domain: string\n orderId: string\n currentState: string\n lastState: string\n currentChangeDate: string\n lastChangeDate: string\n }\n }\n\n interface SaveDataInMasterDataBody {\n categorieLaw: string\n categorieCatalog: string\n bestLowerProduct: string\n }\n\n interface DocumentOfCategorie {\n id: string\n categorieLaw: string\n categorieCatalog: string\n bestLowerProduct: string\n }\n\n interface State extends RecorderState {\n documentOfOrder: DocumentOfCategorie\n }\n}\n\n```" } ]
code_admin-ley-gondolas-arg_1c40f63c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/node/index.ts from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\n/* eslint-disable prettier/prettier */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { RecorderState } from '@vtex/api'\nimport { LRUCache, method, Service } from '@vtex/api'\n\nimport { Clients } from './clients'\nimport { resolvers } from './resolvers'\nimport { configSchema } from './middlewares/configSchema'\n\nconst TIMEOUT_MS = 800\n\nconst memoryCache = new LRUCache<string, any>({ max: 20 })\n\nmetrics.trackCache('status', memoryCache)\n\nexport default new Service<Clients, RecorderState, Context>({\n clients: {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: TIMEOUT_MS,\n },\n status: {\n memoryCache,\n },\n },\n },\n graphql: {\n resolvers,\n },\n routes: {\n config: method({\n GET: [configSchema],\n }),\n },\n})\n\n```" } ]
code_admin-ley-gondolas-arg_54b77bb5
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/react/package.json from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"admin-ley-gondolas-arg\",\n \"version\": \"0.0.6\",\n \"devDependencies\": {\n \"@types/node\": \"^11.12.1\",\n \"@types/react\": \"^16.8.10\",\n \"@types/react-intl\": \"^3.0.0\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"apollo-client\": \"^2.4.7\",\n \"graphql\": \"^14.0.2\",\n \"prop-types\": \"^15.7.2\",\n \"react\": \"^17.0.1\",\n \"react-dom\": \"^17.0.1\",\n \"react-intl\": \"^5.20.10\",\n \"typescript\": \"3.9.7\"\n },\n \"dependencies\": {\n \"@types/faker\": \"^4.1.5\",\n \"@vtex/styleguide\": \"^9.145.1\",\n \"faker\": \"^4.1.0\",\n \"fix\": \"0.0.6\",\n \"react-apollo\": \"^3.1.5\",\n \"react-collapsed\": \"^3.2.1\",\n \"react-magnifier\": \"^3.0.4\"\n }\n}\n\n```" } ]
code_admin-ley-gondolas-arg_441e3a0c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/react/styles.global.css from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```css\nhtml,\nbody,\n#render-container,\n#render-provider,\n.render-container,\n.render-provider {\n height: 100%;\n}\n\n```" } ]
code_admin-ley-gondolas-arg_d5481dc1
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/react/LeyGondolas.tsx from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```tsx\nimport React from 'react'\nimport { Layout, PageBlock, PageHeader } from 'vtex.styleguide'\nimport { useIntl } from 'react-intl'\nimport { useQuery } from 'react-apollo'\n\nimport { titlesIntl } from './utils/intl'\nimport { listOfLawCategories } from './utils/listOfLawCategories'\nimport './styles.global.css'\nimport CategoriesTable from './components/CategoriesTable'\nimport getData from './graphql/getData.gql'\nimport LoadingSpinner from './components/LoadingSpinner'\n\nexport default function LeyGondolas() {\n const intl = useIntl()\n const responseFromGetData = useQuery(getData, {\n ssr: false,\n })\n\n const dataFromMasterData = responseFromGetData.data?.getData?.data\n\n const categoriesList: CategoriesRow[] = listOfLawCategories.map(\n (lawCategorie: string, index: number) => {\n const documentFinded: DocumentCategorie = dataFromMasterData?.find(\n (document: DocumentCategorie) => document.categorieLaw === lawCategorie\n )\n\n return {\n id: index,\n idDocument: documentFinded?.id || '',\n categorieLaw: lawCategorie,\n categorieCatalog: {\n idRow: index,\n id: documentFinded?.idCategory || -1,\n name: documentFinded?.categorieCatalog || '',\n },\n bestLowerProduct: {\n idRow: index,\n id: documentFinded?.idBestLowerProduct || '',\n name: documentFinded?.nameBestLowerProduct || '',\n },\n }\n }\n )\n\n return (\n <Layout\n fullWidth\n pageHeader={\n <PageHeader title={intl.formatMessage(titlesIntl.pageTitle)} />\n }\n >\n <PageBlock variation=\"full\">\n {categoriesList.length > 0 && dataFromMasterData && (\n <CategoriesTable categoriesList={categoriesList} />\n )}\n {(categoriesList.length === 0 || !dataFromMasterData) && (\n <LoadingSpinner />\n )}\n </PageBlock>\n </Layout>\n )\n}\n\n```" } ]
code_admin-ley-gondolas-arg_964b21df
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/graphql/types/createDocument.graphql from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ninput BodyCreateDocumentMasterData {\n categorieLaw: String\n categorieCatalog: String\n idCategory: Int\n nameBestLowerProduct: String\n idBestLowerProduct: String\n}\n\ntype DataCreateDocumentResponse {\n Id: String\n Href: String\n DocumentId: String\n}\n\ntype CreateDocumentResponse {\n status: Int\n data: DataCreateDocumentResponse\n}\n\n```" } ]
code_admin-ley-gondolas-arg_75c1180c
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/graphql/types/getProductsOfCategory.graphql from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ntype Image {\n imageId: String\n imageUrl: String\n imageText: String\n}\n\ntype Item {\n itemId: String\n name: String\n images: [Image]\n}\n\ntype DataGetProductsOfCategoryTreeResponse {\n productId: String\n productName: String\n brand: String\n categoryId: String\n pricePerUnit: [Float]\n leyDeGondolas: [String]\n linkText: String\n items: [Item]\n}\n\ntype GetProductsOfCategoryTreeResponse {\n status: Int\n data: [DataGetProductsOfCategoryTreeResponse]\n}\n\n```" } ]
code_admin-ley-gondolas-arg_cd3af151
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/graphql/types/updateDocument.graphql from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ninput BodyUpdateDocumentMasterData {\n categorieLaw: String\n categorieCatalog: String\n idCategory: Int\n nameBestLowerProduct: String\n idBestLowerProduct: String\n}\n\ntype UpdateDocumentResponse {\n status: Int\n}\n\n```" } ]
code_admin-ley-gondolas-arg_64aaa2e7
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/graphql/types/getData.graphql from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ntype DataGetDataResponse {\n id: String\n categorieLaw: String\n idCategory: Int\n categorieCatalog: String\n idBestLowerProduct: String\n nameBestLowerProduct: String\n}\n\ntype GetDataResponse {\n status: Int\n data: [DataGetDataResponse]\n}\n\n```" } ]
code_admin-ley-gondolas-arg_380f1f9f
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/graphql/types/getCategoryTree.graphql from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```graphql\ntype DataGetCategoryTreeResponse {\n id: Int\n name: String\n hasChildren: Boolean\n children: [DataGetCategoryTreeResponse]\n}\n\ntype GetCategoryTreeResponse {\n status: Int\n data: [DataGetCategoryTreeResponse]\n}\n\n```" } ]
code_admin-ley-gondolas-arg_c4541455
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of admin-ley-gondolas-arg/node/clients/masterDataClient.ts from the admin-ley-gondolas-arg VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```typescript\n/* eslint-disable prettier/prettier */\n\nimport type { InstanceOptions, IOContext, IOResponse } from '@vtex/api'\nimport { ExternalClient } from '@vtex/api'\n\nimport type { ResponseCreateSchema, BodySchema } from '../interfaces'\n\nexport default class MasterDataClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(\n `http://${context.account}.vtexcommercestable.com.br/api/dataentities`,\n context,\n {\n ...options,\n headers: {\n VtexIdClientAutCookie:\n context.adminUserAuthToken ??\n context.storeUserAuthToken ??\n context.authToken,\n },\n }\n )\n }\n\n public async getData() {\n return this.http.getRaw(`/leyGondolas/search?_fields=_all`)\n }\n\n public async createDocument(body: SaveDataInMasterDataBody) {\n return this.http.postRaw(\n `/leyGondolas/documents?_schema=ley-gondolas`,\n body\n )\n }\n\n public async updateDocument(id: string, body: SaveDataInMasterDataBody) {\n await this.http.patch(\n `/leyGondolas/documents/${id}?_schema=ley-gondolas`,\n body\n )\n\n return { status: 200 }\n }\n\n public async createSchema(\n body: BodySchema\n ): Promise<IOResponse<ResponseCreateSchema>> {\n return this.http.putRaw(`/leyGondolas/schemas/ley-gondolas`, body)\n }\n}\n\n```" } ]