@infrab4a/connect 4.1.5-beta.1 → 4.1.6-beta-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/index.cjs.js +37 -0
- package/index.esm.js +36 -1
- package/package.json +1 -1
- package/src/domain/catalog/models/index.d.ts +1 -0
- package/src/domain/catalog/models/product-reviews.d.ts +20 -0
- package/src/domain/catalog/repositories/index.d.ts +1 -0
- package/src/domain/catalog/repositories/product-reviews.repository.d.ts +4 -0
- package/src/domain/shop-settings/models/types/index.d.ts +0 -3
- package/src/domain/shop-settings/models/types/sections.type.d.ts +0 -6
- package/src/infra/hasura-graphql/repositories/catalog/index.d.ts +1 -0
- package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts +10 -0
- package/src/domain/shop-settings/models/types/brands-carousel.type.d.ts +0 -3
- package/src/domain/shop-settings/models/types/landing-page.d.ts +0 -8
- package/src/domain/shop-settings/models/types/promotion-page.d.ts +0 -10
package/index.cjs.js
CHANGED
|
@@ -2140,6 +2140,12 @@ tslib_1.__decorate([
|
|
|
2140
2140
|
tslib_1.__metadata("design:type", Array)
|
|
2141
2141
|
], Product.prototype, "kitProducts", void 0);
|
|
2142
2142
|
|
|
2143
|
+
class ProductReviews extends BaseModel {
|
|
2144
|
+
static get identifiersFields() {
|
|
2145
|
+
return ['id'];
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2143
2149
|
class Variant extends BaseModel {
|
|
2144
2150
|
static get identifiersFields() {
|
|
2145
2151
|
return ['id', 'productId'];
|
|
@@ -5197,6 +5203,35 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
5197
5203
|
}
|
|
5198
5204
|
}
|
|
5199
5205
|
|
|
5206
|
+
class ProductReviewsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5207
|
+
constructor({ endpoint, authOptions, interceptors, }) {
|
|
5208
|
+
super({
|
|
5209
|
+
tableName: 'product_review',
|
|
5210
|
+
model: ProductReviews,
|
|
5211
|
+
endpoint,
|
|
5212
|
+
authOptions,
|
|
5213
|
+
interceptors,
|
|
5214
|
+
fields: [
|
|
5215
|
+
'id',
|
|
5216
|
+
{ productId: { columnName: 'product_id' } },
|
|
5217
|
+
'shop',
|
|
5218
|
+
'rate',
|
|
5219
|
+
'author',
|
|
5220
|
+
'email',
|
|
5221
|
+
'location',
|
|
5222
|
+
'review',
|
|
5223
|
+
'status',
|
|
5224
|
+
'title',
|
|
5225
|
+
{ personId: { columnName: 'person_id' } },
|
|
5226
|
+
'points',
|
|
5227
|
+
{ orderId: { columnName: 'order_id' } },
|
|
5228
|
+
{ createdAt: { columnName: 'created_at' } },
|
|
5229
|
+
{ updatedAt: { columnName: 'updated_at' } },
|
|
5230
|
+
],
|
|
5231
|
+
});
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
|
|
5200
5235
|
class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5201
5236
|
constructor({ endpoint, authOptions, interceptors, }) {
|
|
5202
5237
|
super({
|
|
@@ -5693,6 +5728,8 @@ exports.Product = Product;
|
|
|
5693
5728
|
exports.ProductFirestoreRepository = ProductFirestoreRepository;
|
|
5694
5729
|
exports.ProductHasuraGraphQL = ProductHasuraGraphQL;
|
|
5695
5730
|
exports.ProductHasuraGraphQLRepository = ProductHasuraGraphQLRepository;
|
|
5731
|
+
exports.ProductReviews = ProductReviews;
|
|
5732
|
+
exports.ProductReviewsHasuraGraphQLRepository = ProductReviewsHasuraGraphQLRepository;
|
|
5696
5733
|
exports.ProductVariantFirestoreRepository = ProductVariantFirestoreRepository;
|
|
5697
5734
|
exports.ProductsIndex = ProductsIndex;
|
|
5698
5735
|
exports.RecoveryPassword = RecoveryPassword;
|
package/index.esm.js
CHANGED
|
@@ -2116,6 +2116,12 @@ __decorate([
|
|
|
2116
2116
|
__metadata("design:type", Array)
|
|
2117
2117
|
], Product.prototype, "kitProducts", void 0);
|
|
2118
2118
|
|
|
2119
|
+
class ProductReviews extends BaseModel {
|
|
2120
|
+
static get identifiersFields() {
|
|
2121
|
+
return ['id'];
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2119
2125
|
class Variant extends BaseModel {
|
|
2120
2126
|
static get identifiersFields() {
|
|
2121
2127
|
return ['id', 'productId'];
|
|
@@ -5173,6 +5179,35 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
5173
5179
|
}
|
|
5174
5180
|
}
|
|
5175
5181
|
|
|
5182
|
+
class ProductReviewsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5183
|
+
constructor({ endpoint, authOptions, interceptors, }) {
|
|
5184
|
+
super({
|
|
5185
|
+
tableName: 'product_review',
|
|
5186
|
+
model: ProductReviews,
|
|
5187
|
+
endpoint,
|
|
5188
|
+
authOptions,
|
|
5189
|
+
interceptors,
|
|
5190
|
+
fields: [
|
|
5191
|
+
'id',
|
|
5192
|
+
{ productId: { columnName: 'product_id' } },
|
|
5193
|
+
'shop',
|
|
5194
|
+
'rate',
|
|
5195
|
+
'author',
|
|
5196
|
+
'email',
|
|
5197
|
+
'location',
|
|
5198
|
+
'review',
|
|
5199
|
+
'status',
|
|
5200
|
+
'title',
|
|
5201
|
+
{ personId: { columnName: 'person_id' } },
|
|
5202
|
+
'points',
|
|
5203
|
+
{ orderId: { columnName: 'order_id' } },
|
|
5204
|
+
{ createdAt: { columnName: 'created_at' } },
|
|
5205
|
+
{ updatedAt: { columnName: 'updated_at' } },
|
|
5206
|
+
],
|
|
5207
|
+
});
|
|
5208
|
+
}
|
|
5209
|
+
}
|
|
5210
|
+
|
|
5176
5211
|
class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5177
5212
|
constructor({ endpoint, authOptions, interceptors, }) {
|
|
5178
5213
|
super({
|
|
@@ -5497,4 +5532,4 @@ class WishlistHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
5497
5532
|
}
|
|
5498
5533
|
}
|
|
5499
5534
|
|
|
5500
|
-
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FragranceImportances, GenderDestination, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, Logger, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductSpents, ProductVariantFirestoreRepository, ProductsIndex, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, is, isDebuggable, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
|
5535
|
+
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FragranceImportances, GenderDestination, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, Logger, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductReviews, ProductReviewsHasuraGraphQLRepository, ProductSpents, ProductVariantFirestoreRepository, ProductsIndex, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, is, isDebuggable, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
+
import { Shops } from './enums';
|
|
3
|
+
export declare class ProductReviews extends BaseModel<ProductReviews> {
|
|
4
|
+
id: number;
|
|
5
|
+
productId: number;
|
|
6
|
+
shop: Shops;
|
|
7
|
+
rate: number;
|
|
8
|
+
author?: string;
|
|
9
|
+
email?: string;
|
|
10
|
+
location?: string;
|
|
11
|
+
review?: string;
|
|
12
|
+
status?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
personId?: number;
|
|
15
|
+
points?: number;
|
|
16
|
+
orderId?: string;
|
|
17
|
+
createdAt?: Date;
|
|
18
|
+
updatedAt?: Date;
|
|
19
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
20
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from './category-filter.repository';
|
|
|
3
3
|
export * from './category.repository';
|
|
4
4
|
export * from './filter-option.repository';
|
|
5
5
|
export * from './filter.repository';
|
|
6
|
+
export * from './product-reviews.repository';
|
|
6
7
|
export * from './product.repository';
|
|
7
8
|
export * from './subscription-product.repository';
|
|
8
9
|
export * from './variant.repository';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export * from './banner.type';
|
|
2
2
|
export * from './benefit.type';
|
|
3
|
-
export * from './brands-carousel.type';
|
|
4
3
|
export * from './campaign-page';
|
|
5
4
|
export * from './home-data.type';
|
|
6
|
-
export * from './landing-page';
|
|
7
5
|
export * from './menu-nav.type';
|
|
8
6
|
export * from './sections.type';
|
|
9
7
|
export * from './shop-banner.type';
|
|
@@ -11,7 +9,6 @@ export * from './shop-brands.type';
|
|
|
11
9
|
export * from './shop-carousel.type';
|
|
12
10
|
export * from './shop-collection.type';
|
|
13
11
|
export * from './shop-gift.type';
|
|
14
|
-
export * from './shop-home';
|
|
15
12
|
export * from './shop-post.type';
|
|
16
13
|
export * from './shop-section.type';
|
|
17
14
|
export * from './sub-menu.type';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { LandingPage } from './landing-page';
|
|
2
|
-
import { PromotionPage } from './promotion-page';
|
|
3
1
|
import { ShopBanner } from './shop-banner.type';
|
|
4
2
|
import { ShopCarousel } from './shop-carousel.type';
|
|
5
3
|
import { ShopGift } from './shop-gift.type';
|
|
@@ -19,8 +17,6 @@ export type GlampointsVitrineShopSection = [ShopBanner];
|
|
|
19
17
|
export type SimpleLPShopSection = [(ShopBanner & {
|
|
20
18
|
carouselColor?: string;
|
|
21
19
|
})[]];
|
|
22
|
-
export type LandingPageSection = [LandingPage<any>];
|
|
23
|
-
export type PromotionPageSection = [PromotionPage<any>];
|
|
24
20
|
export type SectionList = {
|
|
25
21
|
HomeSection: HomeSection;
|
|
26
22
|
LPClubeShopSection: LPClubeShopSection;
|
|
@@ -31,7 +27,5 @@ export type SectionList = {
|
|
|
31
27
|
PostsShopSection: PostsShopSection;
|
|
32
28
|
GlampointsVitrineShopSection: GlampointsVitrineShopSection;
|
|
33
29
|
SimpleLPShopSection: SimpleLPShopSection;
|
|
34
|
-
LandingPageSection: LandingPageSection;
|
|
35
|
-
PromotionPageSection: PromotionPageSection;
|
|
36
30
|
};
|
|
37
31
|
export type Section<T extends keyof SectionList> = SectionList[T];
|
|
@@ -4,5 +4,6 @@ export * from './category-hasura-graphql.repository';
|
|
|
4
4
|
export * from './filter-hasura-graphql.repository';
|
|
5
5
|
export * from './filter-option-hasura-graphql.repository';
|
|
6
6
|
export * from './product-hasura-graphql.repository';
|
|
7
|
+
export * from './product-review-hasura-graphql.repository';
|
|
7
8
|
export * from './variant-hasura-graphql.repository';
|
|
8
9
|
export * from './wishlist-hasura-graphql.repository';
|
package/src/infra/hasura-graphql/repositories/catalog/product-review-hasura-graphql.repository.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductReviews } from '../../../../domain';
|
|
2
|
+
import { ProductReviewsRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
+
declare const ProductReviewsHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductReviews> & import("../../../../domain").CrudRepository<ProductReviews, import("../../../../domain").CrudParams<ProductReviews>> & import("../../../../domain").UpdateRepository<ProductReviews, import("../../../../domain").RepositoryUpdateParams<ProductReviews>> & {
|
|
5
|
+
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<ProductReviews>): Partial<ProductReviews>;
|
|
6
|
+
}, [HasuraConstructorParams<ProductReviews> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
|
+
export declare class ProductReviewsHasuraGraphQLRepository extends ProductReviewsHasuraGraphQLRepository_base implements ProductReviewsRepository {
|
|
8
|
+
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<ProductReviews>, 'endpoint' | 'authOptions' | 'interceptors'>);
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ShopBanner } from './shop-banner.type';
|
|
2
|
-
import { ShopCarousel } from './shop-carousel.type';
|
|
3
|
-
import { ShopSection } from './shop-section.type';
|
|
4
|
-
export type LandingPageList = {
|
|
5
|
-
ShopCarousel: ShopCarousel;
|
|
6
|
-
ShopBanner: ShopBanner;
|
|
7
|
-
};
|
|
8
|
-
export type LandingPage<T extends keyof LandingPageList> = LandingPageList[T] & ShopSection;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BrandsCarousel } from './brands-carousel.type';
|
|
2
|
-
import { ShopBanner } from './shop-banner.type';
|
|
3
|
-
import { ShopGift } from './shop-gift.type';
|
|
4
|
-
import { ShopSection } from './shop-section.type';
|
|
5
|
-
export type PromotionPageList = {
|
|
6
|
-
ShopBanner: ShopBanner;
|
|
7
|
-
BrandsCarousel: BrandsCarousel;
|
|
8
|
-
ShopGift: ShopGift;
|
|
9
|
-
};
|
|
10
|
-
export type PromotionPage<T extends keyof PromotionPageList> = PromotionPageList[T] & ShopSection;
|