cecon-interfaces 1.1.12 → 1.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/dist/app/entities/rabbit.entity.d.ts +1 -1
  2. package/dist/app/entities/rabbit.entity.js +1 -1
  3. package/dist/app/interfaces/i-natigo.d.ts +1 -1
  4. package/dist/app/interfaces/i-rabbit.d.ts +3 -3
  5. package/dist/campaign/entities/campaign.entity.d.ts +15 -0
  6. package/dist/campaign/entities/campaign.entity.js +30 -0
  7. package/dist/campaign/entities/index.d.ts +1 -0
  8. package/dist/campaign/entities/index.js +5 -0
  9. package/dist/campaign/enums/e-campaign-status.enum.d.ts +7 -0
  10. package/dist/campaign/enums/e-campaign-status.enum.js +11 -0
  11. package/dist/campaign/enums/index.d.ts +1 -0
  12. package/dist/campaign/enums/index.js +5 -0
  13. package/dist/campaign/index.d.ts +3 -0
  14. package/dist/campaign/index.js +19 -0
  15. package/dist/campaign/interfaces/i-campaign.d.ts +13 -0
  16. package/dist/campaign/interfaces/index.d.ts +1 -0
  17. package/dist/campaign/interfaces/index.js +2 -0
  18. package/dist/esm2022/app/entities/rabbit.entity.mjs +2 -2
  19. package/dist/esm2022/app/interfaces/i-natigo.mjs +1 -1
  20. package/dist/esm2022/app/interfaces/i-rabbit.mjs +1 -1
  21. package/dist/esm2022/campaign/entities/campaign.entity.mjs +26 -0
  22. package/dist/esm2022/campaign/entities/index.mjs +2 -0
  23. package/dist/esm2022/campaign/enums/e-campaign-status.enum.mjs +9 -0
  24. package/dist/esm2022/campaign/enums/index.mjs +2 -0
  25. package/dist/esm2022/campaign/index.mjs +4 -0
  26. package/dist/esm2022/campaign/interfaces/i-campaign.mjs +2 -0
  27. package/dist/esm2022/campaign/interfaces/index.mjs +2 -0
  28. package/dist/esm2022/general/entities/index.mjs +2 -1
  29. package/dist/esm2022/general/entities/sponsorship-value.entity.mjs +17 -0
  30. package/dist/esm2022/general/enums/e-discount-type.enum.mjs +6 -0
  31. package/dist/esm2022/general/enums/index.mjs +3 -1
  32. package/dist/esm2022/general/enums/sponsorship-values.enum.mjs +8 -0
  33. package/dist/esm2022/general/interfaces/i-sponsorship-value.mjs +2 -0
  34. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  35. package/dist/esm2022/index.mjs +3 -1
  36. package/dist/esm2022/order/entities/benefits.entity.mjs +1 -1
  37. package/dist/esm2022/order/entities/index.mjs +1 -2
  38. package/dist/esm2022/order/interfaces/i-benefits.mjs +1 -1
  39. package/dist/esm2022/order/interfaces/index.mjs +1 -1
  40. package/dist/esm2022/voucher/entities/index.mjs +2 -0
  41. package/dist/esm2022/voucher/entities/voucher.entity.mjs +52 -0
  42. package/dist/esm2022/voucher/enums/e-voucher-status.enum.mjs +9 -0
  43. package/dist/esm2022/voucher/enums/index.mjs +2 -0
  44. package/dist/esm2022/voucher/index.mjs +4 -0
  45. package/dist/esm2022/voucher/interfaces/i-voucher.mjs +2 -0
  46. package/dist/esm2022/voucher/interfaces/index.mjs +2 -0
  47. package/dist/fesm2022/cecon-interfaces.mjs +126 -19
  48. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  49. package/dist/general/entities/index.d.ts +1 -0
  50. package/dist/general/entities/index.js +3 -1
  51. package/dist/general/entities/sponsorship-value.entity.d.ts +5 -0
  52. package/dist/{order/entities/benefits-sponsor-ship.entity.js → general/entities/sponsorship-value.entity.js} +5 -5
  53. package/dist/general/enums/e-discount-type.enum.d.ts +4 -0
  54. package/dist/general/enums/e-discount-type.enum.js +8 -0
  55. package/dist/general/enums/index.d.ts +2 -0
  56. package/dist/general/enums/index.js +5 -1
  57. package/dist/general/enums/sponsorship-values.enum.d.ts +6 -0
  58. package/dist/general/enums/sponsorship-values.enum.js +10 -0
  59. package/dist/general/interfaces/i-sponsorship-value.d.ts +5 -0
  60. package/dist/general/interfaces/i-sponsorship-value.js +2 -0
  61. package/dist/general/interfaces/index.d.ts +1 -0
  62. package/dist/index.d.ts +2 -0
  63. package/dist/index.js +2 -0
  64. package/dist/order/entities/benefits.entity.d.ts +2 -2
  65. package/dist/order/entities/index.d.ts +0 -1
  66. package/dist/order/entities/index.js +1 -3
  67. package/dist/order/interfaces/i-benefits.d.ts +2 -2
  68. package/dist/order/interfaces/index.d.ts +0 -1
  69. package/dist/package.json +1 -1
  70. package/dist/voucher/entities/index.d.ts +1 -0
  71. package/dist/voucher/entities/index.js +5 -0
  72. package/dist/voucher/entities/voucher.entity.d.ts +24 -0
  73. package/dist/voucher/entities/voucher.entity.js +56 -0
  74. package/dist/voucher/enums/e-voucher-status.enum.d.ts +7 -0
  75. package/dist/voucher/enums/e-voucher-status.enum.js +11 -0
  76. package/dist/voucher/enums/index.d.ts +1 -0
  77. package/dist/voucher/enums/index.js +5 -0
  78. package/dist/voucher/index.d.ts +3 -0
  79. package/dist/voucher/index.js +19 -0
  80. package/dist/voucher/interfaces/i-voucher.d.ts +22 -0
  81. package/dist/voucher/interfaces/i-voucher.js +2 -0
  82. package/dist/voucher/interfaces/index.d.ts +1 -0
  83. package/dist/voucher/interfaces/index.js +2 -0
  84. package/package.json +1 -1
  85. package/dist/esm2022/order/entities/benefits-sponsor-ship.entity.mjs +0 -17
  86. package/dist/esm2022/order/interfaces/i-benefits-sponsor-ship.mjs +0 -2
  87. package/dist/order/entities/benefits-sponsor-ship.entity.d.ts +0 -5
  88. package/dist/order/interfaces/i-benefits-sponsor-ship.d.ts +0 -4
  89. /package/dist/{order/interfaces/i-benefits-sponsor-ship.js → campaign/interfaces/i-campaign.js} +0 -0
@@ -385,6 +385,23 @@ class RatingEntity {
385
385
  }
386
386
  }
387
387
 
388
+ class SponsorshipValueEntity {
389
+ // #region Properties (2)
390
+ name = '';
391
+ value = 0;
392
+ // #endregion Properties (2)
393
+ // #region Constructors (1)
394
+ constructor(data) {
395
+ if (data) {
396
+ for (let key in data) {
397
+ if (data.hasOwnProperty(key) && key in this) {
398
+ this[key] = data[key];
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+
388
405
  var BooleanStringEnum;
389
406
  (function (BooleanStringEnum) {
390
407
  BooleanStringEnum["FALSE"] = "false";
@@ -397,6 +414,12 @@ var DocTypeEnum;
397
414
  DocTypeEnum["CNPJ"] = "CNPJ";
398
415
  })(DocTypeEnum || (DocTypeEnum = {}));
399
416
 
417
+ var EDiscountType;
418
+ (function (EDiscountType) {
419
+ EDiscountType["PERCENT"] = "PERCENT";
420
+ EDiscountType["FIXED_AMOUNT"] = "FIXED";
421
+ })(EDiscountType || (EDiscountType = {}));
422
+
400
423
  var EFiscalDocModelCode;
401
424
  (function (EFiscalDocModelCode) {
402
425
  EFiscalDocModelCode["NFE"] = "55";
@@ -469,6 +492,14 @@ var PaymentProviderEnum;
469
492
  PaymentProviderEnum["OTHER"] = "OTHER";
470
493
  })(PaymentProviderEnum || (PaymentProviderEnum = {}));
471
494
 
495
+ var ESponsorshipValues;
496
+ (function (ESponsorshipValues) {
497
+ ESponsorshipValues["MERCHANT"] = "MERCHANT";
498
+ ESponsorshipValues["PARTNER"] = "PARTNER";
499
+ ESponsorshipValues["PROVIDER"] = "PROVIDER";
500
+ ESponsorshipValues["UNKNOWN"] = "UNKNOWN";
501
+ })(ESponsorshipValues || (ESponsorshipValues = {}));
502
+
472
503
  // index.ts
473
504
 
474
505
  var EAppType;
@@ -634,7 +665,7 @@ class RabbitEntity {
634
665
  regime = 1;
635
666
  serialNumber = '';
636
667
  signature = '';
637
- syncAt = new Date();
668
+ syncAt = null;
638
669
  type = EAppMode.RABBIT;
639
670
  updatedAt = new Date();
640
671
  version = '1.0.0';
@@ -651,6 +682,40 @@ class RabbitEntity {
651
682
  }
652
683
  }
653
684
 
685
+ var ECampaignStatus;
686
+ (function (ECampaignStatus) {
687
+ ECampaignStatus["ACTIVE"] = "ACTIVE";
688
+ ECampaignStatus["EXPIRED"] = "EXPIRED";
689
+ ECampaignStatus["PLACED"] = "PLACED";
690
+ ECampaignStatus["PAUSED"] = "PAUSED";
691
+ ECampaignStatus["CONCLUDED"] = "CONCLUDED";
692
+ })(ECampaignStatus || (ECampaignStatus = {}));
693
+
694
+ class CampaignEntity {
695
+ // #region Properties (10)
696
+ createdAt = new Date();
697
+ createdBy = '';
698
+ description = '';
699
+ endDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
700
+ id = '';
701
+ name = '';
702
+ partnerId = [];
703
+ startDate = new Date();
704
+ status = ECampaignStatus.PLACED;
705
+ updatedAt = new Date();
706
+ // #endregion Properties (10)
707
+ // #region Constructors (1)
708
+ constructor(data) {
709
+ if (data) {
710
+ for (let key in data) {
711
+ if (data.hasOwnProperty(key) && key in this) {
712
+ this[key] = data[key];
713
+ }
714
+ }
715
+ }
716
+ }
717
+ }
718
+
654
719
  class CompanyEntity {
655
720
  // #region Properties (26)
656
721
  active = false;
@@ -1798,23 +1863,6 @@ class OrderAdditionalFeeEntity {
1798
1863
  }
1799
1864
  }
1800
1865
 
1801
- class SponsorshipValuesEntity {
1802
- // #region Properties (2)
1803
- name = '';
1804
- value = 0;
1805
- // #endregion Properties (2)
1806
- // #region Constructors (1)
1807
- constructor(data) {
1808
- if (data) {
1809
- for (let key in data) {
1810
- if (data.hasOwnProperty(key) && key in this) {
1811
- this[key] = data[key];
1812
- }
1813
- }
1814
- }
1815
- }
1816
- }
1817
-
1818
1866
  class OrderBenefitsEntity {
1819
1867
  // #region Properties (6)
1820
1868
  description = '';
@@ -2625,9 +2673,68 @@ class TokenEntity {
2625
2673
  }
2626
2674
  }
2627
2675
 
2676
+ var EVoucherStatus;
2677
+ (function (EVoucherStatus) {
2678
+ EVoucherStatus["ACTIVE"] = "ACTIVE";
2679
+ EVoucherStatus["REDEEMED"] = "REDEEMED";
2680
+ EVoucherStatus["EXPIRED"] = "EXPIRED";
2681
+ EVoucherStatus["PLACED"] = "PLACED";
2682
+ EVoucherStatus["PAUSED"] = "PAUSED";
2683
+ })(EVoucherStatus || (EVoucherStatus = {}));
2684
+
2685
+ class VoucherEntity {
2686
+ // #region Properties (18)
2687
+ // se permite ou não a alteração do nome do cupom pelo parceiro
2688
+ allowsKeyChange = false;
2689
+ // valor do desconto (soma do valor de todos os patrocínios - sponsorship)
2690
+ amount = 0;
2691
+ // ID da campanha associada (opcional para uso futuro)
2692
+ campaignId = null;
2693
+ // ID da empresa associada ao cupom (opcional)
2694
+ companyId = null;
2695
+ // ID do recipiente ou contexto onde o cupom é válido (opcional)
2696
+ containerId = null;
2697
+ // data de criação do cupom
2698
+ createdAt = new Date();
2699
+ // descrição opcional do cupom
2700
+ description = null;
2701
+ // tipo de desconto: porcentagem ou valor fixo
2702
+ discountType = EDiscountType.FIXED_AMOUNT;
2703
+ // data de validade do cupom
2704
+ expirationDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
2705
+ id = '';
2706
+ // se a chave do cupom é pública ou privada
2707
+ isPublic = true;
2708
+ // chave única para o cupom
2709
+ key = '';
2710
+ // máximo de utilizações permitidas (-1 para ilimitado)
2711
+ maxUses = -1;
2712
+ // ID do parceiro associado ao cupom (opcional)
2713
+ partnerId = null;
2714
+ // informação de patrocínio (opcional)
2715
+ sponsorship = [];
2716
+ // status do cupom
2717
+ status = EVoucherStatus.PLACED;
2718
+ // data da última atualização do cupom
2719
+ updatedAt = new Date();
2720
+ // contador de quantas vezes o cupom foi usado
2721
+ usedCount = 0;
2722
+ // #endregion Properties (18)
2723
+ // #region Constructors (1)
2724
+ constructor(data) {
2725
+ if (data) {
2726
+ for (let key in data) {
2727
+ if (data.hasOwnProperty(key) && key in this) {
2728
+ this[key] = data[key];
2729
+ }
2730
+ }
2731
+ }
2732
+ }
2733
+ }
2734
+
2628
2735
  /**
2629
2736
  * Generated bundle index. Do not edit.
2630
2737
  */
2631
2738
 
2632
- export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, ECompanyKeys, ECompanyMessageType, EFiscalDocModelCode, EInstallationStatus, EPlanFeatureType, EPlanIdentifier, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, OsEnum, PartnerEntity, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValuesEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, SubscriptionStatusEnum, TokenEntity };
2739
+ export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, ECampaignStatus, ECompanyKeys, ECompanyMessageType, EDiscountType, EFiscalDocModelCode, EInstallationStatus, EPlanFeatureType, EPlanIdentifier, ESponsorshipValues, EVoucherStatus, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, OsEnum, PartnerEntity, PaymentChannelEnum, PaymentMethodEntity, PaymentModeEnum, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, SubscriptionStatusEnum, TokenEntity, VoucherEntity };
2633
2740
  //# sourceMappingURL=cecon-interfaces.mjs.map