@infrab4a/connect 4.1.2-beta.8 → 4.1.2
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 +481 -537
- package/index.esm.js +482 -534
- package/package.json +1 -1
- package/src/domain/index.d.ts +3 -4
- package/src/domain/shopping/models/index.d.ts +0 -1
- package/src/domain/shopping/models/order.d.ts +2 -2
- package/src/domain/shopping/models/payment.d.ts +61 -7
- package/src/domain/shopping/repositories/index.d.ts +0 -1
- package/src/infra/firebase/firestore/repositories/index.d.ts +2 -3
- package/src/infra/firebase/firestore/repositories/shopping/index.d.ts +0 -1
- package/teste2.d.ts +1 -0
- package/src/domain/general/index.d.ts +0 -2
- package/src/domain/general/models/index.d.ts +0 -1
- package/src/domain/general/models/sequences.d.ts +0 -9
- package/src/domain/general/repositories/index.d.ts +0 -1
- package/src/domain/general/repositories/sequences.repository.d.ts +0 -4
- package/src/domain/shopping/models/order-blocked.d.ts +0 -26
- package/src/domain/shopping/models/payment.transaction.d.ts +0 -66
- package/src/domain/shopping/repositories/order-blocked.repository.d.ts +0 -4
- package/src/infra/firebase/firestore/repositories/general/index.d.ts +0 -1
- package/src/infra/firebase/firestore/repositories/general/sequences-firestore.repository.d.ts +0 -7
- package/src/infra/firebase/firestore/repositories/shopping/order-blocked-firestore.repository.d.ts +0 -7
package/package.json
CHANGED
package/src/domain/index.d.ts
CHANGED
|
@@ -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 './
|
|
6
|
+
export * from './shop-settings';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Checkout } from './checkout';
|
|
2
2
|
import { OrderStatus } from './enums/order-status.enum';
|
|
3
|
-
import {
|
|
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:
|
|
9
|
+
payment: Payment;
|
|
10
10
|
}
|
|
@@ -1,13 +1,67 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model/base.model';
|
|
2
|
-
import {
|
|
2
|
+
import { PaymentBilling, PaymentCard, PaymentCustomer, PaymentItem, PaymentShipping } from './types';
|
|
3
3
|
export declare class Payment extends BaseModel<Payment> {
|
|
4
4
|
id: number;
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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';
|
|
@@ -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 +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,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 +0,0 @@
|
|
|
1
|
-
export * from './sequences-firestore.repository';
|
package/src/infra/firebase/firestore/repositories/general/sequences-firestore.repository.d.ts
DELETED
|
@@ -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 {};
|
package/src/infra/firebase/firestore/repositories/shopping/order-blocked-firestore.repository.d.ts
DELETED
|
@@ -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 {};
|