cecon-interfaces 1.2.12 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/app/enums/mode.enum.d.ts +5 -1
  2. package/dist/app/enums/mode.enum.js +5 -1
  3. package/dist/esm2022/app/enums/mode.enum.mjs +6 -2
  4. package/dist/esm2022/evolution/entities/chat-woot.entity.mjs +20 -0
  5. package/dist/esm2022/evolution/entities/evolution.entity.mjs +22 -0
  6. package/dist/esm2022/evolution/entities/hash.entity.mjs +16 -0
  7. package/dist/esm2022/evolution/entities/index.mjs +6 -0
  8. package/dist/esm2022/evolution/entities/instance.entity.mjs +17 -0
  9. package/dist/esm2022/evolution/entities/qrcode.entity.mjs +17 -0
  10. package/dist/esm2022/evolution/enums/events.enum.mjs +24 -0
  11. package/dist/esm2022/evolution/enums/index.mjs +2 -0
  12. package/dist/esm2022/evolution/index.mjs +4 -0
  13. package/dist/esm2022/evolution/interfaces/i-chatwoot.mjs +2 -0
  14. package/dist/esm2022/evolution/interfaces/i-evolution.mjs +2 -0
  15. package/dist/esm2022/evolution/interfaces/i-hash.mjs +2 -0
  16. package/dist/esm2022/evolution/interfaces/i-instance.mjs +2 -0
  17. package/dist/esm2022/evolution/interfaces/i-qrcode.mjs +2 -0
  18. package/dist/esm2022/evolution/interfaces/index.mjs +2 -0
  19. package/dist/esm2022/index.mjs +3 -1
  20. package/dist/esm2022/wa-server/entities/index.mjs +2 -0
  21. package/dist/esm2022/wa-server/entities/wa-server.entity.mjs +25 -0
  22. package/dist/esm2022/wa-server/enums/index.mjs +2 -0
  23. package/dist/esm2022/wa-server/enums/status.enum.mjs +10 -0
  24. package/dist/esm2022/wa-server/index.mjs +4 -0
  25. package/dist/esm2022/wa-server/interfaces/i-wa-server.mjs +2 -0
  26. package/dist/esm2022/wa-server/interfaces/index.mjs +2 -0
  27. package/dist/evolution/entities/chat-woot.entity.d.ts +11 -0
  28. package/dist/evolution/entities/chat-woot.entity.js +24 -0
  29. package/dist/evolution/entities/evolution.entity.d.ts +14 -0
  30. package/dist/evolution/entities/evolution.entity.js +26 -0
  31. package/dist/evolution/entities/hash.entity.d.ts +5 -0
  32. package/dist/evolution/entities/hash.entity.js +20 -0
  33. package/dist/evolution/entities/index.d.ts +5 -0
  34. package/dist/evolution/entities/index.js +13 -0
  35. package/dist/evolution/entities/instance.entity.d.ts +6 -0
  36. package/dist/evolution/entities/instance.entity.js +21 -0
  37. package/dist/evolution/entities/qrcode.entity.d.ts +6 -0
  38. package/dist/evolution/entities/qrcode.entity.js +21 -0
  39. package/dist/evolution/enums/events.enum.d.ts +22 -0
  40. package/dist/evolution/enums/events.enum.js +26 -0
  41. package/dist/evolution/enums/index.d.ts +1 -0
  42. package/dist/evolution/enums/index.js +5 -0
  43. package/dist/evolution/index.d.ts +3 -0
  44. package/dist/evolution/index.js +19 -0
  45. package/dist/evolution/interfaces/i-chatwoot.d.ts +9 -0
  46. package/dist/evolution/interfaces/i-chatwoot.js +2 -0
  47. package/dist/evolution/interfaces/i-evolution.d.ts +13 -0
  48. package/dist/evolution/interfaces/i-evolution.js +2 -0
  49. package/dist/evolution/interfaces/i-hash.d.ts +3 -0
  50. package/dist/evolution/interfaces/i-hash.js +2 -0
  51. package/dist/evolution/interfaces/i-instance.d.ts +4 -0
  52. package/dist/evolution/interfaces/i-instance.js +2 -0
  53. package/dist/evolution/interfaces/i-qrcode.d.ts +4 -0
  54. package/dist/evolution/interfaces/i-qrcode.js +2 -0
  55. package/dist/evolution/interfaces/index.d.ts +5 -0
  56. package/dist/evolution/interfaces/index.js +2 -0
  57. package/dist/fesm2022/cecon-interfaces.mjs +153 -2
  58. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.js +2 -0
  61. package/dist/package.json +1 -1
  62. package/dist/wa-server/entities/index.d.ts +1 -0
  63. package/dist/wa-server/entities/index.js +5 -0
  64. package/dist/wa-server/entities/wa-server.entity.d.ts +16 -0
  65. package/dist/wa-server/entities/wa-server.entity.js +29 -0
  66. package/dist/wa-server/enums/index.d.ts +1 -0
  67. package/dist/wa-server/enums/index.js +5 -0
  68. package/dist/wa-server/enums/status.enum.d.ts +8 -0
  69. package/dist/wa-server/enums/status.enum.js +12 -0
  70. package/dist/wa-server/index.d.ts +3 -0
  71. package/dist/wa-server/index.js +19 -0
  72. package/dist/wa-server/interfaces/i-wa-server.d.ts +14 -0
  73. package/dist/wa-server/interfaces/i-wa-server.js +2 -0
  74. package/dist/wa-server/interfaces/index.d.ts +1 -0
  75. package/dist/wa-server/interfaces/index.js +2 -0
  76. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ export interface IEvolutionChatWoot {
2
+ enabled: boolean;
3
+ accountId: string;
4
+ token: string;
5
+ url: string;
6
+ signMsg: boolean;
7
+ nameInbox: string;
8
+ webhookUrl: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { EEvolutionEvent } from '../enums/events.enum';
2
+ import { IEvolutionChatWoot } from './i-chatwoot';
3
+ import { IEvolutionHash } from './i-hash';
4
+ import { IEvolutionInstance } from './i-instance';
5
+ import { IEvolutionQrcode } from './i-qrcode';
6
+ export interface IEvolution {
7
+ instance: IEvolutionInstance;
8
+ hash: IEvolutionHash;
9
+ webhook: string;
10
+ events: EEvolutionEvent[];
11
+ qrcode: IEvolutionQrcode;
12
+ chatwoot: IEvolutionChatWoot | null;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface IEvolutionHash {
2
+ apikey: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IEvolutionInstance {
2
+ instanceName: string;
3
+ status: 'created' | 'updated' | 'deleted' | string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IEvolutionQrcode {
2
+ code: string | null;
3
+ base64: string | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export { IEvolutionChatWoot } from './i-chatwoot';
2
+ export { IEvolution } from './i-evolution';
3
+ export { IEvolutionHash } from './i-hash';
4
+ export { IEvolutionInstance } from './i-instance';
5
+ export { IEvolutionQrcode } from './i-qrcode';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -658,7 +658,11 @@ var EAppMode;
658
658
  EAppMode["SCREEN"] = "SCREEN";
659
659
  EAppMode["NATI_GO"] = "NATIGO";
660
660
  EAppMode["SAT_MANAGER"] = "SAT-MANAGER";
661
- EAppMode["PDV_NATI"] = "PDV-NATI";
661
+ EAppMode["NATI_PDV"] = "NATI-PDV";
662
+ EAppMode["NATI_PHP"] = "NATI_PHP";
663
+ EAppMode["WA_SERVER"] = "WA_SERVER";
664
+ EAppMode["NATI_TYPE_BOT"] = "NATI_TYPE_BOT";
665
+ EAppMode["NATI_ST"] = "NATI_ST";
662
666
  EAppMode["RABBIT"] = "RABBIT";
663
667
  EAppMode["FISCAL_MANAGER"] = "FISCAL-MANAGER";
664
668
  EAppMode["NATI_SIGN"] = "NATI-SIGN";
@@ -1759,6 +1763,119 @@ class MetadataEntity {
1759
1763
 
1760
1764
  // index.ts
1761
1765
 
1766
+ class EvolutionChatWootEntity {
1767
+ // #region Properties (7)
1768
+ accountId = '';
1769
+ enabled = false;
1770
+ nameInbox = '';
1771
+ signMsg = false;
1772
+ token = '';
1773
+ url = '';
1774
+ webhookUrl = '';
1775
+ constructor(data) {
1776
+ if (data) {
1777
+ for (let key in data) {
1778
+ if (data.hasOwnProperty(key) && key in this) {
1779
+ this[key] = data[key];
1780
+ }
1781
+ }
1782
+ }
1783
+ }
1784
+ }
1785
+
1786
+ class EvolutionHashEntity {
1787
+ // #region Properties (1)
1788
+ apikey = '';
1789
+ // #endregion Properties (1)
1790
+ // #region Constructors (1)
1791
+ constructor(data) {
1792
+ if (data) {
1793
+ for (let key in data) {
1794
+ if (data.hasOwnProperty(key) && key in this) {
1795
+ this[key] = data[key];
1796
+ }
1797
+ }
1798
+ }
1799
+ }
1800
+ }
1801
+
1802
+ class EvolutionInstanceEntity {
1803
+ // #region Properties (2)
1804
+ instanceName = '';
1805
+ status = '';
1806
+ // #endregion Properties (2)
1807
+ // #region Constructors (1)
1808
+ constructor(data) {
1809
+ if (data) {
1810
+ for (let key in data) {
1811
+ if (data.hasOwnProperty(key) && key in this) {
1812
+ this[key] = data[key];
1813
+ }
1814
+ }
1815
+ }
1816
+ }
1817
+ }
1818
+
1819
+ class EvolutionQrcodeEntity {
1820
+ // #region Properties (2)
1821
+ base64 = null;
1822
+ code = null;
1823
+ // #endregion Properties (2)
1824
+ // #region Constructors (1)
1825
+ constructor(data) {
1826
+ if (data) {
1827
+ for (let key in data) {
1828
+ if (data.hasOwnProperty(key) && key in this) {
1829
+ this[key] = data[key];
1830
+ }
1831
+ }
1832
+ }
1833
+ }
1834
+ }
1835
+
1836
+ class EvolutionEntity {
1837
+ // #region Properties (6)
1838
+ chatwoot = null;
1839
+ events = [];
1840
+ hash = new EvolutionHashEntity();
1841
+ instance = new EvolutionInstanceEntity();
1842
+ qrcode = new EvolutionQrcodeEntity();
1843
+ webhook = '';
1844
+ constructor(data) {
1845
+ if (data) {
1846
+ for (let key in data) {
1847
+ if (data.hasOwnProperty(key) && key in this) {
1848
+ this[key] = data[key];
1849
+ }
1850
+ }
1851
+ }
1852
+ }
1853
+ }
1854
+
1855
+ var EEvolutionEvent;
1856
+ (function (EEvolutionEvent) {
1857
+ EEvolutionEvent["APPLICATION_STARTUP"] = "APPLICATION_STARTUP";
1858
+ EEvolutionEvent["QRCODE_UPDATED"] = "QRCODE_UPDATED";
1859
+ EEvolutionEvent["MESSAGES_SET"] = "MESSAGES_SET";
1860
+ EEvolutionEvent["MESSAGES_UPSERT"] = "MESSAGES_UPSERT";
1861
+ EEvolutionEvent["MESSAGES_UPDATE"] = "MESSAGES_UPDATE";
1862
+ EEvolutionEvent["MESSAGES_DELETE"] = "MESSAGES_DELETE";
1863
+ EEvolutionEvent["SEND_MESSAGE"] = "SEND_MESSAGE";
1864
+ EEvolutionEvent["CONTACTS_SET"] = "CONTACTS_SET";
1865
+ EEvolutionEvent["CONTACTS_UPSERT"] = "CONTACTS_UPSERT";
1866
+ EEvolutionEvent["CONTACTS_UPDATE"] = "CONTACTS_UPDATE";
1867
+ EEvolutionEvent["PRESENCE_UPDATE"] = "PRESENCE_UPDATE";
1868
+ EEvolutionEvent["CHATS_SET"] = "CHATS_SET";
1869
+ EEvolutionEvent["CHATS_UPSERT"] = "CHATS_UPSERT";
1870
+ EEvolutionEvent["CHATS_UPDATE"] = "CHATS_UPDATE";
1871
+ EEvolutionEvent["CHATS_DELETE"] = "CHATS_DELETE";
1872
+ EEvolutionEvent["GROUPS_UPSERT"] = "GROUPS_UPSERT";
1873
+ EEvolutionEvent["GROUP_UPDATE"] = "GROUP_UPDATE";
1874
+ EEvolutionEvent["GROUP_PARTICIPANTS_UPDATE"] = "GROUP_PARTICIPANTS_UPDATE";
1875
+ EEvolutionEvent["CONNECTION_UPDATE"] = "CONNECTION_UPDATE";
1876
+ EEvolutionEvent["NEW_JWT_TOKE"] = "NEW_JWT_TOKE";
1877
+ })(EEvolutionEvent || (EEvolutionEvent = {}));
1878
+
1762
1879
  class FeatureEntity {
1763
1880
  // #region Properties (11)
1764
1881
  appId = '';
@@ -3702,9 +3819,43 @@ class VoucherEntity {
3702
3819
  partnerId;
3703
3820
  }
3704
3821
 
3822
+ var EWaServerStatus;
3823
+ (function (EWaServerStatus) {
3824
+ EWaServerStatus["CONNECTED"] = "CONNECTED";
3825
+ EWaServerStatus["DISCONNECTED"] = "DISCONNECTED";
3826
+ EWaServerStatus["RECONNECTING"] = "RECONNECTING";
3827
+ EWaServerStatus["RUNNING"] = "RUNNING";
3828
+ EWaServerStatus["STOPPED"] = "STOPPED";
3829
+ EWaServerStatus["DELETED"] = "DELETED";
3830
+ })(EWaServerStatus || (EWaServerStatus = {}));
3831
+
3832
+ class WaServerEntity {
3833
+ // #region Properties (11)
3834
+ active = false;
3835
+ baseUrl = '';
3836
+ createdAt = new Date();
3837
+ globalApiKey = '';
3838
+ id = '';
3839
+ installIds = [];
3840
+ name = '';
3841
+ sessions = 0;
3842
+ stack = '';
3843
+ status = EWaServerStatus.STOPPED;
3844
+ updatedAt = new Date();
3845
+ constructor(data) {
3846
+ if (data) {
3847
+ for (let key in data) {
3848
+ if (data.hasOwnProperty(key) && key in this) {
3849
+ this[key] = data[key];
3850
+ }
3851
+ }
3852
+ }
3853
+ }
3854
+ }
3855
+
3705
3856
  /**
3706
3857
  * Generated bundle index. Do not edit.
3707
3858
  */
3708
3859
 
3709
- export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BillingEntity, BillingOrderEntity, BillingPaymentEntity, BillingTotalEntity, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, CustomerMemberEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DesenfilaEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, EBillingStatus, EBooleanString, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, ECustomerType, EDiscountType, EDocType, EFiscalDocModelCode, EInstallationStatus, EIntervalType, EInvoiceStatus, ELeadOrigin, ELegalEntiy, EOrderDeliveryMode, EOrderTiming, EOrderType, EOs, EPaymentChannel, EPaymentMode, EPaymentProvider, EPaymentStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPlatform, EPubSub, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, EGtintype as GTINTypeEnum, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, LeadEntity, LeadStatusEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderDeliveryEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderMerchantEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentTokenDataEntity, PaymentTokenEntity, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, ProductBrandEntity, ProductCompanyEntity, ProductContainerEntity, ProductNcmEntity, ProductGlobalEntity as ProductglobalEntity, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionBaseEntity, SubscriptionBaseItemEntity, SubscriptionBaseLogEntity, SubscriptionCompanyEntity, SubscriptionCompanyProfileEntity, SubscriptionCustomerEntity, SubscriptionCustomerProfileEntity, TokenEntity, VoucherEntity };
3860
+ export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BillingEntity, BillingOrderEntity, BillingPaymentEntity, BillingTotalEntity, CampaignEntity, CarouselImageEntity, ClientAplicationCredentialEntity, ClientAplicationEntity, ClientEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, CustomerEntity, CustomerMemberEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DesenfilaEntity, DeviceEntity, EAppCategory, EAppHeaderType, EAppMode, EAppType, EBankSlipStatus, EBillingStatus, EBooleanString, ECampaignStatus, ECompanyKeys, ECompanyMessageType, ECustomerInterval, ECustomerStatus, ECustomerType, EDiscountType, EDocType, EEvolutionEvent, EFiscalDocModelCode, EInstallationStatus, EIntervalType, EInvoiceStatus, ELeadOrigin, ELegalEntiy, EOrderDeliveryMode, EOrderTiming, EOrderType, EOs, EPaymentChannel, EPaymentMode, EPaymentProvider, EPaymentStatus, EPaymentType, EPlanFeatureType, EPlanIdentifier, EPlatform, EPubSub, EPubSubTopicType, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, EWaServerStatus, EvolutionChatWootEntity, EvolutionEntity, EvolutionHashEntity, EvolutionInstanceEntity, EvolutionQrcodeEntity, FeatureEntity, EGtintype as GTINTypeEnum, GlobalSettingEntity, GlobalSettingIuguEntity, GlobalSettingMasterEntity, InstallationEntity, InviteEntity, InviteStatusEnum, InvoiceBankSlipEntity, InvoiceCreditCardEntity, InvoiceEntity, InvoiceItemEntity, InvoiceLogEntity, InvoicePayerEntity, InvoicePixEntity, IuguAccountEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguChargeCreditCardEntity, IuguCustomerEntity, IuguInvoiceBankSlipEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LastVerificationRequestDataEntity, LeadEntity, LeadStatusEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderDeliveryEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderMerchantEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentTokenDataEntity, PaymentTokenEntity, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, ProductBrandEntity, ProductCompanyEntity, ProductContainerEntity, ProductNcmEntity, ProductGlobalEntity as ProductglobalEntity, PubsubSubscriptionChangeStatusEntity, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionBaseEntity, SubscriptionBaseItemEntity, SubscriptionBaseLogEntity, SubscriptionCompanyEntity, SubscriptionCompanyProfileEntity, SubscriptionCustomerEntity, SubscriptionCustomerProfileEntity, TokenEntity, VoucherEntity, WaServerEntity };
3710
3861
  //# sourceMappingURL=cecon-interfaces.mjs.map