cecon-interfaces 1.0.77 → 1.0.78
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/app/entities/app.entity.d.ts +10 -8
- package/dist/app/entities/app.entity.js +12 -10
- package/dist/app/enums/app-type.enum.d.ts +6 -0
- package/dist/app/enums/app-type.enum.js +10 -0
- package/dist/app/enums/index.d.ts +1 -0
- package/dist/app/enums/index.js +3 -1
- package/dist/app/interfaces/i-app.d.ts +21 -19
- package/dist/esm2022/app/entities/app.entity.mjs +13 -11
- package/dist/esm2022/app/enums/app-type.enum.mjs +8 -0
- package/dist/esm2022/app/enums/index.mjs +2 -1
- package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
- package/dist/esm2022/installation/entities/installation-app.entity.mjs +21 -0
- package/dist/esm2022/installation/entities/installation.entity.mjs +9 -11
- package/dist/esm2022/installation/enums/index.mjs +2 -0
- package/dist/esm2022/installation/enums/status.enum.mjs +11 -0
- package/dist/esm2022/installation/interfaces/i-installation-app.mjs +2 -0
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
- package/dist/esm2022/plan/entities/plan.entity.mjs +2 -1
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +1 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +58 -21
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/installation/entities/installation-app.entity.d.ts +10 -0
- package/dist/installation/entities/installation-app.entity.js +25 -0
- package/dist/installation/entities/installation.entity.d.ts +7 -8
- package/dist/installation/entities/installation.entity.js +8 -10
- package/dist/installation/enums/index.d.ts +1 -0
- package/dist/installation/enums/index.js +5 -0
- package/dist/installation/enums/status.enum.d.ts +9 -0
- package/dist/installation/enums/status.enum.js +13 -0
- package/dist/installation/interfaces/i-installation-app.d.ts +8 -0
- package/dist/installation/interfaces/i-installation-app.js +2 -0
- package/dist/installation/interfaces/i-installation.d.ts +9 -10
- package/dist/package.json +1 -1
- package/dist/plan/entities/plan.entity.d.ts +1 -0
- package/dist/plan/entities/plan.entity.js +1 -0
- package/dist/plan/interfaces/i-plan.d.ts +1 -0
- package/dist/subscription/entities/subscription.entity.d.ts +0 -1
- package/dist/subscription/entities/subscription.entity.js +0 -1
- package/dist/subscription/interfaces/i-subscription.d.ts +0 -1
- 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 (
|
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
|
-
|
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
|
-
|
514
|
+
trialTime = 0;
|
515
|
+
type = AppTypeEnum.FREE;
|
508
516
|
versionCode = 1;
|
509
|
-
|
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 (
|
728
|
-
|
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
|
-
|
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
|
-
|
744
|
-
// #endregion Properties (16)
|
781
|
+
// #endregion Properties (13)
|
745
782
|
// #region Constructors (1)
|
746
783
|
constructor(data) {
|
747
784
|
if (data) {
|
@@ -1987,6 +2024,7 @@ class PlanEntity {
|
|
1987
2024
|
createdAt = new Date();
|
1988
2025
|
features = [];
|
1989
2026
|
id = '';
|
2027
|
+
index = 0;
|
1990
2028
|
identifier = PlanIdentifierEnum.NATIGO;
|
1991
2029
|
interval = 12;
|
1992
2030
|
intervalType = IntervalTypeEnum.MONTHS;
|
@@ -2095,7 +2133,6 @@ class SubscriptionEntity {
|
|
2095
2133
|
renewPaymentDate = new Date();
|
2096
2134
|
startDate = new Date();
|
2097
2135
|
status = SubscriptionStatusEnum.PENDING;
|
2098
|
-
trialEndDate = new Date();
|
2099
2136
|
updatedAt = new Date();
|
2100
2137
|
// #endregion Properties (15)
|
2101
2138
|
// #region Constructors (1)
|
@@ -2141,5 +2178,5 @@ class TokenEntity {
|
|
2141
2178
|
* Generated bundle index. Do not edit.
|
2142
2179
|
*/
|
2143
2180
|
|
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 };
|
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 };
|
2145
2182
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|