cecon-interfaces 1.1.63 → 1.1.65
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/clients/entities/client-aplication-credential.entity.d.ts +8 -0
- package/dist/clients/entities/client-aplication-credential.entity.js +23 -0
- package/dist/clients/entities/client-aplication.entity.d.ts +8 -0
- package/dist/clients/entities/client-aplication.entity.js +23 -0
- package/dist/clients/entities/client.entity.d.ts +13 -0
- package/dist/clients/entities/client.entity.js +27 -0
- package/dist/clients/entities/index.d.ts +3 -0
- package/dist/clients/entities/index.js +9 -0
- package/dist/clients/index.d.ts +2 -0
- package/dist/clients/index.js +18 -0
- package/dist/clients/interfaces/i-client-aplication.d.ts +6 -0
- package/dist/clients/interfaces/i-client-aplication.js +2 -0
- package/dist/clients/interfaces/i-client-credential.d.ts +6 -0
- package/dist/clients/interfaces/i-client-credential.js +2 -0
- package/dist/clients/interfaces/i-client.d.ts +12 -0
- package/dist/clients/interfaces/i-client.js +2 -0
- package/dist/clients/interfaces/index.d.ts +3 -0
- package/dist/clients/interfaces/index.js +2 -0
- package/dist/company/entities/company.entity.d.ts +2 -2
- package/dist/company/entities/company.entity.js +1 -1
- package/dist/company/interfaces/i-company.d.ts +2 -2
- package/dist/customer/entities/customer.entity.d.ts +26 -0
- package/dist/customer/entities/customer.entity.js +41 -0
- package/dist/customer/entities/index.d.ts +1 -0
- package/dist/customer/entities/index.js +5 -0
- package/dist/customer/enums/index.d.ts +2 -0
- package/dist/customer/enums/index.js +7 -0
- package/dist/customer/enums/interval.enum.d.ts +5 -0
- package/dist/customer/enums/interval.enum.js +9 -0
- package/dist/customer/enums/status.enum.d.ts +5 -0
- package/dist/customer/enums/status.enum.js +9 -0
- package/dist/customer/index.d.ts +3 -0
- package/dist/customer/index.js +19 -0
- package/dist/customer/interfaces/i-customer.d.ts +24 -0
- package/dist/customer/interfaces/i-customer.js +2 -0
- package/dist/customer/interfaces/index.d.ts +1 -0
- package/dist/customer/interfaces/index.js +2 -0
- package/dist/esm2022/clients/entities/client-aplication-credential.entity.mjs +19 -0
- package/dist/esm2022/clients/entities/client-aplication.entity.mjs +19 -0
- package/dist/esm2022/clients/entities/client.entity.mjs +23 -0
- package/dist/esm2022/clients/entities/index.mjs +4 -0
- package/dist/esm2022/clients/index.mjs +3 -0
- package/dist/esm2022/clients/interfaces/i-client-aplication.mjs +2 -0
- package/dist/esm2022/clients/interfaces/i-client-credential.mjs +2 -0
- package/dist/esm2022/clients/interfaces/i-client.mjs +2 -0
- package/dist/esm2022/clients/interfaces/index.mjs +2 -0
- package/dist/esm2022/company/entities/company.entity.mjs +3 -3
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/customer/entities/customer.entity.mjs +37 -0
- package/dist/esm2022/customer/entities/index.mjs +2 -0
- package/dist/esm2022/customer/enums/index.mjs +3 -0
- package/dist/esm2022/customer/enums/interval.enum.mjs +7 -0
- package/dist/esm2022/customer/enums/status.enum.mjs +7 -0
- package/dist/esm2022/customer/index.mjs +4 -0
- package/dist/esm2022/customer/interfaces/i-customer.mjs +2 -0
- package/dist/esm2022/customer/interfaces/index.mjs +2 -0
- package/dist/esm2022/general/enums/doc-type.enum.mjs +6 -6
- package/dist/esm2022/general/enums/index.mjs +2 -2
- package/dist/esm2022/global-settings/entities/global-setting-iugu.entity.mjs +7 -7
- package/dist/esm2022/global-settings/entities/global-setting-master.entity.mjs +5 -15
- package/dist/esm2022/global-settings/interfaces/i-global-setting-master.mjs +1 -1
- package/dist/esm2022/index.mjs +3 -1
- package/dist/esm2022/invite/entities/invite.entity.mjs +3 -3
- package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice-payer.entity.mjs +3 -3
- package/dist/esm2022/invoice/interfaces/i-invoice-payer.mjs +1 -1
- package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
- package/dist/esm2022/notification/entities/notification.entity.mjs +5 -5
- package/dist/esm2022/notification/interfaces/i-notification.mjs +1 -1
- package/dist/esm2022/partner/entities/partner.entity.mjs +3 -3
- package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +133 -35
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/doc-type.enum.d.ts +1 -1
- package/dist/general/enums/doc-type.enum.js +6 -6
- package/dist/general/enums/index.d.ts +1 -1
- package/dist/general/enums/index.js +2 -2
- package/dist/global-settings/entities/global-setting-iugu.entity.d.ts +4 -4
- package/dist/global-settings/entities/global-setting-iugu.entity.js +6 -6
- package/dist/global-settings/entities/global-setting-master.entity.d.ts +2 -12
- package/dist/global-settings/entities/global-setting-master.entity.js +4 -13
- package/dist/global-settings/interfaces/i-global-setting-master.d.ts +2 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/invite/entities/invite.entity.d.ts +2 -2
- package/dist/invite/entities/invite.entity.js +1 -1
- package/dist/invite/interfaces/i-invite.d.ts +2 -2
- package/dist/invoice/entities/invoice-payer.entity.d.ts +2 -2
- package/dist/invoice/entities/invoice-payer.entity.js +1 -1
- package/dist/invoice/interfaces/i-invoice-payer.d.ts +2 -2
- package/dist/lead/entities/lead.entity.d.ts +2 -2
- package/dist/lead/entities/lead.entity.js +1 -1
- package/dist/notification/entities/notification.entity.d.ts +2 -2
- package/dist/notification/entities/notification.entity.js +4 -4
- package/dist/notification/interfaces/i-notification.d.ts +5 -5
- package/dist/package.json +1 -1
- package/dist/partner/entities/partner.entity.d.ts +2 -2
- package/dist/partner/entities/partner.entity.js +1 -1
- package/dist/partner/interfaces/i-partner.d.ts +2 -2
- package/package.json +1 -1
@@ -536,11 +536,11 @@ var BooleanStringEnum;
|
|
536
536
|
BooleanStringEnum["TRUE"] = "true";
|
537
537
|
})(BooleanStringEnum || (BooleanStringEnum = {}));
|
538
538
|
|
539
|
-
var
|
540
|
-
(function (
|
541
|
-
|
542
|
-
|
543
|
-
})(
|
539
|
+
var EDocType;
|
540
|
+
(function (EDocType) {
|
541
|
+
EDocType["CPF"] = "CPF";
|
542
|
+
EDocType["CNPJ"] = "CNPJ";
|
543
|
+
})(EDocType || (EDocType = {}));
|
544
544
|
|
545
545
|
var EDiscountType;
|
546
546
|
(function (EDiscountType) {
|
@@ -847,6 +847,65 @@ class CampaignEntity {
|
|
847
847
|
}
|
848
848
|
}
|
849
849
|
|
850
|
+
class ClientAplicationCredentialEntity {
|
851
|
+
// #region Properties (4)
|
852
|
+
refreshToken = null;
|
853
|
+
refreshTokenAt = null;
|
854
|
+
secrets = null;
|
855
|
+
token = null;
|
856
|
+
// #endregion Properties (4)
|
857
|
+
// #region Constructors (1)
|
858
|
+
constructor(data) {
|
859
|
+
if (data) {
|
860
|
+
for (let key in data) {
|
861
|
+
if (data.hasOwnProperty(key) && key in this) {
|
862
|
+
this[key] = data[key];
|
863
|
+
}
|
864
|
+
}
|
865
|
+
}
|
866
|
+
}
|
867
|
+
}
|
868
|
+
|
869
|
+
class ClientAplicationEntity {
|
870
|
+
// #region Properties (3)
|
871
|
+
credential = new ClientAplicationCredentialEntity();
|
872
|
+
description = null;
|
873
|
+
name = '';
|
874
|
+
// #endregion Properties (3)
|
875
|
+
// #region Constructors (1)
|
876
|
+
constructor(data) {
|
877
|
+
if (data) {
|
878
|
+
for (let key in data) {
|
879
|
+
if (data.hasOwnProperty(key) && key in this) {
|
880
|
+
this[key] = data[key];
|
881
|
+
}
|
882
|
+
}
|
883
|
+
}
|
884
|
+
}
|
885
|
+
}
|
886
|
+
|
887
|
+
class ClientEntity {
|
888
|
+
// #region Properties (7)
|
889
|
+
address = null;
|
890
|
+
aplications = [];
|
891
|
+
doc = null;
|
892
|
+
docType = EDocType.CPF;
|
893
|
+
email = null;
|
894
|
+
id = '';
|
895
|
+
name = '';
|
896
|
+
// #endregion Properties (7)
|
897
|
+
// #region Constructors (1)
|
898
|
+
constructor(data) {
|
899
|
+
if (data) {
|
900
|
+
for (let key in data) {
|
901
|
+
if (data.hasOwnProperty(key) && key in this) {
|
902
|
+
this[key] = data[key];
|
903
|
+
}
|
904
|
+
}
|
905
|
+
}
|
906
|
+
}
|
907
|
+
}
|
908
|
+
|
850
909
|
class CompanyEntity {
|
851
910
|
// #region Properties (26)
|
852
911
|
active = false;
|
@@ -858,7 +917,7 @@ class CompanyEntity {
|
|
858
917
|
deliveryArea = [];
|
859
918
|
deliveryAreaFixed = null;
|
860
919
|
doc = '';
|
861
|
-
docType =
|
920
|
+
docType = EDocType.CNPJ;
|
862
921
|
email = '';
|
863
922
|
fullName = '';
|
864
923
|
id = '';
|
@@ -925,6 +984,55 @@ class ContainerEntity extends BaseEntity {
|
|
925
984
|
}
|
926
985
|
}
|
927
986
|
|
987
|
+
var ECustomerInterval;
|
988
|
+
(function (ECustomerInterval) {
|
989
|
+
ECustomerInterval["WEEKLY"] = "WEEKLY";
|
990
|
+
ECustomerInterval["BIWEEKLY"] = "BIWEEKLY";
|
991
|
+
ECustomerInterval["MONTHLY"] = "MONTHLY";
|
992
|
+
})(ECustomerInterval || (ECustomerInterval = {}));
|
993
|
+
|
994
|
+
var ECustomerStatus;
|
995
|
+
(function (ECustomerStatus) {
|
996
|
+
ECustomerStatus["BLOCKED"] = "BLOCKED";
|
997
|
+
ECustomerStatus["ACTIVE"] = "ACTIVE";
|
998
|
+
ECustomerStatus["WAITING_CREDIT_ANALYSIS"] = "WAITING_CREDIT_ANALYSIS";
|
999
|
+
})(ECustomerStatus || (ECustomerStatus = {}));
|
1000
|
+
|
1001
|
+
class CustomerEntity {
|
1002
|
+
// #region Properties (20)
|
1003
|
+
address = new AddressEntity();
|
1004
|
+
blockedReason = null;
|
1005
|
+
createdAt = new Date();
|
1006
|
+
deliveryArea = [];
|
1007
|
+
deliveryAreaFixed = undefined;
|
1008
|
+
doc = '';
|
1009
|
+
docType = EDocType.CPF;
|
1010
|
+
email = '';
|
1011
|
+
fullName = '';
|
1012
|
+
id = '';
|
1013
|
+
imageUrl = null;
|
1014
|
+
interval = ECustomerInterval.MONTHLY;
|
1015
|
+
limit = 0;
|
1016
|
+
name = '';
|
1017
|
+
phoneNumber = '';
|
1018
|
+
phoneNumberNotification = null;
|
1019
|
+
sandbox = false;
|
1020
|
+
status = ECustomerStatus.WAITING_CREDIT_ANALYSIS;
|
1021
|
+
tags = [];
|
1022
|
+
updatedAt = new Date();
|
1023
|
+
// #endregion Properties (20)
|
1024
|
+
// #region Constructors (1)
|
1025
|
+
constructor(data) {
|
1026
|
+
if (data) {
|
1027
|
+
for (let key in data) {
|
1028
|
+
if (data.hasOwnProperty(key) && key in this) {
|
1029
|
+
this[key] = data[key];
|
1030
|
+
}
|
1031
|
+
}
|
1032
|
+
}
|
1033
|
+
}
|
1034
|
+
}
|
1035
|
+
|
928
1036
|
class DeviceEntity {
|
929
1037
|
// #region Properties (14)
|
930
1038
|
active = false;
|
@@ -1001,22 +1109,22 @@ class FeatureEntity {
|
|
1001
1109
|
}
|
1002
1110
|
|
1003
1111
|
class GlobalSettingIuguEntity {
|
1004
|
-
// #region Properties (
|
1112
|
+
// #region Properties (10)
|
1005
1113
|
/**
|
1006
1114
|
* Prazo máximo para pagamento do boleto após o vencimento.
|
1007
1115
|
* O prazo máximo para pagamento deve ser entre "1" e "30"
|
1008
1116
|
* dias após a data de vencimento.
|
1009
1117
|
*/
|
1010
1118
|
bankSlipExtraDue = 1;
|
1119
|
+
/**
|
1120
|
+
* Prazo de dias para o vencimento da fatura.
|
1121
|
+
*/
|
1122
|
+
billingDays = 10;
|
1011
1123
|
/**
|
1012
1124
|
* Se true, garante que a data de vencimento seja apenas em dias de semana,
|
1013
1125
|
* e não em sábados ou domingos.
|
1014
1126
|
*/
|
1015
1127
|
ensureWorkdayDueDate = true;
|
1016
|
-
/**
|
1017
|
-
* Prazo de dias para o vencimento da fatura.
|
1018
|
-
*/
|
1019
|
-
billingDays = 10;
|
1020
1128
|
/**
|
1021
1129
|
* Expira uma fatura e impossibilita o seu pagamento depois 'x' dias após o vencimento.
|
1022
1130
|
* Valor enviado precisa estar entre 0 e 30. Se for enviado "0", a fatura ficará
|
@@ -1054,7 +1162,7 @@ class GlobalSettingIuguEntity {
|
|
1054
1162
|
* calculados são menores que 1 centavo.
|
1055
1163
|
*/
|
1056
1164
|
perDayInterestValue = 1;
|
1057
|
-
// #endregion Properties (
|
1165
|
+
// #endregion Properties (10)
|
1058
1166
|
// #region Constructors (1)
|
1059
1167
|
constructor(data) {
|
1060
1168
|
if (data) {
|
@@ -1068,24 +1176,15 @@ class GlobalSettingIuguEntity {
|
|
1068
1176
|
}
|
1069
1177
|
|
1070
1178
|
class GlobalSettingMasterEntity {
|
1071
|
-
// #region Properties (
|
1072
|
-
|
1073
|
-
* Prazo de dias para o vencimento da fatura.
|
1074
|
-
*/
|
1179
|
+
// #region Properties (8)
|
1180
|
+
billingDays = 10;
|
1075
1181
|
deleteInvoicesPlacedDays = 10;
|
1076
1182
|
deleteSubscriptionsPlacedDays = 10;
|
1077
|
-
|
1078
|
-
* Dias em que a fatura expira após o vencimento
|
1079
|
-
*
|
1080
|
-
* */
|
1183
|
+
subscriptionSuspendedTimes = 3;
|
1081
1184
|
subscriptionsCancelDays = 3;
|
1082
1185
|
subscriptionsExpireDays = 1;
|
1083
1186
|
subscriptionsSuspendDays = 1;
|
1084
|
-
|
1085
|
-
* Dias em que a fatura é suspensa após o vencimento
|
1086
|
-
*/
|
1087
|
-
suspendDays = 3;
|
1088
|
-
// #endregion Properties (6)
|
1187
|
+
// #endregion Properties (8)
|
1089
1188
|
// #region Constructors (1)
|
1090
1189
|
constructor(data) {
|
1091
1190
|
if (data) {
|
@@ -1096,7 +1195,6 @@ class GlobalSettingMasterEntity {
|
|
1096
1195
|
}
|
1097
1196
|
}
|
1098
1197
|
}
|
1099
|
-
billingDays;
|
1100
1198
|
}
|
1101
1199
|
|
1102
1200
|
class GlobalSettingEntity {
|
@@ -1205,7 +1303,7 @@ class InviteEntity {
|
|
1205
1303
|
containerId = '';
|
1206
1304
|
createdAt = new Date();
|
1207
1305
|
doc = '';
|
1208
|
-
docType =
|
1306
|
+
docType = EDocType.CNPJ;
|
1209
1307
|
email = '';
|
1210
1308
|
expireAt = new Date(new Date().getTime() + 86400000);
|
1211
1309
|
expired = false;
|
@@ -1314,7 +1412,7 @@ class InvoicePayerEntity {
|
|
1314
1412
|
// #region Properties (6)
|
1315
1413
|
address = new AddressEntity();
|
1316
1414
|
doc = '';
|
1317
|
-
docType =
|
1415
|
+
docType = EDocType.CNPJ;
|
1318
1416
|
email = '';
|
1319
1417
|
name = '';
|
1320
1418
|
phoneNumber = null;
|
@@ -2072,7 +2170,7 @@ class LeadEntity {
|
|
2072
2170
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
2073
2171
|
doc = '';
|
2074
2172
|
/**Identificador único do lead. */
|
2075
|
-
docType =
|
2173
|
+
docType = EDocType.CNPJ;
|
2076
2174
|
/**Nome completo ou razão social do lead. */
|
2077
2175
|
email = '';
|
2078
2176
|
id = '';
|
@@ -2214,21 +2312,21 @@ class NotificationActionEntity {
|
|
2214
2312
|
}
|
2215
2313
|
|
2216
2314
|
class NotificationEntity {
|
2217
|
-
// #region Properties (
|
2315
|
+
// #region Properties (13)
|
2218
2316
|
action = new NotificationActionEntity();
|
2219
2317
|
category = NotificationCategoryEnum.ALERT;
|
2220
2318
|
createdAt = new Date();
|
2221
2319
|
data = '';
|
2222
|
-
expirationTime = 3600;
|
2223
|
-
title = '';
|
2224
2320
|
description = '';
|
2321
|
+
expirationTime = 3600;
|
2225
2322
|
id = '';
|
2226
2323
|
imageUrl = '';
|
2227
2324
|
priority = NotificationPriorityEnum.HIGH;
|
2228
2325
|
sound = true;
|
2229
2326
|
status = NotificationStatusEnum.DELIVERED;
|
2327
|
+
title = '';
|
2230
2328
|
topicName = '';
|
2231
|
-
// #endregion Properties (
|
2329
|
+
// #endregion Properties (13)
|
2232
2330
|
// #region Constructors (1)
|
2233
2331
|
constructor(data) {
|
2234
2332
|
if (data) {
|
@@ -2663,7 +2761,7 @@ class PartnerEntity {
|
|
2663
2761
|
active = true;
|
2664
2762
|
address = new AddressEntity();
|
2665
2763
|
doc = '';
|
2666
|
-
docType =
|
2764
|
+
docType = EDocType.CNPJ;
|
2667
2765
|
email = '';
|
2668
2766
|
fullName = '';
|
2669
2767
|
id = '';
|
@@ -3155,5 +3253,5 @@ class VoucherEntity {
|
|
3155
3253
|
* Generated bundle index. Do not edit.
|
3156
3254
|
*/
|
3157
3255
|
|
3158
|
-
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity,
|
3256
|
+
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, EDiscountType, EDocType, EFiscalDocModelCode, EInstallationStatus, EInvoiceStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, 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, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, TokenEntity, VoucherEntity };
|
3159
3257
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|