cecon-interfaces 1.0.76 → 1.0.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/dist/app/entities/app.entity.d.ts +10 -8
  2. package/dist/app/entities/app.entity.js +12 -10
  3. package/dist/app/enums/app-type.enum.d.ts +6 -0
  4. package/dist/app/enums/app-type.enum.js +10 -0
  5. package/dist/app/enums/index.d.ts +1 -0
  6. package/dist/app/enums/index.js +3 -1
  7. package/dist/app/interfaces/i-app.d.ts +21 -19
  8. package/dist/esm2022/app/entities/app.entity.mjs +13 -11
  9. package/dist/esm2022/app/enums/app-type.enum.mjs +8 -0
  10. package/dist/esm2022/app/enums/index.mjs +2 -1
  11. package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
  12. package/dist/esm2022/installation/entities/installation-app.entity.mjs +21 -0
  13. package/dist/esm2022/installation/entities/installation.entity.mjs +10 -11
  14. package/dist/esm2022/installation/enums/index.mjs +2 -0
  15. package/dist/esm2022/installation/enums/status.enum.mjs +11 -0
  16. package/dist/esm2022/installation/interfaces/i-installation-app.mjs +2 -0
  17. package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
  18. package/dist/esm2022/plan/entities/plan.entity.mjs +2 -1
  19. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  20. package/dist/esm2022/subscription/entities/subscription.entity.mjs +1 -2
  21. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  22. package/dist/fesm2022/cecon-interfaces.mjs +59 -21
  23. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  24. package/dist/installation/entities/installation-app.entity.d.ts +10 -0
  25. package/dist/installation/entities/installation-app.entity.js +25 -0
  26. package/dist/installation/entities/installation.entity.d.ts +8 -8
  27. package/dist/installation/entities/installation.entity.js +9 -10
  28. package/dist/installation/enums/index.d.ts +1 -0
  29. package/dist/installation/enums/index.js +5 -0
  30. package/dist/installation/enums/status.enum.d.ts +9 -0
  31. package/dist/installation/enums/status.enum.js +13 -0
  32. package/dist/installation/interfaces/i-installation-app.d.ts +8 -0
  33. package/dist/installation/interfaces/i-installation-app.js +2 -0
  34. package/dist/installation/interfaces/i-installation.d.ts +9 -9
  35. package/dist/package.json +1 -1
  36. package/dist/plan/entities/plan.entity.d.ts +1 -0
  37. package/dist/plan/entities/plan.entity.js +1 -0
  38. package/dist/plan/interfaces/i-plan.d.ts +1 -0
  39. package/dist/subscription/entities/subscription.entity.d.ts +0 -1
  40. package/dist/subscription/entities/subscription.entity.js +0 -1
  41. package/dist/subscription/interfaces/i-subscription.d.ts +0 -1
  42. package/package.json +1 -1
@@ -440,6 +440,14 @@ var PaymentProviderEnum;
440
440
 
441
441
  // index.ts
442
442
 
443
+ var AppTypeEnum;
444
+ (function (AppTypeEnum) {
445
+ AppTypeEnum["FREE"] = "FREE";
446
+ AppTypeEnum["PAID"] = "PAID";
447
+ AppTypeEnum["SUBSCRIPTION"] = "SUBSCRIPTION";
448
+ AppTypeEnum["TRIAL"] = "TRIAL";
449
+ })(AppTypeEnum || (AppTypeEnum = {}));
450
+
443
451
  var AppHeaderTypeEnum;
444
452
  (function (AppHeaderTypeEnum) {
445
453
  AppHeaderTypeEnum["VIDEO"] = "VIDEO";
@@ -459,12 +467,15 @@ var AppModeEnum;
459
467
  })(AppModeEnum || (AppModeEnum = {}));
460
468
 
461
469
  class AppEntity {
462
- // #region Properties (26)
470
+ // #region Properties (29)
463
471
  active = false;
464
472
  activeInstalls = 0;
473
+ /**
474
+ * Indica se permite adicionar a assinatura
475
+ */
476
+ allowAddSubscription = false;
465
477
  carousel = [];
466
478
  categories = [];
467
- mode = AppModeEnum.NONE;
468
479
  createdBy = '';
469
480
  description = '';
470
481
  downloadUrl = '';
@@ -489,24 +500,22 @@ class AppEntity {
489
500
  * Mensal, Semanal, Diário
490
501
  */
491
502
  intervalType = IntervalTypeEnum.MONTHS;
492
- /**
493
- * Indica se permite adicionar a assinatura
494
- */
495
- allowAddSubscription = false;
503
+ mode = AppModeEnum.NONE;
504
+ name = '';
496
505
  /**
497
506
  * Indica se o app é gratuito ou não
498
507
  */
499
- isFree = false;
500
508
  os = [];
501
509
  platforms = [];
502
510
  price = 0;
503
511
  ratings = [];
504
512
  tags = [];
505
- name = '';
506
513
  totalInstalls = 0;
507
- versionName = '';
514
+ trialTime = 0;
515
+ type = AppTypeEnum.FREE;
508
516
  versionCode = 1;
509
- // #endregion Properties (26)
517
+ versionName = '';
518
+ // #endregion Properties (29)
510
519
  // #region Constructors (1)
511
520
  constructor(data) {
512
521
  if (data) {
@@ -723,24 +732,53 @@ class FeatureEntity {
723
732
  }
724
733
  }
725
734
 
735
+ var InstallationStatusEnum;
736
+ (function (InstallationStatusEnum) {
737
+ InstallationStatusEnum["TRIAL"] = "TRIAL";
738
+ InstallationStatusEnum["ACTIVE"] = "ACTIVE";
739
+ InstallationStatusEnum["SUSPENDED"] = "SUSPENDED";
740
+ InstallationStatusEnum["EXPIRED"] = "EXPIRED";
741
+ InstallationStatusEnum["CANCELLED"] = "CANCELLED";
742
+ InstallationStatusEnum["PENDING"] = "PENDING";
743
+ InstallationStatusEnum["INACTIVE"] = "INACTIVE";
744
+ })(InstallationStatusEnum || (InstallationStatusEnum = {}));
745
+
746
+ class InstallationAppEntity {
747
+ // #region Properties (5)
748
+ iconUrl = '';
749
+ id = '';
750
+ mode = AppModeEnum.NATI_GO;
751
+ name = '';
752
+ version = '';
753
+ // #endregion Properties (5)
754
+ // #region Constructors (1)
755
+ constructor(data) {
756
+ if (data) {
757
+ for (let key in data) {
758
+ if (data.hasOwnProperty(key) && key in this) {
759
+ this[key] = data[key];
760
+ }
761
+ }
762
+ }
763
+ }
764
+ }
765
+
726
766
  class InstallationEntity {
727
- // #region Properties (15)
728
- active = false;
729
- appIconUrl = '';
730
- appId = '';
731
- appName = '';
767
+ // #region Properties (13)
768
+ app = new InstallationAppEntity();
732
769
  createdAt = new Date();
733
770
  customConfig = null;
734
771
  expirationDate = new Date();
735
772
  featureId = '';
736
773
  id = '';
737
- mode = AppModeEnum.NATI_GO;
774
+ lastCheckAt = new Date();
775
+ status = InstallationStatusEnum.PENDING;
738
776
  subscriptionId = '';
739
- suspended = false;
740
777
  tags = [];
778
+ trialEndDate = new Date();
779
+ trialStartDate = new Date();
741
780
  updatedAt = new Date();
742
- version = '';
743
- // #endregion Properties (15)
781
+ // #endregion Properties (13)
744
782
  // #region Constructors (1)
745
783
  constructor(data) {
746
784
  if (data) {
@@ -1986,6 +2024,7 @@ class PlanEntity {
1986
2024
  createdAt = new Date();
1987
2025
  features = [];
1988
2026
  id = '';
2027
+ index = 0;
1989
2028
  identifier = PlanIdentifierEnum.NATIGO;
1990
2029
  interval = 12;
1991
2030
  intervalType = IntervalTypeEnum.MONTHS;
@@ -2094,7 +2133,6 @@ class SubscriptionEntity {
2094
2133
  renewPaymentDate = new Date();
2095
2134
  startDate = new Date();
2096
2135
  status = SubscriptionStatusEnum.PENDING;
2097
- trialEndDate = new Date();
2098
2136
  updatedAt = new Date();
2099
2137
  // #endregion Properties (15)
2100
2138
  // #region Constructors (1)
@@ -2140,5 +2178,5 @@ class TokenEntity {
2140
2178
  * Generated bundle index. Do not edit.
2141
2179
  */
2142
2180
 
2143
- export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, 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, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, SubscriptionEntity, SubscriptionInvoiceHistoryEntity, SubscriptionStatusEnum, TokenEntity };
2181
+ export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, AppTypeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, 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, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, SubscriptionEntity, SubscriptionInvoiceHistoryEntity, SubscriptionStatusEnum, TokenEntity };
2144
2182
  //# sourceMappingURL=cecon-interfaces.mjs.map