@postpaybr/protos 1.1.11 → 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.
Files changed (105) hide show
  1. package/dist/typescript/account-entry.d.ts +4 -15
  2. package/dist/typescript/account-entry.js +11 -11
  3. package/dist/typescript/address.d.ts +1 -1
  4. package/dist/typescript/address.js +8 -13
  5. package/dist/typescript/admin-card-verification.d.ts +16 -19
  6. package/dist/typescript/admin-card-verification.js +12 -11
  7. package/dist/typescript/administrator.d.ts +10 -17
  8. package/dist/typescript/administrator.js +21 -20
  9. package/dist/typescript/anticipation.d.ts +7 -7
  10. package/dist/typescript/anticipation.js +14 -13
  11. package/dist/typescript/asset.d.ts +3 -3
  12. package/dist/typescript/asset.js +8 -13
  13. package/dist/typescript/auth.d.ts +2 -2
  14. package/dist/typescript/auth.js +8 -8
  15. package/dist/typescript/bank-account.d.ts +5 -8
  16. package/dist/typescript/bank-account.js +12 -12
  17. package/dist/typescript/card-vault.d.ts +1 -1
  18. package/dist/typescript/card-vault.js +8 -8
  19. package/dist/typescript/card-verification.d.ts +1 -1
  20. package/dist/typescript/card-verification.js +8 -11
  21. package/dist/typescript/card.d.ts +5 -20
  22. package/dist/typescript/card.js +17 -16
  23. package/dist/typescript/charge-schedule.d.ts +4 -16
  24. package/dist/typescript/charge-schedule.js +8 -8
  25. package/dist/typescript/charge.d.ts +112 -100
  26. package/dist/typescript/charge.js +38 -38
  27. package/dist/typescript/common.d.ts +122 -0
  28. package/dist/typescript/common.js +11 -0
  29. package/dist/typescript/context.d.ts +16 -46
  30. package/dist/typescript/context.js +16 -15
  31. package/dist/typescript/customer.d.ts +6 -15
  32. package/dist/typescript/customer.js +21 -21
  33. package/dist/typescript/daily-balance.d.ts +5 -8
  34. package/dist/typescript/daily-balance.js +8 -8
  35. package/dist/typescript/document-verification.d.ts +18 -20
  36. package/dist/typescript/document-verification.js +14 -13
  37. package/dist/typescript/email.d.ts +2 -2
  38. package/dist/typescript/email.js +13 -13
  39. package/dist/typescript/expo-push.d.ts +2 -3
  40. package/dist/typescript/expo-push.js +8 -8
  41. package/dist/typescript/fee.d.ts +6 -7
  42. package/dist/typescript/fee.js +11 -11
  43. package/dist/typescript/location.d.ts +1 -1
  44. package/dist/typescript/location.js +8 -8
  45. package/dist/typescript/notification.d.ts +39 -48
  46. package/dist/typescript/notification.js +19 -18
  47. package/dist/typescript/order.d.ts +38 -36
  48. package/dist/typescript/order.js +18 -17
  49. package/dist/typescript/payable.d.ts +39 -40
  50. package/dist/typescript/payable.js +21 -20
  51. package/dist/typescript/payer.d.ts +1 -1
  52. package/dist/typescript/payer.js +8 -8
  53. package/dist/typescript/payment-calculator.d.ts +7 -60
  54. package/dist/typescript/payment-calculator.js +13 -12
  55. package/dist/typescript/payment-card.d.ts +25 -81
  56. package/dist/typescript/payment-card.js +9 -12
  57. package/dist/typescript/payment-gateway.d.ts +9 -19
  58. package/dist/typescript/payment-gateway.js +15 -14
  59. package/dist/typescript/payment-pix.d.ts +3 -78
  60. package/dist/typescript/payment-pix.js +10 -10
  61. package/dist/typescript/receipt.d.ts +20 -43
  62. package/dist/typescript/receipt.js +17 -16
  63. package/dist/typescript/recipient-payment-gateway.d.ts +14 -23
  64. package/dist/typescript/recipient-payment-gateway.js +14 -13
  65. package/dist/typescript/recipient.d.ts +18 -25
  66. package/dist/typescript/recipient.js +20 -19
  67. package/dist/typescript/role.d.ts +3 -9
  68. package/dist/typescript/role.js +14 -13
  69. package/dist/typescript/sms.d.ts +1 -1
  70. package/dist/typescript/sms.js +8 -8
  71. package/dist/typescript/tax.d.ts +38 -60
  72. package/dist/typescript/tax.js +20 -19
  73. package/dist/typescript/transfer.d.ts +38 -19
  74. package/dist/typescript/transfer.js +9 -8
  75. package/dist/typescript/two-factor.d.ts +7 -8
  76. package/dist/typescript/two-factor.js +14 -13
  77. package/dist/typescript/user.d.ts +16 -19
  78. package/dist/typescript/user.js +24 -24
  79. package/dist/typescript/wallet.d.ts +1 -1
  80. package/dist/typescript/wallet.js +8 -8
  81. package/package.json +3 -2
  82. package/src/protos/account-entry.proto +3 -15
  83. package/src/protos/admin-card-verification.proto +0 -2
  84. package/src/protos/administrator.proto +4 -11
  85. package/src/protos/bank-account.proto +4 -5
  86. package/src/protos/charge.proto +12 -47
  87. package/src/protos/common.proto +140 -0
  88. package/src/protos/context.proto +8 -49
  89. package/src/protos/customer.proto +5 -15
  90. package/src/protos/daily-balance.proto +3 -6
  91. package/src/protos/document-verification.proto +5 -6
  92. package/src/protos/expo-push.proto +3 -3
  93. package/src/protos/fee.proto +3 -3
  94. package/src/protos/notification.proto +4 -12
  95. package/src/protos/order.proto +6 -16
  96. package/src/protos/payment-calculator.proto +11 -87
  97. package/src/protos/payment-card.proto +7 -90
  98. package/src/protos/payment-gateway.proto +4 -14
  99. package/src/protos/payment-pix.proto +5 -95
  100. package/src/protos/receipt.proto +7 -44
  101. package/src/protos/recipient-payment-gateway.proto +5 -15
  102. package/src/protos/recipient.proto +4 -9
  103. package/src/protos/role.proto +6 -11
  104. package/src/protos/tax.proto +12 -41
  105. package/src/protos/user.proto +4 -9
@@ -1,5 +1,5 @@
1
- import { brandType, GatewayIdentification, taxMeta, MetaType, OrderType, PaymentMethods, PaymentScheduleType, TaxStatus, TaxTypes } from '@postpaybr/contracts/types';
2
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { Location, Order, Payer, PaymentSchedule, Tax } from "./common";
3
3
  export declare const protobufPackage = "context";
4
4
  export interface LocationDetails {
5
5
  document: string;
@@ -7,28 +7,6 @@ export interface LocationDetails {
7
7
  city: number;
8
8
  year: number;
9
9
  }
10
- export interface Tax {
11
- id: string;
12
- type: TaxTypes;
13
- status: TaxStatus;
14
- description: string;
15
- amount: number;
16
- year: number;
17
- dueAt: string;
18
- documentId: string;
19
- code: string;
20
- isSingleQuota: boolean;
21
- quota?: number | undefined;
22
- fee: number;
23
- fine: number;
24
- discountAmount: number;
25
- }
26
- export interface Payer {
27
- id?: string | undefined;
28
- name: string;
29
- document: string;
30
- phone?: string | undefined;
31
- }
32
10
  export interface MetaAddress {
33
11
  street: string;
34
12
  complement: string;
@@ -38,25 +16,27 @@ export interface MetaAddress {
38
16
  state: string;
39
17
  zipCode: string;
40
18
  }
41
- export interface TaxLocation {
42
- state: number;
43
- city: number;
44
- recipientId: string;
19
+ export interface Meta {
20
+ address?: MetaAddress | undefined;
21
+ licensePlate?: string | undefined;
22
+ model?: string | undefined;
23
+ yearManufacture?: number | undefined;
24
+ renavam?: string | undefined;
45
25
  }
46
26
  export interface TaxDetail {
47
27
  tax: Tax | undefined;
48
28
  payer: Payer | undefined;
49
- location: TaxLocation | undefined;
50
- metaType: MetaType;
51
- meta: taxMeta | undefined;
29
+ location: Location | undefined;
30
+ metaType: string;
31
+ meta: Meta | undefined;
52
32
  }
53
33
  export interface PaymentDetails {
54
- method: PaymentMethods;
34
+ method: string;
55
35
  amount: number;
56
36
  discountPercentage?: number | undefined;
57
37
  fee: number;
58
38
  discountAmount?: number | undefined;
59
- gatewayId?: GatewayIdentification | undefined;
39
+ gatewayId?: string | undefined;
60
40
  card?: Card | undefined;
61
41
  paymentSchedule: PaymentSchedule | undefined;
62
42
  baseFee: number;
@@ -66,19 +46,15 @@ export interface PaymentDetails {
66
46
  orderId?: string | undefined;
67
47
  keepData?: boolean | undefined;
68
48
  }
69
- export interface PaymentSchedule {
70
- type: PaymentScheduleType;
71
- date?: string | undefined;
72
- }
73
49
  export interface Card {
74
50
  id: string;
75
51
  shadowNumber: string;
76
- brand: brandType | undefined;
52
+ brand?: string | undefined;
77
53
  installments?: number | undefined;
78
54
  installmentValue?: number | undefined;
79
55
  }
80
56
  export interface Context {
81
- taxes?: TaxDetail[];
57
+ taxes: TaxDetail[];
82
58
  location?: LocationDetails | undefined;
83
59
  paymentDetails?: PaymentDetails | undefined;
84
60
  pushToken?: string | undefined;
@@ -114,15 +90,9 @@ export interface PostPushTokenRequest {
114
90
  export interface CheckoutRequest {
115
91
  customerId: string;
116
92
  }
117
- export interface Order {
118
- id: string;
119
- totalAmount: number;
120
- status: string;
121
- createdAt: Date;
122
- }
123
93
  export interface CheckoutResponse {
124
94
  order: Order | undefined;
125
- orderType: OrderType;
95
+ orderType: string;
126
96
  chargeId?: string | undefined;
127
97
  }
128
98
  export interface PostPaymentDateRequest {
@@ -1,36 +1,37 @@
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.7.7
5
- // protoc v6.33.1
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: context.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CONTEXT_SERVICE_NAME = exports.CONTEXT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.ContextServiceControllerMethods = ContextServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'context';
12
- exports.CONTEXT_PACKAGE_NAME = 'context';
12
+ exports.protobufPackage = "context";
13
+ exports.CONTEXT_PACKAGE_NAME = "context";
13
14
  function ContextServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'getContext',
17
- 'clearContext',
18
- 'postLocation',
19
- 'postTaxes',
20
- 'postPaymentDetail',
21
- 'postPushToken',
22
- 'checkout',
23
- 'postPaymentDate',
17
+ "getContext",
18
+ "clearContext",
19
+ "postLocation",
20
+ "postTaxes",
21
+ "postPaymentDetail",
22
+ "postPushToken",
23
+ "checkout",
24
+ "postPaymentDate",
24
25
  ];
25
26
  for (const method of grpcMethods) {
26
27
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
- (0, microservices_1.GrpcMethod)('ContextService', method)(constructor.prototype[method], method, descriptor);
28
+ (0, microservices_1.GrpcMethod)("ContextService", method)(constructor.prototype[method], method, descriptor);
28
29
  }
29
30
  const grpcStreamMethods = [];
30
31
  for (const method of grpcStreamMethods) {
31
32
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
32
- (0, microservices_1.GrpcStreamMethod)('ContextService', method)(constructor.prototype[method], method, descriptor);
33
+ (0, microservices_1.GrpcStreamMethod)("ContextService", method)(constructor.prototype[method], method, descriptor);
33
34
  }
34
35
  };
35
36
  }
36
- exports.CONTEXT_SERVICE_NAME = 'ContextService';
37
+ exports.CONTEXT_SERVICE_NAME = "ContextService";
@@ -1,4 +1,5 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { ImageData, Role } from "./common";
2
3
  export declare const protobufPackage = "customer";
3
4
  export interface CreateCustomerRequest {
4
5
  customer: CustomerSignUp | undefined;
@@ -130,12 +131,6 @@ export interface UserSignUp {
130
131
  password: string;
131
132
  devices: Device[];
132
133
  }
133
- export interface Role {
134
- id: string;
135
- code: string;
136
- description: string;
137
- permissions: string[];
138
- }
139
134
  export interface Device {
140
135
  token?: string | undefined;
141
136
  expoPushToken: string;
@@ -143,10 +138,10 @@ export interface Device {
143
138
  export interface GetCustomersWithFiltersRequest {
144
139
  pageIndex?: number | undefined;
145
140
  pageSize?: number | undefined;
146
- statuses?: string[];
141
+ statuses: string[];
147
142
  globalFilter?: string | undefined;
148
- startDate?: Date | undefined;
149
- endDate?: Date | undefined;
143
+ startDate?: string | undefined;
144
+ endDate?: string | undefined;
150
145
  }
151
146
  export interface GetCustomersWithFiltersResponse {
152
147
  customers: CustomerWithStatus[];
@@ -159,10 +154,6 @@ export interface CustomerWithStatus {
159
154
  phone: string;
160
155
  userStatus: string;
161
156
  }
162
- export interface ImageData {
163
- mimetype: string;
164
- buffer: Uint8Array;
165
- }
166
157
  export interface InitiateDocumentVerificationRequest {
167
158
  customerId: string;
168
159
  documentFront: ImageData | undefined;
@@ -172,7 +163,7 @@ export interface DocumentVerificationResponse {
172
163
  id: string;
173
164
  documentFrontUrl: string;
174
165
  selfieWithDocumentUrl: string;
175
- reviewDeadline?: Date;
166
+ reviewDeadline: string;
176
167
  rejectionReasons: string[];
177
168
  customRejectionReason: string;
178
169
  }
@@ -1,43 +1,43 @@
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.7.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: customer.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.CUSTOMER_SERVICE_NAME = exports.CUSTOMER_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.CustomerServiceControllerMethods = CustomerServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'customer';
13
- exports.CUSTOMER_PACKAGE_NAME = 'customer';
12
+ exports.protobufPackage = "customer";
13
+ exports.CUSTOMER_PACKAGE_NAME = "customer";
14
14
  function CustomerServiceControllerMethods() {
15
15
  return function (constructor) {
16
16
  const grpcMethods = [
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',
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)('CustomerService', method)(constructor.prototype[method], method, descriptor);
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)('CustomerService', method)(constructor.prototype[method], method, descriptor);
39
+ (0, microservices_1.GrpcStreamMethod)("CustomerService", method)(constructor.prototype[method], method, descriptor);
40
40
  }
41
41
  };
42
42
  }
43
- exports.CUSTOMER_SERVICE_NAME = 'CustomerService';
43
+ exports.CUSTOMER_SERVICE_NAME = "CustomerService";
@@ -1,13 +1,10 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { DailyBalance } from "./common";
2
3
  export declare const protobufPackage = "dailyBalance";
3
4
  export interface GetBalanceHistoryRequest {
4
5
  recipientId: string;
5
- startDate: Date;
6
- endDate: Date;
7
- }
8
- export interface DailyBalance {
9
- date: Date;
10
- balance: number;
6
+ startDate: string;
7
+ endDate: string;
11
8
  }
12
9
  export interface GetBalanceHistoryResponse {
13
10
  dailyBalances: DailyBalance[];
@@ -17,7 +14,7 @@ export interface getCurrentBalanceRequest {
17
14
  }
18
15
  export interface getCurrentBalanceResponse {
19
16
  balance: number;
20
- lastUpdate: Date;
17
+ lastUpdate: string;
21
18
  }
22
19
  export declare const DAILY_BALANCE_PACKAGE_NAME = "dailyBalance";
23
20
  export interface DailyBalanceServiceClient {
@@ -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.7.0
5
- // protoc v6.32.0
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: daily-balance.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.DAILY_BALANCE_SERVICE_NAME = exports.DAILY_BALANCE_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.DailyBalanceServiceControllerMethods = DailyBalanceServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'dailyBalance';
13
- exports.DAILY_BALANCE_PACKAGE_NAME = 'dailyBalance';
12
+ exports.protobufPackage = "dailyBalance";
13
+ exports.DAILY_BALANCE_PACKAGE_NAME = "dailyBalance";
14
14
  function DailyBalanceServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ['getBalanceHistory', 'getCurrentBalance'];
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)('DailyBalanceService', method)(constructor.prototype[method], method, descriptor);
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)('DailyBalanceService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("DailyBalanceService", method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.DAILY_BALANCE_SERVICE_NAME = 'DailyBalanceService';
28
+ exports.DAILY_BALANCE_SERVICE_NAME = "DailyBalanceService";
@@ -1,10 +1,10 @@
1
- import { DocumentRejectionReason, VerificationStatus } from '@postpaybr/contracts/types';
2
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { Empty } from "./common";
3
3
  export declare const protobufPackage = "documentVerification";
4
4
  export interface UpdateDocumentVerificationStatusRequest {
5
5
  id: string;
6
- status: VerificationStatus;
7
- rejectionReasons?: DocumentRejectionReason[];
6
+ status: string;
7
+ rejectionReasons: string[];
8
8
  customRejectionReason?: string | undefined;
9
9
  reviewerId?: string | undefined;
10
10
  actedById: string;
@@ -13,15 +13,15 @@ export interface DocumentVerificationResponse {
13
13
  id: string;
14
14
  documentFrontUrl: string;
15
15
  selfieWithDocumentUrl: string;
16
- rejectionReasons: DocumentRejectionReason[];
16
+ rejectionReasons: string[];
17
17
  customRejectionReason: string;
18
18
  }
19
19
  export interface GetVerificationsWithDetailsRequest {
20
- status: VerificationStatus;
20
+ status: string;
21
21
  offset?: number | undefined;
22
22
  limit?: number | undefined;
23
- startDate?: Date | undefined;
24
- endDate?: Date | undefined;
23
+ startDate?: string | undefined;
24
+ endDate?: string | undefined;
25
25
  reviewerIds: string[];
26
26
  }
27
27
  export interface GetDocumentVerificationsWithDetailsResponse {
@@ -34,10 +34,10 @@ export interface DocumentVerificationWithDetails {
34
34
  id: string;
35
35
  customerName: string;
36
36
  document: string;
37
- createdAt: Date;
37
+ createdAt: string;
38
38
  reviewDeadline: string;
39
- latestHistoryCreatedAt: Date;
40
- status: VerificationStatus;
39
+ latestHistoryCreatedAt: string;
40
+ status: string;
41
41
  lastReviewer: Reviewer | undefined;
42
42
  }
43
43
  export interface GetVerificationDetailsByIdRequest {
@@ -47,16 +47,16 @@ export interface DocumentVerificationDetailsResponse {
47
47
  id: string;
48
48
  document: string;
49
49
  customerName: string;
50
- createdAt: Date;
51
- currentStatus: VerificationStatus;
50
+ createdAt: string;
51
+ currentStatus: string;
52
52
  documentFrontUrl?: string | undefined;
53
53
  selfieWithDocumentUrl?: string | undefined;
54
54
  elapsedBusinessTime?: string | undefined;
55
55
  lastReviewer?: Reviewer | undefined;
56
- histories?: VerificationHistoryWithDetails[];
57
- rejectionReasons?: DocumentRejectionReason[];
56
+ histories: VerificationHistoryWithDetails[];
57
+ rejectionReasons: string[];
58
58
  customRejectionReason?: string | undefined;
59
- finalDecisionAt?: Date | undefined;
59
+ finalDecisionAt?: string | undefined;
60
60
  }
61
61
  export interface Reviewer {
62
62
  id: string;
@@ -64,13 +64,11 @@ export interface Reviewer {
64
64
  }
65
65
  export interface VerificationHistoryWithDetails {
66
66
  id: string;
67
- status: VerificationStatus;
68
- createdAt: Date;
67
+ status: string;
68
+ createdAt: string;
69
69
  reviewedBy: string;
70
70
  actedBy: string;
71
71
  }
72
- export interface Empty {
73
- }
74
72
  export interface CountResponse {
75
73
  count: number;
76
74
  }
@@ -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.7.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: document-verification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.DOCUMENT_VERIFICATION_SERVICE_NAME = exports.DOCUMENT_VERIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.DocumentVerificationServiceControllerMethods = DocumentVerificationServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'documentVerification';
12
- exports.DOCUMENT_VERIFICATION_PACKAGE_NAME = 'documentVerification';
12
+ exports.protobufPackage = "documentVerification";
13
+ exports.DOCUMENT_VERIFICATION_PACKAGE_NAME = "documentVerification";
13
14
  function DocumentVerificationServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'updateVerificationStatus',
17
- 'getDocumentVerificationsWithDetails',
18
- 'getDocumentVerificationDetailsById',
19
- 'countPendingOrInProgressVerifications',
20
- 'getDistinctReviewers',
21
- 'undoLastStatusChange',
17
+ "updateVerificationStatus",
18
+ "getDocumentVerificationsWithDetails",
19
+ "getDocumentVerificationDetailsById",
20
+ "countPendingOrInProgressVerifications",
21
+ "getDistinctReviewers",
22
+ "undoLastStatusChange",
22
23
  ];
23
24
  for (const method of grpcMethods) {
24
25
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
25
- (0, microservices_1.GrpcMethod)('DocumentVerificationService', method)(constructor.prototype[method], method, descriptor);
26
+ (0, microservices_1.GrpcMethod)("DocumentVerificationService", 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)('DocumentVerificationService', method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcStreamMethod)("DocumentVerificationService", method)(constructor.prototype[method], method, descriptor);
31
32
  }
32
33
  };
33
34
  }
34
- exports.DOCUMENT_VERIFICATION_SERVICE_NAME = 'DocumentVerificationService';
35
+ exports.DOCUMENT_VERIFICATION_SERVICE_NAME = "DocumentVerificationService";
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
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: Date;
50
+ expiresAt: string;
51
51
  isVerified: boolean;
52
52
  }
53
53
  export declare const EMAIL_PACKAGE_NAME = "email";
@@ -1,35 +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.6.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: email.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.EMAIL_SERVICE_NAME = exports.EMAIL_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.EmailServiceControllerMethods = EmailServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'email';
13
- exports.EMAIL_PACKAGE_NAME = 'email';
12
+ exports.protobufPackage = "email";
13
+ exports.EMAIL_PACKAGE_NAME = "email";
14
14
  function EmailServiceControllerMethods() {
15
15
  return function (constructor) {
16
16
  const grpcMethods = [
17
- 'sendVerificationEmail',
18
- 'checkVerificationEmail',
19
- 'sendMessageEmail',
20
- 'sendRecoveryPasswordEmail',
21
- 'checkRecoveryPasswordToken',
22
- 'getEmailVerificationByToken',
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)('EmailService', method)(constructor.prototype[method], method, descriptor);
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)('EmailService', method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcStreamMethod)("EmailService", method)(constructor.prototype[method], method, descriptor);
32
32
  }
33
33
  };
34
34
  }
35
- exports.EMAIL_SERVICE_NAME = 'EmailService';
35
+ exports.EMAIL_SERVICE_NAME = "EmailService";
@@ -1,4 +1,5 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { Empty } from "./common";
2
3
  export declare const protobufPackage = "expoPush";
3
4
  export interface NotificationDto {
4
5
  pushTokens: string[];
@@ -18,8 +19,6 @@ export interface DataValue {
18
19
  boolValue?: boolean | undefined;
19
20
  floatValue?: number | undefined;
20
21
  }
21
- export interface Empty {
22
- }
23
22
  export declare const EXPO_PUSH_PACKAGE_NAME = "expoPush";
24
23
  export interface ExpoPushServiceClient {
25
24
  sendNotification(request: NotificationDto): Observable<Empty>;
@@ -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.6.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: expo-push.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.EXPO_PUSH_SERVICE_NAME = exports.EXPO_PUSH_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.ExpoPushServiceControllerMethods = ExpoPushServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'expoPush';
13
- exports.EXPO_PUSH_PACKAGE_NAME = 'expoPush';
12
+ exports.protobufPackage = "expoPush";
13
+ exports.EXPO_PUSH_PACKAGE_NAME = "expoPush";
14
14
  function ExpoPushServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ['sendNotification'];
16
+ const grpcMethods = ["sendNotification"];
17
17
  for (const method of grpcMethods) {
18
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- (0, microservices_1.GrpcMethod)('ExpoPushService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("ExpoPushService", 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)('ExpoPushService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("ExpoPushService", method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.EXPO_PUSH_SERVICE_NAME = 'ExpoPushService';
28
+ exports.EXPO_PUSH_SERVICE_NAME = "ExpoPushService";
@@ -1,5 +1,6 @@
1
- import { brandType, FeeType, PaymentMethods } from '@postpaybr/contracts/types';
2
- import { Observable } from 'rxjs';
1
+ import { brandType, FeeType, PaymentMethods } from "@postpaybr/contracts/types";
2
+ import { Observable } from "rxjs";
3
+ import { Void } from "./common";
3
4
  export declare const protobufPackage = "fee";
4
5
  export interface CreateFeeDto {
5
6
  method: PaymentMethods;
@@ -13,15 +14,15 @@ export interface CreateFeeDto {
13
14
  brand: brandType;
14
15
  }
15
16
  export interface UpdateFeeDto {
16
- method?: PaymentMethods | undefined;
17
- type?: FeeType | undefined;
17
+ method?: string | undefined;
18
+ type?: string | undefined;
18
19
  base?: number | undefined;
19
20
  percentage?: number | undefined;
20
21
  promotionalBase?: number | undefined;
21
22
  promotionalPercentage?: number | undefined;
22
23
  description?: string | undefined;
23
24
  installment?: number | undefined;
24
- brand?: brandType | undefined;
25
+ brand?: string | undefined;
25
26
  recipientId: string;
26
27
  feeId: string;
27
28
  }
@@ -47,8 +48,6 @@ export interface FeeEntity {
47
48
  export interface FeeEntityList {
48
49
  fees: FeeEntity[];
49
50
  }
50
- export interface Void {
51
- }
52
51
  export declare const FEE_PACKAGE_NAME = "fee";
53
52
  export interface FeeServiceClient {
54
53
  createFee(request: CreateFeeDto): Observable<FeeEntity>;