Skip to content

Commit

Permalink
fix: simpleSchemas format
Browse files Browse the repository at this point in the history
Signed-off-by: vanpho93 <[email protected]>
  • Loading branch information
vanpho93 committed Mar 16, 2023
1 parent 7d4dd54 commit ac5df58
Showing 1 changed file with 7 additions and 68 deletions.
75 changes: 7 additions & 68 deletions packages/api-plugin-location/src/simpleSchemas.js
Original file line number Diff line number Diff line change
@@ -1,74 +1,13 @@
import SimpleSchema from "simpl-schema";
import CountryDefinitions from "@reactioncommerce/api-utils/CountryDefinitions.js";

const withoutCodeCountries = [
"AO",
"AG",
"AW",
"BS",
"BZ",
"BJ",
"BW",
"BF",
"BI",
"CM",
"CF",
"KM",
"CG",
"CD",
"CK",
"CI",
"DJ",
"DM",
"GQ",
"ER",
"FJ",
"TF",
"GM",
"GH",
"GD",
"GN",
"GY",
"HK",
"IE",
"JM",
"KE",
"KI",
"MO",
"MW",
"ML",
"MR",
"MU",
"MS",
"NR",
"AN",
"NU",
"KP",
"PA",
"QA",
"RW",
"KN",
"LC",
"ST",
"SA",
"SC",
"SL",
"SB",
"SO",
"SR",
"SY",
"TZ",
"TL",
"TK",
"TO",
"TT",
"TV",
"UG",
"AE",
"VU",
"YE",
"ZW"
];
const withoutCodeCountries = ["AO", "AG", "AW", "BS", "BZ", "BJ", "BW",
"BF", "BI", "CM", "CF", "KM", "CG", "CD", "CK", "CI", "DJ",
"DM", "GQ", "ER", "FJ", "TF", "GM", "GH", "GD", "GN", "GY",
"HK", "IE", "JM", "KE", "KI", "MO", "MW", "ML", "MR", "MU",
"MS", "NR", "AN", "NU", "KP", "PA", "QA", "RW", "KN", "LC",
"ST", "SA", "SC", "SL", "SB", "SO", "SR", "SY", "TZ", "TL",
"TK", "TO", "TT", "TV", "UG", "AE", "VU", "YE", "ZW"];

export const LocationAddress = new SimpleSchema({
address1: {
Expand Down

0 comments on commit ac5df58

Please sign in to comment.