UNPKG

scheunemann-interfaces

Version:
1,905 lines (1,799 loc) 185 kB
class CoordsEntity { // #region Properties (2) latitude = 0; longitude = 0; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class AddressEntity { // #region Properties (8) city = ''; complement = ''; coords = new CoordsEntity(); neighborhood = ''; postalCode = ''; state = ''; streetName = ''; streetNumber = ''; // #endregion Properties (8) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class BaseEntity { // #region Properties (6) active = true; createdAt = new Date(); updatedAt = new Date(); id = ''; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class CarouselImageEntity { // #region Properties (3) caption = ''; id = ''; url = ''; // #endregion Properties (3) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class CustomVariableEntity { // #region Properties (2) name = ''; value = ''; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DeliveryAreaEntity { // #region Properties (8) deliveryFee = 0; id = ''; latlngs = []; maxTime = 0; minTime = 0; minimumOrderValue = 0; name = ''; sequence = 0; // #endregion Properties (8) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DeliveryAreaFixedEntity { // #region Properties (5) active = false; deliveryFee = 0; maxTime = 0; minTime = 0; minimumOrderValue = 0; // #endregion Properties (5) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class MessagerChannelEntity { // #region Properties (3) channelId = ''; id = ''; type = ''; // #endregion Properties (3) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class MobyoApiConfigEntity { // #region Properties (6) hasIntegration = false; hasPrint = false; integrationUrl = ''; printCols = 40; printInterface = ''; printType = ''; // #endregion Properties (6) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } var ELeadOrigin; (function (ELeadOrigin) { ELeadOrigin["FACEBOOK_ADS"] = "Facebook Ads"; ELeadOrigin["GOOGLE_ADS"] = "Google Ads"; ELeadOrigin["EMAIL_MARKETING"] = "Email Marketing"; ELeadOrigin["REFERRED_BY_FRIEND"] = "Indica\u00E7\u00E3o de amigo"; ELeadOrigin["ORGANIC_SEARCH"] = "Busca org\u00E2nica"; ELeadOrigin["DIRECT_VISIT"] = "Visita Direta"; ELeadOrigin["OTHERS"] = "Outros"; })(ELeadOrigin || (ELeadOrigin = {})); class OriginEntity { // #region Properties (6) campaign = ''; contactPoint = ''; date = 0; details = ''; referrer = ''; type = ELeadOrigin.OTHERS; // #endregion Properties (6) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentCardEntity { // #region Properties (3) brand = ''; maskedNumber = ''; tokenId = ''; // #endregion Properties (3) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentCashEntity { // #region Properties (1) changeFor = 0; // #endregion Properties (1) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } var EPaymentChannel; (function (EPaymentChannel) { EPaymentChannel["APP"] = "APP"; EPaymentChannel["DELIVERY"] = "DELIVERY"; EPaymentChannel["AUTOMATION"] = "AUTOMATION"; EPaymentChannel["PHONE"] = "PHONE"; EPaymentChannel["MAIL"] = "MAIL"; EPaymentChannel["KIOSK"] = "KIOSK"; EPaymentChannel["QR_CODE"] = "QR_CODE"; EPaymentChannel["WEBSITE"] = "WEBSITE"; })(EPaymentChannel || (EPaymentChannel = {})); var EPaymentMode; (function (EPaymentMode) { EPaymentMode["ELECTRONIC"] = "ELECTRONIC"; EPaymentMode["MANUAL"] = "MANUAL"; EPaymentMode["DIGITAL"] = "DIGITAL"; })(EPaymentMode || (EPaymentMode = {})); var EPaymentType; (function (EPaymentType) { EPaymentType["CREDIT_CARD"] = "CREDIT_CARD"; EPaymentType["DEBIT_CARD"] = "DEBIT_CARD"; EPaymentType["CASH"] = "CASH"; EPaymentType["PIX"] = "PIX"; EPaymentType["MOBILE_PAYMENT"] = "MOBILE_PAYMENT"; EPaymentType["CHECK"] = "CHECK"; EPaymentType["CRYPTOCURRENCY"] = "CRYPTOCURRENCY"; EPaymentType["ELECTRONIC_BANKING"] = "ELECTRONIC_BANKING"; EPaymentType["MONEY_ORDER"] = "MONEY_ORDER"; EPaymentType["PREPAID_CARD"] = "PREPAID_CARD"; EPaymentType["E_WALLET"] = "E_WALLET"; EPaymentType["DIRECT_DEBIT"] = "DIRECT_DEBIT"; EPaymentType["PAYPAL"] = "PAYPAL"; EPaymentType["CHECKOUT_PRO"] = "CHECKOUT_PRO"; EPaymentType["WIRE_TRANSFER"] = "WIRE_TRANSFER"; EPaymentType["GIFT_CARD"] = "GIFT_CARD"; EPaymentType["VOUCHER"] = "VOUCHER"; EPaymentType["BILLING"] = "BILLING"; EPaymentType["BANK_SLIP"] = "BANK_SLIP"; EPaymentType["NONE"] = "NONE"; })(EPaymentType || (EPaymentType = {})); class PaymentMethodOptionEntity { // #region Properties (13) active = false; channel = EPaymentChannel.AUTOMATION; createdAt = new Date(); fee = 0; id = ''; index = 0; maxAmount = 0; minAmount = 0; mode = EPaymentMode.MANUAL; name = ''; token = ''; type = EPaymentType.CREDIT_CARD; updatedAt = new Date(); // #endregion Properties (13) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentMethodEntity { // #region Properties (11) card = null; cash = null; code = ''; currency = 'BRL'; id = ''; method = EPaymentType.CASH; pix = null; prepaid = false; type = 'OFFLINE'; value = 0; wallet = null; // #endregion Properties (11) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentPixEntity { // #region Properties (2) pixKey = ''; urlQrImage = ''; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentProviderAgentEntity { // #region Properties (2) accountId = ''; partnerId = ''; name = ''; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentProviderEntity { // #region Properties (13) accountId = ''; active = false; agent = new PaymentProviderAgentEntity(); customerId = ''; liveApiToken = ''; name = ''; paymentTokens = []; subscriptionId = ''; subscriptions = ''; testApiToken = ''; userApiToken = ''; verified = false; verifiedAt = 0; // #endregion Properties (13) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentTokenDataEntity { // #region Properties (7) bin = ''; brand = ''; displayNumber = ''; firstDigits = ''; maskedNumber = ''; month = 0; year = 0; // #endregion Properties (7) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentTokenEntity { // #region Properties (5) customerId = ''; data = new PaymentTokenDataEntity(); description = ''; id = ''; itemType = ''; // #endregion Properties (5) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentWalletEntity { // #region Properties (1) name = ''; // #endregion Properties (1) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PaymentEntity { // #region Properties (3) methods = []; pending = 0; prepaid = 0; // #endregion Properties (3) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } if (data.methods) { this.methods = data.methods.map((method) => new PaymentMethodEntity(method)); } else { this.methods = []; } } } } class RatingEntity { // #region Properties (4) comment = ''; createdAt = new Date(); rating = 5; userId = ''; // #endregion Properties (4) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class SponsorshipValueEntity { // #region Properties (2) name = ''; value = 0; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } var EFcmSkill; (function (EFcmSkill) { EFcmSkill["PREVIEW_NATI_V1_ITEMS"] = "PREVIEW_NATI_V1_ITEMS"; EFcmSkill["REQUEST_NATI_V1_ITEMS"] = "REQUEST_NATI_V1_ITEMS"; EFcmSkill["RECEIVED_NATI_V1_ITEMS"] = "REQUEST_NATI_V1_ITEMS"; EFcmSkill["BLOCK_TAB"] = "BLOCK_TAB"; EFcmSkill["UNBLOCK_TAB"] = "UNBLOCK_TAB"; EFcmSkill["RECEIVED_DESENFILA_PAYMENT"] = "RECEIVED_DESENFILA_PAYMENT"; })(EFcmSkill || (EFcmSkill = {})); var EBankSlipStatus; (function (EBankSlipStatus) { EBankSlipStatus["REGISTERED"] = "registered"; EBankSlipStatus["PAID"] = "paid"; EBankSlipStatus["PENDING"] = "pending"; EBankSlipStatus["CANCELED"] = "canceled"; EBankSlipStatus["EXPIRED"] = "expired"; })(EBankSlipStatus || (EBankSlipStatus = {})); var EBooleanString; (function (EBooleanString) { EBooleanString["FALSE"] = "false"; EBooleanString["TRUE"] = "true"; })(EBooleanString || (EBooleanString = {})); var EDesenfilaFrom; (function (EDesenfilaFrom) { EDesenfilaFrom["NATI"] = "NATI"; EDesenfilaFrom["AUTOMATION"] = "AUTOMATION"; EDesenfilaFrom["NATIPAY"] = "NATIPAY"; EDesenfilaFrom["DESENFILA"] = "DESENFILA"; EDesenfilaFrom["NATIST"] = "NATIST"; EDesenfilaFrom["MOBYO"] = "MOBYO"; EDesenfilaFrom["DEFAULT"] = "DEFAULT"; // outras fontes não mapeadas })(EDesenfilaFrom || (EDesenfilaFrom = {})); var EDocType; (function (EDocType) { EDocType["CPF"] = "CPF"; EDocType["CNPJ"] = "CNPJ"; })(EDocType || (EDocType = {})); var EDiscountType; (function (EDiscountType) { EDiscountType["PERCENT"] = "PERCENT"; EDiscountType["FIXED_AMOUNT"] = "FIXED"; })(EDiscountType || (EDiscountType = {})); var EFiscalDocModelCode; (function (EFiscalDocModelCode) { EFiscalDocModelCode["NFE"] = "55"; EFiscalDocModelCode["CTE"] = "57"; EFiscalDocModelCode["SAT"] = "59"; EFiscalDocModelCode["ECF"] = "60"; EFiscalDocModelCode["NFCOM"] = "62"; EFiscalDocModelCode["BPE"] = "63"; EFiscalDocModelCode["NFCE"] = "65"; EFiscalDocModelCode["NF3E"] = "66"; EFiscalDocModelCode["OS"] = "67"; })(EFiscalDocModelCode || (EFiscalDocModelCode = {})); var EIntervalType; (function (EIntervalType) { EIntervalType["DAYS"] = "DAYS"; EIntervalType["WEEKS"] = "WEEKS"; EIntervalType["MONTHS"] = "MONTHS"; EIntervalType["YEARS"] = "YEARS"; })(EIntervalType || (EIntervalType = {})); var EOs; (function (EOs) { EOs["ANDROID"] = "ANDROID"; EOs["IOS"] = "IOS"; EOs["WINDOWS_PHONE"] = "WINDOWS_PHONE"; EOs["WINDOWS"] = "WINDOWS"; EOs["LINUX"] = "LINUX"; EOs["ELECTRON"] = "ELECTRON"; EOs["OTHER"] = "OTHER"; EOs["UNKNOWN"] = "UNKNOWN"; })(EOs || (EOs = {})); var EPaymentStatus; (function (EPaymentStatus) { EPaymentStatus["PENDING"] = "PENDING"; EPaymentStatus["COMPLETED"] = "COMPLETED"; EPaymentStatus["FAILED"] = "FAILED"; EPaymentStatus["CANCELED"] = "CANCELED"; EPaymentStatus["PAID"] = "PAID"; EPaymentStatus["REFUNDED"] = "REFUNDED"; EPaymentStatus["AUTHORIZED"] = "AUTHORIZED"; EPaymentStatus["DECLINED"] = "DECLINED"; EPaymentStatus["EXPIRED"] = "EXPIRED"; EPaymentStatus["DISPUTED"] = "DISPUTED"; })(EPaymentStatus || (EPaymentStatus = {})); var ELegalEntiy; (function (ELegalEntiy) { ELegalEntiy["LEGAL"] = "Pessoa Jur\u00EDdica"; ELegalEntiy["INDIVIDUAL"] = "Pessoa F\u00EDsica"; })(ELegalEntiy || (ELegalEntiy = {})); var EPlatform; (function (EPlatform) { EPlatform["MOBILE"] = "MOBILE"; EPlatform["WEB"] = "WEB"; EPlatform["DESKTOP"] = "DESKTOP"; EPlatform["TABLET"] = "TABLET"; EPlatform["TV"] = "TV"; EPlatform["CHROMEBOOK"] = "CHROMEBOOK"; EPlatform["OTHER"] = "OTHER"; })(EPlatform || (EPlatform = {})); var EPaymentProvider; (function (EPaymentProvider) { EPaymentProvider["IUGU"] = "IUGU"; EPaymentProvider["DESENFILA"] = "DESENFILA"; EPaymentProvider["MERCADO_PAGO"] = "MERCADO PAGO"; EPaymentProvider["STRIPE"] = "STRIPE"; EPaymentProvider["PAYPAL"] = "PAYPAL"; EPaymentProvider["OTHER"] = "OTHER"; })(EPaymentProvider || (EPaymentProvider = {})); var EPubSub; (function (EPubSub) { EPubSub["GENERAL"] = "GENERAL"; EPubSub["NATIGO"] = "NATIGO"; })(EPubSub || (EPubSub = {})); var ESponsorshipValues; (function (ESponsorshipValues) { ESponsorshipValues["MERCHANT"] = "MERCHANT"; ESponsorshipValues["PARTNER"] = "PARTNER"; ESponsorshipValues["PROVIDER"] = "PROVIDER"; ESponsorshipValues["UNKNOWN"] = "UNKNOWN"; })(ESponsorshipValues || (ESponsorshipValues = {})); var ECustomVariables; (function (ECustomVariables) { ECustomVariables["ID"] = "ID"; ECustomVariables["CUSTOM_FOOTER"] = "CUSTOM_FOOTER"; ECustomVariables["SECOND_OPINION"] = "SECOND_OPINION"; ECustomVariables["CAN_ATTACH_FILES"] = "CAN_ATTACH_FILES"; })(ECustomVariables || (ECustomVariables = {})); var EPlanFeatureType; (function (EPlanFeatureType) { EPlanFeatureType["FEATURE"] = "FEATURE"; EPlanFeatureType["DESCRIPTION"] = "DESCRIPTION"; })(EPlanFeatureType || (EPlanFeatureType = {})); var EPlanIdentifier; (function (EPlanIdentifier) { EPlanIdentifier["DEFAULT"] = "DEFAULT"; EPlanIdentifier["BASIC"] = "BASIC"; EPlanIdentifier["STANDARD"] = "STANDARD"; EPlanIdentifier["PREMIUM"] = "PREMIUM"; EPlanIdentifier["ENTERPRISE"] = "ENTERPRISE"; EPlanIdentifier["TRIAL"] = "TRIAL"; EPlanIdentifier["ULTIMATE"] = "ULTIMATE"; })(EPlanIdentifier || (EPlanIdentifier = {})); class PlanFeatureEntity { appId = ""; createdAt = new Date(); featureType = EPlanFeatureType.FEATURE; id = ""; index = 0; name = ""; planId = ""; price = 0; quantity = 0; credit = 0; updatedAt = new Date(); constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class PlanEntity { // #region Properties (12) createdAt = new Date(); features = []; id = ''; identifier = EPlanIdentifier.DEFAULT; index = 0; interval = 12; intervalType = EIntervalType.MONTHS; name = ''; price = 0; tags = []; trialDays = 0; updatedAt = new Date(); active = false; isRecommended = false; // #endregion Properties (12) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } const PLAN_VARIABLES = { [EPlanIdentifier.BASIC]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.BASIC, }, ], [EPlanIdentifier.STANDARD]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.STANDARD, }, { name: ECustomVariables.CUSTOM_FOOTER, value: true, }, { name: ECustomVariables.SECOND_OPINION, value: true, }, ], [EPlanIdentifier.ENTERPRISE]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.ENTERPRISE, }, { name: ECustomVariables.CUSTOM_FOOTER, value: true, }, { name: ECustomVariables.SECOND_OPINION, value: true, }, { name: ECustomVariables.CAN_ATTACH_FILES, value: true, }, ], [EPlanIdentifier.DEFAULT]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.DEFAULT, }, ], [EPlanIdentifier.PREMIUM]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.PREMIUM, }, ], [EPlanIdentifier.TRIAL]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.TRIAL, }, ], [EPlanIdentifier.ULTIMATE]: [ { name: ECustomVariables.ID, value: EPlanIdentifier.ULTIMATE, }, ], }; // index.ts var EAppType; (function (EAppType) { EAppType["FREE"] = "FREE"; EAppType["PAID"] = "PAID"; EAppType["SUBSCRIPTION"] = "SUBSCRIPTION"; EAppType["TRIAL"] = "TRIAL"; })(EAppType || (EAppType = {})); var EAppHeaderType; (function (EAppHeaderType) { EAppHeaderType["VIDEO"] = "VIDEO"; EAppHeaderType["IMAGE"] = "IMAGE"; })(EAppHeaderType || (EAppHeaderType = {})); var EAppMode; (function (EAppMode) { EAppMode["APP"] = "APP"; EAppMode["CHECKOUT"] = "CHECKOUT"; EAppMode["SCREEN"] = "SCREEN"; EAppMode["NATI_GO"] = "NATIGO"; EAppMode["SAT_MANAGER"] = "SAT-MANAGER"; EAppMode["NATI_PDV"] = "NATI-PDV"; EAppMode["NATI_PHP"] = "NATI_PHP"; EAppMode["NATI_WHATSAPP"] = "NATI_WA"; EAppMode["NATI_TYPE_BOT"] = "NATI_TYPE_BOT"; EAppMode["NATI_ST"] = "NATI_ST"; EAppMode["RABBIT"] = "RABBIT"; EAppMode["FISCAL_MANAGER"] = "FISCAL-MANAGER"; EAppMode["NATI_SIGN"] = "NATI-SIGN"; EAppMode["DESENFILA"] = "DESENFILA"; EAppMode["NATIPAY"] = "NATIPAY"; EAppMode["NATIV2"] = "NATIV2"; EAppMode["NATIADMIN"] = "NATIADMIN"; EAppMode["MOBYO"] = "MOBYO"; EAppMode["MOBYO_TAB"] = "MOBYO_TAB"; EAppMode["MOBYO_DELIVERY"] = "MOBYO_DELIVERY"; EAppMode["MOBYO_TOP"] = "MOBYO_TOP"; EAppMode["NONE"] = "NONE"; })(EAppMode || (EAppMode = {})); class AppEntity { // #region Properties (33) active = false; activeInstalls = 0; /** * Indica se permite adicionar a assinatura */ allowAddSubscription = false; allowDefaultDevice = false; carousel = []; categories = []; createdBy = ''; description = ''; downloadUrl = ''; features = []; headerImage = ''; headerType = EAppHeaderType.IMAGE; headerVideo = ''; iconUrl = ''; id = ''; instanceNumberAllowed = 1; /** * Intervalo de tempo para o preço * @example * 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 * Para intervalType = MONTHS * 1 = 1 mês (mensal) * */ interval = 0; /** * Tipo de intervalo para o preço * @example * Mensal, Semanal, Diário */ intervalType = EIntervalType.MONTHS; isUnique = false; mode = EAppMode.NONE; name = ''; /** * Indica se o app é gratuito ou não */ os = []; platforms = []; price = 0; production = false; ratings = []; secrets = ''; tags = []; totalInstalls = 0; trialTime = 0; type = EAppType.FREE; versionCode = 1; versionName = ''; // #endregion Properties (33) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DesenfilaConfigMercadoPagoEntity { // #region Properties (4) active = false; automationFee = 0; fee = 0; mobyoFee = 0; // #endregion Properties (4) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DesenfilaConfigEntity { // #region Properties (3) active = true; id = ''; mercadoPago = new DesenfilaConfigMercadoPagoEntity(); // #endregion Properties (3) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DesenfilaFeeEntity { // #region Properties (2) type = EDesenfilaFrom.DEFAULT; value = 0.0099; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DesenfilaTokenEntity { // #region Properties (2) id = ''; prefix = ''; masterConfig = false; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DesenfilaEntity { // #region Properties (8) balance = 0; blockedBalance = 0; config = null; containerId = ''; fees = []; goLive = false; merchantId = ''; token = null; // #endregion Properties (8) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionChatWootEntity { // #region Properties (7) accountId = ''; enabled = false; nameInbox = ''; signMsg = false; token = ''; url = ''; webhookUrl = ''; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionDatabaseQueueEntity { // #region Properties (11) active = true; baseUrl = ''; createdAt = Date.now(); id = ''; instanceName = ''; globalApikey = ''; log = []; sendAt = 1713547959155; notified = false; notifiedAt = 0; phoneNumber = ''; text = ''; updatedAt = Date.now(); // #endregion Properties (11) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionHashEntity { // #region Properties (1) apikey = ''; // #endregion Properties (1) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionInstanceEntity { // #region Properties (10) apikey = ''; chatwoot = null; instanceId = ''; instanceName = ''; owner = ''; profileName = ''; profilePictureUrl = ''; profileStatus = ''; serverUrl = ''; status = ''; // #endregion Properties (10) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionQrcodeEntity { // #region Properties (4) base64 = null; code = null; count = 0; pairingCode = null; // #endregion Properties (4) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionEntity { // #region Properties (6) chatwoot = null; events = []; hash = new EvolutionHashEntity(); instance = new EvolutionInstanceEntity(); qrcode = new EvolutionQrcodeEntity(); webhook = ''; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class EvolutionMessageKeyResponseEntity { // #region Properties (3) fromMe = false; id = ''; remoteJid = ''; } class EvolutionMessageResponseEntity { // #region Properties (4) key = null; message = null; messageTimestamp = null; status = null; } class EvolutionTypeBotEntity { // #region Properties (2) instanceName = ''; typebot = new typeBot(); // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class typeBot { enabled = true; url = ''; typebot = ''; expire = 20; keywordFinish = '#SAIR'; delayMessage = 1000; unknownMessage = 'Mensagem não reconhecida'; listeningFromMe = false; } var EEvolutionEvent; (function (EEvolutionEvent) { EEvolutionEvent["APPLICATION_STARTUP"] = "APPLICATION_STARTUP"; EEvolutionEvent["QRCODE_UPDATED"] = "QRCODE_UPDATED"; EEvolutionEvent["MESSAGES_SET"] = "MESSAGES_SET"; EEvolutionEvent["MESSAGES_UPSERT"] = "MESSAGES_UPSERT"; EEvolutionEvent["MESSAGES_UPDATE"] = "MESSAGES_UPDATE"; EEvolutionEvent["MESSAGES_DELETE"] = "MESSAGES_DELETE"; EEvolutionEvent["SEND_MESSAGE"] = "SEND_MESSAGE"; EEvolutionEvent["CONTACTS_SET"] = "CONTACTS_SET"; EEvolutionEvent["CONTACTS_UPSERT"] = "CONTACTS_UPSERT"; EEvolutionEvent["CONTACTS_UPDATE"] = "CONTACTS_UPDATE"; EEvolutionEvent["CALL"] = "CALL"; EEvolutionEvent["PRESENCE_UPDATE"] = "PRESENCE_UPDATE"; EEvolutionEvent["CHATS_SET"] = "CHATS_SET"; EEvolutionEvent["CHATS_UPSERT"] = "CHATS_UPSERT"; EEvolutionEvent["CHATS_UPDATE"] = "CHATS_UPDATE"; EEvolutionEvent["CHATS_DELETE"] = "CHATS_DELETE"; EEvolutionEvent["GROUPS_UPSERT"] = "GROUPS_UPSERT"; EEvolutionEvent["GROUP_UPDATE"] = "GROUP_UPDATE"; EEvolutionEvent["GROUP_PARTICIPANTS_UPDATE"] = "GROUP_PARTICIPANTS_UPDATE"; EEvolutionEvent["CONNECTION_UPDATE"] = "CONNECTION_UPDATE"; EEvolutionEvent["NEW_JWT_TOKE"] = "NEW_JWT_TOKE"; })(EEvolutionEvent || (EEvolutionEvent = {})); var EEvolutionInstanceType; (function (EEvolutionInstanceType) { EEvolutionInstanceType["WEBHOOK"] = "WEBHOOK"; EEvolutionInstanceType["CHATWOOT"] = "CHATWOOT"; EEvolutionInstanceType["TYPE_BOOT"] = "TYPE_BOOT"; EEvolutionInstanceType["BASIC"] = "BASIC"; EEvolutionInstanceType["WEBSOCKET"] = "WEBSOCKET"; EEvolutionInstanceType["RABBIT_MQ"] = "RABBIT_MQ"; })(EEvolutionInstanceType || (EEvolutionInstanceType = {})); class EvolutionWebhookEntity { // #region Properties (5) enabled = true; events = [ EEvolutionEvent.QRCODE_UPDATED, EEvolutionEvent.MESSAGES_UPSERT, EEvolutionEvent.MESSAGES_UPDATE, EEvolutionEvent.MESSAGES_DELETE, EEvolutionEvent.SEND_MESSAGE, EEvolutionEvent.CONNECTION_UPDATE, EEvolutionEvent.CALL, ]; url = ''; webhookBase64 = false; webhookByEvents = false; // #endregion Properties (5) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } // #region Interfaces (3) // #endregion Interfaces (3) // #region Classes (1) class NatiWaEntity { // #region Properties (10) chatwoot = null; id = ''; instanceName = ''; number = ''; qrcode = false; token = ''; type = EEvolutionInstanceType.WEBHOOK; typebot = null; waServerId = ''; webhook = null; // #endregion Properties (10) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } // #endregion Classes (1) var EAppCategory; (function (EAppCategory) { EAppCategory["UTILITIES"] = "UTILIDADES"; EAppCategory["OTHERS"] = "OUTROS"; EAppCategory["POINTOFSALES"] = "PDV"; EAppCategory["SALES"] = "VENDAS"; EAppCategory["STOCK"] = "ESTOQUE"; EAppCategory["FINANCIAL"] = "FINANCEIRO"; EAppCategory["REPORTS"] = "RELAT\u00D3RIOS"; EAppCategory["SETTINGS"] = "CONFIGURA\u00C7\u00D5ES"; EAppCategory["PRODUCTS"] = "PRODUTOS"; EAppCategory["CUSTOMERS"] = "CLIENTES"; EAppCategory["SUPPLIERS"] = "FORNECEDORES"; EAppCategory["EMPLOYEES"] = "FUNCION\u00C1RIOS"; EAppCategory["ORDERS"] = "PEDIDOS"; EAppCategory["SALESORDERS"] = "PEDIDOS DE VENDA"; EAppCategory["PURCHASEORDERS"] = "PEDIDOS DE COMPRA"; EAppCategory["SALESINVOICES"] = "NOTAS FISCAIS DE VENDA"; EAppCategory["PURCHASEINVOICES"] = "NOTAS FISCAIS DE COMPRA"; EAppCategory["SALESBUDGETS"] = "OR\u00C7AMENTOS DE VENDA"; EAppCategory["PURCHASEBUDGETS"] = "OR\u00C7AMENTOS DE COMPRA"; EAppCategory["PRINTS"] = "IMPRESS\u00D5ES"; EAppCategory["SALESPRINTS"] = "IMPRESS\u00D5ES DE VENDA"; EAppCategory["PURCHASEPRINTS"] = "IMPRESS\u00D5ES DE COMPRA"; EAppCategory["KDS"] = "KDS"; EAppCategory["MARKETING"] = "MARKETING"; EAppCategory["ECOMMERCE"] = "E-COMMERCE"; EAppCategory["ECOMMERCEORDERS"] = "PEDIDOS DE E-COMMERCE"; EAppCategory["DELIVERY"] = "ENTREGA"; EAppCategory["TRACKING"] = "RASTREAMENTO"; })(EAppCategory || (EAppCategory = {})); class NatiGoEntity { // #region Properties (8) documentVerificationAllowed = false; isForAdultsOnly = false; openLockRequired = true; syncAt = new Date(); type = EAppMode.NATI_GO; updatedAt = new Date(); url = 'localhost:8080'; version = '1.0.0'; // #endregion Properties (8) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class RabbitEntity { // #region Properties (22) address = new AddressEntity(); api = 'http://localhost:8089'; cityCode = ''; doc = ''; emitirL = true; enviroment = 'production'; ie = ''; ignoreCpfCnpj = false; model = EFiscalDocModelCode.NFCE; name = ''; nfNumber = 1; onlyCash = false; controlPix = true; pdvId = null; percentage = 50; regime = 1; serialNumber = ''; signature = ''; syncAt = 0; type = EAppMode.RABBIT; ufCode = null; updatedAt = new Date(); version = '1.0.0'; // #endregion Properties (22) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class HistoryEntity { // #region Properties (12) createdAt = new Date(); updatedAt = new Date(); id = ''; active = true; question = null; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class ClauseEntity { createdAt = new Date(); updatedAt = new Date(); active = true; id = ''; questionIds = []; description = ''; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class ThemeEntity extends ClauseEntity { } var ECampaignStatus; (function (ECampaignStatus) { ECampaignStatus["ACTIVE"] = "ACTIVE"; ECampaignStatus["EXPIRED"] = "EXPIRED"; ECampaignStatus["PLACED"] = "PLACED"; ECampaignStatus["PAUSED"] = "PAUSED"; ECampaignStatus["CONCLUDED"] = "CONCLUDED"; })(ECampaignStatus || (ECampaignStatus = {})); class CampaignEntity { // #region Properties (10) createdAt = new Date(); createdBy = ''; description = ''; endDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30); id = ''; name = ''; partnerId = []; startDate = new Date(); status = ECampaignStatus.PLACED; updatedAt = new Date(); // #endregion Properties (10) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class ClientAplicationCredentialEntity { // #region Properties (4) refreshToken = null; refreshTokenAt = null; secrets = null; token = null; // #endregion Properties (4) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class ClientAplicationEntity { // #region Properties (3) credential = new ClientAplicationCredentialEntity(); description = null; name = ''; // #endregion Properties (3) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class ClientEntity { // #region Properties (7) address = null; aplications = []; doc = null; docType = EDocType.CPF; email = null; id = ''; name = ''; // #endregion Properties (7) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class CompanyTrialPlansUsedEntity { // #region Properties (2) activedAt = new Date(); id = ''; // #endregion Properties (2) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class CompanyEntity { // #region Properties (27) active = false; address = new AddressEntity(); bgImageUrl = null; config = null; containerId = ''; createdAt = new Date(); deliveryArea = []; deliveryAreaFixed = null; doc = ''; docType = EDocType.CNPJ; email = ''; fullName = ''; id = ''; imageUrl = null; internationalCode = '+55'; logoUrl = null; messagerChannels = []; name = ''; origin = new OriginEntity(); paymentProvider = new PaymentProviderEntity(); phoneNumber = ''; phoneNumbersNotification = []; sandbox = false; tags = []; updatedAt = new Date(); usedTrialsPlans = []; version = '1.0.0'; pixKey = ''; contacts = []; goTransactionsLive = false; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } // index.ts var ECompanyKeys; (function (ECompanyKeys) { ECompanyKeys["GOOGLE"] = "GOOGLE"; ECompanyKeys["LOGGI"] = "LOGGI"; ECompanyKeys["DESENFILA"] = "DESENFILA"; ECompanyKeys["MOTTU"] = "MOTTU"; ECompanyKeys["ALGOLIA"] = "ALGOLIA"; })(ECompanyKeys || (ECompanyKeys = {})); var ECompanyMessageType; (function (ECompanyMessageType) { ECompanyMessageType["WHATSAPP"] = "WHATSAPP"; ECompanyMessageType["INSTAGRAM"] = "INSTAGRAM"; ECompanyMessageType["SMS"] = "SMS"; })(ECompanyMessageType || (ECompanyMessageType = {})); // index.ts class ContainerEntity extends BaseEntity { // #region Properties (1) name = ''; companyId = ''; containerId = ''; // #endregion Properties (1) // #region Constructors (1) constructor(data) { super(data); if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } var EMemberRules; (function (EMemberRules) { EMemberRules["ADMIN"] = "ADMIN"; EMemberRules["USER"] = "USER"; EMemberRules["OWNER"] = "OWNER"; EMemberRules["SUPPORT"] = "SUPPORT"; EMemberRules["PARTNER"] = "PARTNER"; EMemberRules["FINANCE"] = "FINANCE"; EMemberRules["MARKETING"] = "MARKETING"; EMemberRules["SALES"] = "SALES"; EMemberRules["MENAGER"] = "MENAGER"; })(EMemberRules || (EMemberRules = {})); var EMemberType; (function (EMemberType) { EMemberType["PARTNER"] = "PARTNER"; EMemberType["ADMIN"] = "ADMIN"; EMemberType["CLIENT"] = "CLIENT"; EMemberType["CUSTOMER"] = "CUSTOMER"; })(EMemberType || (EMemberType = {})); class MemberEntity extends BaseEntity { // #region Properties (14) active = true; companyName = ''; containerName = ''; email = ''; name = ''; partnerId = ''; internationalCode = '55'; phoneNumber = ''; phoneNumberVerified = false; phoneNumberVerifiedAt = null; photoUrl = ''; rule = EMemberRules.USER; tags = []; type = EMemberType.CLIENT; uid = ''; companyId = ''; containerId = ''; // #endregion Properties (14) // #region Constructors (1) constructor(data) { super(data); if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class CustomerEntity { sandbox = false; address = null; createdAt = new Date(); doc = ''; docType = EDocType.CPF; email = ''; id = ''; internationalCode = '+55'; phoneNumber = ''; imageUrl = null; name = ''; tags = []; updatedAt = new Date(); emailVerified = false; emailVerifiedAt = null; phoneNumberVerified = false; phoneNumberVerifiedAt = null; phoneNumbersNotification = []; type = EMemberType.CUSTOMER; constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } var ECustomerStatus; (function (ECustomerStatus) { ECustomerStatus["BLOCKED"] = "BLOCKED"; ECustomerStatus["ACTIVE"] = "ACTIVE"; ECustomerStatus["PRE_CREATE"] = "PRE_CREATE"; })(ECustomerStatus || (ECustomerStatus = {})); class CustomerIbChainEntity extends CustomerEntity { blockedReason = null; status = ECustomerStatus.ACTIVE; subscription = null; subscriptionId = null; pass = null; onboardingAt = null; lastAccessAt = null; constructor(data) { super(data); if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class CustomerMemberEntity extends MemberEntity { // #region Properties (1) customerId = ''; companyId = ''; containerId = ''; // #endregion Properties (1) // #region Constructors (1) constructor(data) { super(data); if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class DeviceEntity { // #region Properties (14) active = false; companyId = ''; containerId = ''; createdAt = new Date(); deviceId = ''; os = EOs.UNKNOWN; installedApps = []; osVersion = ''; id = ''; key = ''; lastAccess = new Date(); name = ''; tags = []; updatedAt = new Date(); // #endregion Properties (14) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class MetadataEntity { // #region Properties (1) natigo = new NatiGoEntity(); // #endregion Properties (1) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } // index.ts // index.ts var EEventMessage; (function (EEventMessage) { EEventMessage["POS_RESULT"] = "POS_RESULT"; EEventMessage["LAST_DAY_SALES"] = "LAST_DAY_SALES"; EEventMessage["LAST_MONTH_SALES"] = "LAST_MONTH_SALES"; EEventMessage["CANCELED_SALE"] = "CANCELED_SALE"; EEventMessage["BLEED_ALERT"] = "BLEED_ALERT"; EEventMessage["CLOSE_POS"] = "CLOSE_POS"; EEventMessage["MINIMUM_STOCK_ALERT"] = "MINIMUM_STOCK_ALERT"; EEventMessage["ACCUMULATED_MONTH"] = "ACCUMULATED_MONTH"; EEventMessage["SALES_BY_DAY"] = "SALES_BY_DAY"; })(EEventMessage || (EEventMessage = {})); class EventMessageEntity { // #region Properties (10) companyId = null; containerId = null; createdAt = new Date(); customerId = null; description = null; event = EEventMessage.LAST_DAY_SALES; id = ''; partnerId = null; recipients = []; updatedAt = new Date(); // #endregion Properties (10) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class FcmDataReceivedDesenfilaPaymentEntity { // #region Properties (6) callback = ''; companyId = ''; containerId = ''; id = ''; refId = ''; skill = EFcmSkill.RECEIVED_DESENFILA_PAYMENT; // #endregion Properties (6) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class FcmDataRequestItemsEntity { // #region Properties (5) callback = ''; companyId = ''; containerId = ''; pos = ''; skill = EFcmSkill.RECEIVED_NATI_V1_ITEMS; // #endregion Properties (5) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class FcmTokenMessageEntity { // #region Properties (11) companyId = null; containerId = null; createdAt = new Date(); customerId = null; deviceId = null; id = ''; name = null; partnerId = null; updatedAt = new Date(); value = ''; // #endregion Properties (11) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } class FeatureEntity { // #region Properties (11) appId = ''; appMode = null; companyId = ''; containerId = ''; createdAt = new Date(); deviceId = ''; id = ''; installationId = ''; name = ''; planId = null; subscriptionId = ''; // #endregion Properties (11) // #region Constructors (1) constructor(data) { if (data) { for (let key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } } var EGlobalSettingsType; (function (EGlobalSettingsType) { EGlobalSettingsType["CHATCLAUDE_CONFIG"] = "CHATCLAUDE_CONFIG"; EGlobalSettingsType["EMAIL_DEFAULT"] = "EMAIL_DEFAULT"; EGlobalSettingsType["INVOICE_CONFIG"] = "INVOICE_CONFIG"; EGlobalSettingsType["CHATGPT_CONFIG"] = "CHATGPT_CONFIG"; EGlobalSettingsType["MELI_CONFIG"] = "MELI_CONFIG"; EGlobalSettingsType["GOOGLE_AUTH"] = "GOOGLE_AUTH"; EGlobalSettingsType["CHATGEMINI_CONFIG"] = "CHATGEMINI_CONFIG"; })(EGlobalSettingsType || (EGlobalSetting