UNPKG

1.99 kBSource Map (JSON)View Raw
1{"version":3,"sources":["../../src/models/BotsTelegramChatModel.js"],"names":["BotsTelegramChatModel","Model","schema","id","type","Number","String","username","title","meta","Object","options","model","collection","timestamps"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA;IACqBA,qB;;;;;;;;;;;EAA8BC,kB;;;AAA9BD,qB,CACZE,M,GAAS;AACd;AACAC,EAAAA,EAAE,EAAE;AACFC,IAAAA,IAAI,EAAEC;AADJ,GAFU;;AAKd;AACAD,EAAAA,IAAI,EAAE;AACJA,IAAAA,IAAI,EAAEE;AADF,GANQ;;AASd;AACAC,EAAAA,QAAQ,EAAE;AACRH,IAAAA,IAAI,EAAEE;AADE,GAVI;;AAad;AACAE,EAAAA,KAAK,EAAE;AACLJ,IAAAA,IAAI,EAAEE;AADD,GAdO;AAkBd;AACAG,EAAAA,IAAI,EAAE;AACJL,IAAAA,IAAI,EAAEM;AADF;AAnBQ,C;AADGV,qB,CAwBZW,O,GAAU;AACfC,EAAAA,KAAK,EAAE,uBADQ;AAEfC,EAAAA,UAAU,EAAE,oBAFG;AAGfC,EAAAA,UAAU,EAAE;AAHG,C","sourcesContent":["import Model from '@lskjs/db/Model';\n\n// https://raw.githubusercontent.com/KnorpelSenf/typegram/master/types.d.ts\nexport default class BotsTelegramChatModel extends Model {\n static schema = {\n /** Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. */\n id: {\n type: Number,\n },\n /** Type of chat, can be either “private”, “group”, “supergroup” or “channel” */\n type: {\n type: String,\n },\n /** Username, for private chats, supergroups and channels if available */\n username: {\n type: String,\n },\n /** Title, for supergroups, channels and group chats */\n title: {\n type: String,\n },\n\n // Объект, в котрый можно складировать мета-информацию\n meta: {\n type: Object,\n },\n };\n static options = {\n model: 'BotsTelegramChatModel',\n collection: 'bots_telegram_chat',\n timestamps: true,\n };\n}\n"],"file":"BotsTelegramChatModel.js"}
\No newline at end of file