cecon-interfaces 1.1.65 → 1.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/dist/esm2022/index.mjs +4 -2
  2. package/dist/esm2022/installation/entities/installation.entity.mjs +2 -2
  3. package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
  4. package/dist/esm2022/pubsub/entities/subscription-change-status.entity.mjs +1 -1
  5. package/dist/esm2022/pubsub/interfaces/i-subscription-change-status.mjs +1 -1
  6. package/dist/esm2022/subscription-base/entities/index.mjs +4 -0
  7. package/dist/esm2022/subscription-base/entities/subscription-base-item.entity.mjs +21 -0
  8. package/dist/esm2022/subscription-base/entities/subscription-base-log.entity.mjs +19 -0
  9. package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +40 -0
  10. package/dist/esm2022/subscription-base/enums/index.mjs +2 -0
  11. package/dist/esm2022/subscription-base/enums/subscription-status.enum.mjs +12 -0
  12. package/dist/esm2022/subscription-base/index.mjs +4 -0
  13. package/dist/esm2022/subscription-base/interfaces/i-subscription-base-item.mjs +2 -0
  14. package/dist/esm2022/subscription-base/interfaces/i-subscription-base-log.mjs +2 -0
  15. package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +2 -0
  16. package/dist/esm2022/subscription-base/interfaces/index.mjs +2 -0
  17. package/dist/esm2022/subscription-company/entities/index.mjs +3 -0
  18. package/dist/esm2022/subscription-company/entities/subscription-company.entity.mjs +21 -0
  19. package/dist/esm2022/subscription-company/entities/subscription.entity.mjs +24 -0
  20. package/dist/esm2022/subscription-company/index.mjs +3 -0
  21. package/dist/esm2022/subscription-company/interfaces/i-subscription-company.mjs +2 -0
  22. package/dist/esm2022/subscription-company/interfaces/i-subscription.mjs +2 -0
  23. package/dist/esm2022/subscription-company/interfaces/index.mjs +2 -0
  24. package/dist/esm2022/subscription-customer/entities/index.mjs +3 -0
  25. package/dist/esm2022/subscription-customer/entities/subscription-customer.entity.mjs +21 -0
  26. package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +19 -0
  27. package/dist/esm2022/subscription-customer/index.mjs +3 -0
  28. package/dist/esm2022/subscription-customer/interfaces/i-subscription-customer.mjs +2 -0
  29. package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +2 -0
  30. package/dist/esm2022/subscription-customer/interfaces/index.mjs +2 -0
  31. package/dist/fesm2022/cecon-interfaces.mjs +105 -52
  32. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  33. package/dist/index.d.ts +3 -1
  34. package/dist/index.js +3 -1
  35. package/dist/installation/entities/installation.entity.d.ts +1 -1
  36. package/dist/installation/entities/installation.entity.js +2 -2
  37. package/dist/installation/interfaces/i-installation.d.ts +1 -1
  38. package/dist/package.json +1 -1
  39. package/dist/pubsub/entities/subscription-change-status.entity.d.ts +1 -1
  40. package/dist/pubsub/interfaces/i-subscription-change-status.d.ts +1 -1
  41. package/dist/subscription-base/entities/index.d.ts +3 -0
  42. package/dist/subscription-base/entities/index.js +9 -0
  43. package/dist/subscription-base/entities/subscription-base-item.entity.d.ts +10 -0
  44. package/dist/{subscription/entities/subscription-item.entity.js → subscription-base/entities/subscription-base-item.entity.js} +5 -5
  45. package/dist/subscription-base/entities/subscription-base-log.entity.d.ts +8 -0
  46. package/dist/{subscription/entities/subscription-log.entity.js → subscription-base/entities/subscription-base-log.entity.js} +8 -8
  47. package/dist/{subscription/entities/subscription.entity.d.ts → subscription-base/entities/subscription-base.entity.d.ts} +7 -17
  48. package/dist/{subscription/entities/subscription.entity.js → subscription-base/entities/subscription-base.entity.js} +7 -16
  49. package/dist/{subscription/interfaces/i-subscription-item.d.ts → subscription-base/interfaces/i-subscription-base-item.d.ts} +1 -1
  50. package/dist/{subscription/interfaces/i-subscription-log.d.ts → subscription-base/interfaces/i-subscription-base-log.d.ts} +1 -1
  51. package/dist/subscription-base/interfaces/i-subscription-base.d.ts +30 -0
  52. package/dist/subscription-base/interfaces/index.d.ts +3 -0
  53. package/dist/subscription-company/entities/index.d.ts +2 -0
  54. package/dist/subscription-company/entities/index.js +7 -0
  55. package/dist/subscription-company/entities/subscription-company.entity.d.ts +10 -0
  56. package/dist/{subscription → subscription-company}/entities/subscription-company.entity.js +5 -5
  57. package/dist/subscription-company/entities/subscription.entity.d.ts +13 -0
  58. package/dist/subscription-company/entities/subscription.entity.js +45 -0
  59. package/dist/subscription-company/index.d.ts +2 -0
  60. package/dist/subscription-company/index.js +18 -0
  61. package/dist/{subscription → subscription-company}/interfaces/i-subscription-company.d.ts +1 -1
  62. package/dist/subscription-company/interfaces/i-subscription.d.ts +11 -0
  63. package/dist/subscription-company/interfaces/i-subscription.js +2 -0
  64. package/dist/subscription-company/interfaces/index.d.ts +2 -0
  65. package/dist/subscription-company/interfaces/index.js +2 -0
  66. package/dist/subscription-customer/entities/index.d.ts +2 -0
  67. package/dist/subscription-customer/entities/index.js +7 -0
  68. package/dist/subscription-customer/entities/subscription-customer.entity.d.ts +10 -0
  69. package/dist/subscription-customer/entities/subscription-customer.entity.js +25 -0
  70. package/dist/subscription-customer/entities/subscription.entity.d.ts +7 -0
  71. package/dist/subscription-customer/entities/subscription.entity.js +40 -0
  72. package/dist/subscription-customer/index.d.ts +2 -0
  73. package/dist/subscription-customer/index.js +18 -0
  74. package/dist/subscription-customer/interfaces/i-subscription-customer.d.ts +8 -0
  75. package/dist/subscription-customer/interfaces/i-subscription-customer.js +2 -0
  76. package/dist/subscription-customer/interfaces/i-subscription.d.ts +5 -0
  77. package/dist/subscription-customer/interfaces/i-subscription.js +2 -0
  78. package/dist/subscription-customer/interfaces/index.d.ts +2 -0
  79. package/dist/subscription-customer/interfaces/index.js +2 -0
  80. package/package.json +1 -1
  81. package/dist/esm2022/subscription/entities/index.mjs +0 -5
  82. package/dist/esm2022/subscription/entities/subscription-company.entity.mjs +0 -21
  83. package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +0 -21
  84. package/dist/esm2022/subscription/entities/subscription-log.entity.mjs +0 -19
  85. package/dist/esm2022/subscription/entities/subscription.entity.mjs +0 -49
  86. package/dist/esm2022/subscription/enums/index.mjs +0 -2
  87. package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +0 -12
  88. package/dist/esm2022/subscription/index.mjs +0 -4
  89. package/dist/esm2022/subscription/interfaces/i-subscription-company.mjs +0 -2
  90. package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +0 -2
  91. package/dist/esm2022/subscription/interfaces/i-subscription-log.mjs +0 -2
  92. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +0 -2
  93. package/dist/esm2022/subscription/interfaces/index.mjs +0 -2
  94. package/dist/subscription/entities/index.d.ts +0 -4
  95. package/dist/subscription/entities/index.js +0 -11
  96. package/dist/subscription/entities/subscription-company.entity.d.ts +0 -10
  97. package/dist/subscription/entities/subscription-item.entity.d.ts +0 -10
  98. package/dist/subscription/entities/subscription-log.entity.d.ts +0 -8
  99. package/dist/subscription/interfaces/i-subscription.d.ts +0 -41
  100. package/dist/subscription/interfaces/index.d.ts +0 -4
  101. /package/dist/{subscription → subscription-base}/enums/index.d.ts +0 -0
  102. /package/dist/{subscription → subscription-base}/enums/index.js +0 -0
  103. /package/dist/{subscription → subscription-base}/enums/subscription-status.enum.d.ts +0 -0
  104. /package/dist/{subscription → subscription-base}/enums/subscription-status.enum.js +0 -0
  105. /package/dist/{subscription → subscription-base}/index.d.ts +0 -0
  106. /package/dist/{subscription → subscription-base}/index.js +0 -0
  107. /package/dist/{subscription/interfaces/i-subscription-company.js → subscription-base/interfaces/i-subscription-base-item.js} +0 -0
  108. /package/dist/{subscription/interfaces/i-subscription-item.js → subscription-base/interfaces/i-subscription-base-log.js} +0 -0
  109. /package/dist/{subscription/interfaces/i-subscription-log.js → subscription-base/interfaces/i-subscription-base.js} +0 -0
  110. /package/dist/{subscription → subscription-base}/interfaces/index.js +0 -0
  111. /package/dist/{subscription/interfaces/i-subscription.js → subscription-company/interfaces/i-subscription-company.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -21,7 +21,9 @@ export * from './plan';
21
21
  export * from './pubsub';
22
22
  export * from './purchases';
23
23
  export * from './resume';
24
- export * from './subscription';
24
+ export * from './subscription-base';
25
+ export * from './subscription-company';
26
+ export * from './subscription-customer';
25
27
  export * from './token';
26
28
  export * from './viacep';
27
29
  export * from './voucher';
package/dist/index.js CHANGED
@@ -37,7 +37,9 @@ __exportStar(require("./plan"), exports);
37
37
  __exportStar(require("./pubsub"), exports);
38
38
  __exportStar(require("./purchases"), exports);
39
39
  __exportStar(require("./resume"), exports);
40
- __exportStar(require("./subscription"), exports);
40
+ __exportStar(require("./subscription-base"), exports);
41
+ __exportStar(require("./subscription-company"), exports);
42
+ __exportStar(require("./subscription-customer"), exports);
41
43
  __exportStar(require("./token"), exports);
42
44
  __exportStar(require("./viacep"), exports);
43
45
  __exportStar(require("./voucher"), exports);
@@ -1,5 +1,5 @@
1
1
  import { AppConfigType } from '../../app';
2
- import { ESubscriptionStatus } from '../../subscription/enums/subscription-status.enum';
2
+ import { ESubscriptionStatus } from '../../subscription-base';
3
3
  import { IInstallation } from '../interfaces/i-installation';
4
4
  import { InstallationAppEntity } from './installation-app.entity';
5
5
  export declare class InstallationEntity implements IInstallation {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InstallationEntity = void 0;
4
- var subscription_status_enum_1 = require("../../subscription/enums/subscription-status.enum");
4
+ var subscription_base_1 = require("../../subscription-base");
5
5
  var installation_app_entity_1 = require("./installation-app.entity");
6
6
  var InstallationEntity = /** @class */ (function () {
7
7
  // #endregion Properties (13)
@@ -15,7 +15,7 @@ var InstallationEntity = /** @class */ (function () {
15
15
  this.featureId = '';
16
16
  this.id = '';
17
17
  this.lastCheckAt = new Date();
18
- this.status = subscription_status_enum_1.ESubscriptionStatus.PLACED;
18
+ this.status = subscription_base_1.ESubscriptionStatus.PLACED;
19
19
  this.subscriptionId = '';
20
20
  this.tags = [];
21
21
  this.trialEndDate = new Date();
@@ -1,5 +1,5 @@
1
1
  import { AppConfigType } from '../../app';
2
- import { ESubscriptionStatus } from '../../subscription/enums/subscription-status.enum';
2
+ import { ESubscriptionStatus } from '../../subscription-base';
3
3
  import { IInstallationApp } from './i-installation-app';
4
4
  export interface IInstallation {
5
5
  app: IInstallationApp;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.65",
3
+ "version": "1.1.67",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ESubscriptionStatus } from '../../subscription';
1
+ import { ESubscriptionStatus } from '../../subscription-base';
2
2
  import { EPubSubTopicType } from '../enums';
3
3
  import { IPubsubSubscriptionChangeStatus } from '../interfaces';
4
4
  export declare class PubsubSubscriptionChangeStatusEntity implements IPubsubSubscriptionChangeStatus {
@@ -1,4 +1,4 @@
1
- import { ESubscriptionStatus } from '../../subscription';
1
+ import { ESubscriptionStatus } from '../../subscription-base';
2
2
  import { EPubSubTopicType } from '../enums';
3
3
  export interface IPubsubSubscriptionChangeStatus {
4
4
  afterStatus: ESubscriptionStatus | null;
@@ -0,0 +1,3 @@
1
+ export { SubscriptionBaseItemEntity } from './subscription-base-item.entity';
2
+ export { SubscriptionBaseLogEntity } from './subscription-base-log.entity';
3
+ export { SubscriptionBaseEntity } from './subscription-base.entity';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionBaseEntity = exports.SubscriptionBaseLogEntity = exports.SubscriptionBaseItemEntity = void 0;
4
+ var subscription_base_item_entity_1 = require("./subscription-base-item.entity");
5
+ Object.defineProperty(exports, "SubscriptionBaseItemEntity", { enumerable: true, get: function () { return subscription_base_item_entity_1.SubscriptionBaseItemEntity; } });
6
+ var subscription_base_log_entity_1 = require("./subscription-base-log.entity");
7
+ Object.defineProperty(exports, "SubscriptionBaseLogEntity", { enumerable: true, get: function () { return subscription_base_log_entity_1.SubscriptionBaseLogEntity; } });
8
+ var subscription_base_entity_1 = require("./subscription-base.entity");
9
+ Object.defineProperty(exports, "SubscriptionBaseEntity", { enumerable: true, get: function () { return subscription_base_entity_1.SubscriptionBaseEntity; } });
@@ -0,0 +1,10 @@
1
+ import { ISubscriptionBaseItem } from '../interfaces';
2
+ export declare class SubscriptionBaseItemEntity implements ISubscriptionBaseItem {
3
+ description: string;
4
+ quantity: number;
5
+ recurrent: boolean;
6
+ totalPrice: number;
7
+ unitPrice: number;
8
+ voucherKey: string | null;
9
+ constructor(data?: Partial<SubscriptionBaseItemEntity>);
10
+ }
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionItemEntity = void 0;
4
- var SubscriptionItemEntity = /** @class */ (function () {
3
+ exports.SubscriptionBaseItemEntity = void 0;
4
+ var SubscriptionBaseItemEntity = /** @class */ (function () {
5
5
  // #endregion Properties (6)
6
6
  // #region Constructors (1)
7
- function SubscriptionItemEntity(data) {
7
+ function SubscriptionBaseItemEntity(data) {
8
8
  // #region Properties (6)
9
9
  this.description = '';
10
10
  this.quantity = 1;
@@ -20,6 +20,6 @@ var SubscriptionItemEntity = /** @class */ (function () {
20
20
  }
21
21
  }
22
22
  }
23
- return SubscriptionItemEntity;
23
+ return SubscriptionBaseItemEntity;
24
24
  }());
25
- exports.SubscriptionItemEntity = SubscriptionItemEntity;
25
+ exports.SubscriptionBaseItemEntity = SubscriptionBaseItemEntity;
@@ -0,0 +1,8 @@
1
+ import { ISubscriptionBaseLog } from '../interfaces/i-subscription-base-log';
2
+ export declare class SubscriptionBaseLogEntity implements ISubscriptionBaseLog {
3
+ createdAt: Date;
4
+ description: string;
5
+ id: string;
6
+ notes: string;
7
+ constructor(data?: Partial<SubscriptionBaseLogEntity>);
8
+ }
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionLogEntity = void 0;
4
- var SubscriptionLogEntity = /** @class */ (function () {
3
+ exports.SubscriptionBaseLogEntity = void 0;
4
+ var SubscriptionBaseLogEntity = /** @class */ (function () {
5
5
  // #endregion Properties (4)
6
6
  // #region Constructors (1)
7
- function SubscriptionLogEntity(data) {
7
+ function SubscriptionBaseLogEntity(data) {
8
8
  // #region Properties (4)
9
9
  this.createdAt = new Date();
10
- this.description = "";
11
- this.id = "";
12
- this.notes = "";
10
+ this.description = '';
11
+ this.id = '';
12
+ this.notes = '';
13
13
  if (data) {
14
14
  for (var key in data) {
15
15
  if (data.hasOwnProperty(key) && key in this) {
@@ -18,6 +18,6 @@ var SubscriptionLogEntity = /** @class */ (function () {
18
18
  }
19
19
  }
20
20
  }
21
- return SubscriptionLogEntity;
21
+ return SubscriptionBaseLogEntity;
22
22
  }());
23
- exports.SubscriptionLogEntity = SubscriptionLogEntity;
23
+ exports.SubscriptionBaseLogEntity = SubscriptionBaseLogEntity;
@@ -1,35 +1,25 @@
1
- import { FeatureEntity } from '../../feature';
2
1
  import { CustomVariableEntity, EPaymentType, IntervalTypeEnum, PaymentEntity } from '../../general';
3
2
  import { InvoiceEntity } from '../../invoice';
4
3
  import { ESubscriptionStatus } from '../enums';
5
- import { ISubscription } from '../interfaces/i-subscription';
6
- import { SubscriptionCompanyEntity } from './subscription-company.entity';
7
- import { SubscriptionItemEntity } from './subscription-item.entity';
8
- import { SubscriptionLogEntity } from './subscription-log.entity';
9
- export declare class SubscriptionEntity implements ISubscription {
4
+ import { ISubscriptionBase } from '../interfaces/i-subscription-base';
5
+ import { SubscriptionBaseItemEntity } from './subscription-base-item.entity';
6
+ import { SubscriptionBaseLogEntity } from './subscription-base-log.entity';
7
+ export declare class SubscriptionBaseEntity implements ISubscriptionBase {
10
8
  amount: number;
11
- appId: string;
12
- appName: string;
13
9
  cancellationReason: string;
14
- company: SubscriptionCompanyEntity;
15
10
  createdAt: Date;
16
11
  customVariables: CustomVariableEntity[];
17
- cycledAt: Date;
18
12
  expiresAt: Date;
19
- features: FeatureEntity[];
20
13
  id: string;
21
14
  interval: number;
22
15
  intervalType: IntervalTypeEnum;
23
16
  invoices: InvoiceEntity[];
24
- items: SubscriptionItemEntity[];
25
- logs: SubscriptionLogEntity[];
17
+ items: SubscriptionBaseItemEntity[];
18
+ logs: SubscriptionBaseLogEntity[];
26
19
  notes: string;
27
- partnerId: string | null;
28
20
  payment: PaymentEntity;
29
21
  paymentType: EPaymentType;
30
22
  phoneNumberNotification: string;
31
- planId: string;
32
- planName: string;
33
23
  recentInvoices: InvoiceEntity[];
34
24
  renewPaymentDate: Date;
35
25
  renovatedAt: Date;
@@ -38,5 +28,5 @@ export declare class SubscriptionEntity implements ISubscription {
38
28
  suspendedTimes: number;
39
29
  tags: string[];
40
30
  updatedAt: Date;
41
- constructor(data?: Partial<SubscriptionEntity>);
31
+ constructor(data?: Partial<SubscriptionBaseEntity>);
42
32
  }
@@ -1,24 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionEntity = void 0;
3
+ exports.SubscriptionBaseEntity = void 0;
4
4
  var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
- var subscription_company_entity_1 = require("./subscription-company.entity");
7
- var SubscriptionEntity = /** @class */ (function () {
8
- // #endregion Properties (31)
6
+ var SubscriptionBaseEntity = /** @class */ (function () {
7
+ // #endregion Properties (25)
9
8
  // #region Constructors (1)
10
- function SubscriptionEntity(data) {
11
- // #region Properties (31)
9
+ function SubscriptionBaseEntity(data) {
10
+ // #region Properties (25)
12
11
  this.amount = 0;
13
- this.appId = '';
14
- this.appName = '';
15
12
  this.cancellationReason = '';
16
- this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
17
13
  this.createdAt = new Date();
18
14
  this.customVariables = [];
19
- this.cycledAt = new Date();
20
15
  this.expiresAt = new Date();
21
- this.features = [];
22
16
  this.id = '';
23
17
  this.interval = 0;
24
18
  this.intervalType = general_1.IntervalTypeEnum.MONTHS;
@@ -26,12 +20,9 @@ var SubscriptionEntity = /** @class */ (function () {
26
20
  this.items = [];
27
21
  this.logs = [];
28
22
  this.notes = '';
29
- this.partnerId = '';
30
23
  this.payment = new general_1.PaymentEntity();
31
24
  this.paymentType = general_1.EPaymentType.NONE;
32
25
  this.phoneNumberNotification = '';
33
- this.planId = '';
34
- this.planName = '';
35
26
  this.recentInvoices = [];
36
27
  this.renewPaymentDate = new Date();
37
28
  this.renovatedAt = new Date();
@@ -48,6 +39,6 @@ var SubscriptionEntity = /** @class */ (function () {
48
39
  }
49
40
  }
50
41
  }
51
- return SubscriptionEntity;
42
+ return SubscriptionBaseEntity;
52
43
  }());
53
- exports.SubscriptionEntity = SubscriptionEntity;
44
+ exports.SubscriptionBaseEntity = SubscriptionBaseEntity;
@@ -1,4 +1,4 @@
1
- export interface ISubscriptionItem {
1
+ export interface ISubscriptionBaseItem {
2
2
  description: string;
3
3
  quantity: number;
4
4
  recurrent: boolean;
@@ -1,4 +1,4 @@
1
- export interface ISubscriptionLog {
1
+ export interface ISubscriptionBaseLog {
2
2
  createdAt: Date;
3
3
  description: string;
4
4
  id: string;
@@ -0,0 +1,30 @@
1
+ import { EPaymentType, ICustomVariable, IPayment, IntervalTypeEnum } from '../../general';
2
+ import { IInvoice } from '../../invoice';
3
+ import { ESubscriptionStatus } from '../enums';
4
+ import { ISubscriptionBaseItem } from './i-subscription-base-item';
5
+ import { ISubscriptionBaseLog } from './i-subscription-base-log';
6
+ export interface ISubscriptionBase {
7
+ amount: number;
8
+ cancellationReason: string;
9
+ createdAt: Date;
10
+ customVariables: ICustomVariable[];
11
+ expiresAt: Date;
12
+ id: string;
13
+ interval: number;
14
+ intervalType: IntervalTypeEnum;
15
+ invoices: IInvoice[];
16
+ items: ISubscriptionBaseItem[];
17
+ logs: ISubscriptionBaseLog[];
18
+ notes: string;
19
+ payment: IPayment;
20
+ paymentType: EPaymentType;
21
+ phoneNumberNotification: string;
22
+ recentInvoices: IInvoice[];
23
+ renewPaymentDate: Date;
24
+ renovatedAt: Date;
25
+ startsAt: Date;
26
+ status: ESubscriptionStatus;
27
+ suspendedTimes: number;
28
+ tags: string[];
29
+ updatedAt: Date;
30
+ }
@@ -0,0 +1,3 @@
1
+ export { ISubscriptionBase } from './i-subscription-base';
2
+ export { ISubscriptionBaseItem } from './i-subscription-base-item';
3
+ export { ISubscriptionBaseLog } from './i-subscription-base-log';
@@ -0,0 +1,2 @@
1
+ export { SubscriptionCompanyCompanyEntity } from './subscription-company.entity';
2
+ export { SubscriptionCompanyEntity } from './subscription.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionCompanyEntity = exports.SubscriptionCompanyCompanyEntity = void 0;
4
+ var subscription_company_entity_1 = require("./subscription-company.entity");
5
+ Object.defineProperty(exports, "SubscriptionCompanyCompanyEntity", { enumerable: true, get: function () { return subscription_company_entity_1.SubscriptionCompanyCompanyEntity; } });
6
+ var subscription_entity_1 = require("./subscription.entity");
7
+ Object.defineProperty(exports, "SubscriptionCompanyEntity", { enumerable: true, get: function () { return subscription_entity_1.SubscriptionCompanyEntity; } });
@@ -0,0 +1,10 @@
1
+ import { ISubscriptionCompanyCompany } from '../interfaces/i-subscription-company';
2
+ export declare class SubscriptionCompanyCompanyEntity implements ISubscriptionCompanyCompany {
3
+ containerId: string | null;
4
+ doc: string | null;
5
+ docType: string | null;
6
+ id: string | null;
7
+ imageUrl: string | null;
8
+ name: string | null;
9
+ constructor(data?: Partial<SubscriptionCompanyCompanyEntity>);
10
+ }
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubscriptionCompanyEntity = void 0;
4
- var SubscriptionCompanyEntity = /** @class */ (function () {
3
+ exports.SubscriptionCompanyCompanyEntity = void 0;
4
+ var SubscriptionCompanyCompanyEntity = /** @class */ (function () {
5
5
  // #endregion Properties (6)
6
6
  // #region Constructors (1)
7
- function SubscriptionCompanyEntity(data) {
7
+ function SubscriptionCompanyCompanyEntity(data) {
8
8
  // #region Properties (6)
9
9
  this.containerId = '';
10
10
  this.doc = '';
@@ -20,6 +20,6 @@ var SubscriptionCompanyEntity = /** @class */ (function () {
20
20
  }
21
21
  }
22
22
  }
23
- return SubscriptionCompanyEntity;
23
+ return SubscriptionCompanyCompanyEntity;
24
24
  }());
25
- exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;
25
+ exports.SubscriptionCompanyCompanyEntity = SubscriptionCompanyCompanyEntity;
@@ -0,0 +1,13 @@
1
+ import { FeatureEntity } from '../../feature';
2
+ import { SubscriptionBaseEntity } from '../../subscription-base/entities/subscription-base.entity';
3
+ import { ISubscriptionCompany } from '../interfaces/i-subscription';
4
+ export declare class SubscriptionCompanyEntity extends SubscriptionBaseEntity implements ISubscriptionCompany {
5
+ appId: string;
6
+ appName: string;
7
+ company: SubscriptionCompanyEntity;
8
+ features: FeatureEntity[];
9
+ partnerId: string | null;
10
+ planId: string;
11
+ planName: string;
12
+ constructor(data?: Partial<SubscriptionCompanyEntity>);
13
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.SubscriptionCompanyEntity = void 0;
19
+ var subscription_base_entity_1 = require("../../subscription-base/entities/subscription-base.entity");
20
+ var SubscriptionCompanyEntity = /** @class */ (function (_super) {
21
+ __extends(SubscriptionCompanyEntity, _super);
22
+ // #endregion Properties (7)
23
+ // #region Constructors (1)
24
+ function SubscriptionCompanyEntity(data) {
25
+ var _this = _super.call(this, data) || this;
26
+ // #region Properties (7)
27
+ _this.appId = '';
28
+ _this.appName = '';
29
+ _this.company = new SubscriptionCompanyEntity();
30
+ _this.features = [];
31
+ _this.partnerId = '';
32
+ _this.planId = '';
33
+ _this.planName = '';
34
+ if (data) {
35
+ for (var key in data) {
36
+ if (data.hasOwnProperty(key) && key in _this) {
37
+ _this[key] = data[key];
38
+ }
39
+ }
40
+ }
41
+ return _this;
42
+ }
43
+ return SubscriptionCompanyEntity;
44
+ }(subscription_base_entity_1.SubscriptionBaseEntity));
45
+ exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
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("./interfaces"), exports);
@@ -1,4 +1,4 @@
1
- export interface ISubscriptionCompany {
1
+ export interface ISubscriptionCompanyCompany {
2
2
  containerId: string | null;
3
3
  doc: string | null;
4
4
  docType: string | null;
@@ -0,0 +1,11 @@
1
+ import { IFeature } from '../../feature';
2
+ import { ISubscriptionBase } from '../../subscription-base/interfaces/i-subscription-base';
3
+ export interface ISubscriptionCompany extends ISubscriptionBase {
4
+ appId: string;
5
+ appName: string;
6
+ company: ISubscriptionCompany;
7
+ features: IFeature[];
8
+ partnerId: string | null;
9
+ planId: string;
10
+ planName: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ISubscriptionCompany } from './i-subscription';
2
+ export { ISubscriptionCompanyCompany } from './i-subscription-company';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { SubscriptionCustomerCustomerEntity } from './subscription-customer.entity';
2
+ export { SubscriptionCustomerEntity } from './subscription.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionCustomerEntity = exports.SubscriptionCustomerCustomerEntity = void 0;
4
+ var subscription_customer_entity_1 = require("./subscription-customer.entity");
5
+ Object.defineProperty(exports, "SubscriptionCustomerCustomerEntity", { enumerable: true, get: function () { return subscription_customer_entity_1.SubscriptionCustomerCustomerEntity; } });
6
+ var subscription_entity_1 = require("./subscription.entity");
7
+ Object.defineProperty(exports, "SubscriptionCustomerEntity", { enumerable: true, get: function () { return subscription_entity_1.SubscriptionCustomerEntity; } });
@@ -0,0 +1,10 @@
1
+ import { ISubscriptionCustomerCustomer } from '../interfaces/i-subscription-customer';
2
+ export declare class SubscriptionCustomerCustomerEntity implements ISubscriptionCustomerCustomer {
3
+ doc: string | null;
4
+ docType: string | null;
5
+ id: string | null;
6
+ imageUrl: string | null;
7
+ name: string | null;
8
+ uid: string | null;
9
+ constructor(data?: Partial<SubscriptionCustomerCustomerEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionCustomerCustomerEntity = void 0;
4
+ var SubscriptionCustomerCustomerEntity = /** @class */ (function () {
5
+ // #endregion Properties (6)
6
+ // #region Constructors (1)
7
+ function SubscriptionCustomerCustomerEntity(data) {
8
+ // #region Properties (6)
9
+ this.doc = '';
10
+ this.docType = '';
11
+ this.id = '';
12
+ this.imageUrl = '';
13
+ this.name = '';
14
+ this.uid = '';
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return SubscriptionCustomerCustomerEntity;
24
+ }());
25
+ exports.SubscriptionCustomerCustomerEntity = SubscriptionCustomerCustomerEntity;
@@ -0,0 +1,7 @@
1
+ import { SubscriptionBaseEntity } from '../../subscription-base';
2
+ import { ISubscriptionCustomer } from '../interfaces/i-subscription';
3
+ import { SubscriptionCustomerCustomerEntity } from './subscription-customer.entity';
4
+ export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity implements ISubscriptionCustomer {
5
+ customer: SubscriptionCustomerCustomerEntity;
6
+ constructor(data?: Partial<SubscriptionCustomerEntity>);
7
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.SubscriptionCustomerEntity = void 0;
19
+ var subscription_base_1 = require("../../subscription-base");
20
+ var subscription_customer_entity_1 = require("./subscription-customer.entity");
21
+ var SubscriptionCustomerEntity = /** @class */ (function (_super) {
22
+ __extends(SubscriptionCustomerEntity, _super);
23
+ // #endregion Properties (1)
24
+ // #region Constructors (1)
25
+ function SubscriptionCustomerEntity(data) {
26
+ var _this = _super.call(this, data) || this;
27
+ // #region Properties (1)
28
+ _this.customer = new subscription_customer_entity_1.SubscriptionCustomerCustomerEntity();
29
+ if (data) {
30
+ for (var key in data) {
31
+ if (data.hasOwnProperty(key) && key in _this) {
32
+ _this[key] = data[key];
33
+ }
34
+ }
35
+ }
36
+ return _this;
37
+ }
38
+ return SubscriptionCustomerEntity;
39
+ }(subscription_base_1.SubscriptionBaseEntity));
40
+ exports.SubscriptionCustomerEntity = SubscriptionCustomerEntity;
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
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("./interfaces"), exports);
@@ -0,0 +1,8 @@
1
+ export interface ISubscriptionCustomerCustomer {
2
+ doc: string | null;
3
+ docType: string | null;
4
+ id: string | null;
5
+ imageUrl: string | null;
6
+ name: string | null;
7
+ uid: string | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });