@gruncellka/porto-data 0.3.0 → 0.4.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/CHANGELOG.md +215 -0
- package/LICENSE +199 -5
- package/README.md +53 -34
- package/index.d.ts +35 -18
- package/index.js +2 -1
- package/package.json +28 -8
- package/porto_data/formats/envelopes.json +120 -0
- package/porto_data/formats/layouts.json +288 -0
- package/porto_data/mappings.json +65 -10
- package/porto_data/metadata.json +662 -125
- package/porto_data/policy/jurisdictions.json +839 -0
- package/porto_data/policy/markets.json +75 -0
- package/porto_data/policy/restrictions.json +668 -0
- package/porto_data/providers/deutschepost/features.json +42 -0
- package/porto_data/providers/deutschepost/graph.json +203 -0
- package/porto_data/providers/deutschepost/limits.json +17 -0
- package/porto_data/providers/deutschepost/marks.json +71 -0
- package/porto_data/providers/deutschepost/prices/products.json +239 -0
- package/porto_data/providers/deutschepost/prices/services.json +51 -0
- package/porto_data/providers/deutschepost/products.json +197 -0
- package/porto_data/providers/deutschepost/services.json +88 -0
- package/porto_data/providers/deutschepost/weights.json +46 -0
- package/porto_data/providers/deutschepost/zones.json +231 -0
- package/porto_data/providers/laposte/features.json +42 -0
- package/porto_data/providers/laposte/graph.json +234 -0
- package/porto_data/providers/laposte/limits.json +17 -0
- package/porto_data/providers/laposte/marks.json +39 -0
- package/porto_data/providers/laposte/prices/products.json +947 -0
- package/porto_data/providers/laposte/prices/services.json +41 -0
- package/porto_data/providers/laposte/products.json +276 -0
- package/porto_data/providers/laposte/services.json +63 -0
- package/porto_data/providers/laposte/weights.json +38 -0
- package/porto_data/providers/laposte/zones.json +230 -0
- package/porto_data/providers/swisspost/features.json +21 -0
- package/porto_data/providers/swisspost/graph.json +212 -0
- package/porto_data/providers/swisspost/limits.json +17 -0
- package/porto_data/providers/swisspost/marks.json +41 -0
- package/porto_data/providers/swisspost/prices/products.json +347 -0
- package/porto_data/providers/swisspost/prices/services.json +31 -0
- package/porto_data/providers/swisspost/products.json +193 -0
- package/porto_data/providers/swisspost/rules.json +25 -0
- package/porto_data/providers/swisspost/services.json +40 -0
- package/porto_data/providers/swisspost/weights.json +38 -0
- package/porto_data/providers/swisspost/zones.json +223 -0
- package/porto_data/providers/ukrposhta/features.json +28 -0
- package/porto_data/providers/ukrposhta/graph.json +148 -0
- package/porto_data/providers/ukrposhta/limits.json +17 -0
- package/porto_data/providers/ukrposhta/marks.json +25 -0
- package/porto_data/providers/ukrposhta/prices/products.json +123 -0
- package/porto_data/providers/ukrposhta/prices/services.json +42 -0
- package/porto_data/providers/ukrposhta/products.json +74 -0
- package/porto_data/providers/ukrposhta/services.json +40 -0
- package/porto_data/providers/ukrposhta/weights.json +26 -0
- package/porto_data/providers/ukrposhta/zones.json +226 -0
- package/porto_data/providers.json +37 -0
- package/porto_data/schemas/envelopes.schema.json +120 -0
- package/porto_data/schemas/features.schema.json +66 -55
- package/porto_data/schemas/graph.schema.json +189 -0
- package/porto_data/schemas/jurisdictions.schema.json +116 -0
- package/porto_data/schemas/layouts.schema.json +156 -0
- package/porto_data/schemas/limits.schema.json +253 -0
- package/porto_data/schemas/mappings.schema.json +73 -0
- package/porto_data/schemas/markets.schema.json +186 -0
- package/porto_data/schemas/marks.schema.json +127 -0
- package/porto_data/schemas/metadata.schema.json +183 -0
- package/porto_data/schemas/porto_ids.schema.json +45 -0
- package/porto_data/schemas/product_prices.schema.json +126 -0
- package/porto_data/schemas/products.schema.json +338 -110
- package/porto_data/schemas/providers.schema.json +71 -0
- package/porto_data/schemas/restrictions.schema.json +175 -355
- package/porto_data/schemas/rules.schema.json +104 -0
- package/porto_data/schemas/service_prices.schema.json +116 -0
- package/porto_data/schemas/services.schema.json +113 -70
- package/porto_data/schemas/weights.schema.json +70 -0
- package/porto_data/schemas/zones.schema.json +78 -72
- package/porto_data/data/data_links.json +0 -148
- package/porto_data/data/dimensions.json +0 -158
- package/porto_data/data/features.json +0 -66
- package/porto_data/data/prices.json +0 -242
- package/porto_data/data/products.json +0 -84
- package/porto_data/data/restrictions.json +0 -795
- package/porto_data/data/services.json +0 -61
- package/porto_data/data/weight_tiers.json +0 -54
- package/porto_data/data/zones.json +0 -230
- package/porto_data/schemas/data_links.schema.json +0 -223
- package/porto_data/schemas/dimensions.schema.json +0 -215
- package/porto_data/schemas/prices.schema.json +0 -180
- package/porto_data/schemas/weight_tiers.schema.json +0 -70
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/gruncellka/porto-data/refs/heads/main/porto_data/schemas/markets.schema.json",
|
|
3
|
+
"file_type": "markets",
|
|
4
|
+
"description": "Country-level currency, VAT, international quote currencies, and postal working-day calendar. providers.json country resolves fiscal defaults via markets[COUNTRY].",
|
|
5
|
+
"unit": {
|
|
6
|
+
"country_code": "ISO 3166-1 alpha-2",
|
|
7
|
+
"currency": "ISO 4217"
|
|
8
|
+
},
|
|
9
|
+
"markets": {
|
|
10
|
+
"DE": {
|
|
11
|
+
"currency": "EUR",
|
|
12
|
+
"working_days": {
|
|
13
|
+
"weekdays": "mon_sat",
|
|
14
|
+
"exclude_public_holidays": true
|
|
15
|
+
},
|
|
16
|
+
"vat": {
|
|
17
|
+
"exempt": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"FR": {
|
|
21
|
+
"currency": "EUR",
|
|
22
|
+
"working_days": {
|
|
23
|
+
"weekdays": "mon_fri",
|
|
24
|
+
"exclude_public_holidays": true
|
|
25
|
+
},
|
|
26
|
+
"vat": {
|
|
27
|
+
"domestic": {
|
|
28
|
+
"inclusive": true
|
|
29
|
+
},
|
|
30
|
+
"international": {
|
|
31
|
+
"inclusive": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"CH": {
|
|
36
|
+
"currency": "CHF",
|
|
37
|
+
"working_days": {
|
|
38
|
+
"weekdays": "mon_sat",
|
|
39
|
+
"exclude_public_holidays": true
|
|
40
|
+
},
|
|
41
|
+
"vat": {
|
|
42
|
+
"domestic": {
|
|
43
|
+
"inclusive": true
|
|
44
|
+
},
|
|
45
|
+
"international": {
|
|
46
|
+
"inclusive": true
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"UA": {
|
|
51
|
+
"currency": "UAH",
|
|
52
|
+
"working_days": {
|
|
53
|
+
"weekdays": "mon_fri",
|
|
54
|
+
"exclude_public_holidays": true
|
|
55
|
+
},
|
|
56
|
+
"international_currency": [
|
|
57
|
+
"USD"
|
|
58
|
+
],
|
|
59
|
+
"vat": {
|
|
60
|
+
"rate": 0.2,
|
|
61
|
+
"domestic": {
|
|
62
|
+
"inclusive": true
|
|
63
|
+
},
|
|
64
|
+
"international": {
|
|
65
|
+
"inclusive": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"settlement": {
|
|
69
|
+
"currency": "UAH",
|
|
70
|
+
"fx": "NBU",
|
|
71
|
+
"fx_date": "service"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|