saleor-dashboard/src/shipping/fixtures.ts

1879 lines
40 KiB
TypeScript
Raw Normal View History

import { ShippingZoneFragment } from "@saleor/fragments/types/ShippingZoneFragment";
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
import { SearchProducts_search_edges_node } from "@saleor/searches/types/SearchProducts";
import { ShippingZone_shippingZone } from "@saleor/shipping/types/ShippingZone";
import {
PostalCodeRuleInclusionTypeEnum,
ShippingMethodTypeEnum,
WeightUnitsEnum
} from "../types/globalTypes";
2019-06-19 14:40:52 +00:00
export const shippingZones: ShippingZoneFragment[] = [
{
__typename: "ShippingZone",
countries: [
{
__typename: "CountryDisplay",
code: "AX",
country: "Wyspy Alandzkie"
},
{
__typename: "CountryDisplay",
code: "AL",
country: "Albania"
},
{
__typename: "CountryDisplay",
code: "AD",
country: "Andora"
},
{
__typename: "CountryDisplay",
code: "AT",
country: "Austria"
},
{
__typename: "CountryDisplay",
code: "BY",
country: "Białoruś"
},
{
__typename: "CountryDisplay",
code: "BE",
country: "Belgia"
},
{
__typename: "CountryDisplay",
code: "BA",
country: "Bośnia i Hercegowina"
},
{
__typename: "CountryDisplay",
code: "BG",
country: "Bułgaria"
},
{
__typename: "CountryDisplay",
code: "HR",
country: "Chorwacja"
},
{
__typename: "CountryDisplay",
code: "CZ",
country: "Czechy"
},
{
__typename: "CountryDisplay",
code: "DK",
country: "Dania"
},
{
__typename: "CountryDisplay",
code: "EE",
country: "Estonia"
},
{
__typename: "CountryDisplay",
code: "FO",
country: "Wyspy Owcze"
},
{
__typename: "CountryDisplay",
code: "FI",
country: "Finlandia"
},
{
__typename: "CountryDisplay",
code: "FR",
country: "Francja"
},
{
__typename: "CountryDisplay",
code: "DE",
country: "Niemcy"
},
{
__typename: "CountryDisplay",
code: "GI",
country: "Gibraltar"
},
{
__typename: "CountryDisplay",
code: "GR",
country: "Grecja"
},
{
__typename: "CountryDisplay",
code: "GG",
country: "Guernsey"
},
{
__typename: "CountryDisplay",
code: "VA",
country: "Watykan"
},
{
__typename: "CountryDisplay",
code: "HU",
country: "Węgry"
},
{
__typename: "CountryDisplay",
code: "IS",
country: "Islandia"
},
{
__typename: "CountryDisplay",
code: "IE",
country: "Irlandia"
},
{
__typename: "CountryDisplay",
code: "IM",
country: "Wyspa Man"
},
{
__typename: "CountryDisplay",
code: "IT",
country: "Włochy"
},
{
__typename: "CountryDisplay",
code: "JE",
country: "Jersey"
},
{
__typename: "CountryDisplay",
code: "LV",
country: "Łotwa"
},
{
__typename: "CountryDisplay",
code: "LI",
country: "Liechtenstein"
},
{
__typename: "CountryDisplay",
code: "LT",
country: "Litwa"
},
{
__typename: "CountryDisplay",
code: "LU",
country: "Luksemburg"
},
{
__typename: "CountryDisplay",
code: "MK",
country: "Macedonia"
},
{
__typename: "CountryDisplay",
code: "MT",
country: "Malta"
},
{
__typename: "CountryDisplay",
code: "MD",
country: "Mołdawia"
},
{
__typename: "CountryDisplay",
code: "MC",
country: "Monako"
},
{
__typename: "CountryDisplay",
code: "ME",
country: "Czarnogóra"
},
{
__typename: "CountryDisplay",
code: "NL",
country: "Holandia"
},
{
__typename: "CountryDisplay",
code: "NO",
country: "Norwegia"
},
{
__typename: "CountryDisplay",
code: "PL",
country: "Polska"
},
{
__typename: "CountryDisplay",
code: "PT",
country: "Portugalia"
},
{
__typename: "CountryDisplay",
code: "RO",
country: "Rumunia"
},
{
__typename: "CountryDisplay",
code: "RU",
country: "Rosja"
},
{
__typename: "CountryDisplay",
code: "SM",
country: "San Marino"
},
{
__typename: "CountryDisplay",
code: "RS",
country: "Serbia"
},
{
__typename: "CountryDisplay",
code: "SK",
country: "Słowacja"
},
{
__typename: "CountryDisplay",
code: "SI",
country: "Słowenia"
},
{
__typename: "CountryDisplay",
code: "ES",
country: "Hiszpania"
},
{
__typename: "CountryDisplay",
code: "SJ",
country: "Svalbard i Jan Mayen"
},
{
__typename: "CountryDisplay",
code: "SE",
country: "Szwecja"
},
{
__typename: "CountryDisplay",
code: "CH",
country: "Szwajcaria"
},
{
__typename: "CountryDisplay",
code: "UA",
country: "Ukraina"
},
{
__typename: "CountryDisplay",
code: "GB",
country: "Wielka Brytania"
}
],
2020-12-30 12:25:40 +00:00
description: "Shipping zone description",
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdab25lOjE=",
metadata: [],
2020-12-21 12:46:34 +00:00
name: "Europe",
privateMetadata: []
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingZone",
countries: [
{
__typename: "CountryDisplay",
code: "AS",
country: "Samoa Amerykańskie"
},
{
__typename: "CountryDisplay",
code: "AU",
country: "Australia"
},
{
__typename: "CountryDisplay",
code: "CX",
country: "Wyspa Bożego Narodzenia"
},
{
__typename: "CountryDisplay",
code: "CC",
country: "Wyspy Kokosowe"
},
{
__typename: "CountryDisplay",
code: "CK",
country: "Wyspy Cooka"
},
{
__typename: "CountryDisplay",
code: "FJ",
country: "Fidżi"
},
{
__typename: "CountryDisplay",
code: "PF",
country: "Polinezja Francuska"
},
{
__typename: "CountryDisplay",
code: "GU",
country: "Guam"
},
{
__typename: "CountryDisplay",
code: "HM",
country: "Wyspy Heard i McDonalda"
},
{
__typename: "CountryDisplay",
code: "KI",
country: "Kiribati"
},
{
__typename: "CountryDisplay",
code: "MH",
country: "Wyspy Marshalla"
},
{
__typename: "CountryDisplay",
code: "FM",
country: "Mikronezja"
},
{
__typename: "CountryDisplay",
code: "NR",
country: "Nauru"
},
{
__typename: "CountryDisplay",
code: "NC",
country: "Nowa Kaledonia"
},
{
__typename: "CountryDisplay",
code: "NZ",
country: "Nowa Zelandia"
},
{
__typename: "CountryDisplay",
code: "NU",
country: "Niue"
},
{
__typename: "CountryDisplay",
code: "NF",
country: "Norfolk"
},
{
__typename: "CountryDisplay",
code: "MP",
country: "Mariany Północne"
},
{
__typename: "CountryDisplay",
code: "PW",
country: "Palau"
},
{
__typename: "CountryDisplay",
code: "PG",
country: "Papua-Nowa Gwinea"
},
{
__typename: "CountryDisplay",
code: "PN",
country: "Pitcairn"
},
{
__typename: "CountryDisplay",
code: "WS",
country: "Samoa"
},
{
__typename: "CountryDisplay",
code: "SB",
country: "Wyspy Salomona"
},
{
__typename: "CountryDisplay",
code: "TK",
country: "Tokelau"
},
{
__typename: "CountryDisplay",
code: "TO",
country: "Tonga"
},
{
__typename: "CountryDisplay",
code: "TV",
country: "Tuvalu"
},
{
__typename: "CountryDisplay",
code: "UM",
country: "Dalekie Wyspy Mniejsze Stanów Zjednoczonych"
},
{
__typename: "CountryDisplay",
code: "VU",
country: "Vanuatu"
},
{
__typename: "CountryDisplay",
code: "WF",
country: "Wallis i Futuna"
}
],
2020-12-30 12:25:40 +00:00
description: "Shipping zone description",
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdab25lOjI=",
metadata: [],
2020-12-21 12:46:34 +00:00
name: "Oceania",
privateMetadata: []
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingZone",
countries: [
{
__typename: "CountryDisplay",
code: "AF",
country: "Afganistan"
},
{
__typename: "CountryDisplay",
code: "AM",
country: "Armenia"
},
{
__typename: "CountryDisplay",
code: "AZ",
country: "Azerbejdżan"
},
{
__typename: "CountryDisplay",
code: "BH",
country: "Bahrajn"
},
{
__typename: "CountryDisplay",
code: "BD",
country: "Bangladesz"
},
{
__typename: "CountryDisplay",
code: "BT",
country: "Bhutan"
},
{
__typename: "CountryDisplay",
code: "BN",
country: "Brunei"
},
{
__typename: "CountryDisplay",
code: "KH",
country: "Kambodża"
},
{
__typename: "CountryDisplay",
code: "CN",
country: "Chiny"
},
{
__typename: "CountryDisplay",
code: "CY",
country: "Cypr"
},
{
__typename: "CountryDisplay",
code: "GE",
country: "Gruzja"
},
{
__typename: "CountryDisplay",
code: "HK",
country: "Hongkong"
},
{
__typename: "CountryDisplay",
code: "IN",
country: "Indie"
},
{
__typename: "CountryDisplay",
code: "ID",
country: "Indonezja"
},
{
__typename: "CountryDisplay",
code: "IR",
country: "Iran"
},
{
__typename: "CountryDisplay",
code: "IQ",
country: "Irak"
},
{
__typename: "CountryDisplay",
code: "IL",
country: "Izrael"
},
{
__typename: "CountryDisplay",
code: "JP",
country: "Japonia"
},
{
__typename: "CountryDisplay",
code: "JO",
country: "Jordania"
},
{
__typename: "CountryDisplay",
code: "KZ",
country: "Kazachstan"
},
{
__typename: "CountryDisplay",
code: "KP",
country: "Korea Północna"
},
{
__typename: "CountryDisplay",
code: "KR",
country: "Korea Południowa"
},
{
__typename: "CountryDisplay",
code: "KW",
country: "Kuwejt"
},
{
__typename: "CountryDisplay",
code: "KG",
country: "Kirgistan"
},
{
__typename: "CountryDisplay",
code: "LA",
country: "Laos"
},
{
__typename: "CountryDisplay",
code: "LB",
country: "Liban"
},
{
__typename: "CountryDisplay",
code: "MO",
country: "Makau"
},
{
__typename: "CountryDisplay",
code: "MY",
country: "Malezja"
},
{
__typename: "CountryDisplay",
code: "MV",
country: "Malediwy"
},
{
__typename: "CountryDisplay",
code: "MN",
country: "Mongolia"
},
{
__typename: "CountryDisplay",
code: "MM",
country: "Mjanma"
},
{
__typename: "CountryDisplay",
code: "NP",
country: "Nepal"
},
{
__typename: "CountryDisplay",
code: "OM",
country: "Oman"
},
{
__typename: "CountryDisplay",
code: "PK",
country: "Pakistan"
},
{
__typename: "CountryDisplay",
code: "PS",
country: "Palestyna"
},
{
__typename: "CountryDisplay",
code: "PH",
country: "Filipiny"
},
{
__typename: "CountryDisplay",
code: "QA",
country: "Katar"
},
{
__typename: "CountryDisplay",
code: "SA",
country: "Arabia Saudyjska"
},
{
__typename: "CountryDisplay",
code: "SG",
country: "Singapur"
},
{
__typename: "CountryDisplay",
code: "LK",
country: "Sri Lanka"
},
{
__typename: "CountryDisplay",
code: "SY",
country: "Syria"
},
{
__typename: "CountryDisplay",
code: "TW",
country: "Tajwan"
},
{
__typename: "CountryDisplay",
code: "TJ",
country: "Tadżykistan"
},
{
__typename: "CountryDisplay",
code: "TH",
country: "Tajlandia"
},
{
__typename: "CountryDisplay",
code: "TL",
country: "Timor Wschodni"
},
{
__typename: "CountryDisplay",
code: "TR",
country: "Turcja"
},
{
__typename: "CountryDisplay",
code: "TM",
country: "Turkmenistan"
},
{
__typename: "CountryDisplay",
code: "AE",
country: "Zjednoczone Emiraty Arabskie"
},
{
__typename: "CountryDisplay",
code: "UZ",
country: "Uzbekistan"
},
{
__typename: "CountryDisplay",
code: "VN",
country: "Wietnam"
},
{
__typename: "CountryDisplay",
code: "YE",
country: "Jemen"
}
],
2020-12-30 12:25:40 +00:00
description: "Shipping zone description",
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdab25lOjM=",
metadata: [],
2020-12-21 12:46:34 +00:00
name: "Asia",
privateMetadata: []
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingZone",
countries: [
{
__typename: "CountryDisplay",
code: "AI",
country: "Anguilla"
},
{
__typename: "CountryDisplay",
code: "AG",
country: "Antigua i Barbuda"
},
{
__typename: "CountryDisplay",
code: "AR",
country: "Argentyna"
},
{
__typename: "CountryDisplay",
code: "AW",
country: "Aruba"
},
{
__typename: "CountryDisplay",
code: "BS",
country: "Bahamy"
},
{
__typename: "CountryDisplay",
code: "BB",
country: "Barbados"
},
{
__typename: "CountryDisplay",
code: "BZ",
country: "Belize"
},
{
__typename: "CountryDisplay",
code: "BM",
country: "Bermudy"
},
{
__typename: "CountryDisplay",
code: "BO",
country: "Boliwia"
},
{
__typename: "CountryDisplay",
code: "BQ",
country: "Bonaire, Sint Eustatius i Saba"
},
{
__typename: "CountryDisplay",
code: "BV",
country: "Wyspa Bouveta"
},
{
__typename: "CountryDisplay",
code: "BR",
country: "Brazylia"
},
{
__typename: "CountryDisplay",
code: "CA",
country: "Kanada"
},
{
__typename: "CountryDisplay",
code: "KY",
country: "Kajmany"
},
{
__typename: "CountryDisplay",
code: "CL",
country: "Chile"
},
{
__typename: "CountryDisplay",
code: "CO",
country: "Kolumbia"
},
{
__typename: "CountryDisplay",
code: "CR",
country: "Kostaryka"
},
{
__typename: "CountryDisplay",
code: "CU",
country: "Kuba"
},
{
__typename: "CountryDisplay",
code: "CW",
country: "Curaçao"
},
{
__typename: "CountryDisplay",
code: "DM",
country: "Dominika"
},
{
__typename: "CountryDisplay",
code: "DO",
country: "Dominikana"
},
{
__typename: "CountryDisplay",
code: "EC",
country: "Ekwador"
},
{
__typename: "CountryDisplay",
code: "SV",
country: "Salwador"
},
{
__typename: "CountryDisplay",
code: "FK",
country: "Falklandy"
},
{
__typename: "CountryDisplay",
code: "GF",
country: "Gujana Francuska"
},
{
__typename: "CountryDisplay",
code: "GL",
country: "Grenlandia"
},
{
__typename: "CountryDisplay",
code: "GD",
country: "Grenada"
},
{
__typename: "CountryDisplay",
code: "GP",
country: "Gwadelupa"
},
{
__typename: "CountryDisplay",
code: "GT",
country: "Gwatemala"
},
{
__typename: "CountryDisplay",
code: "GY",
country: "Gujana"
},
{
__typename: "CountryDisplay",
code: "HT",
country: "Haiti"
},
{
__typename: "CountryDisplay",
code: "HN",
country: "Honduras"
},
{
__typename: "CountryDisplay",
code: "JM",
country: "Jamajka"
},
{
__typename: "CountryDisplay",
code: "MQ",
country: "Martynika"
},
{
__typename: "CountryDisplay",
code: "MX",
country: "Meksyk"
},
{
__typename: "CountryDisplay",
code: "MS",
country: "Montserrat"
},
{
__typename: "CountryDisplay",
code: "NI",
country: "Nikaragua"
},
{
__typename: "CountryDisplay",
code: "PA",
country: "Panama"
},
{
__typename: "CountryDisplay",
code: "PY",
country: "Paragwaj"
},
{
__typename: "CountryDisplay",
code: "PE",
country: "Peru"
},
{
__typename: "CountryDisplay",
code: "PR",
country: "Portoryko"
},
{
__typename: "CountryDisplay",
code: "BL",
country: "Saint-Barthélemy"
},
{
__typename: "CountryDisplay",
code: "KN",
country: "Saint Kitts i Nevis"
},
{
__typename: "CountryDisplay",
code: "LC",
country: "Saint Lucia"
},
{
__typename: "CountryDisplay",
code: "MF",
country: "Saint-Martin"
},
{
__typename: "CountryDisplay",
code: "PM",
country: "Saint-Pierre i Miquelon"
},
{
__typename: "CountryDisplay",
code: "VC",
country: "Saint Vincent i Grenadyny"
},
{
__typename: "CountryDisplay",
code: "SX",
country: "Sint Maarten"
},
{
__typename: "CountryDisplay",
code: "GS",
country: "Georgia Południowa i Sandwich Południowy"
},
{
__typename: "CountryDisplay",
code: "SR",
country: "Surinam"
},
{
__typename: "CountryDisplay",
code: "TT",
country: "Trynidad i Tobago"
},
{
__typename: "CountryDisplay",
code: "TC",
country: "Turks i Caicos"
},
{
__typename: "CountryDisplay",
code: "US",
country: "Stany Zjednoczone Ameryki"
},
{
__typename: "CountryDisplay",
code: "UY",
country: "Urugwaj"
},
{
__typename: "CountryDisplay",
code: "VE",
country: "Wenezuela"
},
{
__typename: "CountryDisplay",
code: "VG",
country: "Brytyjskie Wyspy Dziewicze"
},
{
__typename: "CountryDisplay",
code: "VI",
country: "Wyspy Dziewicze Stanów Zjednoczonych"
}
],
2020-12-30 12:25:40 +00:00
description: "Shipping zone description",
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdab25lOjQ=",
metadata: [],
2020-12-21 12:46:34 +00:00
name: "Americas",
privateMetadata: []
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingZone",
countries: [
{
__typename: "CountryDisplay",
code: "DZ",
country: "Algeria"
},
{
__typename: "CountryDisplay",
code: "AO",
country: "Angola"
},
{
__typename: "CountryDisplay",
code: "BJ",
country: "Benin"
},
{
__typename: "CountryDisplay",
code: "BW",
country: "Botswana"
},
{
__typename: "CountryDisplay",
code: "IO",
country: "Brytyjskie Terytorium Oceanu Indyjskiego"
},
{
__typename: "CountryDisplay",
code: "BF",
country: "Burkina Faso"
},
{
__typename: "CountryDisplay",
code: "BI",
country: "Burundi"
},
{
__typename: "CountryDisplay",
code: "CV",
country: "Republika Zielonego Przylądka"
},
{
__typename: "CountryDisplay",
code: "CM",
country: "Kamerun"
},
{
__typename: "CountryDisplay",
code: "CF",
country: "Republika Środkowoafrykańska"
},
{
__typename: "CountryDisplay",
code: "TD",
country: "Czad"
},
{
__typename: "CountryDisplay",
code: "KM",
country: "Komory"
},
{
__typename: "CountryDisplay",
code: "CG",
country: "Kongo"
},
{
__typename: "CountryDisplay",
code: "CD",
country: "Kongo"
},
{
__typename: "CountryDisplay",
code: "CI",
country: "Wybrzeże Kości Słoniowej"
},
{
__typename: "CountryDisplay",
code: "DJ",
country: "Dżibuti"
},
{
__typename: "CountryDisplay",
code: "EG",
country: "Egipt"
},
{
__typename: "CountryDisplay",
code: "GQ",
country: "Gwinea Równikowa"
},
{
__typename: "CountryDisplay",
code: "ER",
country: "Erytrea"
},
{
__typename: "CountryDisplay",
code: "SZ",
country: "Suazi"
},
{
__typename: "CountryDisplay",
code: "ET",
country: "Etiopia"
},
{
__typename: "CountryDisplay",
code: "TF",
country: "Francuskie Terytoria Południowe i Antarktyczne"
},
{
__typename: "CountryDisplay",
code: "GA",
country: "Gabon"
},
{
__typename: "CountryDisplay",
code: "GM",
country: "Gambia"
},
{
__typename: "CountryDisplay",
code: "GH",
country: "Ghana"
},
{
__typename: "CountryDisplay",
code: "GN",
country: "Gwinea"
},
{
__typename: "CountryDisplay",
code: "GW",
country: "Gwinea Bissau"
},
{
__typename: "CountryDisplay",
code: "KE",
country: "Kenia"
},
{
__typename: "CountryDisplay",
code: "LS",
country: "Lesotho"
},
{
__typename: "CountryDisplay",
code: "LR",
country: "Liberia"
},
{
__typename: "CountryDisplay",
code: "LY",
country: "Libia"
},
{
__typename: "CountryDisplay",
code: "MG",
country: "Madagaskar"
},
{
__typename: "CountryDisplay",
code: "MW",
country: "Malawi"
},
{
__typename: "CountryDisplay",
code: "ML",
country: "Mali"
},
{
__typename: "CountryDisplay",
code: "MR",
country: "Mauretania"
},
{
__typename: "CountryDisplay",
code: "MU",
country: "Mauritius"
},
{
__typename: "CountryDisplay",
code: "YT",
country: "Majotta"
},
{
__typename: "CountryDisplay",
code: "MA",
country: "Maroko"
},
{
__typename: "CountryDisplay",
code: "MZ",
country: "Mozambik"
},
{
__typename: "CountryDisplay",
code: "NA",
country: "Namibia"
},
{
__typename: "CountryDisplay",
code: "NE",
country: "Niger"
},
{
__typename: "CountryDisplay",
code: "NG",
country: "Nigeria"
},
{
__typename: "CountryDisplay",
code: "RE",
country: "Reunion"
},
{
__typename: "CountryDisplay",
code: "RW",
country: "Rwanda"
},
{
__typename: "CountryDisplay",
code: "SH",
country:
"Wyspa Świętej Heleny, Wyspa Wniebowstąpienia i Tristan da Cunha"
},
{
__typename: "CountryDisplay",
code: "ST",
country: "Wyspy Świętego Tomasza i Książęca"
},
{
__typename: "CountryDisplay",
code: "SN",
country: "Senegal"
},
{
__typename: "CountryDisplay",
code: "SC",
country: "Seszele"
},
{
__typename: "CountryDisplay",
code: "SL",
country: "Sierra Leone"
},
{
__typename: "CountryDisplay",
code: "SO",
country: "Somalia"
},
{
__typename: "CountryDisplay",
code: "ZA",
country: "Republika Południowej Afryki"
},
{
__typename: "CountryDisplay",
code: "SS",
country: "Sudan Południowy"
},
{
__typename: "CountryDisplay",
code: "SD",
country: "Sudan"
},
{
__typename: "CountryDisplay",
code: "TZ",
country: "Tanzania"
},
{
__typename: "CountryDisplay",
code: "TG",
country: "Togo"
},
{
__typename: "CountryDisplay",
code: "TN",
country: "Tunezja"
},
{
__typename: "CountryDisplay",
code: "UG",
country: "Uganda"
},
{
__typename: "CountryDisplay",
code: "EH",
country: "Sahara Zachodnia"
},
{
__typename: "CountryDisplay",
code: "ZM",
country: "Zambia"
},
{
__typename: "CountryDisplay",
code: "ZW",
country: "Zimbabwe"
}
],
2020-12-30 12:25:40 +00:00
description: "Shipping zone description",
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdab25lOjU=",
metadata: [],
2020-12-21 12:46:34 +00:00
name: "Africa",
privateMetadata: []
2019-06-19 14:40:52 +00:00
}
];
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
export const shippingZone: ShippingZone_shippingZone = {
2019-06-19 14:40:52 +00:00
__typename: "ShippingZone",
countries: [
{
__typename: "CountryDisplay",
code: "AX",
country: "Wyspy Alandzkie"
},
{
__typename: "CountryDisplay",
code: "AL",
country: "Albania"
},
{
__typename: "CountryDisplay",
code: "AD",
country: "Andora"
},
{
__typename: "CountryDisplay",
code: "AT",
country: "Austria"
},
{
__typename: "CountryDisplay",
code: "BY",
country: "Białoruś"
},
{
__typename: "CountryDisplay",
code: "BE",
country: "Belgia"
},
{
__typename: "CountryDisplay",
code: "BA",
country: "Bośnia i Hercegowina"
},
{
__typename: "CountryDisplay",
code: "BG",
country: "Bułgaria"
},
{
__typename: "CountryDisplay",
code: "HR",
country: "Chorwacja"
},
{
__typename: "CountryDisplay",
code: "CZ",
country: "Czechy"
},
{
__typename: "CountryDisplay",
code: "DK",
country: "Dania"
},
{
__typename: "CountryDisplay",
code: "EE",
country: "Estonia"
},
{
__typename: "CountryDisplay",
code: "FO",
country: "Wyspy Owcze"
},
{
__typename: "CountryDisplay",
code: "FI",
country: "Finlandia"
},
{
__typename: "CountryDisplay",
code: "FR",
country: "Francja"
},
{
__typename: "CountryDisplay",
code: "DE",
country: "Niemcy"
},
{
__typename: "CountryDisplay",
code: "GI",
country: "Gibraltar"
},
{
__typename: "CountryDisplay",
code: "GR",
country: "Grecja"
},
{
__typename: "CountryDisplay",
code: "GG",
country: "Guernsey"
},
{
__typename: "CountryDisplay",
code: "VA",
country: "Watykan"
},
{
__typename: "CountryDisplay",
code: "HU",
country: "Węgry"
},
{
__typename: "CountryDisplay",
code: "IS",
country: "Islandia"
},
{
__typename: "CountryDisplay",
code: "IE",
country: "Irlandia"
},
{
__typename: "CountryDisplay",
code: "IM",
country: "Wyspa Man"
},
{
__typename: "CountryDisplay",
code: "IT",
country: "Włochy"
},
{
__typename: "CountryDisplay",
code: "JE",
country: "Jersey"
},
{
__typename: "CountryDisplay",
code: "LV",
country: "Łotwa"
},
{
__typename: "CountryDisplay",
code: "LI",
country: "Liechtenstein"
},
{
__typename: "CountryDisplay",
code: "LT",
country: "Litwa"
},
{
__typename: "CountryDisplay",
code: "LU",
country: "Luksemburg"
},
{
__typename: "CountryDisplay",
code: "MK",
country: "Macedonia"
},
{
__typename: "CountryDisplay",
code: "MT",
country: "Malta"
},
{
__typename: "CountryDisplay",
code: "MD",
country: "Mołdawia"
},
{
__typename: "CountryDisplay",
code: "MC",
country: "Monako"
},
{
__typename: "CountryDisplay",
code: "ME",
country: "Czarnogóra"
},
{
__typename: "CountryDisplay",
code: "NL",
country: "Holandia"
},
{
__typename: "CountryDisplay",
code: "NO",
country: "Norwegia"
},
{
__typename: "CountryDisplay",
code: "PL",
country: "Polska"
},
{
__typename: "CountryDisplay",
code: "PT",
country: "Portugalia"
},
{
__typename: "CountryDisplay",
code: "RO",
country: "Rumunia"
},
{
__typename: "CountryDisplay",
code: "RU",
country: "Rosja"
},
{
__typename: "CountryDisplay",
code: "SM",
country: "San Marino"
},
{
__typename: "CountryDisplay",
code: "RS",
country: "Serbia"
},
{
__typename: "CountryDisplay",
code: "SK",
country: "Słowacja"
},
{
__typename: "CountryDisplay",
code: "SI",
country: "Słowenia"
},
{
__typename: "CountryDisplay",
code: "ES",
country: "Hiszpania"
},
{
__typename: "CountryDisplay",
code: "SJ",
country: "Svalbard i Jan Mayen"
},
{
__typename: "CountryDisplay",
code: "SE",
country: "Szwecja"
},
{
__typename: "CountryDisplay",
code: "CH",
country: "Szwajcaria"
},
{
__typename: "CountryDisplay",
code: "UA",
country: "Ukraina"
},
{
__typename: "CountryDisplay",
code: "GB",
country: "Wielka Brytania"
}
],
default: false,
2020-12-30 12:25:40 +00:00
description: "Shipping zone description",
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdab25lOjE=",
2020-12-21 12:46:34 +00:00
metadata: [],
2019-06-19 14:40:52 +00:00
name: "Europe",
2020-12-21 12:46:34 +00:00
privateMetadata: [],
2019-06-19 14:40:52 +00:00
shippingMethods: [
{
__typename: "ShippingMethod",
Multichannel (#833) * add multichannel to configuration view * create multichannels list view * create multichannels list view * add ChannelsCreate view * update channels in configuration * add stories * update default messages * fix ChannelForm props * update channels list styles * update snapshots * update channel form currency input * update Channels fragments * extract messages * remove tabs from channelsList * channel details, channel delete modal (#598) * create Channel details view * create ChannelDeleteDialog * add channels delete dialog to channels list * update messages and types * fixes after review * channels availability (#609) * create Channel details view * update messages and types * create ChannelsAvailability component * create more product channels components * create channels stories, update fixtures, types * update product views with channels data * update schema and snapshots * update defaultMessages * update ProductUpdate view * create ChannelsAvailabilityDropdown component * add product channels to local storage * update globalTypes * Update to new schema and resolve issues * Update messages * create deleteChannel mutation * add channels availability component to product create view * refactor ProductCreate and ProductUpdate views * CollectionProducts view cleanup * add disabled prop to ActionDialog * use updateChannels mutation in ProductCreate view * ProductCreate - update submit function * fixes after review * update snapshots and messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * channels shipping components (#655) * create PricingCard, OrderValue and OrderWeight components * create ShippingZoneRatesPage and DeleteShippingRateDialog * update ChannelsAvailability component * updates after review * channels shipping views (#662) * update ChannelsAvailability component * updates after review * create PriceRate views, update types * create weight rates views * update shipping views, stories, messages * update snapshots * update snapshots * update useChannels hook * orders channels components (#698) * create OrderChannelSectionCard component * update OrderDetailsPage * update DraftOrderChannelCard * update snapshots * update fixtures * small change after review, update snapshots * product pricing (#702) * update product types * update Pricing in simple product view * use productVariantCreate mutation in simple product view * update snapshots and messages * handle create variant (#715) * update product types * update Pricing in simple product view * handle product create and update errors * update snapshots and messages * fix update and create product handlers * update pricing types * channels modal - new styles, search input (#717) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * fix search input label styles * update toggleAllChannels function * update variant creator (#724) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * add channelLisitngs to variant creator * update variant creator price styles * update product variant creator reducer tests * update createVariants tests * update error handling in product variant creator * add Skip pricing for now option * use PriceField instead of TextField in ProductVariantCreatorSummary * create price validation function * fix errors handling in ProductVariantPrice component * fixes after review * Product List - remove publish/unpublish buttons (#727) * ProductList - remove publish and unpublish buttons * update messages * update snapshots, messages * revert changes in ChannelsAvailabilityDropdown * products/shipping/discount list settings (#739) * create ChannelSettingsDialog component * update snapshots * ProductList - open settings modal when there is no selected channel * add settings modal to vouchers list * add settings dialog to sales list * add setting modal to shipping list * update shipping * update snapshots, messages * useChannelsSettings - remove selectedChannelSlug * fix channels update handler in product and shipping view * messages update in ChannelSettingsDialog * handle product/discount list when there is no channels * update onSettingsOpen prop * collection availability dropdown (#743) * add availability dropdown to collection products list * update channelListingProduct fragment name * update voucher view/components with channels (#746) * update voucher view/components with channels * update VoucherSummary, remove defaultCurrency from voucher components * update snapshots * move getChannelsVariables func to discounts handlers * update voucher messages * sale view/components with channels (#750) * update sale views with channels * small fixes in discounts * order views with channels (#752) * update draft orders with channels * add channel activate/deactivate mutations * remove sort by total in orders list * add error notification on channel activate/deactivate * product variants channel select (#755) * add channels selector to ProductVariants component * remove selectedChannel from ProductUpdate, update messages and snapshots * update product fragments * update translations (#762) * update translations * fix translation types * update messages * update Availability component (#766) * update ChannelsAvailability component * update product fixtures * update collection and channel fixtures * ChannelsAvailability - handle errors * update product handlers * update ChannelsAvailability styles * update ProductVariant * update snapshots * fix missing things in multichannel (#785) * add availability dropdown to discount products list * fix error handling in shipping components * update product views and components * update messages * update category view/components * update CategoryProducts styles * remove defaultCurrency from shipping components * create ChannelsSelect component * update channels error handling after review * another fixes after review * Add channels to collection views/components (#791) ** update collection components and views * update create collection view * update error handling in collection * remove filter bar from collection list * update products fragments * small fix in collection create view * use collectionFragment in useCatalogSearch * update defaultMessages and snapshots * update homepage view/drop defaultCurrency (#801) * update homepage view * drop defaultCurrency prop * fix onChannelChange function in home view * remove visibility from product list filters * update export products with channels (#803) * update ProductExportDialog with channels * add new channel error code * remover VISIBLE from product export dialog Financial information * fix input size in ProductVariantCreatorSummary (#804) * channels currency code select (#806) * create select with currency codes * fix ChannelDeleteDialog * update defaultMessages, remove unneeded ChannelDetails handlers * fixes after rebase * replace channelListing with channelListings * [multichannel] Update schema] * Fix product create test Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
channelListings: [
{
__typename: "ShippingMethodChannelListing",
channel: {
__typename: "Channel",
currencyCode: "USD",
id: "Q2hhbm5lbDo5",
name: "Channel USD"
},
id: "U2hpcHBpbmdNZXRob2RDaGFubmVsTGlzdGluZzo0",
maximumOrderPrice: {
__typename: "Money",
amount: 2,
currency: "USD"
},
minimumOrderPrice: {
__typename: "Money",
amount: 1,
currency: "USD"
},
price: {
__typename: "Money",
amount: 86.21,
currency: "USD"
}
}
],
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
excludedProducts: {
__typename: "ProductCountableConnection",
edges: [
{
__typename: "ProductCountableEdge",
node: {
__typename: "Product",
id: "1",
name: "Apple Juice",
thumbnail: {
__typename: "Image",
url: ""
}
}
}
],
pageInfo: {
__typename: "PageInfo",
endCursor: "",
hasNextPage: false,
hasPreviousPage: false,
startCursor: ""
}
},
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdNZXRob2Q6NA==",
maximumDeliveryDays: 10,
2019-06-19 14:40:52 +00:00
maximumOrderWeight: {
__typename: "Weight",
2020-08-11 11:53:04 +00:00
unit: WeightUnitsEnum.KG,
2019-06-19 14:40:52 +00:00
value: 80
},
2020-12-21 12:46:34 +00:00
metadata: [],
minimumDeliveryDays: 0,
2019-06-19 14:40:52 +00:00
minimumOrderWeight: {
__typename: "Weight",
2020-08-11 11:53:04 +00:00
unit: WeightUnitsEnum.KG,
2019-06-19 14:40:52 +00:00
value: 0
},
name: "DB Schenker",
postalCodeRules: [
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-220",
id: "1",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-210"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-240",
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-235"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: null,
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-274"
}
],
privateMetadata: [],
type: ShippingMethodTypeEnum.WEIGHT
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingMethod",
Multichannel (#833) * add multichannel to configuration view * create multichannels list view * create multichannels list view * add ChannelsCreate view * update channels in configuration * add stories * update default messages * fix ChannelForm props * update channels list styles * update snapshots * update channel form currency input * update Channels fragments * extract messages * remove tabs from channelsList * channel details, channel delete modal (#598) * create Channel details view * create ChannelDeleteDialog * add channels delete dialog to channels list * update messages and types * fixes after review * channels availability (#609) * create Channel details view * update messages and types * create ChannelsAvailability component * create more product channels components * create channels stories, update fixtures, types * update product views with channels data * update schema and snapshots * update defaultMessages * update ProductUpdate view * create ChannelsAvailabilityDropdown component * add product channels to local storage * update globalTypes * Update to new schema and resolve issues * Update messages * create deleteChannel mutation * add channels availability component to product create view * refactor ProductCreate and ProductUpdate views * CollectionProducts view cleanup * add disabled prop to ActionDialog * use updateChannels mutation in ProductCreate view * ProductCreate - update submit function * fixes after review * update snapshots and messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * channels shipping components (#655) * create PricingCard, OrderValue and OrderWeight components * create ShippingZoneRatesPage and DeleteShippingRateDialog * update ChannelsAvailability component * updates after review * channels shipping views (#662) * update ChannelsAvailability component * updates after review * create PriceRate views, update types * create weight rates views * update shipping views, stories, messages * update snapshots * update snapshots * update useChannels hook * orders channels components (#698) * create OrderChannelSectionCard component * update OrderDetailsPage * update DraftOrderChannelCard * update snapshots * update fixtures * small change after review, update snapshots * product pricing (#702) * update product types * update Pricing in simple product view * use productVariantCreate mutation in simple product view * update snapshots and messages * handle create variant (#715) * update product types * update Pricing in simple product view * handle product create and update errors * update snapshots and messages * fix update and create product handlers * update pricing types * channels modal - new styles, search input (#717) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * fix search input label styles * update toggleAllChannels function * update variant creator (#724) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * add channelLisitngs to variant creator * update variant creator price styles * update product variant creator reducer tests * update createVariants tests * update error handling in product variant creator * add Skip pricing for now option * use PriceField instead of TextField in ProductVariantCreatorSummary * create price validation function * fix errors handling in ProductVariantPrice component * fixes after review * Product List - remove publish/unpublish buttons (#727) * ProductList - remove publish and unpublish buttons * update messages * update snapshots, messages * revert changes in ChannelsAvailabilityDropdown * products/shipping/discount list settings (#739) * create ChannelSettingsDialog component * update snapshots * ProductList - open settings modal when there is no selected channel * add settings modal to vouchers list * add settings dialog to sales list * add setting modal to shipping list * update shipping * update snapshots, messages * useChannelsSettings - remove selectedChannelSlug * fix channels update handler in product and shipping view * messages update in ChannelSettingsDialog * handle product/discount list when there is no channels * update onSettingsOpen prop * collection availability dropdown (#743) * add availability dropdown to collection products list * update channelListingProduct fragment name * update voucher view/components with channels (#746) * update voucher view/components with channels * update VoucherSummary, remove defaultCurrency from voucher components * update snapshots * move getChannelsVariables func to discounts handlers * update voucher messages * sale view/components with channels (#750) * update sale views with channels * small fixes in discounts * order views with channels (#752) * update draft orders with channels * add channel activate/deactivate mutations * remove sort by total in orders list * add error notification on channel activate/deactivate * product variants channel select (#755) * add channels selector to ProductVariants component * remove selectedChannel from ProductUpdate, update messages and snapshots * update product fragments * update translations (#762) * update translations * fix translation types * update messages * update Availability component (#766) * update ChannelsAvailability component * update product fixtures * update collection and channel fixtures * ChannelsAvailability - handle errors * update product handlers * update ChannelsAvailability styles * update ProductVariant * update snapshots * fix missing things in multichannel (#785) * add availability dropdown to discount products list * fix error handling in shipping components * update product views and components * update messages * update category view/components * update CategoryProducts styles * remove defaultCurrency from shipping components * create ChannelsSelect component * update channels error handling after review * another fixes after review * Add channels to collection views/components (#791) ** update collection components and views * update create collection view * update error handling in collection * remove filter bar from collection list * update products fragments * small fix in collection create view * use collectionFragment in useCatalogSearch * update defaultMessages and snapshots * update homepage view/drop defaultCurrency (#801) * update homepage view * drop defaultCurrency prop * fix onChannelChange function in home view * remove visibility from product list filters * update export products with channels (#803) * update ProductExportDialog with channels * add new channel error code * remover VISIBLE from product export dialog Financial information * fix input size in ProductVariantCreatorSummary (#804) * channels currency code select (#806) * create select with currency codes * fix ChannelDeleteDialog * update defaultMessages, remove unneeded ChannelDetails handlers * fixes after rebase * replace channelListing with channelListings * [multichannel] Update schema] * Fix product create test Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
channelListings: [],
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
excludedProducts: {
__typename: "ProductCountableConnection",
edges: [
{
__typename: "ProductCountableEdge",
node: {
__typename: "Product",
id: "1",
name: "Apple Juice",
thumbnail: {
__typename: "Image",
url: ""
}
}
}
],
pageInfo: {
__typename: "PageInfo",
endCursor: "",
hasNextPage: false,
hasPreviousPage: false,
startCursor: ""
}
},
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdNZXRob2Q6Mw==",
maximumDeliveryDays: 10,
2019-06-19 14:40:52 +00:00
maximumOrderWeight: null,
2020-12-21 12:46:34 +00:00
metadata: [],
minimumDeliveryDays: 0,
2019-06-19 14:40:52 +00:00
minimumOrderWeight: {
__typename: "Weight",
2020-08-11 11:53:04 +00:00
unit: WeightUnitsEnum.KG,
2019-06-19 14:40:52 +00:00
value: 0
},
name: "Registred priority",
postalCodeRules: [
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-220",
id: "1",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-210"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-240",
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-235"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: null,
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-274"
}
],
privateMetadata: [],
type: ShippingMethodTypeEnum.WEIGHT
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingMethod",
Multichannel (#833) * add multichannel to configuration view * create multichannels list view * create multichannels list view * add ChannelsCreate view * update channels in configuration * add stories * update default messages * fix ChannelForm props * update channels list styles * update snapshots * update channel form currency input * update Channels fragments * extract messages * remove tabs from channelsList * channel details, channel delete modal (#598) * create Channel details view * create ChannelDeleteDialog * add channels delete dialog to channels list * update messages and types * fixes after review * channels availability (#609) * create Channel details view * update messages and types * create ChannelsAvailability component * create more product channels components * create channels stories, update fixtures, types * update product views with channels data * update schema and snapshots * update defaultMessages * update ProductUpdate view * create ChannelsAvailabilityDropdown component * add product channels to local storage * update globalTypes * Update to new schema and resolve issues * Update messages * create deleteChannel mutation * add channels availability component to product create view * refactor ProductCreate and ProductUpdate views * CollectionProducts view cleanup * add disabled prop to ActionDialog * use updateChannels mutation in ProductCreate view * ProductCreate - update submit function * fixes after review * update snapshots and messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * channels shipping components (#655) * create PricingCard, OrderValue and OrderWeight components * create ShippingZoneRatesPage and DeleteShippingRateDialog * update ChannelsAvailability component * updates after review * channels shipping views (#662) * update ChannelsAvailability component * updates after review * create PriceRate views, update types * create weight rates views * update shipping views, stories, messages * update snapshots * update snapshots * update useChannels hook * orders channels components (#698) * create OrderChannelSectionCard component * update OrderDetailsPage * update DraftOrderChannelCard * update snapshots * update fixtures * small change after review, update snapshots * product pricing (#702) * update product types * update Pricing in simple product view * use productVariantCreate mutation in simple product view * update snapshots and messages * handle create variant (#715) * update product types * update Pricing in simple product view * handle product create and update errors * update snapshots and messages * fix update and create product handlers * update pricing types * channels modal - new styles, search input (#717) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * fix search input label styles * update toggleAllChannels function * update variant creator (#724) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * add channelLisitngs to variant creator * update variant creator price styles * update product variant creator reducer tests * update createVariants tests * update error handling in product variant creator * add Skip pricing for now option * use PriceField instead of TextField in ProductVariantCreatorSummary * create price validation function * fix errors handling in ProductVariantPrice component * fixes after review * Product List - remove publish/unpublish buttons (#727) * ProductList - remove publish and unpublish buttons * update messages * update snapshots, messages * revert changes in ChannelsAvailabilityDropdown * products/shipping/discount list settings (#739) * create ChannelSettingsDialog component * update snapshots * ProductList - open settings modal when there is no selected channel * add settings modal to vouchers list * add settings dialog to sales list * add setting modal to shipping list * update shipping * update snapshots, messages * useChannelsSettings - remove selectedChannelSlug * fix channels update handler in product and shipping view * messages update in ChannelSettingsDialog * handle product/discount list when there is no channels * update onSettingsOpen prop * collection availability dropdown (#743) * add availability dropdown to collection products list * update channelListingProduct fragment name * update voucher view/components with channels (#746) * update voucher view/components with channels * update VoucherSummary, remove defaultCurrency from voucher components * update snapshots * move getChannelsVariables func to discounts handlers * update voucher messages * sale view/components with channels (#750) * update sale views with channels * small fixes in discounts * order views with channels (#752) * update draft orders with channels * add channel activate/deactivate mutations * remove sort by total in orders list * add error notification on channel activate/deactivate * product variants channel select (#755) * add channels selector to ProductVariants component * remove selectedChannel from ProductUpdate, update messages and snapshots * update product fragments * update translations (#762) * update translations * fix translation types * update messages * update Availability component (#766) * update ChannelsAvailability component * update product fixtures * update collection and channel fixtures * ChannelsAvailability - handle errors * update product handlers * update ChannelsAvailability styles * update ProductVariant * update snapshots * fix missing things in multichannel (#785) * add availability dropdown to discount products list * fix error handling in shipping components * update product views and components * update messages * update category view/components * update CategoryProducts styles * remove defaultCurrency from shipping components * create ChannelsSelect component * update channels error handling after review * another fixes after review * Add channels to collection views/components (#791) ** update collection components and views * update create collection view * update error handling in collection * remove filter bar from collection list * update products fragments * small fix in collection create view * use collectionFragment in useCatalogSearch * update defaultMessages and snapshots * update homepage view/drop defaultCurrency (#801) * update homepage view * drop defaultCurrency prop * fix onChannelChange function in home view * remove visibility from product list filters * update export products with channels (#803) * update ProductExportDialog with channels * add new channel error code * remover VISIBLE from product export dialog Financial information * fix input size in ProductVariantCreatorSummary (#804) * channels currency code select (#806) * create select with currency codes * fix ChannelDeleteDialog * update defaultMessages, remove unneeded ChannelDetails handlers * fixes after rebase * replace channelListing with channelListings * [multichannel] Update schema] * Fix product create test Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
channelListings: [],
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
excludedProducts: {
__typename: "ProductCountableConnection",
edges: [
{
__typename: "ProductCountableEdge",
node: {
__typename: "Product",
id: "1",
name: "Apple Juice",
thumbnail: {
__typename: "Image",
url: ""
}
}
}
],
pageInfo: {
__typename: "PageInfo",
endCursor: "",
hasNextPage: false,
hasPreviousPage: false,
startCursor: ""
}
},
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdNZXRob2Q6Mg==",
maximumDeliveryDays: 10,
2019-06-19 14:40:52 +00:00
maximumOrderWeight: null,
2020-12-21 12:46:34 +00:00
metadata: [],
minimumDeliveryDays: 0,
2019-06-19 14:40:52 +00:00
minimumOrderWeight: {
__typename: "Weight",
2020-08-11 11:53:04 +00:00
unit: WeightUnitsEnum.KG,
2019-06-19 14:40:52 +00:00
value: 0
},
name: "UPS",
postalCodeRules: [
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-220",
id: "1",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-210"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-240",
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-235"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: null,
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-274"
}
],
privateMetadata: [],
type: ShippingMethodTypeEnum.PRICE
2019-06-19 14:40:52 +00:00
},
{
__typename: "ShippingMethod",
Multichannel (#833) * add multichannel to configuration view * create multichannels list view * create multichannels list view * add ChannelsCreate view * update channels in configuration * add stories * update default messages * fix ChannelForm props * update channels list styles * update snapshots * update channel form currency input * update Channels fragments * extract messages * remove tabs from channelsList * channel details, channel delete modal (#598) * create Channel details view * create ChannelDeleteDialog * add channels delete dialog to channels list * update messages and types * fixes after review * channels availability (#609) * create Channel details view * update messages and types * create ChannelsAvailability component * create more product channels components * create channels stories, update fixtures, types * update product views with channels data * update schema and snapshots * update defaultMessages * update ProductUpdate view * create ChannelsAvailabilityDropdown component * add product channels to local storage * update globalTypes * Update to new schema and resolve issues * Update messages * create deleteChannel mutation * add channels availability component to product create view * refactor ProductCreate and ProductUpdate views * CollectionProducts view cleanup * add disabled prop to ActionDialog * use updateChannels mutation in ProductCreate view * ProductCreate - update submit function * fixes after review * update snapshots and messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * channels shipping components (#655) * create PricingCard, OrderValue and OrderWeight components * create ShippingZoneRatesPage and DeleteShippingRateDialog * update ChannelsAvailability component * updates after review * channels shipping views (#662) * update ChannelsAvailability component * updates after review * create PriceRate views, update types * create weight rates views * update shipping views, stories, messages * update snapshots * update snapshots * update useChannels hook * orders channels components (#698) * create OrderChannelSectionCard component * update OrderDetailsPage * update DraftOrderChannelCard * update snapshots * update fixtures * small change after review, update snapshots * product pricing (#702) * update product types * update Pricing in simple product view * use productVariantCreate mutation in simple product view * update snapshots and messages * handle create variant (#715) * update product types * update Pricing in simple product view * handle product create and update errors * update snapshots and messages * fix update and create product handlers * update pricing types * channels modal - new styles, search input (#717) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * fix search input label styles * update toggleAllChannels function * update variant creator (#724) * update product types * update Pricing in simple product view * handle product create and update errors * update pricing types * add search input in ChannelsAvailabilityDialog * update ChannelsAvailabilityDialog in all views * update snapshots * add channelLisitngs to variant creator * update variant creator price styles * update product variant creator reducer tests * update createVariants tests * update error handling in product variant creator * add Skip pricing for now option * use PriceField instead of TextField in ProductVariantCreatorSummary * create price validation function * fix errors handling in ProductVariantPrice component * fixes after review * Product List - remove publish/unpublish buttons (#727) * ProductList - remove publish and unpublish buttons * update messages * update snapshots, messages * revert changes in ChannelsAvailabilityDropdown * products/shipping/discount list settings (#739) * create ChannelSettingsDialog component * update snapshots * ProductList - open settings modal when there is no selected channel * add settings modal to vouchers list * add settings dialog to sales list * add setting modal to shipping list * update shipping * update snapshots, messages * useChannelsSettings - remove selectedChannelSlug * fix channels update handler in product and shipping view * messages update in ChannelSettingsDialog * handle product/discount list when there is no channels * update onSettingsOpen prop * collection availability dropdown (#743) * add availability dropdown to collection products list * update channelListingProduct fragment name * update voucher view/components with channels (#746) * update voucher view/components with channels * update VoucherSummary, remove defaultCurrency from voucher components * update snapshots * move getChannelsVariables func to discounts handlers * update voucher messages * sale view/components with channels (#750) * update sale views with channels * small fixes in discounts * order views with channels (#752) * update draft orders with channels * add channel activate/deactivate mutations * remove sort by total in orders list * add error notification on channel activate/deactivate * product variants channel select (#755) * add channels selector to ProductVariants component * remove selectedChannel from ProductUpdate, update messages and snapshots * update product fragments * update translations (#762) * update translations * fix translation types * update messages * update Availability component (#766) * update ChannelsAvailability component * update product fixtures * update collection and channel fixtures * ChannelsAvailability - handle errors * update product handlers * update ChannelsAvailability styles * update ProductVariant * update snapshots * fix missing things in multichannel (#785) * add availability dropdown to discount products list * fix error handling in shipping components * update product views and components * update messages * update category view/components * update CategoryProducts styles * remove defaultCurrency from shipping components * create ChannelsSelect component * update channels error handling after review * another fixes after review * Add channels to collection views/components (#791) ** update collection components and views * update create collection view * update error handling in collection * remove filter bar from collection list * update products fragments * small fix in collection create view * use collectionFragment in useCatalogSearch * update defaultMessages and snapshots * update homepage view/drop defaultCurrency (#801) * update homepage view * drop defaultCurrency prop * fix onChannelChange function in home view * remove visibility from product list filters * update export products with channels (#803) * update ProductExportDialog with channels * add new channel error code * remover VISIBLE from product export dialog Financial information * fix input size in ProductVariantCreatorSummary (#804) * channels currency code select (#806) * create select with currency codes * fix ChannelDeleteDialog * update defaultMessages, remove unneeded ChannelDetails handlers * fixes after rebase * replace channelListing with channelListings * [multichannel] Update schema] * Fix product create test Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
channelListings: [],
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
excludedProducts: {
__typename: "ProductCountableConnection",
edges: [],
pageInfo: {
__typename: "PageInfo",
endCursor: "",
hasNextPage: false,
hasPreviousPage: false,
startCursor: ""
}
},
2019-06-19 14:40:52 +00:00
id: "U2hpcHBpbmdNZXRob2Q6MQ==",
maximumDeliveryDays: 10,
2019-06-19 14:40:52 +00:00
maximumOrderWeight: null,
2020-12-21 12:46:34 +00:00
metadata: [],
minimumDeliveryDays: 0,
2019-06-19 14:40:52 +00:00
minimumOrderWeight: {
__typename: "Weight",
2020-08-11 11:53:04 +00:00
unit: WeightUnitsEnum.KG,
2019-06-19 14:40:52 +00:00
value: 0
},
name: "DHL",
postalCodeRules: [
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-220",
id: "1",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-210"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: "51-240",
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-235"
},
{
__typename: "ShippingMethodPostalCodeRule",
end: null,
id: "2",
inclusionType: PostalCodeRuleInclusionTypeEnum.EXCLUDE,
start: "51-274"
}
],
privateMetadata: [],
type: ShippingMethodTypeEnum.PRICE
2019-06-19 14:40:52 +00:00
}
2020-02-11 15:32:47 +00:00
],
2020-04-01 16:40:19 +00:00
warehouses: [
{
__typename: "Warehouse",
id: "V2FyZWhvdXNlOmEzMThmMGZlLTcwMmYtNDNjYy1hYmFjLWZmZmMzN2Y3ZTliYw==",
name: "C our wares"
},
{
__typename: "Warehouse",
id: "V2FyZWhvdXNlOjJmN2UyOTlmLWEwMzMtNDhjZS1iYmM5LTFkZDM4NjU2ZjMwYw==",
name: "Be stocked"
}
]
2019-06-19 14:40:52 +00:00
};
Excluded Products in shipping view (#866) * Clean up stories * Add missing props * Add zip codes section (#861) * Add zip code listing * Add list wrapping * Update snapshots * Set up API data * Fix lgtm warning * Update snapshots * Run Actions on all PR * Checks on PR * Test envs on PR * Cleanup action on PR * Update messages Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Allow zip codes to be assigned to shipping method * Add zip code deletion (#871) * Add zip code range dialog * Fix path management * Use query params to handle modal actions * Allow zip codes to be assigned to shipping method * Make params optional * Fix types * Clean up urls * Add zip code range delete action * Update snapshots and messages * Update schema * Refresh zip code list after assigning them * Update types and snapshots * Update snapshots * Fix error message, checkbox default value (#880) * Fix error message, checkbox default value * Update snapshots * Update schema and types * Update stories * add excluded products section in shipping methods views * create UnassignDialog component * use priceRangeFragment in shipping queries * remove unneeded price from ShippingMethodAddProductsDialog * update messages in ShippingMethodProducts * updates after rebase * update snapshots, fix lint errors * fix ShippingMethodProductsAddDialog * update snapshots * small fix in ShippingMethodProducts * update snapshots after rebase * add handleClose func in ShippingMethodProductsAddDialog * Fix metadata not showing in category update * update snapshots again * update ShippingMethodProductsAddDialog * updates after rebase * update Price and Weight rates views Co-authored-by: dominik-zeglen <flesz3@o2.pl> Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> Co-authored-by: Tomasz Szymański <lime129@gmail.com> Co-authored-by: Magdalena Markusik <magdalena.markusik@mirumee.com>
2020-12-02 11:35:02 +00:00
export const products: SearchProducts_search_edges_node[] = [
{
__typename: "Product",
id: "1",
name: "Apple Juice",
thumbnail: {
__typename: "Image",
url: ""
}
},
{
__typename: "Product",
id: "2",
name: "Banana Juice",
thumbnail: {
__typename: "Image",
url: ""
}
}
];