cecon-interfaces 1.0.85 → 1.0.89

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/esm2022/general/entities/custom-variable.entity.mjs +17 -0
  2. package/dist/esm2022/general/entities/index.mjs +2 -1
  3. package/dist/esm2022/general/interfaces/i-custom-variable.mjs +3 -0
  4. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  5. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +3 -3
  6. package/dist/esm2022/invoice/entities/invoice.entity.mjs +12 -7
  7. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
  8. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
  9. package/dist/esm2022/iugu/entities/index.mjs +2 -1
  10. package/dist/esm2022/iugu/entities/invoice.entity.mjs +129 -0
  11. package/dist/esm2022/iugu/interfaces/i-invoice.mjs +2 -0
  12. package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
  13. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  14. package/dist/esm2022/subscription/entities/index.mjs +3 -2
  15. package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +20 -0
  16. package/dist/esm2022/subscription/entities/subscription.entity.mjs +6 -3
  17. package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +2 -0
  18. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  19. package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
  20. package/dist/fesm2022/cecon-interfaces.mjs +185 -11
  21. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  22. package/dist/general/entities/custom-variable.entity.d.ts +5 -0
  23. package/dist/general/entities/custom-variable.entity.js +21 -0
  24. package/dist/general/entities/index.d.ts +1 -0
  25. package/dist/general/entities/index.js +3 -1
  26. package/dist/general/interfaces/i-custom-variable.d.ts +4 -0
  27. package/dist/general/interfaces/i-custom-variable.js +3 -0
  28. package/dist/general/interfaces/index.d.ts +1 -0
  29. package/dist/invoice/entities/invoice-item.entity.d.ts +2 -2
  30. package/dist/invoice/entities/invoice-item.entity.js +2 -2
  31. package/dist/invoice/entities/invoice.entity.d.ts +8 -3
  32. package/dist/invoice/entities/invoice.entity.js +11 -6
  33. package/dist/invoice/interfaces/i-invoice-item.d.ts +2 -2
  34. package/dist/invoice/interfaces/i-invoice.d.ts +11 -6
  35. package/dist/iugu/entities/index.d.ts +1 -0
  36. package/dist/iugu/entities/index.js +3 -1
  37. package/dist/iugu/entities/invoice.entity.d.ts +118 -0
  38. package/dist/iugu/entities/invoice.entity.js +82 -0
  39. package/dist/iugu/interfaces/i-invoice.d.ts +116 -0
  40. package/dist/iugu/interfaces/i-invoice.js +2 -0
  41. package/dist/iugu/interfaces/index.d.ts +1 -0
  42. package/dist/package.json +1 -1
  43. package/dist/plan/interfaces/i-plan.d.ts +5 -5
  44. package/dist/subscription/entities/index.d.ts +2 -1
  45. package/dist/subscription/entities/index.js +4 -2
  46. package/dist/subscription/entities/subscription-item.entity.d.ts +9 -0
  47. package/dist/subscription/entities/subscription-item.entity.js +24 -0
  48. package/dist/subscription/entities/subscription.entity.d.ts +5 -1
  49. package/dist/subscription/entities/subscription.entity.js +5 -2
  50. package/dist/subscription/interfaces/i-subscription-item.d.ts +7 -0
  51. package/dist/subscription/interfaces/i-subscription-item.js +2 -0
  52. package/dist/subscription/interfaces/i-subscription.d.ts +5 -1
  53. package/dist/subscription/interfaces/index.d.ts +2 -1
  54. package/package.json +1 -1
@@ -1,18 +1,22 @@
1
1
  import { FeatureEntity } from "../../feature";
2
- import { IntervalTypeEnum } from "../../general";
2
+ import { CustomVariableEntity, IntervalTypeEnum } from "../../general";
3
3
  import { SubscriptionStatusEnum } from "../enums";
4
4
  import { ISubscription } from "../interfaces/i-subscription";
5
+ import { SubscriptionItemEntity } from "./subscription-item.entity";
5
6
  import { SubscriptionLogEntity } from "./subscription-log.entity";
6
7
  export declare class SubscriptionEntity implements ISubscription {
7
8
  cancellationReason: string;
8
9
  companyId: string;
10
+ companyName: string;
9
11
  containerId: string | null;
10
12
  createdAt: Date;
13
+ customVariable: CustomVariableEntity[];
11
14
  expiresAt: Date;
12
15
  features: FeatureEntity[];
13
16
  id: string;
14
17
  interval: number;
15
18
  intervalType: IntervalTypeEnum;
19
+ items: SubscriptionItemEntity[];
16
20
  logs: SubscriptionLogEntity[];
17
21
  notes: string;
18
22
  partnerId: string | null;
@@ -4,19 +4,22 @@ exports.SubscriptionEntity = void 0;
4
4
  var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var SubscriptionEntity = /** @class */ (function () {
7
- // #endregion Properties (19)
7
+ // #endregion Properties (22)
8
8
  // #region Constructors (1)
9
9
  function SubscriptionEntity(data) {
10
- // #region Properties (19)
10
+ // #region Properties (22)
11
11
  this.cancellationReason = "";
12
12
  this.companyId = "";
13
+ this.companyName = "";
13
14
  this.containerId = "";
14
15
  this.createdAt = new Date();
16
+ this.customVariable = [];
15
17
  this.expiresAt = new Date();
16
18
  this.features = [];
17
19
  this.id = "";
18
20
  this.interval = 0;
19
21
  this.intervalType = general_1.IntervalTypeEnum.MONTHS;
22
+ this.items = [];
20
23
  this.logs = [];
21
24
  this.notes = "";
22
25
  this.partnerId = "";
@@ -0,0 +1,7 @@
1
+ export interface ISubscriptionItem {
2
+ description: string;
3
+ quantity: number;
4
+ recurrent: boolean;
5
+ totalPrice: number;
6
+ unitPrice: number;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +1,21 @@
1
1
  import { IFeature } from "../../feature";
2
- import { IntervalTypeEnum } from "../../general";
2
+ import { ICustomVariable, IntervalTypeEnum } from "../../general";
3
3
  import { SubscriptionStatusEnum } from "../enums";
4
+ import { ISubscriptionItem } from "./i-subscription-item";
4
5
  import { ISubscriptionLog } from "./i-subscription-log";
5
6
  export interface ISubscription {
6
7
  cancellationReason: string;
7
8
  companyId: string;
9
+ companyName: string;
8
10
  containerId: string | null;
9
11
  createdAt: Date;
12
+ customVariable: ICustomVariable[];
10
13
  expiresAt: Date;
11
14
  features: IFeature[];
12
15
  id: string;
13
16
  interval: number;
14
17
  intervalType: IntervalTypeEnum;
18
+ items: ISubscriptionItem[];
15
19
  logs: ISubscriptionLog[];
16
20
  notes: string;
17
21
  partnerId: string | null;
@@ -1,2 +1,3 @@
1
1
  export { ISubscription } from './i-subscription';
2
- export { ISubscriptionLog as ISubscriptionInvoiceHistory } from './i-subscription-log';
2
+ export { ISubscriptionItem } from './i-subscription-item';
3
+ export { ISubscriptionLog } from './i-subscription-log';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.85",
3
+ "version": "1.0.89",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",