@commercelayer/demo-store-types 1.1.0 → 2.0.0
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/json/countries.d.ts
CHANGED
|
@@ -31,12 +31,15 @@ type RawDataCountrySchema = z.ZodObject<{
|
|
|
31
31
|
*/
|
|
32
32
|
catalog: z.ZodString;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Supported language codes
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
36
|
+
* List of supported language codes for the specific country. A countries can support more than one language.
|
|
37
|
+
*
|
|
38
|
+
* First language code in the list will be used as default language.
|
|
39
|
+
* The default language is used on the country selector page when you select a country.
|
|
40
|
+
* @example ["it", "en"]
|
|
38
41
|
*/
|
|
39
|
-
|
|
42
|
+
languages: z.ZodArray<z.ZodString>;
|
|
40
43
|
/**
|
|
41
44
|
* Region
|
|
42
45
|
*
|
package/dist/json/countries.js
CHANGED
|
@@ -7,7 +7,7 @@ const rawDataCountry_schema = zod_1.z.object({
|
|
|
7
7
|
code: zod_1.z.string(),
|
|
8
8
|
market: zod_1.z.number().optional(),
|
|
9
9
|
catalog: zod_1.z.string(),
|
|
10
|
-
|
|
10
|
+
languages: zod_1.z.string().array().min(1),
|
|
11
11
|
region: zod_1.z.string()
|
|
12
12
|
});
|
|
13
13
|
exports.rawDataCountries_schema = rawDataCountry_schema.array();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercelayer/demo-store-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Demo Store types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"ts:check": "tsc --noEmit",
|
|
18
|
-
"build": "tsc"
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"prepare": "npm run build"
|
|
19
20
|
},
|
|
20
21
|
"license": "MIT",
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
|
24
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "8bae1e17bc5788b70704497e3dd7c07599836b57"
|
|
25
26
|
}
|