cecon-interfaces 1.0.75 → 1.0.76

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/dist/esm2022/feature/entities/feature.entity.mjs +25 -0
  2. package/dist/esm2022/feature/entities/index.mjs +2 -0
  3. package/dist/esm2022/feature/index.mjs +3 -0
  4. package/dist/esm2022/feature/interfaces/i-feature.mjs +2 -0
  5. package/dist/esm2022/feature/interfaces/index.mjs +2 -0
  6. package/dist/esm2022/general/enums/index.mjs +2 -1
  7. package/dist/esm2022/general/enums/payment-status.enum.mjs +13 -0
  8. package/dist/esm2022/index.mjs +4 -1
  9. package/dist/esm2022/installation/entities/installation.entity.mjs +7 -9
  10. package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
  11. package/dist/esm2022/invoice/entities/index.mjs +4 -0
  12. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +23 -0
  13. package/dist/esm2022/invoice/entities/invoice-payment-method.entity.mjs +31 -0
  14. package/dist/esm2022/invoice/entities/invoice.entity.mjs +32 -0
  15. package/dist/esm2022/invoice/enums/index.mjs +2 -0
  16. package/dist/esm2022/invoice/enums/invoices-status.enum.mjs +14 -0
  17. package/dist/esm2022/invoice/index.mjs +4 -0
  18. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +2 -0
  19. package/dist/esm2022/invoice/interfaces/i-invoice-payment-method.mjs +2 -0
  20. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +2 -0
  21. package/dist/esm2022/invoice/interfaces/index.mjs +2 -0
  22. package/dist/esm2022/subscription/entities/index.mjs +3 -0
  23. package/dist/esm2022/subscription/entities/subscription-invoice-history.entity.mjs +22 -0
  24. package/dist/esm2022/subscription/entities/subscription.entity.mjs +32 -0
  25. package/dist/esm2022/subscription/enums/index.mjs +2 -0
  26. package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +15 -0
  27. package/dist/esm2022/subscription/index.mjs +4 -0
  28. package/dist/esm2022/subscription/interfaces/i-subscription-invoice-history.mjs +2 -0
  29. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +2 -0
  30. package/dist/esm2022/subscription/interfaces/index.mjs +2 -0
  31. package/dist/feature/entities/feature.entity.d.ts +15 -0
  32. package/dist/feature/entities/feature.entity.js +29 -0
  33. package/dist/feature/entities/index.d.ts +1 -0
  34. package/dist/feature/entities/index.js +5 -0
  35. package/dist/feature/index.d.ts +2 -0
  36. package/dist/feature/index.js +18 -0
  37. package/dist/feature/interfaces/i-feature.d.ts +13 -0
  38. package/dist/feature/interfaces/i-feature.js +2 -0
  39. package/dist/feature/interfaces/index.d.ts +1 -0
  40. package/dist/feature/interfaces/index.js +2 -0
  41. package/dist/fesm2022/cecon-interfaces.mjs +209 -9
  42. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  43. package/dist/general/enums/index.d.ts +1 -0
  44. package/dist/general/enums/index.js +3 -1
  45. package/dist/general/enums/payment-status.enum.d.ts +11 -0
  46. package/dist/general/enums/payment-status.enum.js +15 -0
  47. package/dist/index.d.ts +3 -0
  48. package/dist/index.js +3 -0
  49. package/dist/installation/entities/installation.entity.d.ts +4 -6
  50. package/dist/installation/entities/installation.entity.js +6 -8
  51. package/dist/installation/interfaces/i-installation.d.ts +4 -6
  52. package/dist/invoice/entities/index.d.ts +3 -0
  53. package/dist/invoice/entities/index.js +9 -0
  54. package/dist/invoice/entities/invoice-item.entity.d.ts +12 -0
  55. package/dist/invoice/entities/invoice-item.entity.js +27 -0
  56. package/dist/invoice/entities/invoice-payment-method.entity.d.ts +20 -0
  57. package/dist/invoice/entities/invoice-payment-method.entity.js +35 -0
  58. package/dist/invoice/entities/invoice.entity.d.ts +23 -0
  59. package/dist/invoice/entities/invoice.entity.js +36 -0
  60. package/dist/invoice/enums/index.d.ts +1 -0
  61. package/dist/invoice/enums/index.js +5 -0
  62. package/dist/invoice/enums/invoices-status.enum.d.ts +12 -0
  63. package/dist/invoice/enums/invoices-status.enum.js +16 -0
  64. package/dist/invoice/index.d.ts +3 -0
  65. package/dist/invoice/index.js +19 -0
  66. package/dist/invoice/interfaces/i-invoice-item.d.ts +10 -0
  67. package/dist/invoice/interfaces/i-invoice-item.js +2 -0
  68. package/dist/invoice/interfaces/i-invoice-payment-method.d.ts +18 -0
  69. package/dist/invoice/interfaces/i-invoice-payment-method.js +2 -0
  70. package/dist/invoice/interfaces/i-invoice.d.ts +21 -0
  71. package/dist/invoice/interfaces/i-invoice.js +2 -0
  72. package/dist/invoice/interfaces/index.d.ts +3 -0
  73. package/dist/invoice/interfaces/index.js +2 -0
  74. package/dist/package.json +1 -1
  75. package/dist/subscription/entities/index.d.ts +2 -0
  76. package/dist/subscription/entities/index.js +7 -0
  77. package/dist/subscription/entities/subscription-invoice-history.entity.d.ts +11 -0
  78. package/dist/subscription/entities/subscription-invoice-history.entity.js +26 -0
  79. package/dist/subscription/entities/subscription.entity.d.ts +22 -0
  80. package/dist/subscription/entities/subscription.entity.js +36 -0
  81. package/dist/subscription/enums/index.d.ts +1 -0
  82. package/dist/subscription/enums/index.js +5 -0
  83. package/dist/subscription/enums/subscription-status.enum.d.ts +13 -0
  84. package/dist/subscription/enums/subscription-status.enum.js +17 -0
  85. package/dist/subscription/index.d.ts +3 -0
  86. package/dist/subscription/index.js +19 -0
  87. package/dist/subscription/interfaces/i-subscription-invoice-history.d.ts +9 -0
  88. package/dist/subscription/interfaces/i-subscription-invoice-history.js +2 -0
  89. package/dist/subscription/interfaces/i-subscription.d.ts +20 -0
  90. package/dist/subscription/interfaces/i-subscription.js +2 -0
  91. package/dist/subscription/interfaces/index.d.ts +2 -0
  92. package/dist/subscription/interfaces/index.js +2 -0
  93. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionStatusEnum = void 0;
4
+ var SubscriptionStatusEnum;
5
+ (function (SubscriptionStatusEnum) {
6
+ SubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
7
+ SubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
8
+ SubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
9
+ SubscriptionStatusEnum["PENDING"] = "PENDING";
10
+ SubscriptionStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
11
+ SubscriptionStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
12
+ SubscriptionStatusEnum["TRIAL"] = "TRIAL";
13
+ SubscriptionStatusEnum["FREE"] = "FREE";
14
+ SubscriptionStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
15
+ SubscriptionStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
16
+ SubscriptionStatusEnum["SUSPENDED"] = "SUSPENDED";
17
+ })(SubscriptionStatusEnum || (exports.SubscriptionStatusEnum = SubscriptionStatusEnum = {}));
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -0,0 +1,19 @@
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("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,9 @@
1
+ import { OrderStatusEnum } from '../../order';
2
+ export interface ISubscriptionInvoiceHistory {
3
+ invoiceId: string;
4
+ amount: number;
5
+ createdAt: Date;
6
+ dueDate: Date;
7
+ paidDate: Date;
8
+ status: OrderStatusEnum;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import { IntervalTypeEnum } from '../../general';
2
+ import { SubscriptionStatusEnum } from '../enums';
3
+ import { ISubscriptionInvoiceHistory } from './i-subscription-invoice-history';
4
+ export interface ISubscription {
5
+ cancellationReason: string;
6
+ createdAt: Date;
7
+ customerId: string;
8
+ endDate: Date;
9
+ trialEndDate: Date;
10
+ id: string;
11
+ interval: number;
12
+ intervalType: IntervalTypeEnum;
13
+ notes: string;
14
+ invoiceHistory: ISubscriptionInvoiceHistory[];
15
+ planId: string;
16
+ renewPaymentDate: Date;
17
+ startDate: Date;
18
+ status: SubscriptionStatusEnum;
19
+ updatedAt: Date;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ISubscription } from './i-subscription';
2
+ export { ISubscriptionInvoiceHistory } from './i-subscription-invoice-history';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},