@commercelayer/demo-store-types 1.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/LICENSE +21 -0
- package/README.md +100 -0
- package/dist/config/facets.config.d.ts +43 -0
- package/dist/config/facets.config.js +2 -0
- package/dist/config/general.config.d.ts +9 -0
- package/dist/config/general.config.js +2 -0
- package/dist/config/variants.config.d.ts +24 -0
- package/dist/config/variants.config.js +2 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +29 -0
- package/dist/json/catalogs.d.ts +29 -0
- package/dist/json/catalogs.js +10 -0
- package/dist/json/countries.d.ts +47 -0
- package/dist/json/countries.js +13 -0
- package/dist/json/languages.d.ts +29 -0
- package/dist/json/languages.js +10 -0
- package/dist/json/organization.d.ts +41 -0
- package/dist/json/organization.js +12 -0
- package/dist/json/pages.d.ts +1202 -0
- package/dist/json/pages.js +58 -0
- package/dist/json/products.d.ts +169 -0
- package/dist/json/products.js +20 -0
- package/dist/json/taxonomies.d.ts +35 -0
- package/dist/json/taxonomies.js +11 -0
- package/dist/json/taxons.d.ts +85 -0
- package/dist/json/taxons.js +15 -0
- package/dist/utils/locale.d.ts +9 -0
- package/dist/utils/locale.js +8 -0
- package/dist/utils/sort.d.ts +11 -0
- package/dist/utils/sort.js +2 -0
- package/package.json +25 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Commerce Layer Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Commerce Layer Demo Store `types`
|
|
2
|
+
|
|
3
|
+
This package contains all `types` used by the Demo Store.
|
|
4
|
+
|
|
5
|
+
You can install it and use them to build your own Demo Store data and configuration files.
|
|
6
|
+
|
|
7
|
+
To build Demo Store data you'll probably need to create a scripts that converts data from your source to the Demo Store data format.
|
|
8
|
+
|
|
9
|
+
Using this package, that operation will be much easier and error-proof.
|
|
10
|
+
|
|
11
|
+
<img width="869" alt="IntelliSense in Visual Studio Code" src="https://user-images.githubusercontent.com/1681269/186433307-b309ab45-68b7-4a7e-ac10-df2874189e1b.png">
|
|
12
|
+
|
|
13
|
+
Here below a working example with Node.js 18:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
mkdir demo
|
|
17
|
+
cd demo
|
|
18
|
+
npm init -y
|
|
19
|
+
npm install -D typescript tsm @commercelayer/demo-store-types
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
//= index.ts
|
|
24
|
+
|
|
25
|
+
(async () => {
|
|
26
|
+
// this represent a list of products taken from an external source
|
|
27
|
+
const remoteProducts: any[] = await fetch('https://run.mocky.io/v3/57f0a452-eae1-4f67-8a33-e4119e73c2db')
|
|
28
|
+
.then(response => response.json())
|
|
29
|
+
|
|
30
|
+
const demoStoreProducts: RawDataProduct[] = remoteProducts.map(product => ({
|
|
31
|
+
productCode: product.code.substring(0, 8),
|
|
32
|
+
variantCode: product.code.substring(0, 8 + 6),
|
|
33
|
+
sku: product.code,
|
|
34
|
+
slug: `/${product.name.toLowerCase().replace(/[\W]+/g, '-').replace(/^-|-$/g, '')}/${product.code}`,
|
|
35
|
+
name: {
|
|
36
|
+
en: product.name.replace(/\s\(.*\)$/, '')
|
|
37
|
+
},
|
|
38
|
+
description: {
|
|
39
|
+
en: product.description
|
|
40
|
+
},
|
|
41
|
+
images: [
|
|
42
|
+
product.image_url
|
|
43
|
+
]
|
|
44
|
+
}))
|
|
45
|
+
|
|
46
|
+
console.log(demoStoreProducts)
|
|
47
|
+
})()
|
|
48
|
+
|
|
49
|
+
// [
|
|
50
|
+
// {
|
|
51
|
+
// "productCode": "5PANECAP",
|
|
52
|
+
// "variantCode": "5PANECAP000000",
|
|
53
|
+
// "sku": "5PANECAP000000FFFFFFXXXX",
|
|
54
|
+
// "slug": "/black-five-panel-cap-with-white-logo/5PANECAP000000FFFFFFXXXX",
|
|
55
|
+
// "name": {
|
|
56
|
+
// "en": "Black Five-Panel Cap with White Logo"
|
|
57
|
+
// },
|
|
58
|
+
// "description": {
|
|
59
|
+
// "en": "Soft-structured, five-panel, low-profile cap. 100% cotton, metal eyelets, nylon strap clip closure."
|
|
60
|
+
// },
|
|
61
|
+
// "images": [
|
|
62
|
+
// "https://data.commercelayer.app/seed/images/skus/5PANECAP000000FFFFFFXXXX_FLAT.png"
|
|
63
|
+
// ]
|
|
64
|
+
// },
|
|
65
|
+
// {
|
|
66
|
+
// "productCode": "5PANECAP",
|
|
67
|
+
// "variantCode": "5PANECAP9D9CA1",
|
|
68
|
+
// "sku": "5PANECAP9D9CA1FFFFFFXXXX",
|
|
69
|
+
// "slug": "/gray-five-panel-cap-with-white-logo/5PANECAP9D9CA1FFFFFFXXXX",
|
|
70
|
+
// "name": {
|
|
71
|
+
// "en": "Gray Five-Panel Cap with White Logo"
|
|
72
|
+
// },
|
|
73
|
+
// "description": {
|
|
74
|
+
// "en": "Soft-structured, five-panel, low-profile cap. 100% cotton, metal eyelets, nylon strap clip closure."
|
|
75
|
+
// },
|
|
76
|
+
// "images": [
|
|
77
|
+
// "https://data.commercelayer.app/seed/images/skus/5PANECAP9D9CA1FFFFFFXXXX_FLAT.png"
|
|
78
|
+
// ]
|
|
79
|
+
// },
|
|
80
|
+
// {
|
|
81
|
+
// "productCode": "APRONXXX",
|
|
82
|
+
// "variantCode": "APRONXXX000000",
|
|
83
|
+
// "sku": "APRONXXX000000FFFFFFXXXX",
|
|
84
|
+
// "slug": "/black-apron-with-white-logo/APRONXXX000000FFFFFFXXXX",
|
|
85
|
+
// "name": {
|
|
86
|
+
// "en": "Black Apron with White Logo"
|
|
87
|
+
// },
|
|
88
|
+
// "description": {
|
|
89
|
+
// "en": "This apron has a neck loop and long ties that are easy to adjust for any size. The two front pockets provide additional space for some much-needed cooking utensils, and together with our embroidered logo give the apron a sleek premium look."
|
|
90
|
+
// },
|
|
91
|
+
// "images": [
|
|
92
|
+
// "https://data.commercelayer.app/seed/images/skus/APRONXXX000000FFFFFFXXXX_FLAT.png"
|
|
93
|
+
// ]
|
|
94
|
+
// }
|
|
95
|
+
// ]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
node -r tsm index.ts
|
|
100
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { SortingRule } from '../utils/sort';
|
|
2
|
+
declare type Config = {
|
|
3
|
+
/**
|
|
4
|
+
* Any product attribute key taken from `products.json`.
|
|
5
|
+
*/
|
|
6
|
+
field: string;
|
|
7
|
+
/**
|
|
8
|
+
* Define a list of sorting rules.
|
|
9
|
+
*/
|
|
10
|
+
sortOrder?: SortingRule[];
|
|
11
|
+
};
|
|
12
|
+
declare type ColorSwatchAppearance = {
|
|
13
|
+
/**
|
|
14
|
+
* Make it appear like a color swatch.
|
|
15
|
+
*
|
|
16
|
+
* The field value should be a valid css color value.
|
|
17
|
+
*
|
|
18
|
+
* @example '#000000'
|
|
19
|
+
*/
|
|
20
|
+
appearance: 'colorSwatch';
|
|
21
|
+
};
|
|
22
|
+
declare type PriceRangeAppearance = {
|
|
23
|
+
/**
|
|
24
|
+
* Make it appear like a price-range.
|
|
25
|
+
*
|
|
26
|
+
* The field value should be an integer or float. Strings will be coerced to float.
|
|
27
|
+
*/
|
|
28
|
+
appearance: 'priceRange';
|
|
29
|
+
};
|
|
30
|
+
declare type SwitchAppearance = {
|
|
31
|
+
/**
|
|
32
|
+
* Make it appear like a switch button (on/off)
|
|
33
|
+
*/
|
|
34
|
+
appearance: 'switch';
|
|
35
|
+
};
|
|
36
|
+
declare type TagAppearance = {
|
|
37
|
+
/**
|
|
38
|
+
* Make it appear like a switchable button
|
|
39
|
+
*/
|
|
40
|
+
appearance: 'tag';
|
|
41
|
+
};
|
|
42
|
+
export declare type FacetConfig = Config & (ColorSwatchAppearance | PriceRangeAppearance | SwitchAppearance | TagAppearance);
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare type Config = {
|
|
2
|
+
/**
|
|
3
|
+
* Any product attribute key taken from `products.json`.
|
|
4
|
+
*/
|
|
5
|
+
field: string;
|
|
6
|
+
};
|
|
7
|
+
declare type ColorSwatchAppearance = {
|
|
8
|
+
/**
|
|
9
|
+
* Make it appear like a color swatch.
|
|
10
|
+
*
|
|
11
|
+
* The field value should be a valid css color value.
|
|
12
|
+
*
|
|
13
|
+
* @example '#000000'
|
|
14
|
+
*/
|
|
15
|
+
appearance: 'colorSwatch';
|
|
16
|
+
};
|
|
17
|
+
declare type TagAppearance = {
|
|
18
|
+
/**
|
|
19
|
+
* Make it appear like a switchable button.
|
|
20
|
+
*/
|
|
21
|
+
appearance: 'tag';
|
|
22
|
+
};
|
|
23
|
+
export declare type VariantConfig = Config & (ColorSwatchAppearance | TagAppearance);
|
|
24
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './config/facets.config';
|
|
2
|
+
export * from './config/general.config';
|
|
3
|
+
export * from './config/variants.config';
|
|
4
|
+
export * from './json/catalogs';
|
|
5
|
+
export * from './json/countries';
|
|
6
|
+
export * from './json/languages';
|
|
7
|
+
export * from './json/organization';
|
|
8
|
+
export * from './json/pages';
|
|
9
|
+
export * from './json/products';
|
|
10
|
+
export * from './json/taxonomies';
|
|
11
|
+
export * from './json/taxons';
|
|
12
|
+
export * from './utils/locale';
|
|
13
|
+
export * from './utils/sort';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./config/facets.config"), exports);
|
|
18
|
+
__exportStar(require("./config/general.config"), exports);
|
|
19
|
+
__exportStar(require("./config/variants.config"), exports);
|
|
20
|
+
__exportStar(require("./json/catalogs"), exports);
|
|
21
|
+
__exportStar(require("./json/countries"), exports);
|
|
22
|
+
__exportStar(require("./json/languages"), exports);
|
|
23
|
+
__exportStar(require("./json/organization"), exports);
|
|
24
|
+
__exportStar(require("./json/pages"), exports);
|
|
25
|
+
__exportStar(require("./json/products"), exports);
|
|
26
|
+
__exportStar(require("./json/taxonomies"), exports);
|
|
27
|
+
__exportStar(require("./json/taxons"), exports);
|
|
28
|
+
__exportStar(require("./utils/locale"), exports);
|
|
29
|
+
__exportStar(require("./utils/sort"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const catalog_schema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
taxonomies: z.ZodArray<z.ZodString, "many">;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
taxonomies: string[];
|
|
10
|
+
}, {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
taxonomies: string[];
|
|
14
|
+
}>;
|
|
15
|
+
export declare const rawDataCatalogs_schema: z.ZodArray<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
taxonomies: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
taxonomies: string[];
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
taxonomies: string[];
|
|
27
|
+
}>, "many">;
|
|
28
|
+
export declare type RawDataCatalog = z.infer<typeof catalog_schema>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rawDataCatalogs_schema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const catalog_schema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
taxonomies: zod_1.z.string().array()
|
|
9
|
+
});
|
|
10
|
+
exports.rawDataCatalogs_schema = catalog_schema.array();
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const country_schema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
code: z.ZodString;
|
|
5
|
+
market: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
catalog: z.ZodString;
|
|
7
|
+
default_language: z.ZodString;
|
|
8
|
+
region: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
market?: number | undefined;
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
catalog: string;
|
|
14
|
+
default_language: string;
|
|
15
|
+
region: string;
|
|
16
|
+
}, {
|
|
17
|
+
market?: number | undefined;
|
|
18
|
+
name: string;
|
|
19
|
+
code: string;
|
|
20
|
+
catalog: string;
|
|
21
|
+
default_language: string;
|
|
22
|
+
region: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const rawDataCountries_schema: z.ZodArray<z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
code: z.ZodString;
|
|
27
|
+
market: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
catalog: z.ZodString;
|
|
29
|
+
default_language: z.ZodString;
|
|
30
|
+
region: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
market?: number | undefined;
|
|
33
|
+
name: string;
|
|
34
|
+
code: string;
|
|
35
|
+
catalog: string;
|
|
36
|
+
default_language: string;
|
|
37
|
+
region: string;
|
|
38
|
+
}, {
|
|
39
|
+
market?: number | undefined;
|
|
40
|
+
name: string;
|
|
41
|
+
code: string;
|
|
42
|
+
catalog: string;
|
|
43
|
+
default_language: string;
|
|
44
|
+
region: string;
|
|
45
|
+
}>, "many">;
|
|
46
|
+
export declare type RawDataCountry = z.infer<typeof country_schema>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rawDataCountries_schema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const country_schema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string(),
|
|
7
|
+
code: zod_1.z.string(),
|
|
8
|
+
market: zod_1.z.number().optional(),
|
|
9
|
+
catalog: zod_1.z.string(),
|
|
10
|
+
default_language: zod_1.z.string(),
|
|
11
|
+
region: zod_1.z.string()
|
|
12
|
+
});
|
|
13
|
+
exports.rawDataCountries_schema = country_schema.array();
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const language_schema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
code: z.ZodString;
|
|
5
|
+
catalog: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
name: string;
|
|
8
|
+
code: string;
|
|
9
|
+
catalog: string;
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
catalog: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const rawDataLanguages_schema: z.ZodArray<z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
code: z.ZodString;
|
|
18
|
+
catalog: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
name: string;
|
|
21
|
+
code: string;
|
|
22
|
+
catalog: string;
|
|
23
|
+
}, {
|
|
24
|
+
name: string;
|
|
25
|
+
code: string;
|
|
26
|
+
catalog: string;
|
|
27
|
+
}>, "many">;
|
|
28
|
+
export declare type RawDataLanguage = z.infer<typeof language_schema>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rawDataLanguages_schema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const language_schema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string(),
|
|
7
|
+
code: zod_1.z.string(),
|
|
8
|
+
catalog: zod_1.z.string()
|
|
9
|
+
});
|
|
10
|
+
exports.rawDataLanguages_schema = language_schema.array();
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const organization_schema: z.ZodObject<{
|
|
3
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
5
|
+
favicon_url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
7
|
+
manifest: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
logo_url?: string | undefined;
|
|
11
|
+
favicon_url?: string | undefined;
|
|
12
|
+
primary_color?: string | undefined;
|
|
13
|
+
manifest?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
logo_url?: string | undefined;
|
|
17
|
+
favicon_url?: string | undefined;
|
|
18
|
+
primary_color?: string | undefined;
|
|
19
|
+
manifest?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const rawDataOrganization_schema: z.ZodObject<{
|
|
22
|
+
name: z.ZodOptional<z.ZodString>;
|
|
23
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
24
|
+
favicon_url: z.ZodOptional<z.ZodString>;
|
|
25
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
26
|
+
manifest: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
logo_url?: string | undefined;
|
|
30
|
+
favicon_url?: string | undefined;
|
|
31
|
+
primary_color?: string | undefined;
|
|
32
|
+
manifest?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
logo_url?: string | undefined;
|
|
36
|
+
favicon_url?: string | undefined;
|
|
37
|
+
primary_color?: string | undefined;
|
|
38
|
+
manifest?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
export declare type RawDataOrganization = z.infer<typeof organization_schema>;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rawDataOrganization_schema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const organization_schema = zod_1.z.object({
|
|
6
|
+
name: zod_1.z.string().optional(),
|
|
7
|
+
logo_url: zod_1.z.string().optional(),
|
|
8
|
+
favicon_url: zod_1.z.string().optional(),
|
|
9
|
+
primary_color: zod_1.z.string().optional(),
|
|
10
|
+
manifest: zod_1.z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
exports.rawDataOrganization_schema = organization_schema;
|