@infrab4a/connect 4.1.2-beta.9 → 4.1.3-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.
Files changed (25) hide show
  1. package/index.cjs.js +482 -528
  2. package/index.esm.js +483 -524
  3. package/package.json +1 -1
  4. package/src/domain/index.d.ts +3 -4
  5. package/src/domain/shop-settings/models/types/index.d.ts +2 -0
  6. package/src/domain/shop-settings/models/types/landing-page.d.ts +8 -0
  7. package/src/domain/shop-settings/models/types/sections.type.d.ts +3 -0
  8. package/src/domain/shopping/models/index.d.ts +0 -2
  9. package/src/domain/shopping/models/order.d.ts +2 -2
  10. package/src/domain/shopping/models/payment.d.ts +61 -7
  11. package/src/domain/shopping/repositories/index.d.ts +0 -1
  12. package/src/infra/firebase/firestore/repositories/index.d.ts +2 -3
  13. package/src/infra/firebase/firestore/repositories/shopping/index.d.ts +0 -1
  14. package/teste2.d.ts +1 -0
  15. package/src/domain/general/index.d.ts +0 -2
  16. package/src/domain/general/models/index.d.ts +0 -1
  17. package/src/domain/general/models/sequences.d.ts +0 -9
  18. package/src/domain/general/repositories/index.d.ts +0 -1
  19. package/src/domain/general/repositories/sequences.repository.d.ts +0 -4
  20. package/src/domain/shopping/models/order-blocked.d.ts +0 -26
  21. package/src/domain/shopping/models/payment.transaction.d.ts +0 -66
  22. package/src/domain/shopping/repositories/order-blocked.repository.d.ts +0 -4
  23. package/src/infra/firebase/firestore/repositories/general/index.d.ts +0 -1
  24. package/src/infra/firebase/firestore/repositories/general/sequences-firestore.repository.d.ts +0 -7
  25. package/src/infra/firebase/firestore/repositories/shopping/order-blocked-firestore.repository.d.ts +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.1.2-beta.9",
3
+ "version": "4.1.3-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -1,7 +1,6 @@
1
- export * from './catalog';
2
- export * from './general';
3
1
  export * from './generic';
2
+ export * from './users';
3
+ export * from './catalog';
4
4
  export * from './location';
5
- export * from './shop-settings';
6
5
  export * from './shopping';
7
- export * from './users';
6
+ export * from './shop-settings';
@@ -2,6 +2,7 @@ export * from './banner.type';
2
2
  export * from './benefit.type';
3
3
  export * from './campaign-page';
4
4
  export * from './home-data.type';
5
+ export * from './landing-page';
5
6
  export * from './menu-nav.type';
6
7
  export * from './sections.type';
7
8
  export * from './shop-banner.type';
@@ -9,6 +10,7 @@ export * from './shop-brands.type';
9
10
  export * from './shop-carousel.type';
10
11
  export * from './shop-collection.type';
11
12
  export * from './shop-gift.type';
13
+ export * from './shop-home';
12
14
  export * from './shop-post.type';
13
15
  export * from './shop-section.type';
14
16
  export * from './sub-menu.type';
@@ -0,0 +1,8 @@
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,3 +1,4 @@
1
+ import { LandingPage } from './landing-page';
1
2
  import { ShopBanner } from './shop-banner.type';
2
3
  import { ShopCarousel } from './shop-carousel.type';
3
4
  import { ShopGift } from './shop-gift.type';
@@ -17,6 +18,7 @@ export type GlampointsVitrineShopSection = [ShopBanner];
17
18
  export type SimpleLPShopSection = [(ShopBanner & {
18
19
  carouselColor?: string;
19
20
  })[]];
21
+ export type LandingPageSection = [LandingPage<any>];
20
22
  export type SectionList = {
21
23
  HomeSection: HomeSection;
22
24
  LPClubeShopSection: LPClubeShopSection;
@@ -27,5 +29,6 @@ export type SectionList = {
27
29
  PostsShopSection: PostsShopSection;
28
30
  GlampointsVitrineShopSection: GlampointsVitrineShopSection;
29
31
  SimpleLPShopSection: SimpleLPShopSection;
32
+ LandingPageSection: LandingPageSection;
30
33
  };
31
34
  export type Section<T extends keyof SectionList> = SectionList[T];
@@ -6,9 +6,7 @@ export * from './coupons';
6
6
  export * from './enums';
7
7
  export * from './line-item';
8
8
  export * from './order';
9
- export * from './order-blocked';
10
9
  export * from './payment';
11
- export * from './payment.transaction';
12
10
  export * from './shipping-method';
13
11
  export * from './subscription';
14
12
  export * from './types';
@@ -1,10 +1,10 @@
1
1
  import { Checkout } from './checkout';
2
2
  import { OrderStatus } from './enums/order-status.enum';
3
- import { PaymentTransaction } from './payment.transaction';
3
+ import { Payment } from './payment';
4
4
  export declare class Order extends Checkout {
5
5
  status: OrderStatus;
6
6
  orderNumber?: string;
7
7
  trackingCode?: string;
8
8
  trackingUrl?: string;
9
- payment: PaymentTransaction;
9
+ payment: Payment;
10
10
  }
@@ -1,13 +1,67 @@
1
1
  import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
2
- import { PaymentTransaction } from './payment.transaction';
2
+ import { PaymentBilling, PaymentCard, PaymentCustomer, PaymentItem, PaymentShipping } from './types';
3
3
  export declare class Payment extends BaseModel<Payment> {
4
4
  id: number;
5
- checkoutId: string;
5
+ object: string;
6
+ status: string;
7
+ tid: number;
8
+ nsu: number;
9
+ amount: number;
10
+ cost: number;
11
+ installments: number;
12
+ referer: string;
13
+ ip: string;
14
+ phone: string;
15
+ address: string;
16
+ metadata: any;
17
+ device: string;
18
+ payment: string;
19
+ addition: string;
20
+ discount: string;
21
+ customer: PaymentCustomer;
22
+ billing: PaymentBilling;
23
+ shipping: PaymentShipping;
24
+ items: PaymentItem[];
25
+ card: PaymentCard;
26
+ refuseReason: string;
27
+ statusReason: string;
28
+ acquirerResponseCode: string;
29
+ acquirerName: string;
30
+ acquirerId: string;
31
+ authorizationCode: string;
32
+ softDescriptor: string;
33
+ dateCreated: string;
34
+ dateUpdated: string;
35
+ authorizedAmount: number;
36
+ paidAmount: number;
37
+ refundedAmount: number;
38
+ cardHolderName: string;
39
+ cardLastDigits: string;
40
+ cardFirstDigits: string;
41
+ cardBrand: string;
42
+ cardPinMode: string;
43
+ cardMagstripeFallback: boolean;
44
+ cvmPin: boolean;
45
+ postbackUrl: string;
46
+ paymentMethod: string;
47
+ captureMethod: string;
48
+ antifraudScore: string;
49
+ boletoUrl: string;
50
+ boletoBarcode: string;
51
+ boletoExpirationDate: string;
52
+ subscriptionId: string;
53
+ splitRules: string;
54
+ antifraudMetadata: any;
55
+ referenceKey: string;
56
+ localTransactionId: string;
57
+ localTime: string;
58
+ fraudCovered: boolean;
59
+ fraudReimbursed: string;
6
60
  orderId: string;
7
- totalPrice: number;
8
- userId: string;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- transaction: PaymentTransaction;
61
+ riskLevel: string;
62
+ receiptUrl: string;
63
+ privateLabel: string;
64
+ pixQrCode: string;
65
+ pixExpirationDate: string;
12
66
  static get identifiersFields(): GenericIdentifier[];
13
67
  }
@@ -4,7 +4,6 @@ export * from './campaign-hashtag.repository';
4
4
  export * from './checkout.repository';
5
5
  export * from './coupon.repository';
6
6
  export * from './legacy-order.repository';
7
- export * from './order-blocked.repository';
8
7
  export * from './order.repository';
9
8
  export * from './payment.repository';
10
9
  export * from './subscription';
@@ -1,5 +1,4 @@
1
+ export * from './users';
1
2
  export * from './catalog';
2
- export * from './general';
3
- export * from './shop-settings';
4
3
  export * from './shopping';
5
- export * from './users';
4
+ export * from './shop-settings';
@@ -5,7 +5,6 @@ export * from './checkout-firestore.repository';
5
5
  export * from './checkout-subscription-firestore.repository';
6
6
  export * from './coupon-firestore.repository';
7
7
  export * from './legacy-order-firestore.repository';
8
- export * from './order-blocked-firestore.repository';
9
8
  export * from './order-firestore.repository';
10
9
  export * from './payment-firestore.repository';
11
10
  export * from './subscription-plan-firestore.repository';
package/teste2.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +0,0 @@
1
- export * from './models';
2
- export * from './repositories';
@@ -1 +0,0 @@
1
- export * from './sequences';
@@ -1,9 +0,0 @@
1
- import { BaseModel, GenericIdentifier } from '../../generic';
2
- export declare class Sequence extends BaseModel<Sequence> {
3
- id?: string;
4
- type: string;
5
- counter: number;
6
- month: number;
7
- year: number;
8
- static get identifiersFields(): GenericIdentifier[];
9
- }
@@ -1 +0,0 @@
1
- export * from './sequences.repository';
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../generic/repository/crud.repository';
2
- import { Sequence } from '../models';
3
- export interface SequenceRepository extends CrudRepository<Sequence> {
4
- }
@@ -1,26 +0,0 @@
1
- import { BaseModel, GenericIdentifier } from '../../generic';
2
- import { UserAddress } from '../../users';
3
- export declare class OrderBlocked extends BaseModel<OrderBlocked> {
4
- id?: string;
5
- customer: {
6
- name: string;
7
- cpf: string;
8
- id: string;
9
- email: string;
10
- phoneNumber: string;
11
- isSubscriber: boolean;
12
- subscriptionPlan: string;
13
- shippingAddress: UserAddress;
14
- };
15
- blockType: string;
16
- limiteRange: string;
17
- type: string;
18
- card?: any;
19
- checkout: {
20
- id: string;
21
- shop: string;
22
- total: number;
23
- };
24
- date: Date;
25
- static get identifiersFields(): GenericIdentifier[];
26
- }
@@ -1,66 +0,0 @@
1
- import { BaseModel } from '../../generic/model/base.model';
2
- import { PaymentBilling, PaymentCard, PaymentCustomer, PaymentItem, PaymentShipping } from './types';
3
- export declare class PaymentTransaction extends BaseModel<PaymentTransaction> {
4
- id: number;
5
- object: string;
6
- status: string;
7
- tid: number;
8
- nsu: number;
9
- amount: number;
10
- cost: number;
11
- installments: number;
12
- referer: string;
13
- ip: string;
14
- phone: string;
15
- address: string;
16
- metadata: any;
17
- device: string;
18
- payment: string;
19
- addition: string;
20
- discount: string;
21
- customer: PaymentCustomer;
22
- billing: PaymentBilling;
23
- shipping: PaymentShipping;
24
- items: PaymentItem[];
25
- card: PaymentCard;
26
- refuseReason: string;
27
- statusReason: string;
28
- acquirerResponseCode: string;
29
- acquirerName: string;
30
- acquirerId: string;
31
- authorizationCode: string;
32
- softDescriptor: string;
33
- dateCreated: string;
34
- dateUpdated: string;
35
- authorizedAmount: number;
36
- paidAmount: number;
37
- refundedAmount: number;
38
- cardHolderName: string;
39
- cardLastDigits: string;
40
- cardFirstDigits: string;
41
- cardBrand: string;
42
- cardPinMode: string;
43
- cardMagstripeFallback: boolean;
44
- cvmPin: boolean;
45
- postbackUrl: string;
46
- paymentMethod: string;
47
- captureMethod: string;
48
- antifraudScore: string;
49
- boletoUrl: string;
50
- boletoBarcode: string;
51
- boletoExpirationDate: string;
52
- subscriptionId: string;
53
- splitRules: string;
54
- antifraudMetadata: any;
55
- referenceKey: string;
56
- localTransactionId: string;
57
- localTime: string;
58
- fraudCovered: boolean;
59
- fraudReimbursed: string;
60
- orderId: string;
61
- riskLevel: string;
62
- receiptUrl: string;
63
- privateLabel: string;
64
- pixQrCode: string;
65
- pixExpirationDate: string;
66
- }
@@ -1,4 +0,0 @@
1
- import { CrudRepository } from '../../generic/repository/crud.repository';
2
- import { OrderBlocked } from '../models';
3
- export interface OrderBlockedRepository extends CrudRepository<OrderBlocked> {
4
- }
@@ -1 +0,0 @@
1
- export * from './sequences-firestore.repository';
@@ -1,7 +0,0 @@
1
- import { Sequence, SequenceRepository } from '../../../../../domain';
2
- import { FirestoreConstructorParams } from '../../mixins';
3
- declare const SequenceFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<Sequence> & import("../../../../../domain").CrudRepository<Sequence, import("../../../../../domain").CrudParams<Sequence>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<Sequence>, ...any[]]>;
4
- export declare class SequenceFirestoreRepository extends SequenceFirestoreRepository_base implements SequenceRepository {
5
- constructor({ firestore, interceptors }: Pick<FirestoreConstructorParams<Sequence>, 'firestore' | 'interceptors'>);
6
- }
7
- export {};
@@ -1,7 +0,0 @@
1
- import { OrderBlocked, OrderBlockedRepository } from '../../../../../domain';
2
- import { FirestoreConstructorParams } from '../../mixins';
3
- declare const OrderBlockedFirestoreRepository_base: import("../../../../../utils").MixinCtor<import("../..").FirestoreRepository<OrderBlocked> & import("../../../../../domain").CrudRepository<OrderBlocked, import("../../../../../domain").CrudParams<OrderBlocked>> & import("../..").FirestoreHelpers, [FirestoreConstructorParams<OrderBlocked>, ...any[]]>;
4
- export declare class OrderBlockedFirestoreRepository extends OrderBlockedFirestoreRepository_base implements OrderBlockedRepository {
5
- constructor({ firestore, interceptors, }: Pick<FirestoreConstructorParams<OrderBlocked>, 'firestore' | 'interceptors'>);
6
- }
7
- export {};