@hed-hog/catalog 0.0.294 → 0.0.295
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/README.md +409 -409
- package/dist/catalog.service.d.ts.map +1 -1
- package/dist/catalog.service.js +14 -6
- package/dist/catalog.service.js.map +1 -1
- package/hedhog/data/catalog_attribute.yaml +202 -202
- package/hedhog/data/catalog_attribute_option.yaml +109 -109
- package/hedhog/data/catalog_category.yaml +47 -47
- package/hedhog/data/catalog_category_attribute.yaml +209 -209
- package/hedhog/data/menu.yaml +133 -133
- package/hedhog/data/role.yaml +7 -7
- package/hedhog/data/route.yaml +72 -72
- package/hedhog/frontend/app/[resource]/page.tsx.ejs +391 -391
- package/hedhog/frontend/app/_components/catalog-ai-form-assist-dialog.tsx.ejs +340 -340
- package/hedhog/frontend/app/_components/catalog-resource-form-sheet.tsx.ejs +907 -907
- package/hedhog/frontend/app/_lib/catalog-resources.tsx.ejs +929 -929
- package/hedhog/frontend/app/dashboard/page.tsx.ejs +14 -83
- package/hedhog/frontend/messages/en.json +389 -389
- package/hedhog/frontend/messages/pt.json +389 -389
- package/hedhog/table/catalog_affiliate_program.yaml +41 -41
- package/hedhog/table/catalog_attribute.yaml +67 -67
- package/hedhog/table/catalog_attribute_group.yaml +18 -18
- package/hedhog/table/catalog_attribute_option.yaml +40 -40
- package/hedhog/table/catalog_brand.yaml +34 -34
- package/hedhog/table/catalog_category.yaml +40 -40
- package/hedhog/table/catalog_category_attribute.yaml +37 -37
- package/hedhog/table/catalog_click_event.yaml +50 -50
- package/hedhog/table/catalog_comparison.yaml +19 -19
- package/hedhog/table/catalog_comparison_highlight.yaml +39 -39
- package/hedhog/table/catalog_comparison_item.yaml +30 -30
- package/hedhog/table/catalog_content_relation.yaml +42 -42
- package/hedhog/table/catalog_import_run.yaml +33 -33
- package/hedhog/table/catalog_import_source.yaml +24 -24
- package/hedhog/table/catalog_merchant.yaml +29 -29
- package/hedhog/table/catalog_offer.yaml +83 -83
- package/hedhog/table/catalog_price_history.yaml +34 -34
- package/hedhog/table/catalog_product.yaml +30 -30
- package/hedhog/table/catalog_product_attribute_value.yaml +44 -44
- package/hedhog/table/catalog_product_category.yaml +13 -13
- package/hedhog/table/catalog_product_image.yaml +34 -34
- package/hedhog/table/catalog_product_score.yaml +38 -38
- package/hedhog/table/catalog_product_site.yaml +47 -47
- package/hedhog/table/catalog_product_tag.yaml +19 -19
- package/hedhog/table/catalog_score_criterion.yaml +42 -42
- package/hedhog/table/catalog_seo_page_rule.yaml +10 -10
- package/hedhog/table/catalog_similarity_rule.yaml +33 -33
- package/hedhog/table/catalog_site.yaml +21 -21
- package/hedhog/table/catalog_site_category.yaml +12 -12
- package/package.json +6 -6
- package/src/catalog-resource.config.ts +132 -132
- package/src/catalog.controller.ts +91 -91
- package/src/catalog.module.ts +16 -16
- package/src/catalog.service.ts +1585 -1573
- package/src/index.ts +1 -1
- package/src/language/en.json +4 -4
- package/src/language/pt.json +4 -4
package/hedhog/data/menu.yaml
CHANGED
|
@@ -28,50 +28,33 @@
|
|
|
28
28
|
- where:
|
|
29
29
|
slug: admin-catalog
|
|
30
30
|
|
|
31
|
-
- menu_id:
|
|
32
|
-
where:
|
|
33
|
-
slug: /catalog
|
|
34
|
-
icon: folders
|
|
35
|
-
url: /catalog/categories
|
|
36
|
-
name:
|
|
37
|
-
en: Categories
|
|
38
|
-
pt: Categorias
|
|
39
|
-
slug: /catalog/categories
|
|
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: factory
|
|
52
|
-
url: /catalog/brands
|
|
53
|
-
name:
|
|
54
|
-
en: Brands
|
|
55
|
-
pt: Marcas
|
|
56
|
-
slug: /catalog/brands
|
|
57
|
-
order: 73
|
|
58
|
-
relations:
|
|
59
|
-
role:
|
|
60
|
-
- where:
|
|
61
|
-
slug: admin
|
|
31
|
+
- menu_id:
|
|
32
|
+
where:
|
|
33
|
+
slug: /catalog
|
|
34
|
+
icon: folders
|
|
35
|
+
url: /catalog/categories
|
|
36
|
+
name:
|
|
37
|
+
en: Categories
|
|
38
|
+
pt: Categorias
|
|
39
|
+
slug: /catalog/categories
|
|
40
|
+
order: 72
|
|
41
|
+
relations:
|
|
42
|
+
role:
|
|
43
|
+
- where:
|
|
44
|
+
slug: admin
|
|
62
45
|
- where:
|
|
63
46
|
slug: admin-catalog
|
|
64
47
|
|
|
65
48
|
- menu_id:
|
|
66
49
|
where:
|
|
67
50
|
slug: /catalog
|
|
68
|
-
icon:
|
|
69
|
-
url: /catalog/
|
|
70
|
-
name:
|
|
71
|
-
en:
|
|
72
|
-
pt:
|
|
73
|
-
slug: /catalog/
|
|
74
|
-
order:
|
|
51
|
+
icon: factory
|
|
52
|
+
url: /catalog/brands
|
|
53
|
+
name:
|
|
54
|
+
en: Brands
|
|
55
|
+
pt: Marcas
|
|
56
|
+
slug: /catalog/brands
|
|
57
|
+
order: 73
|
|
75
58
|
relations:
|
|
76
59
|
role:
|
|
77
60
|
- where:
|
|
@@ -82,13 +65,13 @@
|
|
|
82
65
|
- menu_id:
|
|
83
66
|
where:
|
|
84
67
|
slug: /catalog
|
|
85
|
-
icon:
|
|
86
|
-
url: /catalog/
|
|
87
|
-
name:
|
|
88
|
-
en:
|
|
89
|
-
pt:
|
|
90
|
-
slug: /catalog/
|
|
91
|
-
order:
|
|
68
|
+
icon: globe
|
|
69
|
+
url: /catalog/sites
|
|
70
|
+
name:
|
|
71
|
+
en: Sites
|
|
72
|
+
pt: Sites
|
|
73
|
+
slug: /catalog/sites
|
|
74
|
+
order: 74
|
|
92
75
|
relations:
|
|
93
76
|
role:
|
|
94
77
|
- where:
|
|
@@ -99,13 +82,13 @@
|
|
|
99
82
|
- menu_id:
|
|
100
83
|
where:
|
|
101
84
|
slug: /catalog
|
|
102
|
-
icon:
|
|
103
|
-
url: /catalog/
|
|
104
|
-
name:
|
|
105
|
-
en:
|
|
106
|
-
pt:
|
|
107
|
-
slug: /catalog/
|
|
108
|
-
order:
|
|
85
|
+
icon: package-search
|
|
86
|
+
url: /catalog/products
|
|
87
|
+
name:
|
|
88
|
+
en: Products
|
|
89
|
+
pt: Produtos
|
|
90
|
+
slug: /catalog/products
|
|
91
|
+
order: 75
|
|
109
92
|
relations:
|
|
110
93
|
role:
|
|
111
94
|
- where:
|
|
@@ -116,47 +99,30 @@
|
|
|
116
99
|
- menu_id:
|
|
117
100
|
where:
|
|
118
101
|
slug: /catalog
|
|
119
|
-
icon:
|
|
120
|
-
url: /catalog/
|
|
121
|
-
name:
|
|
122
|
-
en:
|
|
123
|
-
pt:
|
|
124
|
-
slug: /catalog/
|
|
125
|
-
order:
|
|
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: list-filter
|
|
137
|
-
url: /catalog/attribute-options
|
|
138
|
-
name:
|
|
139
|
-
en: Attribute Options
|
|
140
|
-
pt: Opcoes de atributos
|
|
141
|
-
slug: /catalog/attribute-options
|
|
142
|
-
order: 78
|
|
143
|
-
relations:
|
|
144
|
-
role:
|
|
145
|
-
- where:
|
|
146
|
-
slug: admin
|
|
102
|
+
icon: layers-3
|
|
103
|
+
url: /catalog/attribute-groups
|
|
104
|
+
name:
|
|
105
|
+
en: Attribute Groups
|
|
106
|
+
pt: Grupos de atributos
|
|
107
|
+
slug: /catalog/attribute-groups
|
|
108
|
+
order: 76
|
|
109
|
+
relations:
|
|
110
|
+
role:
|
|
111
|
+
- where:
|
|
112
|
+
slug: admin
|
|
147
113
|
- where:
|
|
148
114
|
slug: admin-catalog
|
|
149
115
|
|
|
150
116
|
- menu_id:
|
|
151
117
|
where:
|
|
152
118
|
slug: /catalog
|
|
153
|
-
icon:
|
|
154
|
-
url: /catalog/
|
|
155
|
-
name:
|
|
156
|
-
en:
|
|
157
|
-
pt: Atributos
|
|
158
|
-
slug: /catalog/
|
|
159
|
-
order:
|
|
119
|
+
icon: tags
|
|
120
|
+
url: /catalog/attributes
|
|
121
|
+
name:
|
|
122
|
+
en: Attributes
|
|
123
|
+
pt: Atributos
|
|
124
|
+
slug: /catalog/attributes
|
|
125
|
+
order: 77
|
|
160
126
|
relations:
|
|
161
127
|
role:
|
|
162
128
|
- where:
|
|
@@ -167,13 +133,13 @@
|
|
|
167
133
|
- menu_id:
|
|
168
134
|
where:
|
|
169
135
|
slug: /catalog
|
|
170
|
-
icon:
|
|
171
|
-
url: /catalog/
|
|
172
|
-
name:
|
|
173
|
-
en:
|
|
174
|
-
pt:
|
|
175
|
-
slug: /catalog/
|
|
176
|
-
order:
|
|
136
|
+
icon: list-filter
|
|
137
|
+
url: /catalog/attribute-options
|
|
138
|
+
name:
|
|
139
|
+
en: Attribute Options
|
|
140
|
+
pt: Opcoes de atributos
|
|
141
|
+
slug: /catalog/attribute-options
|
|
142
|
+
order: 78
|
|
177
143
|
relations:
|
|
178
144
|
role:
|
|
179
145
|
- where:
|
|
@@ -184,13 +150,13 @@
|
|
|
184
150
|
- menu_id:
|
|
185
151
|
where:
|
|
186
152
|
slug: /catalog
|
|
187
|
-
icon:
|
|
188
|
-
url: /catalog/
|
|
189
|
-
name:
|
|
190
|
-
en:
|
|
191
|
-
pt:
|
|
192
|
-
slug: /catalog/
|
|
193
|
-
order:
|
|
153
|
+
icon: badge-percent
|
|
154
|
+
url: /catalog/category-attributes
|
|
155
|
+
name:
|
|
156
|
+
en: Category Attributes
|
|
157
|
+
pt: Atributos por categoria
|
|
158
|
+
slug: /catalog/category-attributes
|
|
159
|
+
order: 79
|
|
194
160
|
relations:
|
|
195
161
|
role:
|
|
196
162
|
- where:
|
|
@@ -201,13 +167,13 @@
|
|
|
201
167
|
- menu_id:
|
|
202
168
|
where:
|
|
203
169
|
slug: /catalog
|
|
204
|
-
icon:
|
|
205
|
-
url: /catalog/
|
|
206
|
-
name:
|
|
207
|
-
en:
|
|
208
|
-
pt:
|
|
209
|
-
slug: /catalog/
|
|
210
|
-
order:
|
|
170
|
+
icon: scale
|
|
171
|
+
url: /catalog/comparisons
|
|
172
|
+
name:
|
|
173
|
+
en: Comparisons
|
|
174
|
+
pt: Comparacoes
|
|
175
|
+
slug: /catalog/comparisons
|
|
176
|
+
order: 80
|
|
211
177
|
relations:
|
|
212
178
|
role:
|
|
213
179
|
- where:
|
|
@@ -218,13 +184,13 @@
|
|
|
218
184
|
- menu_id:
|
|
219
185
|
where:
|
|
220
186
|
slug: /catalog
|
|
221
|
-
icon:
|
|
222
|
-
url: /catalog/
|
|
223
|
-
name:
|
|
224
|
-
en:
|
|
225
|
-
pt:
|
|
226
|
-
slug: /catalog/
|
|
227
|
-
order:
|
|
187
|
+
icon: shopping-cart
|
|
188
|
+
url: /catalog/offers
|
|
189
|
+
name:
|
|
190
|
+
en: Offers
|
|
191
|
+
pt: Ofertas
|
|
192
|
+
slug: /catalog/offers
|
|
193
|
+
order: 81
|
|
228
194
|
relations:
|
|
229
195
|
role:
|
|
230
196
|
- where:
|
|
@@ -235,13 +201,13 @@
|
|
|
235
201
|
- menu_id:
|
|
236
202
|
where:
|
|
237
203
|
slug: /catalog
|
|
238
|
-
icon:
|
|
239
|
-
url: /catalog/
|
|
240
|
-
name:
|
|
241
|
-
en:
|
|
242
|
-
pt:
|
|
243
|
-
slug: /catalog/
|
|
244
|
-
order:
|
|
204
|
+
icon: store
|
|
205
|
+
url: /catalog/merchants
|
|
206
|
+
name:
|
|
207
|
+
en: Merchants
|
|
208
|
+
pt: Lojistas
|
|
209
|
+
slug: /catalog/merchants
|
|
210
|
+
order: 82
|
|
245
211
|
relations:
|
|
246
212
|
role:
|
|
247
213
|
- where:
|
|
@@ -252,16 +218,50 @@
|
|
|
252
218
|
- menu_id:
|
|
253
219
|
where:
|
|
254
220
|
slug: /catalog
|
|
255
|
-
icon:
|
|
256
|
-
url: /catalog/
|
|
257
|
-
name:
|
|
258
|
-
en:
|
|
259
|
-
pt:
|
|
260
|
-
slug: /catalog/
|
|
261
|
-
order:
|
|
262
|
-
relations:
|
|
263
|
-
role:
|
|
264
|
-
- where:
|
|
265
|
-
slug: admin
|
|
221
|
+
icon: building-2
|
|
222
|
+
url: /catalog/affiliate-programs
|
|
223
|
+
name:
|
|
224
|
+
en: Affiliate Programs
|
|
225
|
+
pt: Programas de afiliacao
|
|
226
|
+
slug: /catalog/affiliate-programs
|
|
227
|
+
order: 83
|
|
228
|
+
relations:
|
|
229
|
+
role:
|
|
230
|
+
- where:
|
|
231
|
+
slug: admin
|
|
232
|
+
- where:
|
|
233
|
+
slug: admin-catalog
|
|
234
|
+
|
|
235
|
+
- menu_id:
|
|
236
|
+
where:
|
|
237
|
+
slug: /catalog
|
|
238
|
+
icon: search-code
|
|
239
|
+
url: /catalog/seo-rules
|
|
240
|
+
name:
|
|
241
|
+
en: SEO Rules
|
|
242
|
+
pt: Regras de SEO
|
|
243
|
+
slug: /catalog/seo-rules
|
|
244
|
+
order: 84
|
|
245
|
+
relations:
|
|
246
|
+
role:
|
|
247
|
+
- where:
|
|
248
|
+
slug: admin
|
|
249
|
+
- where:
|
|
250
|
+
slug: admin-catalog
|
|
251
|
+
|
|
252
|
+
- menu_id:
|
|
253
|
+
where:
|
|
254
|
+
slug: /catalog
|
|
255
|
+
icon: package-plus
|
|
256
|
+
url: /catalog/import-sources
|
|
257
|
+
name:
|
|
258
|
+
en: Import Sources
|
|
259
|
+
pt: Fontes de importacao
|
|
260
|
+
slug: /catalog/import-sources
|
|
261
|
+
order: 85
|
|
262
|
+
relations:
|
|
263
|
+
role:
|
|
264
|
+
- where:
|
|
265
|
+
slug: admin
|
|
266
266
|
- where:
|
|
267
267
|
slug: admin-catalog
|
package/hedhog/data/role.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
- slug: admin-catalog
|
|
2
|
-
name:
|
|
3
|
-
en: Catalog Administrator
|
|
4
|
-
pt: Administrador de Catálogo
|
|
5
|
-
description:
|
|
6
|
-
en: Administrator with access to catalog, comparisons, offers and SEO rules.
|
|
7
|
-
pt: Administrador com acesso ao catálogo, comparações, ofertas e regras de SEO.
|
|
1
|
+
- slug: admin-catalog
|
|
2
|
+
name:
|
|
3
|
+
en: Catalog Administrator
|
|
4
|
+
pt: Administrador de Catálogo
|
|
5
|
+
description:
|
|
6
|
+
en: Administrator with access to catalog, comparisons, offers and SEO rules.
|
|
7
|
+
pt: Administrador com acesso ao catálogo, comparações, ofertas e regras de SEO.
|
package/hedhog/data/route.yaml
CHANGED
|
@@ -46,75 +46,75 @@
|
|
|
46
46
|
slug: admin
|
|
47
47
|
- where:
|
|
48
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
|
|
57
|
-
- url: /catalog/categories/tree
|
|
58
|
-
method: GET
|
|
59
|
-
relations:
|
|
60
|
-
role:
|
|
61
|
-
- where:
|
|
62
|
-
slug: admin
|
|
63
|
-
- where:
|
|
64
|
-
slug: admin-catalog
|
|
65
|
-
- url: /catalog/categories/:id/attributes
|
|
66
|
-
method: GET
|
|
67
|
-
relations:
|
|
68
|
-
role:
|
|
69
|
-
- where:
|
|
70
|
-
slug: admin
|
|
71
|
-
- where:
|
|
72
|
-
slug: admin-catalog
|
|
73
|
-
- url: /catalog/products/:id/attributes
|
|
74
|
-
method: GET
|
|
75
|
-
relations:
|
|
76
|
-
role:
|
|
77
|
-
- where:
|
|
78
|
-
slug: admin
|
|
79
|
-
- where:
|
|
80
|
-
slug: admin-catalog
|
|
81
|
-
- url: /catalog/products/:id/structured
|
|
82
|
-
method: GET
|
|
83
|
-
relations:
|
|
84
|
-
role:
|
|
85
|
-
- where:
|
|
86
|
-
slug: admin
|
|
87
|
-
- where:
|
|
88
|
-
slug: admin-catalog
|
|
89
|
-
- url: /catalog/products/:id/comparison-payload
|
|
90
|
-
method: GET
|
|
91
|
-
relations:
|
|
92
|
-
role:
|
|
93
|
-
- where:
|
|
94
|
-
slug: admin
|
|
95
|
-
- where:
|
|
96
|
-
slug: admin-catalog
|
|
97
|
-
- url: /catalog/forms/:resource/ai-assist
|
|
98
|
-
method: POST
|
|
99
|
-
relations:
|
|
100
|
-
role:
|
|
101
|
-
- where:
|
|
102
|
-
slug: admin
|
|
103
|
-
- where:
|
|
104
|
-
slug: admin-catalog
|
|
105
|
-
- url: /catalog/products/:id/attributes
|
|
106
|
-
method: PUT
|
|
107
|
-
relations:
|
|
108
|
-
role:
|
|
109
|
-
- where:
|
|
110
|
-
slug: admin
|
|
111
|
-
- where:
|
|
112
|
-
slug: admin-catalog
|
|
113
|
-
- url: /catalog/products/:id/materialize-snapshots
|
|
114
|
-
method: POST
|
|
115
|
-
relations:
|
|
116
|
-
role:
|
|
117
|
-
- where:
|
|
118
|
-
slug: admin
|
|
119
|
-
- where:
|
|
120
|
-
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
|
|
57
|
+
- url: /catalog/categories/tree
|
|
58
|
+
method: GET
|
|
59
|
+
relations:
|
|
60
|
+
role:
|
|
61
|
+
- where:
|
|
62
|
+
slug: admin
|
|
63
|
+
- where:
|
|
64
|
+
slug: admin-catalog
|
|
65
|
+
- url: /catalog/categories/:id/attributes
|
|
66
|
+
method: GET
|
|
67
|
+
relations:
|
|
68
|
+
role:
|
|
69
|
+
- where:
|
|
70
|
+
slug: admin
|
|
71
|
+
- where:
|
|
72
|
+
slug: admin-catalog
|
|
73
|
+
- url: /catalog/products/:id/attributes
|
|
74
|
+
method: GET
|
|
75
|
+
relations:
|
|
76
|
+
role:
|
|
77
|
+
- where:
|
|
78
|
+
slug: admin
|
|
79
|
+
- where:
|
|
80
|
+
slug: admin-catalog
|
|
81
|
+
- url: /catalog/products/:id/structured
|
|
82
|
+
method: GET
|
|
83
|
+
relations:
|
|
84
|
+
role:
|
|
85
|
+
- where:
|
|
86
|
+
slug: admin
|
|
87
|
+
- where:
|
|
88
|
+
slug: admin-catalog
|
|
89
|
+
- url: /catalog/products/:id/comparison-payload
|
|
90
|
+
method: GET
|
|
91
|
+
relations:
|
|
92
|
+
role:
|
|
93
|
+
- where:
|
|
94
|
+
slug: admin
|
|
95
|
+
- where:
|
|
96
|
+
slug: admin-catalog
|
|
97
|
+
- url: /catalog/forms/:resource/ai-assist
|
|
98
|
+
method: POST
|
|
99
|
+
relations:
|
|
100
|
+
role:
|
|
101
|
+
- where:
|
|
102
|
+
slug: admin
|
|
103
|
+
- where:
|
|
104
|
+
slug: admin-catalog
|
|
105
|
+
- url: /catalog/products/:id/attributes
|
|
106
|
+
method: PUT
|
|
107
|
+
relations:
|
|
108
|
+
role:
|
|
109
|
+
- where:
|
|
110
|
+
slug: admin
|
|
111
|
+
- where:
|
|
112
|
+
slug: admin-catalog
|
|
113
|
+
- url: /catalog/products/:id/materialize-snapshots
|
|
114
|
+
method: POST
|
|
115
|
+
relations:
|
|
116
|
+
role:
|
|
117
|
+
- where:
|
|
118
|
+
slug: admin
|
|
119
|
+
- where:
|
|
120
|
+
slug: admin-catalog
|