@koda-sl/baker-cli 0.173.0 → 0.173.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -4781,6 +4781,309 @@ function isChangeLookbackWithinReach(days, scope) {
4781
4781
  return days <= CHANGE_SCOPE_MAX_DAYS[scope];
4782
4782
  }
4783
4783
 
4784
+ // ../api/src/ads-google/geo-constants.ts
4785
+ var GEO_TARGET_COUNTRIES = {
4786
+ "2004": "Afghanistan",
4787
+ "2008": "Albania",
4788
+ "2010": "Antarctica",
4789
+ "2012": "Algeria",
4790
+ "2016": "American Samoa",
4791
+ "2020": "Andorra",
4792
+ "2024": "Angola",
4793
+ "2028": "Antigua and Barbuda",
4794
+ "2031": "Azerbaijan",
4795
+ "2032": "Argentina",
4796
+ "2036": "Australia",
4797
+ "2040": "Austria",
4798
+ "2044": "The Bahamas",
4799
+ "2048": "Bahrain",
4800
+ "2050": "Bangladesh",
4801
+ "2051": "Armenia",
4802
+ "2052": "Barbados",
4803
+ "2056": "Belgium",
4804
+ "2060": "Bermuda",
4805
+ "2064": "Bhutan",
4806
+ "2068": "Bolivia",
4807
+ "2070": "Bosnia and Herzegovina",
4808
+ "2072": "Botswana",
4809
+ "2074": "Bouvet Island",
4810
+ "2076": "Brazil",
4811
+ "2084": "Belize",
4812
+ "2086": "British Indian Ocean Territory",
4813
+ "2090": "Solomon Islands",
4814
+ "2092": "British Virgin Islands",
4815
+ "2096": "Brunei",
4816
+ "2100": "Bulgaria",
4817
+ "2104": "Myanmar (Burma)",
4818
+ "2108": "Burundi",
4819
+ "2112": "Belarus",
4820
+ "2116": "Cambodia",
4821
+ "2120": "Cameroon",
4822
+ "2124": "Canada",
4823
+ "2132": "Cabo Verde",
4824
+ "2136": "Cayman Islands",
4825
+ "2140": "Central African Republic",
4826
+ "2144": "Sri Lanka",
4827
+ "2148": "Chad",
4828
+ "2152": "Chile",
4829
+ "2156": "China",
4830
+ "2158": "Taiwan",
4831
+ "2162": "Christmas Island",
4832
+ "2166": "Cocos (Keeling) Islands",
4833
+ "2170": "Colombia",
4834
+ "2174": "Comoros",
4835
+ "2175": "Mayotte",
4836
+ "2178": "Republic of the Congo",
4837
+ "2180": "Democratic Republic of the Congo",
4838
+ "2184": "Cook Islands",
4839
+ "2188": "Costa Rica",
4840
+ "2191": "Croatia",
4841
+ "2196": "Cyprus",
4842
+ "2203": "Czechia",
4843
+ "2204": "Benin",
4844
+ "2208": "Denmark",
4845
+ "2212": "Dominica",
4846
+ "2214": "Dominican Republic",
4847
+ "2218": "Ecuador",
4848
+ "2222": "El Salvador",
4849
+ "2226": "Equatorial Guinea",
4850
+ "2231": "Ethiopia",
4851
+ "2232": "Eritrea",
4852
+ "2233": "Estonia",
4853
+ "2234": "Faroe Islands",
4854
+ "2238": "Falkland Islands (Islas Malvinas)",
4855
+ "2239": "South Georgia and the South Sandwich Islands",
4856
+ "2242": "Fiji",
4857
+ "2246": "Finland",
4858
+ "2250": "France",
4859
+ "2254": "French Guiana",
4860
+ "2258": "French Polynesia",
4861
+ "2260": "French Southern and Antarctic Lands",
4862
+ "2262": "Djibouti",
4863
+ "2266": "Gabon",
4864
+ "2268": "Georgia",
4865
+ "2270": "The Gambia",
4866
+ "2275": "Palestine",
4867
+ "2276": "Germany",
4868
+ "2288": "Ghana",
4869
+ "2292": "Gibraltar",
4870
+ "2296": "Kiribati",
4871
+ "2300": "Greece",
4872
+ "2304": "Greenland",
4873
+ "2308": "Grenada",
4874
+ "2312": "Guadeloupe",
4875
+ "2316": "Guam",
4876
+ "2320": "Guatemala",
4877
+ "2324": "Guinea",
4878
+ "2328": "Guyana",
4879
+ "2332": "Haiti",
4880
+ "2334": "Heard Island and McDonald Islands",
4881
+ "2336": "Vatican City",
4882
+ "2340": "Honduras",
4883
+ "2344": "Hong Kong",
4884
+ "2348": "Hungary",
4885
+ "2352": "Iceland",
4886
+ "2356": "India",
4887
+ "2360": "Indonesia",
4888
+ "2368": "Iraq",
4889
+ "2372": "Ireland",
4890
+ "2376": "Israel",
4891
+ "2380": "Italy",
4892
+ "2384": "Cote d'Ivoire",
4893
+ "2388": "Jamaica",
4894
+ "2392": "Japan",
4895
+ "2398": "Kazakhstan",
4896
+ "2400": "Jordan",
4897
+ "2404": "Kenya",
4898
+ "2410": "South Korea",
4899
+ "2414": "Kuwait",
4900
+ "2417": "Kyrgyzstan",
4901
+ "2418": "Laos",
4902
+ "2422": "Lebanon",
4903
+ "2426": "Lesotho",
4904
+ "2428": "Latvia",
4905
+ "2430": "Liberia",
4906
+ "2434": "Libya",
4907
+ "2438": "Liechtenstein",
4908
+ "2440": "Lithuania",
4909
+ "2442": "Luxembourg",
4910
+ "2446": "Macao",
4911
+ "2450": "Madagascar",
4912
+ "2454": "Malawi",
4913
+ "2458": "Malaysia",
4914
+ "2462": "Maldives",
4915
+ "2466": "Mali",
4916
+ "2470": "Malta",
4917
+ "2474": "Martinique",
4918
+ "2478": "Mauritania",
4919
+ "2480": "Mauritius",
4920
+ "2484": "Mexico",
4921
+ "2492": "Monaco",
4922
+ "2496": "Mongolia",
4923
+ "2498": "Moldova",
4924
+ "2499": "Montenegro",
4925
+ "2500": "Montserrat",
4926
+ "2504": "Morocco",
4927
+ "2508": "Mozambique",
4928
+ "2512": "Oman",
4929
+ "2516": "Namibia",
4930
+ "2520": "Nauru",
4931
+ "2524": "Nepal",
4932
+ "2528": "Netherlands",
4933
+ "2531": "Curacao",
4934
+ "2533": "Aruba",
4935
+ "2534": "Sint Maarten",
4936
+ "2535": "Caribbean Netherlands",
4937
+ "2540": "New Caledonia",
4938
+ "2548": "Vanuatu",
4939
+ "2554": "New Zealand",
4940
+ "2558": "Nicaragua",
4941
+ "2562": "Niger",
4942
+ "2566": "Nigeria",
4943
+ "2570": "Niue",
4944
+ "2574": "Norfolk Island",
4945
+ "2578": "Norway",
4946
+ "2580": "Northern Mariana Islands",
4947
+ "2581": "United States Minor Outlying Islands",
4948
+ "2583": "Micronesia",
4949
+ "2584": "Marshall Islands",
4950
+ "2585": "Palau",
4951
+ "2586": "Pakistan",
4952
+ "2591": "Panama",
4953
+ "2598": "Papua New Guinea",
4954
+ "2600": "Paraguay",
4955
+ "2604": "Peru",
4956
+ "2608": "Philippines",
4957
+ "2612": "Pitcairn Islands",
4958
+ "2616": "Poland",
4959
+ "2620": "Portugal",
4960
+ "2624": "Guinea-Bissau",
4961
+ "2626": "Timor-Leste",
4962
+ "2630": "Puerto Rico",
4963
+ "2634": "Qatar",
4964
+ "2638": "Reunion",
4965
+ "2642": "Romania",
4966
+ "2643": "Russia",
4967
+ "2646": "Rwanda",
4968
+ "2652": "Saint Barthelemy",
4969
+ "2654": "Saint Helena, Ascension and Tristan da Cunha",
4970
+ "2659": "Saint Kitts and Nevis",
4971
+ "2660": "Anguilla",
4972
+ "2662": "Saint Lucia",
4973
+ "2663": "Saint Martin",
4974
+ "2666": "Saint Pierre and Miquelon",
4975
+ "2670": "Saint Vincent and the Grenadines",
4976
+ "2674": "San Marino",
4977
+ "2678": "Sao Tome and Principe",
4978
+ "2682": "Saudi Arabia",
4979
+ "2686": "Senegal",
4980
+ "2688": "Serbia",
4981
+ "2690": "Seychelles",
4982
+ "2694": "Sierra Leone",
4983
+ "2702": "Singapore",
4984
+ "2703": "Slovakia",
4985
+ "2704": "Vietnam",
4986
+ "2705": "Slovenia",
4987
+ "2706": "Somalia",
4988
+ "2710": "South Africa",
4989
+ "2716": "Zimbabwe",
4990
+ "2724": "Spain",
4991
+ "2728": "South Sudan",
4992
+ "2732": "Western Sahara",
4993
+ "2736": "Sudan",
4994
+ "2740": "Suriname",
4995
+ "2744": "Svalbard and Jan Mayen",
4996
+ "2748": "Eswatini",
4997
+ "2752": "Sweden",
4998
+ "2756": "Switzerland",
4999
+ "2760": "Syria",
5000
+ "2762": "Tajikistan",
5001
+ "2764": "Thailand",
5002
+ "2768": "Togo",
5003
+ "2772": "Tokelau",
5004
+ "2776": "Tonga",
5005
+ "2780": "Trinidad and Tobago",
5006
+ "2784": "United Arab Emirates",
5007
+ "2788": "Tunisia",
5008
+ "2792": "Turkiye",
5009
+ "2795": "Turkmenistan",
5010
+ "2796": "Turks and Caicos Islands",
5011
+ "2798": "Tuvalu",
5012
+ "2800": "Uganda",
5013
+ "2804": "Ukraine",
5014
+ "2807": "North Macedonia",
5015
+ "2818": "Egypt",
5016
+ "2826": "United Kingdom",
5017
+ "2831": "Guernsey",
5018
+ "2832": "Jersey",
5019
+ "2833": "Isle of Man",
5020
+ "2834": "Tanzania",
5021
+ "2840": "United States",
5022
+ "2850": "U.S. Virgin Islands",
5023
+ "2854": "Burkina Faso",
5024
+ "2858": "Uruguay",
5025
+ "2860": "Uzbekistan",
5026
+ "2862": "Venezuela",
5027
+ "2876": "Wallis and Futuna",
5028
+ "2882": "Samoa",
5029
+ "2887": "Yemen",
5030
+ "2894": "Zambia",
5031
+ "2900": "Kosovo"
5032
+ };
5033
+ var LANGUAGE_CONSTANTS = {
5034
+ "1000": "English",
5035
+ "1001": "German",
5036
+ "1002": "French",
5037
+ "1003": "Spanish",
5038
+ "1004": "Italian",
5039
+ "1005": "Japanese",
5040
+ "1009": "Danish",
5041
+ "1010": "Dutch",
5042
+ "1011": "Finnish",
5043
+ "1012": "Korean",
5044
+ "1013": "Norwegian",
5045
+ "1014": "Portuguese",
5046
+ "1015": "Swedish",
5047
+ "1017": "Chinese (simplified)",
5048
+ "1018": "Chinese (traditional)",
5049
+ "1019": "Arabic",
5050
+ "1020": "Bulgarian",
5051
+ "1021": "Czech",
5052
+ "1022": "Greek",
5053
+ "1023": "Hindi",
5054
+ "1024": "Hungarian",
5055
+ "1025": "Indonesian",
5056
+ "1026": "Icelandic",
5057
+ "1027": "Hebrew",
5058
+ "1028": "Latvian",
5059
+ "1029": "Lithuanian",
5060
+ "1030": "Polish",
5061
+ "1031": "Russian",
5062
+ "1032": "Romanian",
5063
+ "1033": "Slovak",
5064
+ "1034": "Slovenian",
5065
+ "1035": "Serbian",
5066
+ "1036": "Ukrainian",
5067
+ "1037": "Turkish",
5068
+ "1038": "Catalan",
5069
+ "1039": "Croatian",
5070
+ "1040": "Vietnamese",
5071
+ "1041": "Urdu",
5072
+ "1042": "Filipino",
5073
+ "1043": "Estonian",
5074
+ "1044": "Thai",
5075
+ "1056": "Bengali",
5076
+ "1064": "Persian",
5077
+ "1072": "Gujarati",
5078
+ "1086": "Kannada",
5079
+ "1098": "Malayalam",
5080
+ "1101": "Marathi",
5081
+ "1102": "Malay",
5082
+ "1110": "Punjabi",
5083
+ "1130": "Tamil",
5084
+ "1131": "Telugu"
5085
+ };
5086
+
4784
5087
  // ../api/src/ads-google/limits.ts
4785
5088
  var GOOGLE_ADS_LIMITS = {
4786
5089
  budget: {
@@ -7544,73 +7847,11 @@ import { defineCommand as defineCommand27 } from "citty";
7544
7847
  import { defineCommand as defineCommand23 } from "citty";
7545
7848
 
7546
7849
  // src/geo-context.ts
7547
- var GOOGLE_ADS_LOCATIONS = [
7548
- { id: "2840", name: "United States" },
7549
- { id: "2826", name: "United Kingdom" },
7550
- { id: "2124", name: "Canada" },
7551
- { id: "2036", name: "Australia" },
7552
- { id: "2276", name: "Germany" },
7553
- { id: "2250", name: "France" },
7554
- { id: "2724", name: "Spain" },
7555
- { id: "2380", name: "Italy" },
7556
- { id: "2076", name: "Brazil" },
7557
- { id: "2484", name: "Mexico" },
7558
- { id: "2528", name: "Netherlands" },
7559
- { id: "2056", name: "Belgium" },
7560
- { id: "2040", name: "Austria" },
7561
- { id: "2756", name: "Switzerland" },
7562
- { id: "2620", name: "Portugal" },
7563
- { id: "2752", name: "Sweden" },
7564
- { id: "2578", name: "Norway" },
7565
- { id: "2208", name: "Denmark" },
7566
- { id: "2246", name: "Finland" },
7567
- { id: "2372", name: "Ireland" },
7568
- { id: "2554", name: "New Zealand" },
7569
- { id: "2356", name: "India" },
7570
- { id: "2392", name: "Japan" },
7571
- { id: "2410", name: "South Korea" },
7572
- { id: "2702", name: "Singapore" },
7573
- { id: "2032", name: "Argentina" },
7574
- { id: "2152", name: "Chile" },
7575
- { id: "2170", name: "Colombia" },
7576
- { id: "2604", name: "Peru" },
7577
- { id: "2616", name: "Poland" },
7578
- { id: "2203", name: "Czech Republic" },
7579
- { id: "2642", name: "Romania" },
7580
- { id: "2348", name: "Hungary" },
7581
- { id: "2710", name: "South Africa" },
7582
- { id: "2376", name: "Israel" },
7583
- { id: "2784", name: "United Arab Emirates" },
7584
- { id: "2682", name: "Saudi Arabia" },
7585
- { id: "2792", name: "Turkey" },
7586
- { id: "2608", name: "Philippines" },
7587
- { id: "2764", name: "Thailand" },
7588
- { id: "2458", name: "Malaysia" },
7589
- { id: "2360", name: "Indonesia" },
7590
- { id: "2704", name: "Vietnam" },
7591
- { id: "2158", name: "Taiwan" },
7592
- { id: "2344", name: "Hong Kong" }
7593
- ];
7594
- var GOOGLE_ADS_LANGUAGES = [
7595
- { id: "1000", name: "English" },
7596
- { id: "1003", name: "Spanish" },
7597
- { id: "1001", name: "German" },
7598
- { id: "1002", name: "French" },
7599
- { id: "1004", name: "Italian" },
7600
- { id: "1014", name: "Portuguese" },
7601
- { id: "1010", name: "Japanese" },
7602
- { id: "1012", name: "Korean" },
7603
- { id: "1017", name: "Chinese (Simplified)" },
7604
- { id: "1019", name: "Arabic" },
7605
- { id: "1031", name: "Russian" },
7606
- { id: "1030", name: "Polish" },
7607
- { id: "1037", name: "Turkish" },
7608
- { id: "1015", name: "Swedish" },
7609
- { id: "1013", name: "Norwegian" },
7610
- { id: "1009", name: "Danish" },
7611
- { id: "1011", name: "Finnish" },
7612
- { id: "1005", name: "Dutch" }
7613
- ];
7850
+ function toOptions(names) {
7851
+ return Object.entries(names).map(([id, name]) => ({ id, name })).sort((a, b) => a.name.localeCompare(b.name));
7852
+ }
7853
+ var GOOGLE_ADS_LOCATIONS = toOptions(GEO_TARGET_COUNTRIES);
7854
+ var GOOGLE_ADS_LANGUAGES = toOptions(LANGUAGE_CONSTANTS);
7614
7855
  var DATAFORSEO_LOCATIONS = [
7615
7856
  { code: "us", name: "United States" },
7616
7857
  { code: "uk", name: "United Kingdom" },
@@ -7687,8 +7928,6 @@ function toRecord(list) {
7687
7928
  }
7688
7929
  return map;
7689
7930
  }
7690
- var adsLocationMap = toRecord(GOOGLE_ADS_LOCATIONS);
7691
- var adsLanguageMap = toRecord(GOOGLE_ADS_LANGUAGES);
7692
7931
  var researchLocationMap = toRecord(DATAFORSEO_LOCATIONS);
7693
7932
  var researchLanguageMap = toRecord(DATAFORSEO_LANGUAGES);
7694
7933
  function buildAdsQueryContext(locationArg, languageArg) {
@@ -7696,8 +7935,8 @@ function buildAdsQueryContext(locationArg, languageArg) {
7696
7935
  const languageId = languageArg ?? "1000";
7697
7936
  const locationIsDefault = !locationArg;
7698
7937
  const languageIsDefault = !languageArg;
7699
- const locationName = adsLocationMap[locationId] ?? `ID ${locationId}`;
7700
- const languageName = adsLanguageMap[languageId] ?? `ID ${languageId}`;
7938
+ const locationName = GEO_TARGET_COUNTRIES[locationId] ?? `ID ${locationId}`;
7939
+ const languageName = LANGUAGE_CONSTANTS[languageId] ?? `ID ${languageId}`;
7701
7940
  const ctx = {
7702
7941
  location: `${locationName} (${locationId})`,
7703
7942
  language: `${languageName} (${languageId})`,