@xapp/arachne-web-service 1.22.0 → 1.22.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.
|
@@ -25,8 +25,25 @@ function getBusinessCategoryFromSchema(schema) {
|
|
|
25
25
|
case "HVACBusiness":
|
|
26
26
|
case "RoofingContractor":
|
|
27
27
|
case "HousePainter":
|
|
28
|
+
case "Locksmith":
|
|
28
29
|
case "HomeAndConstructionBusiness":
|
|
29
30
|
return "home-services-contractors";
|
|
31
|
+
// MovingCompany is a HomeAndConstructionBusiness in schema.org, but a
|
|
32
|
+
// mover is its own vertical here, so it has to be matched first.
|
|
33
|
+
case "MovingCompany":
|
|
34
|
+
return "moving-services";
|
|
35
|
+
// HealthAndBeautyBusiness also covers HealthClub and TattooParlor.
|
|
36
|
+
// Those are deliberately left unmapped: a site that marks itself one
|
|
37
|
+
// of them has already said it is not a salon. The bare parent type is
|
|
38
|
+
// mapped because a salon that only knows the generic type is the far
|
|
39
|
+
// more common case, and this is a fallback — it is read only when the
|
|
40
|
+
// page extraction produced no category of its own.
|
|
41
|
+
case "BeautySalon":
|
|
42
|
+
case "HairSalon":
|
|
43
|
+
case "NailSalon":
|
|
44
|
+
case "DaySpa":
|
|
45
|
+
case "HealthAndBeautyBusiness":
|
|
46
|
+
return "salon-spa";
|
|
30
47
|
case "InsuranceAgency":
|
|
31
48
|
return "insurance";
|
|
32
49
|
case "LegalService":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBusinessCategoryFromSchema.js","sourceRoot":"","sources":["../../src/utils/getBusinessCategoryFromSchema.ts"],"names":[],"mappings":";AAAA,kCAAkC;;AAMlC,
|
|
1
|
+
{"version":3,"file":"getBusinessCategoryFromSchema.js","sourceRoot":"","sources":["../../src/utils/getBusinessCategoryFromSchema.ts"],"names":[],"mappings":";AAAA,kCAAkC;;AAMlC,sEAwDC;AA1DD,2DAAgD;AAEhD,SAAgB,6BAA6B,CACzC,MAA8E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