@postpaybr/protos 1.1.10 → 1.1.14
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/dist/typescript/account-entry.d.ts +4 -15
- package/dist/typescript/account-entry.js +11 -11
- package/dist/typescript/address.d.ts +1 -1
- package/dist/typescript/address.js +8 -13
- package/dist/typescript/admin-card-verification.d.ts +16 -19
- package/dist/typescript/admin-card-verification.js +12 -11
- package/dist/typescript/administrator.d.ts +10 -17
- package/dist/typescript/administrator.js +21 -20
- package/dist/typescript/anticipation.d.ts +7 -7
- package/dist/typescript/anticipation.js +14 -13
- package/dist/typescript/asset.d.ts +3 -3
- package/dist/typescript/asset.js +8 -13
- package/dist/typescript/auth.d.ts +2 -2
- package/dist/typescript/auth.js +8 -8
- package/dist/typescript/bank-account.d.ts +5 -8
- package/dist/typescript/bank-account.js +12 -12
- package/dist/typescript/card-vault.d.ts +1 -1
- package/dist/typescript/card-vault.js +8 -8
- package/dist/typescript/card-verification.d.ts +1 -1
- package/dist/typescript/card-verification.js +8 -11
- package/dist/typescript/card.d.ts +5 -20
- package/dist/typescript/card.js +17 -16
- package/dist/typescript/charge-schedule.d.ts +4 -16
- package/dist/typescript/charge-schedule.js +8 -8
- package/dist/typescript/charge.d.ts +112 -100
- package/dist/typescript/charge.js +38 -38
- package/dist/typescript/common.d.ts +122 -0
- package/dist/typescript/common.js +11 -0
- package/dist/typescript/context.d.ts +16 -46
- package/dist/typescript/context.js +16 -15
- package/dist/typescript/customer.d.ts +6 -15
- package/dist/typescript/customer.js +21 -21
- package/dist/typescript/daily-balance.d.ts +5 -8
- package/dist/typescript/daily-balance.js +8 -8
- package/dist/typescript/document-verification.d.ts +18 -20
- package/dist/typescript/document-verification.js +14 -13
- package/dist/typescript/email.d.ts +2 -2
- package/dist/typescript/email.js +13 -13
- package/dist/typescript/expo-push.d.ts +2 -3
- package/dist/typescript/expo-push.js +8 -8
- package/dist/typescript/fee.d.ts +6 -7
- package/dist/typescript/fee.js +11 -11
- package/dist/typescript/location.d.ts +1 -1
- package/dist/typescript/location.js +8 -8
- package/dist/typescript/notification.d.ts +39 -48
- package/dist/typescript/notification.js +19 -18
- package/dist/typescript/order.d.ts +38 -36
- package/dist/typescript/order.js +18 -17
- package/dist/typescript/payable.d.ts +39 -40
- package/dist/typescript/payable.js +21 -20
- package/dist/typescript/payer.d.ts +1 -1
- package/dist/typescript/payer.js +8 -8
- package/dist/typescript/payment-calculator.d.ts +7 -60
- package/dist/typescript/payment-calculator.js +13 -12
- package/dist/typescript/payment-card.d.ts +25 -81
- package/dist/typescript/payment-card.js +9 -12
- package/dist/typescript/payment-gateway.d.ts +9 -19
- package/dist/typescript/payment-gateway.js +15 -14
- package/dist/typescript/payment-pix.d.ts +3 -78
- package/dist/typescript/payment-pix.js +10 -10
- package/dist/typescript/receipt.d.ts +20 -43
- package/dist/typescript/receipt.js +17 -16
- package/dist/typescript/recipient-payment-gateway.d.ts +14 -23
- package/dist/typescript/recipient-payment-gateway.js +14 -13
- package/dist/typescript/recipient.d.ts +18 -25
- package/dist/typescript/recipient.js +20 -19
- package/dist/typescript/role.d.ts +3 -9
- package/dist/typescript/role.js +14 -13
- package/dist/typescript/sms.d.ts +1 -1
- package/dist/typescript/sms.js +8 -8
- package/dist/typescript/tax.d.ts +38 -60
- package/dist/typescript/tax.js +20 -19
- package/dist/typescript/transfer.d.ts +38 -19
- package/dist/typescript/transfer.js +9 -8
- package/dist/typescript/two-factor.d.ts +7 -8
- package/dist/typescript/two-factor.js +14 -13
- package/dist/typescript/user.d.ts +16 -19
- package/dist/typescript/user.js +24 -24
- package/dist/typescript/wallet.d.ts +1 -1
- package/dist/typescript/wallet.js +8 -8
- package/package.json +4 -3
- package/src/protos/account-entry.proto +3 -15
- package/src/protos/admin-card-verification.proto +0 -2
- package/src/protos/administrator.proto +4 -11
- package/src/protos/bank-account.proto +4 -5
- package/src/protos/charge.proto +12 -47
- package/src/protos/common.proto +140 -0
- package/src/protos/context.proto +8 -49
- package/src/protos/customer.proto +5 -15
- package/src/protos/daily-balance.proto +3 -6
- package/src/protos/document-verification.proto +5 -6
- package/src/protos/expo-push.proto +3 -3
- package/src/protos/fee.proto +3 -3
- package/src/protos/notification.proto +4 -12
- package/src/protos/order.proto +6 -16
- package/src/protos/payment-calculator.proto +11 -87
- package/src/protos/payment-card.proto +7 -90
- package/src/protos/payment-gateway.proto +4 -14
- package/src/protos/payment-pix.proto +5 -95
- package/src/protos/receipt.proto +7 -44
- package/src/protos/recipient-payment-gateway.proto +5 -15
- package/src/protos/recipient.proto +4 -9
- package/src/protos/role.proto +6 -11
- package/src/protos/tax.proto +12 -41
- package/src/protos/user.proto +4 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AccountEntryType, ChargeMetadata, GatewayIdentification, PaymentMethods } from
|
|
2
|
-
import { Observable } from
|
|
1
|
+
import { AccountEntryType, ChargeMetadata, GatewayIdentification, PaymentMethods } from "@postpaybr/contracts/types";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { TableFilterParams } from "./common";
|
|
3
4
|
export declare const protobufPackage = "accountEntry";
|
|
4
5
|
export interface CreateAccountEntryRequest {
|
|
5
6
|
amount: number;
|
|
@@ -25,14 +26,6 @@ export interface GetEntriesByTransferRequest {
|
|
|
25
26
|
export interface GetEntriesByTransferResponse {
|
|
26
27
|
accountEntries: AccountEntry[];
|
|
27
28
|
}
|
|
28
|
-
export interface TableFilterParams {
|
|
29
|
-
pageIndex?: number;
|
|
30
|
-
pageSize?: number;
|
|
31
|
-
status?: string[];
|
|
32
|
-
globalFilter?: string;
|
|
33
|
-
startDate?: Date;
|
|
34
|
-
endDate?: Date;
|
|
35
|
-
}
|
|
36
29
|
export interface GetEntriesByPeriodRequest {
|
|
37
30
|
recipientId: string;
|
|
38
31
|
filter: TableFilterParams | undefined;
|
|
@@ -49,7 +42,7 @@ export interface AccountEntry {
|
|
|
49
42
|
recipientId: string;
|
|
50
43
|
transferId?: string | undefined;
|
|
51
44
|
chargeId?: string | undefined;
|
|
52
|
-
createdAt:
|
|
45
|
+
createdAt: string;
|
|
53
46
|
}
|
|
54
47
|
export interface Charge {
|
|
55
48
|
id: string;
|
|
@@ -59,10 +52,6 @@ export interface Charge {
|
|
|
59
52
|
gatewayId: GatewayIdentification;
|
|
60
53
|
metadata: ChargeMetadata;
|
|
61
54
|
}
|
|
62
|
-
export interface DailyBalance {
|
|
63
|
-
date: Date;
|
|
64
|
-
balance: number;
|
|
65
|
-
}
|
|
66
55
|
export declare const ACCOUNT_ENTRY_PACKAGE_NAME = "accountEntry";
|
|
67
56
|
export interface AccountEntryServiceClient {
|
|
68
57
|
createAccountEntry(request: CreateAccountEntryRequest): Observable<CreateAccountEntryResponse>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: account-entry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ACCOUNT_ENTRY_SERVICE_NAME = exports.ACCOUNT_ENTRY_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AccountEntryServiceControllerMethods = AccountEntryServiceControllerMethods;
|
|
10
10
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ACCOUNT_ENTRY_PACKAGE_NAME =
|
|
11
|
+
exports.protobufPackage = "accountEntry";
|
|
12
|
+
exports.ACCOUNT_ENTRY_PACKAGE_NAME = "accountEntry";
|
|
13
13
|
function AccountEntryServiceControllerMethods() {
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"createAccountEntry",
|
|
17
|
+
"createAccountEntries",
|
|
18
|
+
"getEntriesByTransfer",
|
|
19
|
+
"getEntriesByPeriod",
|
|
20
20
|
];
|
|
21
21
|
for (const method of grpcMethods) {
|
|
22
22
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
23
|
-
(0, microservices_1.GrpcMethod)(
|
|
23
|
+
(0, microservices_1.GrpcMethod)("AccountEntryService", method)(constructor.prototype[method], method, descriptor);
|
|
24
24
|
}
|
|
25
25
|
const grpcStreamMethods = [];
|
|
26
26
|
for (const method of grpcStreamMethods) {
|
|
27
27
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
28
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
28
|
+
(0, microservices_1.GrpcStreamMethod)("AccountEntryService", method)(constructor.prototype[method], method, descriptor);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.ACCOUNT_ENTRY_SERVICE_NAME =
|
|
32
|
+
exports.ACCOUNT_ENTRY_SERVICE_NAME = "AccountEntryService";
|
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: address.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ADDRESS_SERVICE_NAME = exports.ADDRESS_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AddressServiceControllerMethods = AddressServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ADDRESS_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "address";
|
|
13
|
+
exports.ADDRESS_PACKAGE_NAME = "address";
|
|
14
14
|
function AddressServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
'createAddress',
|
|
18
|
-
'getAddressesByAccountId',
|
|
19
|
-
'getAddressById',
|
|
20
|
-
'updateAddress',
|
|
21
|
-
];
|
|
16
|
+
const grpcMethods = ["createAddress", "getAddressesByAccountId", "getAddressById", "updateAddress"];
|
|
22
17
|
for (const method of grpcMethods) {
|
|
23
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AddressService", method)(constructor.prototype[method], method, descriptor);
|
|
25
20
|
}
|
|
26
21
|
const grpcStreamMethods = [];
|
|
27
22
|
for (const method of grpcStreamMethods) {
|
|
28
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AddressService", method)(constructor.prototype[method], method, descriptor);
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
exports.ADDRESS_SERVICE_NAME =
|
|
28
|
+
exports.ADDRESS_SERVICE_NAME = "AddressService";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from "rxjs";
|
|
3
2
|
export declare const protobufPackage = "adminCardVerification";
|
|
4
3
|
export interface CreateCardVerificationRequest {
|
|
5
4
|
customerId: string;
|
|
6
5
|
cardId: string;
|
|
7
6
|
selfieWithCardUrl: string;
|
|
8
|
-
challenge:
|
|
7
|
+
challenge: string;
|
|
9
8
|
}
|
|
10
9
|
export interface UpdateVerificationStatusRequest {
|
|
11
10
|
id: string;
|
|
12
|
-
status:
|
|
13
|
-
rejectionReasons
|
|
11
|
+
status: string;
|
|
12
|
+
rejectionReasons: string[];
|
|
14
13
|
customRejectionReason?: string | undefined;
|
|
15
14
|
reviewerId?: string | undefined;
|
|
16
15
|
}
|
|
@@ -18,13 +17,13 @@ export interface CardVerificationResponse {
|
|
|
18
17
|
id: string;
|
|
19
18
|
cardId: string;
|
|
20
19
|
selfieWithCardUrl: string;
|
|
21
|
-
rejectionReasons:
|
|
20
|
+
rejectionReasons: string[];
|
|
22
21
|
customRejectionReason: string;
|
|
23
|
-
histories
|
|
24
|
-
challenge:
|
|
22
|
+
histories: VerificationHistory[];
|
|
23
|
+
challenge: string;
|
|
25
24
|
}
|
|
26
25
|
export interface GetVerificationsWithCardDetailsRequest {
|
|
27
|
-
status:
|
|
26
|
+
status: string;
|
|
28
27
|
offset?: number | undefined;
|
|
29
28
|
limit?: number | undefined;
|
|
30
29
|
}
|
|
@@ -35,15 +34,15 @@ export interface VerificationWithDetails {
|
|
|
35
34
|
id: string;
|
|
36
35
|
customerName: string;
|
|
37
36
|
cardNumber: string;
|
|
38
|
-
createdAt:
|
|
37
|
+
createdAt: string;
|
|
39
38
|
reviewedBy: string;
|
|
40
39
|
status: string;
|
|
41
40
|
}
|
|
42
41
|
export interface VerificationHistory {
|
|
43
42
|
id: string;
|
|
44
|
-
status:
|
|
43
|
+
status: string;
|
|
45
44
|
reviewerId: string;
|
|
46
|
-
createdAt:
|
|
45
|
+
createdAt: string;
|
|
47
46
|
}
|
|
48
47
|
export interface GetVerificationDetailsByIdRequest {
|
|
49
48
|
id: string;
|
|
@@ -54,21 +53,19 @@ export interface VerificationDetailsResponse {
|
|
|
54
53
|
cardName: string;
|
|
55
54
|
selfieWithCardUrl: string;
|
|
56
55
|
selfieWithDocumentUrl: string;
|
|
57
|
-
challenge:
|
|
58
|
-
status:
|
|
56
|
+
challenge: string;
|
|
57
|
+
status: string;
|
|
59
58
|
histories: VerificationHistoryWithAdmin[];
|
|
60
|
-
rejectionReasons:
|
|
59
|
+
rejectionReasons: string[];
|
|
61
60
|
customRejectionReason: string;
|
|
62
61
|
}
|
|
63
62
|
export interface VerificationHistoryWithAdmin {
|
|
64
63
|
id: string;
|
|
65
|
-
status:
|
|
64
|
+
status: string;
|
|
66
65
|
reviewerId: string;
|
|
67
|
-
createdAt:
|
|
66
|
+
createdAt: string;
|
|
68
67
|
reviewedBy: string;
|
|
69
68
|
}
|
|
70
|
-
export interface Empty {
|
|
71
|
-
}
|
|
72
69
|
export declare const ADMIN_CARD_VERIFICATION_PACKAGE_NAME = "adminCardVerification";
|
|
73
70
|
export interface AdminCardVerificationServiceClient {
|
|
74
71
|
initiateCardVerification(request: CreateCardVerificationRequest): Observable<CardVerificationResponse>;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: admin-card-verification.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME = exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AdminCardVerificationServiceControllerMethods = AdminCardVerificationServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "adminCardVerification";
|
|
13
|
+
exports.ADMIN_CARD_VERIFICATION_PACKAGE_NAME = "adminCardVerification";
|
|
13
14
|
function AdminCardVerificationServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
"initiateCardVerification",
|
|
18
|
+
"updateVerificationStatus",
|
|
19
|
+
"getVerificationsWithCardDetails",
|
|
20
|
+
"getVerificationDetailsById",
|
|
20
21
|
];
|
|
21
22
|
for (const method of grpcMethods) {
|
|
22
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
23
|
-
(0, microservices_1.GrpcMethod)(
|
|
24
|
+
(0, microservices_1.GrpcMethod)("AdminCardVerificationService", method)(constructor.prototype[method], method, descriptor);
|
|
24
25
|
}
|
|
25
26
|
const grpcStreamMethods = [];
|
|
26
27
|
for (const method of grpcStreamMethods) {
|
|
27
28
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
28
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
29
|
+
(0, microservices_1.GrpcStreamMethod)("AdminCardVerificationService", method)(constructor.prototype[method], method, descriptor);
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
|
-
exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME =
|
|
33
|
+
exports.ADMIN_CARD_VERIFICATION_SERVICE_NAME = "AdminCardVerificationService";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Role, Void } from "./common";
|
|
3
3
|
export declare const protobufPackage = "administrator";
|
|
4
4
|
export interface CreateAdministratorRequest {
|
|
5
5
|
firstName: string;
|
|
@@ -18,27 +18,21 @@ export interface AdministratorResponse {
|
|
|
18
18
|
document: string;
|
|
19
19
|
email: string;
|
|
20
20
|
isAccessRestricted: boolean;
|
|
21
|
-
roles
|
|
22
|
-
status?:
|
|
21
|
+
roles: Role[];
|
|
22
|
+
status?: string | undefined;
|
|
23
23
|
isSuperAdmin: boolean;
|
|
24
24
|
recipientId: string;
|
|
25
25
|
userId: string;
|
|
26
|
-
twoFactorEnabled?: boolean;
|
|
26
|
+
twoFactorEnabled?: boolean | undefined;
|
|
27
27
|
}
|
|
28
28
|
export interface UpdateAdministratorRequest {
|
|
29
29
|
id: string;
|
|
30
30
|
firstName?: string | undefined;
|
|
31
31
|
lastName?: string | undefined;
|
|
32
32
|
email?: string | undefined;
|
|
33
|
-
roleIds
|
|
33
|
+
roleIds: string[];
|
|
34
34
|
document?: string | undefined;
|
|
35
|
-
status?:
|
|
36
|
-
}
|
|
37
|
-
export interface Role {
|
|
38
|
-
id: string;
|
|
39
|
-
code: string;
|
|
40
|
-
description: string;
|
|
41
|
-
permissions: string[];
|
|
35
|
+
status?: string | undefined;
|
|
42
36
|
}
|
|
43
37
|
export interface GetAllAdministratorsRequest {
|
|
44
38
|
}
|
|
@@ -85,13 +79,14 @@ export interface Recipient {
|
|
|
85
79
|
code: string;
|
|
86
80
|
commercialName: string;
|
|
87
81
|
socialReason: string;
|
|
88
|
-
holderType:
|
|
82
|
+
holderType: string;
|
|
89
83
|
document: string;
|
|
90
84
|
cnaeId: string;
|
|
91
|
-
legalType:
|
|
85
|
+
legalType: string;
|
|
92
86
|
contactName: string;
|
|
93
87
|
contactEmail: string;
|
|
94
88
|
contactPhone: string;
|
|
89
|
+
isAutomaticAnticipationEnabled: boolean;
|
|
95
90
|
foundation: string;
|
|
96
91
|
avatarUrl?: string | undefined;
|
|
97
92
|
isActive: boolean;
|
|
@@ -114,8 +109,6 @@ export interface handleAdministratorChangePasswordResponse {
|
|
|
114
109
|
export interface ResendVerificationEmailRequest {
|
|
115
110
|
administratorId: string;
|
|
116
111
|
}
|
|
117
|
-
export interface Void {
|
|
118
|
-
}
|
|
119
112
|
export interface ChangeAdministratorStatusRequest {
|
|
120
113
|
administratorId: string;
|
|
121
114
|
status: string;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc v6.
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: administrator.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ADMINISTRATOR_SERVICE_NAME = exports.ADMINISTRATOR_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AdministratorServiceControllerMethods = AdministratorServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ADMINISTRATOR_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "administrator";
|
|
13
|
+
exports.ADMINISTRATOR_PACKAGE_NAME = "administrator";
|
|
13
14
|
function AdministratorServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
"createAdministrator",
|
|
18
|
+
"getAdministratorById",
|
|
19
|
+
"updateAdministrator",
|
|
20
|
+
"getAllAdministrators",
|
|
21
|
+
"validateAndSignIn",
|
|
22
|
+
"verifyTwoFactorAuthentication",
|
|
23
|
+
"refreshAccessToken",
|
|
24
|
+
"handleAdministratorChangePassword",
|
|
25
|
+
"resendVerificationEmail",
|
|
26
|
+
"changeAdministratorStatus",
|
|
27
|
+
"initiateAdministratorChangePassword",
|
|
28
|
+
"getAdministratorName",
|
|
29
|
+
"getAdministratorsByRecipient",
|
|
29
30
|
];
|
|
30
31
|
for (const method of grpcMethods) {
|
|
31
32
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
32
|
-
(0, microservices_1.GrpcMethod)(
|
|
33
|
+
(0, microservices_1.GrpcMethod)("AdministratorService", method)(constructor.prototype[method], method, descriptor);
|
|
33
34
|
}
|
|
34
35
|
const grpcStreamMethods = [];
|
|
35
36
|
for (const method of grpcStreamMethods) {
|
|
36
37
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
37
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
38
|
+
(0, microservices_1.GrpcStreamMethod)("AdministratorService", method)(constructor.prototype[method], method, descriptor);
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
|
-
exports.ADMINISTRATOR_SERVICE_NAME =
|
|
42
|
+
exports.ADMINISTRATOR_SERVICE_NAME = "AdministratorService";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { Observable } from "rxjs";
|
|
3
2
|
export declare const protobufPackage = "anticipation";
|
|
4
3
|
export interface SimulateAnticipationsRequest {
|
|
5
4
|
payableIds: string[];
|
|
@@ -37,8 +36,8 @@ export interface Anticipation {
|
|
|
37
36
|
status: string;
|
|
38
37
|
externalId?: string | undefined;
|
|
39
38
|
anticipatedDays?: number | undefined;
|
|
40
|
-
createdAt:
|
|
41
|
-
updatedAt:
|
|
39
|
+
createdAt: string;
|
|
40
|
+
updatedAt: string;
|
|
42
41
|
payable: Payable | undefined;
|
|
43
42
|
}
|
|
44
43
|
export interface Payable {
|
|
@@ -47,17 +46,18 @@ export interface Payable {
|
|
|
47
46
|
installment: number;
|
|
48
47
|
status: string;
|
|
49
48
|
dueAt: string;
|
|
50
|
-
createdAt:
|
|
49
|
+
createdAt: string;
|
|
51
50
|
isAnticipated: boolean;
|
|
52
|
-
processedAt:
|
|
51
|
+
processedAt: string;
|
|
53
52
|
chargeId: string;
|
|
54
53
|
recipientId: string;
|
|
55
54
|
}
|
|
56
55
|
export interface UpdateAnticipationRequest {
|
|
57
56
|
payableId: string;
|
|
58
57
|
externalId?: string | undefined;
|
|
59
|
-
status?:
|
|
58
|
+
status?: string | undefined;
|
|
60
59
|
amount?: number | undefined;
|
|
60
|
+
netAmount?: number | undefined;
|
|
61
61
|
fee?: number | undefined;
|
|
62
62
|
baseFee?: number | undefined;
|
|
63
63
|
feePercentage?: number | undefined;
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: anticipation.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ANTICIPATION_SERVICE_NAME = exports.ANTICIPATION_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AnticipationServiceControllerMethods = AnticipationServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
10
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.ANTICIPATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "anticipation";
|
|
13
|
+
exports.ANTICIPATION_PACKAGE_NAME = "anticipation";
|
|
13
14
|
function AnticipationServiceControllerMethods() {
|
|
14
15
|
return function (constructor) {
|
|
15
16
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
"simulateAnticipations",
|
|
18
|
+
"createAnticipations",
|
|
19
|
+
"getAnticipationsByRecipient",
|
|
20
|
+
"getAnticipation",
|
|
21
|
+
"updateAnticipationStatus",
|
|
22
|
+
"updateAnticipation",
|
|
22
23
|
];
|
|
23
24
|
for (const method of grpcMethods) {
|
|
24
25
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
25
|
-
(0, microservices_1.GrpcMethod)(
|
|
26
|
+
(0, microservices_1.GrpcMethod)("AnticipationService", method)(constructor.prototype[method], method, descriptor);
|
|
26
27
|
}
|
|
27
28
|
const grpcStreamMethods = [];
|
|
28
29
|
for (const method of grpcStreamMethods) {
|
|
29
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
30
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
31
|
+
(0, microservices_1.GrpcStreamMethod)("AnticipationService", method)(constructor.prototype[method], method, descriptor);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
exports.ANTICIPATION_SERVICE_NAME =
|
|
35
|
+
exports.ANTICIPATION_SERVICE_NAME = "AnticipationService";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "asset";
|
|
3
3
|
export interface WriteFileRequest {
|
|
4
|
-
buffer: Uint8Array;
|
|
5
4
|
mimetype: string;
|
|
6
|
-
|
|
5
|
+
buffer: Uint8Array;
|
|
6
|
+
folder?: string | undefined;
|
|
7
7
|
}
|
|
8
8
|
export interface WriteFileResponse {
|
|
9
9
|
filename: string;
|
package/dist/typescript/asset.js
CHANGED
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: asset.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ASSET_SERVICE_NAME = exports.ASSET_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AssetServiceControllerMethods = AssetServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.ASSET_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "asset";
|
|
13
|
+
exports.ASSET_PACKAGE_NAME = "asset";
|
|
14
14
|
function AssetServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
17
|
-
'writeFile',
|
|
18
|
-
'readFile',
|
|
19
|
-
'deleteFile',
|
|
20
|
-
'fileExists',
|
|
21
|
-
];
|
|
16
|
+
const grpcMethods = ["writeFile", "readFile", "deleteFile", "fileExists"];
|
|
22
17
|
for (const method of grpcMethods) {
|
|
23
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AssetService", method)(constructor.prototype[method], method, descriptor);
|
|
25
20
|
}
|
|
26
21
|
const grpcStreamMethods = [];
|
|
27
22
|
for (const method of grpcStreamMethods) {
|
|
28
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
29
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AssetService", method)(constructor.prototype[method], method, descriptor);
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
exports.ASSET_SERVICE_NAME =
|
|
28
|
+
exports.ASSET_SERVICE_NAME = "AssetService";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
2
|
export declare const protobufPackage = "auth";
|
|
3
3
|
export interface SignInRequest {
|
|
4
4
|
id: string;
|
|
@@ -13,7 +13,7 @@ export interface RefreshAccessTokenRequest {
|
|
|
13
13
|
export interface RefreshAccessTokenResponse {
|
|
14
14
|
accessToken: string;
|
|
15
15
|
refreshToken: string;
|
|
16
|
-
accountId?: string;
|
|
16
|
+
accountId?: string | undefined;
|
|
17
17
|
}
|
|
18
18
|
export declare const AUTH_PACKAGE_NAME = "auth";
|
|
19
19
|
export interface AuthServiceClient {
|
package/dist/typescript/auth.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v2.11.2
|
|
5
|
+
// protoc v6.33.5
|
|
6
6
|
// source: auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.AUTH_SERVICE_NAME = exports.AUTH_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.AuthServiceControllerMethods = AuthServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.AUTH_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = "auth";
|
|
13
|
+
exports.AUTH_PACKAGE_NAME = "auth";
|
|
14
14
|
function AuthServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ["signIn", "refreshAccessToken"];
|
|
17
17
|
for (const method of grpcMethods) {
|
|
18
18
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
19
|
-
(0, microservices_1.GrpcMethod)(
|
|
19
|
+
(0, microservices_1.GrpcMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
20
20
|
}
|
|
21
21
|
const grpcStreamMethods = [];
|
|
22
22
|
for (const method of grpcStreamMethods) {
|
|
23
23
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
24
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
24
|
+
(0, microservices_1.GrpcStreamMethod)("AuthService", method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.AUTH_SERVICE_NAME =
|
|
28
|
+
exports.AUTH_SERVICE_NAME = "AuthService";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { BankAccountType, HolderType } from
|
|
2
|
-
import { Observable } from
|
|
1
|
+
import { BankAccountType, HolderType } from "@postpaybr/contracts/enums";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { Void } from "./common";
|
|
3
4
|
export declare const protobufPackage = "bankAccount";
|
|
4
5
|
export interface CreateBankAccountRequest {
|
|
5
6
|
bankCompeCode: number;
|
|
6
7
|
agency: string;
|
|
7
8
|
account: string;
|
|
8
9
|
digitAccount: string;
|
|
9
|
-
|
|
10
|
-
pixKey?: string;
|
|
10
|
+
pixKey?: string | undefined;
|
|
11
11
|
holderType: HolderType;
|
|
12
12
|
accountType: BankAccountType;
|
|
13
|
-
recipientId: string;
|
|
14
13
|
}
|
|
15
14
|
export interface GetBankAccountByRecipientIdRequest {
|
|
16
15
|
recipientId: string;
|
|
@@ -28,7 +27,7 @@ export interface BankAccount {
|
|
|
28
27
|
account: string;
|
|
29
28
|
digitAccount: string;
|
|
30
29
|
balance: number;
|
|
31
|
-
pixKey?: string;
|
|
30
|
+
pixKey?: string | undefined;
|
|
32
31
|
holderType: HolderType;
|
|
33
32
|
accountType: BankAccountType;
|
|
34
33
|
recipientId: string;
|
|
@@ -36,8 +35,6 @@ export interface BankAccount {
|
|
|
36
35
|
export interface BankAccountResponse {
|
|
37
36
|
bankAccount: BankAccount | undefined;
|
|
38
37
|
}
|
|
39
|
-
export interface Void {
|
|
40
|
-
}
|
|
41
38
|
export interface GetBankAccountRequest {
|
|
42
39
|
id: string;
|
|
43
40
|
}
|