@postpaybr/protos 1.1.14 → 1.1.16
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 +5 -5
- package/dist/typescript/account-entry.js +9 -9
- package/dist/typescript/admin-card-verification.d.ts +15 -14
- package/dist/typescript/admin-card-verification.js +9 -9
- package/dist/typescript/administrator.d.ts +10 -8
- package/dist/typescript/administrator.js +18 -18
- package/dist/typescript/anticipation.d.ts +8 -7
- package/dist/typescript/anticipation.js +11 -11
- package/dist/typescript/bank-account.d.ts +3 -3
- package/dist/typescript/bank-account.js +10 -10
- package/dist/typescript/card.d.ts +6 -5
- package/dist/typescript/card.js +14 -14
- package/dist/typescript/charge-schedule.d.ts +1 -1
- package/dist/typescript/charge.d.ts +48 -70
- package/dist/typescript/charge.js +36 -36
- package/dist/typescript/common.d.ts +35 -18
- package/dist/typescript/common.js +2 -2
- package/dist/typescript/context.d.ts +9 -7
- package/dist/typescript/context.js +13 -14
- package/dist/typescript/customer.d.ts +8 -8
- package/dist/typescript/customer.js +19 -19
- package/dist/typescript/daily-balance.d.ts +5 -5
- package/dist/typescript/daily-balance.js +6 -6
- package/dist/typescript/document-verification.d.ts +21 -20
- package/dist/typescript/document-verification.js +11 -11
- package/dist/typescript/email.d.ts +2 -2
- package/dist/typescript/email.js +11 -11
- package/dist/typescript/fee.d.ts +6 -6
- package/dist/typescript/fee.js +9 -9
- package/dist/typescript/notification.d.ts +42 -40
- package/dist/typescript/notification.js +16 -16
- package/dist/typescript/order.d.ts +24 -23
- package/dist/typescript/order.js +15 -15
- package/dist/typescript/payable.d.ts +33 -35
- package/dist/typescript/payable.js +18 -18
- package/dist/typescript/payment-calculator.d.ts +6 -5
- package/dist/typescript/payment-calculator.js +10 -10
- package/dist/typescript/payment-card.d.ts +14 -16
- package/dist/typescript/payment-card.js +10 -6
- package/dist/typescript/payment-gateway.d.ts +11 -9
- package/dist/typescript/payment-gateway.js +12 -12
- package/dist/typescript/payment-pix.d.ts +4 -3
- package/dist/typescript/payment-pix.js +6 -6
- package/dist/typescript/receipt.d.ts +15 -29
- package/dist/typescript/receipt.js +14 -14
- package/dist/typescript/recipient-payment-gateway.d.ts +14 -12
- package/dist/typescript/recipient-payment-gateway.js +11 -11
- package/dist/typescript/recipient.d.ts +21 -19
- package/dist/typescript/recipient.js +17 -17
- package/dist/typescript/role.d.ts +5 -3
- package/dist/typescript/role.js +11 -11
- package/dist/typescript/tax.d.ts +33 -61
- package/dist/typescript/tax.js +17 -17
- package/dist/typescript/transfer.d.ts +21 -19
- package/dist/typescript/transfer.js +6 -7
- package/dist/typescript/two-factor.d.ts +8 -7
- package/dist/typescript/two-factor.js +11 -11
- package/dist/typescript/user.d.ts +13 -14
- package/dist/typescript/user.js +22 -22
- package/package.json +1 -1
- package/src/protos/charge.proto +4 -33
- package/src/protos/common.proto +12 -0
- package/src/protos/context.proto +1 -1
- package/src/protos/customer.proto +1 -1
- package/src/protos/payable.proto +5 -6
- package/src/protos/receipt.proto +7 -21
- package/src/protos/tax.proto +6 -40
- package/src/protos/user.proto +3 -4
|
@@ -9,35 +9,35 @@ exports.CUSTOMER_SERVICE_NAME = exports.CUSTOMER_PACKAGE_NAME = exports.protobuf
|
|
|
9
9
|
exports.CustomerServiceControllerMethods = CustomerServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.CUSTOMER_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'customer';
|
|
13
|
+
exports.CUSTOMER_PACKAGE_NAME = 'customer';
|
|
14
14
|
function CustomerServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
'createCustomer',
|
|
18
|
+
'checkCustomerExists',
|
|
19
|
+
'getCustomerById',
|
|
20
|
+
'getCustomerByEmail',
|
|
21
|
+
'getVerifiedCustomerByDocument',
|
|
22
|
+
'getProfile',
|
|
23
|
+
'updateCustomer',
|
|
24
|
+
'updateIsEmailVerifiedStatus',
|
|
25
|
+
'changePin',
|
|
26
|
+
'checkIsValidPin',
|
|
27
|
+
'validateAndSignIn',
|
|
28
|
+
'validateAndRefreshToken',
|
|
29
|
+
'getCustomersWithFilters',
|
|
30
|
+
'initiateDocumentVerification',
|
|
31
31
|
];
|
|
32
32
|
for (const method of grpcMethods) {
|
|
33
33
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
34
|
-
(0, microservices_1.GrpcMethod)(
|
|
34
|
+
(0, microservices_1.GrpcMethod)('CustomerService', method)(constructor.prototype[method], method, descriptor);
|
|
35
35
|
}
|
|
36
36
|
const grpcStreamMethods = [];
|
|
37
37
|
for (const method of grpcStreamMethods) {
|
|
38
38
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
39
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
39
|
+
(0, microservices_1.GrpcStreamMethod)('CustomerService', method)(constructor.prototype[method], method, descriptor);
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
exports.CUSTOMER_SERVICE_NAME =
|
|
43
|
+
exports.CUSTOMER_SERVICE_NAME = 'CustomerService';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { DailyBalance } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { DailyBalance } from './common';
|
|
3
3
|
export declare const protobufPackage = "dailyBalance";
|
|
4
4
|
export interface GetBalanceHistoryRequest {
|
|
5
5
|
recipientId: string;
|
|
6
|
-
startDate:
|
|
7
|
-
endDate:
|
|
6
|
+
startDate: Date;
|
|
7
|
+
endDate: Date;
|
|
8
8
|
}
|
|
9
9
|
export interface GetBalanceHistoryResponse {
|
|
10
10
|
dailyBalances: DailyBalance[];
|
|
@@ -14,7 +14,7 @@ export interface getCurrentBalanceRequest {
|
|
|
14
14
|
}
|
|
15
15
|
export interface getCurrentBalanceResponse {
|
|
16
16
|
balance: number;
|
|
17
|
-
lastUpdate:
|
|
17
|
+
lastUpdate: Date;
|
|
18
18
|
}
|
|
19
19
|
export declare const DAILY_BALANCE_PACKAGE_NAME = "dailyBalance";
|
|
20
20
|
export interface DailyBalanceServiceClient {
|
|
@@ -9,20 +9,20 @@ exports.DAILY_BALANCE_SERVICE_NAME = exports.DAILY_BALANCE_PACKAGE_NAME = export
|
|
|
9
9
|
exports.DailyBalanceServiceControllerMethods = DailyBalanceServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.DAILY_BALANCE_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'dailyBalance';
|
|
13
|
+
exports.DAILY_BALANCE_PACKAGE_NAME = 'dailyBalance';
|
|
14
14
|
function DailyBalanceServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
|
-
const grpcMethods = [
|
|
16
|
+
const grpcMethods = ['getBalanceHistory', 'getCurrentBalance'];
|
|
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)('DailyBalanceService', 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)('DailyBalanceService', method)(constructor.prototype[method], method, descriptor);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.DAILY_BALANCE_SERVICE_NAME =
|
|
28
|
+
exports.DAILY_BALANCE_SERVICE_NAME = 'DailyBalanceService';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { Empty } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Empty } from './common';
|
|
3
|
+
import { DocumentRejectionReason, VerificationStatus } from '@postpaybr/contracts/types';
|
|
3
4
|
export declare const protobufPackage = "documentVerification";
|
|
4
|
-
export interface
|
|
5
|
+
export interface UpdateVerificationStatusRequest {
|
|
5
6
|
id: string;
|
|
6
|
-
status:
|
|
7
|
-
rejectionReasons
|
|
7
|
+
status: VerificationStatus;
|
|
8
|
+
rejectionReasons?: DocumentRejectionReason[] | undefined;
|
|
8
9
|
customRejectionReason?: string | undefined;
|
|
9
10
|
reviewerId?: string | undefined;
|
|
10
11
|
actedById: string;
|
|
@@ -13,15 +14,15 @@ export interface DocumentVerificationResponse {
|
|
|
13
14
|
id: string;
|
|
14
15
|
documentFrontUrl: string;
|
|
15
16
|
selfieWithDocumentUrl: string;
|
|
16
|
-
rejectionReasons:
|
|
17
|
+
rejectionReasons: DocumentRejectionReason[];
|
|
17
18
|
customRejectionReason: string;
|
|
18
19
|
}
|
|
19
20
|
export interface GetVerificationsWithDetailsRequest {
|
|
20
|
-
status:
|
|
21
|
+
status: VerificationStatus;
|
|
21
22
|
offset?: number | undefined;
|
|
22
23
|
limit?: number | undefined;
|
|
23
|
-
startDate?:
|
|
24
|
-
endDate?:
|
|
24
|
+
startDate?: Date | undefined;
|
|
25
|
+
endDate?: Date | undefined;
|
|
25
26
|
reviewerIds: string[];
|
|
26
27
|
}
|
|
27
28
|
export interface GetDocumentVerificationsWithDetailsResponse {
|
|
@@ -34,10 +35,10 @@ export interface DocumentVerificationWithDetails {
|
|
|
34
35
|
id: string;
|
|
35
36
|
customerName: string;
|
|
36
37
|
document: string;
|
|
37
|
-
createdAt:
|
|
38
|
+
createdAt: Date;
|
|
38
39
|
reviewDeadline: string;
|
|
39
|
-
latestHistoryCreatedAt:
|
|
40
|
-
status:
|
|
40
|
+
latestHistoryCreatedAt: Date;
|
|
41
|
+
status: VerificationStatus;
|
|
41
42
|
lastReviewer: Reviewer | undefined;
|
|
42
43
|
}
|
|
43
44
|
export interface GetVerificationDetailsByIdRequest {
|
|
@@ -47,16 +48,16 @@ export interface DocumentVerificationDetailsResponse {
|
|
|
47
48
|
id: string;
|
|
48
49
|
document: string;
|
|
49
50
|
customerName: string;
|
|
50
|
-
createdAt:
|
|
51
|
-
currentStatus:
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
currentStatus: VerificationStatus;
|
|
52
53
|
documentFrontUrl?: string | undefined;
|
|
53
54
|
selfieWithDocumentUrl?: string | undefined;
|
|
54
55
|
elapsedBusinessTime?: string | undefined;
|
|
55
56
|
lastReviewer?: Reviewer | undefined;
|
|
56
57
|
histories: VerificationHistoryWithDetails[];
|
|
57
|
-
rejectionReasons:
|
|
58
|
+
rejectionReasons: DocumentRejectionReason[];
|
|
58
59
|
customRejectionReason?: string | undefined;
|
|
59
|
-
finalDecisionAt?:
|
|
60
|
+
finalDecisionAt?: Date | undefined;
|
|
60
61
|
}
|
|
61
62
|
export interface Reviewer {
|
|
62
63
|
id: string;
|
|
@@ -64,8 +65,8 @@ export interface Reviewer {
|
|
|
64
65
|
}
|
|
65
66
|
export interface VerificationHistoryWithDetails {
|
|
66
67
|
id: string;
|
|
67
|
-
status:
|
|
68
|
-
createdAt:
|
|
68
|
+
status: VerificationStatus;
|
|
69
|
+
createdAt: Date;
|
|
69
70
|
reviewedBy: string;
|
|
70
71
|
actedBy: string;
|
|
71
72
|
}
|
|
@@ -85,7 +86,7 @@ export interface UndoLastStatusChangeRequest {
|
|
|
85
86
|
}
|
|
86
87
|
export declare const DOCUMENT_VERIFICATION_PACKAGE_NAME = "documentVerification";
|
|
87
88
|
export interface DocumentVerificationServiceClient {
|
|
88
|
-
updateVerificationStatus(request:
|
|
89
|
+
updateVerificationStatus(request: UpdateVerificationStatusRequest): Observable<DocumentVerificationResponse>;
|
|
89
90
|
getDocumentVerificationsWithDetails(request: GetVerificationsWithDetailsRequest): Observable<GetDocumentVerificationsWithDetailsResponse>;
|
|
90
91
|
getDocumentVerificationDetailsById(request: GetVerificationDetailsByIdRequest): Observable<DocumentVerificationDetailsResponse>;
|
|
91
92
|
countPendingOrInProgressVerifications(request: Empty): Observable<CountResponse>;
|
|
@@ -93,7 +94,7 @@ export interface DocumentVerificationServiceClient {
|
|
|
93
94
|
undoLastStatusChange(request: UndoLastStatusChangeRequest): Observable<DocumentVerificationResponse>;
|
|
94
95
|
}
|
|
95
96
|
export interface DocumentVerificationServiceController {
|
|
96
|
-
updateVerificationStatus(request:
|
|
97
|
+
updateVerificationStatus(request: UpdateVerificationStatusRequest): Promise<DocumentVerificationResponse> | Observable<DocumentVerificationResponse> | DocumentVerificationResponse;
|
|
97
98
|
getDocumentVerificationsWithDetails(request: GetVerificationsWithDetailsRequest): Promise<GetDocumentVerificationsWithDetailsResponse> | Observable<GetDocumentVerificationsWithDetailsResponse> | GetDocumentVerificationsWithDetailsResponse;
|
|
98
99
|
getDocumentVerificationDetailsById(request: GetVerificationDetailsByIdRequest): Promise<DocumentVerificationDetailsResponse> | Observable<DocumentVerificationDetailsResponse> | DocumentVerificationDetailsResponse;
|
|
99
100
|
countPendingOrInProgressVerifications(request: Empty): Promise<CountResponse> | Observable<CountResponse> | CountResponse;
|
|
@@ -9,27 +9,27 @@ exports.DOCUMENT_VERIFICATION_SERVICE_NAME = exports.DOCUMENT_VERIFICATION_PACKA
|
|
|
9
9
|
exports.DocumentVerificationServiceControllerMethods = DocumentVerificationServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.DOCUMENT_VERIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'documentVerification';
|
|
13
|
+
exports.DOCUMENT_VERIFICATION_PACKAGE_NAME = 'documentVerification';
|
|
14
14
|
function DocumentVerificationServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
'updateVerificationStatus',
|
|
18
|
+
'getDocumentVerificationsWithDetails',
|
|
19
|
+
'getDocumentVerificationDetailsById',
|
|
20
|
+
'countPendingOrInProgressVerifications',
|
|
21
|
+
'getDistinctReviewers',
|
|
22
|
+
'undoLastStatusChange',
|
|
23
23
|
];
|
|
24
24
|
for (const method of grpcMethods) {
|
|
25
25
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
-
(0, microservices_1.GrpcMethod)(
|
|
26
|
+
(0, microservices_1.GrpcMethod)('DocumentVerificationService', method)(constructor.prototype[method], method, descriptor);
|
|
27
27
|
}
|
|
28
28
|
const grpcStreamMethods = [];
|
|
29
29
|
for (const method of grpcStreamMethods) {
|
|
30
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
31
|
+
(0, microservices_1.GrpcStreamMethod)('DocumentVerificationService', method)(constructor.prototype[method], method, descriptor);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.DOCUMENT_VERIFICATION_SERVICE_NAME =
|
|
35
|
+
exports.DOCUMENT_VERIFICATION_SERVICE_NAME = 'DocumentVerificationService';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
2
|
export declare const protobufPackage = "email";
|
|
3
3
|
export interface SendVerificationEmailRequest {
|
|
4
4
|
email: string;
|
|
@@ -47,7 +47,7 @@ export interface GetEmailVerificationByTokenResponse {
|
|
|
47
47
|
recipientId: string;
|
|
48
48
|
recipientType: string;
|
|
49
49
|
token: string;
|
|
50
|
-
expiresAt:
|
|
50
|
+
expiresAt: Date;
|
|
51
51
|
isVerified: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const EMAIL_PACKAGE_NAME = "email";
|
package/dist/typescript/email.js
CHANGED
|
@@ -9,27 +9,27 @@ exports.EMAIL_SERVICE_NAME = exports.EMAIL_PACKAGE_NAME = exports.protobufPackag
|
|
|
9
9
|
exports.EmailServiceControllerMethods = EmailServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.EMAIL_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'email';
|
|
13
|
+
exports.EMAIL_PACKAGE_NAME = 'email';
|
|
14
14
|
function EmailServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
'sendVerificationEmail',
|
|
18
|
+
'checkVerificationEmail',
|
|
19
|
+
'sendMessageEmail',
|
|
20
|
+
'sendRecoveryPasswordEmail',
|
|
21
|
+
'checkRecoveryPasswordToken',
|
|
22
|
+
'getEmailVerificationByToken',
|
|
23
23
|
];
|
|
24
24
|
for (const method of grpcMethods) {
|
|
25
25
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
-
(0, microservices_1.GrpcMethod)(
|
|
26
|
+
(0, microservices_1.GrpcMethod)('EmailService', method)(constructor.prototype[method], method, descriptor);
|
|
27
27
|
}
|
|
28
28
|
const grpcStreamMethods = [];
|
|
29
29
|
for (const method of grpcStreamMethods) {
|
|
30
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
31
|
+
(0, microservices_1.GrpcStreamMethod)('EmailService', method)(constructor.prototype[method], method, descriptor);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.EMAIL_SERVICE_NAME =
|
|
35
|
+
exports.EMAIL_SERVICE_NAME = 'EmailService';
|
package/dist/typescript/fee.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { brandType, FeeType, PaymentMethods } from
|
|
2
|
-
import { Observable } from
|
|
3
|
-
import { Void } from
|
|
1
|
+
import { brandType, FeeType, PaymentMethods } from '@postpaybr/contracts/types';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Void } from './common';
|
|
4
4
|
export declare const protobufPackage = "fee";
|
|
5
5
|
export interface CreateFeeDto {
|
|
6
6
|
method: PaymentMethods;
|
|
@@ -14,15 +14,15 @@ export interface CreateFeeDto {
|
|
|
14
14
|
brand: brandType;
|
|
15
15
|
}
|
|
16
16
|
export interface UpdateFeeDto {
|
|
17
|
-
method?:
|
|
18
|
-
type?:
|
|
17
|
+
method?: PaymentMethods | undefined;
|
|
18
|
+
type?: FeeType | undefined;
|
|
19
19
|
base?: number | undefined;
|
|
20
20
|
percentage?: number | undefined;
|
|
21
21
|
promotionalBase?: number | undefined;
|
|
22
22
|
promotionalPercentage?: number | undefined;
|
|
23
23
|
description?: string | undefined;
|
|
24
24
|
installment?: number | undefined;
|
|
25
|
-
brand?:
|
|
25
|
+
brand?: brandType | undefined;
|
|
26
26
|
recipientId: string;
|
|
27
27
|
feeId: string;
|
|
28
28
|
}
|
package/dist/typescript/fee.js
CHANGED
|
@@ -8,25 +8,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.FEE_SERVICE_NAME = exports.FEE_PACKAGE_NAME = exports.protobufPackage = void 0;
|
|
9
9
|
exports.FeeServiceControllerMethods = FeeServiceControllerMethods;
|
|
10
10
|
const microservices_1 = require("@nestjs/microservices");
|
|
11
|
-
exports.protobufPackage =
|
|
12
|
-
exports.FEE_PACKAGE_NAME =
|
|
11
|
+
exports.protobufPackage = 'fee';
|
|
12
|
+
exports.FEE_PACKAGE_NAME = 'fee';
|
|
13
13
|
function FeeServiceControllerMethods() {
|
|
14
14
|
return function (constructor) {
|
|
15
15
|
const grpcMethods = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
'createFee',
|
|
17
|
+
'updateRecipientFee',
|
|
18
|
+
'getAllDefaultFees',
|
|
19
|
+
'getFeeForRecipientAndMethod',
|
|
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)('FeeService', 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)('FeeService', method)(constructor.prototype[method], method, descriptor);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.FEE_SERVICE_NAME =
|
|
32
|
+
exports.FEE_SERVICE_NAME = 'FeeService';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { DateFilter, PaginationFilter } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { DateFilter, PaginationFilter } from './common';
|
|
3
|
+
import { ChangesFieldType, NotificationCategory, NotificationImageType, PaymentMethods } from '@postpaybr/contracts/types';
|
|
4
|
+
import { RecipientType } from '@postpaybr/contracts/enums';
|
|
3
5
|
export declare const protobufPackage = "notification";
|
|
4
6
|
export interface GetAllNotificationsDto {
|
|
5
7
|
recipientId: string;
|
|
6
|
-
recipientType:
|
|
7
|
-
severities
|
|
8
|
+
recipientType: RecipientType;
|
|
9
|
+
severities?: number[] | undefined;
|
|
8
10
|
isRead?: boolean | undefined;
|
|
9
11
|
}
|
|
10
12
|
export interface NotificationChange {
|
|
11
|
-
field:
|
|
13
|
+
field: ChangesFieldType;
|
|
12
14
|
oldValue: string;
|
|
13
15
|
newValue: string;
|
|
14
16
|
}
|
|
@@ -21,26 +23,26 @@ export interface NotificationMetadata {
|
|
|
21
23
|
url?: string | undefined;
|
|
22
24
|
deviceInfo?: string | undefined;
|
|
23
25
|
location?: string | undefined;
|
|
24
|
-
eventDate?:
|
|
26
|
+
eventDate?: Date | undefined;
|
|
25
27
|
securityAction?: string | undefined;
|
|
26
|
-
changes
|
|
27
|
-
startDate?:
|
|
28
|
-
endDate?:
|
|
28
|
+
changes?: NotificationChange[];
|
|
29
|
+
startDate?: Date | undefined;
|
|
30
|
+
endDate?: Date | undefined;
|
|
29
31
|
impactDescription?: string | undefined;
|
|
30
32
|
updateReason?: string | undefined;
|
|
31
|
-
changePoints
|
|
33
|
+
changePoints?: ChangePoint[];
|
|
32
34
|
userId?: string | undefined;
|
|
33
|
-
scheduledPaymentDate?:
|
|
35
|
+
scheduledPaymentDate?: Date | undefined;
|
|
34
36
|
paymentAmount?: number | undefined;
|
|
35
37
|
paymentStatus?: string | undefined;
|
|
36
|
-
paymentMethod?:
|
|
38
|
+
paymentMethod?: PaymentMethods | undefined;
|
|
37
39
|
chargeId?: string | undefined;
|
|
38
40
|
receiptId?: string | undefined;
|
|
39
41
|
taxId?: string | undefined;
|
|
40
|
-
params
|
|
42
|
+
params?: {
|
|
41
43
|
[key: string]: string;
|
|
42
44
|
};
|
|
43
|
-
actionButtonVariant?:
|
|
45
|
+
actionButtonVariant?: 'default' | 'ghost';
|
|
44
46
|
callToAction?: string | undefined;
|
|
45
47
|
}
|
|
46
48
|
export interface NotificationMetadata_ParamsEntry {
|
|
@@ -53,33 +55,33 @@ export interface Notification {
|
|
|
53
55
|
description: string;
|
|
54
56
|
isRead: boolean;
|
|
55
57
|
severity: number;
|
|
56
|
-
createdAt:
|
|
57
|
-
updatedAt:
|
|
58
|
-
category:
|
|
59
|
-
recipientType:
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
category: NotificationCategory;
|
|
61
|
+
recipientType: RecipientType;
|
|
60
62
|
recipientId: string;
|
|
61
63
|
imageUrl?: string | undefined;
|
|
62
|
-
imageType?:
|
|
64
|
+
imageType?: NotificationImageType | undefined;
|
|
63
65
|
meta?: NotificationMetadata | undefined;
|
|
64
66
|
}
|
|
65
67
|
export interface CreateNotificationRequest {
|
|
66
68
|
recipientId: string;
|
|
67
|
-
recipientType:
|
|
69
|
+
recipientType: RecipientType;
|
|
68
70
|
title: string;
|
|
69
71
|
description: string;
|
|
70
72
|
severity?: number | undefined;
|
|
71
|
-
category?:
|
|
73
|
+
category?: NotificationCategory | undefined;
|
|
72
74
|
meta?: NotificationMetadata | undefined;
|
|
73
75
|
isRead?: boolean | undefined;
|
|
74
76
|
imageUrl?: string | undefined;
|
|
75
|
-
imageType?:
|
|
77
|
+
imageType?: NotificationImageType | undefined;
|
|
76
78
|
}
|
|
77
79
|
export interface NotificationResponse {
|
|
78
80
|
notification: Notification | undefined;
|
|
79
81
|
}
|
|
80
82
|
export interface GetNotificationByIdRequest {
|
|
81
83
|
recipientId: string;
|
|
82
|
-
recipientType:
|
|
84
|
+
recipientType: RecipientType;
|
|
83
85
|
id: string;
|
|
84
86
|
}
|
|
85
87
|
export interface GetAllNotificationsRequest {
|
|
@@ -93,14 +95,14 @@ export interface NotificationsResponse {
|
|
|
93
95
|
}
|
|
94
96
|
export interface CountUnreadNotificationsRequest {
|
|
95
97
|
recipientId: string;
|
|
96
|
-
recipientType:
|
|
98
|
+
recipientType: RecipientType;
|
|
97
99
|
}
|
|
98
100
|
export interface CountUnreadNotificationsResponse {
|
|
99
101
|
countNotRead: number;
|
|
100
102
|
}
|
|
101
103
|
export interface MarkAsReadRequest {
|
|
102
104
|
recipientId: string;
|
|
103
|
-
recipientType:
|
|
105
|
+
recipientType: RecipientType;
|
|
104
106
|
notificationId: string;
|
|
105
107
|
}
|
|
106
108
|
export interface MarkAsReadResponse {
|
|
@@ -108,49 +110,49 @@ export interface MarkAsReadResponse {
|
|
|
108
110
|
}
|
|
109
111
|
export interface CreateSecurityNotificationRequest {
|
|
110
112
|
recipientId: string;
|
|
111
|
-
recipientType:
|
|
113
|
+
recipientType: RecipientType;
|
|
112
114
|
deviceInfo?: string | undefined;
|
|
113
115
|
location?: string | undefined;
|
|
114
|
-
eventDate:
|
|
116
|
+
eventDate: Date;
|
|
115
117
|
imageUrl?: string | undefined;
|
|
116
|
-
imageType?:
|
|
118
|
+
imageType?: NotificationImageType | undefined;
|
|
117
119
|
}
|
|
118
120
|
export interface CreatePasswordChangedNotificationRequest {
|
|
119
121
|
recipientId: string;
|
|
120
|
-
recipientType:
|
|
122
|
+
recipientType: RecipientType;
|
|
121
123
|
deviceInfo?: string | undefined;
|
|
122
124
|
location?: string | undefined;
|
|
123
|
-
eventDate:
|
|
125
|
+
eventDate: Date;
|
|
124
126
|
imageUrl?: string | undefined;
|
|
125
|
-
imageType?:
|
|
127
|
+
imageType?: NotificationImageType | undefined;
|
|
126
128
|
}
|
|
127
129
|
export interface CreateMaintenanceNotificationRequest {
|
|
128
130
|
recipientId: string;
|
|
129
|
-
recipientType:
|
|
130
|
-
startDate:
|
|
131
|
-
endDate:
|
|
131
|
+
recipientType: RecipientType;
|
|
132
|
+
startDate: Date;
|
|
133
|
+
endDate: Date;
|
|
132
134
|
impactDescription: string;
|
|
133
135
|
imageUrl?: string | undefined;
|
|
134
|
-
imageType?:
|
|
136
|
+
imageType?: NotificationImageType | undefined;
|
|
135
137
|
}
|
|
136
138
|
export interface CreateTermsUpdatedNotificationRequest {
|
|
137
139
|
recipientId: string;
|
|
138
|
-
recipientType:
|
|
140
|
+
recipientType: RecipientType;
|
|
139
141
|
updateReason: string;
|
|
140
142
|
changePoints: ChangePoint[];
|
|
141
143
|
imageUrl?: string | undefined;
|
|
142
|
-
imageType?:
|
|
144
|
+
imageType?: NotificationImageType | undefined;
|
|
143
145
|
}
|
|
144
146
|
export interface CreateProfileUpdatedNotificationRequest {
|
|
145
147
|
recipientId: string;
|
|
146
|
-
recipientType:
|
|
148
|
+
recipientType: RecipientType;
|
|
147
149
|
changes: NotificationChange[];
|
|
148
150
|
imageUrl?: string | undefined;
|
|
149
|
-
imageType?:
|
|
151
|
+
imageType?: NotificationImageType | undefined;
|
|
150
152
|
}
|
|
151
153
|
export interface GetNotificationStatusRequest {
|
|
152
154
|
recipientId: string;
|
|
153
|
-
recipientType:
|
|
155
|
+
recipientType: RecipientType;
|
|
154
156
|
}
|
|
155
157
|
export interface GetNotificationStatusResponse {
|
|
156
158
|
hasCritical: boolean;
|
|
@@ -9,32 +9,32 @@ exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_PACKAGE_NAME = exports.
|
|
|
9
9
|
exports.NotificationServiceControllerMethods = NotificationServiceControllerMethods;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
-
exports.protobufPackage =
|
|
13
|
-
exports.NOTIFICATION_PACKAGE_NAME =
|
|
12
|
+
exports.protobufPackage = 'notification';
|
|
13
|
+
exports.NOTIFICATION_PACKAGE_NAME = 'notification';
|
|
14
14
|
function NotificationServiceControllerMethods() {
|
|
15
15
|
return function (constructor) {
|
|
16
16
|
const grpcMethods = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
'createNotification',
|
|
18
|
+
'getNotificationById',
|
|
19
|
+
'getAllNotifications',
|
|
20
|
+
'countUnreadNotifications',
|
|
21
|
+
'markAsRead',
|
|
22
|
+
'createSecurityNotification',
|
|
23
|
+
'createPasswordChangedNotification',
|
|
24
|
+
'createMaintenanceNotification',
|
|
25
|
+
'createTermsUpdatedNotification',
|
|
26
|
+
'createProfileUpdatedNotification',
|
|
27
|
+
'getNotificationStatus',
|
|
28
28
|
];
|
|
29
29
|
for (const method of grpcMethods) {
|
|
30
30
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
31
|
-
(0, microservices_1.GrpcMethod)(
|
|
31
|
+
(0, microservices_1.GrpcMethod)('NotificationService', method)(constructor.prototype[method], method, descriptor);
|
|
32
32
|
}
|
|
33
33
|
const grpcStreamMethods = [];
|
|
34
34
|
for (const method of grpcStreamMethods) {
|
|
35
35
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
36
|
-
(0, microservices_1.GrpcStreamMethod)(
|
|
36
|
+
(0, microservices_1.GrpcStreamMethod)('NotificationService', method)(constructor.prototype[method], method, descriptor);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
exports.NOTIFICATION_SERVICE_NAME =
|
|
40
|
+
exports.NOTIFICATION_SERVICE_NAME = 'NotificationService';
|