cecon-interfaces 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/app/interfaces/i-natigo.d.ts +1 -1
- package/dist/campaign/entities/campaign.entity.d.ts +15 -0
- package/dist/campaign/entities/campaign.entity.js +30 -0
- package/dist/campaign/entities/index.d.ts +1 -0
- package/dist/campaign/entities/index.js +5 -0
- package/dist/campaign/enums/e-campaign-status.enum.d.ts +7 -0
- package/dist/campaign/enums/e-campaign-status.enum.js +11 -0
- package/dist/campaign/enums/index.d.ts +1 -0
- package/dist/campaign/enums/index.js +5 -0
- package/dist/campaign/index.d.ts +3 -0
- package/dist/campaign/index.js +19 -0
- package/dist/campaign/interfaces/i-campaign.d.ts +13 -0
- package/dist/campaign/interfaces/index.d.ts +1 -0
- package/dist/campaign/interfaces/index.js +2 -0
- package/dist/esm2022/app/interfaces/i-natigo.mjs +1 -1
- package/dist/esm2022/campaign/entities/campaign.entity.mjs +26 -0
- package/dist/esm2022/campaign/entities/index.mjs +2 -0
- package/dist/esm2022/campaign/enums/e-campaign-status.enum.mjs +9 -0
- package/dist/esm2022/campaign/enums/index.mjs +2 -0
- package/dist/esm2022/campaign/index.mjs +4 -0
- package/dist/esm2022/campaign/interfaces/i-campaign.mjs +2 -0
- package/dist/esm2022/campaign/interfaces/index.mjs +2 -0
- package/dist/esm2022/general/entities/index.mjs +2 -1
- package/dist/esm2022/general/entities/sponsorship-value.entity.mjs +17 -0
- package/dist/esm2022/general/enums/e-discount-type.enum.mjs +6 -0
- package/dist/esm2022/general/enums/index.mjs +3 -1
- package/dist/esm2022/general/enums/sponsorship-values.enum.mjs +8 -0
- package/dist/esm2022/general/interfaces/i-sponsorship-value.mjs +2 -0
- package/dist/esm2022/general/interfaces/index.mjs +1 -1
- package/dist/esm2022/index.mjs +3 -1
- package/dist/esm2022/order/entities/benefits.entity.mjs +1 -1
- package/dist/esm2022/order/entities/index.mjs +1 -2
- package/dist/esm2022/order/interfaces/i-benefits.mjs +1 -1
- package/dist/esm2022/order/interfaces/index.mjs +1 -1
- package/dist/esm2022/voucher/entities/index.mjs +2 -0
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +52 -0
- package/dist/esm2022/voucher/enums/e-voucher-status.enum.mjs +9 -0
- package/dist/esm2022/voucher/enums/index.mjs +2 -0
- package/dist/esm2022/voucher/index.mjs +4 -0
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +2 -0
- package/dist/esm2022/voucher/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +125 -18
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/index.d.ts +1 -0
- package/dist/general/entities/index.js +3 -1
- package/dist/general/entities/sponsorship-value.entity.d.ts +5 -0
- package/dist/{order/entities/benefits-sponsor-ship.entity.js → general/entities/sponsorship-value.entity.js} +5 -5
- package/dist/general/enums/e-discount-type.enum.d.ts +4 -0
- package/dist/general/enums/e-discount-type.enum.js +8 -0
- package/dist/general/enums/index.d.ts +2 -0
- package/dist/general/enums/index.js +5 -1
- package/dist/general/enums/sponsorship-values.enum.d.ts +6 -0
- package/dist/general/enums/sponsorship-values.enum.js +10 -0
- package/dist/general/interfaces/i-sponsorship-value.d.ts +5 -0
- package/dist/general/interfaces/i-sponsorship-value.js +2 -0
- package/dist/general/interfaces/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/order/entities/benefits.entity.d.ts +2 -2
- package/dist/order/entities/index.d.ts +0 -1
- package/dist/order/entities/index.js +1 -3
- package/dist/order/interfaces/i-benefits.d.ts +2 -2
- package/dist/order/interfaces/index.d.ts +0 -1
- package/dist/package.json +1 -1
- package/dist/voucher/entities/index.d.ts +1 -0
- package/dist/voucher/entities/index.js +5 -0
- package/dist/voucher/entities/voucher.entity.d.ts +24 -0
- package/dist/voucher/entities/voucher.entity.js +56 -0
- package/dist/voucher/enums/e-voucher-status.enum.d.ts +7 -0
- package/dist/voucher/enums/e-voucher-status.enum.js +11 -0
- package/dist/voucher/enums/index.d.ts +1 -0
- package/dist/voucher/enums/index.js +5 -0
- package/dist/voucher/index.d.ts +3 -0
- package/dist/voucher/index.js +19 -0
- package/dist/voucher/interfaces/i-voucher.d.ts +22 -0
- package/dist/voucher/interfaces/i-voucher.js +2 -0
- package/dist/voucher/interfaces/index.d.ts +1 -0
- package/dist/voucher/interfaces/index.js +2 -0
- package/package.json +1 -1
- package/dist/esm2022/order/entities/benefits-sponsor-ship.entity.mjs +0 -17
- package/dist/esm2022/order/interfaces/i-benefits-sponsor-ship.mjs +0 -2
- package/dist/order/entities/benefits-sponsor-ship.entity.d.ts +0 -5
- package/dist/order/interfaces/i-benefits-sponsor-ship.d.ts +0 -4
- /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 = '';
|
@@ -2625,9 +2673,68 @@ class TokenEntity {
|
|
2625
2673
|
}
|
2626
2674
|
}
|
2627
2675
|
|
2676
|
+
var EVoucherStatus;
|
2677
|
+
(function (EVoucherStatus) {
|
2678
|
+
EVoucherStatus["ACTIVE"] = "ACTIVE";
|
2679
|
+
EVoucherStatus["REDEEMED"] = "REDEEMED";
|
2680
|
+
EVoucherStatus["EXPIRED"] = "EXPIRED";
|
2681
|
+
EVoucherStatus["PLACED"] = "PLACED";
|
2682
|
+
EVoucherStatus["PAUSED"] = "PAUSED";
|
2683
|
+
})(EVoucherStatus || (EVoucherStatus = {}));
|
2684
|
+
|
2685
|
+
class VoucherEntity {
|
2686
|
+
// #region Properties (18)
|
2687
|
+
// se permite ou não a alteração do nome do cupom pelo parceiro
|
2688
|
+
allowsKeyChange = false;
|
2689
|
+
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
2690
|
+
amount = 0;
|
2691
|
+
// ID da campanha associada (opcional para uso futuro)
|
2692
|
+
campaignId = null;
|
2693
|
+
// ID da empresa associada ao cupom (opcional)
|
2694
|
+
companyId = null;
|
2695
|
+
// ID do recipiente ou contexto onde o cupom é válido (opcional)
|
2696
|
+
containerId = null;
|
2697
|
+
// data de criação do cupom
|
2698
|
+
createdAt = new Date();
|
2699
|
+
// descrição opcional do cupom
|
2700
|
+
description = null;
|
2701
|
+
// tipo de desconto: porcentagem ou valor fixo
|
2702
|
+
discountType = EDiscountType.FIXED_AMOUNT;
|
2703
|
+
// data de validade do cupom
|
2704
|
+
expirationDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
|
2705
|
+
id = '';
|
2706
|
+
// se a chave do cupom é pública ou privada
|
2707
|
+
isPublic = true;
|
2708
|
+
// chave única para o cupom
|
2709
|
+
key = '';
|
2710
|
+
// máximo de utilizações permitidas (-1 para ilimitado)
|
2711
|
+
maxUses = -1;
|
2712
|
+
// ID do parceiro associado ao cupom (opcional)
|
2713
|
+
partnerId = null;
|
2714
|
+
// informação de patrocínio (opcional)
|
2715
|
+
sponsorship = [];
|
2716
|
+
// status do cupom
|
2717
|
+
status = EVoucherStatus.PLACED;
|
2718
|
+
// data da última atualização do cupom
|
2719
|
+
updatedAt = new Date();
|
2720
|
+
// contador de quantas vezes o cupom foi usado
|
2721
|
+
usedCount = 0;
|
2722
|
+
// #endregion Properties (18)
|
2723
|
+
// #region Constructors (1)
|
2724
|
+
constructor(data) {
|
2725
|
+
if (data) {
|
2726
|
+
for (let key in data) {
|
2727
|
+
if (data.hasOwnProperty(key) && key in this) {
|
2728
|
+
this[key] = data[key];
|
2729
|
+
}
|
2730
|
+
}
|
2731
|
+
}
|
2732
|
+
}
|
2733
|
+
}
|
2734
|
+
|
2628
2735
|
/**
|
2629
2736
|
* Generated bundle index. Do not edit.
|
2630
2737
|
*/
|
2631
2738
|
|
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,
|
2739
|
+
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
2740
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|