cecon-interfaces 1.1.37 → 1.1.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/dist/esm2022/general/entities/payment-method-option.entity.mjs +3 -3
  2. package/dist/esm2022/general/entities/payment-method.entity.mjs +3 -3
  3. package/dist/esm2022/general/enums/index.mjs +2 -2
  4. package/dist/esm2022/general/enums/payment-type.enum.mjs +24 -24
  5. package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
  6. package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
  7. package/dist/esm2022/invoice/entities/invoice.entity.mjs +3 -3
  8. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
  9. package/dist/esm2022/order/entities/payment-method.entity.mjs +3 -3
  10. package/dist/esm2022/order/interfaces/i-payment-method.mjs +1 -1
  11. package/dist/esm2022/resume/entities/resume-collection.entity.mjs +4 -6
  12. package/dist/esm2022/resume/interfaces/i-resume-collection-status.mjs +2 -0
  13. package/dist/esm2022/resume/interfaces/i-resume-collection.mjs +1 -1
  14. package/dist/esm2022/subscription/entities/subscription.entity.mjs +5 -4
  15. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  16. package/dist/fesm2022/cecon-interfaces.mjs +34 -35
  17. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  18. package/dist/general/entities/payment-method-option.entity.d.ts +2 -2
  19. package/dist/general/entities/payment-method-option.entity.js +1 -1
  20. package/dist/general/entities/payment-method.entity.d.ts +2 -2
  21. package/dist/general/entities/payment-method.entity.js +1 -1
  22. package/dist/general/enums/index.d.ts +1 -1
  23. package/dist/general/enums/index.js +2 -2
  24. package/dist/general/enums/payment-type.enum.d.ts +1 -1
  25. package/dist/general/enums/payment-type.enum.js +24 -24
  26. package/dist/general/interfaces/i-payment-method-option.d.ts +2 -2
  27. package/dist/general/interfaces/i-payment-method.d.ts +2 -2
  28. package/dist/invoice/entities/invoice.entity.d.ts +2 -2
  29. package/dist/invoice/entities/invoice.entity.js +1 -1
  30. package/dist/invoice/interfaces/i-invoice.d.ts +2 -2
  31. package/dist/order/entities/payment-method.entity.d.ts +2 -2
  32. package/dist/order/entities/payment-method.entity.js +1 -1
  33. package/dist/order/interfaces/i-payment-method.d.ts +2 -2
  34. package/dist/package.json +1 -1
  35. package/dist/resume/entities/resume-collection.entity.d.ts +2 -3
  36. package/dist/resume/entities/resume-collection.entity.js +3 -5
  37. package/dist/resume/interfaces/i-resume-collection-status.d.ts +4 -0
  38. package/dist/resume/interfaces/i-resume-collection-status.js +2 -0
  39. package/dist/resume/interfaces/i-resume-collection.d.ts +2 -3
  40. package/dist/subscription/entities/subscription.entity.d.ts +2 -1
  41. package/dist/subscription/entities/subscription.entity.js +3 -2
  42. package/dist/subscription/interfaces/i-subscription.d.ts +2 -1
  43. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { PaymentChannelEnum } from '../enums/payment-channel.enum';
2
2
  import { PaymentModeEnum } from '../enums/payment-mode.enum';
3
- import { PaymentTypeEnum } from '../enums/payment-type.enum';
3
+ import { EPaymentType } from '../enums/payment-type.enum';
4
4
  import { IPaymentMethodOption } from '../interfaces';
5
5
  export declare class PaymentMethodOptionEntity implements IPaymentMethodOption {
6
6
  active: boolean;
@@ -14,7 +14,7 @@ export declare class PaymentMethodOptionEntity implements IPaymentMethodOption {
14
14
  mode: PaymentModeEnum;
15
15
  name: string;
16
16
  token: string;
17
- type: PaymentTypeEnum;
17
+ type: EPaymentType;
18
18
  updatedAt: Date;
19
19
  constructor(data?: Partial<PaymentMethodOptionEntity>);
20
20
  }
@@ -20,7 +20,7 @@ var PaymentMethodOptionEntity = /** @class */ (function () {
20
20
  this.mode = payment_mode_enum_1.PaymentModeEnum.MANUAL;
21
21
  this.name = '';
22
22
  this.token = '';
23
- this.type = payment_type_enum_1.PaymentTypeEnum.CREDIT_CARD;
23
+ this.type = payment_type_enum_1.EPaymentType.CREDIT_CARD;
24
24
  this.updatedAt = new Date();
25
25
  if (data) {
26
26
  for (var key in data) {
@@ -1,4 +1,4 @@
1
- import { PaymentTypeEnum } from '..';
1
+ import { EPaymentType } from '..';
2
2
  import { IPaymentMethod } from '../interfaces';
3
3
  import { PaymentCardEntity } from './payment-card.entity';
4
4
  import { PaymentCashEntity } from './payment-cash.entity';
@@ -10,7 +10,7 @@ export declare class PaymentMethodEntity implements IPaymentMethod {
10
10
  code: string;
11
11
  currency: 'BRL';
12
12
  id: string;
13
- method: PaymentTypeEnum;
13
+ method: EPaymentType;
14
14
  pix?: PaymentPixEntity | null;
15
15
  prepaid: boolean;
16
16
  type: 'ONLINE' | 'OFFLINE';
@@ -12,7 +12,7 @@ var PaymentMethodEntity = /** @class */ (function () {
12
12
  this.code = '';
13
13
  this.currency = 'BRL';
14
14
  this.id = '';
15
- this.method = __1.PaymentTypeEnum.CASH;
15
+ this.method = __1.EPaymentType.CASH;
16
16
  this.pix = null;
17
17
  this.prepaid = false;
18
18
  this.type = 'OFFLINE';
@@ -9,7 +9,7 @@ export { OsEnum } from './os.enum';
9
9
  export { PaymentChannelEnum } from './payment-channel.enum';
10
10
  export { PaymentModeEnum } from './payment-mode.enum';
11
11
  export { PaymentStatusEnum } from './payment-status.enum';
12
- export { PaymentTypeEnum } from './payment-type.enum';
12
+ export { EPaymentType } from './payment-type.enum';
13
13
  export { LegalEntiyEnum } from './person-type.enum';
14
14
  export { PlatfomrEnum } from './platform.enum';
15
15
  export { PaymentProviderEnum } from './providers.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ESponsorshipValues = exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.PaymentTypeEnum = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.EDiscountType = exports.DocTypeEnum = exports.BooleanStringEnum = exports.EBankSlipStatus = void 0;
3
+ exports.ESponsorshipValues = exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.LegalEntiyEnum = exports.EPaymentType = exports.PaymentStatusEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.OsEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.EFiscalDocModelCode = exports.EDiscountType = exports.DocTypeEnum = exports.BooleanStringEnum = exports.EBankSlipStatus = void 0;
4
4
  var bank_slip_status_enum_1 = require("./bank-slip-status.enum");
5
5
  Object.defineProperty(exports, "EBankSlipStatus", { enumerable: true, get: function () { return bank_slip_status_enum_1.EBankSlipStatus; } });
6
6
  var boolean_string_enum_1 = require("./boolean-string.enum");
@@ -24,7 +24,7 @@ Object.defineProperty(exports, "PaymentModeEnum", { enumerable: true, get: funct
24
24
  var payment_status_enum_1 = require("./payment-status.enum");
25
25
  Object.defineProperty(exports, "PaymentStatusEnum", { enumerable: true, get: function () { return payment_status_enum_1.PaymentStatusEnum; } });
26
26
  var payment_type_enum_1 = require("./payment-type.enum");
27
- Object.defineProperty(exports, "PaymentTypeEnum", { enumerable: true, get: function () { return payment_type_enum_1.PaymentTypeEnum; } });
27
+ Object.defineProperty(exports, "EPaymentType", { enumerable: true, get: function () { return payment_type_enum_1.EPaymentType; } });
28
28
  var person_type_enum_1 = require("./person-type.enum");
29
29
  Object.defineProperty(exports, "LegalEntiyEnum", { enumerable: true, get: function () { return person_type_enum_1.LegalEntiyEnum; } });
30
30
  var platform_enum_1 = require("./platform.enum");
@@ -1,4 +1,4 @@
1
- export declare enum PaymentTypeEnum {
1
+ export declare enum EPaymentType {
2
2
  CREDIT_CARD = "CREDIT_CARD",
3
3
  DEBIT_CARD = "DEBIT_CARD",
4
4
  CASH = "CASH",
@@ -1,26 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentTypeEnum = void 0;
4
- var PaymentTypeEnum;
5
- (function (PaymentTypeEnum) {
6
- PaymentTypeEnum["CREDIT_CARD"] = "CREDIT_CARD";
7
- PaymentTypeEnum["DEBIT_CARD"] = "DEBIT_CARD";
8
- PaymentTypeEnum["CASH"] = "CASH";
9
- PaymentTypeEnum["PIX"] = "PIX";
10
- PaymentTypeEnum["MOBILE_PAYMENT"] = "MOBILE_PAYMENT";
11
- PaymentTypeEnum["CHECK"] = "CHECK";
12
- PaymentTypeEnum["CRYPTOCURRENCY"] = "CRYPTOCURRENCY";
13
- PaymentTypeEnum["ELECTRONIC_BANKING"] = "ELECTRONIC_BANKING";
14
- PaymentTypeEnum["MONEY_ORDER"] = "MONEY_ORDER";
15
- PaymentTypeEnum["PREPAID_CARD"] = "PREPAID_CARD";
16
- PaymentTypeEnum["E_WALLET"] = "E_WALLET";
17
- PaymentTypeEnum["DIRECT_DEBIT"] = "DIRECT_DEBIT";
18
- PaymentTypeEnum["PAYPAL"] = "PAYPAL";
19
- PaymentTypeEnum["CHECKOUT_PRO"] = "CHECKOUT_PRO";
20
- PaymentTypeEnum["WIRE_TRANSFER"] = "WIRE_TRANSFER";
21
- PaymentTypeEnum["GIFT_CARD"] = "GIFT_CARD";
22
- PaymentTypeEnum["VOUCHER"] = "VOUCHER";
23
- PaymentTypeEnum["BILLING"] = "BILLING";
24
- PaymentTypeEnum["BANK_SLIP"] = "BANK_SLIP";
25
- PaymentTypeEnum["NONE"] = "NONE";
26
- })(PaymentTypeEnum || (exports.PaymentTypeEnum = PaymentTypeEnum = {}));
3
+ exports.EPaymentType = void 0;
4
+ var EPaymentType;
5
+ (function (EPaymentType) {
6
+ EPaymentType["CREDIT_CARD"] = "CREDIT_CARD";
7
+ EPaymentType["DEBIT_CARD"] = "DEBIT_CARD";
8
+ EPaymentType["CASH"] = "CASH";
9
+ EPaymentType["PIX"] = "PIX";
10
+ EPaymentType["MOBILE_PAYMENT"] = "MOBILE_PAYMENT";
11
+ EPaymentType["CHECK"] = "CHECK";
12
+ EPaymentType["CRYPTOCURRENCY"] = "CRYPTOCURRENCY";
13
+ EPaymentType["ELECTRONIC_BANKING"] = "ELECTRONIC_BANKING";
14
+ EPaymentType["MONEY_ORDER"] = "MONEY_ORDER";
15
+ EPaymentType["PREPAID_CARD"] = "PREPAID_CARD";
16
+ EPaymentType["E_WALLET"] = "E_WALLET";
17
+ EPaymentType["DIRECT_DEBIT"] = "DIRECT_DEBIT";
18
+ EPaymentType["PAYPAL"] = "PAYPAL";
19
+ EPaymentType["CHECKOUT_PRO"] = "CHECKOUT_PRO";
20
+ EPaymentType["WIRE_TRANSFER"] = "WIRE_TRANSFER";
21
+ EPaymentType["GIFT_CARD"] = "GIFT_CARD";
22
+ EPaymentType["VOUCHER"] = "VOUCHER";
23
+ EPaymentType["BILLING"] = "BILLING";
24
+ EPaymentType["BANK_SLIP"] = "BANK_SLIP";
25
+ EPaymentType["NONE"] = "NONE";
26
+ })(EPaymentType || (exports.EPaymentType = EPaymentType = {}));
@@ -1,6 +1,6 @@
1
1
  import { PaymentChannelEnum } from '../enums/payment-channel.enum';
2
2
  import { PaymentModeEnum } from '../enums/payment-mode.enum';
3
- import { PaymentTypeEnum } from '../enums/payment-type.enum';
3
+ import { EPaymentType } from '../enums/payment-type.enum';
4
4
  export interface IPaymentMethodOption {
5
5
  active: boolean;
6
6
  channel: PaymentChannelEnum;
@@ -13,6 +13,6 @@ export interface IPaymentMethodOption {
13
13
  mode: PaymentModeEnum;
14
14
  name: string;
15
15
  token: string;
16
- type: PaymentTypeEnum;
16
+ type: EPaymentType;
17
17
  updatedAt: Date;
18
18
  }
@@ -1,4 +1,4 @@
1
- import { PaymentTypeEnum } from '..';
1
+ import { EPaymentType } from '..';
2
2
  import { IPaymentCard } from './i-payment-card';
3
3
  import { IPaymentCash } from './i-payment-cash';
4
4
  import { IPaymentPix } from './i-payment-pix';
@@ -9,7 +9,7 @@ export interface IPaymentMethod {
9
9
  code: string;
10
10
  currency: 'BRL';
11
11
  id: string;
12
- method: PaymentTypeEnum;
12
+ method: EPaymentType;
13
13
  pix?: IPaymentPix | null;
14
14
  prepaid: boolean;
15
15
  type: 'ONLINE' | 'OFFLINE';
@@ -1,4 +1,4 @@
1
- import { PaymentProviderEntity, PaymentTypeEnum } from '../../general';
1
+ import { EPaymentType, PaymentProviderEntity } from '../../general';
2
2
  import { EInvoiceStatus } from '../enums';
3
3
  import { IInvoice } from '../interfaces';
4
4
  import { InvoiceBankSlipEntity } from './invoice-bank-slip.entity';
@@ -35,7 +35,7 @@ export declare class InvoiceEntity implements IInvoice {
35
35
  partnerId: string;
36
36
  password: string | null;
37
37
  payer: InvoicePayerEntity;
38
- paymentMethod: PaymentTypeEnum;
38
+ paymentMethod: EPaymentType;
39
39
  paymentProvider: PaymentProviderEntity | null;
40
40
  phoneNumberNotification: string | null;
41
41
  pix: InvoicePixEntity | null;
@@ -36,7 +36,7 @@ var InvoiceEntity = /** @class */ (function () {
36
36
  this.partnerId = '';
37
37
  this.password = null;
38
38
  this.payer = new invoice_payer_entity_1.InvoicePayerEntity();
39
- this.paymentMethod = general_1.PaymentTypeEnum.NONE;
39
+ this.paymentMethod = general_1.EPaymentType.NONE;
40
40
  this.paymentProvider = null;
41
41
  this.phoneNumberNotification = null;
42
42
  this.pix = null;
@@ -1,4 +1,4 @@
1
- import { IPaymentProvider, PaymentTypeEnum } from '../../general';
1
+ import { EPaymentType, IPaymentProvider } from '../../general';
2
2
  import { EInvoiceStatus } from '../enums';
3
3
  import { IInvoiceBankSlip } from './i-invoice-bank-slip';
4
4
  import { IInvoiceCreditCard } from './i-invoice-credit-card';
@@ -34,7 +34,7 @@ export interface IInvoice {
34
34
  partnerId: string | null;
35
35
  password: string | null;
36
36
  payer: IInvoicePayer;
37
- paymentMethod: PaymentTypeEnum;
37
+ paymentMethod: EPaymentType;
38
38
  paymentProvider: IPaymentProvider | null;
39
39
  phoneNumberNotification: string | null;
40
40
  pix: IInvoicePix | null;
@@ -1,4 +1,4 @@
1
- import { PaymentTypeEnum } from '../../general';
1
+ import { EPaymentType } from '../../general';
2
2
  import { IOrderPaymentMethod } from '../interfaces';
3
3
  import { OrderPaymentCardEntity } from './payment-card.entity';
4
4
  import { OrderPaymentCashEntity } from './payment-cash.entity';
@@ -10,7 +10,7 @@ export declare class OrderPaymentMethodEntity implements IOrderPaymentMethod {
10
10
  code: string;
11
11
  currency: 'BRL';
12
12
  id: string;
13
- method: PaymentTypeEnum;
13
+ method: EPaymentType;
14
14
  pix?: OrderPaymentPixEntity | null;
15
15
  prepaid: boolean;
16
16
  type: 'ONLINE' | 'OFFLINE';
@@ -12,7 +12,7 @@ var OrderPaymentMethodEntity = /** @class */ (function () {
12
12
  this.code = '';
13
13
  this.currency = 'BRL';
14
14
  this.id = '';
15
- this.method = general_1.PaymentTypeEnum.CASH;
15
+ this.method = general_1.EPaymentType.CASH;
16
16
  this.pix = null;
17
17
  this.prepaid = false;
18
18
  this.type = 'OFFLINE';
@@ -1,4 +1,4 @@
1
- import { PaymentTypeEnum } from '../../general';
1
+ import { EPaymentType } from '../../general';
2
2
  import { IOrderPaymentCard } from './i-payment-card';
3
3
  import { IOrderPaymentCash } from './i-payment-cash';
4
4
  import { IOrderPaymentPix } from './i-payment-pix';
@@ -9,7 +9,7 @@ export interface IOrderPaymentMethod {
9
9
  code: string;
10
10
  currency: 'BRL';
11
11
  id: string;
12
- method: PaymentTypeEnum;
12
+ method: EPaymentType;
13
13
  pix?: IOrderPaymentPix | null;
14
14
  prepaid: boolean;
15
15
  type: 'ONLINE' | 'OFFLINE';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +1,7 @@
1
1
  import { IResumeCollection } from '../interfaces';
2
+ import { IResumeCollectionStatus } from '../interfaces/i-resume-collection-status';
2
3
  export declare class ResumeCollectionEntity implements IResumeCollection {
3
- actived: number;
4
- deactived: number;
5
4
  collectionName: string;
6
- total: number;
5
+ status: IResumeCollectionStatus[];
7
6
  constructor(data?: Partial<ResumeCollectionEntity>);
8
7
  }
@@ -2,14 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResumeCollectionEntity = void 0;
4
4
  var ResumeCollectionEntity = /** @class */ (function () {
5
- // #endregion Properties (4)
5
+ // #endregion Properties (2)
6
6
  // #region Constructors (1)
7
7
  function ResumeCollectionEntity(data) {
8
- // #region Properties (4)
9
- this.actived = 0;
10
- this.deactived = 0;
8
+ // #region Properties (2)
11
9
  this.collectionName = '';
12
- this.total = 0;
10
+ this.status = [];
13
11
  if (data) {
14
12
  for (var key in data) {
15
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -0,0 +1,4 @@
1
+ export interface IResumeCollectionStatus {
2
+ status: string;
3
+ count: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,5 @@
1
+ import { IResumeCollectionStatus } from './i-resume-collection-status';
1
2
  export interface IResumeCollection {
2
3
  collectionName: string;
3
- total: number;
4
- actived: number;
5
- deactived: number;
4
+ status: IResumeCollectionStatus[];
6
5
  }
@@ -1,5 +1,5 @@
1
1
  import { FeatureEntity } from '../../feature';
2
- import { CustomVariableEntity, IntervalTypeEnum, PaymentEntity } from '../../general';
2
+ import { CustomVariableEntity, EPaymentType, IntervalTypeEnum, PaymentEntity } from '../../general';
3
3
  import { InvoiceEntity } from '../../invoice';
4
4
  import { ESubscriptionStatus } from '../enums';
5
5
  import { ISubscription } from '../interfaces/i-subscription';
@@ -26,6 +26,7 @@ export declare class SubscriptionEntity implements ISubscription {
26
26
  notes: string;
27
27
  partnerId: string | null;
28
28
  payment: PaymentEntity;
29
+ paymentType: EPaymentType;
29
30
  phoneNumberNotification: string;
30
31
  planId: string;
31
32
  planName: string;
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var subscription_company_entity_1 = require("./subscription-company.entity");
7
7
  var SubscriptionEntity = /** @class */ (function () {
8
- // #endregion Properties (28)
8
+ // #endregion Properties (29)
9
9
  // #region Constructors (1)
10
10
  function SubscriptionEntity(data) {
11
- // #region Properties (28)
11
+ // #region Properties (29)
12
12
  this.amount = 0;
13
13
  this.appId = '';
14
14
  this.appName = '';
@@ -28,6 +28,7 @@ var SubscriptionEntity = /** @class */ (function () {
28
28
  this.notes = '';
29
29
  this.partnerId = '';
30
30
  this.payment = new general_1.PaymentEntity();
31
+ this.paymentType = general_1.EPaymentType.NONE;
31
32
  this.phoneNumberNotification = '';
32
33
  this.planId = '';
33
34
  this.planName = '';
@@ -1,5 +1,5 @@
1
1
  import { IFeature } from '../../feature';
2
- import { ICustomVariable, IntervalTypeEnum } from '../../general';
2
+ import { EPaymentType, ICustomVariable, IntervalTypeEnum } from '../../general';
3
3
  import { IPayment } from '../../general/interfaces';
4
4
  import { IInvoice } from '../../invoice';
5
5
  import { ESubscriptionStatus } from '../enums';
@@ -26,6 +26,7 @@ export interface ISubscription {
26
26
  notes: string;
27
27
  partnerId: string | null;
28
28
  payment: IPayment;
29
+ paymentType: EPaymentType;
29
30
  planId: string;
30
31
  planName: string;
31
32
  phoneNumberNotification: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",