@infrab4a/connect 4.23.1-beta.3 → 4.23.1-beta.5
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/index.cjs.js +115 -111
- package/index.esm.js +115 -111
- package/package.json +1 -1
- package/src/domain/catalog/models/category-base.d.ts +0 -2
- package/src/domain/catalog/models/category.d.ts +2 -0
- package/src/domain/catalog/models/filter.d.ts +2 -2
- package/src/domain/catalog/models/product-errors.d.ts +4 -2
- package/src/domain/shop-settings/models/home.d.ts +2 -1
- package/src/domain/shop-settings/models/types/index.d.ts +1 -0
- package/src/domain/shop-settings/models/types/shop-sameday-not-available.d.ts +6 -0
- package/src/domain/shopping/models/coupons/coupon.d.ts +1 -1
- package/src/domain/shopping/models/shipping-method.d.ts +13 -9
- package/src/domain/shopping/types/checkout-paylod-request.type.d.ts +15 -0
- package/src/domain/shopping/types/checkout-response.type.d.ts +7 -0
- package/src/domain/shopping/types/checkout-stock-validation.type.d.ts +5 -0
- package/src/domain/shopping/types/index.d.ts +5 -0
- package/src/domain/shopping/types/shipping-method-response.type.d.ts +13 -0
- package/src/domain/shopping/types/shipping-product-request.type.d.ts +9 -0
- package/src/domain/users/models/subscription/subscription-materialization.d.ts +2 -1
- package/src/domain/users/models/user-address.d.ts +1 -0
- package/src/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +3 -4
- package/src/infra/hasura-graphql/repositories/catalog/product-errors-hasura-graphql.repository.d.ts +5 -4
package/index.cjs.js
CHANGED
|
@@ -158,16 +158,6 @@ exports.WishlistLogType = void 0;
|
|
|
158
158
|
WishlistLogType["REMOVE_PRODUCT"] = "remove_product";
|
|
159
159
|
})(exports.WishlistLogType || (exports.WishlistLogType = {}));
|
|
160
160
|
|
|
161
|
-
class Filter extends BaseModel {
|
|
162
|
-
static get identifiersFields() {
|
|
163
|
-
return ['id'];
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
tslib.__decorate([
|
|
167
|
-
classTransformer.Type(() => Category),
|
|
168
|
-
tslib.__metadata("design:type", Array)
|
|
169
|
-
], Filter.prototype, "categories", void 0);
|
|
170
|
-
|
|
171
161
|
class CategoryBase extends BaseModel {
|
|
172
162
|
static get identifiersFields() {
|
|
173
163
|
return ['id'];
|
|
@@ -204,10 +194,16 @@ tslib.__decorate([
|
|
|
204
194
|
classTransformer.Type(() => CategoryBase),
|
|
205
195
|
tslib.__metadata("design:type", CategoryBase)
|
|
206
196
|
], CategoryBase.prototype, "parent", void 0);
|
|
197
|
+
|
|
198
|
+
class Filter extends BaseModel {
|
|
199
|
+
static get identifiersFields() {
|
|
200
|
+
return ['id'];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
207
203
|
tslib.__decorate([
|
|
208
|
-
classTransformer.Type(() =>
|
|
204
|
+
classTransformer.Type(() => CategoryBase),
|
|
209
205
|
tslib.__metadata("design:type", Array)
|
|
210
|
-
],
|
|
206
|
+
], Filter.prototype, "categories", void 0);
|
|
211
207
|
|
|
212
208
|
class CategoryForProduct extends CategoryBase {
|
|
213
209
|
static get identifiersFields() {
|
|
@@ -282,6 +278,10 @@ tslib.__decorate([
|
|
|
282
278
|
classTransformer.Type(() => ProductForCategory),
|
|
283
279
|
tslib.__metadata("design:type", Array)
|
|
284
280
|
], Category.prototype, "childrenProducts", void 0);
|
|
281
|
+
tslib.__decorate([
|
|
282
|
+
classTransformer.Type(() => Filter),
|
|
283
|
+
tslib.__metadata("design:type", Array)
|
|
284
|
+
], Category.prototype, "filters", void 0);
|
|
285
285
|
|
|
286
286
|
class CategoryCollectionChildren extends BaseModel {
|
|
287
287
|
static get identifiersFields() {
|
|
@@ -333,14 +333,23 @@ tslib.__decorate([
|
|
|
333
333
|
tslib.__metadata("design:type", Array)
|
|
334
334
|
], Product.prototype, "kitProducts", void 0);
|
|
335
335
|
|
|
336
|
+
class Variant extends BaseModel {
|
|
337
|
+
static get identifiersFields() {
|
|
338
|
+
return ['id', 'productId'];
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
336
342
|
class ProductErrors extends BaseModel {
|
|
337
343
|
static get identifiersFields() {
|
|
338
344
|
return ['productId', 'source', 'error'];
|
|
339
345
|
}
|
|
346
|
+
getProductId() {
|
|
347
|
+
return this.product instanceof Product ? this.product.id.toString() : this.product.productId.toString();
|
|
348
|
+
}
|
|
340
349
|
}
|
|
341
350
|
tslib.__decorate([
|
|
342
|
-
classTransformer.Type(() => Product),
|
|
343
|
-
tslib.__metadata("design:type",
|
|
351
|
+
classTransformer.Type((type) => (+type.object.product.productId ? Variant : Product)),
|
|
352
|
+
tslib.__metadata("design:type", Object)
|
|
344
353
|
], ProductErrors.prototype, "product", void 0);
|
|
345
354
|
|
|
346
355
|
class ProductReviews extends BaseModel {
|
|
@@ -355,12 +364,6 @@ class ProductStockNotification extends BaseModel {
|
|
|
355
364
|
}
|
|
356
365
|
}
|
|
357
366
|
|
|
358
|
-
class Variant extends BaseModel {
|
|
359
|
-
static get identifiersFields() {
|
|
360
|
-
return ['id', 'productId'];
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
367
|
class Wishlist extends Category {
|
|
365
368
|
static get identifiersFields() {
|
|
366
369
|
return ['id'];
|
|
@@ -1885,6 +1888,86 @@ tslib.__decorate([
|
|
|
1885
1888
|
tslib.__metadata("design:type", Array)
|
|
1886
1889
|
], Subscription.prototype, "payment", void 0);
|
|
1887
1890
|
|
|
1891
|
+
exports.CouponCategory = void 0;
|
|
1892
|
+
(function (CouponCategory) {
|
|
1893
|
+
CouponCategory["Reembolso"] = "Reembolso";
|
|
1894
|
+
CouponCategory["Desculpas"] = "Desculpas";
|
|
1895
|
+
CouponCategory["BFlu"] = "BFlu";
|
|
1896
|
+
CouponCategory["ROYAL"] = "Royal";
|
|
1897
|
+
CouponCategory["Glamqueens"] = "Glamqueens";
|
|
1898
|
+
CouponCategory["Glampartner"] = "Glampartner";
|
|
1899
|
+
CouponCategory["Glamgirls"] = "Glamgirls";
|
|
1900
|
+
CouponCategory["Glamdiva"] = "Glamdiva";
|
|
1901
|
+
CouponCategory["Impulsionamento"] = "Impulsionamento";
|
|
1902
|
+
CouponCategory["PaidMedia"] = "Paid Media";
|
|
1903
|
+
CouponCategory["Organic"] = "Organic";
|
|
1904
|
+
CouponCategory["Direct"] = "Direct";
|
|
1905
|
+
CouponCategory["CRM"] = "CRM";
|
|
1906
|
+
CouponCategory["LOJAUNICO"] = "Loja \u00FAnico";
|
|
1907
|
+
CouponCategory["Outros"] = "Outros";
|
|
1908
|
+
})(exports.CouponCategory || (exports.CouponCategory = {}));
|
|
1909
|
+
exports.CouponOldCategories = void 0;
|
|
1910
|
+
(function (CouponOldCategories) {
|
|
1911
|
+
CouponOldCategories["Reembolso"] = "Reembolso";
|
|
1912
|
+
CouponOldCategories["Desculpas"] = "Desculpas";
|
|
1913
|
+
CouponOldCategories["BFlu"] = "BFlu";
|
|
1914
|
+
CouponOldCategories["ROYAL"] = "Royal";
|
|
1915
|
+
CouponOldCategories["Glamqueens"] = "Glamqueens";
|
|
1916
|
+
CouponOldCategories["Glampartner"] = "Glampartner";
|
|
1917
|
+
CouponOldCategories["Glamgirls"] = "Glamgirls";
|
|
1918
|
+
CouponOldCategories["Glamdiva"] = "Glamdiva";
|
|
1919
|
+
CouponOldCategories["Impulsionamento"] = "Impulsionamento";
|
|
1920
|
+
CouponOldCategories["PaidMedia"] = "Paid Media";
|
|
1921
|
+
CouponOldCategories["Organic"] = "Organic";
|
|
1922
|
+
CouponOldCategories["Direct"] = "Direct";
|
|
1923
|
+
CouponOldCategories["CRM"] = "CRM";
|
|
1924
|
+
CouponOldCategories["LOJAUNICO"] = "Loja \u00FAnico";
|
|
1925
|
+
CouponOldCategories["Outros"] = "Outros";
|
|
1926
|
+
})(exports.CouponOldCategories || (exports.CouponOldCategories = {}));
|
|
1927
|
+
exports.CouponCategories = void 0;
|
|
1928
|
+
(function (CouponCategories) {
|
|
1929
|
+
CouponCategories["API_001"] = "API-001";
|
|
1930
|
+
CouponCategories["COMPRE_E_GANHE"] = "COMPRE E GANHE";
|
|
1931
|
+
CouponCategories["DESCONTO"] = "DESCONTO";
|
|
1932
|
+
CouponCategories["REEMBOLSO"] = "REEMBOLSO";
|
|
1933
|
+
CouponCategories["DESCULPAS"] = "DESCULPAS";
|
|
1934
|
+
})(exports.CouponCategories || (exports.CouponCategories = {}));
|
|
1935
|
+
|
|
1936
|
+
exports.CouponChannels = void 0;
|
|
1937
|
+
(function (CouponChannels) {
|
|
1938
|
+
CouponChannels["BANNER"] = "7";
|
|
1939
|
+
CouponChannels["BFLUENCE"] = "3";
|
|
1940
|
+
CouponChannels["CRM"] = "2";
|
|
1941
|
+
CouponChannels["GLAMGIRL"] = "0";
|
|
1942
|
+
CouponChannels["PAID"] = "4";
|
|
1943
|
+
CouponChannels["ROYAL"] = "1";
|
|
1944
|
+
CouponChannels["SAC"] = "8";
|
|
1945
|
+
CouponChannels["SOCIAL"] = "5";
|
|
1946
|
+
})(exports.CouponChannels || (exports.CouponChannels = {}));
|
|
1947
|
+
|
|
1948
|
+
exports.CouponSubtypes = void 0;
|
|
1949
|
+
(function (CouponSubtypes) {
|
|
1950
|
+
CouponSubtypes[CouponSubtypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
1951
|
+
CouponSubtypes[CouponSubtypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
1952
|
+
})(exports.CouponSubtypes || (exports.CouponSubtypes = {}));
|
|
1953
|
+
|
|
1954
|
+
exports.CouponTypes = void 0;
|
|
1955
|
+
(function (CouponTypes) {
|
|
1956
|
+
CouponTypes[CouponTypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
1957
|
+
CouponTypes[CouponTypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
1958
|
+
CouponTypes[CouponTypes["SHIPPING"] = 3] = "SHIPPING";
|
|
1959
|
+
})(exports.CouponTypes || (exports.CouponTypes = {}));
|
|
1960
|
+
|
|
1961
|
+
exports.Exclusivities = void 0;
|
|
1962
|
+
(function (Exclusivities) {
|
|
1963
|
+
Exclusivities[Exclusivities["ALL_USERS"] = 1] = "ALL_USERS";
|
|
1964
|
+
Exclusivities[Exclusivities["SPECIFIC_USER"] = 2] = "SPECIFIC_USER";
|
|
1965
|
+
Exclusivities[Exclusivities["COLLABORATORS"] = 3] = "COLLABORATORS";
|
|
1966
|
+
Exclusivities[Exclusivities["ACTIVE_SUBSCRIBER"] = 4] = "ACTIVE_SUBSCRIBER";
|
|
1967
|
+
Exclusivities[Exclusivities["INACTIVE_SUBSCRIBER"] = 5] = "INACTIVE_SUBSCRIBER";
|
|
1968
|
+
Exclusivities[Exclusivities["NON_SUBSCRIBER"] = 6] = "NON_SUBSCRIBER";
|
|
1969
|
+
})(exports.Exclusivities || (exports.Exclusivities = {}));
|
|
1970
|
+
|
|
1888
1971
|
class SubscriptionMaterialization extends BaseModel {
|
|
1889
1972
|
static get identifiersFields() {
|
|
1890
1973
|
return ['id'];
|
|
@@ -2084,86 +2167,6 @@ tslib.__decorate([
|
|
|
2084
2167
|
tslib.__metadata("design:type", Coupon)
|
|
2085
2168
|
], Checkout.prototype, "coupon", void 0);
|
|
2086
2169
|
|
|
2087
|
-
exports.CouponCategory = void 0;
|
|
2088
|
-
(function (CouponCategory) {
|
|
2089
|
-
CouponCategory["Reembolso"] = "Reembolso";
|
|
2090
|
-
CouponCategory["Desculpas"] = "Desculpas";
|
|
2091
|
-
CouponCategory["BFlu"] = "BFlu";
|
|
2092
|
-
CouponCategory["ROYAL"] = "Royal";
|
|
2093
|
-
CouponCategory["Glamqueens"] = "Glamqueens";
|
|
2094
|
-
CouponCategory["Glampartner"] = "Glampartner";
|
|
2095
|
-
CouponCategory["Glamgirls"] = "Glamgirls";
|
|
2096
|
-
CouponCategory["Glamdiva"] = "Glamdiva";
|
|
2097
|
-
CouponCategory["Impulsionamento"] = "Impulsionamento";
|
|
2098
|
-
CouponCategory["PaidMedia"] = "Paid Media";
|
|
2099
|
-
CouponCategory["Organic"] = "Organic";
|
|
2100
|
-
CouponCategory["Direct"] = "Direct";
|
|
2101
|
-
CouponCategory["CRM"] = "CRM";
|
|
2102
|
-
CouponCategory["LOJAUNICO"] = "Loja \u00FAnico";
|
|
2103
|
-
CouponCategory["Outros"] = "Outros";
|
|
2104
|
-
})(exports.CouponCategory || (exports.CouponCategory = {}));
|
|
2105
|
-
exports.CouponOldCategories = void 0;
|
|
2106
|
-
(function (CouponOldCategories) {
|
|
2107
|
-
CouponOldCategories["Reembolso"] = "Reembolso";
|
|
2108
|
-
CouponOldCategories["Desculpas"] = "Desculpas";
|
|
2109
|
-
CouponOldCategories["BFlu"] = "BFlu";
|
|
2110
|
-
CouponOldCategories["ROYAL"] = "Royal";
|
|
2111
|
-
CouponOldCategories["Glamqueens"] = "Glamqueens";
|
|
2112
|
-
CouponOldCategories["Glampartner"] = "Glampartner";
|
|
2113
|
-
CouponOldCategories["Glamgirls"] = "Glamgirls";
|
|
2114
|
-
CouponOldCategories["Glamdiva"] = "Glamdiva";
|
|
2115
|
-
CouponOldCategories["Impulsionamento"] = "Impulsionamento";
|
|
2116
|
-
CouponOldCategories["PaidMedia"] = "Paid Media";
|
|
2117
|
-
CouponOldCategories["Organic"] = "Organic";
|
|
2118
|
-
CouponOldCategories["Direct"] = "Direct";
|
|
2119
|
-
CouponOldCategories["CRM"] = "CRM";
|
|
2120
|
-
CouponOldCategories["LOJAUNICO"] = "Loja \u00FAnico";
|
|
2121
|
-
CouponOldCategories["Outros"] = "Outros";
|
|
2122
|
-
})(exports.CouponOldCategories || (exports.CouponOldCategories = {}));
|
|
2123
|
-
exports.CouponCategories = void 0;
|
|
2124
|
-
(function (CouponCategories) {
|
|
2125
|
-
CouponCategories["API_001"] = "API-001";
|
|
2126
|
-
CouponCategories["COMPRE_E_GANHE"] = "COMPRE E GANHE";
|
|
2127
|
-
CouponCategories["DESCONTO"] = "DESCONTO";
|
|
2128
|
-
CouponCategories["REEMBOLSO"] = "REEMBOLSO";
|
|
2129
|
-
CouponCategories["DESCULPAS"] = "DESCULPAS";
|
|
2130
|
-
})(exports.CouponCategories || (exports.CouponCategories = {}));
|
|
2131
|
-
|
|
2132
|
-
exports.CouponChannels = void 0;
|
|
2133
|
-
(function (CouponChannels) {
|
|
2134
|
-
CouponChannels["BANNER"] = "7";
|
|
2135
|
-
CouponChannels["BFLUENCE"] = "3";
|
|
2136
|
-
CouponChannels["CRM"] = "2";
|
|
2137
|
-
CouponChannels["GLAMGIRL"] = "0";
|
|
2138
|
-
CouponChannels["PAID"] = "4";
|
|
2139
|
-
CouponChannels["ROYAL"] = "1";
|
|
2140
|
-
CouponChannels["SAC"] = "8";
|
|
2141
|
-
CouponChannels["SOCIAL"] = "5";
|
|
2142
|
-
})(exports.CouponChannels || (exports.CouponChannels = {}));
|
|
2143
|
-
|
|
2144
|
-
exports.CouponSubtypes = void 0;
|
|
2145
|
-
(function (CouponSubtypes) {
|
|
2146
|
-
CouponSubtypes[CouponSubtypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
2147
|
-
CouponSubtypes[CouponSubtypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
2148
|
-
})(exports.CouponSubtypes || (exports.CouponSubtypes = {}));
|
|
2149
|
-
|
|
2150
|
-
exports.CouponTypes = void 0;
|
|
2151
|
-
(function (CouponTypes) {
|
|
2152
|
-
CouponTypes[CouponTypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
2153
|
-
CouponTypes[CouponTypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
2154
|
-
CouponTypes[CouponTypes["SHIPPING"] = 3] = "SHIPPING";
|
|
2155
|
-
})(exports.CouponTypes || (exports.CouponTypes = {}));
|
|
2156
|
-
|
|
2157
|
-
exports.Exclusivities = void 0;
|
|
2158
|
-
(function (Exclusivities) {
|
|
2159
|
-
Exclusivities[Exclusivities["ALL_USERS"] = 1] = "ALL_USERS";
|
|
2160
|
-
Exclusivities[Exclusivities["SPECIFIC_USER"] = 2] = "SPECIFIC_USER";
|
|
2161
|
-
Exclusivities[Exclusivities["COLLABORATORS"] = 3] = "COLLABORATORS";
|
|
2162
|
-
Exclusivities[Exclusivities["ACTIVE_SUBSCRIBER"] = 4] = "ACTIVE_SUBSCRIBER";
|
|
2163
|
-
Exclusivities[Exclusivities["INACTIVE_SUBSCRIBER"] = 5] = "INACTIVE_SUBSCRIBER";
|
|
2164
|
-
Exclusivities[Exclusivities["NON_SUBSCRIBER"] = 6] = "NON_SUBSCRIBER";
|
|
2165
|
-
})(exports.Exclusivities || (exports.Exclusivities = {}));
|
|
2166
|
-
|
|
2167
2170
|
exports.CheckoutTypes = void 0;
|
|
2168
2171
|
(function (CheckoutTypes) {
|
|
2169
2172
|
CheckoutTypes[CheckoutTypes["ECOMMERCE"] = 1] = "ECOMMERCE";
|
|
@@ -5025,24 +5028,24 @@ const withCrudHasuraGraphQL = (MixinBase) => {
|
|
|
5025
5028
|
class CategoryHasuraGraphQL extends Category {
|
|
5026
5029
|
}
|
|
5027
5030
|
|
|
5028
|
-
class ProductHasuraGraphQL extends Product {
|
|
5029
|
-
}
|
|
5030
|
-
tslib.__decorate([
|
|
5031
|
-
classTransformer.Type(() => KitProductHasuraGraphQL),
|
|
5032
|
-
tslib.__metadata("design:type", Array)
|
|
5033
|
-
], ProductHasuraGraphQL.prototype, "kitProducts", void 0);
|
|
5034
|
-
|
|
5035
5031
|
class KitProductHasuraGraphQL extends KitProduct {
|
|
5036
5032
|
}
|
|
5037
5033
|
tslib.__decorate([
|
|
5038
|
-
classTransformer.Type(() =>
|
|
5039
|
-
tslib.__metadata("design:type",
|
|
5034
|
+
classTransformer.Type(() => Product),
|
|
5035
|
+
tslib.__metadata("design:type", Product)
|
|
5040
5036
|
], KitProductHasuraGraphQL.prototype, "kit", void 0);
|
|
5041
5037
|
tslib.__decorate([
|
|
5042
|
-
classTransformer.Type(() =>
|
|
5043
|
-
tslib.__metadata("design:type",
|
|
5038
|
+
classTransformer.Type(() => Product),
|
|
5039
|
+
tslib.__metadata("design:type", Product)
|
|
5044
5040
|
], KitProductHasuraGraphQL.prototype, "product", void 0);
|
|
5045
5041
|
|
|
5042
|
+
class ProductHasuraGraphQL extends Product {
|
|
5043
|
+
}
|
|
5044
|
+
tslib.__decorate([
|
|
5045
|
+
classTransformer.Type(() => KitProductHasuraGraphQL),
|
|
5046
|
+
tslib.__metadata("design:type", Array)
|
|
5047
|
+
], ProductHasuraGraphQL.prototype, "kitProducts", void 0);
|
|
5048
|
+
|
|
5046
5049
|
class VariantHasuraGraphQL extends Variant {
|
|
5047
5050
|
constructor() {
|
|
5048
5051
|
super(...arguments);
|
|
@@ -5838,6 +5841,7 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5838
5841
|
foreignKeyColumn: { id: 'productId' },
|
|
5839
5842
|
fields: [
|
|
5840
5843
|
{ id: { columnName: 'id', from: (value) => value.toString() } },
|
|
5844
|
+
{ productId: { columnName: 'main_product_id' } },
|
|
5841
5845
|
'description',
|
|
5842
5846
|
'name',
|
|
5843
5847
|
'slug',
|
package/index.esm.js
CHANGED
|
@@ -152,16 +152,6 @@ var WishlistLogType;
|
|
|
152
152
|
WishlistLogType["REMOVE_PRODUCT"] = "remove_product";
|
|
153
153
|
})(WishlistLogType || (WishlistLogType = {}));
|
|
154
154
|
|
|
155
|
-
class Filter extends BaseModel {
|
|
156
|
-
static get identifiersFields() {
|
|
157
|
-
return ['id'];
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
__decorate([
|
|
161
|
-
Type(() => Category),
|
|
162
|
-
__metadata("design:type", Array)
|
|
163
|
-
], Filter.prototype, "categories", void 0);
|
|
164
|
-
|
|
165
155
|
class CategoryBase extends BaseModel {
|
|
166
156
|
static get identifiersFields() {
|
|
167
157
|
return ['id'];
|
|
@@ -198,10 +188,16 @@ __decorate([
|
|
|
198
188
|
Type(() => CategoryBase),
|
|
199
189
|
__metadata("design:type", CategoryBase)
|
|
200
190
|
], CategoryBase.prototype, "parent", void 0);
|
|
191
|
+
|
|
192
|
+
class Filter extends BaseModel {
|
|
193
|
+
static get identifiersFields() {
|
|
194
|
+
return ['id'];
|
|
195
|
+
}
|
|
196
|
+
}
|
|
201
197
|
__decorate([
|
|
202
|
-
Type(() =>
|
|
198
|
+
Type(() => CategoryBase),
|
|
203
199
|
__metadata("design:type", Array)
|
|
204
|
-
],
|
|
200
|
+
], Filter.prototype, "categories", void 0);
|
|
205
201
|
|
|
206
202
|
class CategoryForProduct extends CategoryBase {
|
|
207
203
|
static get identifiersFields() {
|
|
@@ -276,6 +272,10 @@ __decorate([
|
|
|
276
272
|
Type(() => ProductForCategory),
|
|
277
273
|
__metadata("design:type", Array)
|
|
278
274
|
], Category.prototype, "childrenProducts", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
Type(() => Filter),
|
|
277
|
+
__metadata("design:type", Array)
|
|
278
|
+
], Category.prototype, "filters", void 0);
|
|
279
279
|
|
|
280
280
|
class CategoryCollectionChildren extends BaseModel {
|
|
281
281
|
static get identifiersFields() {
|
|
@@ -327,14 +327,23 @@ __decorate([
|
|
|
327
327
|
__metadata("design:type", Array)
|
|
328
328
|
], Product.prototype, "kitProducts", void 0);
|
|
329
329
|
|
|
330
|
+
class Variant extends BaseModel {
|
|
331
|
+
static get identifiersFields() {
|
|
332
|
+
return ['id', 'productId'];
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
330
336
|
class ProductErrors extends BaseModel {
|
|
331
337
|
static get identifiersFields() {
|
|
332
338
|
return ['productId', 'source', 'error'];
|
|
333
339
|
}
|
|
340
|
+
getProductId() {
|
|
341
|
+
return this.product instanceof Product ? this.product.id.toString() : this.product.productId.toString();
|
|
342
|
+
}
|
|
334
343
|
}
|
|
335
344
|
__decorate([
|
|
336
|
-
Type(() => Product),
|
|
337
|
-
__metadata("design:type",
|
|
345
|
+
Type((type) => (+type.object.product.productId ? Variant : Product)),
|
|
346
|
+
__metadata("design:type", Object)
|
|
338
347
|
], ProductErrors.prototype, "product", void 0);
|
|
339
348
|
|
|
340
349
|
class ProductReviews extends BaseModel {
|
|
@@ -349,12 +358,6 @@ class ProductStockNotification extends BaseModel {
|
|
|
349
358
|
}
|
|
350
359
|
}
|
|
351
360
|
|
|
352
|
-
class Variant extends BaseModel {
|
|
353
|
-
static get identifiersFields() {
|
|
354
|
-
return ['id', 'productId'];
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
361
|
class Wishlist extends Category {
|
|
359
362
|
static get identifiersFields() {
|
|
360
363
|
return ['id'];
|
|
@@ -1879,6 +1882,86 @@ __decorate([
|
|
|
1879
1882
|
__metadata("design:type", Array)
|
|
1880
1883
|
], Subscription.prototype, "payment", void 0);
|
|
1881
1884
|
|
|
1885
|
+
var CouponCategory;
|
|
1886
|
+
(function (CouponCategory) {
|
|
1887
|
+
CouponCategory["Reembolso"] = "Reembolso";
|
|
1888
|
+
CouponCategory["Desculpas"] = "Desculpas";
|
|
1889
|
+
CouponCategory["BFlu"] = "BFlu";
|
|
1890
|
+
CouponCategory["ROYAL"] = "Royal";
|
|
1891
|
+
CouponCategory["Glamqueens"] = "Glamqueens";
|
|
1892
|
+
CouponCategory["Glampartner"] = "Glampartner";
|
|
1893
|
+
CouponCategory["Glamgirls"] = "Glamgirls";
|
|
1894
|
+
CouponCategory["Glamdiva"] = "Glamdiva";
|
|
1895
|
+
CouponCategory["Impulsionamento"] = "Impulsionamento";
|
|
1896
|
+
CouponCategory["PaidMedia"] = "Paid Media";
|
|
1897
|
+
CouponCategory["Organic"] = "Organic";
|
|
1898
|
+
CouponCategory["Direct"] = "Direct";
|
|
1899
|
+
CouponCategory["CRM"] = "CRM";
|
|
1900
|
+
CouponCategory["LOJAUNICO"] = "Loja \u00FAnico";
|
|
1901
|
+
CouponCategory["Outros"] = "Outros";
|
|
1902
|
+
})(CouponCategory || (CouponCategory = {}));
|
|
1903
|
+
var CouponOldCategories;
|
|
1904
|
+
(function (CouponOldCategories) {
|
|
1905
|
+
CouponOldCategories["Reembolso"] = "Reembolso";
|
|
1906
|
+
CouponOldCategories["Desculpas"] = "Desculpas";
|
|
1907
|
+
CouponOldCategories["BFlu"] = "BFlu";
|
|
1908
|
+
CouponOldCategories["ROYAL"] = "Royal";
|
|
1909
|
+
CouponOldCategories["Glamqueens"] = "Glamqueens";
|
|
1910
|
+
CouponOldCategories["Glampartner"] = "Glampartner";
|
|
1911
|
+
CouponOldCategories["Glamgirls"] = "Glamgirls";
|
|
1912
|
+
CouponOldCategories["Glamdiva"] = "Glamdiva";
|
|
1913
|
+
CouponOldCategories["Impulsionamento"] = "Impulsionamento";
|
|
1914
|
+
CouponOldCategories["PaidMedia"] = "Paid Media";
|
|
1915
|
+
CouponOldCategories["Organic"] = "Organic";
|
|
1916
|
+
CouponOldCategories["Direct"] = "Direct";
|
|
1917
|
+
CouponOldCategories["CRM"] = "CRM";
|
|
1918
|
+
CouponOldCategories["LOJAUNICO"] = "Loja \u00FAnico";
|
|
1919
|
+
CouponOldCategories["Outros"] = "Outros";
|
|
1920
|
+
})(CouponOldCategories || (CouponOldCategories = {}));
|
|
1921
|
+
var CouponCategories;
|
|
1922
|
+
(function (CouponCategories) {
|
|
1923
|
+
CouponCategories["API_001"] = "API-001";
|
|
1924
|
+
CouponCategories["COMPRE_E_GANHE"] = "COMPRE E GANHE";
|
|
1925
|
+
CouponCategories["DESCONTO"] = "DESCONTO";
|
|
1926
|
+
CouponCategories["REEMBOLSO"] = "REEMBOLSO";
|
|
1927
|
+
CouponCategories["DESCULPAS"] = "DESCULPAS";
|
|
1928
|
+
})(CouponCategories || (CouponCategories = {}));
|
|
1929
|
+
|
|
1930
|
+
var CouponChannels;
|
|
1931
|
+
(function (CouponChannels) {
|
|
1932
|
+
CouponChannels["BANNER"] = "7";
|
|
1933
|
+
CouponChannels["BFLUENCE"] = "3";
|
|
1934
|
+
CouponChannels["CRM"] = "2";
|
|
1935
|
+
CouponChannels["GLAMGIRL"] = "0";
|
|
1936
|
+
CouponChannels["PAID"] = "4";
|
|
1937
|
+
CouponChannels["ROYAL"] = "1";
|
|
1938
|
+
CouponChannels["SAC"] = "8";
|
|
1939
|
+
CouponChannels["SOCIAL"] = "5";
|
|
1940
|
+
})(CouponChannels || (CouponChannels = {}));
|
|
1941
|
+
|
|
1942
|
+
var CouponSubtypes;
|
|
1943
|
+
(function (CouponSubtypes) {
|
|
1944
|
+
CouponSubtypes[CouponSubtypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
1945
|
+
CouponSubtypes[CouponSubtypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
1946
|
+
})(CouponSubtypes || (CouponSubtypes = {}));
|
|
1947
|
+
|
|
1948
|
+
var CouponTypes;
|
|
1949
|
+
(function (CouponTypes) {
|
|
1950
|
+
CouponTypes[CouponTypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
1951
|
+
CouponTypes[CouponTypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
1952
|
+
CouponTypes[CouponTypes["SHIPPING"] = 3] = "SHIPPING";
|
|
1953
|
+
})(CouponTypes || (CouponTypes = {}));
|
|
1954
|
+
|
|
1955
|
+
var Exclusivities;
|
|
1956
|
+
(function (Exclusivities) {
|
|
1957
|
+
Exclusivities[Exclusivities["ALL_USERS"] = 1] = "ALL_USERS";
|
|
1958
|
+
Exclusivities[Exclusivities["SPECIFIC_USER"] = 2] = "SPECIFIC_USER";
|
|
1959
|
+
Exclusivities[Exclusivities["COLLABORATORS"] = 3] = "COLLABORATORS";
|
|
1960
|
+
Exclusivities[Exclusivities["ACTIVE_SUBSCRIBER"] = 4] = "ACTIVE_SUBSCRIBER";
|
|
1961
|
+
Exclusivities[Exclusivities["INACTIVE_SUBSCRIBER"] = 5] = "INACTIVE_SUBSCRIBER";
|
|
1962
|
+
Exclusivities[Exclusivities["NON_SUBSCRIBER"] = 6] = "NON_SUBSCRIBER";
|
|
1963
|
+
})(Exclusivities || (Exclusivities = {}));
|
|
1964
|
+
|
|
1882
1965
|
class SubscriptionMaterialization extends BaseModel {
|
|
1883
1966
|
static get identifiersFields() {
|
|
1884
1967
|
return ['id'];
|
|
@@ -2078,86 +2161,6 @@ __decorate([
|
|
|
2078
2161
|
__metadata("design:type", Coupon)
|
|
2079
2162
|
], Checkout.prototype, "coupon", void 0);
|
|
2080
2163
|
|
|
2081
|
-
var CouponCategory;
|
|
2082
|
-
(function (CouponCategory) {
|
|
2083
|
-
CouponCategory["Reembolso"] = "Reembolso";
|
|
2084
|
-
CouponCategory["Desculpas"] = "Desculpas";
|
|
2085
|
-
CouponCategory["BFlu"] = "BFlu";
|
|
2086
|
-
CouponCategory["ROYAL"] = "Royal";
|
|
2087
|
-
CouponCategory["Glamqueens"] = "Glamqueens";
|
|
2088
|
-
CouponCategory["Glampartner"] = "Glampartner";
|
|
2089
|
-
CouponCategory["Glamgirls"] = "Glamgirls";
|
|
2090
|
-
CouponCategory["Glamdiva"] = "Glamdiva";
|
|
2091
|
-
CouponCategory["Impulsionamento"] = "Impulsionamento";
|
|
2092
|
-
CouponCategory["PaidMedia"] = "Paid Media";
|
|
2093
|
-
CouponCategory["Organic"] = "Organic";
|
|
2094
|
-
CouponCategory["Direct"] = "Direct";
|
|
2095
|
-
CouponCategory["CRM"] = "CRM";
|
|
2096
|
-
CouponCategory["LOJAUNICO"] = "Loja \u00FAnico";
|
|
2097
|
-
CouponCategory["Outros"] = "Outros";
|
|
2098
|
-
})(CouponCategory || (CouponCategory = {}));
|
|
2099
|
-
var CouponOldCategories;
|
|
2100
|
-
(function (CouponOldCategories) {
|
|
2101
|
-
CouponOldCategories["Reembolso"] = "Reembolso";
|
|
2102
|
-
CouponOldCategories["Desculpas"] = "Desculpas";
|
|
2103
|
-
CouponOldCategories["BFlu"] = "BFlu";
|
|
2104
|
-
CouponOldCategories["ROYAL"] = "Royal";
|
|
2105
|
-
CouponOldCategories["Glamqueens"] = "Glamqueens";
|
|
2106
|
-
CouponOldCategories["Glampartner"] = "Glampartner";
|
|
2107
|
-
CouponOldCategories["Glamgirls"] = "Glamgirls";
|
|
2108
|
-
CouponOldCategories["Glamdiva"] = "Glamdiva";
|
|
2109
|
-
CouponOldCategories["Impulsionamento"] = "Impulsionamento";
|
|
2110
|
-
CouponOldCategories["PaidMedia"] = "Paid Media";
|
|
2111
|
-
CouponOldCategories["Organic"] = "Organic";
|
|
2112
|
-
CouponOldCategories["Direct"] = "Direct";
|
|
2113
|
-
CouponOldCategories["CRM"] = "CRM";
|
|
2114
|
-
CouponOldCategories["LOJAUNICO"] = "Loja \u00FAnico";
|
|
2115
|
-
CouponOldCategories["Outros"] = "Outros";
|
|
2116
|
-
})(CouponOldCategories || (CouponOldCategories = {}));
|
|
2117
|
-
var CouponCategories;
|
|
2118
|
-
(function (CouponCategories) {
|
|
2119
|
-
CouponCategories["API_001"] = "API-001";
|
|
2120
|
-
CouponCategories["COMPRE_E_GANHE"] = "COMPRE E GANHE";
|
|
2121
|
-
CouponCategories["DESCONTO"] = "DESCONTO";
|
|
2122
|
-
CouponCategories["REEMBOLSO"] = "REEMBOLSO";
|
|
2123
|
-
CouponCategories["DESCULPAS"] = "DESCULPAS";
|
|
2124
|
-
})(CouponCategories || (CouponCategories = {}));
|
|
2125
|
-
|
|
2126
|
-
var CouponChannels;
|
|
2127
|
-
(function (CouponChannels) {
|
|
2128
|
-
CouponChannels["BANNER"] = "7";
|
|
2129
|
-
CouponChannels["BFLUENCE"] = "3";
|
|
2130
|
-
CouponChannels["CRM"] = "2";
|
|
2131
|
-
CouponChannels["GLAMGIRL"] = "0";
|
|
2132
|
-
CouponChannels["PAID"] = "4";
|
|
2133
|
-
CouponChannels["ROYAL"] = "1";
|
|
2134
|
-
CouponChannels["SAC"] = "8";
|
|
2135
|
-
CouponChannels["SOCIAL"] = "5";
|
|
2136
|
-
})(CouponChannels || (CouponChannels = {}));
|
|
2137
|
-
|
|
2138
|
-
var CouponSubtypes;
|
|
2139
|
-
(function (CouponSubtypes) {
|
|
2140
|
-
CouponSubtypes[CouponSubtypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
2141
|
-
CouponSubtypes[CouponSubtypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
2142
|
-
})(CouponSubtypes || (CouponSubtypes = {}));
|
|
2143
|
-
|
|
2144
|
-
var CouponTypes;
|
|
2145
|
-
(function (CouponTypes) {
|
|
2146
|
-
CouponTypes[CouponTypes["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
2147
|
-
CouponTypes[CouponTypes["PERCENTAGE"] = 2] = "PERCENTAGE";
|
|
2148
|
-
CouponTypes[CouponTypes["SHIPPING"] = 3] = "SHIPPING";
|
|
2149
|
-
})(CouponTypes || (CouponTypes = {}));
|
|
2150
|
-
|
|
2151
|
-
var Exclusivities;
|
|
2152
|
-
(function (Exclusivities) {
|
|
2153
|
-
Exclusivities[Exclusivities["ALL_USERS"] = 1] = "ALL_USERS";
|
|
2154
|
-
Exclusivities[Exclusivities["SPECIFIC_USER"] = 2] = "SPECIFIC_USER";
|
|
2155
|
-
Exclusivities[Exclusivities["COLLABORATORS"] = 3] = "COLLABORATORS";
|
|
2156
|
-
Exclusivities[Exclusivities["ACTIVE_SUBSCRIBER"] = 4] = "ACTIVE_SUBSCRIBER";
|
|
2157
|
-
Exclusivities[Exclusivities["INACTIVE_SUBSCRIBER"] = 5] = "INACTIVE_SUBSCRIBER";
|
|
2158
|
-
Exclusivities[Exclusivities["NON_SUBSCRIBER"] = 6] = "NON_SUBSCRIBER";
|
|
2159
|
-
})(Exclusivities || (Exclusivities = {}));
|
|
2160
|
-
|
|
2161
2164
|
var CheckoutTypes;
|
|
2162
2165
|
(function (CheckoutTypes) {
|
|
2163
2166
|
CheckoutTypes[CheckoutTypes["ECOMMERCE"] = 1] = "ECOMMERCE";
|
|
@@ -5019,24 +5022,24 @@ const withCrudHasuraGraphQL = (MixinBase) => {
|
|
|
5019
5022
|
class CategoryHasuraGraphQL extends Category {
|
|
5020
5023
|
}
|
|
5021
5024
|
|
|
5022
|
-
class ProductHasuraGraphQL extends Product {
|
|
5023
|
-
}
|
|
5024
|
-
__decorate([
|
|
5025
|
-
Type(() => KitProductHasuraGraphQL),
|
|
5026
|
-
__metadata("design:type", Array)
|
|
5027
|
-
], ProductHasuraGraphQL.prototype, "kitProducts", void 0);
|
|
5028
|
-
|
|
5029
5025
|
class KitProductHasuraGraphQL extends KitProduct {
|
|
5030
5026
|
}
|
|
5031
5027
|
__decorate([
|
|
5032
|
-
Type(() =>
|
|
5033
|
-
__metadata("design:type",
|
|
5028
|
+
Type(() => Product),
|
|
5029
|
+
__metadata("design:type", Product)
|
|
5034
5030
|
], KitProductHasuraGraphQL.prototype, "kit", void 0);
|
|
5035
5031
|
__decorate([
|
|
5036
|
-
Type(() =>
|
|
5037
|
-
__metadata("design:type",
|
|
5032
|
+
Type(() => Product),
|
|
5033
|
+
__metadata("design:type", Product)
|
|
5038
5034
|
], KitProductHasuraGraphQL.prototype, "product", void 0);
|
|
5039
5035
|
|
|
5036
|
+
class ProductHasuraGraphQL extends Product {
|
|
5037
|
+
}
|
|
5038
|
+
__decorate([
|
|
5039
|
+
Type(() => KitProductHasuraGraphQL),
|
|
5040
|
+
__metadata("design:type", Array)
|
|
5041
|
+
], ProductHasuraGraphQL.prototype, "kitProducts", void 0);
|
|
5042
|
+
|
|
5040
5043
|
class VariantHasuraGraphQL extends Variant {
|
|
5041
5044
|
constructor() {
|
|
5042
5045
|
super(...arguments);
|
|
@@ -5832,6 +5835,7 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5832
5835
|
foreignKeyColumn: { id: 'productId' },
|
|
5833
5836
|
fields: [
|
|
5834
5837
|
{ id: { columnName: 'id', from: (value) => value.toString() } },
|
|
5838
|
+
{ productId: { columnName: 'main_product_id' } },
|
|
5835
5839
|
'description',
|
|
5836
5840
|
'name',
|
|
5837
5841
|
'slug',
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier, ModelBaseStructure } from '../../generic/model';
|
|
2
2
|
import { Shops } from './enums';
|
|
3
|
-
import { Filter } from './filter';
|
|
4
3
|
import { CategoryCondition, CategoryImages, CategoryMetadata, CategoryMostRelevant } from './types';
|
|
5
4
|
export declare class CategoryBase<ChildCategory extends ModelBaseStructure<ChildCategory, Identifiers> = ModelBaseStructure<any, any>, Identifiers = ChildCategory['identifiersFields']> extends BaseModel<ChildCategory, Identifiers> {
|
|
6
5
|
id: string;
|
|
@@ -31,7 +30,6 @@ export declare class CategoryBase<ChildCategory extends ModelBaseStructure<Child
|
|
|
31
30
|
mostRelevant?: string[];
|
|
32
31
|
mostRelevants?: CategoryMostRelevant;
|
|
33
32
|
parent?: CategoryBase;
|
|
34
|
-
filters?: Filter[];
|
|
35
33
|
static get identifiersFields(): GenericIdentifier[];
|
|
36
34
|
get glamImages(): {
|
|
37
35
|
image: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { GenericIdentifier } from '../../generic/model';
|
|
2
2
|
import { CategoryBase } from './category-base';
|
|
3
|
+
import { Filter } from './filter';
|
|
3
4
|
import { ProductForCategory } from './product-for-category';
|
|
4
5
|
export declare class Category extends CategoryBase<Category, GenericIdentifier> {
|
|
5
6
|
childrenProducts?: ProductForCategory[];
|
|
7
|
+
filters?: Filter[];
|
|
6
8
|
static get identifiersFields(): GenericIdentifier[];
|
|
7
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
-
import {
|
|
2
|
+
import { CategoryBase } from './category-base';
|
|
3
3
|
import { FilterOption } from './filter-option';
|
|
4
4
|
export declare class Filter extends BaseModel<Filter> {
|
|
5
5
|
id: number;
|
|
@@ -10,6 +10,6 @@ export declare class Filter extends BaseModel<Filter> {
|
|
|
10
10
|
options?: FilterOption[];
|
|
11
11
|
createdAt?: Date;
|
|
12
12
|
updatedAt?: Date;
|
|
13
|
-
categories?:
|
|
13
|
+
categories?: CategoryBase[];
|
|
14
14
|
static get identifiersFields(): GenericIdentifier[];
|
|
15
15
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { BaseModel } from '../../generic/model';
|
|
2
2
|
import { Product } from './product';
|
|
3
|
+
import { Variant } from './variant';
|
|
3
4
|
type ProductErrorsIdentifiers = 'productId' | 'source' | 'error';
|
|
4
|
-
export declare class ProductErrors extends BaseModel<ProductErrors
|
|
5
|
+
export declare class ProductErrors<T extends Product | Variant = Product | Variant> extends BaseModel<ProductErrors<T>, ProductErrorsIdentifiers> {
|
|
5
6
|
productId: string;
|
|
6
7
|
source: string;
|
|
7
8
|
error: string;
|
|
8
9
|
createdAt: Date;
|
|
9
10
|
updatedAt: Date;
|
|
10
|
-
product:
|
|
11
|
+
product: T;
|
|
11
12
|
static get identifiersFields(): ProductErrorsIdentifiers[];
|
|
13
|
+
getProductId(): string;
|
|
12
14
|
}
|
|
13
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
-
import { Banner, Benefit, HomeDataStructure } from './types';
|
|
2
|
+
import { Banner, Benefit, HomeDataStructure, ShopSameDayNotAvailable } from './types';
|
|
3
3
|
export declare class Home extends BaseModel<Home> {
|
|
4
4
|
benefitsSection: Benefit[];
|
|
5
5
|
blockBanners: Banner[];
|
|
@@ -14,5 +14,6 @@ export declare class Home extends BaseModel<Home> {
|
|
|
14
14
|
id: string;
|
|
15
15
|
data: HomeDataStructure;
|
|
16
16
|
minValueForFreeShipping: number;
|
|
17
|
+
sameDayNotAvaliable: ShopSameDayNotAvailable;
|
|
17
18
|
static get identifiersFields(): GenericIdentifier[];
|
|
18
19
|
}
|
|
@@ -13,5 +13,6 @@ export * from './shop-collection.type';
|
|
|
13
13
|
export * from './shop-gift.type';
|
|
14
14
|
export * from './shop-home';
|
|
15
15
|
export * from './shop-post.type';
|
|
16
|
+
export * from './shop-sameday-not-available';
|
|
16
17
|
export * from './shop-section.type';
|
|
17
18
|
export * from './sub-menu.type';
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
2
|
export declare class ShippingMethod extends BaseModel<ShippingMethod> {
|
|
3
|
-
id
|
|
4
|
-
|
|
3
|
+
id?: string;
|
|
4
|
+
cnpj: string;
|
|
5
5
|
DaysToDelivery: number;
|
|
6
|
-
MaxGrams
|
|
7
|
-
MinGrams
|
|
8
|
-
ServiceCompanyRangeId
|
|
9
|
-
ShippingCompanyId
|
|
6
|
+
MaxGrams?: number;
|
|
7
|
+
MinGrams?: number;
|
|
8
|
+
ServiceCompanyRangeId?: number;
|
|
9
|
+
ShippingCompanyId?: number;
|
|
10
10
|
ShippingCompanyName: string;
|
|
11
11
|
ShippingPrice: number;
|
|
12
|
-
State
|
|
13
|
-
ZipEnd
|
|
14
|
-
ZipStart
|
|
12
|
+
State?: string;
|
|
13
|
+
ZipEnd?: number;
|
|
14
|
+
ZipStart?: number;
|
|
15
15
|
invoiceNumber?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
additionalDescription?: string;
|
|
18
|
+
serviceCode?: string;
|
|
19
|
+
isSubscriptionAddress?: boolean;
|
|
16
20
|
static get identifiersFields(): GenericIdentifier[];
|
|
17
21
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PaymentProvider } from './payment-provider.type';
|
|
2
|
+
export type CheckoutPayloadRequest = {
|
|
3
|
+
checkoutId: string;
|
|
4
|
+
shopId: string;
|
|
5
|
+
paymentProvider: PaymentProvider;
|
|
6
|
+
isChange?: boolean;
|
|
7
|
+
card?: {
|
|
8
|
+
installments: number;
|
|
9
|
+
cardId: string;
|
|
10
|
+
cardCvv?: string;
|
|
11
|
+
};
|
|
12
|
+
boleto?: boolean;
|
|
13
|
+
pix?: boolean;
|
|
14
|
+
applicationVersion?: string;
|
|
15
|
+
};
|
|
@@ -2,6 +2,9 @@ export * from './adyen-card.type';
|
|
|
2
2
|
export * from './adyen-credentials.type';
|
|
3
3
|
export * from './antifraud-provider.type';
|
|
4
4
|
export * from './card-info.type';
|
|
5
|
+
export * from './checkout-paylod-request.type';
|
|
6
|
+
export * from './checkout-response.type';
|
|
7
|
+
export * from './checkout-stock-validation.type';
|
|
5
8
|
export * from './glam-credentials.type';
|
|
6
9
|
export * from './order-tracking-events.type';
|
|
7
10
|
export * from './pagarme-card.type';
|
|
@@ -9,3 +12,5 @@ export * from './pagarme-credentials.type';
|
|
|
9
12
|
export * from './payment-card-info.type';
|
|
10
13
|
export * from './payment-method.type';
|
|
11
14
|
export * from './payment-provider.type';
|
|
15
|
+
export * from './shipping-method-response.type';
|
|
16
|
+
export * from './shipping-product-request.type';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ShippingMethodResponse = {
|
|
2
|
+
daysToDelivery: number;
|
|
3
|
+
currency?: string;
|
|
4
|
+
description: string;
|
|
5
|
+
maxDeliveryDate: string;
|
|
6
|
+
minDeliveryDate: string;
|
|
7
|
+
serviceCode: string;
|
|
8
|
+
serviceName: string;
|
|
9
|
+
totalPrice: number;
|
|
10
|
+
additionalDescription?: string;
|
|
11
|
+
cnpj?: string;
|
|
12
|
+
ShippingCompanyName?: string;
|
|
13
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../../generic';
|
|
2
|
-
import { Coupon
|
|
2
|
+
import { Coupon } from '../../../shopping/models/coupons';
|
|
3
|
+
import { SubscriptionPlan } from '../../../shopping/models/subscription/plan';
|
|
3
4
|
import { User } from '../user';
|
|
4
5
|
import { UserAddress } from '../user-address';
|
|
5
6
|
import { Edition } from './edition';
|
|
@@ -2,5 +2,6 @@ import { Address } from '../../location/models/address';
|
|
|
2
2
|
export type UserAddressIdentifiers = 'id' | 'userId';
|
|
3
3
|
export declare class UserAddress extends Address<UserAddress, UserAddressIdentifiers> {
|
|
4
4
|
userId: string;
|
|
5
|
+
subscription?: boolean;
|
|
5
6
|
static get identifiersFields(): UserAddressIdentifiers[];
|
|
6
7
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { KitProduct } from '../../../domain';
|
|
2
|
-
import { ProductHasuraGraphQL } from './product-hasura-graphql';
|
|
1
|
+
import { KitProduct, Product } from '../../../domain';
|
|
3
2
|
export declare class KitProductHasuraGraphQL extends KitProduct {
|
|
4
|
-
kit:
|
|
5
|
-
product:
|
|
3
|
+
kit: Product;
|
|
4
|
+
product: Product;
|
|
6
5
|
}
|
package/src/infra/hasura-graphql/repositories/catalog/product-errors-hasura-graphql.repository.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ProductErrors } from '../../../../domain';
|
|
2
2
|
import { ProductErrorsRepository } from '../../../../domain/catalog/repositories';
|
|
3
3
|
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { ProductHasuraGraphQL, VariantHasuraGraphQL } from '../../models';
|
|
5
|
+
declare const ProductErrorsHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>> & import("../../../../domain").CrudRepository<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>, import("../../../../domain").CrudParams<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>>> & import("../../../../domain").UpdateRepository<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>, import("../../../../domain").RepositoryUpdateParams<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>>> & {
|
|
6
|
+
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>>): Partial<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>>;
|
|
7
|
+
}, [HasuraConstructorParams<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
8
|
export declare class ProductErrorsHasuraGraphQLRepository extends ProductErrorsHasuraGraphQLRepository_base implements ProductErrorsRepository {
|
|
8
|
-
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<ProductErrors
|
|
9
|
+
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL>>, 'endpoint' | 'authOptions' | 'interceptors'>);
|
|
9
10
|
}
|
|
10
11
|
export {};
|