@postpaybr/protos 1.1.7 → 1.1.8

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 (65) hide show
  1. package/dist/typescript/account-entry.d.ts +1 -1
  2. package/dist/typescript/account-entry.js +11 -7
  3. package/dist/typescript/address.js +11 -7
  4. package/dist/typescript/admin-card-verification.d.ts +1 -1
  5. package/dist/typescript/admin-card-verification.js +11 -7
  6. package/dist/typescript/administrator.d.ts +1 -1
  7. package/dist/typescript/administrator.js +11 -7
  8. package/dist/typescript/anticipation.d.ts +1 -1
  9. package/dist/typescript/anticipation.js +11 -7
  10. package/dist/typescript/asset.js +11 -7
  11. package/dist/typescript/auth.js +11 -7
  12. package/dist/typescript/bank-account.d.ts +1 -1
  13. package/dist/typescript/bank-account.js +11 -7
  14. package/dist/typescript/card-vault.js +11 -7
  15. package/dist/typescript/card-verification.js +11 -7
  16. package/dist/typescript/card.d.ts +1 -1
  17. package/dist/typescript/card.js +11 -7
  18. package/dist/typescript/charge-schedule.js +11 -7
  19. package/dist/typescript/charge.d.ts +1 -1
  20. package/dist/typescript/charge.js +11 -7
  21. package/dist/typescript/context.d.ts +1 -1
  22. package/dist/typescript/context.js +11 -7
  23. package/dist/typescript/customer.js +11 -7
  24. package/dist/typescript/daily-balance.js +11 -7
  25. package/dist/typescript/document-verification.d.ts +1 -1
  26. package/dist/typescript/document-verification.js +11 -7
  27. package/dist/typescript/email.js +11 -7
  28. package/dist/typescript/expo-push.js +11 -7
  29. package/dist/typescript/fee.d.ts +1 -1
  30. package/dist/typescript/fee.js +11 -7
  31. package/dist/typescript/location.js +11 -7
  32. package/dist/typescript/notification.d.ts +2 -2
  33. package/dist/typescript/notification.js +11 -7
  34. package/dist/typescript/order.d.ts +1 -1
  35. package/dist/typescript/order.js +11 -7
  36. package/dist/typescript/payable.d.ts +1 -1
  37. package/dist/typescript/payable.js +11 -7
  38. package/dist/typescript/payer.js +11 -7
  39. package/dist/typescript/payment-calculator.d.ts +1 -1
  40. package/dist/typescript/payment-calculator.js +11 -7
  41. package/dist/typescript/payment-card.d.ts +2 -2
  42. package/dist/typescript/payment-card.js +11 -7
  43. package/dist/typescript/payment-gateway.d.ts +1 -1
  44. package/dist/typescript/payment-gateway.js +11 -7
  45. package/dist/typescript/payment-pix.d.ts +1 -1
  46. package/dist/typescript/payment-pix.js +11 -7
  47. package/dist/typescript/receipt.d.ts +1 -1
  48. package/dist/typescript/receipt.js +11 -7
  49. package/dist/typescript/recipient-payment-gateway.d.ts +1 -1
  50. package/dist/typescript/recipient-payment-gateway.js +11 -7
  51. package/dist/typescript/recipient.d.ts +2 -2
  52. package/dist/typescript/recipient.js +11 -7
  53. package/dist/typescript/role.d.ts +1 -1
  54. package/dist/typescript/role.js +11 -7
  55. package/dist/typescript/sms.js +11 -7
  56. package/dist/typescript/tax.d.ts +1 -1
  57. package/dist/typescript/tax.js +11 -7
  58. package/dist/typescript/transfer.d.ts +1 -1
  59. package/dist/typescript/transfer.js +11 -7
  60. package/dist/typescript/two-factor.d.ts +1 -1
  61. package/dist/typescript/two-factor.js +11 -7
  62. package/dist/typescript/user.d.ts +2 -2
  63. package/dist/typescript/user.js +11 -7
  64. package/dist/typescript/wallet.js +11 -7
  65. package/package.json +13 -4
@@ -1,24 +1,28 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.6.0
4
5
  // protoc v3.20.3
5
6
  // source: payment-pix.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'paymentPix';
8
- export const PAYMENT_PIX_PACKAGE_NAME = 'paymentPix';
9
- export function PaymentPixControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.PAYMENT_SERVICE_PIX_SERVICE_NAME = exports.PAYMENT_PIX_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.PaymentPixControllerMethods = PaymentPixControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'paymentPix';
12
+ exports.PAYMENT_PIX_PACKAGE_NAME = 'paymentPix';
13
+ function PaymentPixControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = ['createPayment'];
12
16
  for (const method of grpcMethods) {
13
17
  1;
14
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
15
- GrpcMethod('PaymentPix', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)('PaymentPix', method)(constructor.prototype[method], method, descriptor);
16
20
  }
17
21
  const grpcStreamMethods = [];
18
22
  for (const method of grpcStreamMethods) {
19
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
20
- GrpcStreamMethod('PaymentPix', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)('PaymentPix', method)(constructor.prototype[method], method, descriptor);
21
25
  }
22
26
  };
23
27
  }
24
- export const PAYMENT_SERVICE_PIX_SERVICE_NAME = 'PaymentPix';
28
+ exports.PAYMENT_SERVICE_PIX_SERVICE_NAME = 'PaymentPix';
@@ -1,4 +1,4 @@
1
- import { ChargeStatus, PaymentMethods, ReceiptMetadata, TaxTypes } from '@postpaybr/contracts/types';
1
+ import { ChargeStatus, PaymentMethods, ReceiptMetadata, TaxTypes } from '@postpaybr/contracts/dist/types';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ChargeScheduleDetail } from './charge';
4
4
  export declare const protobufPackage = "receipt";
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.7.0
4
5
  // protoc v3.20.3
5
6
  // source: receipt.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'receipt';
8
- export const RECEIPT_PACKAGE_NAME = 'receipt';
9
- export function ReceiptServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RECEIPT_SERVICE_NAME = exports.RECEIPT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.ReceiptServiceControllerMethods = ReceiptServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'receipt';
12
+ exports.RECEIPT_PACKAGE_NAME = 'receipt';
13
+ function ReceiptServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'createReceipt',
@@ -21,13 +25,13 @@ export function ReceiptServiceControllerMethods() {
21
25
  ];
22
26
  for (const method of grpcMethods) {
23
27
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
- GrpcMethod('ReceiptService', method)(constructor.prototype[method], method, descriptor);
28
+ (0, microservices_1.GrpcMethod)('ReceiptService', method)(constructor.prototype[method], method, descriptor);
25
29
  }
26
30
  const grpcStreamMethods = [];
27
31
  for (const method of grpcStreamMethods) {
28
32
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
29
- GrpcStreamMethod('ReceiptService', method)(constructor.prototype[method], method, descriptor);
33
+ (0, microservices_1.GrpcStreamMethod)('ReceiptService', method)(constructor.prototype[method], method, descriptor);
30
34
  }
31
35
  };
32
36
  }
33
- export const RECEIPT_SERVICE_NAME = 'ReceiptService';
37
+ exports.RECEIPT_SERVICE_NAME = 'ReceiptService';
@@ -1,4 +1,4 @@
1
- import { GatewayIdentification, PaymentGatewayType, PaymentMethods } from '@postpaybr/contracts/types';
1
+ import { GatewayIdentification, PaymentGatewayType, PaymentMethods } from '@postpaybr/contracts/dist/types';
2
2
  import { Observable } from 'rxjs';
3
3
  export declare const protobufPackage = "recipientPaymentGateway";
4
4
  export interface RecipientPaymentGateway {
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.7.0
4
5
  // protoc v6.32.1
5
6
  // source: recipient-payment-gateway.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'recipientPaymentGateway';
8
- export const RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = 'recipientPaymentGateway';
9
- export function RecipientPaymentGatewayServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = exports.RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.RecipientPaymentGatewayServiceControllerMethods = RecipientPaymentGatewayServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'recipientPaymentGateway';
12
+ exports.RECIPIENT_PAYMENT_GATEWAY_PACKAGE_NAME = 'recipientPaymentGateway';
13
+ function RecipientPaymentGatewayServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'createRecipientPaymentGateway',
@@ -18,13 +22,13 @@ export function RecipientPaymentGatewayServiceControllerMethods() {
18
22
  ];
19
23
  for (const method of grpcMethods) {
20
24
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
21
- GrpcMethod('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
25
+ (0, microservices_1.GrpcMethod)('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
22
26
  }
23
27
  const grpcStreamMethods = [];
24
28
  for (const method of grpcStreamMethods) {
25
29
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
26
- GrpcStreamMethod('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
30
+ (0, microservices_1.GrpcStreamMethod)('RecipientPaymentGatewayService', method)(constructor.prototype[method], method, descriptor);
27
31
  }
28
32
  };
29
33
  }
30
- export const RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = 'RecipientPaymentGatewayService';
34
+ exports.RECIPIENT_PAYMENT_GATEWAY_SERVICE_NAME = 'RecipientPaymentGatewayService';
@@ -1,5 +1,5 @@
1
- import { BankAccountType, HolderType, RecipientLegalType } from '@postpaybr/contracts/enums';
2
- import { GatewayIdentification } from '@postpaybr/contracts/types';
1
+ import { BankAccountType, HolderType, RecipientLegalType } from '@postpaybr/contracts/dist/enums';
2
+ import { GatewayIdentification } from '@postpaybr/contracts/dist/types';
3
3
  import { Observable } from 'rxjs';
4
4
  export declare const protobufPackage = "recipient";
5
5
  export interface Recipient {
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.7.0
4
5
  // protoc v6.32.1
5
6
  // source: recipient.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'recipient';
8
- export const RECIPIENT_PACKAGE_NAME = 'recipient';
9
- export function RecipientServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.RECIPIENT_SERVICE_NAME = exports.RECIPIENT_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.RecipientServiceControllerMethods = RecipientServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'recipient';
12
+ exports.RECIPIENT_PACKAGE_NAME = 'recipient';
13
+ function RecipientServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'createRecipient',
@@ -24,13 +28,13 @@ export function RecipientServiceControllerMethods() {
24
28
  ];
25
29
  for (const method of grpcMethods) {
26
30
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
- GrpcMethod('RecipientService', method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcMethod)('RecipientService', method)(constructor.prototype[method], method, descriptor);
28
32
  }
29
33
  const grpcStreamMethods = [];
30
34
  for (const method of grpcStreamMethods) {
31
35
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
32
- GrpcStreamMethod('RecipientService', method)(constructor.prototype[method], method, descriptor);
36
+ (0, microservices_1.GrpcStreamMethod)('RecipientService', method)(constructor.prototype[method], method, descriptor);
33
37
  }
34
38
  };
35
39
  }
36
- export const RECIPIENT_SERVICE_NAME = 'RecipientService';
40
+ exports.RECIPIENT_SERVICE_NAME = 'RecipientService';
@@ -1,4 +1,4 @@
1
- import { Permission } from '@postpaybr/contracts/enums';
1
+ import { Permission } from '@postpaybr/contracts/dist/enums';
2
2
  import { Observable } from 'rxjs';
3
3
  export declare const protobufPackage = "role";
4
4
  export interface CreateRoleRequest {
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.6.0
4
5
  // protoc v3.20.3
5
6
  // source: role.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'role';
8
- export const ROLE_PACKAGE_NAME = 'role';
9
- export function RoleServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ROLE_SERVICE_NAME = exports.ROLE_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.RoleServiceControllerMethods = RoleServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'role';
12
+ exports.ROLE_PACKAGE_NAME = 'role';
13
+ function RoleServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'createRole',
@@ -18,13 +22,13 @@ export function RoleServiceControllerMethods() {
18
22
  ];
19
23
  for (const method of grpcMethods) {
20
24
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
21
- GrpcMethod('RoleService', method)(constructor.prototype[method], method, descriptor);
25
+ (0, microservices_1.GrpcMethod)('RoleService', method)(constructor.prototype[method], method, descriptor);
22
26
  }
23
27
  const grpcStreamMethods = [];
24
28
  for (const method of grpcStreamMethods) {
25
29
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
26
- GrpcStreamMethod('RoleService', method)(constructor.prototype[method], method, descriptor);
30
+ (0, microservices_1.GrpcStreamMethod)('RoleService', method)(constructor.prototype[method], method, descriptor);
27
31
  }
28
32
  };
29
33
  }
30
- export const ROLE_SERVICE_NAME = 'RoleService';
34
+ exports.ROLE_SERVICE_NAME = 'RoleService';
@@ -1,24 +1,28 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.6.0
4
5
  // protoc v3.20.3
5
6
  // source: sms.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.SMS_SERVICE_NAME = exports.SMS_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.SmsServiceControllerMethods = SmsServiceControllerMethods;
6
10
  /* eslint-disable */
7
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
8
- export const protobufPackage = 'sms';
9
- export const SMS_PACKAGE_NAME = 'sms';
10
- export function SmsServiceControllerMethods() {
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = 'sms';
13
+ exports.SMS_PACKAGE_NAME = 'sms';
14
+ function SmsServiceControllerMethods() {
11
15
  return function (constructor) {
12
16
  const grpcMethods = ['sendSmsToVerify', 'verifySmsCode'];
13
17
  for (const method of grpcMethods) {
14
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
15
- GrpcMethod('SmsService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)('SmsService', method)(constructor.prototype[method], method, descriptor);
16
20
  }
17
21
  const grpcStreamMethods = [];
18
22
  for (const method of grpcStreamMethods) {
19
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
20
- GrpcStreamMethod('SmsService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)('SmsService', method)(constructor.prototype[method], method, descriptor);
21
25
  }
22
26
  };
23
27
  }
24
- export const SMS_SERVICE_NAME = 'SmsService';
28
+ exports.SMS_SERVICE_NAME = 'SmsService';
@@ -1,4 +1,4 @@
1
- import { ChargeStatus, MetaType, OrderStatus, PaymentMethods, taxMeta, TaxStatus, TaxTypes } from '@postpaybr/contracts/types';
1
+ import { ChargeStatus, MetaType, OrderStatus, PaymentMethods, taxMeta, TaxStatus, TaxTypes } from '@postpaybr/contracts/dist/types';
2
2
  import { Observable } from 'rxjs';
3
3
  export declare const protobufPackage = "tax";
4
4
  export interface Payer {
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.7.7
4
5
  // protoc v6.33.0
5
6
  // source: tax.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'tax';
8
- export const TAX_PACKAGE_NAME = 'tax';
9
- export function TaxServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TAX_SERVICE_NAME = exports.TAX_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.TaxServiceControllerMethods = TaxServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'tax';
12
+ exports.TAX_PACKAGE_NAME = 'tax';
13
+ function TaxServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'createTax',
@@ -24,13 +28,13 @@ export function TaxServiceControllerMethods() {
24
28
  ];
25
29
  for (const method of grpcMethods) {
26
30
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
- GrpcMethod('TaxService', method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcMethod)('TaxService', method)(constructor.prototype[method], method, descriptor);
28
32
  }
29
33
  const grpcStreamMethods = [];
30
34
  for (const method of grpcStreamMethods) {
31
35
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
32
- GrpcStreamMethod('TaxService', method)(constructor.prototype[method], method, descriptor);
36
+ (0, microservices_1.GrpcStreamMethod)('TaxService', method)(constructor.prototype[method], method, descriptor);
33
37
  }
34
38
  };
35
39
  }
36
- export const TAX_SERVICE_NAME = 'TaxService';
40
+ exports.TAX_SERVICE_NAME = 'TaxService';
@@ -1,4 +1,4 @@
1
- import { ChargeStatus, GatewayIdentification } from '@postpaybr/contracts/types';
1
+ import { ChargeStatus, GatewayIdentification } from '@postpaybr/contracts/dist/types';
2
2
  import { Observable } from 'rxjs';
3
3
  export declare const protobufPackage = "transfer";
4
4
  export interface UpdateTransferStatusRequest {
@@ -1,23 +1,27 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.7.0
4
5
  // protoc v6.32.0
5
6
  // source: transfer.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'transfer';
8
- export const TRANSFER_PACKAGE_NAME = 'transfer';
9
- export function TransferServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TRANSFER_SERVICE_NAME = exports.TRANSFER_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.TransferServiceControllerMethods = TransferServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'transfer';
12
+ exports.TRANSFER_PACKAGE_NAME = 'transfer';
13
+ function TransferServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = ['updateTransferStatus'];
12
16
  for (const method of grpcMethods) {
13
17
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
14
- GrpcMethod('TransferService', method)(constructor.prototype[method], method, descriptor);
18
+ (0, microservices_1.GrpcMethod)('TransferService', method)(constructor.prototype[method], method, descriptor);
15
19
  }
16
20
  const grpcStreamMethods = [];
17
21
  for (const method of grpcStreamMethods) {
18
22
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- GrpcStreamMethod('TransferService', method)(constructor.prototype[method], method, descriptor);
23
+ (0, microservices_1.GrpcStreamMethod)('TransferService', method)(constructor.prototype[method], method, descriptor);
20
24
  }
21
25
  };
22
26
  }
23
- export const TRANSFER_SERVICE_NAME = 'TransferService';
27
+ exports.TRANSFER_SERVICE_NAME = 'TransferService';
@@ -1,4 +1,4 @@
1
- import { AccountTypeEnum } from '@postpaybr/contracts/types';
1
+ import { AccountTypeEnum } from '@postpaybr/contracts/dist/types';
2
2
  import { Observable } from 'rxjs';
3
3
  export declare const protobufPackage = "twoFactor";
4
4
  export interface EnableTwoFactorRequest {
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.7.0
4
5
  // protoc v6.32.1
5
6
  // source: two-factor.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'twoFactor';
8
- export const TWO_FACTOR_PACKAGE_NAME = 'twoFactor';
9
- export function TwoFactorServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.TWO_FACTOR_SERVICE_NAME = exports.TWO_FACTOR_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.TwoFactorServiceControllerMethods = TwoFactorServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'twoFactor';
12
+ exports.TWO_FACTOR_PACKAGE_NAME = 'twoFactor';
13
+ function TwoFactorServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'enableTwoFactor',
@@ -18,13 +22,13 @@ export function TwoFactorServiceControllerMethods() {
18
22
  ];
19
23
  for (const method of grpcMethods) {
20
24
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
21
- GrpcMethod('TwoFactorService', method)(constructor.prototype[method], method, descriptor);
25
+ (0, microservices_1.GrpcMethod)('TwoFactorService', method)(constructor.prototype[method], method, descriptor);
22
26
  }
23
27
  const grpcStreamMethods = [];
24
28
  for (const method of grpcStreamMethods) {
25
29
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
26
- GrpcStreamMethod('TwoFactorService', method)(constructor.prototype[method], method, descriptor);
30
+ (0, microservices_1.GrpcStreamMethod)('TwoFactorService', method)(constructor.prototype[method], method, descriptor);
27
31
  }
28
32
  };
29
33
  }
30
- export const TWO_FACTOR_SERVICE_NAME = 'TwoFactorService';
34
+ exports.TWO_FACTOR_SERVICE_NAME = 'TwoFactorService';
@@ -1,6 +1,6 @@
1
- import { AccountType } from '@postpaybr/contracts/types';
1
+ import { AccountType } from '@postpaybr/contracts/dist/types';
2
2
  import { Observable } from 'rxjs';
3
- import { UserStatus } from '@postpaybr/contracts/enums';
3
+ import { UserStatus } from '@postpaybr/contracts/dist/enums';
4
4
  export declare const protobufPackage = "user";
5
5
  export interface CreateChangePasswordRequest {
6
6
  accountId: string;
@@ -1,12 +1,16 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.6.0
4
5
  // protoc v3.20.3
5
6
  // source: user.proto
6
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
7
- export const protobufPackage = 'user';
8
- export const USER_PACKAGE_NAME = 'user';
9
- export function UserServiceControllerMethods() {
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.USER_SERVICE_NAME = exports.USER_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.UserServiceControllerMethods = UserServiceControllerMethods;
10
+ const microservices_1 = require("@nestjs/microservices");
11
+ exports.protobufPackage = 'user';
12
+ exports.USER_PACKAGE_NAME = 'user';
13
+ function UserServiceControllerMethods() {
10
14
  return function (constructor) {
11
15
  const grpcMethods = [
12
16
  'createChangePassword',
@@ -29,13 +33,13 @@ export function UserServiceControllerMethods() {
29
33
  ];
30
34
  for (const method of grpcMethods) {
31
35
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
32
- GrpcMethod('UserService', method)(constructor.prototype[method], method, descriptor);
36
+ (0, microservices_1.GrpcMethod)('UserService', method)(constructor.prototype[method], method, descriptor);
33
37
  }
34
38
  const grpcStreamMethods = [];
35
39
  for (const method of grpcStreamMethods) {
36
40
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
37
- GrpcStreamMethod('UserService', method)(constructor.prototype[method], method, descriptor);
41
+ (0, microservices_1.GrpcStreamMethod)('UserService', method)(constructor.prototype[method], method, descriptor);
38
42
  }
39
43
  };
40
44
  }
41
- export const USER_SERVICE_NAME = 'UserService';
45
+ exports.USER_SERVICE_NAME = 'UserService';
@@ -1,24 +1,28 @@
1
+ "use strict";
1
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
3
  // versions:
3
4
  // protoc-gen-ts_proto v2.6.0
4
5
  // protoc v3.20.3
5
6
  // source: wallet.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.WALLET_SERVICE_NAME = exports.WALLET_PACKAGE_NAME = exports.protobufPackage = void 0;
9
+ exports.WalletServiceControllerMethods = WalletServiceControllerMethods;
6
10
  /* eslint-disable */
7
- import { GrpcMethod, GrpcStreamMethod } from '@nestjs/microservices';
8
- export const protobufPackage = 'wallet';
9
- export const WALLET_PACKAGE_NAME = 'wallet';
10
- export function WalletServiceControllerMethods() {
11
+ const microservices_1 = require("@nestjs/microservices");
12
+ exports.protobufPackage = 'wallet';
13
+ exports.WALLET_PACKAGE_NAME = 'wallet';
14
+ function WalletServiceControllerMethods() {
11
15
  return function (constructor) {
12
16
  const grpcMethods = ['createWallet'];
13
17
  for (const method of grpcMethods) {
14
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
15
- GrpcMethod('WalletService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)('WalletService', method)(constructor.prototype[method], method, descriptor);
16
20
  }
17
21
  const grpcStreamMethods = [];
18
22
  for (const method of grpcStreamMethods) {
19
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
20
- GrpcStreamMethod('WalletService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)('WalletService', method)(constructor.prototype[method], method, descriptor);
21
25
  }
22
26
  };
23
27
  }
24
- export const WALLET_SERVICE_NAME = 'WalletService';
28
+ exports.WALLET_SERVICE_NAME = 'WalletService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postpaybr/protos",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "main": "./dist/typescript/index.js",
6
6
  "types": "./dist/typescript/index.d.ts",
@@ -22,8 +22,17 @@
22
22
  "ts-proto": "^2.7.0"
23
23
  },
24
24
  "exports": {
25
- ".": "./dist/typescript/index.js",
26
- "./typescript/*": "./dist/typescript/*",
27
- "./*.proto": "./src/protos/*.proto"
25
+ ".": {
26
+ "import": "./dist/typescript/index.js",
27
+ "require": "./dist/typescript/index.js"
28
+ },
29
+ "./typescript/*": {
30
+ "import": "./dist/typescript/*.js",
31
+ "require": "./dist/typescript/*.js"
32
+ },
33
+ "./*.proto": {
34
+ "import": "./src/protos/*.proto",
35
+ "require": "./src/protos/*.proto"
36
+ }
28
37
  }
29
38
  }