@postpaybr/contracts 1.0.4 → 1.0.7

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 (45) hide show
  1. package/dist/enums/account-entry.enum.js +2 -5
  2. package/dist/enums/anticipation.enum.js +2 -5
  3. package/dist/enums/bank-account.enum.js +4 -7
  4. package/dist/enums/charge-status.enum.js +4 -7
  5. package/dist/enums/customer.enum.js +10 -13
  6. package/dist/enums/email.enum.js +2 -5
  7. package/dist/enums/failure-reason.enum.js +2 -5
  8. package/dist/enums/gateway-identification.enum.js +2 -5
  9. package/dist/enums/index.js +16 -32
  10. package/dist/enums/notification.enum.js +4 -7
  11. package/dist/enums/orders-status.enum.js +4 -7
  12. package/dist/enums/payable-status.enum.js +2 -5
  13. package/dist/enums/payment.enum.js +4 -7
  14. package/dist/enums/recipient.enum.js +8 -11
  15. package/dist/enums/role.enum.js +4 -7
  16. package/dist/enums/tax.enum.js +4 -6
  17. package/dist/enums/user-status.enum.js +2 -4
  18. package/dist/types/account-entry.type.js +1 -2
  19. package/dist/types/address.type.js +1 -2
  20. package/dist/types/anticipation.type.js +1 -2
  21. package/dist/types/card.type.js +2 -5
  22. package/dist/types/charge-metadata.type.js +1 -2
  23. package/dist/types/charge-schedule.type.js +1 -2
  24. package/dist/types/charge.type.js +1 -2
  25. package/dist/types/core.type.js +1 -2
  26. package/dist/types/customer.type.js +1 -2
  27. package/dist/types/environment.type.js +1 -2
  28. package/dist/types/failure-reason.type.js +1 -2
  29. package/dist/types/fee.type.js +1 -2
  30. package/dist/types/gateway-identification.type.js +1 -2
  31. package/dist/types/health-check-plugin.type.js +1 -2
  32. package/dist/types/index.js +26 -42
  33. package/dist/types/notification.type.js +1 -2
  34. package/dist/types/order.type.js +1 -2
  35. package/dist/types/payable.type.js +1 -2
  36. package/dist/types/payment-provider.type.js +4 -7
  37. package/dist/types/payment-service.type.js +1 -2
  38. package/dist/types/payment.type.js +2 -5
  39. package/dist/types/receipt-metadata.type.js +1 -2
  40. package/dist/types/receipt.type.js +1 -2
  41. package/dist/types/role.type.js +1 -2
  42. package/dist/types/service-card-vault.type.js +1 -2
  43. package/dist/types/tax.type.js +1 -2
  44. package/dist/types/user.type.js +2 -5
  45. package/package.json +16 -24
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountEntryTypeEnum = void 0;
4
- var AccountEntryTypeEnum;
1
+ export var AccountEntryTypeEnum;
5
2
  (function (AccountEntryTypeEnum) {
6
3
  AccountEntryTypeEnum["CREDIT"] = "CREDIT";
7
4
  AccountEntryTypeEnum["DEBIT"] = "DEBIT";
8
- })(AccountEntryTypeEnum || (exports.AccountEntryTypeEnum = AccountEntryTypeEnum = {}));
5
+ })(AccountEntryTypeEnum || (AccountEntryTypeEnum = {}));
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AnticipationStatusEnum = void 0;
4
- var AnticipationStatusEnum;
1
+ export var AnticipationStatusEnum;
5
2
  (function (AnticipationStatusEnum) {
6
3
  AnticipationStatusEnum["PENDING"] = "PENDING";
7
4
  AnticipationStatusEnum["PROCESSING"] = "PROCESSING";
8
5
  AnticipationStatusEnum["COMPLETED"] = "COMPLETED";
9
6
  AnticipationStatusEnum["FAILED"] = "FAILED";
10
7
  AnticipationStatusEnum["CANCELLED"] = "CANCELLED";
11
- })(AnticipationStatusEnum || (exports.AnticipationStatusEnum = AnticipationStatusEnum = {}));
8
+ })(AnticipationStatusEnum || (AnticipationStatusEnum = {}));
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HolderTypeEnum = exports.BankAccountTypeEnum = void 0;
4
- var BankAccountTypeEnum;
1
+ export var BankAccountTypeEnum;
5
2
  (function (BankAccountTypeEnum) {
6
3
  BankAccountTypeEnum["CURRENT_ACCOUNT"] = "CURRENT_ACCOUNT";
7
- })(BankAccountTypeEnum || (exports.BankAccountTypeEnum = BankAccountTypeEnum = {}));
8
- var HolderTypeEnum;
4
+ })(BankAccountTypeEnum || (BankAccountTypeEnum = {}));
5
+ export var HolderTypeEnum;
9
6
  (function (HolderTypeEnum) {
10
7
  HolderTypeEnum["INDIVIDUAL"] = "INDIVIDUAL";
11
8
  HolderTypeEnum["COMPANY"] = "COMPANY";
12
- })(HolderTypeEnum || (exports.HolderTypeEnum = HolderTypeEnum = {}));
9
+ })(HolderTypeEnum || (HolderTypeEnum = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChargeTypeEnum = exports.ChargeStatusEnum = void 0;
4
- var ChargeStatusEnum;
1
+ export var ChargeStatusEnum;
5
2
  (function (ChargeStatusEnum) {
6
3
  ChargeStatusEnum["LIQUIDATED"] = "LIQUIDATED";
7
4
  ChargeStatusEnum["PENDING"] = "PENDING";
@@ -20,9 +17,9 @@ var ChargeStatusEnum;
20
17
  ChargeStatusEnum["REFUND_REJECTED"] = "REFUND_REJECTED";
21
18
  ChargeStatusEnum["CHARGEBACK"] = "CHARGEBACK";
22
19
  ChargeStatusEnum["MED"] = "MED";
23
- })(ChargeStatusEnum || (exports.ChargeStatusEnum = ChargeStatusEnum = {}));
24
- var ChargeTypeEnum;
20
+ })(ChargeStatusEnum || (ChargeStatusEnum = {}));
21
+ export var ChargeTypeEnum;
25
22
  (function (ChargeTypeEnum) {
26
23
  ChargeTypeEnum["STANDARD"] = "STANDARD";
27
24
  ChargeTypeEnum["CARD_VERIFICATION"] = "CARD_VERIFICATION";
28
- })(ChargeTypeEnum || (exports.ChargeTypeEnum = ChargeTypeEnum = {}));
25
+ })(ChargeTypeEnum || (ChargeTypeEnum = {}));
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountLevelEnum = exports.CardChallengeEnum = exports.CardRejectionReasonEnum = exports.DocumentRejectionReasonEnum = exports.VerificationStatusEnum = void 0;
4
- var VerificationStatusEnum;
1
+ export var VerificationStatusEnum;
5
2
  (function (VerificationStatusEnum) {
6
3
  VerificationStatusEnum["PENDING"] = "PENDING";
7
4
  VerificationStatusEnum["IN_PROGRESS"] = "IN_PROGRESS";
8
5
  VerificationStatusEnum["REJECTED"] = "REJECTED";
9
6
  VerificationStatusEnum["APPROVED"] = "APPROVED";
10
- })(VerificationStatusEnum || (exports.VerificationStatusEnum = VerificationStatusEnum = {}));
11
- var DocumentRejectionReasonEnum;
7
+ })(VerificationStatusEnum || (VerificationStatusEnum = {}));
8
+ export var DocumentRejectionReasonEnum;
12
9
  (function (DocumentRejectionReasonEnum) {
13
10
  DocumentRejectionReasonEnum["FAILED_CHALLENGE"] = "FAILED_CHALLENGE";
14
11
  DocumentRejectionReasonEnum["DOCUMENT_WITHOUT_PHOTO"] = "DOCUMENT_WITHOUT_PHOTO";
@@ -18,8 +15,8 @@ var DocumentRejectionReasonEnum;
18
15
  DocumentRejectionReasonEnum["INCOMPATIBLE_DATA"] = "INCOMPATIBLE_DATA";
19
16
  DocumentRejectionReasonEnum["DIFFERENT_DOCUMENTS"] = "DIFFERENT_DOCUMENTS";
20
17
  DocumentRejectionReasonEnum["OTHER"] = "OTHER";
21
- })(DocumentRejectionReasonEnum || (exports.DocumentRejectionReasonEnum = DocumentRejectionReasonEnum = {}));
22
- var CardRejectionReasonEnum;
18
+ })(DocumentRejectionReasonEnum || (DocumentRejectionReasonEnum = {}));
19
+ export var CardRejectionReasonEnum;
23
20
  (function (CardRejectionReasonEnum) {
24
21
  CardRejectionReasonEnum["FAILED_CHALLENGE"] = "FAILED_CHALLENGE";
25
22
  CardRejectionReasonEnum["FACE_OR_CARD_INVISIBLE"] = "FACE_OR_CARD_INVISIBLE";
@@ -29,16 +26,16 @@ var CardRejectionReasonEnum;
29
26
  CardRejectionReasonEnum["PERSON_MISMATCH"] = "PERSON_MISMATCH";
30
27
  CardRejectionReasonEnum["CARD_BACK_REQUIRED"] = "CARD_BACK_REQUIRED";
31
28
  CardRejectionReasonEnum["OTHER"] = "OTHER";
32
- })(CardRejectionReasonEnum || (exports.CardRejectionReasonEnum = CardRejectionReasonEnum = {}));
33
- var CardChallengeEnum;
29
+ })(CardRejectionReasonEnum || (CardRejectionReasonEnum = {}));
30
+ export var CardChallengeEnum;
34
31
  (function (CardChallengeEnum) {
35
32
  CardChallengeEnum["HOLD_BELOW_FACE"] = "HOLD_BELOW_FACE";
36
33
  CardChallengeEnum["HOLD_ABOVE_FACE"] = "HOLD_ABOVE_FACE";
37
34
  CardChallengeEnum["HOLD_NEXT_TO_FACE"] = "HOLD_NEXT_TO_FACE";
38
- })(CardChallengeEnum || (exports.CardChallengeEnum = CardChallengeEnum = {}));
39
- var AccountLevelEnum;
35
+ })(CardChallengeEnum || (CardChallengeEnum = {}));
36
+ export var AccountLevelEnum;
40
37
  (function (AccountLevelEnum) {
41
38
  AccountLevelEnum["BRONZE"] = "BRONZE";
42
39
  AccountLevelEnum["SILVER"] = "SILVER";
43
40
  AccountLevelEnum["GOLD"] = "GOLD";
44
- })(AccountLevelEnum || (exports.AccountLevelEnum = AccountLevelEnum = {}));
41
+ })(AccountLevelEnum || (AccountLevelEnum = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Templates = void 0;
4
- var Templates;
1
+ export var Templates;
5
2
  (function (Templates) {
6
3
  Templates["ADMINISTRATOR_CHANGE_PASSWORD"] = "administrator-change-password";
7
4
  Templates["ADMINISTRATOR_CREATED"] = "administrator-created";
@@ -12,4 +9,4 @@ var Templates;
12
9
  Templates["REJECTED_DOCUMENT"] = "rejected-document";
13
10
  Templates["VALIDATED_DOCUMENT"] = "validated-document";
14
11
  Templates["VERIFICATION"] = "verification";
15
- })(Templates || (exports.Templates = Templates = {}));
12
+ })(Templates || (Templates = {}));
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FailureReasonEnum = void 0;
4
- var FailureReasonEnum;
1
+ export var FailureReasonEnum;
5
2
  (function (FailureReasonEnum) {
6
3
  FailureReasonEnum["PROVIDERS_UNAVAILABLE"] = "PROVIDERS_UNAVAILABLE";
7
4
  FailureReasonEnum["TIME_EXPIRED"] = "TIME_EXPIRED";
8
5
  FailureReasonEnum["INVALID_DATA"] = "INVALID_DATA";
9
6
  FailureReasonEnum["LIMIT_EXCEEDED"] = "LIMIT_EXCEEDED";
10
7
  FailureReasonEnum["UNKNOWN"] = "UNKNOWN";
11
- })(FailureReasonEnum || (exports.FailureReasonEnum = FailureReasonEnum = {}));
8
+ })(FailureReasonEnum || (FailureReasonEnum = {}));
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GatewayIdentificationEnum = void 0;
4
- var GatewayIdentificationEnum;
1
+ export var GatewayIdentificationEnum;
5
2
  (function (GatewayIdentificationEnum) {
6
3
  GatewayIdentificationEnum["ASAAS"] = "ASAAS";
7
4
  GatewayIdentificationEnum["SICOOB"] = "SICOOB";
8
5
  GatewayIdentificationEnum["SICREDI"] = "SICREDI";
9
6
  GatewayIdentificationEnum["RAKIM"] = "RAKIM";
10
7
  GatewayIdentificationEnum["MOCK"] = "MOCK";
11
- })(GatewayIdentificationEnum || (exports.GatewayIdentificationEnum = GatewayIdentificationEnum = {}));
8
+ })(GatewayIdentificationEnum || (GatewayIdentificationEnum = {}));
@@ -1,32 +1,16 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./account-entry.enum"), exports);
18
- __exportStar(require("./anticipation.enum"), exports);
19
- __exportStar(require("./bank-account.enum"), exports);
20
- __exportStar(require("./charge-status.enum"), exports);
21
- __exportStar(require("./customer.enum"), exports);
22
- __exportStar(require("./email.enum"), exports);
23
- __exportStar(require("./failure-reason.enum"), exports);
24
- __exportStar(require("./gateway-identification.enum"), exports);
25
- __exportStar(require("./notification.enum"), exports);
26
- __exportStar(require("./orders-status.enum"), exports);
27
- __exportStar(require("./payable-status.enum"), exports);
28
- __exportStar(require("./payment.enum"), exports);
29
- __exportStar(require("./recipient.enum"), exports);
30
- __exportStar(require("./role.enum"), exports);
31
- __exportStar(require("./tax.enum"), exports);
32
- __exportStar(require("./user-status.enum"), exports);
1
+ export * from './account-entry.enum';
2
+ export * from './anticipation.enum';
3
+ export * from './bank-account.enum';
4
+ export * from './charge-status.enum';
5
+ export * from './customer.enum';
6
+ export * from './email.enum';
7
+ export * from './failure-reason.enum';
8
+ export * from './gateway-identification.enum';
9
+ export * from './notification.enum';
10
+ export * from './orders-status.enum';
11
+ export * from './payable-status.enum';
12
+ export * from './payment.enum';
13
+ export * from './recipient.enum';
14
+ export * from './role.enum';
15
+ export * from './tax.enum';
16
+ export * from './user-status.enum';
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationImageTypeEnum = exports.NotificationCategoryEnum = void 0;
4
- var NotificationCategoryEnum;
1
+ export var NotificationCategoryEnum;
5
2
  (function (NotificationCategoryEnum) {
6
3
  NotificationCategoryEnum["PAYMENT"] = "PAYMENT";
7
4
  NotificationCategoryEnum["PROFILE"] = "PROFILE";
@@ -9,10 +6,10 @@ var NotificationCategoryEnum;
9
6
  NotificationCategoryEnum["SECURITY"] = "SECURITY";
10
7
  NotificationCategoryEnum["INFORMATION"] = "INFORMATION";
11
8
  NotificationCategoryEnum["ANNOUNCEMENT"] = "ANNOUNCEMENT";
12
- })(NotificationCategoryEnum || (exports.NotificationCategoryEnum = NotificationCategoryEnum = {}));
13
- var NotificationImageTypeEnum;
9
+ })(NotificationCategoryEnum || (NotificationCategoryEnum = {}));
10
+ export var NotificationImageTypeEnum;
14
11
  (function (NotificationImageTypeEnum) {
15
12
  NotificationImageTypeEnum["STATIC"] = "STATIC";
16
13
  NotificationImageTypeEnum["SVG"] = "SVG";
17
14
  NotificationImageTypeEnum["ANIMATED"] = "ANIMATED";
18
- })(NotificationImageTypeEnum || (exports.NotificationImageTypeEnum = NotificationImageTypeEnum = {}));
15
+ })(NotificationImageTypeEnum || (NotificationImageTypeEnum = {}));
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderTypeEnum = exports.OrderStatusEnum = void 0;
4
- var OrderStatusEnum;
1
+ export var OrderStatusEnum;
5
2
  (function (OrderStatusEnum) {
6
3
  OrderStatusEnum["PENDING"] = "PENDING";
7
4
  OrderStatusEnum["CONFIRMED"] = "CONFIRMED";
8
5
  OrderStatusEnum["FAILED"] = "FAILED";
9
- })(OrderStatusEnum || (exports.OrderStatusEnum = OrderStatusEnum = {}));
10
- var OrderTypeEnum;
6
+ })(OrderStatusEnum || (OrderStatusEnum = {}));
7
+ export var OrderTypeEnum;
11
8
  (function (OrderTypeEnum) {
12
9
  OrderTypeEnum["IMMEDIATE"] = "IMMEDIATE";
13
10
  OrderTypeEnum["SCHEDULED"] = "SCHEDULED";
14
- })(OrderTypeEnum || (exports.OrderTypeEnum = OrderTypeEnum = {}));
11
+ })(OrderTypeEnum || (OrderTypeEnum = {}));
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayableStatusEnum = void 0;
4
- var PayableStatusEnum;
1
+ export var PayableStatusEnum;
5
2
  (function (PayableStatusEnum) {
6
3
  PayableStatusEnum["PENDING"] = "PENDING";
7
4
  PayableStatusEnum["PROCESSING"] = "PROCESSING";
8
5
  PayableStatusEnum["TRANSFERRED"] = "TRANSFERRED";
9
6
  PayableStatusEnum["FAILED"] = "FAILED";
10
7
  PayableStatusEnum["CANCELLED"] = "CANCELLED";
11
- })(PayableStatusEnum || (exports.PayableStatusEnum = PayableStatusEnum = {}));
8
+ })(PayableStatusEnum || (PayableStatusEnum = {}));
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentScheduleEnum = exports.PaymentMethodsEnum = void 0;
4
- var PaymentMethodsEnum;
1
+ export var PaymentMethodsEnum;
5
2
  (function (PaymentMethodsEnum) {
6
3
  PaymentMethodsEnum["PIX"] = "PIX";
7
4
  PaymentMethodsEnum["CREDIT_CARD"] = "CREDIT_CARD";
8
5
  PaymentMethodsEnum["DEBIT_CARD"] = "DEBIT_CARD";
9
- })(PaymentMethodsEnum || (exports.PaymentMethodsEnum = PaymentMethodsEnum = {}));
10
- var PaymentScheduleEnum;
6
+ })(PaymentMethodsEnum || (PaymentMethodsEnum = {}));
7
+ export var PaymentScheduleEnum;
11
8
  (function (PaymentScheduleEnum) {
12
9
  PaymentScheduleEnum["CUSTOM_DATE"] = "custom";
13
10
  PaymentScheduleEnum["ON_DUE_DATE"] = "dueAt";
14
11
  PaymentScheduleEnum["IMMEDIATE"] = "today";
15
- })(PaymentScheduleEnum || (exports.PaymentScheduleEnum = PaymentScheduleEnum = {}));
12
+ })(PaymentScheduleEnum || (PaymentScheduleEnum = {}));
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProviderAction = exports.ProviderStatusEnum = exports.RecipientLegalTypeEnum = exports.RecipientTypeEnum = void 0;
4
- var RecipientTypeEnum;
1
+ export var RecipientTypeEnum;
5
2
  (function (RecipientTypeEnum) {
6
3
  RecipientTypeEnum["CUSTOMER"] = "CUSTOMER";
7
4
  RecipientTypeEnum["ADMINISTRATOR"] = "ADMINISTRATOR";
8
- })(RecipientTypeEnum || (exports.RecipientTypeEnum = RecipientTypeEnum = {}));
9
- var RecipientLegalTypeEnum;
5
+ })(RecipientTypeEnum || (RecipientTypeEnum = {}));
6
+ export var RecipientLegalTypeEnum;
10
7
  (function (RecipientLegalTypeEnum) {
11
8
  RecipientLegalTypeEnum["SA"] = "SA";
12
9
  RecipientLegalTypeEnum["LTDA"] = "LTDA";
@@ -14,17 +11,17 @@ var RecipientLegalTypeEnum;
14
11
  RecipientLegalTypeEnum["ME"] = "ME";
15
12
  RecipientLegalTypeEnum["EPP"] = "EPP";
16
13
  RecipientLegalTypeEnum["EIRELI"] = "EIRELI";
17
- })(RecipientLegalTypeEnum || (exports.RecipientLegalTypeEnum = RecipientLegalTypeEnum = {}));
18
- var ProviderStatusEnum;
14
+ })(RecipientLegalTypeEnum || (RecipientLegalTypeEnum = {}));
15
+ export var ProviderStatusEnum;
19
16
  (function (ProviderStatusEnum) {
20
17
  ProviderStatusEnum["ACTIVE"] = "ACTIVE";
21
18
  ProviderStatusEnum["DELETED"] = "DELETED";
22
19
  ProviderStatusEnum["INACTIVE"] = "INACTIVE";
23
20
  ProviderStatusEnum["WAITING"] = "WAITING";
24
21
  ProviderStatusEnum["REJECTED"] = "REJECTED";
25
- })(ProviderStatusEnum || (exports.ProviderStatusEnum = ProviderStatusEnum = {}));
26
- var ProviderAction;
22
+ })(ProviderStatusEnum || (ProviderStatusEnum = {}));
23
+ export var ProviderAction;
27
24
  (function (ProviderAction) {
28
25
  ProviderAction["UPDATE_PROVIDER"] = "UPDATE_PROVIDER";
29
26
  ProviderAction["NO_ACTION"] = "NO_ACTION";
30
- })(ProviderAction || (exports.ProviderAction = ProviderAction = {}));
27
+ })(ProviderAction || (ProviderAction = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Permission = exports.Action = void 0;
4
- var Action;
1
+ export var Action;
5
2
  (function (Action) {
6
3
  Action["Manage"] = "manage";
7
4
  Action["Create"] = "create";
@@ -11,8 +8,8 @@ var Action;
11
8
  Action["Enable"] = "enable";
12
9
  Action["Disable"] = "disable";
13
10
  Action["Resolve"] = "resolve";
14
- })(Action || (exports.Action = Action = {}));
15
- var Permission;
11
+ })(Action || (Action = {}));
12
+ export var Permission;
16
13
  (function (Permission) {
17
14
  Permission["readDashboard"] = "READ_DASHBOARD";
18
15
  Permission["manageSupportTickets"] = "MANAGE_SUPPORT_TICKETS";
@@ -38,4 +35,4 @@ var Permission;
38
35
  Permission["readRecipientFee"] = "READ_RECIPIENT_FEE";
39
36
  Permission["deleteRecipientFee"] = "DELETE_RECIPIENT_FEE";
40
37
  Permission["manageRecipientFee"] = "MANAGE_RECIPIENT_FEE";
41
- })(Permission || (exports.Permission = Permission = {}));
38
+ })(Permission || (Permission = {}));
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MetaEnum = exports.TaxStatusEnum = exports.TaxTypesEnum = void 0;
4
1
  var TaxTypesEnum;
5
2
  (function (TaxTypesEnum) {
6
3
  TaxTypesEnum["IPTU"] = "IPTU";
@@ -10,16 +7,17 @@ var TaxTypesEnum;
10
7
  TaxTypesEnum["LICENSING"] = "LICENSING";
11
8
  TaxTypesEnum["WASTE_COLLECTION"] = "WASTE_COLLECTION";
12
9
  TaxTypesEnum["SANITATION"] = "SANITATION";
13
- })(TaxTypesEnum || (exports.TaxTypesEnum = TaxTypesEnum = {}));
10
+ })(TaxTypesEnum || (TaxTypesEnum = {}));
14
11
  var TaxStatusEnum;
15
12
  (function (TaxStatusEnum) {
16
13
  TaxStatusEnum["PAID"] = "PAID";
17
14
  TaxStatusEnum["PROCESSING"] = "PROCESSING";
18
15
  TaxStatusEnum["PENDING"] = "PENDING";
19
16
  TaxStatusEnum["OVERDUE"] = "OVERDUE";
20
- })(TaxStatusEnum || (exports.TaxStatusEnum = TaxStatusEnum = {}));
17
+ })(TaxStatusEnum || (TaxStatusEnum = {}));
21
18
  var MetaEnum;
22
19
  (function (MetaEnum) {
23
20
  MetaEnum["PROPERTY"] = "PROPERTY";
24
21
  MetaEnum["VEHICLE"] = "VEHICLE";
25
- })(MetaEnum || (exports.MetaEnum = MetaEnum = {}));
22
+ })(MetaEnum || (MetaEnum = {}));
23
+ export { TaxTypesEnum, TaxStatusEnum, MetaEnum };
@@ -1,9 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserStatusEnum = void 0;
4
1
  var UserStatusEnum;
5
2
  (function (UserStatusEnum) {
6
3
  UserStatusEnum["ACTIVE"] = "ACTIVE";
7
4
  UserStatusEnum["INACTIVE"] = "INACTIVE";
8
5
  UserStatusEnum["BLOCKED"] = "BLOCKED";
9
- })(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
6
+ })(UserStatusEnum || (UserStatusEnum = {}));
7
+ export { UserStatusEnum };
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.brandEnum = void 0;
4
- var brandEnum;
1
+ export var brandEnum;
5
2
  (function (brandEnum) {
6
3
  brandEnum["VISA"] = "VISA";
7
4
  brandEnum["MASTERCARD"] = "MASTERCARD";
@@ -13,4 +10,4 @@ var brandEnum;
13
10
  brandEnum["VISA_ELECTRON"] = "VISA_ELECTRON";
14
11
  brandEnum["PIX"] = "PIX";
15
12
  brandEnum["BOLETO"] = "BOLETO";
16
- })(brandEnum || (exports.brandEnum = brandEnum = {}));
13
+ })(brandEnum || (brandEnum = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,42 +1,26 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./account-entry.type"), exports);
18
- __exportStar(require("./address.type"), exports);
19
- __exportStar(require("./anticipation.type"), exports);
20
- __exportStar(require("./card.type"), exports);
21
- __exportStar(require("./charge-metadata.type"), exports);
22
- __exportStar(require("./charge.type"), exports);
23
- __exportStar(require("./core.type"), exports);
24
- __exportStar(require("./customer.type"), exports);
25
- __exportStar(require("./environment.type"), exports);
26
- __exportStar(require("./failure-reason.type"), exports);
27
- __exportStar(require("./fee.type"), exports);
28
- __exportStar(require("./gateway-identification.type"), exports);
29
- __exportStar(require("./health-check-plugin.type"), exports);
30
- __exportStar(require("./notification.type"), exports);
31
- __exportStar(require("./order.type"), exports);
32
- __exportStar(require("./payable.type"), exports);
33
- __exportStar(require("./payment-provider.type"), exports);
34
- __exportStar(require("./role.type"), exports);
35
- __exportStar(require("./charge-schedule.type"), exports);
36
- __exportStar(require("./payment-service.type"), exports);
37
- __exportStar(require("./receipt.type"), exports);
38
- __exportStar(require("./payment.type"), exports);
39
- __exportStar(require("./tax.type"), exports);
40
- __exportStar(require("./service-card-vault.type"), exports);
41
- __exportStar(require("./receipt-metadata.type"), exports);
42
- __exportStar(require("./user.type"), exports);
1
+ export * from './account-entry.type';
2
+ export * from './address.type';
3
+ export * from './anticipation.type';
4
+ export * from './card.type';
5
+ export * from './charge-metadata.type';
6
+ export * from './charge.type';
7
+ export * from './core.type';
8
+ export * from './customer.type';
9
+ export * from './environment.type';
10
+ export * from './failure-reason.type';
11
+ export * from './fee.type';
12
+ export * from './gateway-identification.type';
13
+ export * from './health-check-plugin.type';
14
+ export * from './notification.type';
15
+ export * from './order.type';
16
+ export * from './payable.type';
17
+ export * from './payment-provider.type';
18
+ export * from './role.type';
19
+ export * from './charge-schedule.type';
20
+ export * from './payment-service.type';
21
+ export * from './receipt.type';
22
+ export * from './payment.type';
23
+ export * from './tax.type';
24
+ export * from './service-card-vault.type';
25
+ export * from './receipt-metadata.type';
26
+ export * from './user.type';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationTypeEnum = exports.PaymentGatewayTypeEnum = void 0;
4
- var PaymentGatewayTypeEnum;
1
+ export var PaymentGatewayTypeEnum;
5
2
  (function (PaymentGatewayTypeEnum) {
6
3
  PaymentGatewayTypeEnum["PRIMARY"] = "PRIMARY";
7
4
  PaymentGatewayTypeEnum["SECONDARY"] = "SECONDARY";
8
- })(PaymentGatewayTypeEnum || (exports.PaymentGatewayTypeEnum = PaymentGatewayTypeEnum = {}));
9
- var OperationTypeEnum;
5
+ })(PaymentGatewayTypeEnum || (PaymentGatewayTypeEnum = {}));
6
+ export var OperationTypeEnum;
10
7
  (function (OperationTypeEnum) {
11
8
  OperationTypeEnum["PAYMENT"] = "PAYMENT";
12
9
  OperationTypeEnum["RECEIVING"] = "RECEIVING";
13
- })(OperationTypeEnum || (exports.OperationTypeEnum = OperationTypeEnum = {}));
10
+ })(OperationTypeEnum || (OperationTypeEnum = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentVariantEnum = void 0;
4
- var PaymentVariantEnum;
1
+ export var PaymentVariantEnum;
5
2
  (function (PaymentVariantEnum) {
6
3
  PaymentVariantEnum["SCHEDULED"] = "SCHEDULED";
7
4
  PaymentVariantEnum["IMMEDIATE"] = "IMMEDIATE";
8
- })(PaymentVariantEnum || (exports.PaymentVariantEnum = PaymentVariantEnum = {}));
5
+ })(PaymentVariantEnum || (PaymentVariantEnum = {}));
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountTypeEnum = void 0;
4
- var AccountTypeEnum;
1
+ export var AccountTypeEnum;
5
2
  (function (AccountTypeEnum) {
6
3
  AccountTypeEnum["CUSTOMER"] = "CUSTOMER";
7
4
  AccountTypeEnum["ADMINISTRATOR"] = "ADMINISTRATOR";
8
- })(AccountTypeEnum || (exports.AccountTypeEnum = AccountTypeEnum = {}));
5
+ })(AccountTypeEnum || (AccountTypeEnum = {}));
package/package.json CHANGED
@@ -1,32 +1,24 @@
1
1
  {
2
2
  "name": "@postpaybr/contracts",
3
- "version": "1.0.4",
4
- "description": "Shared contracts and types for PostPay",
3
+ "version": "1.0.7",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
5
7
  "files": [
6
- "dist"
8
+ "dist/enums",
9
+ "dist/types",
10
+ "dist/index.js",
11
+ "dist/index.d.ts"
7
12
  ],
8
- "exports": {
9
- "./types": {
10
- "types": "./dist/types/index.d.ts",
11
- "default": "./dist/types/index.js"
12
- },
13
- "./enums": {
14
- "types": "./dist/enums/index.d.ts",
15
- "default": "./dist/enums/index.js"
16
- }
17
- },
18
13
  "scripts": {
19
- "build": "tsc -p tsconfig.build.json",
20
- "prepublishOnly": "npm run build"
14
+ "build": "tsc -p tsconfig.build.json"
21
15
  },
22
- "keywords": [
23
- "contracts",
24
- "types",
25
- "postpay"
26
- ],
27
- "author": "",
28
- "license": "UNLICENSED",
29
- "devDependencies": {
30
- "typescript": "^5.0.0"
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "exports": {
20
+ ".": "./dist/index.js",
21
+ "./types": "./dist/types/index.js",
22
+ "./enums": "./dist/enums/index.js"
31
23
  }
32
24
  }