cecon-interfaces 1.1.22 → 1.1.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +3 -3
- package/dist/esm2022/subscription/enums/index.mjs +2 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +6 -4
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +6 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription.entity.d.ts +2 -2
- package/dist/subscription/entities/subscription.entity.js +1 -1
- package/dist/subscription/enums/index.d.ts +1 -1
- package/dist/subscription/enums/index.js +2 -2
- package/dist/subscription/interfaces/i-subscription.d.ts +3 -3
- package/dist/voucher/entities/voucher.entity.d.ts +3 -1
- package/dist/voucher/entities/voucher.entity.js +5 -3
- package/dist/voucher/interfaces/i-voucher.d.ts +3 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IntervalTypeEnum, PaymentEntity } from '../../general';
|
2
|
-
import {
|
2
|
+
import { ESubscriptionStatus } from '../enums';
|
3
3
|
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
4
4
|
export class SubscriptionEntity {
|
5
5
|
// #region Properties (27)
|
@@ -26,7 +26,7 @@ export class SubscriptionEntity {
|
|
26
26
|
renewPaymentDate = new Date();
|
27
27
|
renovatedAt = new Date();
|
28
28
|
startsAt = new Date();
|
29
|
-
status =
|
29
|
+
status = ESubscriptionStatus.PENDING;
|
30
30
|
tags = [];
|
31
31
|
updatedAt = new Date();
|
32
32
|
payment = new PaymentEntity();
|
@@ -42,4 +42,4 @@ export class SubscriptionEntity {
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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cyAoMjcpXG5cbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8U3Vic2NyaXB0aW9uRW50aXR5Pikge1xuICAgIGlmIChkYXRhKSB7XG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { ESubscriptionStatus
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export { ESubscriptionStatus } from './subscription-status.enum';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRVN1YnNjcmlwdGlvblN0YXR1cyB9IGZyb20gJy4vc3Vic2NyaXB0aW9uLXN0YXR1cy5lbnVtJztcbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24uanMiLCJzb3V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VmFyaWFibGVbXTtcbiAgY3ljbGVkQXQ6IERhdGU7XG4gIGV4cGlyZXNBdDogRGF0ZTtcbiAgZmVhdHVyZXM6IElGZWF0dXJlW107XG4gIGlkOiBzdHJpbmc7XG4gIGludGVydmFsOiBudW1iZXI7XG4gIHBheW1lbnQ6IElQYXltZW50O1xuICBpbnRlcnZhbFR5cGU6IEludGVydmFsVHlwZUVudW07XG4gIGludm9pY2VzOiBJSW52b2ljZVtdO1xuICBpdGVtczogSVN1YnNjcmlwdGlvbkl0ZW1bXTtcbiAgbG9nczogSVN1YnNjcmlwdGlvbkxvZ1tdO1xuICBub3Rlczogc3RyaW5nO1xuICBwYXJ0bmVySWQ6IHN0cmluZyB8IG51bGw7XG4gIHBsYW5JZDogc3RyaW5nO1xuICBwbGFuTmFtZTogc3RyaW5nO1xuICByZW5ld1BheW1lbnREYXRlOiBEYXRlO1xuICByZW5vdmF0ZWRBdDogRGF0ZTtcbiAgc3RhcnRzQXQ6IERhdGU7XG4gIHN0YXR1czogRVN1YnNjcmlwdGlvblN0YXR1cztcbiAgdGFnczogc3RyaW5nW107XG4gIHVwZGF0ZWRBdDogRGF0ZTtcblxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDI1KVxufVxuIl19
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { EDiscountType } from '../../general';
|
2
2
|
import { EVoucherStatus } from '../enums';
|
3
3
|
export class VoucherEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (20)
|
5
5
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
6
6
|
allowsKeyChange = false;
|
7
7
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
8
8
|
amount = 0;
|
9
|
+
appId = [];
|
9
10
|
// ID da campanha associada (opcional para uso futuro)
|
10
11
|
campaignId = null;
|
11
12
|
// ID da empresa associada ao cupom (opcional)
|
@@ -28,16 +29,17 @@ export class VoucherEntity {
|
|
28
29
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
29
30
|
maxUses = -1;
|
30
31
|
// ID do parceiro associado ao cupom (opcional)
|
31
|
-
partnerId =
|
32
|
+
partnerId = [];
|
32
33
|
// informação de patrocínio (opcional)
|
33
34
|
sponsorship = [];
|
34
35
|
// status do cupom
|
35
36
|
status = EVoucherStatus.PLACED;
|
37
|
+
tags = [];
|
36
38
|
// data da última atualização do cupom
|
37
39
|
updatedAt = new Date();
|
38
40
|
// contador de quantas vezes o cupom foi usado
|
39
41
|
usedCount = 0;
|
40
|
-
// #endregion Properties (
|
42
|
+
// #endregion Properties (20)
|
41
43
|
// #region Constructors (1)
|
42
44
|
constructor(data) {
|
43
45
|
if (data) {
|
@@ -49,4 +51,4 @@ export class VoucherEntity {
|
|
49
51
|
}
|
50
52
|
}
|
51
53
|
}
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm91Y2hlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdm91Y2hlci9lbnRpdGllcy92b3VjaGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRzFDLE1BQU0sT0FBTyxhQUFhO0lBQ3hCLDBCQUEwQjtJQUUxQiwrREFBK0Q7SUFDeEQsZUFBZSxHQUFZLEtBQUssQ0FBQztJQUN4QywwRUFBMEU7SUFDbkUsTUFBTSxHQUFXLENBQUMsQ0FBQztJQUNuQixLQUFLLEdBQWEsRUFBRSxDQUFDO0lBQzVCLHNEQUFzRDtJQUN0RCxVQUFVLEdBQW1CLElBQUksQ0FBQztJQUNsQyw4Q0FBOEM7SUFDOUMsU0FBUyxHQUFtQix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4gdGhpcykge1xyXG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXHJcbiAgLy8gZGF0YSBkYSDDumx0aW1hIGF0dWFsaXphw6fDo28gZGEgY2FtcGFuaGFcclxufVxyXG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS12b3VjaGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3ZvdWNoZXIvaW50ZXJmYWNlcy9pLXZvdWNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVEaXNjb3VudFR5cGUsIElTcG9uc29yc2hpcFZhbHVlIH0gZnJvbSAnLi4vLi4vZ2VuZXJhbCc7XHJcbmltcG9ydCB7IEVWb3VjaGVyU3RhdHVzIH0gZnJvbSAnLi4vZW51bXMnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJVm91Y2hlciB7XHJcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgyMClcclxuXHJcbiAgLy9UT0RPIG9ww6dhbyBkZSBwZXJtaXRpciBzdWJzY3JpcHRpb24gb3UgaW52b2ljZVxyXG4gIC8vIHNlIHBlcm1pdGUgb3UgbsOjbyBhIGFsdGVyYcOnw6NvIGRvIG5vbWUgZG8gY3Vwb20gcGVsbyBwYXJjZWlyb1xyXG4gIGFsbG93c0tleUNoYW5nZTogYm9vbGVhbjtcclxuICAvLyB2YWxvciBkbyBkZXNjb250byAoc29tYSBkbyB2Y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oXhpbW8gZGUgdXRpbGl6YcOnw7VlcyBwZXJtaXRpZGFzICgtMSBwYXJhIGlsaW1pdGFkbylcclxuICBtYXhVc2VzOiBudW1iZXI7XHJcbiAgLy8gSUQgZG8gcGFyY2Vpcm8gYXNzb2NpYWRvIGFvIGN1cG9tIChvcGNpb25hbClcclxuICBwYXJ0bmVySWQ6IHN0cmluZ1tdO1xyXG4gIC8vIGluZm9ybWHDp8OjbyBkZSBwYXRyb2PDrW5pbyAob3BjaW9uYWwpXHJcbiAgc3BvbnNvcnNoaXA6IElTcG9uc29yc2hpcFZhbHVlW107XHJcbiAgLy8gc3RhdHVzIGRvIGN1cG9tXHJcbiAgc3RhdHVzOiBFVm91Y2hlclN0YXR1cztcclxuICB0YWdzOiBzdHJpbmdbXTtcclxuICAvLyBkYXRhIGRhIMO6bHRpbWEgYXR1YWxpemHDp8OjbyBkbyBjdXBvbVxyXG4gIHVwZGF0ZWRBdDogRGF0ZTtcclxuICAvLyBjb250YWRvciBkZSBxdWFudGFzIHZlemVzIG8gY3Vwb20gZm9pIHVzYWRvXHJcbiAgdXNlZENvdW50OiBudW1iZXI7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjApXHJcbiAgLy8gZGF0YSBkYSDDumx0aW1hIGF0dWFsaXphw6fDo28gZGEgY2FtcGFuaGFcclxufVxyXG4iXX0=
|
@@ -2804,11 +2804,12 @@ var EVoucherStatus;
|
|
2804
2804
|
})(EVoucherStatus || (EVoucherStatus = {}));
|
2805
2805
|
|
2806
2806
|
class VoucherEntity {
|
2807
|
-
// #region Properties (
|
2807
|
+
// #region Properties (20)
|
2808
2808
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
2809
2809
|
allowsKeyChange = false;
|
2810
2810
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
2811
2811
|
amount = 0;
|
2812
|
+
appId = [];
|
2812
2813
|
// ID da campanha associada (opcional para uso futuro)
|
2813
2814
|
campaignId = null;
|
2814
2815
|
// ID da empresa associada ao cupom (opcional)
|
@@ -2831,16 +2832,17 @@ class VoucherEntity {
|
|
2831
2832
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
2832
2833
|
maxUses = -1;
|
2833
2834
|
// ID do parceiro associado ao cupom (opcional)
|
2834
|
-
partnerId =
|
2835
|
+
partnerId = [];
|
2835
2836
|
// informação de patrocínio (opcional)
|
2836
2837
|
sponsorship = [];
|
2837
2838
|
// status do cupom
|
2838
2839
|
status = EVoucherStatus.PLACED;
|
2840
|
+
tags = [];
|
2839
2841
|
// data da última atualização do cupom
|
2840
2842
|
updatedAt = new Date();
|
2841
2843
|
// contador de quantas vezes o cupom foi usado
|
2842
2844
|
usedCount = 0;
|
2843
|
-
// #endregion Properties (
|
2845
|
+
// #endregion Properties (20)
|
2844
2846
|
// #region Constructors (1)
|
2845
2847
|
constructor(data) {
|
2846
2848
|
if (data) {
|
@@ -2857,5 +2859,5 @@ class VoucherEntity {
|
|
2857
2859
|
* Generated bundle index. Do not edit.
|
2858
2860
|
*/
|
2859
2861
|
|
2860
|
-
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, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity,
|
2862
|
+
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, ESubscriptionStatus, 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, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, TokenEntity, VoucherEntity };
|
2861
2863
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|