cecon-interfaces 1.1.13 → 1.1.15

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/interfaces/i-natigo.d.ts +1 -1
  2. package/dist/campaign/entities/campaign.entity.d.ts +15 -0
  3. package/dist/campaign/entities/campaign.entity.js +30 -0
  4. package/dist/campaign/entities/index.d.ts +1 -0
  5. package/dist/campaign/entities/index.js +5 -0
  6. package/dist/campaign/enums/e-campaign-status.enum.d.ts +7 -0
  7. package/dist/campaign/enums/e-campaign-status.enum.js +11 -0
  8. package/dist/campaign/enums/index.d.ts +1 -0
  9. package/dist/campaign/enums/index.js +5 -0
  10. package/dist/campaign/index.d.ts +3 -0
  11. package/dist/campaign/index.js +19 -0
  12. package/dist/campaign/interfaces/i-campaign.d.ts +13 -0
  13. package/dist/campaign/interfaces/index.d.ts +1 -0
  14. package/dist/campaign/interfaces/index.js +2 -0
  15. package/dist/esm2022/app/interfaces/i-natigo.mjs +1 -1
  16. package/dist/esm2022/campaign/entities/campaign.entity.mjs +26 -0
  17. package/dist/esm2022/campaign/entities/index.mjs +2 -0
  18. package/dist/esm2022/campaign/enums/e-campaign-status.enum.mjs +9 -0
  19. package/dist/esm2022/campaign/enums/index.mjs +2 -0
  20. package/dist/esm2022/campaign/index.mjs +4 -0
  21. package/dist/esm2022/campaign/interfaces/i-campaign.mjs +2 -0
  22. package/dist/esm2022/campaign/interfaces/index.mjs +2 -0
  23. package/dist/esm2022/general/entities/index.mjs +2 -1
  24. package/dist/esm2022/general/entities/sponsorship-value.entity.mjs +17 -0
  25. package/dist/esm2022/general/enums/e-discount-type.enum.mjs +6 -0
  26. package/dist/esm2022/general/enums/index.mjs +3 -1
  27. package/dist/esm2022/general/enums/sponsorship-values.enum.mjs +8 -0
  28. package/dist/esm2022/general/interfaces/i-sponsorship-value.mjs +2 -0
  29. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  30. package/dist/esm2022/index.mjs +3 -1
  31. package/dist/esm2022/order/entities/benefits.entity.mjs +1 -1
  32. package/dist/esm2022/order/entities/index.mjs +1 -2
  33. package/dist/esm2022/order/interfaces/i-benefits.mjs +1 -1
  34. package/dist/esm2022/order/interfaces/index.mjs +1 -1
  35. package/dist/esm2022/subscription/entities/subscription.entity.mjs +2 -1
  36. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  37. package/dist/esm2022/voucher/entities/index.mjs +2 -0
  38. package/dist/esm2022/voucher/entities/voucher.entity.mjs +52 -0
  39. package/dist/esm2022/voucher/enums/e-voucher-status.enum.mjs +9 -0
  40. package/dist/esm2022/voucher/enums/index.mjs +2 -0
  41. package/dist/esm2022/voucher/index.mjs +4 -0
  42. package/dist/esm2022/voucher/interfaces/i-voucher.mjs +2 -0
  43. package/dist/esm2022/voucher/interfaces/index.mjs +2 -0
  44. package/dist/fesm2022/cecon-interfaces.mjs +126 -18
  45. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  46. package/dist/general/entities/index.d.ts +1 -0
  47. package/dist/general/entities/index.js +3 -1
  48. package/dist/general/entities/sponsorship-value.entity.d.ts +5 -0
  49. package/dist/{order/entities/benefits-sponsor-ship.entity.js → general/entities/sponsorship-value.entity.js} +5 -5
  50. package/dist/general/enums/e-discount-type.enum.d.ts +4 -0
  51. package/dist/general/enums/e-discount-type.enum.js +8 -0
  52. package/dist/general/enums/index.d.ts +2 -0
  53. package/dist/general/enums/index.js +5 -1
  54. package/dist/general/enums/sponsorship-values.enum.d.ts +6 -0
  55. package/dist/general/enums/sponsorship-values.enum.js +10 -0
  56. package/dist/general/interfaces/i-sponsorship-value.d.ts +5 -0
  57. package/dist/general/interfaces/i-sponsorship-value.js +2 -0
  58. package/dist/general/interfaces/index.d.ts +1 -0
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.js +2 -0
  61. package/dist/order/entities/benefits.entity.d.ts +2 -2
  62. package/dist/order/entities/index.d.ts +0 -1
  63. package/dist/order/entities/index.js +1 -3
  64. package/dist/order/interfaces/i-benefits.d.ts +2 -2
  65. package/dist/order/interfaces/index.d.ts +0 -1
  66. package/dist/package.json +1 -1
  67. package/dist/subscription/entities/subscription.entity.d.ts +1 -0
  68. package/dist/subscription/entities/subscription.entity.js +1 -0
  69. package/dist/subscription/interfaces/i-subscription.d.ts +1 -0
  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;
@@ -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 = '';
@@ -2564,6 +2612,7 @@ var SubscriptionStatusEnum;
2564
2612
  class SubscriptionEntity {
2565
2613
  // #region Properties (25)
2566
2614
  cancellationReason = '';
2615
+ appId = '';
2567
2616
  company = new SubscriptionCompanyEntity();
2568
2617
  createdAt = new Date();
2569
2618
  customVariables = [];
@@ -2625,9 +2674,68 @@ class TokenEntity {
2625
2674
  }
2626
2675
  }
2627
2676
 
2677
+ var EVoucherStatus;
2678
+ (function (EVoucherStatus) {
2679
+ EVoucherStatus["ACTIVE"] = "ACTIVE";
2680
+ EVoucherStatus["REDEEMED"] = "REDEEMED";
2681
+ EVoucherStatus["EXPIRED"] = "EXPIRED";
2682
+ EVoucherStatus["PLACED"] = "PLACED";
2683
+ EVoucherStatus["PAUSED"] = "PAUSED";
2684
+ })(EVoucherStatus || (EVoucherStatus = {}));
2685
+
2686
+ class VoucherEntity {
2687
+ // #region Properties (18)
2688
+ // se permite ou não a alteração do nome do cupom pelo parceiro
2689
+ allowsKeyChange = false;
2690
+ // valor do desconto (soma do valor de todos os patrocínios - sponsorship)
2691
+ amount = 0;
2692
+ // ID da campanha associada (opcional para uso futuro)
2693
+ campaignId = null;
2694
+ // ID da empresa associada ao cupom (opcional)
2695
+ companyId = null;
2696
+ // ID do recipiente ou contexto onde o cupom é válido (opcional)
2697
+ containerId = null;
2698
+ // data de criação do cupom
2699
+ createdAt = new Date();
2700
+ // descrição opcional do cupom
2701
+ description = null;
2702
+ // tipo de desconto: porcentagem ou valor fixo
2703
+ discountType = EDiscountType.FIXED_AMOUNT;
2704
+ // data de validade do cupom
2705
+ expirationDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
2706
+ id = '';
2707
+ // se a chave do cupom é pública ou privada
2708
+ isPublic = true;
2709
+ // chave única para o cupom
2710
+ key = '';
2711
+ // máximo de utilizações permitidas (-1 para ilimitado)
2712
+ maxUses = -1;
2713
+ // ID do parceiro associado ao cupom (opcional)
2714
+ partnerId = null;
2715
+ // informação de patrocínio (opcional)
2716
+ sponsorship = [];
2717
+ // status do cupom
2718
+ status = EVoucherStatus.PLACED;
2719
+ // data da última atualização do cupom
2720
+ updatedAt = new Date();
2721
+ // contador de quantas vezes o cupom foi usado
2722
+ usedCount = 0;
2723
+ // #endregion Properties (18)
2724
+ // #region Constructors (1)
2725
+ constructor(data) {
2726
+ if (data) {
2727
+ for (let key in data) {
2728
+ if (data.hasOwnProperty(key) && key in this) {
2729
+ this[key] = data[key];
2730
+ }
2731
+ }
2732
+ }
2733
+ }
2734
+ }
2735
+
2628
2736
  /**
2629
2737
  * Generated bundle index. Do not edit.
2630
2738
  */
2631
2739
 
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 };
2740
+ 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
2741
  //# sourceMappingURL=cecon-interfaces.mjs.map