@infrab4a/connect 4.22.1-beta.6 → 4.23.0-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 +52 -0
- package/index.esm.js +51 -1
- package/package.json +1 -1
- package/src/domain/catalog/models/index.d.ts +1 -0
- package/src/domain/catalog/models/product-errors.d.ts +13 -0
- package/src/domain/catalog/repositories/index.d.ts +1 -0
- package/src/domain/catalog/repositories/product-errors.repository.d.ts +4 -0
- package/src/domain/shop-settings/models/home.d.ts +1 -2
- package/src/domain/shop-settings/models/types/index.d.ts +0 -1
- package/src/domain/shopping/models/coupons/coupon.d.ts +1 -1
- package/src/domain/shopping/models/shipping-method.d.ts +9 -13
- package/src/domain/shopping/types/index.d.ts +0 -5
- package/src/domain/users/models/user-address.d.ts +0 -1
- package/src/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +1 -1
- package/src/infra/hasura-graphql/repositories/catalog/index.d.ts +1 -0
- package/src/infra/hasura-graphql/repositories/catalog/product-errors-hasura-graphql.repository.d.ts +10 -0
- package/src/domain/shop-settings/models/types/shop-sameday-not-available.d.ts +0 -6
- package/src/domain/shopping/types/checkout-paylod-request.type.d.ts +0 -15
- package/src/domain/shopping/types/checkout-response.type.d.ts +0 -7
- package/src/domain/shopping/types/checkout-stock-validation.type.d.ts +0 -5
- package/src/domain/shopping/types/shipping-method-response.type.d.ts +0 -13
- package/src/domain/shopping/types/shipping-product-request.type.d.ts +0 -9
package/index.cjs.js
CHANGED
|
@@ -333,6 +333,16 @@ tslib.__decorate([
|
|
|
333
333
|
tslib.__metadata("design:type", Array)
|
|
334
334
|
], Product.prototype, "kitProducts", void 0);
|
|
335
335
|
|
|
336
|
+
class ProductErrors extends BaseModel {
|
|
337
|
+
static get identifiersFields() {
|
|
338
|
+
return ['productId'];
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
tslib.__decorate([
|
|
342
|
+
classTransformer.Type(() => Product),
|
|
343
|
+
tslib.__metadata("design:type", Product)
|
|
344
|
+
], ProductErrors.prototype, "product", void 0);
|
|
345
|
+
|
|
336
346
|
class ProductReviews extends BaseModel {
|
|
337
347
|
static get identifiersFields() {
|
|
338
348
|
return ['id'];
|
|
@@ -5802,6 +5812,46 @@ class FilterOptionHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasu
|
|
|
5802
5812
|
}
|
|
5803
5813
|
}
|
|
5804
5814
|
|
|
5815
|
+
class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5816
|
+
constructor({ endpoint, authOptions, interceptors, }) {
|
|
5817
|
+
super({
|
|
5818
|
+
tableName: 'product_errors',
|
|
5819
|
+
model: ProductErrors,
|
|
5820
|
+
endpoint,
|
|
5821
|
+
authOptions,
|
|
5822
|
+
interceptors,
|
|
5823
|
+
fields: [
|
|
5824
|
+
{
|
|
5825
|
+
productId: {
|
|
5826
|
+
columnName: 'product_id',
|
|
5827
|
+
to: (value) => +value,
|
|
5828
|
+
from: (value) => value.toString(),
|
|
5829
|
+
},
|
|
5830
|
+
},
|
|
5831
|
+
{ hasErrors: { columnName: 'has_errors' } },
|
|
5832
|
+
{ createdAt: { columnName: 'created_at' } },
|
|
5833
|
+
{ updatedAt: { columnName: 'updated_at' } },
|
|
5834
|
+
{ errors: { columnName: 'errors', type: HasuraGraphQLColumnType.Jsonb } },
|
|
5835
|
+
{
|
|
5836
|
+
product: {
|
|
5837
|
+
columnName: 'product',
|
|
5838
|
+
foreignKeyColumn: { id: 'productId' },
|
|
5839
|
+
fields: [
|
|
5840
|
+
{ id: { columnName: 'id', from: (value) => value.toString() } },
|
|
5841
|
+
'description',
|
|
5842
|
+
'name',
|
|
5843
|
+
'slug',
|
|
5844
|
+
'published',
|
|
5845
|
+
{ createdAt: { columnName: 'created_at' } },
|
|
5846
|
+
{ updatedAt: { columnName: 'updated_at' } },
|
|
5847
|
+
],
|
|
5848
|
+
},
|
|
5849
|
+
},
|
|
5850
|
+
],
|
|
5851
|
+
});
|
|
5852
|
+
}
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5805
5855
|
class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5806
5856
|
get reviewsFields() {
|
|
5807
5857
|
return [
|
|
@@ -7537,6 +7587,8 @@ exports.PaymentFirestoreRepository = PaymentFirestoreRepository;
|
|
|
7537
7587
|
exports.PaymentProviderFactory = PaymentProviderFactory;
|
|
7538
7588
|
exports.PaymentTransaction = PaymentTransaction;
|
|
7539
7589
|
exports.Product = Product;
|
|
7590
|
+
exports.ProductErrors = ProductErrors;
|
|
7591
|
+
exports.ProductErrorsHasuraGraphQLRepository = ProductErrorsHasuraGraphQLRepository;
|
|
7540
7592
|
exports.ProductFirestoreRepository = ProductFirestoreRepository;
|
|
7541
7593
|
exports.ProductHasuraGraphQL = ProductHasuraGraphQL;
|
|
7542
7594
|
exports.ProductHasuraGraphQLRepository = ProductHasuraGraphQLRepository;
|
package/index.esm.js
CHANGED
|
@@ -327,6 +327,16 @@ __decorate([
|
|
|
327
327
|
__metadata("design:type", Array)
|
|
328
328
|
], Product.prototype, "kitProducts", void 0);
|
|
329
329
|
|
|
330
|
+
class ProductErrors extends BaseModel {
|
|
331
|
+
static get identifiersFields() {
|
|
332
|
+
return ['productId'];
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
__decorate([
|
|
336
|
+
Type(() => Product),
|
|
337
|
+
__metadata("design:type", Product)
|
|
338
|
+
], ProductErrors.prototype, "product", void 0);
|
|
339
|
+
|
|
330
340
|
class ProductReviews extends BaseModel {
|
|
331
341
|
static get identifiersFields() {
|
|
332
342
|
return ['id'];
|
|
@@ -5796,6 +5806,46 @@ class FilterOptionHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasu
|
|
|
5796
5806
|
}
|
|
5797
5807
|
}
|
|
5798
5808
|
|
|
5809
|
+
class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5810
|
+
constructor({ endpoint, authOptions, interceptors, }) {
|
|
5811
|
+
super({
|
|
5812
|
+
tableName: 'product_errors',
|
|
5813
|
+
model: ProductErrors,
|
|
5814
|
+
endpoint,
|
|
5815
|
+
authOptions,
|
|
5816
|
+
interceptors,
|
|
5817
|
+
fields: [
|
|
5818
|
+
{
|
|
5819
|
+
productId: {
|
|
5820
|
+
columnName: 'product_id',
|
|
5821
|
+
to: (value) => +value,
|
|
5822
|
+
from: (value) => value.toString(),
|
|
5823
|
+
},
|
|
5824
|
+
},
|
|
5825
|
+
{ hasErrors: { columnName: 'has_errors' } },
|
|
5826
|
+
{ createdAt: { columnName: 'created_at' } },
|
|
5827
|
+
{ updatedAt: { columnName: 'updated_at' } },
|
|
5828
|
+
{ errors: { columnName: 'errors', type: HasuraGraphQLColumnType.Jsonb } },
|
|
5829
|
+
{
|
|
5830
|
+
product: {
|
|
5831
|
+
columnName: 'product',
|
|
5832
|
+
foreignKeyColumn: { id: 'productId' },
|
|
5833
|
+
fields: [
|
|
5834
|
+
{ id: { columnName: 'id', from: (value) => value.toString() } },
|
|
5835
|
+
'description',
|
|
5836
|
+
'name',
|
|
5837
|
+
'slug',
|
|
5838
|
+
'published',
|
|
5839
|
+
{ createdAt: { columnName: 'created_at' } },
|
|
5840
|
+
{ updatedAt: { columnName: 'updated_at' } },
|
|
5841
|
+
],
|
|
5842
|
+
},
|
|
5843
|
+
},
|
|
5844
|
+
],
|
|
5845
|
+
});
|
|
5846
|
+
}
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5799
5849
|
class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
5800
5850
|
get reviewsFields() {
|
|
5801
5851
|
return [
|
|
@@ -7325,4 +7375,4 @@ class ProductsVertexSearch {
|
|
|
7325
7375
|
}
|
|
7326
7376
|
}
|
|
7327
7377
|
|
|
7328
|
-
export { AccessoryImportances, Address, AdyenCardAxiosAdapter, AdyenPaymentMethodFactory, AntifraudBankSlipService, AntifraudCardService, AntifraudGlampointsService, AntifraudPixService, AntifraudProviderFactory, AntifraudProviders, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, BusinessError, BusinessUnitEnum, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, CategoryProduct, CategoryProductHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, ConnectBaseDocumentSnapshot, ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, Coupon, CouponCategories, CouponCategory, CouponChannels, CouponFirestoreRepository, CouponOldCategories, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, NotFoundError, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReviews, ProductReviewsHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, StockLimitError, StockOutError, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionMaterialization, SubscriptionMaterializationFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionSummary, SubscriptionSummaryFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, is, isDebuggable, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
|
7378
|
+
export { AccessoryImportances, Address, AdyenCardAxiosAdapter, AdyenPaymentMethodFactory, AntifraudBankSlipService, AntifraudCardService, AntifraudGlampointsService, AntifraudPixService, AntifraudProviderFactory, AntifraudProviders, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, BusinessError, BusinessUnitEnum, Buy2Win, Buy2WinFirestoreRepository, Campaign, CampaignBanner, CampaignDashboard, CampaignDashboardFirestoreRepository, CampaignHashtag, CampaignHashtagFirestoreRepository, Category, CategoryCollectionChildren, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryFilter, CategoryFilterHasuraGraphQLRepository, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, CategoryProduct, CategoryProductHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, ClassNameHelper, ConnectBaseDocumentSnapshot, ConnectCollectionService, ConnectDocumentService, ConnectFirestoreService, Coupon, CouponCategories, CouponCategory, CouponChannels, CouponFirestoreRepository, CouponOldCategories, CouponSubtypes, CouponTypes, Debug, DebugDecoratorHelper, DebugHelper, DebugNamespaces, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, NotFoundError, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductErrors, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReviews, ProductReviewsHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, StockLimitError, StockOutError, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionMaterialization, SubscriptionMaterializationFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionSummary, SubscriptionSummaryFirestoreRepository, Trace, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, is, isDebuggable, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ export * from './filter';
|
|
|
7
7
|
export * from './filter-option';
|
|
8
8
|
export * from './kit-product';
|
|
9
9
|
export * from './product';
|
|
10
|
+
export * from './product-errors';
|
|
10
11
|
export * from './product-reviews';
|
|
11
12
|
export * from './product-stock-notification';
|
|
12
13
|
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from '../../generic/model';
|
|
2
|
+
import { Product } from './product';
|
|
3
|
+
type ProductErrorsIdentifiers = 'productId';
|
|
4
|
+
export declare class ProductErrors extends BaseModel<ProductErrors, ProductErrorsIdentifiers> {
|
|
5
|
+
productId: string;
|
|
6
|
+
hasErrors: boolean;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
errors: string[];
|
|
10
|
+
product: Product;
|
|
11
|
+
static get identifiersFields(): ProductErrorsIdentifiers[];
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -4,6 +4,7 @@ export * from './category-product.repository';
|
|
|
4
4
|
export * from './category.repository';
|
|
5
5
|
export * from './filter-option.repository';
|
|
6
6
|
export * from './filter.repository';
|
|
7
|
+
export * from './product-errors.repository';
|
|
7
8
|
export * from './product-reviews.repository';
|
|
8
9
|
export * from './product-stock-notification.repository';
|
|
9
10
|
export * from './product.repository';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
-
import { Banner, Benefit, HomeDataStructure
|
|
2
|
+
import { Banner, Benefit, HomeDataStructure } from './types';
|
|
3
3
|
export declare class Home extends BaseModel<Home> {
|
|
4
4
|
benefitsSection: Benefit[];
|
|
5
5
|
blockBanners: Banner[];
|
|
@@ -14,6 +14,5 @@ export declare class Home extends BaseModel<Home> {
|
|
|
14
14
|
id: string;
|
|
15
15
|
data: HomeDataStructure;
|
|
16
16
|
minValueForFreeShipping: number;
|
|
17
|
-
sameDayNotAvaliable: ShopSameDayNotAvailable;
|
|
18
17
|
static get identifiersFields(): GenericIdentifier[];
|
|
19
18
|
}
|
|
@@ -13,6 +13,5 @@ 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';
|
|
17
16
|
export * from './shop-section.type';
|
|
18
17
|
export * from './sub-menu.type';
|
|
@@ -1,21 +1,17 @@
|
|
|
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;
|
|
20
16
|
static get identifiersFields(): GenericIdentifier[];
|
|
21
17
|
}
|
|
@@ -2,9 +2,6 @@ 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';
|
|
8
5
|
export * from './glam-credentials.type';
|
|
9
6
|
export * from './order-tracking-events.type';
|
|
10
7
|
export * from './pagarme-card.type';
|
|
@@ -12,5 +9,3 @@ export * from './pagarme-credentials.type';
|
|
|
12
9
|
export * from './payment-card-info.type';
|
|
13
10
|
export * from './payment-method.type';
|
|
14
11
|
export * from './payment-provider.type';
|
|
15
|
-
export * from './shipping-method-response.type';
|
|
16
|
-
export * from './shipping-product-request.type';
|
|
@@ -2,6 +2,5 @@ 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;
|
|
6
5
|
static get identifiersFields(): UserAddressIdentifiers[];
|
|
7
6
|
}
|
|
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
|
|
|
5
5
|
export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
|
|
6
6
|
new (...args: any[]): {
|
|
7
7
|
[x: string]: any;
|
|
8
|
-
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T
|
|
8
|
+
toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
|
|
9
9
|
isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
|
|
10
10
|
};
|
|
11
11
|
} & TMixinBase;
|
|
@@ -4,6 +4,7 @@ export * from './category-hasura-graphql.repository';
|
|
|
4
4
|
export * from './category-product-hasura-graphql.repository';
|
|
5
5
|
export * from './filter-hasura-graphql.repository';
|
|
6
6
|
export * from './filter-option-hasura-graphql.repository';
|
|
7
|
+
export * from './product-errors-hasura-graphql.repository';
|
|
7
8
|
export * from './product-hasura-graphql.repository';
|
|
8
9
|
export * from './product-review-hasura-graphql.repository';
|
|
9
10
|
export * from './product-stock-notification-hasura-graphql.repository';
|
package/src/infra/hasura-graphql/repositories/catalog/product-errors-hasura-graphql.repository.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductErrors } from '../../../../domain';
|
|
2
|
+
import { ProductErrorsRepository } from '../../../../domain/catalog/repositories';
|
|
3
|
+
import { HasuraConstructorParams } from '../../mixins';
|
|
4
|
+
declare const ProductErrorsHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../..").GraphQLRepository<ProductErrors> & import("../../../../domain").CrudRepository<ProductErrors, import("../../../../domain").CrudParams<ProductErrors>> & import("../../../../domain").UpdateRepository<ProductErrors, import("../../../../domain").RepositoryUpdateParams<ProductErrors>> & {
|
|
5
|
+
paramsToPlain(params: import("../../../../domain").RepositoryUpdateParams<ProductErrors>): Partial<ProductErrors>;
|
|
6
|
+
}, [HasuraConstructorParams<ProductErrors> & import("../../mixins").CreateConstructorParams & import("../../mixins").DeleteConstructorParams & import("../../mixins").GetConstructorParams & import("../../mixins").UpdateConstructorParams, ...any[]]>;
|
|
7
|
+
export declare class ProductErrorsHasuraGraphQLRepository extends ProductErrorsHasuraGraphQLRepository_base implements ProductErrorsRepository {
|
|
8
|
+
constructor({ endpoint, authOptions, interceptors, }: Pick<HasuraConstructorParams<ProductErrors>, 'endpoint' | 'authOptions' | 'interceptors'>);
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|