@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.
Files changed (68) hide show
  1. package/dist/typescript/account-entry.d.ts +5 -5
  2. package/dist/typescript/account-entry.js +9 -9
  3. package/dist/typescript/admin-card-verification.d.ts +15 -14
  4. package/dist/typescript/admin-card-verification.js +9 -9
  5. package/dist/typescript/administrator.d.ts +10 -8
  6. package/dist/typescript/administrator.js +18 -18
  7. package/dist/typescript/anticipation.d.ts +8 -7
  8. package/dist/typescript/anticipation.js +11 -11
  9. package/dist/typescript/bank-account.d.ts +3 -3
  10. package/dist/typescript/bank-account.js +10 -10
  11. package/dist/typescript/card.d.ts +6 -5
  12. package/dist/typescript/card.js +14 -14
  13. package/dist/typescript/charge-schedule.d.ts +1 -1
  14. package/dist/typescript/charge.d.ts +48 -70
  15. package/dist/typescript/charge.js +36 -36
  16. package/dist/typescript/common.d.ts +35 -18
  17. package/dist/typescript/common.js +2 -2
  18. package/dist/typescript/context.d.ts +9 -7
  19. package/dist/typescript/context.js +13 -14
  20. package/dist/typescript/customer.d.ts +8 -8
  21. package/dist/typescript/customer.js +19 -19
  22. package/dist/typescript/daily-balance.d.ts +5 -5
  23. package/dist/typescript/daily-balance.js +6 -6
  24. package/dist/typescript/document-verification.d.ts +21 -20
  25. package/dist/typescript/document-verification.js +11 -11
  26. package/dist/typescript/email.d.ts +2 -2
  27. package/dist/typescript/email.js +11 -11
  28. package/dist/typescript/fee.d.ts +6 -6
  29. package/dist/typescript/fee.js +9 -9
  30. package/dist/typescript/notification.d.ts +42 -40
  31. package/dist/typescript/notification.js +16 -16
  32. package/dist/typescript/order.d.ts +24 -23
  33. package/dist/typescript/order.js +15 -15
  34. package/dist/typescript/payable.d.ts +33 -35
  35. package/dist/typescript/payable.js +18 -18
  36. package/dist/typescript/payment-calculator.d.ts +6 -5
  37. package/dist/typescript/payment-calculator.js +10 -10
  38. package/dist/typescript/payment-card.d.ts +14 -16
  39. package/dist/typescript/payment-card.js +10 -6
  40. package/dist/typescript/payment-gateway.d.ts +11 -9
  41. package/dist/typescript/payment-gateway.js +12 -12
  42. package/dist/typescript/payment-pix.d.ts +4 -3
  43. package/dist/typescript/payment-pix.js +6 -6
  44. package/dist/typescript/receipt.d.ts +15 -29
  45. package/dist/typescript/receipt.js +14 -14
  46. package/dist/typescript/recipient-payment-gateway.d.ts +14 -12
  47. package/dist/typescript/recipient-payment-gateway.js +11 -11
  48. package/dist/typescript/recipient.d.ts +21 -19
  49. package/dist/typescript/recipient.js +17 -17
  50. package/dist/typescript/role.d.ts +5 -3
  51. package/dist/typescript/role.js +11 -11
  52. package/dist/typescript/tax.d.ts +33 -61
  53. package/dist/typescript/tax.js +17 -17
  54. package/dist/typescript/transfer.d.ts +21 -19
  55. package/dist/typescript/transfer.js +6 -7
  56. package/dist/typescript/two-factor.d.ts +8 -7
  57. package/dist/typescript/two-factor.js +11 -11
  58. package/dist/typescript/user.d.ts +13 -14
  59. package/dist/typescript/user.js +22 -22
  60. package/package.json +1 -1
  61. package/src/protos/charge.proto +4 -33
  62. package/src/protos/common.proto +12 -0
  63. package/src/protos/context.proto +1 -1
  64. package/src/protos/customer.proto +1 -1
  65. package/src/protos/payable.proto +5 -6
  66. package/src/protos/receipt.proto +7 -21
  67. package/src/protos/tax.proto +6 -40
  68. package/src/protos/user.proto +3 -4
@@ -9,20 +9,20 @@ exports.PAYMENT_PIX_SERVICE_NAME = exports.PAYMENT_PIX_PACKAGE_NAME = exports.pr
9
9
  exports.PaymentPixControllerMethods = PaymentPixControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = "paymentPix";
13
- exports.PAYMENT_PIX_PACKAGE_NAME = "paymentPix";
12
+ exports.protobufPackage = 'paymentPix';
13
+ exports.PAYMENT_PIX_PACKAGE_NAME = 'paymentPix';
14
14
  function PaymentPixControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ["createPayment"];
16
+ const grpcMethods = ['createPayment'];
17
17
  for (const method of grpcMethods) {
18
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- (0, microservices_1.GrpcMethod)("PaymentPix", method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)('PaymentPix', 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)("PaymentPix", method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)('PaymentPix', method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.PAYMENT_PIX_SERVICE_NAME = "PaymentPix";
28
+ exports.PAYMENT_PIX_SERVICE_NAME = 'PaymentPix';
@@ -1,5 +1,7 @@
1
- import { Observable } from "rxjs";
2
- import { ChargeScheduleDetail, DateFilter, Location, Meta, PaginationFilter } from "./common";
1
+ import { Observable } from 'rxjs';
2
+ import { ChargeScheduleDetail, DateFilter, Location, taxMeta, PaginationFilter } from './common';
3
+ import { TaxItem } from './tax';
4
+ import { MetaType, PaymentMethods, ReceiptMetadata } from '@postpaybr/contracts/types';
3
5
  export declare const protobufPackage = "receipt";
4
6
  export interface CreateReceiptRequest {
5
7
  customerId: string;
@@ -34,15 +36,12 @@ export interface ReceiptResponse {
34
36
  amount: number;
35
37
  protocol: string;
36
38
  txid: string;
37
- createdAt: string;
38
- payableId: string;
39
+ createdAt: Date;
39
40
  customerId: string;
40
41
  taxId: string;
41
42
  chargeId?: string | undefined;
42
- isNfseIssued?: boolean | undefined;
43
- metadata: {
44
- [key: string]: string;
45
- };
43
+ isNfseIssued: boolean | undefined;
44
+ metadata?: ReceiptMetadata | undefined;
46
45
  }
47
46
  export interface ReceiptResponse_MetadataEntry {
48
47
  key: string;
@@ -51,7 +50,7 @@ export interface ReceiptResponse_MetadataEntry {
51
50
  export interface ReceiptDetailResponse {
52
51
  id: string;
53
52
  createdAt: string;
54
- method: string;
53
+ method: PaymentMethods;
55
54
  discountPercentage: number;
56
55
  discountAmount: number;
57
56
  fee: number;
@@ -70,7 +69,7 @@ export interface ReceiptListItem {
70
69
  recipient: string;
71
70
  paymentDate: string;
72
71
  amount: number;
73
- method: string;
72
+ method: PaymentMethods;
74
73
  taxType: string;
75
74
  }
76
75
  export interface ReceiptsResponse {
@@ -78,8 +77,8 @@ export interface ReceiptsResponse {
78
77
  }
79
78
  export interface PaymentSummaryPreviewResponse {
80
79
  summary: PaymentSummary | undefined;
81
- paymentsMade: IndividualPayment[];
82
- scheduledPayments: IndividualPayment[];
80
+ paymentsMade?: IndividualPayment[];
81
+ scheduledPayments?: IndividualPayment[];
83
82
  }
84
83
  export interface CreateReceiptDto {
85
84
  amount: number;
@@ -92,8 +91,8 @@ export interface TaxDetail {
92
91
  tax: reducedTax | undefined;
93
92
  payer: Payer | undefined;
94
93
  location: Location | undefined;
95
- metaType: string;
96
- meta: Meta | undefined;
94
+ metaType: MetaType;
95
+ meta: taxMeta | undefined;
97
96
  items: TaxItem[];
98
97
  }
99
98
  export interface reducedTax {
@@ -103,19 +102,6 @@ export interface reducedTax {
103
102
  year: number;
104
103
  documentId: string;
105
104
  }
106
- export interface TaxItem {
107
- id: string;
108
- code: string;
109
- quota: number;
110
- dueAt: string;
111
- amount: number;
112
- isSingleQuota: boolean;
113
- status: string;
114
- discountPercentage: number;
115
- discountAmount: number;
116
- fee: number;
117
- fine: number;
118
- }
119
105
  export interface Payer {
120
106
  name: string;
121
107
  document: string;
@@ -127,8 +113,8 @@ export interface PaymentSummary {
127
113
  }
128
114
  export interface IndividualPayment {
129
115
  id: string;
130
- createdAt: string;
131
- paymentMethod: string;
116
+ createdAt: Date;
117
+ paymentMethod: PaymentMethods;
132
118
  propertyDocument: string;
133
119
  propertyDetail: string;
134
120
  installmentNumber: number;
@@ -9,30 +9,30 @@ exports.RECEIPT_SERVICE_NAME = exports.RECEIPT_PACKAGE_NAME = exports.protobufPa
9
9
  exports.ReceiptServiceControllerMethods = ReceiptServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = "receipt";
13
- exports.RECEIPT_PACKAGE_NAME = "receipt";
12
+ exports.protobufPackage = 'receipt';
13
+ exports.RECEIPT_PACKAGE_NAME = 'receipt';
14
14
  function ReceiptServiceControllerMethods() {
15
15
  return function (constructor) {
16
16
  const grpcMethods = [
17
- "createReceipt",
18
- "getReceipt",
19
- "getAllReceipts",
20
- "updateTxidByChargeId",
21
- "getPaymentSummaryPreview",
22
- "getReceiptsByTaxIds",
23
- "getReceiptsByTaxIdsExcludingSeeded",
24
- "getReceiptById",
25
- "deleteReceiptByChargeId",
17
+ 'createReceipt',
18
+ 'getReceipt',
19
+ 'getAllReceipts',
20
+ 'updateTxidByChargeId',
21
+ 'getPaymentSummaryPreview',
22
+ 'getReceiptsByTaxIds',
23
+ 'getReceiptsByTaxIdsExcludingSeeded',
24
+ 'getReceiptById',
25
+ 'deleteReceiptByChargeId',
26
26
  ];
27
27
  for (const method of grpcMethods) {
28
28
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
29
- (0, microservices_1.GrpcMethod)("ReceiptService", method)(constructor.prototype[method], method, descriptor);
29
+ (0, microservices_1.GrpcMethod)('ReceiptService', method)(constructor.prototype[method], method, descriptor);
30
30
  }
31
31
  const grpcStreamMethods = [];
32
32
  for (const method of grpcStreamMethods) {
33
33
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
34
- (0, microservices_1.GrpcStreamMethod)("ReceiptService", method)(constructor.prototype[method], method, descriptor);
34
+ (0, microservices_1.GrpcStreamMethod)('ReceiptService', method)(constructor.prototype[method], method, descriptor);
35
35
  }
36
36
  };
37
37
  }
38
- exports.RECEIPT_SERVICE_NAME = "ReceiptService";
38
+ exports.RECEIPT_SERVICE_NAME = 'ReceiptService';
@@ -1,5 +1,7 @@
1
- import { Observable } from "rxjs";
2
- import { TableFilterParams, Void } from "./common";
1
+ import { Observable } from 'rxjs';
2
+ import { TableFilterParams, Void } from './common';
3
+ import { GatewayIdentification, PaymentGatewayType, PaymentMethods } from '@postpaybr/contracts/types';
4
+ export { Void } from './common';
3
5
  export declare const protobufPackage = "recipientPaymentGateway";
4
6
  export interface RecipientPaymentGateway {
5
7
  id: string;
@@ -11,22 +13,22 @@ export interface RecipientPaymentGateway {
11
13
  isDebitCardEnabled: boolean;
12
14
  isAutomaticAnticipationEnabled: boolean;
13
15
  isManualAnticipationEnabled: boolean;
14
- createdAt: string;
15
- updatedAt: string;
16
- gatewayId: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ gatewayId: GatewayIdentification;
17
19
  }
18
20
  export interface PaymentGateway {
19
21
  id: string;
20
22
  name: string;
21
- gatewayId: string;
23
+ gatewayId: GatewayIdentification;
22
24
  supportsPix: boolean;
23
25
  supportsCreditCard: boolean;
24
26
  supportsDebitCard: boolean;
25
27
  supportsAutomaticAnticipation: boolean;
26
28
  supportsManualAnticipation: boolean;
27
29
  isActive: boolean;
28
- createdAt: string;
29
- updatedAt: string;
30
+ createdAt: Date;
31
+ updatedAt: Date;
30
32
  }
31
33
  export interface RecipientPaymentGatewayResponse {
32
34
  recipientPaymentGateway: RecipientPaymentGateway | undefined;
@@ -43,7 +45,7 @@ export interface GatewayIdentificationListResponse {
43
45
  export interface CreateRecipientPaymentGatewayRequest {
44
46
  recipientId: string;
45
47
  paymentGatewayId: string;
46
- type: string;
48
+ type: PaymentGatewayType;
47
49
  isPixEnabled: boolean;
48
50
  isCreditCardEnabled: boolean;
49
51
  isDebitCardEnabled: boolean;
@@ -55,11 +57,11 @@ export interface DeleteRecipientPaymentGatewayRequest {
55
57
  }
56
58
  export interface GetGatewayByRecipientAndTypeRequest {
57
59
  recipientId: string;
58
- method: string;
59
- type: string;
60
+ method: PaymentMethods;
61
+ type: PaymentGatewayType;
60
62
  }
61
63
  export interface GetAvailableGatewaysRequest {
62
- method: string;
64
+ method: PaymentMethods;
63
65
  }
64
66
  export interface GetRecipientPaymentGatewaysByRecipientIdRequest {
65
67
  recipientId: string;
@@ -9,27 +9,27 @@ exports.RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = exports.RECIPIENT_PAYMENT_GATEW
9
9
  exports.RecipientPaymentGatewayServiceControllerMethods = RecipientPaymentGatewayServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = "recipientPaymentGateway";
13
- exports.RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = "recipientPaymentGateway";
12
+ exports.protobufPackage = 'recipientPaymentGateway';
13
+ exports.RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = 'recipientPaymentGateway';
14
14
  function RecipientPaymentGatewayServiceControllerMethods() {
15
15
  return function (constructor) {
16
16
  const grpcMethods = [
17
- "createRecipientPaymentGateway",
18
- "deleteRecipientPaymentGateway",
19
- "getGatewayByRecipientAndType",
20
- "getAvailableGateways",
21
- "listGatewayIdentifications",
22
- "getRecipientPaymentGatewaysByRecipientId",
17
+ 'createRecipientPaymentGateway',
18
+ 'deleteRecipientPaymentGateway',
19
+ 'getGatewayByRecipientAndType',
20
+ 'getAvailableGateways',
21
+ 'listGatewayIdentifications',
22
+ 'getRecipientPaymentGatewaysByRecipientId',
23
23
  ];
24
24
  for (const method of grpcMethods) {
25
25
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
26
- (0, microservices_1.GrpcMethod)("RecipientPaymentGatewayService", method)(constructor.prototype[method], method, descriptor);
26
+ (0, microservices_1.GrpcMethod)('RecipientPaymentGatewayService', 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)("RecipientPaymentGatewayService", method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcStreamMethod)('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
32
32
  }
33
33
  };
34
34
  }
35
- exports.RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = "RecipientPaymentGatewayService";
35
+ exports.RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = 'RecipientPaymentGatewayService';
@@ -1,22 +1,24 @@
1
- import { Observable } from "rxjs";
2
- import { ImageData, Void } from "./common";
1
+ import { Observable } from 'rxjs';
2
+ import { ImageData, Void } from './common';
3
+ import { brandType, GatewayIdentification, PaymentMethods } from '@postpaybr/contracts/types';
4
+ import { BankAccountType, HolderType, RecipientLegalType } from '@postpaybr/contracts/enums';
3
5
  export declare const protobufPackage = "recipient";
4
6
  export interface Recipient {
5
7
  id: string;
6
8
  code: string;
7
9
  commercialName: string;
8
10
  socialReason: string;
9
- holderType: string;
11
+ holderType: HolderType;
10
12
  document: string;
11
13
  cnaeId: string;
12
14
  avatarUrl: string;
13
- legalType: string;
15
+ legalType: RecipientLegalType;
14
16
  foundation: string;
15
17
  contactName: string;
16
18
  contactEmail: string;
17
19
  contactPhone: string;
18
- createdAt: string;
19
- updatedAt: string;
20
+ createdAt: Date;
21
+ updatedAt: Date;
20
22
  addressId: string;
21
23
  isActive: boolean;
22
24
  providerStatus: string;
@@ -44,7 +46,7 @@ export interface GetRecipientFeesRequest {
44
46
  }
45
47
  export interface Fee {
46
48
  id: string;
47
- method: string;
49
+ method: PaymentMethods;
48
50
  type: string;
49
51
  base: number;
50
52
  percentage: number;
@@ -53,7 +55,7 @@ export interface Fee {
53
55
  description: string;
54
56
  installment: number;
55
57
  isDefault: boolean;
56
- brand: string;
58
+ brand: brandType;
57
59
  }
58
60
  export interface RecipientFeesResponse {
59
61
  fees: Fee[];
@@ -69,8 +71,8 @@ export interface RecipientGateway {
69
71
  isPixEnabled: boolean;
70
72
  isCreditCardEnabled: boolean;
71
73
  isDebitCardEnabled: boolean;
72
- createdAt: string;
73
- updatedAt: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
74
76
  }
75
77
  export interface RecipientGatewaysResponse {
76
78
  gateways: RecipientGateway[];
@@ -101,9 +103,9 @@ export interface BankAccount {
101
103
  account: string;
102
104
  digitAccount: string;
103
105
  balance: number;
104
- pixKey: string;
105
- holderType: string;
106
- accountType: string;
106
+ pixKey?: string;
107
+ holderType: HolderType;
108
+ accountType: BankAccountType;
107
109
  }
108
110
  export interface Representative {
109
111
  id: string;
@@ -123,10 +125,10 @@ export interface CreateRecipientRequest {
123
125
  code: string;
124
126
  commercialName: string;
125
127
  socialReason: string;
126
- holderType: string;
128
+ holderType: HolderType;
127
129
  document: string;
128
130
  cnaeId: string;
129
- legalType: string;
131
+ legalType: RecipientLegalType;
130
132
  contactName: string;
131
133
  contactEmail: string;
132
134
  contactPhone: string;
@@ -149,11 +151,11 @@ export interface CreateAddressDto {
149
151
  }
150
152
  export interface CreateBankAccountDto {
151
153
  bankCompeCode: number;
152
- holderType: string;
154
+ holderType: HolderType;
153
155
  agency: string;
154
156
  account: string;
155
157
  digitAccount: string;
156
- accountType: string;
158
+ accountType: BankAccountType;
157
159
  pixKey?: string | undefined;
158
160
  balance?: number | undefined;
159
161
  }
@@ -170,14 +172,14 @@ export interface UpdateRecipientRequest {
170
172
  }
171
173
  export interface IsAutomaticAnticipationEnabledRequest {
172
174
  recipientId: string;
173
- gatewayId: string;
175
+ gatewayId: GatewayIdentification;
174
176
  }
175
177
  export interface IsAutomaticAnticipationEnabledResponse {
176
178
  isEnabled: boolean;
177
179
  }
178
180
  export interface GetExternalRecipientIdRequest {
179
181
  recipientId: string;
180
- gatewayId: string;
182
+ gatewayId: GatewayIdentification;
181
183
  }
182
184
  export interface GetExternalRecipientIdResponse {
183
185
  externalRecipientId: string;
@@ -9,33 +9,33 @@ exports.RECIPIENT_SERVICE_NAME = exports.RECIPIENT_PACKAGE_NAME = exports.protob
9
9
  exports.RecipientServiceControllerMethods = RecipientServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = "recipient";
13
- exports.RECIPIENT_PACKAGE_NAME = "recipient";
12
+ exports.protobufPackage = 'recipient';
13
+ exports.RECIPIENT_PACKAGE_NAME = 'recipient';
14
14
  function RecipientServiceControllerMethods() {
15
15
  return function (constructor) {
16
16
  const grpcMethods = [
17
- "createRecipient",
18
- "updateRecipient",
19
- "getRecipientById",
20
- "getRecipientByCode",
21
- "getRecipientNameById",
22
- "getAllRecipients",
23
- "getRecipientFees",
24
- "getRecipientGateways",
25
- "updateRecipientAvatar",
26
- "getRecipientDetailsById",
27
- "isAutomaticAnticipationEnabled",
28
- "getExternalRecipientId",
17
+ 'createRecipient',
18
+ 'updateRecipient',
19
+ 'getRecipientById',
20
+ 'getRecipientByCode',
21
+ 'getRecipientNameById',
22
+ 'getAllRecipients',
23
+ 'getRecipientFees',
24
+ 'getRecipientGateways',
25
+ 'updateRecipientAvatar',
26
+ 'getRecipientDetailsById',
27
+ 'isAutomaticAnticipationEnabled',
28
+ 'getExternalRecipientId',
29
29
  ];
30
30
  for (const method of grpcMethods) {
31
31
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
32
- (0, microservices_1.GrpcMethod)("RecipientService", method)(constructor.prototype[method], method, descriptor);
32
+ (0, microservices_1.GrpcMethod)('RecipientService', method)(constructor.prototype[method], method, descriptor);
33
33
  }
34
34
  const grpcStreamMethods = [];
35
35
  for (const method of grpcStreamMethods) {
36
36
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
37
- (0, microservices_1.GrpcStreamMethod)("RecipientService", method)(constructor.prototype[method], method, descriptor);
37
+ (0, microservices_1.GrpcStreamMethod)('RecipientService', method)(constructor.prototype[method], method, descriptor);
38
38
  }
39
39
  };
40
40
  }
41
- exports.RECIPIENT_SERVICE_NAME = "RecipientService";
41
+ exports.RECIPIENT_SERVICE_NAME = 'RecipientService';
@@ -1,10 +1,12 @@
1
- import { Observable } from "rxjs";
2
- import { Role } from "./common";
1
+ import { Observable } from 'rxjs';
2
+ import { Role } from './common';
3
+ import { Permission } from '@postpaybr/contracts/enums';
4
+ export { Role } from './common';
3
5
  export declare const protobufPackage = "role";
4
6
  export interface CreateRoleRequest {
5
7
  code: string;
6
8
  description: string;
7
- permissions: string[];
9
+ permissions: Permission[];
8
10
  }
9
11
  export interface DeleteRoleRequest {
10
12
  id: string;
@@ -9,27 +9,27 @@ exports.ROLE_SERVICE_NAME = exports.ROLE_PACKAGE_NAME = exports.protobufPackage
9
9
  exports.RoleServiceControllerMethods = RoleServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = "role";
13
- exports.ROLE_PACKAGE_NAME = "role";
12
+ exports.protobufPackage = 'role';
13
+ exports.ROLE_PACKAGE_NAME = 'role';
14
14
  function RoleServiceControllerMethods() {
15
15
  return function (constructor) {
16
16
  const grpcMethods = [
17
- "createRole",
18
- "deleteRole",
19
- "getRoleById",
20
- "getAllRoles",
21
- "updateRole",
22
- "getPermissionGroups",
17
+ 'createRole',
18
+ 'deleteRole',
19
+ 'getRoleById',
20
+ 'getAllRoles',
21
+ 'updateRole',
22
+ 'getPermissionGroups',
23
23
  ];
24
24
  for (const method of grpcMethods) {
25
25
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
26
- (0, microservices_1.GrpcMethod)("RoleService", method)(constructor.prototype[method], method, descriptor);
26
+ (0, microservices_1.GrpcMethod)('RoleService', 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)("RoleService", method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcStreamMethod)('RoleService', method)(constructor.prototype[method], method, descriptor);
32
32
  }
33
33
  };
34
34
  }
35
- exports.ROLE_SERVICE_NAME = "RoleService";
35
+ exports.ROLE_SERVICE_NAME = 'RoleService';