@infrab4a/connect 5.3.0-beta.26 → 5.3.0-beta.28
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 +405 -66
- package/index.esm.js +401 -67
- package/package.json +1 -1
- package/src/domain/catalog/models/enums/shops.enum.d.ts +2 -0
- package/src/domain/catalog/models/product-base.d.ts +1 -0
- package/src/domain/catalog/models/types/product-competitors-price.d.ts +3 -2
- package/src/domain/catalog/repositories/category-product.repository.d.ts +2 -0
- package/src/domain/shop-settings/enums/shop-page-name.enum.d.ts +2 -1
- package/src/domain/shop-settings/models/shop-page-settings.d.ts +4 -1
- package/src/domain/shop-settings/models/types/shop-page-section.type.d.ts +140 -0
- package/src/domain/shopping/models/enums/index.d.ts +3 -0
- package/src/domain/shopping/models/enums/order-status.enum.d.ts +2 -1
- package/src/domain/shopping/models/enums/shopping-recurrence-cycle.enum.d.ts +5 -0
- package/src/domain/shopping/models/enums/shopping-recurrence-edition-status.enum.d.ts +11 -0
- package/src/domain/shopping/models/enums/shopping-recurrence-status.enum.d.ts +7 -0
- package/src/domain/shopping/models/index.d.ts +1 -0
- package/src/domain/shopping/models/order.d.ts +12 -0
- package/src/domain/shopping/models/recurrence/index.d.ts +2 -0
- package/src/domain/shopping/models/recurrence/shopping-recurrence-edition.d.ts +18 -0
- package/src/domain/shopping/models/recurrence/shopping-recurrence.d.ts +45 -0
- package/src/domain/shopping/models/shipping-method.d.ts +2 -0
- package/src/domain/shopping/models/types/index.d.ts +1 -0
- package/src/domain/shopping/models/types/line-item-recurrence.type.d.ts +2 -0
- package/src/domain/shopping/repositories/index.d.ts +1 -0
- package/src/domain/shopping/repositories/recurrence/index.d.ts +2 -0
- package/src/domain/shopping/repositories/recurrence/shopping-recurrence-edition.repository.d.ts +4 -0
- package/src/domain/shopping/repositories/recurrence/shopping-recurrence.repository.d.ts +9 -0
- package/src/domain/shopping/types/create-recurrency-payload.type.d.ts +8 -0
- package/src/domain/shopping/types/index.d.ts +1 -0
- package/src/domain/shopping/types/payment-card-info.type.d.ts +5 -3
- package/src/infra/firebase/firestore/repositories/shopping/index.d.ts +2 -0
- package/src/infra/firebase/firestore/repositories/shopping/shopping-recurrence-edition-firestore.repository.d.ts +7 -0
- package/src/infra/firebase/firestore/repositories/shopping/shopping-recurrence-firestore.repository.d.ts +10 -0
- package/src/infra/hasura-graphql/repositories/catalog/category-product-hasura-graphql.repository.d.ts +2 -0
- package/src/infra/mercado-pago/adapters/mercado-pago-base-axios.d.ts +11 -0
- package/src/infra/mercado-pago/adapters/mercado-pago-card-payment-axios.adapter.d.ts +5 -4
- package/src/infra/mercado-pago/adapters/mercado-pago-pix-payment-axios.adapter.d.ts +4 -3
- package/src/infra/mercado-pago/types/mercado-pago-response.type.d.ts +23 -0
- package/src/infra/pagarme/adapters/v5/index.d.ts +1 -0
- package/src/infra/pagarme/adapters/v5/pagarmev5-base-axios.d.ts +11 -0
- package/src/infra/pagarme/adapters/v5/pagarmev5-card-payment-axios.adapter.d.ts +5 -4
- package/src/infra/pagarme/adapters/v5/pagarmev5-pix-payment-axios.adapter.d.ts +4 -3
- package/src/infra/pagarme/types/v5/pagarmev5-order-response.type.d.ts +115 -0
package/index.esm.js
CHANGED
|
@@ -691,6 +691,8 @@ var Shops;
|
|
|
691
691
|
Shops["MENSMARKET"] = "mensmarket";
|
|
692
692
|
Shops["GLAMSHOP"] = "Glamshop";
|
|
693
693
|
Shops["GLAMPOINTS"] = "Glampoints";
|
|
694
|
+
Shops["GLAMBEAUTY"] = "Glambeauty";
|
|
695
|
+
Shops["ELLA"] = "ella";
|
|
694
696
|
Shops["ALL"] = "ALL";
|
|
695
697
|
})(Shops || (Shops = {}));
|
|
696
698
|
|
|
@@ -1667,8 +1669,38 @@ var OrderStatus;
|
|
|
1667
1669
|
OrderStatus["ENTREGUE"] = "Entregue";
|
|
1668
1670
|
OrderStatus["CANCELADO"] = "Cancelado";
|
|
1669
1671
|
OrderStatus["PENDENTE_REENVIO"] = "Pendente reenvio";
|
|
1672
|
+
OrderStatus["AGUARDANDO_STOCK_REENVIO"] = "Aguardando stock para reenvio";
|
|
1670
1673
|
})(OrderStatus || (OrderStatus = {}));
|
|
1671
1674
|
|
|
1675
|
+
var ShoppingRecurrenceCycle;
|
|
1676
|
+
(function (ShoppingRecurrenceCycle) {
|
|
1677
|
+
ShoppingRecurrenceCycle[ShoppingRecurrenceCycle["MONTHLY"] = 1] = "MONTHLY";
|
|
1678
|
+
ShoppingRecurrenceCycle[ShoppingRecurrenceCycle["BIMONTHLY"] = 2] = "BIMONTHLY";
|
|
1679
|
+
ShoppingRecurrenceCycle[ShoppingRecurrenceCycle["QUARTERLY"] = 3] = "QUARTERLY";
|
|
1680
|
+
})(ShoppingRecurrenceCycle || (ShoppingRecurrenceCycle = {}));
|
|
1681
|
+
|
|
1682
|
+
var ShoppingRecurrenceEditionStatus;
|
|
1683
|
+
(function (ShoppingRecurrenceEditionStatus) {
|
|
1684
|
+
ShoppingRecurrenceEditionStatus["SCHEDULED"] = "scheduled";
|
|
1685
|
+
ShoppingRecurrenceEditionStatus["PAUSED"] = "paused";
|
|
1686
|
+
ShoppingRecurrenceEditionStatus["SKIPPED"] = "skipped";
|
|
1687
|
+
ShoppingRecurrenceEditionStatus["PROCESSING"] = "processing";
|
|
1688
|
+
ShoppingRecurrenceEditionStatus["FINISHED"] = "finished";
|
|
1689
|
+
ShoppingRecurrenceEditionStatus["PAYMENT_FAIL"] = "payment_fail";
|
|
1690
|
+
ShoppingRecurrenceEditionStatus["AWAITING_PAYMENT"] = "awaiting_payment";
|
|
1691
|
+
ShoppingRecurrenceEditionStatus["STOCK_VALIDATION"] = "stock_validation";
|
|
1692
|
+
ShoppingRecurrenceEditionStatus["CANCELLED"] = "cancelled";
|
|
1693
|
+
})(ShoppingRecurrenceEditionStatus || (ShoppingRecurrenceEditionStatus = {}));
|
|
1694
|
+
|
|
1695
|
+
var ShoppingRecurrenceStatus;
|
|
1696
|
+
(function (ShoppingRecurrenceStatus) {
|
|
1697
|
+
ShoppingRecurrenceStatus["ACTIVE"] = "active";
|
|
1698
|
+
ShoppingRecurrenceStatus["PAUSED"] = "paused";
|
|
1699
|
+
ShoppingRecurrenceStatus["CANCELLED"] = "cancelled";
|
|
1700
|
+
ShoppingRecurrenceStatus["PAYMENT_FAILED"] = "payment_failed";
|
|
1701
|
+
ShoppingRecurrenceStatus["WAITING_STOCK"] = "waiting_stock";
|
|
1702
|
+
})(ShoppingRecurrenceStatus || (ShoppingRecurrenceStatus = {}));
|
|
1703
|
+
|
|
1672
1704
|
class Order extends Checkout {
|
|
1673
1705
|
}
|
|
1674
1706
|
__decorate([
|
|
@@ -1682,6 +1714,38 @@ class OrderBlocked extends BaseModel {
|
|
|
1682
1714
|
}
|
|
1683
1715
|
}
|
|
1684
1716
|
|
|
1717
|
+
class ShoppingRecurrence extends BaseModel {
|
|
1718
|
+
static get identifiersFields() {
|
|
1719
|
+
return ['id'];
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
__decorate([
|
|
1723
|
+
Type(() => User),
|
|
1724
|
+
__metadata("design:type", User)
|
|
1725
|
+
], ShoppingRecurrence.prototype, "user", void 0);
|
|
1726
|
+
__decorate([
|
|
1727
|
+
Type(() => UserAddress),
|
|
1728
|
+
__metadata("design:type", UserAddress)
|
|
1729
|
+
], ShoppingRecurrence.prototype, "shippingAddress", void 0);
|
|
1730
|
+
__decorate([
|
|
1731
|
+
Type(() => UserAddress),
|
|
1732
|
+
__metadata("design:type", UserAddress)
|
|
1733
|
+
], ShoppingRecurrence.prototype, "billingAddress", void 0);
|
|
1734
|
+
__decorate([
|
|
1735
|
+
Type(() => ShippingMethod),
|
|
1736
|
+
__metadata("design:type", ShippingMethod)
|
|
1737
|
+
], ShoppingRecurrence.prototype, "shipping", void 0);
|
|
1738
|
+
__decorate([
|
|
1739
|
+
Type(() => Coupon),
|
|
1740
|
+
__metadata("design:type", Coupon)
|
|
1741
|
+
], ShoppingRecurrence.prototype, "coupon", void 0);
|
|
1742
|
+
|
|
1743
|
+
class ShoppingRecurrenceEdition extends BaseModel {
|
|
1744
|
+
static get identifiersFields() {
|
|
1745
|
+
return ['id'];
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1685
1749
|
class CheckoutSubscription extends BaseModel {
|
|
1686
1750
|
static get identifiersFields() {
|
|
1687
1751
|
return ['id'];
|
|
@@ -2316,6 +2380,7 @@ var ShopPageName;
|
|
|
2316
2380
|
ShopPageName["LP_GLAMQUEENS"] = "LP_GLAMQUEENS";
|
|
2317
2381
|
ShopPageName["LP_INVITE"] = "LP_INVITE";
|
|
2318
2382
|
ShopPageName["LP_LIVELO"] = "LP_LIVELO";
|
|
2383
|
+
ShopPageName["GLAM_NEW_HOME"] = "GLAM_NEW_HOME";
|
|
2319
2384
|
})(ShopPageName || (ShopPageName = {}));
|
|
2320
2385
|
|
|
2321
2386
|
class BeautyQuestionsHelper {
|
|
@@ -2393,10 +2458,88 @@ class ShopMenu extends BaseModel {
|
|
|
2393
2458
|
}
|
|
2394
2459
|
}
|
|
2395
2460
|
|
|
2461
|
+
var ShopPageSectionType;
|
|
2462
|
+
(function (ShopPageSectionType) {
|
|
2463
|
+
ShopPageSectionType["LIVE"] = "LIVE";
|
|
2464
|
+
ShopPageSectionType["CAROUSEL"] = "CAROUSEL";
|
|
2465
|
+
ShopPageSectionType["BANNER"] = "BANNER";
|
|
2466
|
+
ShopPageSectionType["INFOBARS"] = "INFOBARS";
|
|
2467
|
+
ShopPageSectionType["HIGHLIGHTS"] = "HIGHLIGHTS";
|
|
2468
|
+
ShopPageSectionType["SUBSCRIBER_INFO"] = "SUBSCRIBER_INFO";
|
|
2469
|
+
ShopPageSectionType["COLLECTION"] = "COLLECTION";
|
|
2470
|
+
ShopPageSectionType["BEAUTY_PROFILE_COLLECTION"] = "BEAUTY_PROFILE_COLLECTION";
|
|
2471
|
+
ShopPageSectionType["PLANS"] = "PLANS";
|
|
2472
|
+
ShopPageSectionType["SINGLE_PLAN"] = "SINGLE_PLAN";
|
|
2473
|
+
ShopPageSectionType["BRANDS"] = "BRANDS";
|
|
2474
|
+
ShopPageSectionType["NEWSLETTER"] = "NEWSLETTER";
|
|
2475
|
+
})(ShopPageSectionType || (ShopPageSectionType = {}));
|
|
2476
|
+
|
|
2477
|
+
/* eslint-disable max-lines-per-function */
|
|
2396
2478
|
class ShopSettings extends BaseModel {
|
|
2397
2479
|
static get identifiersFields() {
|
|
2398
2480
|
return ['id'];
|
|
2399
2481
|
}
|
|
2482
|
+
getPageSections(displayRules) {
|
|
2483
|
+
const now = new Date();
|
|
2484
|
+
return (Array.isArray(this.sections) ? this.sections : [])
|
|
2485
|
+
.map((section) => {
|
|
2486
|
+
// Filtra banners dentro de carrousel
|
|
2487
|
+
if (section.type === ShopPageSectionType.CAROUSEL && Array.isArray(section.banners)) {
|
|
2488
|
+
const filteredBanners = section.banners.filter((banner) => {
|
|
2489
|
+
// Filtra por displayRules
|
|
2490
|
+
const rulesMatch = banner.displayRules.length
|
|
2491
|
+
? banner.displayRules.some((rule) => Object.keys(rule).every((key) => rule[key] === displayRules[key]))
|
|
2492
|
+
: true;
|
|
2493
|
+
// Filtra por publishDate e expirationDate
|
|
2494
|
+
const publishOk = !banner.publishDate || now >= new Date(banner.publishDate);
|
|
2495
|
+
const expireOk = !banner.expirationDate || now <= new Date(banner.expirationDate);
|
|
2496
|
+
return rulesMatch && publishOk && expireOk;
|
|
2497
|
+
});
|
|
2498
|
+
return { ...section, banners: filteredBanners };
|
|
2499
|
+
}
|
|
2500
|
+
// Filtra highlights
|
|
2501
|
+
if (section.type === ShopPageSectionType.HIGHLIGHTS && Array.isArray(section.highlights)) {
|
|
2502
|
+
const filteredHighlights = section.highlights.filter((highlight) => {
|
|
2503
|
+
// Filtra por displayRules
|
|
2504
|
+
const rulesMatch = highlight.displayRules.length
|
|
2505
|
+
? highlight.displayRules.some((rule) => Object.keys(rule).every((key) => rule[key] === displayRules[key]))
|
|
2506
|
+
: true;
|
|
2507
|
+
return rulesMatch;
|
|
2508
|
+
});
|
|
2509
|
+
const sortedHighlights = !displayRules.beautyProfile
|
|
2510
|
+
? filteredHighlights.sort((a, b) => (a.starred === b.starred ? 0 : a.starred ? -1 : 1))
|
|
2511
|
+
: filteredHighlights;
|
|
2512
|
+
return { ...section, highlights: sortedHighlights };
|
|
2513
|
+
}
|
|
2514
|
+
// Filtra collections
|
|
2515
|
+
if (section.type === ShopPageSectionType.COLLECTION) {
|
|
2516
|
+
const rulesMatch = section.displayRules.length
|
|
2517
|
+
? section.displayRules.some((rule) => Object.keys(rule).every((key) => rule[key] === displayRules[key]))
|
|
2518
|
+
: true;
|
|
2519
|
+
const publishOk = !section.publishDate || now >= new Date(section.publishDate);
|
|
2520
|
+
const expireOk = !section.expirationDate || now <= new Date(section.expirationDate);
|
|
2521
|
+
return rulesMatch && publishOk && expireOk ? section : null;
|
|
2522
|
+
}
|
|
2523
|
+
// Filtra banners
|
|
2524
|
+
if (section.type === ShopPageSectionType.BANNER) {
|
|
2525
|
+
const rulesMatch = section.displayRules.length
|
|
2526
|
+
? section.displayRules.some((rule) => Object.keys(rule).every((key) => rule[key] === displayRules[key]))
|
|
2527
|
+
: true;
|
|
2528
|
+
const publishOk = !section.publishDate || now >= new Date(section.publishDate);
|
|
2529
|
+
const expireOk = !section.expirationDate || now <= new Date(section.expirationDate);
|
|
2530
|
+
return rulesMatch && publishOk && expireOk ? section : null;
|
|
2531
|
+
}
|
|
2532
|
+
if (section.type === ShopPageSectionType.LIVE) {
|
|
2533
|
+
return section.active ? section : null;
|
|
2534
|
+
}
|
|
2535
|
+
if (section.type === ShopPageSectionType.PLANS || section.type === ShopPageSectionType.SINGLE_PLAN) {
|
|
2536
|
+
return displayRules.notSubscriber ? section : null;
|
|
2537
|
+
}
|
|
2538
|
+
// Demais seções retornam normalmente
|
|
2539
|
+
return section;
|
|
2540
|
+
})
|
|
2541
|
+
.filter(Boolean);
|
|
2542
|
+
}
|
|
2400
2543
|
}
|
|
2401
2544
|
|
|
2402
2545
|
class AdyenBlockedOrderHelper {
|
|
@@ -5403,6 +5546,62 @@ class PaymentFirestoreRepository extends withCrudFirestore(withHelpers(withFires
|
|
|
5403
5546
|
}
|
|
5404
5547
|
}
|
|
5405
5548
|
|
|
5549
|
+
class ShoppingRecurrenceEditionFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5550
|
+
constructor({ firestore, interceptors, cache, }) {
|
|
5551
|
+
super({
|
|
5552
|
+
firestore,
|
|
5553
|
+
collectionName: 'shoppingRecurrenceEditions',
|
|
5554
|
+
model: ShoppingRecurrenceEdition,
|
|
5555
|
+
interceptors,
|
|
5556
|
+
cache,
|
|
5557
|
+
});
|
|
5558
|
+
}
|
|
5559
|
+
}
|
|
5560
|
+
|
|
5561
|
+
class ShoppingRecurrenceFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5562
|
+
constructor({ firestore, interceptors, cache, }) {
|
|
5563
|
+
super({
|
|
5564
|
+
firestore,
|
|
5565
|
+
collectionName: 'shoppingRecurrences',
|
|
5566
|
+
model: ShoppingRecurrence,
|
|
5567
|
+
interceptors,
|
|
5568
|
+
cache,
|
|
5569
|
+
});
|
|
5570
|
+
}
|
|
5571
|
+
async findByUserId(userId) {
|
|
5572
|
+
const result = await this.find({
|
|
5573
|
+
filters: {
|
|
5574
|
+
user: {
|
|
5575
|
+
id: userId,
|
|
5576
|
+
},
|
|
5577
|
+
},
|
|
5578
|
+
});
|
|
5579
|
+
return result.data;
|
|
5580
|
+
}
|
|
5581
|
+
async findByUserIdAndStatus(userId, status) {
|
|
5582
|
+
const result = await this.find({
|
|
5583
|
+
filters: {
|
|
5584
|
+
user: {
|
|
5585
|
+
id: userId,
|
|
5586
|
+
},
|
|
5587
|
+
status,
|
|
5588
|
+
},
|
|
5589
|
+
});
|
|
5590
|
+
return result.data;
|
|
5591
|
+
}
|
|
5592
|
+
async findByUserAndShop(userId, shop) {
|
|
5593
|
+
const result = await this.find({
|
|
5594
|
+
filters: {
|
|
5595
|
+
user: {
|
|
5596
|
+
id: userId,
|
|
5597
|
+
},
|
|
5598
|
+
shop,
|
|
5599
|
+
},
|
|
5600
|
+
});
|
|
5601
|
+
return result.data;
|
|
5602
|
+
}
|
|
5603
|
+
}
|
|
5604
|
+
|
|
5406
5605
|
class SubscriptionPlanFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
5407
5606
|
constructor({ firestore, interceptors, cache, }) {
|
|
5408
5607
|
super({
|
|
@@ -7207,6 +7406,26 @@ class CategoryProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withH
|
|
|
7207
7406
|
},
|
|
7208
7407
|
});
|
|
7209
7408
|
}
|
|
7409
|
+
async removeProductFromAllCategories(productId) {
|
|
7410
|
+
this.logger = DebugHelper.from(this, 'removeProductFromAllCategories');
|
|
7411
|
+
await this.mutation('delete_category_product', ['affected_rows'], {
|
|
7412
|
+
where: {
|
|
7413
|
+
type: 'category_product_bool_exp',
|
|
7414
|
+
required: true,
|
|
7415
|
+
value: { product_id: { _eq: productId } },
|
|
7416
|
+
},
|
|
7417
|
+
});
|
|
7418
|
+
}
|
|
7419
|
+
async removeCategoryFromAllProducts(categoryId) {
|
|
7420
|
+
this.logger = DebugHelper.from(this, 'removeCategoryFromAllProducts');
|
|
7421
|
+
await this.mutation('delete_category_product', ['affected_rows'], {
|
|
7422
|
+
where: {
|
|
7423
|
+
type: 'category_product_bool_exp',
|
|
7424
|
+
required: true,
|
|
7425
|
+
value: { category_id: { _eq: categoryId } },
|
|
7426
|
+
},
|
|
7427
|
+
});
|
|
7428
|
+
}
|
|
7210
7429
|
}
|
|
7211
7430
|
|
|
7212
7431
|
const fieldsConfiguration$3 = [
|
|
@@ -7926,6 +8145,7 @@ const commonFields = [
|
|
|
7926
8145
|
'validity',
|
|
7927
8146
|
{ tagsCollection: { columnName: 'tags_collection', type: HasuraGraphQLColumnType.Jsonb } },
|
|
7928
8147
|
{ tagsProfile: { columnName: 'tags_profile', type: HasuraGraphQLColumnType.Jsonb } },
|
|
8148
|
+
{ tagsSupply: { columnName: 'tags_supply', type: HasuraGraphQLColumnType.Jsonb } },
|
|
7929
8149
|
{ daysOfUse: { columnName: 'days_of_use' } },
|
|
7930
8150
|
{ showVariants: { columnName: 'show_variants' } },
|
|
7931
8151
|
{ variantSlug: { columnName: 'variant_slug' } },
|
|
@@ -8926,6 +9146,7 @@ const fieldsConfiguration$1 = [
|
|
|
8926
9146
|
'published',
|
|
8927
9147
|
{ tagsCollection: { columnName: 'tags_collection', type: HasuraGraphQLColumnType.Jsonb } },
|
|
8928
9148
|
{ tagsProfile: { columnName: 'tags_profile', type: HasuraGraphQLColumnType.Jsonb } },
|
|
9149
|
+
{ tagsSupply: { columnName: 'tags_supply', type: HasuraGraphQLColumnType.Jsonb } },
|
|
8929
9150
|
{ daysOfUse: { columnName: 'days_of_use' } },
|
|
8930
9151
|
{
|
|
8931
9152
|
images: {
|
|
@@ -9537,7 +9758,7 @@ class MercadoPagoRequestHelper {
|
|
|
9537
9758
|
checkoutId: checkout.id,
|
|
9538
9759
|
},
|
|
9539
9760
|
payer: this.buildPayer(checkout, card),
|
|
9540
|
-
statement_descriptor: checkout.shop === Shops.GLAMSHOP ? '
|
|
9761
|
+
statement_descriptor: checkout.shop === Shops.GLAMSHOP ? 'loja glam' : 'mens market',
|
|
9541
9762
|
additional_info: {
|
|
9542
9763
|
items: this.buildItems(checkout),
|
|
9543
9764
|
},
|
|
@@ -9753,8 +9974,113 @@ class MercadoPagoBankSlipAxiosAdapter {
|
|
|
9753
9974
|
}
|
|
9754
9975
|
}
|
|
9755
9976
|
|
|
9756
|
-
|
|
9977
|
+
var MercadoPagoStatusDetailEnum;
|
|
9978
|
+
(function (MercadoPagoStatusDetailEnum) {
|
|
9979
|
+
MercadoPagoStatusDetailEnum["accredited"] = "accredited";
|
|
9980
|
+
MercadoPagoStatusDetailEnum["partially_refunded"] = "partially_refunded";
|
|
9981
|
+
MercadoPagoStatusDetailEnum["pending_capture"] = "pending_capture";
|
|
9982
|
+
MercadoPagoStatusDetailEnum["offline_process"] = "offline_process";
|
|
9983
|
+
MercadoPagoStatusDetailEnum["pending_contingency"] = "pending_contingency";
|
|
9984
|
+
MercadoPagoStatusDetailEnum["pending_review_manual"] = "pending_review_manual";
|
|
9985
|
+
MercadoPagoStatusDetailEnum["pending_waiting_transfer"] = "pending_waiting_transfer";
|
|
9986
|
+
MercadoPagoStatusDetailEnum["pending_waiting_payment"] = "pending_waiting_payment";
|
|
9987
|
+
MercadoPagoStatusDetailEnum["pending_challenge"] = "pending_challenge";
|
|
9988
|
+
MercadoPagoStatusDetailEnum["bank_error"] = "bank_error";
|
|
9989
|
+
MercadoPagoStatusDetailEnum["cc_rejected_3ds_mandatory"] = "cc_rejected_3ds_mandatory";
|
|
9990
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_card_number"] = "cc_rejected_bad_filled_card_number";
|
|
9991
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_date"] = "cc_rejected_bad_filled_date";
|
|
9992
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_other"] = "cc_rejected_bad_filled_other";
|
|
9993
|
+
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_security_code"] = "cc_rejected_bad_filled_security_code";
|
|
9994
|
+
MercadoPagoStatusDetailEnum["cc_rejected_blacklist"] = "cc_rejected_blacklist";
|
|
9995
|
+
MercadoPagoStatusDetailEnum["cc_rejected_call_for_authorize"] = "cc_rejected_call_for_authorize";
|
|
9996
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_disabled"] = "cc_rejected_card_disabled";
|
|
9997
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_error"] = "cc_rejected_card_error";
|
|
9998
|
+
MercadoPagoStatusDetailEnum["cc_rejected_duplicated_payment"] = "cc_rejected_duplicated_payment";
|
|
9999
|
+
MercadoPagoStatusDetailEnum["cc_rejected_high_risk"] = "cc_rejected_high_risk";
|
|
10000
|
+
MercadoPagoStatusDetailEnum["cc_rejected_insufficient_amount"] = "cc_rejected_insufficient_amount";
|
|
10001
|
+
MercadoPagoStatusDetailEnum["cc_rejected_invalid_installments"] = "cc_rejected_invalid_installments";
|
|
10002
|
+
MercadoPagoStatusDetailEnum["cc_rejected_max_attempts"] = "cc_rejected_max_attempts";
|
|
10003
|
+
MercadoPagoStatusDetailEnum["cc_rejected_other_reason"] = "cc_rejected_other_reason";
|
|
10004
|
+
MercadoPagoStatusDetailEnum["cc_amount_rate_limit_exceeded"] = "cc_amount_rate_limit_exceeded";
|
|
10005
|
+
MercadoPagoStatusDetailEnum["rejected_insufficient_data"] = "rejected_insufficient_data";
|
|
10006
|
+
MercadoPagoStatusDetailEnum["rejected_by_bank"] = "rejected_by_bank";
|
|
10007
|
+
MercadoPagoStatusDetailEnum["rejected_by_regulations"] = "rejected_by_regulations";
|
|
10008
|
+
MercadoPagoStatusDetailEnum["insufficient_amount"] = "insufficient_amount";
|
|
10009
|
+
MercadoPagoStatusDetailEnum["cc_rejected_card_type_not_allowed"] = "cc_rejected_card_type_not_allowed";
|
|
10010
|
+
})(MercadoPagoStatusDetailEnum || (MercadoPagoStatusDetailEnum = {}));
|
|
10011
|
+
|
|
10012
|
+
var MercadoPagoStatusEnum;
|
|
10013
|
+
(function (MercadoPagoStatusEnum) {
|
|
10014
|
+
MercadoPagoStatusEnum["approved"] = "approved";
|
|
10015
|
+
MercadoPagoStatusEnum["authorized"] = "authorized";
|
|
10016
|
+
MercadoPagoStatusEnum["pending"] = "pending";
|
|
10017
|
+
MercadoPagoStatusEnum["in_process"] = "in_process";
|
|
10018
|
+
MercadoPagoStatusEnum["rejected"] = "rejected";
|
|
10019
|
+
MercadoPagoStatusEnum["cancelled"] = "cancelled";
|
|
10020
|
+
MercadoPagoStatusEnum["refunded"] = "refunded";
|
|
10021
|
+
MercadoPagoStatusEnum["charged_back"] = "charged_back";
|
|
10022
|
+
})(MercadoPagoStatusEnum || (MercadoPagoStatusEnum = {}));
|
|
10023
|
+
|
|
10024
|
+
class MercadoPagoBaseAxiosAdapter {
|
|
10025
|
+
constructor(credentials, paymentRepository) {
|
|
10026
|
+
this.credentials = credentials;
|
|
10027
|
+
this.paymentRepository = paymentRepository;
|
|
10028
|
+
}
|
|
10029
|
+
async refund(order, amount) {
|
|
10030
|
+
const { data } = await axios({
|
|
10031
|
+
method: 'POST',
|
|
10032
|
+
url: `${this.credentials.url}/v1/payments/${order.payment.id}/refunds`,
|
|
10033
|
+
headers: {
|
|
10034
|
+
'X-Idempotency-Key': `${order.payment.charger_id}-${new Date().getTime()}`,
|
|
10035
|
+
Authorization: `Bearer ${this.credentials.api_key}`,
|
|
10036
|
+
'Content-Type': 'application/json',
|
|
10037
|
+
},
|
|
10038
|
+
data: {
|
|
10039
|
+
amount: +amount.toFixed(2),
|
|
10040
|
+
},
|
|
10041
|
+
});
|
|
10042
|
+
await this.paymentRepository.create({
|
|
10043
|
+
createdAt: new Date(),
|
|
10044
|
+
updatedAt: new Date(),
|
|
10045
|
+
userId: order.user.id,
|
|
10046
|
+
orderId: order.id,
|
|
10047
|
+
totalPrice: amount,
|
|
10048
|
+
paymentProvider: PaymentProviders.MERCADOPAGO,
|
|
10049
|
+
mercadoPagoId: data.id,
|
|
10050
|
+
transaction: data,
|
|
10051
|
+
});
|
|
10052
|
+
console.warn('[RESPONSE MERCADO PAGO REFUND]', JSON.stringify(data));
|
|
10053
|
+
return {
|
|
10054
|
+
status: this.getRefundStatus(data.status),
|
|
10055
|
+
success: [
|
|
10056
|
+
MercadoPagoStatusEnum.approved,
|
|
10057
|
+
MercadoPagoStatusEnum.refunded,
|
|
10058
|
+
MercadoPagoStatusEnum.cancelled,
|
|
10059
|
+
MercadoPagoStatusEnum.authorized,
|
|
10060
|
+
].includes(data.status)
|
|
10061
|
+
? true
|
|
10062
|
+
: false,
|
|
10063
|
+
};
|
|
10064
|
+
}
|
|
10065
|
+
getRefundStatus(status) {
|
|
10066
|
+
if ([MercadoPagoStatusEnum.in_process, MercadoPagoStatusEnum.pending].includes(status)) {
|
|
10067
|
+
return 'processing';
|
|
10068
|
+
}
|
|
10069
|
+
if ([
|
|
10070
|
+
MercadoPagoStatusEnum.approved,
|
|
10071
|
+
MercadoPagoStatusEnum.refunded,
|
|
10072
|
+
MercadoPagoStatusEnum.cancelled,
|
|
10073
|
+
MercadoPagoStatusEnum.authorized,
|
|
10074
|
+
].includes(status)) {
|
|
10075
|
+
return 'success';
|
|
10076
|
+
}
|
|
10077
|
+
return 'unknown';
|
|
10078
|
+
}
|
|
10079
|
+
}
|
|
10080
|
+
|
|
10081
|
+
class MercadoPagoCardAxiosAdapter extends MercadoPagoBaseAxiosAdapter {
|
|
9757
10082
|
constructor(credentials, paymentRepository, orderBlockedRepository) {
|
|
10083
|
+
super(credentials, paymentRepository);
|
|
9758
10084
|
this.credentials = credentials;
|
|
9759
10085
|
this.paymentRepository = paymentRepository;
|
|
9760
10086
|
this.orderBlockedRepository = orderBlockedRepository;
|
|
@@ -9883,8 +10209,9 @@ class MercadoPagoCardAxiosAdapter {
|
|
|
9883
10209
|
}
|
|
9884
10210
|
}
|
|
9885
10211
|
|
|
9886
|
-
class MercadoPagoPixAxiosAdapter {
|
|
10212
|
+
class MercadoPagoPixAxiosAdapter extends MercadoPagoBaseAxiosAdapter {
|
|
9887
10213
|
constructor(credentials, paymentRepository) {
|
|
10214
|
+
super(credentials, paymentRepository);
|
|
9888
10215
|
this.credentials = credentials;
|
|
9889
10216
|
this.paymentRepository = paymentRepository;
|
|
9890
10217
|
}
|
|
@@ -9923,53 +10250,6 @@ class MercadoPagoPixAxiosAdapter {
|
|
|
9923
10250
|
}
|
|
9924
10251
|
}
|
|
9925
10252
|
|
|
9926
|
-
var MercadoPagoStatusDetailEnum;
|
|
9927
|
-
(function (MercadoPagoStatusDetailEnum) {
|
|
9928
|
-
MercadoPagoStatusDetailEnum["accredited"] = "accredited";
|
|
9929
|
-
MercadoPagoStatusDetailEnum["partially_refunded"] = "partially_refunded";
|
|
9930
|
-
MercadoPagoStatusDetailEnum["pending_capture"] = "pending_capture";
|
|
9931
|
-
MercadoPagoStatusDetailEnum["offline_process"] = "offline_process";
|
|
9932
|
-
MercadoPagoStatusDetailEnum["pending_contingency"] = "pending_contingency";
|
|
9933
|
-
MercadoPagoStatusDetailEnum["pending_review_manual"] = "pending_review_manual";
|
|
9934
|
-
MercadoPagoStatusDetailEnum["pending_waiting_transfer"] = "pending_waiting_transfer";
|
|
9935
|
-
MercadoPagoStatusDetailEnum["pending_waiting_payment"] = "pending_waiting_payment";
|
|
9936
|
-
MercadoPagoStatusDetailEnum["pending_challenge"] = "pending_challenge";
|
|
9937
|
-
MercadoPagoStatusDetailEnum["bank_error"] = "bank_error";
|
|
9938
|
-
MercadoPagoStatusDetailEnum["cc_rejected_3ds_mandatory"] = "cc_rejected_3ds_mandatory";
|
|
9939
|
-
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_card_number"] = "cc_rejected_bad_filled_card_number";
|
|
9940
|
-
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_date"] = "cc_rejected_bad_filled_date";
|
|
9941
|
-
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_other"] = "cc_rejected_bad_filled_other";
|
|
9942
|
-
MercadoPagoStatusDetailEnum["cc_rejected_bad_filled_security_code"] = "cc_rejected_bad_filled_security_code";
|
|
9943
|
-
MercadoPagoStatusDetailEnum["cc_rejected_blacklist"] = "cc_rejected_blacklist";
|
|
9944
|
-
MercadoPagoStatusDetailEnum["cc_rejected_call_for_authorize"] = "cc_rejected_call_for_authorize";
|
|
9945
|
-
MercadoPagoStatusDetailEnum["cc_rejected_card_disabled"] = "cc_rejected_card_disabled";
|
|
9946
|
-
MercadoPagoStatusDetailEnum["cc_rejected_card_error"] = "cc_rejected_card_error";
|
|
9947
|
-
MercadoPagoStatusDetailEnum["cc_rejected_duplicated_payment"] = "cc_rejected_duplicated_payment";
|
|
9948
|
-
MercadoPagoStatusDetailEnum["cc_rejected_high_risk"] = "cc_rejected_high_risk";
|
|
9949
|
-
MercadoPagoStatusDetailEnum["cc_rejected_insufficient_amount"] = "cc_rejected_insufficient_amount";
|
|
9950
|
-
MercadoPagoStatusDetailEnum["cc_rejected_invalid_installments"] = "cc_rejected_invalid_installments";
|
|
9951
|
-
MercadoPagoStatusDetailEnum["cc_rejected_max_attempts"] = "cc_rejected_max_attempts";
|
|
9952
|
-
MercadoPagoStatusDetailEnum["cc_rejected_other_reason"] = "cc_rejected_other_reason";
|
|
9953
|
-
MercadoPagoStatusDetailEnum["cc_amount_rate_limit_exceeded"] = "cc_amount_rate_limit_exceeded";
|
|
9954
|
-
MercadoPagoStatusDetailEnum["rejected_insufficient_data"] = "rejected_insufficient_data";
|
|
9955
|
-
MercadoPagoStatusDetailEnum["rejected_by_bank"] = "rejected_by_bank";
|
|
9956
|
-
MercadoPagoStatusDetailEnum["rejected_by_regulations"] = "rejected_by_regulations";
|
|
9957
|
-
MercadoPagoStatusDetailEnum["insufficient_amount"] = "insufficient_amount";
|
|
9958
|
-
MercadoPagoStatusDetailEnum["cc_rejected_card_type_not_allowed"] = "cc_rejected_card_type_not_allowed";
|
|
9959
|
-
})(MercadoPagoStatusDetailEnum || (MercadoPagoStatusDetailEnum = {}));
|
|
9960
|
-
|
|
9961
|
-
var MercadoPagoStatusEnum;
|
|
9962
|
-
(function (MercadoPagoStatusEnum) {
|
|
9963
|
-
MercadoPagoStatusEnum["approved"] = "approved";
|
|
9964
|
-
MercadoPagoStatusEnum["authorized"] = "authorized";
|
|
9965
|
-
MercadoPagoStatusEnum["pending"] = "pending";
|
|
9966
|
-
MercadoPagoStatusEnum["in_process"] = "in_process";
|
|
9967
|
-
MercadoPagoStatusEnum["rejected"] = "rejected";
|
|
9968
|
-
MercadoPagoStatusEnum["cancelled"] = "cancelled";
|
|
9969
|
-
MercadoPagoStatusEnum["refunded"] = "refunded";
|
|
9970
|
-
MercadoPagoStatusEnum["charged_back"] = "charged_back";
|
|
9971
|
-
})(MercadoPagoStatusEnum || (MercadoPagoStatusEnum = {}));
|
|
9972
|
-
|
|
9973
10253
|
class PagarmeBankSlipAxiosAdapter {
|
|
9974
10254
|
constructor(credentials, paymentRepository) {
|
|
9975
10255
|
this.credentials = credentials;
|
|
@@ -10097,6 +10377,14 @@ class PagarMeErrorHelper {
|
|
|
10097
10377
|
case '1070':
|
|
10098
10378
|
case '2001':
|
|
10099
10379
|
case '2004':
|
|
10380
|
+
case '5025':
|
|
10381
|
+
case '9124':
|
|
10382
|
+
return ErrorsCode.invalidCardError;
|
|
10383
|
+
// Dados obrigatórios ausentes
|
|
10384
|
+
case '1044':
|
|
10385
|
+
case '5034':
|
|
10386
|
+
case '5047':
|
|
10387
|
+
case '5061':
|
|
10100
10388
|
return ErrorsCode.invalidCardError;
|
|
10101
10389
|
// Suspeita de fraude, prevenção do banco
|
|
10102
10390
|
case '1002':
|
|
@@ -10108,6 +10396,7 @@ class PagarMeErrorHelper {
|
|
|
10108
10396
|
case '2008':
|
|
10109
10397
|
case '2009':
|
|
10110
10398
|
case '2010':
|
|
10399
|
+
case '9201':
|
|
10111
10400
|
return ErrorsCode.fraudPreventionExternal;
|
|
10112
10401
|
// Recusado pelo banco/emissor
|
|
10113
10402
|
case '1007':
|
|
@@ -10125,19 +10414,10 @@ class PagarMeErrorHelper {
|
|
|
10125
10414
|
case '5087':
|
|
10126
10415
|
return ErrorsCode.insufficientFundsError;
|
|
10127
10416
|
// Valor solicitado inválido
|
|
10417
|
+
case '5094':
|
|
10128
10418
|
case '5016':
|
|
10129
10419
|
case '5092':
|
|
10130
10420
|
return ErrorsCode.paymentError;
|
|
10131
|
-
// Código de segurança inválido ou não enviado
|
|
10132
|
-
case '5025':
|
|
10133
|
-
case '9124':
|
|
10134
|
-
return ErrorsCode.paymentError;
|
|
10135
|
-
// Dados obrigatórios ausentes
|
|
10136
|
-
case '1044':
|
|
10137
|
-
case '5034':
|
|
10138
|
-
case '5047':
|
|
10139
|
-
case '5061':
|
|
10140
|
-
return ErrorsCode.paymentError;
|
|
10141
10421
|
// Erros internos ou genéricos
|
|
10142
10422
|
case '5000':
|
|
10143
10423
|
case '5001':
|
|
@@ -10227,10 +10507,9 @@ class PagarMeErrorHelper {
|
|
|
10227
10507
|
// Transação não suportada para o banco/emissor
|
|
10228
10508
|
case '1061':
|
|
10229
10509
|
return ErrorsCode.paymentError;
|
|
10230
|
-
case '5094':
|
|
10231
10510
|
case '1010':
|
|
10232
10511
|
case '1046':
|
|
10233
|
-
return ErrorsCode.
|
|
10512
|
+
return ErrorsCode.invalidCheckoutError;
|
|
10234
10513
|
default:
|
|
10235
10514
|
return ErrorsCode.paymentError;
|
|
10236
10515
|
}
|
|
@@ -10367,7 +10646,7 @@ class PagarMeV5RequestHelper {
|
|
|
10367
10646
|
static getCardOrder(checkout, card) {
|
|
10368
10647
|
return {
|
|
10369
10648
|
installments: card.installments,
|
|
10370
|
-
statement_descriptor: checkout.shop === Shops.GLAMSHOP ? '
|
|
10649
|
+
statement_descriptor: checkout.shop === Shops.GLAMSHOP ? 'loja glam' : 'mens market',
|
|
10371
10650
|
card_id: card.cardId,
|
|
10372
10651
|
card: {
|
|
10373
10652
|
cvv: card.cardCvv,
|
|
@@ -10408,7 +10687,7 @@ class PagarMeV5ResponseHelper {
|
|
|
10408
10687
|
const charger = response.charges.at(0);
|
|
10409
10688
|
const transaction = charger.last_transaction;
|
|
10410
10689
|
return PaymentTransaction.toInstance({
|
|
10411
|
-
acquirer_name:
|
|
10690
|
+
acquirer_name: PaymentProviders.PAGARME,
|
|
10412
10691
|
amount: charger.amount,
|
|
10413
10692
|
currency: charger.currency,
|
|
10414
10693
|
gateway_id: charger.gateway_id,
|
|
@@ -10760,8 +11039,62 @@ class PagarmeV5BankSlipAxiosAdapter {
|
|
|
10760
11039
|
}
|
|
10761
11040
|
}
|
|
10762
11041
|
|
|
10763
|
-
class
|
|
11042
|
+
class PagarmeV5BaseAxiosAdapter {
|
|
11043
|
+
constructor(credentials, paymentRepository) {
|
|
11044
|
+
this.credentials = credentials;
|
|
11045
|
+
this.paymentRepository = paymentRepository;
|
|
11046
|
+
}
|
|
11047
|
+
async refund(order, amount) {
|
|
11048
|
+
try {
|
|
11049
|
+
console.warn('[PAGARME REFUND] Starting refund process for order', order.id, order.payment, 'with amount', amount);
|
|
11050
|
+
const amountToSend = +amount.toFixed(2) * 100;
|
|
11051
|
+
console.warn('[PAGARME REFUND] Amount to send in cents', amountToSend);
|
|
11052
|
+
const { data } = await axios({
|
|
11053
|
+
method: 'DELETE',
|
|
11054
|
+
url: `${this.credentials.URL}/charges/${order.payment.charger_id}`,
|
|
11055
|
+
headers: {
|
|
11056
|
+
Authorization: 'Basic ' + Buffer.from(`${this.credentials.API_KEY}:`).toString('base64'),
|
|
11057
|
+
'Content-Type': 'application/json',
|
|
11058
|
+
},
|
|
11059
|
+
data: {
|
|
11060
|
+
amount: amountToSend,
|
|
11061
|
+
},
|
|
11062
|
+
});
|
|
11063
|
+
console.warn('[RESPONSE PAGARME REFUND]', JSON.stringify(data));
|
|
11064
|
+
await this.paymentRepository.create({
|
|
11065
|
+
createdAt: new Date(),
|
|
11066
|
+
updatedAt: new Date(),
|
|
11067
|
+
userId: order.user.id,
|
|
11068
|
+
orderId: order.id,
|
|
11069
|
+
totalPrice: amount,
|
|
11070
|
+
paymentProvider: PaymentProviders.PAGARME,
|
|
11071
|
+
pagarMeOrderId: data.id,
|
|
11072
|
+
transaction: data,
|
|
11073
|
+
});
|
|
11074
|
+
return {
|
|
11075
|
+
status: this.getRefundStatus(data.status),
|
|
11076
|
+
success: [PagarMeV5OrderStatus.Pago, PagarMeV5OrderStatus.Cancelado].includes(data.status) ? true : false,
|
|
11077
|
+
};
|
|
11078
|
+
}
|
|
11079
|
+
catch (error) {
|
|
11080
|
+
console.error('Error during refund process for order', order.id, 'with error', error);
|
|
11081
|
+
throw error;
|
|
11082
|
+
}
|
|
11083
|
+
}
|
|
11084
|
+
getRefundStatus(status) {
|
|
11085
|
+
if ([PagarMeV5PaymentStatus['Em processamento']].includes(status)) {
|
|
11086
|
+
return 'processing';
|
|
11087
|
+
}
|
|
11088
|
+
if ([PagarMeV5OrderStatus.Pago, PagarMeV5OrderStatus.Cancelado].includes(status)) {
|
|
11089
|
+
return 'success';
|
|
11090
|
+
}
|
|
11091
|
+
return 'unknown';
|
|
11092
|
+
}
|
|
11093
|
+
}
|
|
11094
|
+
|
|
11095
|
+
class PagarmeV5CardAxiosAdapter extends PagarmeV5BaseAxiosAdapter {
|
|
10764
11096
|
constructor(credentials, paymentRepository, orderBlockedRepository) {
|
|
11097
|
+
super(credentials, paymentRepository);
|
|
10765
11098
|
this.credentials = credentials;
|
|
10766
11099
|
this.paymentRepository = paymentRepository;
|
|
10767
11100
|
this.orderBlockedRepository = orderBlockedRepository;
|
|
@@ -10931,8 +11264,9 @@ class PagarmeV5CardAxiosAdapter {
|
|
|
10931
11264
|
}
|
|
10932
11265
|
}
|
|
10933
11266
|
|
|
10934
|
-
class PagarmeV5PixAxiosAdapter {
|
|
11267
|
+
class PagarmeV5PixAxiosAdapter extends PagarmeV5BaseAxiosAdapter {
|
|
10935
11268
|
constructor(credentials, paymentRepository) {
|
|
11269
|
+
super(credentials, paymentRepository);
|
|
10936
11270
|
this.credentials = credentials;
|
|
10937
11271
|
this.paymentRepository = paymentRepository;
|
|
10938
11272
|
}
|
|
@@ -11126,4 +11460,4 @@ class ProductsVertexSearch {
|
|
|
11126
11460
|
}
|
|
11127
11461
|
}
|
|
11128
11462
|
|
|
11129
|
-
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, InvalidCheckoutError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, MercadoPagoBankSlipAxiosAdapter, MercadoPagoCardAxiosAdapter, MercadoPagoErrorHelper, 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, ProductGroup, ProductGroupHasuraGraphQLRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductPriceLog, ProductPriceLogHasuraGraphQLRepository, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockEntry, ProductStockEntryHasuraGraphQL, ProductStockEntryHasuraGraphQLRepository, 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 };
|
|
11463
|
+
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, InvalidCheckoutError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, Log, LogDocument, LogFirestoreRepository, Logger, MercadoPagoBankSlipAxiosAdapter, MercadoPagoCardAxiosAdapter, MercadoPagoErrorHelper, MercadoPagoPaymentMethodFactory, MercadoPagoPixAxiosAdapter, MercadoPagoRequestHelper, MercadoPagoResponseHelper, MercadoPagoStatusDetailEnum, MercadoPagoStatusEnum, NotFoundError, ObsEmitter, OfficePosition, Order, OrderBlocked, OrderBlockedFirestoreRepository, OrderBlockedType, OrderFirestoreRepository, OrderPaymentStatus, OrderStatus, PagarMeV5OrderStatus, PagarMeV5PaymentStatus, PagarmeBankSlipAxiosAdapter, PagarmeCardAxiosAdapter, PagarmePaymentMethodFactory, PagarmePaymentStatus, PagarmePixAxiosAdapter, PagarmeV5BankSlipAxiosAdapter, PagarmeV5BaseAxiosAdapter, PagarmeV5CardAxiosAdapter, PagarmeV5PixAxiosAdapter, Payment, PaymentError, PaymentFirestoreRepository, PaymentMethods, PaymentProviderFactory, PaymentProviders, PaymentTransaction, PaymentType, PersonTypes, Plans, Product, ProductCatalogHasuraGraphQL, ProductCatalogHasuraGraphQLRepository, ProductErrors, ProductErrorsHasuraGraphQL, ProductErrorsHasuraGraphQLRepository, ProductFirestoreRepository, ProductGroup, ProductGroupHasuraGraphQLRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductLabelEnum, ProductPriceLog, ProductPriceLogHasuraGraphQLRepository, ProductReview, ProductReviewHasuraGraphQLRepository, ProductSpents, ProductStockEntry, ProductStockEntryHasuraGraphQL, ProductStockEntryHasuraGraphQLRepository, ProductStockNotification, ProductStockNotificationHasuraGraphQLRepository, ProductVariantFirestoreRepository, ProductsIndex, ProductsVertexSearch, QuestionsFilters, RecoveryPassword, ReflectHelper, Register, RegisterFirebaseAuthService, RequiredArgumentError, RestCacheAdapter, RoundProductPricesHelper, Sequence, SequenceFirestoreRepository, ShippingMethod, ShopConfigs, ShopConfigsFirestoreRepository, ShopMenu, ShopMenuFirestoreRepository, ShopPageName, ShopSettings, ShopSettingsFirestoreRepository, ShoppingRecurrence, ShoppingRecurrenceCycle, ShoppingRecurrenceEdition, ShoppingRecurrenceEditionFirestoreRepository, ShoppingRecurrenceEditionStatus, ShoppingRecurrenceFirestoreRepository, ShoppingRecurrenceStatus, 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