@infrab4a/connect 5.5.1 → 5.5.2-beta.1
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 +34 -0
- package/index.esm.js +33 -1
- package/package.json +1 -1
- package/src/domain/shop-settings/models/index.d.ts +2 -1
- package/src/domain/shop-settings/models/shop-configs.d.ts +6 -0
- package/src/domain/shop-settings/models/types/index.d.ts +1 -0
- package/src/domain/shop-settings/models/types/shop-error-messages.type.d.ts +8 -0
- package/src/domain/shop-settings/repositories/index.d.ts +1 -0
- package/src/domain/shop-settings/repositories/shop-configs.repository.d.ts +4 -0
- package/src/domain/shop-settings/repositories/shop-settings.repository.d.ts +1 -1
- package/src/errors/enum/error.enum.d.ts +12 -0
- package/src/errors/enum/index.d.ts +1 -0
- package/src/errors/index.d.ts +1 -0
- package/src/infra/firebase/firestore/repositories/shop-settings/index.d.ts +1 -0
- package/src/infra/firebase/firestore/repositories/shop-settings/shop-configs-firestore.repository.d.ts +7 -0
- /package/src/domain/shop-settings/models/{shop-settings.d.ts → shop-page-settings.d.ts} +0 -0
package/index.cjs.js
CHANGED
|
@@ -1724,6 +1724,20 @@ class DuplicatedResultsError extends tsCustomError.CustomError {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
+
exports.ErrorsCode = void 0;
|
|
1728
|
+
(function (ErrorsCode) {
|
|
1729
|
+
ErrorsCode["genericError"] = "generic-error";
|
|
1730
|
+
ErrorsCode["businessError"] = "business-error";
|
|
1731
|
+
ErrorsCode["invalidCheckoutError"] = "invalid-checkout";
|
|
1732
|
+
ErrorsCode["stockLimit"] = "stock-limit";
|
|
1733
|
+
ErrorsCode["stockOut"] = "stock-out";
|
|
1734
|
+
ErrorsCode["fraudPreventionInternal"] = "fraud-prevention-internal";
|
|
1735
|
+
ErrorsCode["fraudPreventionExternal"] = "fraud-prevention-external";
|
|
1736
|
+
ErrorsCode["invalidCardError"] = "invalid-card-error";
|
|
1737
|
+
ErrorsCode["insuficientFundsError"] = "insuficient-funds-error";
|
|
1738
|
+
ErrorsCode["paymentError"] = "payment-error";
|
|
1739
|
+
})(exports.ErrorsCode || (exports.ErrorsCode = {}));
|
|
1740
|
+
|
|
1727
1741
|
class FraudValidationError extends tsCustomError.CustomError {
|
|
1728
1742
|
constructor(message, additionalData) {
|
|
1729
1743
|
super(message);
|
|
@@ -2362,6 +2376,12 @@ class Home extends BaseModel {
|
|
|
2362
2376
|
}
|
|
2363
2377
|
}
|
|
2364
2378
|
|
|
2379
|
+
class ShopConfigs extends BaseModel {
|
|
2380
|
+
static get identifiersFields() {
|
|
2381
|
+
return ['id'];
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2365
2385
|
class ShopMenu extends BaseModel {
|
|
2366
2386
|
static get identifiersFields() {
|
|
2367
2387
|
return ['id'];
|
|
@@ -5151,6 +5171,18 @@ class HomeFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
5151
5171
|
}
|
|
5152
5172
|
}
|
|
5153
5173
|
|
|
5174
|
+
class ShopConfigsFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5175
|
+
constructor({ firestore, interceptors, cache, }) {
|
|
5176
|
+
super({
|
|
5177
|
+
firestore,
|
|
5178
|
+
collectionName: 'shopConfigs',
|
|
5179
|
+
model: ShopConfigs,
|
|
5180
|
+
interceptors,
|
|
5181
|
+
cache,
|
|
5182
|
+
});
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
|
|
5154
5186
|
class ShopMenuFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5155
5187
|
constructor({ firestore, interceptors, cache, }) {
|
|
5156
5188
|
super({
|
|
@@ -11020,6 +11052,8 @@ exports.RoundProductPricesHelper = RoundProductPricesHelper;
|
|
|
11020
11052
|
exports.Sequence = Sequence;
|
|
11021
11053
|
exports.SequenceFirestoreRepository = SequenceFirestoreRepository;
|
|
11022
11054
|
exports.ShippingMethod = ShippingMethod;
|
|
11055
|
+
exports.ShopConfigs = ShopConfigs;
|
|
11056
|
+
exports.ShopConfigsFirestoreRepository = ShopConfigsFirestoreRepository;
|
|
11023
11057
|
exports.ShopMenu = ShopMenu;
|
|
11024
11058
|
exports.ShopMenuFirestoreRepository = ShopMenuFirestoreRepository;
|
|
11025
11059
|
exports.ShopSettings = ShopSettings;
|
package/index.esm.js
CHANGED
|
@@ -1700,6 +1700,20 @@ class DuplicatedResultsError extends CustomError {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
+
var ErrorsCode;
|
|
1704
|
+
(function (ErrorsCode) {
|
|
1705
|
+
ErrorsCode["genericError"] = "generic-error";
|
|
1706
|
+
ErrorsCode["businessError"] = "business-error";
|
|
1707
|
+
ErrorsCode["invalidCheckoutError"] = "invalid-checkout";
|
|
1708
|
+
ErrorsCode["stockLimit"] = "stock-limit";
|
|
1709
|
+
ErrorsCode["stockOut"] = "stock-out";
|
|
1710
|
+
ErrorsCode["fraudPreventionInternal"] = "fraud-prevention-internal";
|
|
1711
|
+
ErrorsCode["fraudPreventionExternal"] = "fraud-prevention-external";
|
|
1712
|
+
ErrorsCode["invalidCardError"] = "invalid-card-error";
|
|
1713
|
+
ErrorsCode["insuficientFundsError"] = "insuficient-funds-error";
|
|
1714
|
+
ErrorsCode["paymentError"] = "payment-error";
|
|
1715
|
+
})(ErrorsCode || (ErrorsCode = {}));
|
|
1716
|
+
|
|
1703
1717
|
class FraudValidationError extends CustomError {
|
|
1704
1718
|
constructor(message, additionalData) {
|
|
1705
1719
|
super(message);
|
|
@@ -2338,6 +2352,12 @@ class Home extends BaseModel {
|
|
|
2338
2352
|
}
|
|
2339
2353
|
}
|
|
2340
2354
|
|
|
2355
|
+
class ShopConfigs extends BaseModel {
|
|
2356
|
+
static get identifiersFields() {
|
|
2357
|
+
return ['id'];
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2341
2361
|
class ShopMenu extends BaseModel {
|
|
2342
2362
|
static get identifiersFields() {
|
|
2343
2363
|
return ['id'];
|
|
@@ -5127,6 +5147,18 @@ class HomeFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
5127
5147
|
}
|
|
5128
5148
|
}
|
|
5129
5149
|
|
|
5150
|
+
class ShopConfigsFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5151
|
+
constructor({ firestore, interceptors, cache, }) {
|
|
5152
|
+
super({
|
|
5153
|
+
firestore,
|
|
5154
|
+
collectionName: 'shopConfigs',
|
|
5155
|
+
model: ShopConfigs,
|
|
5156
|
+
interceptors,
|
|
5157
|
+
cache,
|
|
5158
|
+
});
|
|
5159
|
+
}
|
|
5160
|
+
}
|
|
5161
|
+
|
|
5130
5162
|
class ShopMenuFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5131
5163
|
constructor({ firestore, interceptors, cache, }) {
|
|
5132
5164
|
super({
|
|
@@ -10743,4 +10775,4 @@ class ProductsVertexSearch {
|
|
|
10743
10775
|
}
|
|
10744
10776
|
}
|
|
10745
10777
|
|
|
10746
|
-
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, BrandCategory, BrandCategoryFirestoreRepository, BrandEquityOptions, 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, Group, GroupFirestoreRepository, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, MercadoPagoBankSlipAxiosAdapter, MercadoPagoCardAxiosAdapter, MercadoPagoPaymentMethodFactory, MercadoPagoPixAxiosAdapter, MercadoPagoRequestHelper, MercadoPagoResponseHelper, MercadoPagoStatusDetailEnum, MercadoPagoStatusEnum, NotFoundError, ObsEmitter, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderPaymentStatus, OrderStatus, PagarMeV5OrderStatus, PagarMeV5PaymentStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, PagarmeV5BankSlipAxiosAdapter, PagarmeV5CardAxiosAdapter, PagarmeV5PixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductCatalogHasuraGraphQL, ProductCatalogHasuraGraphQLRepository, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RestCacheAdapter, 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, TransactionPaymentMethods, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, deserialize, getClass, is, isDebuggable, isUUID, parseDateTime, registerClass, resolveClass, serialize, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
|
10778
|
+
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, BrandCategory, BrandCategoryFirestoreRepository, BrandEquityOptions, 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, ErrorsCode, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, Filter, FilterHasuraGraphQLRepository, FilterOption, FilterOptionHasuraGraphQLRepository, FilterType, FirebaseFileUploaderService, FragranceImportances, FraudValidationError, GenderDestination, GlampointsPaymentMethodFactory, GlampointsPaymentService, Group, GroupFirestoreRepository, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, MercadoPagoBankSlipAxiosAdapter, MercadoPagoCardAxiosAdapter, MercadoPagoPaymentMethodFactory, MercadoPagoPixAxiosAdapter, MercadoPagoRequestHelper, MercadoPagoResponseHelper, MercadoPagoStatusDetailEnum, MercadoPagoStatusEnum, NotFoundError, ObsEmitter, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderPaymentStatus, OrderStatus, PagarMeV5OrderStatus, PagarMeV5PaymentStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, PagarmeV5BankSlipAxiosAdapter, PagarmeV5CardAxiosAdapter, PagarmeV5PixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductCatalogHasuraGraphQL, ProductCatalogHasuraGraphQLRepository, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RestCacheAdapter, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopConfigs, ShopConfigsFirestoreRepository, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, Shops, SignInMethods, SignOut, Status, StockLimitError, StockOutError, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionMaterialization, SubscriptionMaterializationFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionSummary, SubscriptionSummaryFirestoreRepository, Trace, TransactionPaymentMethods, UnauthorizedError, UpdateOptionActions, UpdateUserImage, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, VertexAxiosAdapter, WeakPasswordError, Where, Wishlist, WishlistHasuraGraphQLRepository, WishlistLogType, deserialize, getClass, is, isDebuggable, isUUID, parseDateTime, registerClass, resolveClass, serialize, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
package/package.json
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
|
+
import { ShopErrorMessages } from './types';
|
|
3
|
+
export declare class ShopConfigs extends BaseModel<ShopConfigs> {
|
|
4
|
+
errors: ShopErrorMessages[];
|
|
5
|
+
static get identifiersFields(): GenericIdentifier[];
|
|
6
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from './shop-banner.type';
|
|
|
10
10
|
export * from './shop-brands.type';
|
|
11
11
|
export * from './shop-carousel.type';
|
|
12
12
|
export * from './shop-collection.type';
|
|
13
|
+
export * from './shop-error-messages.type';
|
|
13
14
|
export * from './shop-gift.type';
|
|
14
15
|
export * from './shop-home';
|
|
15
16
|
export * from './shop-post.type';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum ErrorsCode {
|
|
2
|
+
genericError = "generic-error",
|
|
3
|
+
businessError = "business-error",
|
|
4
|
+
invalidCheckoutError = "invalid-checkout",
|
|
5
|
+
stockLimit = "stock-limit",
|
|
6
|
+
stockOut = "stock-out",
|
|
7
|
+
fraudPreventionInternal = "fraud-prevention-internal",
|
|
8
|
+
fraudPreventionExternal = "fraud-prevention-external",
|
|
9
|
+
invalidCardError = "invalid-card-error",
|
|
10
|
+
insuficientFundsError = "insuficient-funds-error",
|
|
11
|
+
paymentError = "payment-error"
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './error.enum';
|
package/src/errors/index.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ShopConfigs, ShopConfigsRepository } from '../../../../../domain';
|
|
2
|
+
import { FirestoreConstructorParams } from '../../mixins';
|
|
3
|
+
declare const ShopConfigsFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<ShopConfigs> & import("../../../../../domain").CrudRepository<ShopConfigs, import("../../../../../domain").CrudParams<ShopConfigs>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<ShopConfigs>, ...any[]]>;
|
|
4
|
+
export declare class ShopConfigsFirestoreRepository extends ShopConfigsFirestoreRepository_base implements ShopConfigsRepository {
|
|
5
|
+
constructor({ firestore, interceptors, cache, }: Pick<FirestoreConstructorParams<ShopConfigs>, 'firestore' | 'interceptors' | 'cache'>);
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
File without changes
|