cecon-interfaces 1.1.67 → 1.1.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/app/entities/app.entity.d.ts +6 -6
  2. package/dist/app/entities/app.entity.js +1 -1
  3. package/dist/app/interfaces/i-app.d.ts +6 -6
  4. package/dist/billing/entities/billing-payment.entity.d.ts +19 -0
  5. package/dist/billing/entities/billing-payment.entity.js +33 -0
  6. package/dist/billing/entities/billing-total.entity.d.ts +10 -0
  7. package/dist/billing/entities/billing-total.entity.js +25 -0
  8. package/dist/billing/entities/billing.entity.d.ts +14 -0
  9. package/dist/billing/entities/billing.entity.js +29 -0
  10. package/dist/billing/entities/index.d.ts +3 -0
  11. package/dist/billing/entities/index.js +9 -0
  12. package/dist/billing/enums/billing-status.enum.d.ts +6 -0
  13. package/dist/billing/enums/billing-status.enum.js +12 -0
  14. package/dist/billing/enums/index.d.ts +1 -0
  15. package/dist/billing/enums/index.js +5 -0
  16. package/dist/billing/index.d.ts +3 -0
  17. package/dist/billing/index.js +19 -0
  18. package/dist/billing/interfaces/i-billing-payment.d.ts +17 -0
  19. package/dist/billing/interfaces/i-billing-payment.js +2 -0
  20. package/dist/billing/interfaces/i-billing-total.d.ts +8 -0
  21. package/dist/billing/interfaces/i-billing-total.js +2 -0
  22. package/dist/billing/interfaces/i-billing.d.ts +14 -0
  23. package/dist/billing/interfaces/i-billing.js +2 -0
  24. package/dist/billing/interfaces/index.d.ts +3 -0
  25. package/dist/billing/interfaces/index.js +2 -0
  26. package/dist/billing-order/entities/billing-order.entity.d.ts +6 -0
  27. package/dist/billing-order/entities/billing-order.entity.js +39 -0
  28. package/dist/billing-order/entities/index.d.ts +1 -0
  29. package/dist/billing-order/entities/index.js +5 -0
  30. package/dist/billing-order/index.d.ts +2 -0
  31. package/dist/billing-order/index.js +18 -0
  32. package/dist/billing-order/interfaces/i-billing-order.d.ts +4 -0
  33. package/dist/billing-order/interfaces/i-billing-order.js +2 -0
  34. package/dist/billing-order/interfaces/index.d.ts +1 -0
  35. package/dist/billing-order/interfaces/index.js +2 -0
  36. package/dist/device/entities/device.entity.d.ts +2 -2
  37. package/dist/device/entities/device.entity.js +1 -1
  38. package/dist/device/interfaces/i-device.d.ts +2 -2
  39. package/dist/esm2022/app/entities/app.entity.mjs +3 -3
  40. package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
  41. package/dist/esm2022/billing/entities/billing-payment.entity.mjs +29 -0
  42. package/dist/esm2022/billing/entities/billing-total.entity.mjs +21 -0
  43. package/dist/esm2022/billing/entities/billing.entity.mjs +25 -0
  44. package/dist/esm2022/billing/entities/index.mjs +4 -0
  45. package/dist/esm2022/billing/enums/billing-status.enum.mjs +10 -0
  46. package/dist/esm2022/billing/enums/index.mjs +2 -0
  47. package/dist/esm2022/billing/index.mjs +4 -0
  48. package/dist/esm2022/billing/interfaces/i-billing-payment.mjs +2 -0
  49. package/dist/esm2022/billing/interfaces/i-billing-total.mjs +2 -0
  50. package/dist/esm2022/billing/interfaces/i-billing.mjs +2 -0
  51. package/dist/esm2022/billing/interfaces/index.mjs +2 -0
  52. package/dist/esm2022/billing-order/entities/billing-order.entity.mjs +18 -0
  53. package/dist/esm2022/billing-order/entities/index.mjs +2 -0
  54. package/dist/esm2022/billing-order/index.mjs +3 -0
  55. package/dist/esm2022/billing-order/interfaces/i-billing-order.mjs +2 -0
  56. package/dist/esm2022/billing-order/interfaces/index.mjs +2 -0
  57. package/dist/esm2022/device/entities/device.entity.mjs +3 -3
  58. package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
  59. package/dist/esm2022/general/entities/origin.entity.mjs +3 -3
  60. package/dist/esm2022/general/entities/payment-method-option.entity.mjs +5 -5
  61. package/dist/esm2022/general/enums/boolean-string.enum.mjs +6 -6
  62. package/dist/esm2022/general/enums/index.mjs +12 -11
  63. package/dist/esm2022/general/enums/interval-type.enum.mjs +7 -7
  64. package/dist/esm2022/general/enums/lead-origin.enum.mjs +11 -11
  65. package/dist/esm2022/general/enums/os.enum.mjs +12 -12
  66. package/dist/esm2022/general/enums/payment-channel.enum.mjs +12 -12
  67. package/dist/esm2022/general/enums/payment-mode.enum.mjs +7 -7
  68. package/dist/esm2022/general/enums/payment-status.enum.mjs +14 -13
  69. package/dist/esm2022/general/enums/person-type.enum.mjs +6 -6
  70. package/dist/esm2022/general/enums/platform.enum.mjs +11 -11
  71. package/dist/esm2022/general/enums/providers.enum.mjs +10 -10
  72. package/dist/esm2022/general/enums/pubsub.enum.mjs +6 -0
  73. package/dist/esm2022/general/interfaces/i-origin.mjs +1 -1
  74. package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
  75. package/dist/esm2022/index.mjs +3 -1
  76. package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +6 -6
  77. package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +1 -1
  78. package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
  79. package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
  80. package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
  81. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  82. package/dist/esm2022/purchases/entities/purchase.entity.mjs +3 -3
  83. package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
  84. package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
  85. package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +1 -1
  86. package/dist/esm2022/subscription-company/entities/subscription.entity.mjs +3 -2
  87. package/dist/esm2022/subscription-company/interfaces/i-subscription.mjs +1 -1
  88. package/dist/fesm2022/cecon-interfaces.mjs +1533 -1427
  89. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  90. package/dist/general/entities/origin.entity.d.ts +2 -2
  91. package/dist/general/entities/origin.entity.js +1 -1
  92. package/dist/general/entities/payment-method-option.entity.d.ts +4 -4
  93. package/dist/general/entities/payment-method-option.entity.js +2 -2
  94. package/dist/general/enums/boolean-string.enum.d.ts +1 -1
  95. package/dist/general/enums/boolean-string.enum.js +6 -6
  96. package/dist/general/enums/index.d.ts +11 -10
  97. package/dist/general/enums/index.js +13 -11
  98. package/dist/general/enums/interval-type.enum.d.ts +1 -1
  99. package/dist/general/enums/interval-type.enum.js +7 -7
  100. package/dist/general/enums/lead-origin.enum.d.ts +1 -1
  101. package/dist/general/enums/lead-origin.enum.js +11 -11
  102. package/dist/general/enums/os.enum.d.ts +1 -1
  103. package/dist/general/enums/os.enum.js +12 -12
  104. package/dist/general/enums/payment-channel.enum.d.ts +1 -1
  105. package/dist/general/enums/payment-channel.enum.js +12 -12
  106. package/dist/general/enums/payment-mode.enum.d.ts +1 -1
  107. package/dist/general/enums/payment-mode.enum.js +7 -7
  108. package/dist/general/enums/payment-status.enum.d.ts +2 -1
  109. package/dist/general/enums/payment-status.enum.js +14 -13
  110. package/dist/general/enums/person-type.enum.d.ts +1 -1
  111. package/dist/general/enums/person-type.enum.js +6 -6
  112. package/dist/general/enums/platform.enum.d.ts +1 -1
  113. package/dist/general/enums/platform.enum.js +11 -11
  114. package/dist/general/enums/providers.enum.d.ts +1 -1
  115. package/dist/general/enums/providers.enum.js +10 -10
  116. package/dist/general/enums/pubsub.enum.d.ts +4 -0
  117. package/dist/general/enums/pubsub.enum.js +8 -0
  118. package/dist/general/interfaces/i-origin.d.ts +2 -2
  119. package/dist/general/interfaces/i-payment-method-option.d.ts +4 -4
  120. package/dist/index.d.ts +2 -0
  121. package/dist/index.js +2 -0
  122. package/dist/iugu/entities/account-last-verification-request-data.entity.d.ts +5 -5
  123. package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
  124. package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +5 -5
  125. package/dist/lead/entities/lead.entity.d.ts +2 -2
  126. package/dist/lead/entities/lead.entity.js +1 -1
  127. package/dist/lead/interfaces/i-lead.d.ts +6 -6
  128. package/dist/package.json +1 -1
  129. package/dist/plan/entities/plan.entity.d.ts +2 -2
  130. package/dist/plan/entities/plan.entity.js +1 -1
  131. package/dist/plan/interfaces/i-plan.d.ts +2 -2
  132. package/dist/purchases/entities/purchase.entity.d.ts +2 -2
  133. package/dist/purchases/entities/purchase.entity.js +1 -1
  134. package/dist/purchases/interfaces/i-purchase.d.ts +2 -2
  135. package/dist/subscription-base/entities/subscription-base.entity.d.ts +2 -2
  136. package/dist/subscription-base/entities/subscription-base.entity.js +1 -1
  137. package/dist/subscription-base/interfaces/i-subscription-base.d.ts +2 -2
  138. package/dist/subscription-company/entities/subscription.entity.d.ts +2 -1
  139. package/dist/subscription-company/entities/subscription.entity.js +2 -1
  140. package/dist/subscription-company/interfaces/i-subscription.d.ts +2 -1
  141. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { LeadOriginEnum } from '../../general/enums';
1
+ import { ELeadOrigin } from '../../general/enums';
2
2
  import { LeadStatusEnum } from '../enums';
3
3
  export interface ILead {
4
4
  /**
@@ -24,11 +24,11 @@ export interface ILead {
24
24
  createdAt: Date;
25
25
  /**
26
26
  * Número do documento conforme o tipo.
27
- **/
27
+ **/
28
28
  doc: string;
29
29
  /**
30
30
  * Tipo de documento (CPF, CNPJ, Passaporte, etc.).
31
- **/
31
+ **/
32
32
  docType: any;
33
33
  /**
34
34
  * Endereço de e-mail principal para contato.
@@ -36,7 +36,7 @@ export interface ILead {
36
36
  email: string;
37
37
  /**
38
38
  * Identificador único do lead.
39
- **/
39
+ **/
40
40
  id: string;
41
41
  /**
42
42
  * Lista de produtos ou serviços de interesse.
@@ -48,7 +48,7 @@ export interface ILead {
48
48
  lastContacted?: Date;
49
49
  /**
50
50
  * Nome completo ou razão social do lead.
51
- **/
51
+ **/
52
52
  name: string;
53
53
  /**
54
54
  * Notas ou observações adicionais.
@@ -57,7 +57,7 @@ export interface ILead {
57
57
  /**
58
58
  * Fonte de origem do lead.
59
59
  **/
60
- origin: LeadOriginEnum;
60
+ origin: ELeadOrigin;
61
61
  /**
62
62
  * Id do afiliado responsável pelo lead.
63
63
  */
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.67",
3
+ "version": "1.1.70",
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 { IntervalTypeEnum } from '../../general/enums';
1
+ import { EIntervalType } from '../../general/enums';
2
2
  import { EPlanIdentifier } from '../enums/plans-identifier.enum';
3
3
  import { IPlan } from '../interfaces';
4
4
  import { PlanFeatureEntity } from './feature.entity';
@@ -10,7 +10,7 @@ export declare class PlanEntity implements IPlan {
10
10
  index: number;
11
11
  identifier: EPlanIdentifier;
12
12
  interval: number;
13
- intervalType: IntervalTypeEnum;
13
+ intervalType: EIntervalType;
14
14
  name: string;
15
15
  price: number;
16
16
  updatedAt: Date;
@@ -15,7 +15,7 @@ var PlanEntity = /** @class */ (function () {
15
15
  this.index = 0;
16
16
  this.identifier = plans_identifier_enum_1.EPlanIdentifier.NATIGO;
17
17
  this.interval = 12;
18
- this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
18
+ this.intervalType = enums_1.EIntervalType.MONTHS;
19
19
  this.name = '';
20
20
  this.price = 0;
21
21
  this.updatedAt = new Date();
@@ -1,4 +1,4 @@
1
- import { IntervalTypeEnum } from '../../general/enums';
1
+ import { EIntervalType } from '../../general/enums';
2
2
  import { EPlanIdentifier } from '../enums';
3
3
  import { IPlanFeature } from './i-feature';
4
4
  export interface IPlan {
@@ -8,7 +8,7 @@ export interface IPlan {
8
8
  identifier: EPlanIdentifier;
9
9
  index: number;
10
10
  interval: number;
11
- intervalType: IntervalTypeEnum;
11
+ intervalType: EIntervalType;
12
12
  tags: string[];
13
13
  name: string;
14
14
  price: number;
@@ -1,10 +1,10 @@
1
- import { PaymentProviderEnum } from '../../general/enums/providers.enum';
1
+ import { EPaymentProvider } from '../../general/enums/providers.enum';
2
2
  import { OrderEntity } from '../../order';
3
3
  import { AppInfoEntity } from './app-info.entity';
4
4
  export declare class PurchaseEntity extends OrderEntity {
5
5
  additionalNotes?: string;
6
6
  appInfo: AppInfoEntity;
7
7
  deviceUid: string;
8
- providerName: PaymentProviderEnum;
8
+ providerName: EPaymentProvider;
9
9
  constructor(data?: Partial<PurchaseEntity>);
10
10
  }
@@ -29,7 +29,7 @@ var PurchaseEntity = /** @class */ (function (_super) {
29
29
  _this.additionalNotes = '';
30
30
  _this.appInfo = new app_info_entity_1.AppInfoEntity();
31
31
  _this.deviceUid = '';
32
- _this.providerName = providers_enum_1.PaymentProviderEnum.IUGU;
32
+ _this.providerName = providers_enum_1.EPaymentProvider.IUGU;
33
33
  if (data) {
34
34
  for (var key in data) {
35
35
  if (data.hasOwnProperty(key) && key in _this) {
@@ -1,4 +1,4 @@
1
- import { PaymentProviderEnum } from '../../general/enums/providers.enum';
1
+ import { EPaymentProvider } from '../../general/enums/providers.enum';
2
2
  import { IOrder } from '../../order';
3
3
  import { IAppInfo } from './i-app-info';
4
4
  /**
@@ -14,5 +14,5 @@ export interface IPurchase extends IOrder {
14
14
  /** ID do dispositivo para o qual o aplicativo foi ativado. */
15
15
  deviceUid: string;
16
16
  /** Identificação da origem do pagamento ex: DESENFILA */
17
- providerName: PaymentProviderEnum;
17
+ providerName: EPaymentProvider;
18
18
  }
@@ -1,4 +1,4 @@
1
- import { CustomVariableEntity, EPaymentType, IntervalTypeEnum, PaymentEntity } from '../../general';
1
+ import { CustomVariableEntity, EIntervalType, EPaymentType, PaymentEntity } from '../../general';
2
2
  import { InvoiceEntity } from '../../invoice';
3
3
  import { ESubscriptionStatus } from '../enums';
4
4
  import { ISubscriptionBase } from '../interfaces/i-subscription-base';
@@ -12,7 +12,7 @@ export declare class SubscriptionBaseEntity implements ISubscriptionBase {
12
12
  expiresAt: Date;
13
13
  id: string;
14
14
  interval: number;
15
- intervalType: IntervalTypeEnum;
15
+ intervalType: EIntervalType;
16
16
  invoices: InvoiceEntity[];
17
17
  items: SubscriptionBaseItemEntity[];
18
18
  logs: SubscriptionBaseLogEntity[];
@@ -15,7 +15,7 @@ var SubscriptionBaseEntity = /** @class */ (function () {
15
15
  this.expiresAt = new Date();
16
16
  this.id = '';
17
17
  this.interval = 0;
18
- this.intervalType = general_1.IntervalTypeEnum.MONTHS;
18
+ this.intervalType = general_1.EIntervalType.MONTHS;
19
19
  this.invoices = [];
20
20
  this.items = [];
21
21
  this.logs = [];
@@ -1,4 +1,4 @@
1
- import { EPaymentType, ICustomVariable, IPayment, IntervalTypeEnum } from '../../general';
1
+ import { EIntervalType, EPaymentType, ICustomVariable, IPayment } from '../../general';
2
2
  import { IInvoice } from '../../invoice';
3
3
  import { ESubscriptionStatus } from '../enums';
4
4
  import { ISubscriptionBaseItem } from './i-subscription-base-item';
@@ -11,7 +11,7 @@ export interface ISubscriptionBase {
11
11
  expiresAt: Date;
12
12
  id: string;
13
13
  interval: number;
14
- intervalType: IntervalTypeEnum;
14
+ intervalType: EIntervalType;
15
15
  invoices: IInvoice[];
16
16
  items: ISubscriptionBaseItem[];
17
17
  logs: ISubscriptionBaseLog[];
@@ -1,10 +1,11 @@
1
1
  import { FeatureEntity } from '../../feature';
2
2
  import { SubscriptionBaseEntity } from '../../subscription-base/entities/subscription-base.entity';
3
3
  import { ISubscriptionCompany } from '../interfaces/i-subscription';
4
+ import { SubscriptionCompanyCompanyEntity } from './subscription-company.entity';
4
5
  export declare class SubscriptionCompanyEntity extends SubscriptionBaseEntity implements ISubscriptionCompany {
5
6
  appId: string;
6
7
  appName: string;
7
- company: SubscriptionCompanyEntity;
8
+ company: SubscriptionCompanyCompanyEntity;
8
9
  features: FeatureEntity[];
9
10
  partnerId: string | null;
10
11
  planId: string;
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.SubscriptionCompanyEntity = void 0;
19
19
  var subscription_base_entity_1 = require("../../subscription-base/entities/subscription-base.entity");
20
+ var subscription_company_entity_1 = require("./subscription-company.entity");
20
21
  var SubscriptionCompanyEntity = /** @class */ (function (_super) {
21
22
  __extends(SubscriptionCompanyEntity, _super);
22
23
  // #endregion Properties (7)
@@ -26,7 +27,7 @@ var SubscriptionCompanyEntity = /** @class */ (function (_super) {
26
27
  // #region Properties (7)
27
28
  _this.appId = '';
28
29
  _this.appName = '';
29
- _this.company = new SubscriptionCompanyEntity();
30
+ _this.company = new subscription_company_entity_1.SubscriptionCompanyCompanyEntity();
30
31
  _this.features = [];
31
32
  _this.partnerId = '';
32
33
  _this.planId = '';
@@ -1,9 +1,10 @@
1
1
  import { IFeature } from '../../feature';
2
2
  import { ISubscriptionBase } from '../../subscription-base/interfaces/i-subscription-base';
3
+ import { ISubscriptionCompanyCompany } from './i-subscription-company';
3
4
  export interface ISubscriptionCompany extends ISubscriptionBase {
4
5
  appId: string;
5
6
  appName: string;
6
- company: ISubscriptionCompany;
7
+ company: ISubscriptionCompanyCompany;
7
8
  features: IFeature[];
8
9
  partnerId: string | null;
9
10
  planId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.67",
3
+ "version": "1.1.70",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",