@hed-hog/catalog 0.0.291 → 0.0.293
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/hedhog/data/menu.yaml +233 -233
- package/hedhog/data/role.yaml +7 -7
- package/hedhog/data/route.yaml +56 -56
- package/hedhog/table/catalog_affiliate_program.yaml +41 -41
- package/hedhog/table/catalog_attribute.yaml +53 -53
- package/hedhog/table/catalog_attribute_group.yaml +18 -18
- package/hedhog/table/catalog_brand.yaml +34 -34
- package/hedhog/table/catalog_category_attribute.yaml +36 -36
- package/hedhog/table/catalog_click_event.yaml +50 -50
- package/hedhog/table/catalog_comparison.yaml +65 -65
- 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 +76 -76
- package/hedhog/table/catalog_product_attribute_value.yaml +60 -60
- package/hedhog/table/catalog_product_category.yaml +26 -26
- 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 +37 -37
- package/hedhog/table/catalog_seo_page_rule.yaml +51 -51
- package/hedhog/table/catalog_similarity_rule.yaml +28 -28
- package/hedhog/table/catalog_site.yaml +40 -40
- package/hedhog/table/catalog_site_category.yaml +26 -26
- package/package.json +6 -6
- package/src/catalog.controller.ts +82 -82
- package/src/catalog.module.ts +12 -12
- 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
|
@@ -1,233 +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
|
|
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
|
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
|
@@ -1,56 +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
|
|
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
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: merchant_id
|
|
4
|
-
type: fk
|
|
5
|
-
isNullable: true
|
|
6
|
-
references:
|
|
7
|
-
table: catalog_merchant
|
|
8
|
-
column: id
|
|
9
|
-
onDelete: SET NULL
|
|
10
|
-
- name: slug
|
|
11
|
-
type: varchar
|
|
12
|
-
length: 255
|
|
13
|
-
- name: name
|
|
14
|
-
type: varchar
|
|
15
|
-
length: 255
|
|
16
|
-
- name: network_type
|
|
17
|
-
type: enum
|
|
18
|
-
values: [amazon, mercado_livre, aliexpress, kabum, direct, network]
|
|
19
|
-
default: direct
|
|
20
|
-
- name: tracking_template
|
|
21
|
-
type: text
|
|
22
|
-
isNullable: true
|
|
23
|
-
- name: commission_type
|
|
24
|
-
type: enum
|
|
25
|
-
values: [percentage, fixed]
|
|
26
|
-
default: percentage
|
|
27
|
-
- name: default_commission_value
|
|
28
|
-
type: decimal
|
|
29
|
-
precision: 8
|
|
30
|
-
scale: 2
|
|
31
|
-
default: 0
|
|
32
|
-
- name: status
|
|
33
|
-
type: enum
|
|
34
|
-
values: [active, inactive]
|
|
35
|
-
default: active
|
|
36
|
-
- type: created_at
|
|
37
|
-
- type: updated_at
|
|
38
|
-
indices:
|
|
39
|
-
- columns: [slug]
|
|
40
|
-
isUnique: true
|
|
41
|
-
- columns: [merchant_id, status]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: merchant_id
|
|
4
|
+
type: fk
|
|
5
|
+
isNullable: true
|
|
6
|
+
references:
|
|
7
|
+
table: catalog_merchant
|
|
8
|
+
column: id
|
|
9
|
+
onDelete: SET NULL
|
|
10
|
+
- name: slug
|
|
11
|
+
type: varchar
|
|
12
|
+
length: 255
|
|
13
|
+
- name: name
|
|
14
|
+
type: varchar
|
|
15
|
+
length: 255
|
|
16
|
+
- name: network_type
|
|
17
|
+
type: enum
|
|
18
|
+
values: [amazon, mercado_livre, aliexpress, kabum, direct, network]
|
|
19
|
+
default: direct
|
|
20
|
+
- name: tracking_template
|
|
21
|
+
type: text
|
|
22
|
+
isNullable: true
|
|
23
|
+
- name: commission_type
|
|
24
|
+
type: enum
|
|
25
|
+
values: [percentage, fixed]
|
|
26
|
+
default: percentage
|
|
27
|
+
- name: default_commission_value
|
|
28
|
+
type: decimal
|
|
29
|
+
precision: 8
|
|
30
|
+
scale: 2
|
|
31
|
+
default: 0
|
|
32
|
+
- name: status
|
|
33
|
+
type: enum
|
|
34
|
+
values: [active, inactive]
|
|
35
|
+
default: active
|
|
36
|
+
- type: created_at
|
|
37
|
+
- type: updated_at
|
|
38
|
+
indices:
|
|
39
|
+
- columns: [slug]
|
|
40
|
+
isUnique: true
|
|
41
|
+
- columns: [merchant_id, status]
|