cecon-interfaces 1.1.68 → 1.1.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) 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/customer/entities/customer.entity.d.ts +2 -1
  37. package/dist/customer/entities/customer.entity.js +1 -0
  38. package/dist/customer/enums/index.d.ts +1 -0
  39. package/dist/customer/enums/index.js +3 -1
  40. package/dist/customer/enums/type.enum.d.ts +4 -0
  41. package/dist/customer/enums/type.enum.js +8 -0
  42. package/dist/customer/interfaces/i-customer.d.ts +2 -1
  43. package/dist/customer-member/entities/index.d.ts +1 -0
  44. package/dist/customer-member/entities/index.js +5 -0
  45. package/dist/customer-member/entities/member.entity.d.ts +5 -0
  46. package/dist/customer-member/entities/member.entity.js +38 -0
  47. package/dist/customer-member/index.d.ts +2 -0
  48. package/dist/customer-member/index.js +18 -0
  49. package/dist/customer-member/interfaces/i-member.d.ts +3 -0
  50. package/dist/customer-member/interfaces/i-member.js +2 -0
  51. package/dist/customer-member/interfaces/index.d.ts +1 -0
  52. package/dist/customer-member/interfaces/index.js +2 -0
  53. package/dist/device/entities/device.entity.d.ts +2 -2
  54. package/dist/device/entities/device.entity.js +1 -1
  55. package/dist/device/interfaces/i-device.d.ts +2 -2
  56. package/dist/esm2022/app/entities/app.entity.mjs +3 -3
  57. package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
  58. package/dist/esm2022/billing/entities/billing-payment.entity.mjs +29 -0
  59. package/dist/esm2022/billing/entities/billing-total.entity.mjs +21 -0
  60. package/dist/esm2022/billing/entities/billing.entity.mjs +25 -0
  61. package/dist/esm2022/billing/entities/index.mjs +4 -0
  62. package/dist/esm2022/billing/enums/billing-status.enum.mjs +10 -0
  63. package/dist/esm2022/billing/enums/index.mjs +2 -0
  64. package/dist/esm2022/billing/index.mjs +4 -0
  65. package/dist/esm2022/billing/interfaces/i-billing-payment.mjs +2 -0
  66. package/dist/esm2022/billing/interfaces/i-billing-total.mjs +2 -0
  67. package/dist/esm2022/billing/interfaces/i-billing.mjs +2 -0
  68. package/dist/esm2022/billing/interfaces/index.mjs +2 -0
  69. package/dist/esm2022/billing-order/entities/billing-order.entity.mjs +18 -0
  70. package/dist/esm2022/billing-order/entities/index.mjs +2 -0
  71. package/dist/esm2022/billing-order/index.mjs +3 -0
  72. package/dist/esm2022/billing-order/interfaces/i-billing-order.mjs +2 -0
  73. package/dist/esm2022/billing-order/interfaces/index.mjs +2 -0
  74. package/dist/esm2022/customer/entities/customer.entity.mjs +3 -2
  75. package/dist/esm2022/customer/enums/index.mjs +2 -1
  76. package/dist/esm2022/customer/enums/type.enum.mjs +6 -0
  77. package/dist/esm2022/customer/interfaces/i-customer.mjs +1 -1
  78. package/dist/esm2022/customer-member/entities/index.mjs +2 -0
  79. package/dist/esm2022/customer-member/entities/member.entity.mjs +17 -0
  80. package/dist/esm2022/customer-member/index.mjs +3 -0
  81. package/dist/esm2022/customer-member/interfaces/i-member.mjs +2 -0
  82. package/dist/esm2022/customer-member/interfaces/index.mjs +2 -0
  83. package/dist/esm2022/device/entities/device.entity.mjs +3 -3
  84. package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
  85. package/dist/esm2022/general/entities/origin.entity.mjs +3 -3
  86. package/dist/esm2022/general/entities/payment-method-option.entity.mjs +5 -5
  87. package/dist/esm2022/general/enums/boolean-string.enum.mjs +6 -6
  88. package/dist/esm2022/general/enums/index.mjs +12 -11
  89. package/dist/esm2022/general/enums/interval-type.enum.mjs +7 -7
  90. package/dist/esm2022/general/enums/lead-origin.enum.mjs +11 -11
  91. package/dist/esm2022/general/enums/os.enum.mjs +12 -12
  92. package/dist/esm2022/general/enums/payment-channel.enum.mjs +12 -12
  93. package/dist/esm2022/general/enums/payment-mode.enum.mjs +7 -7
  94. package/dist/esm2022/general/enums/payment-status.enum.mjs +14 -13
  95. package/dist/esm2022/general/enums/person-type.enum.mjs +6 -6
  96. package/dist/esm2022/general/enums/platform.enum.mjs +11 -11
  97. package/dist/esm2022/general/enums/providers.enum.mjs +10 -10
  98. package/dist/esm2022/general/enums/pubsub.enum.mjs +6 -0
  99. package/dist/esm2022/general/interfaces/i-origin.mjs +1 -1
  100. package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
  101. package/dist/esm2022/index.mjs +4 -1
  102. package/dist/esm2022/invite/entities/invite.entity.mjs +4 -3
  103. package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
  104. package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +6 -6
  105. package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +1 -1
  106. package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
  107. package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
  108. package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
  109. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  110. package/dist/esm2022/purchases/entities/purchase.entity.mjs +3 -3
  111. package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
  112. package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
  113. package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +1 -1
  114. package/dist/fesm2022/cecon-interfaces.mjs +1517 -1387
  115. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  116. package/dist/general/entities/origin.entity.d.ts +2 -2
  117. package/dist/general/entities/origin.entity.js +1 -1
  118. package/dist/general/entities/payment-method-option.entity.d.ts +4 -4
  119. package/dist/general/entities/payment-method-option.entity.js +2 -2
  120. package/dist/general/enums/boolean-string.enum.d.ts +1 -1
  121. package/dist/general/enums/boolean-string.enum.js +6 -6
  122. package/dist/general/enums/index.d.ts +11 -10
  123. package/dist/general/enums/index.js +13 -11
  124. package/dist/general/enums/interval-type.enum.d.ts +1 -1
  125. package/dist/general/enums/interval-type.enum.js +7 -7
  126. package/dist/general/enums/lead-origin.enum.d.ts +1 -1
  127. package/dist/general/enums/lead-origin.enum.js +11 -11
  128. package/dist/general/enums/os.enum.d.ts +1 -1
  129. package/dist/general/enums/os.enum.js +12 -12
  130. package/dist/general/enums/payment-channel.enum.d.ts +1 -1
  131. package/dist/general/enums/payment-channel.enum.js +12 -12
  132. package/dist/general/enums/payment-mode.enum.d.ts +1 -1
  133. package/dist/general/enums/payment-mode.enum.js +7 -7
  134. package/dist/general/enums/payment-status.enum.d.ts +2 -1
  135. package/dist/general/enums/payment-status.enum.js +14 -13
  136. package/dist/general/enums/person-type.enum.d.ts +1 -1
  137. package/dist/general/enums/person-type.enum.js +6 -6
  138. package/dist/general/enums/platform.enum.d.ts +1 -1
  139. package/dist/general/enums/platform.enum.js +11 -11
  140. package/dist/general/enums/providers.enum.d.ts +1 -1
  141. package/dist/general/enums/providers.enum.js +10 -10
  142. package/dist/general/enums/pubsub.enum.d.ts +4 -0
  143. package/dist/general/enums/pubsub.enum.js +8 -0
  144. package/dist/general/interfaces/i-origin.d.ts +2 -2
  145. package/dist/general/interfaces/i-payment-method-option.d.ts +4 -4
  146. package/dist/index.d.ts +3 -0
  147. package/dist/index.js +3 -0
  148. package/dist/invite/entities/invite.entity.d.ts +1 -0
  149. package/dist/invite/entities/invite.entity.js +3 -2
  150. package/dist/invite/interfaces/i-invite.d.ts +4 -3
  151. package/dist/iugu/entities/account-last-verification-request-data.entity.d.ts +5 -5
  152. package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
  153. package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +5 -5
  154. package/dist/lead/entities/lead.entity.d.ts +2 -2
  155. package/dist/lead/entities/lead.entity.js +1 -1
  156. package/dist/lead/interfaces/i-lead.d.ts +6 -6
  157. package/dist/package.json +1 -1
  158. package/dist/plan/entities/plan.entity.d.ts +2 -2
  159. package/dist/plan/entities/plan.entity.js +1 -1
  160. package/dist/plan/interfaces/i-plan.d.ts +2 -2
  161. package/dist/purchases/entities/purchase.entity.d.ts +2 -2
  162. package/dist/purchases/entities/purchase.entity.js +1 -1
  163. package/dist/purchases/interfaces/i-purchase.d.ts +2 -2
  164. package/dist/subscription-base/entities/subscription-base.entity.d.ts +2 -2
  165. package/dist/subscription-base/entities/subscription-base.entity.js +1 -1
  166. package/dist/subscription-base/interfaces/i-subscription-base.d.ts +2 -2
  167. package/package.json +1 -1
@@ -10,7 +10,7 @@ var LastVerificationRequestDataEntity = /** @class */ (function () {
10
10
  // #region Properties (19)
11
11
  this.accountType = '';
12
12
  this.address = '';
13
- this.automaticTransfer = enums_1.BooleanStringEnum.FALSE;
13
+ this.automaticTransfer = enums_1.EBooleanString.FALSE;
14
14
  this.bank = '';
15
15
  this.bankAg = '';
16
16
  this.bankCc = '';
@@ -22,8 +22,8 @@ var LastVerificationRequestDataEntity = /** @class */ (function () {
22
22
  this.documentCpf = '';
23
23
  this.documentId = '';
24
24
  this.name = '';
25
- this.personType = person_type_enum_1.LegalEntiyEnum.LEGAL;
26
- this.physicalProducts = enums_1.BooleanStringEnum.FALSE;
25
+ this.personType = person_type_enum_1.ELegalEntiy.LEGAL;
26
+ this.physicalProducts = enums_1.EBooleanString.FALSE;
27
27
  this.priceRange = '';
28
28
  this.state = '';
29
29
  this.telephone = '';
@@ -1,9 +1,9 @@
1
- import { BooleanStringEnum } from '../../general/enums';
2
- import { LegalEntiyEnum } from '../../general/enums/person-type.enum';
1
+ import { EBooleanString } from '../../general/enums';
2
+ import { ELegalEntiy } from '../../general/enums/person-type.enum';
3
3
  export interface IIuguLastVerificationRequestData {
4
4
  accountType: string;
5
5
  address: string;
6
- automaticTransfer: BooleanStringEnum;
6
+ automaticTransfer: EBooleanString;
7
7
  bank: string;
8
8
  bankAg: string;
9
9
  bankCc: string;
@@ -15,8 +15,8 @@ export interface IIuguLastVerificationRequestData {
15
15
  documentCpf: string;
16
16
  documentId: string;
17
17
  name: string;
18
- personType: LegalEntiyEnum;
19
- physicalProducts: BooleanStringEnum;
18
+ personType: ELegalEntiy;
19
+ physicalProducts: EBooleanString;
20
20
  priceRange: string;
21
21
  state: string;
22
22
  telephone: string;
@@ -1,4 +1,4 @@
1
- import { EDocType, LeadOriginEnum } from '../../general/enums';
1
+ import { EDocType, ELeadOrigin } from '../../general/enums';
2
2
  import { LeadStatusEnum } from '../enums';
3
3
  import { ILead } from '../interfaces';
4
4
  export declare class LeadEntity implements ILead {
@@ -26,7 +26,7 @@ export declare class LeadEntity implements ILead {
26
26
  /**Número do documento conforme o tipo. */
27
27
  name: string;
28
28
  note?: string;
29
- origin: LeadOriginEnum;
29
+ origin: ELeadOrigin;
30
30
  /**Status atual. */
31
31
  partnerId: string;
32
32
  /**Outros endereços de e-mail, se disponíveis. */
@@ -32,7 +32,7 @@ var LeadEntity = /** @class */ (function () {
32
32
  /**Número do documento conforme o tipo. */
33
33
  this.name = '';
34
34
  this.note = '';
35
- this.origin = enums_1.LeadOriginEnum.OTHERS;
35
+ this.origin = enums_1.ELeadOrigin.OTHERS;
36
36
  /**Status atual. */
37
37
  this.partnerId = '';
38
38
  /**Outros endereços de e-mail, se disponíveis. */
@@ -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.68",
3
+ "version": "1.1.74",
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.68",
3
+ "version": "1.1.74",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",