@hed-hog/catalog 0.0.276
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/catalog-resource.config.d.ts +12 -0
- package/dist/catalog-resource.config.d.ts.map +1 -0
- package/dist/catalog-resource.config.js +209 -0
- package/dist/catalog-resource.config.js.map +1 -0
- package/dist/catalog.controller.d.ts +29 -0
- package/dist/catalog.controller.d.ts.map +1 -0
- package/dist/catalog.controller.js +117 -0
- package/dist/catalog.controller.js.map +1 -0
- package/dist/catalog.module.d.ts +3 -0
- package/dist/catalog.module.d.ts.map +1 -0
- package/dist/catalog.module.js +25 -0
- package/dist/catalog.module.js.map +1 -0
- package/dist/catalog.service.d.ts +36 -0
- package/dist/catalog.service.d.ts.map +1 -0
- package/dist/catalog.service.js +142 -0
- package/dist/catalog.service.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/hedhog/data/menu.yaml +233 -0
- package/hedhog/data/role.yaml +7 -0
- package/hedhog/data/route.yaml +56 -0
- package/hedhog/frontend/app/[resource]/page.tsx.ejs +684 -0
- package/hedhog/frontend/app/_components/catalog-nav.tsx.ejs +85 -0
- package/hedhog/frontend/app/_lib/catalog-resources.tsx.ejs +569 -0
- package/hedhog/frontend/app/dashboard/page.tsx.ejs +566 -0
- package/hedhog/frontend/app/page.tsx.ejs +5 -0
- package/hedhog/frontend/messages/en.json +293 -0
- package/hedhog/frontend/messages/pt.json +293 -0
- package/hedhog/table/catalog_affiliate_program.yaml +41 -0
- package/hedhog/table/catalog_attribute.yaml +53 -0
- package/hedhog/table/catalog_attribute_group.yaml +18 -0
- package/hedhog/table/catalog_brand.yaml +34 -0
- package/hedhog/table/catalog_category_attribute.yaml +36 -0
- package/hedhog/table/catalog_click_event.yaml +50 -0
- package/hedhog/table/catalog_comparison.yaml +65 -0
- package/hedhog/table/catalog_comparison_highlight.yaml +39 -0
- package/hedhog/table/catalog_comparison_item.yaml +30 -0
- package/hedhog/table/catalog_content_relation.yaml +42 -0
- package/hedhog/table/catalog_import_run.yaml +33 -0
- package/hedhog/table/catalog_import_source.yaml +24 -0
- package/hedhog/table/catalog_merchant.yaml +29 -0
- package/hedhog/table/catalog_offer.yaml +83 -0
- package/hedhog/table/catalog_price_history.yaml +34 -0
- package/hedhog/table/catalog_product.yaml +76 -0
- package/hedhog/table/catalog_product_attribute_value.yaml +60 -0
- package/hedhog/table/catalog_product_category.yaml +26 -0
- package/hedhog/table/catalog_product_image.yaml +34 -0
- package/hedhog/table/catalog_product_score.yaml +38 -0
- package/hedhog/table/catalog_product_site.yaml +47 -0
- package/hedhog/table/catalog_product_tag.yaml +19 -0
- package/hedhog/table/catalog_score_criterion.yaml +37 -0
- package/hedhog/table/catalog_seo_page_rule.yaml +51 -0
- package/hedhog/table/catalog_similarity_rule.yaml +28 -0
- package/hedhog/table/catalog_site.yaml +40 -0
- package/hedhog/table/catalog_site_category.yaml +26 -0
- package/package.json +40 -0
- package/src/catalog-resource.config.ts +218 -0
- package/src/catalog.controller.ts +82 -0
- package/src/catalog.module.ts +12 -0
- package/src/catalog.service.ts +167 -0
- package/src/index.ts +1 -0
- package/src/language/en.json +4 -0
- package/src/language/pt.json +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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("./catalog.module"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
- icon: boxes
|
|
2
|
+
name:
|
|
3
|
+
en: Catalog
|
|
4
|
+
pt: Catalogo
|
|
5
|
+
slug: /catalog
|
|
6
|
+
order: 70
|
|
7
|
+
relations:
|
|
8
|
+
role:
|
|
9
|
+
- where:
|
|
10
|
+
slug: admin
|
|
11
|
+
- where:
|
|
12
|
+
slug: admin-catalog
|
|
13
|
+
|
|
14
|
+
- menu_id:
|
|
15
|
+
where:
|
|
16
|
+
slug: /catalog
|
|
17
|
+
icon: layout-dashboard
|
|
18
|
+
url: /catalog/dashboard
|
|
19
|
+
name:
|
|
20
|
+
en: Dashboard
|
|
21
|
+
pt: Dashboard
|
|
22
|
+
slug: /catalog/dashboard
|
|
23
|
+
order: 71
|
|
24
|
+
relations:
|
|
25
|
+
role:
|
|
26
|
+
- where:
|
|
27
|
+
slug: admin
|
|
28
|
+
- where:
|
|
29
|
+
slug: admin-catalog
|
|
30
|
+
|
|
31
|
+
- menu_id:
|
|
32
|
+
where:
|
|
33
|
+
slug: /catalog
|
|
34
|
+
icon: factory
|
|
35
|
+
url: /catalog/brands
|
|
36
|
+
name:
|
|
37
|
+
en: Brands
|
|
38
|
+
pt: Marcas
|
|
39
|
+
slug: /catalog/brands
|
|
40
|
+
order: 72
|
|
41
|
+
relations:
|
|
42
|
+
role:
|
|
43
|
+
- where:
|
|
44
|
+
slug: admin
|
|
45
|
+
- where:
|
|
46
|
+
slug: admin-catalog
|
|
47
|
+
|
|
48
|
+
- menu_id:
|
|
49
|
+
where:
|
|
50
|
+
slug: /catalog
|
|
51
|
+
icon: globe
|
|
52
|
+
url: /catalog/sites
|
|
53
|
+
name:
|
|
54
|
+
en: Sites
|
|
55
|
+
pt: Sites
|
|
56
|
+
slug: /catalog/sites
|
|
57
|
+
order: 73
|
|
58
|
+
relations:
|
|
59
|
+
role:
|
|
60
|
+
- where:
|
|
61
|
+
slug: admin
|
|
62
|
+
- where:
|
|
63
|
+
slug: admin-catalog
|
|
64
|
+
|
|
65
|
+
- menu_id:
|
|
66
|
+
where:
|
|
67
|
+
slug: /catalog
|
|
68
|
+
icon: package-search
|
|
69
|
+
url: /catalog/products
|
|
70
|
+
name:
|
|
71
|
+
en: Products
|
|
72
|
+
pt: Produtos
|
|
73
|
+
slug: /catalog/products
|
|
74
|
+
order: 74
|
|
75
|
+
relations:
|
|
76
|
+
role:
|
|
77
|
+
- where:
|
|
78
|
+
slug: admin
|
|
79
|
+
- where:
|
|
80
|
+
slug: admin-catalog
|
|
81
|
+
|
|
82
|
+
- menu_id:
|
|
83
|
+
where:
|
|
84
|
+
slug: /catalog
|
|
85
|
+
icon: layers-3
|
|
86
|
+
url: /catalog/attribute-groups
|
|
87
|
+
name:
|
|
88
|
+
en: Attribute Groups
|
|
89
|
+
pt: Grupos de atributos
|
|
90
|
+
slug: /catalog/attribute-groups
|
|
91
|
+
order: 75
|
|
92
|
+
relations:
|
|
93
|
+
role:
|
|
94
|
+
- where:
|
|
95
|
+
slug: admin
|
|
96
|
+
- where:
|
|
97
|
+
slug: admin-catalog
|
|
98
|
+
|
|
99
|
+
- menu_id:
|
|
100
|
+
where:
|
|
101
|
+
slug: /catalog
|
|
102
|
+
icon: tags
|
|
103
|
+
url: /catalog/attributes
|
|
104
|
+
name:
|
|
105
|
+
en: Attributes
|
|
106
|
+
pt: Atributos
|
|
107
|
+
slug: /catalog/attributes
|
|
108
|
+
order: 76
|
|
109
|
+
relations:
|
|
110
|
+
role:
|
|
111
|
+
- where:
|
|
112
|
+
slug: admin
|
|
113
|
+
- where:
|
|
114
|
+
slug: admin-catalog
|
|
115
|
+
|
|
116
|
+
- menu_id:
|
|
117
|
+
where:
|
|
118
|
+
slug: /catalog
|
|
119
|
+
icon: badge-percent
|
|
120
|
+
url: /catalog/category-attributes
|
|
121
|
+
name:
|
|
122
|
+
en: Category Attributes
|
|
123
|
+
pt: Atributos por categoria
|
|
124
|
+
slug: /catalog/category-attributes
|
|
125
|
+
order: 77
|
|
126
|
+
relations:
|
|
127
|
+
role:
|
|
128
|
+
- where:
|
|
129
|
+
slug: admin
|
|
130
|
+
- where:
|
|
131
|
+
slug: admin-catalog
|
|
132
|
+
|
|
133
|
+
- menu_id:
|
|
134
|
+
where:
|
|
135
|
+
slug: /catalog
|
|
136
|
+
icon: scale
|
|
137
|
+
url: /catalog/comparisons
|
|
138
|
+
name:
|
|
139
|
+
en: Comparisons
|
|
140
|
+
pt: Comparacoes
|
|
141
|
+
slug: /catalog/comparisons
|
|
142
|
+
order: 78
|
|
143
|
+
relations:
|
|
144
|
+
role:
|
|
145
|
+
- where:
|
|
146
|
+
slug: admin
|
|
147
|
+
- where:
|
|
148
|
+
slug: admin-catalog
|
|
149
|
+
|
|
150
|
+
- menu_id:
|
|
151
|
+
where:
|
|
152
|
+
slug: /catalog
|
|
153
|
+
icon: shopping-cart
|
|
154
|
+
url: /catalog/offers
|
|
155
|
+
name:
|
|
156
|
+
en: Offers
|
|
157
|
+
pt: Ofertas
|
|
158
|
+
slug: /catalog/offers
|
|
159
|
+
order: 79
|
|
160
|
+
relations:
|
|
161
|
+
role:
|
|
162
|
+
- where:
|
|
163
|
+
slug: admin
|
|
164
|
+
- where:
|
|
165
|
+
slug: admin-catalog
|
|
166
|
+
|
|
167
|
+
- menu_id:
|
|
168
|
+
where:
|
|
169
|
+
slug: /catalog
|
|
170
|
+
icon: store
|
|
171
|
+
url: /catalog/merchants
|
|
172
|
+
name:
|
|
173
|
+
en: Merchants
|
|
174
|
+
pt: Lojistas
|
|
175
|
+
slug: /catalog/merchants
|
|
176
|
+
order: 80
|
|
177
|
+
relations:
|
|
178
|
+
role:
|
|
179
|
+
- where:
|
|
180
|
+
slug: admin
|
|
181
|
+
- where:
|
|
182
|
+
slug: admin-catalog
|
|
183
|
+
|
|
184
|
+
- menu_id:
|
|
185
|
+
where:
|
|
186
|
+
slug: /catalog
|
|
187
|
+
icon: building-2
|
|
188
|
+
url: /catalog/affiliate-programs
|
|
189
|
+
name:
|
|
190
|
+
en: Affiliate Programs
|
|
191
|
+
pt: Programas de afiliacao
|
|
192
|
+
slug: /catalog/affiliate-programs
|
|
193
|
+
order: 81
|
|
194
|
+
relations:
|
|
195
|
+
role:
|
|
196
|
+
- where:
|
|
197
|
+
slug: admin
|
|
198
|
+
- where:
|
|
199
|
+
slug: admin-catalog
|
|
200
|
+
|
|
201
|
+
- menu_id:
|
|
202
|
+
where:
|
|
203
|
+
slug: /catalog
|
|
204
|
+
icon: search-code
|
|
205
|
+
url: /catalog/seo-rules
|
|
206
|
+
name:
|
|
207
|
+
en: SEO Rules
|
|
208
|
+
pt: Regras de SEO
|
|
209
|
+
slug: /catalog/seo-rules
|
|
210
|
+
order: 82
|
|
211
|
+
relations:
|
|
212
|
+
role:
|
|
213
|
+
- where:
|
|
214
|
+
slug: admin
|
|
215
|
+
- where:
|
|
216
|
+
slug: admin-catalog
|
|
217
|
+
|
|
218
|
+
- menu_id:
|
|
219
|
+
where:
|
|
220
|
+
slug: /catalog
|
|
221
|
+
icon: package-plus
|
|
222
|
+
url: /catalog/import-sources
|
|
223
|
+
name:
|
|
224
|
+
en: Import Sources
|
|
225
|
+
pt: Fontes de importacao
|
|
226
|
+
slug: /catalog/import-sources
|
|
227
|
+
order: 83
|
|
228
|
+
relations:
|
|
229
|
+
role:
|
|
230
|
+
- where:
|
|
231
|
+
slug: admin
|
|
232
|
+
- where:
|
|
233
|
+
slug: admin-catalog
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
- url: /catalog/:resource
|
|
2
|
+
method: GET
|
|
3
|
+
relations:
|
|
4
|
+
role:
|
|
5
|
+
- where:
|
|
6
|
+
slug: admin
|
|
7
|
+
- where:
|
|
8
|
+
slug: admin-catalog
|
|
9
|
+
- url: /catalog/:resource
|
|
10
|
+
method: POST
|
|
11
|
+
relations:
|
|
12
|
+
role:
|
|
13
|
+
- where:
|
|
14
|
+
slug: admin
|
|
15
|
+
- where:
|
|
16
|
+
slug: admin-catalog
|
|
17
|
+
- url: /catalog/:resource/stats
|
|
18
|
+
method: GET
|
|
19
|
+
relations:
|
|
20
|
+
role:
|
|
21
|
+
- where:
|
|
22
|
+
slug: admin
|
|
23
|
+
- where:
|
|
24
|
+
slug: admin-catalog
|
|
25
|
+
- url: /catalog/:resource/:id
|
|
26
|
+
method: GET
|
|
27
|
+
relations:
|
|
28
|
+
role:
|
|
29
|
+
- where:
|
|
30
|
+
slug: admin
|
|
31
|
+
- where:
|
|
32
|
+
slug: admin-catalog
|
|
33
|
+
- url: /catalog/:resource/:id
|
|
34
|
+
method: PATCH
|
|
35
|
+
relations:
|
|
36
|
+
role:
|
|
37
|
+
- where:
|
|
38
|
+
slug: admin
|
|
39
|
+
- where:
|
|
40
|
+
slug: admin-catalog
|
|
41
|
+
- url: /catalog/:resource/:id
|
|
42
|
+
method: DELETE
|
|
43
|
+
relations:
|
|
44
|
+
role:
|
|
45
|
+
- where:
|
|
46
|
+
slug: admin
|
|
47
|
+
- where:
|
|
48
|
+
slug: admin-catalog
|
|
49
|
+
- url: /catalog/products/:id/images
|
|
50
|
+
method: GET
|
|
51
|
+
relations:
|
|
52
|
+
role:
|
|
53
|
+
- where:
|
|
54
|
+
slug: admin
|
|
55
|
+
- where:
|
|
56
|
+
slug: admin-catalog
|