cecon-interfaces 1.0.77 → 1.0.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) 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 +9 -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/notification/enums/category.enum.mjs +4 -1
  19. package/dist/esm2022/plan/entities/feature.entity.mjs +4 -2
  20. package/dist/esm2022/plan/entities/plan.entity.mjs +2 -1
  21. package/dist/esm2022/plan/interfaces/i-feature.mjs +1 -1
  22. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  23. package/dist/esm2022/subscription/entities/subscription.entity.mjs +1 -2
  24. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
  25. package/dist/fesm2022/cecon-interfaces.mjs +64 -22
  26. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  27. package/dist/installation/entities/installation-app.entity.d.ts +10 -0
  28. package/dist/installation/entities/installation-app.entity.js +25 -0
  29. package/dist/installation/entities/installation.entity.d.ts +7 -8
  30. package/dist/installation/entities/installation.entity.js +8 -10
  31. package/dist/installation/enums/index.d.ts +1 -0
  32. package/dist/installation/enums/index.js +5 -0
  33. package/dist/installation/enums/status.enum.d.ts +9 -0
  34. package/dist/installation/enums/status.enum.js +13 -0
  35. package/dist/installation/interfaces/i-installation-app.d.ts +8 -0
  36. package/dist/installation/interfaces/i-installation-app.js +2 -0
  37. package/dist/installation/interfaces/i-installation.d.ts +9 -10
  38. package/dist/notification/enums/category.enum.d.ts +3 -0
  39. package/dist/notification/enums/category.enum.js +3 -0
  40. package/dist/package.json +5 -6
  41. package/dist/plan/entities/feature.entity.d.ts +3 -1
  42. package/dist/plan/entities/feature.entity.js +3 -1
  43. package/dist/plan/entities/plan.entity.d.ts +1 -0
  44. package/dist/plan/entities/plan.entity.js +1 -0
  45. package/dist/plan/interfaces/i-feature.d.ts +3 -1
  46. package/dist/plan/interfaces/i-plan.d.ts +1 -0
  47. package/dist/subscription/entities/subscription.entity.d.ts +0 -1
  48. package/dist/subscription/entities/subscription.entity.js +0 -1
  49. package/dist/subscription/interfaces/i-subscription.d.ts +0 -1
  50. package/ng-package.json +4 -1
  51. package/package.json +2 -4
@@ -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,25 +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 (16)
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
774
  lastCheckAt = new Date();
738
- mode = AppModeEnum.NATI_GO;
775
+ status = InstallationStatusEnum.PENDING;
739
776
  subscriptionId = '';
740
- suspended = false;
741
777
  tags = [];
778
+ trialEndDate = new Date();
779
+ trialStartDate = new Date();
742
780
  updatedAt = new Date();
743
- version = '';
744
- // #endregion Properties (16)
781
+ // #endregion Properties (13)
745
782
  // #region Constructors (1)
746
783
  constructor(data) {
747
784
  if (data) {
@@ -1417,6 +1454,9 @@ var NotificationCategoryEnum;
1417
1454
  NotificationCategoryEnum["TASK"] = "task";
1418
1455
  NotificationCategoryEnum["MEETING"] = "meeting";
1419
1456
  NotificationCategoryEnum["ALERT"] = "alert";
1457
+ NotificationCategoryEnum["INFO"] = "info";
1458
+ NotificationCategoryEnum["DANGER"] = "danger";
1459
+ NotificationCategoryEnum["WARN"] = "warning";
1420
1460
  NotificationCategoryEnum["UPDATE"] = "update";
1421
1461
  NotificationCategoryEnum["OTHER"] = "other";
1422
1462
  })(NotificationCategoryEnum || (NotificationCategoryEnum = {}));
@@ -1961,8 +2001,10 @@ class PlanFeatureEntity {
1961
2001
  name = '';
1962
2002
  planId = '';
1963
2003
  position = 0;
2004
+ quantity = 0;
1964
2005
  updatedAt = new Date();
1965
- value = 0;
2006
+ price = 0;
2007
+ isFeature = false;
1966
2008
  // #endregion Properties (9)
1967
2009
  // #region Constructors (1)
1968
2010
  constructor(data) {
@@ -1987,6 +2029,7 @@ class PlanEntity {
1987
2029
  createdAt = new Date();
1988
2030
  features = [];
1989
2031
  id = '';
2032
+ index = 0;
1990
2033
  identifier = PlanIdentifierEnum.NATIGO;
1991
2034
  interval = 12;
1992
2035
  intervalType = IntervalTypeEnum.MONTHS;
@@ -2095,7 +2138,6 @@ class SubscriptionEntity {
2095
2138
  renewPaymentDate = new Date();
2096
2139
  startDate = new Date();
2097
2140
  status = SubscriptionStatusEnum.PENDING;
2098
- trialEndDate = new Date();
2099
2141
  updatedAt = new Date();
2100
2142
  // #endregion Properties (15)
2101
2143
  // #region Constructors (1)
@@ -2141,5 +2183,5 @@ class TokenEntity {
2141
2183
  * Generated bundle index. Do not edit.
2142
2184
  */
2143
2185
 
2144
- 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 };
2186
+ 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 };
2145
2187
  //# sourceMappingURL=cecon-interfaces.mjs.map