cecon-interfaces 1.0.75 → 1.0.77

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/dist/esm2022/feature/entities/feature.entity.mjs +25 -0
  2. package/dist/esm2022/feature/entities/index.mjs +2 -0
  3. package/dist/esm2022/feature/index.mjs +3 -0
  4. package/dist/esm2022/feature/interfaces/i-feature.mjs +2 -0
  5. package/dist/esm2022/feature/interfaces/index.mjs +2 -0
  6. package/dist/esm2022/general/enums/index.mjs +2 -1
  7. package/dist/esm2022/general/enums/payment-status.enum.mjs +13 -0
  8. package/dist/esm2022/index.mjs +4 -1
  9. package/dist/esm2022/installation/entities/installation.entity.mjs +8 -9
  10. package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
  11. package/dist/esm2022/invoice/entities/index.mjs +4 -0
  12. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +23 -0
  13. package/dist/esm2022/invoice/entities/invoice-payment-method.entity.mjs +31 -0
  14. package/dist/esm2022/invoice/entities/invoice.entity.mjs +32 -0
  15. package/dist/esm2022/invoice/enums/index.mjs +2 -0
  16. package/dist/esm2022/invoice/enums/invoices-status.enum.mjs +14 -0
  17. package/dist/esm2022/invoice/index.mjs +4 -0
  18. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +2 -0
  19. package/dist/esm2022/invoice/interfaces/i-invoice-payment-method.mjs +2 -0
  20. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +2 -0
  21. package/dist/esm2022/invoice/interfaces/index.mjs +2 -0
  22. package/dist/esm2022/subscription/entities/index.mjs +3 -0
  23. package/dist/esm2022/subscription/entities/subscription-invoice-history.entity.mjs +22 -0
  24. package/dist/esm2022/subscription/entities/subscription.entity.mjs +32 -0
  25. package/dist/esm2022/subscription/enums/index.mjs +2 -0
  26. package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +15 -0
  27. package/dist/esm2022/subscription/index.mjs +4 -0
  28. package/dist/esm2022/subscription/interfaces/i-subscription-invoice-history.mjs +2 -0
  29. package/dist/esm2022/subscription/interfaces/i-subscription.mjs +2 -0
  30. package/dist/esm2022/subscription/interfaces/index.mjs +2 -0
  31. package/dist/feature/entities/feature.entity.d.ts +15 -0
  32. package/dist/feature/entities/feature.entity.js +29 -0
  33. package/dist/feature/entities/index.d.ts +1 -0
  34. package/dist/feature/entities/index.js +5 -0
  35. package/dist/feature/index.d.ts +2 -0
  36. package/dist/feature/index.js +18 -0
  37. package/dist/feature/interfaces/i-feature.d.ts +13 -0
  38. package/dist/feature/interfaces/i-feature.js +2 -0
  39. package/dist/feature/interfaces/index.d.ts +1 -0
  40. package/dist/feature/interfaces/index.js +2 -0
  41. package/dist/fesm2022/cecon-interfaces.mjs +210 -9
  42. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  43. package/dist/general/enums/index.d.ts +1 -0
  44. package/dist/general/enums/index.js +3 -1
  45. package/dist/general/enums/payment-status.enum.d.ts +11 -0
  46. package/dist/general/enums/payment-status.enum.js +15 -0
  47. package/dist/index.d.ts +3 -0
  48. package/dist/index.js +3 -0
  49. package/dist/installation/entities/installation.entity.d.ts +5 -6
  50. package/dist/installation/entities/installation.entity.js +7 -8
  51. package/dist/installation/interfaces/i-installation.d.ts +5 -6
  52. package/dist/invoice/entities/index.d.ts +3 -0
  53. package/dist/invoice/entities/index.js +9 -0
  54. package/dist/invoice/entities/invoice-item.entity.d.ts +12 -0
  55. package/dist/invoice/entities/invoice-item.entity.js +27 -0
  56. package/dist/invoice/entities/invoice-payment-method.entity.d.ts +20 -0
  57. package/dist/invoice/entities/invoice-payment-method.entity.js +35 -0
  58. package/dist/invoice/entities/invoice.entity.d.ts +23 -0
  59. package/dist/invoice/entities/invoice.entity.js +36 -0
  60. package/dist/invoice/enums/index.d.ts +1 -0
  61. package/dist/invoice/enums/index.js +5 -0
  62. package/dist/invoice/enums/invoices-status.enum.d.ts +12 -0
  63. package/dist/invoice/enums/invoices-status.enum.js +16 -0
  64. package/dist/invoice/index.d.ts +3 -0
  65. package/dist/invoice/index.js +19 -0
  66. package/dist/invoice/interfaces/i-invoice-item.d.ts +10 -0
  67. package/dist/invoice/interfaces/i-invoice-item.js +2 -0
  68. package/dist/invoice/interfaces/i-invoice-payment-method.d.ts +18 -0
  69. package/dist/invoice/interfaces/i-invoice-payment-method.js +2 -0
  70. package/dist/invoice/interfaces/i-invoice.d.ts +21 -0
  71. package/dist/invoice/interfaces/i-invoice.js +2 -0
  72. package/dist/invoice/interfaces/index.d.ts +3 -0
  73. package/dist/invoice/interfaces/index.js +2 -0
  74. package/dist/package.json +1 -1
  75. package/dist/subscription/entities/index.d.ts +2 -0
  76. package/dist/subscription/entities/index.js +7 -0
  77. package/dist/subscription/entities/subscription-invoice-history.entity.d.ts +11 -0
  78. package/dist/subscription/entities/subscription-invoice-history.entity.js +26 -0
  79. package/dist/subscription/entities/subscription.entity.d.ts +22 -0
  80. package/dist/subscription/entities/subscription.entity.js +36 -0
  81. package/dist/subscription/enums/index.d.ts +1 -0
  82. package/dist/subscription/enums/index.js +5 -0
  83. package/dist/subscription/enums/subscription-status.enum.d.ts +13 -0
  84. package/dist/subscription/enums/subscription-status.enum.js +17 -0
  85. package/dist/subscription/index.d.ts +3 -0
  86. package/dist/subscription/index.js +19 -0
  87. package/dist/subscription/interfaces/i-subscription-invoice-history.d.ts +9 -0
  88. package/dist/subscription/interfaces/i-subscription-invoice-history.js +2 -0
  89. package/dist/subscription/interfaces/i-subscription.d.ts +20 -0
  90. package/dist/subscription/interfaces/i-subscription.js +2 -0
  91. package/dist/subscription/interfaces/index.d.ts +2 -0
  92. package/dist/subscription/interfaces/index.js +2 -0
  93. package/package.json +1 -1
@@ -398,6 +398,19 @@ var OsEnum;
398
398
  OsEnum["UNKNOWN"] = "UNKNOWN";
399
399
  })(OsEnum || (OsEnum = {}));
400
400
 
401
+ var PaymentStatusEnum;
402
+ (function (PaymentStatusEnum) {
403
+ PaymentStatusEnum["PENDING"] = "PENDING";
404
+ PaymentStatusEnum["COMPLETED"] = "COMPLETED";
405
+ PaymentStatusEnum["FAILED"] = "FAILED";
406
+ PaymentStatusEnum["CANCELED"] = "CANCELED";
407
+ PaymentStatusEnum["REFUNDED"] = "REFUNDED";
408
+ PaymentStatusEnum["AUTHORIZED"] = "AUTHORIZED";
409
+ PaymentStatusEnum["DECLINED"] = "DECLINED";
410
+ PaymentStatusEnum["EXPIRED"] = "EXPIRED";
411
+ PaymentStatusEnum["DISPUTED"] = "DISPUTED";
412
+ })(PaymentStatusEnum || (PaymentStatusEnum = {}));
413
+
401
414
  var LegalEntiyEnum;
402
415
  (function (LegalEntiyEnum) {
403
416
  LegalEntiyEnum["LEGAL"] = "Pessoa Jur\u00EDdica";
@@ -685,26 +698,50 @@ class MetadataEntity {
685
698
 
686
699
  // index.ts
687
700
 
701
+ class FeatureEntity {
702
+ // #region Properties (10)
703
+ appId = '';
704
+ appMode = null;
705
+ companyId = '';
706
+ containerId = '';
707
+ createdAt = new Date();
708
+ deviceId = '';
709
+ id = '';
710
+ installationId = '';
711
+ planId = '';
712
+ subscriptionId = '';
713
+ // #endregion Properties (10)
714
+ // #region Constructors (1)
715
+ constructor(data) {
716
+ if (data) {
717
+ for (let key in data) {
718
+ if (data.hasOwnProperty(key) && key in this) {
719
+ this[key] = data[key];
720
+ }
721
+ }
722
+ }
723
+ }
724
+ }
725
+
688
726
  class InstallationEntity {
689
- // #region Properties (17)
690
- activationDate = new Date();
727
+ // #region Properties (16)
691
728
  active = false;
729
+ appIconUrl = '';
692
730
  appId = '';
731
+ appName = '';
693
732
  createdAt = new Date();
694
733
  customConfig = null;
695
734
  expirationDate = new Date();
696
- appIconUrl = '';
735
+ featureId = '';
697
736
  id = '';
698
- isPaid = false;
737
+ lastCheckAt = new Date();
699
738
  mode = AppModeEnum.NATI_GO;
700
- appName = '';
701
- orderId = '';
702
- renewPaymentDate = new Date();
703
739
  subscriptionId = '';
740
+ suspended = false;
704
741
  tags = [];
705
742
  updatedAt = new Date();
706
743
  version = '';
707
- // #endregion Properties (17)
744
+ // #endregion Properties (16)
708
745
  // #region Constructors (1)
709
746
  constructor(data) {
710
747
  if (data) {
@@ -758,6 +795,104 @@ class InviteEntity {
758
795
  }
759
796
  }
760
797
 
798
+ class InvoiceItemEntity {
799
+ // #region Properties (8)
800
+ description = '';
801
+ discounts = 0;
802
+ id = '';
803
+ quantity = 1;
804
+ sku = '';
805
+ taxes = 0;
806
+ totalPrice = 0;
807
+ unitPrice = 0;
808
+ // #endregion Properties (8)
809
+ // #region Constructors (1)
810
+ constructor(data) {
811
+ if (data) {
812
+ for (let key in data) {
813
+ if (data.hasOwnProperty(key) && key in this) {
814
+ this[key] = data[key];
815
+ }
816
+ }
817
+ }
818
+ }
819
+ }
820
+
821
+ class InvoicePaymentMethodEntity {
822
+ // #region Properties (15)
823
+ amount = 0;
824
+ brand = '';
825
+ createdAt = new Date();
826
+ currency = '';
827
+ expMonth = 0;
828
+ expYear = 0;
829
+ id = '';
830
+ last4 = '';
831
+ name = '';
832
+ pixQrCode = '';
833
+ pixUrl = '';
834
+ status = PaymentStatusEnum.PENDING;
835
+ transactionId = '';
836
+ type = PaymentTypeEnum.CREDIT_CARD;
837
+ updatedAt = new Date();
838
+ // #endregion Properties (15)
839
+ // #region Constructors (1)
840
+ constructor(data) {
841
+ if (data) {
842
+ for (let key in data) {
843
+ if (data.hasOwnProperty(key) && key in this) {
844
+ this[key] = data[key];
845
+ }
846
+ }
847
+ }
848
+ }
849
+ }
850
+
851
+ var InvoiceStatusEnum;
852
+ (function (InvoiceStatusEnum) {
853
+ InvoiceStatusEnum["ACTIVE"] = "ACTIVE";
854
+ InvoiceStatusEnum["CANCELLED"] = "CANCELLED";
855
+ InvoiceStatusEnum["EXPIRED"] = "EXPIRED";
856
+ InvoiceStatusEnum["PENDING"] = "PENDING";
857
+ InvoiceStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
858
+ InvoiceStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
859
+ InvoiceStatusEnum["TRIAL"] = "TRIAL";
860
+ InvoiceStatusEnum["FREE"] = "FREE";
861
+ InvoiceStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
862
+ InvoiceStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
863
+ })(InvoiceStatusEnum || (InvoiceStatusEnum = {}));
864
+
865
+ class InvoiceEntity {
866
+ // #region Properties (16)
867
+ companyId = '';
868
+ containerId = '';
869
+ createdAt = new Date();
870
+ discounts = 0;
871
+ dueDateAt = new Date();
872
+ id = '';
873
+ invoiceNumber = '';
874
+ items = [];
875
+ notes = '';
876
+ paidDateAt = new Date();
877
+ paymentMethod = [];
878
+ status = InvoiceStatusEnum.PENDING;
879
+ subtotal = 0;
880
+ taxes = 0;
881
+ total = 0;
882
+ updatedAt = new Date();
883
+ // #endregion Properties (16)
884
+ // #region Constructors (1)
885
+ constructor(data) {
886
+ if (data) {
887
+ for (let key in data) {
888
+ if (data.hasOwnProperty(key) && key in this) {
889
+ this[key] = data[key];
890
+ }
891
+ }
892
+ }
893
+ }
894
+ }
895
+
761
896
  class AccountInformationsEntity {
762
897
  // #region Properties (2)
763
898
  key = '';
@@ -1909,6 +2044,72 @@ class PurchaseEntity extends OrderEntity {
1909
2044
  }
1910
2045
  }
1911
2046
 
2047
+ class SubscriptionInvoiceHistoryEntity {
2048
+ // #region Properties (6)
2049
+ amount = 0;
2050
+ createdAt = new Date();
2051
+ dueDate = new Date();
2052
+ invoiceId = '';
2053
+ paidDate = new Date();
2054
+ status = OrderStatusEnum.PENDING;
2055
+ // #endregion Properties (6)
2056
+ // #region Constructors (1)
2057
+ constructor(data) {
2058
+ if (data) {
2059
+ for (let key in data) {
2060
+ if (data.hasOwnProperty(key) && key in this) {
2061
+ this[key] = data[key];
2062
+ }
2063
+ }
2064
+ }
2065
+ }
2066
+ }
2067
+
2068
+ var SubscriptionStatusEnum;
2069
+ (function (SubscriptionStatusEnum) {
2070
+ SubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
2071
+ SubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
2072
+ SubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
2073
+ SubscriptionStatusEnum["PENDING"] = "PENDING";
2074
+ SubscriptionStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
2075
+ SubscriptionStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
2076
+ SubscriptionStatusEnum["TRIAL"] = "TRIAL";
2077
+ SubscriptionStatusEnum["FREE"] = "FREE";
2078
+ SubscriptionStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
2079
+ SubscriptionStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
2080
+ SubscriptionStatusEnum["SUSPENDED"] = "SUSPENDED";
2081
+ })(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
2082
+
2083
+ class SubscriptionEntity {
2084
+ // #region Properties (15)
2085
+ cancellationReason = '';
2086
+ createdAt = new Date();
2087
+ customerId = '';
2088
+ endDate = new Date();
2089
+ id = '';
2090
+ interval = 0;
2091
+ intervalType = IntervalTypeEnum.MONTHS;
2092
+ invoiceHistory = [];
2093
+ notes = '';
2094
+ planId = '';
2095
+ renewPaymentDate = new Date();
2096
+ startDate = new Date();
2097
+ status = SubscriptionStatusEnum.PENDING;
2098
+ trialEndDate = new Date();
2099
+ updatedAt = new Date();
2100
+ // #endregion Properties (15)
2101
+ // #region Constructors (1)
2102
+ constructor(data) {
2103
+ if (data) {
2104
+ for (let key in data) {
2105
+ if (data.hasOwnProperty(key) && key in this) {
2106
+ this[key] = data[key];
2107
+ }
2108
+ }
2109
+ }
2110
+ }
2111
+ }
2112
+
1912
2113
  class TokenEntity {
1913
2114
  // #region Properties (18)
1914
2115
  active = true;
@@ -1940,5 +2141,5 @@ class TokenEntity {
1940
2141
  * Generated bundle index. Do not edit.
1941
2142
  */
1942
2143
 
1943
- export { AccountInformationsEntity, AddressEntity, AppCategoryEnum, AppEntity, AppHeaderTypeEnum, AppInfoEntity, AppModeEnum, BaseEntity, BooleanStringEnum, CarouselImageEntity, CompanyEntity, CompanyKeysEnum, CompanyMessageTypeEnum, ContainerEntity, CoordsEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, 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, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PlanEntity, PlanFeatureEntity, PlanIdentifierEnum, PlatfomrEnum, PurchaseEntity, RatingEntity, SponsorshipValuesEntity, TokenEntity };
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 };
1944
2145
  //# sourceMappingURL=cecon-interfaces.mjs.map