@lovrabet/dsparser 1.2.5-beta.1 → 1.2.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/src/core/operations/AggregateOperation.d.ts +85 -0
- package/dist/src/core/operations/AggregateOperation.d.ts.map +1 -0
- package/dist/src/core/operations/GenericOperation.d.ts +2 -0
- package/dist/src/core/operations/GenericOperation.d.ts.map +1 -1
- package/dist/src/core/operations/OperationFactory.d.ts.map +1 -1
- package/dist/src/core/operations/index.d.ts +1 -0
- package/dist/src/core/operations/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x556480=a0_0x573f;(function(_0x4c4863,_0x3bd726){const _0x415b7b=a0_0x573f,_0x5c0fbe=_0x4c4863();while(!![]){try{const _0x28d9a0=-parseInt(_0x415b7b(0x175))/0x1+-parseInt(_0x415b7b(0x1c4))/0x2*(-parseInt(_0x415b7b(0x178))/0x3)+parseInt(_0x415b7b(0x236))/0x4+parseInt(_0x415b7b(0x2a3))/0x5*(-parseInt(_0x415b7b(0x2c1))/0x6)+-parseInt(_0x415b7b(0x1a5))/0x7+parseInt(_0x415b7b(0xe8))/0x8+-parseInt(_0x415b7b(0x27c))/0x9;if(_0x28d9a0===_0x3bd726)break;else _0x5c0fbe['push'](_0x5c0fbe['shift']());}catch(_0x48dfcc){_0x5c0fbe['push'](_0x5c0fbe['shift']());}}}(a0_0x4448,0x8ce94));function toCamelCase(_0x58bf9f){const _0x8856b6=a0_0x573f;if(!_0x58bf9f)return'';return _0x58bf9f[_0x8856b6(0x1b5)](/[_-]/)[_0x8856b6(0x18a)]((_0xc85b4b,_0x51b696)=>{const _0x130b7f=_0x8856b6;if(_0x51b696===0x0)return _0xc85b4b[_0x130b7f(0xe7)]();return _0xc85b4b[_0x130b7f(0x1f6)](0x0)[_0x130b7f(0x224)]()+_0xc85b4b[_0x130b7f(0xfc)](0x1)[_0x130b7f(0xe7)]();})[_0x8856b6(0x147)]('');}function toPascalCase(_0x52f964){const _0x322a76=a0_0x573f;if(!_0x52f964)return'';const _0x278f7b=toCamelCase(_0x52f964);return _0x278f7b[_0x322a76(0x1f6)](0x0)[_0x322a76(0x224)]()+_0x278f7b['slice'](0x1);}function toSnakeCase(_0x42f341){const _0x59af5a=a0_0x573f;if(!_0x42f341)return'';return _0x42f341['replace'](/([A-Z])/g,'_$1')[_0x59af5a(0xe7)]()[_0x59af5a(0x2c6)](/^_/,'');}function toKebabCase(_0x1feeeb){const _0x7c9042=a0_0x573f;if(!_0x1feeeb)return'';return _0x1feeeb[_0x7c9042(0x2c6)](/([A-Z])/g,'-$1')[_0x7c9042(0xe7)]()[_0x7c9042(0x2c6)](/^-/,'');}function a0_0x573f(_0xf7c474,_0x37770d){const _0x4448cc=a0_0x4448();return a0_0x573f=function(_0x573f63,_0x2d61ac){_0x573f63=_0x573f63-0xba;let _0x4165d5=_0x4448cc[_0x573f63];return _0x4165d5;},a0_0x573f(_0xf7c474,_0x37770d);}function normalizeFieldName(_0x1ea7f9){const _0xfca9a9=a0_0x573f;if(!_0x1ea7f9)return'';return _0x1ea7f9['trim']()[_0xfca9a9(0x2c6)](/\s+/g,'_')[_0xfca9a9(0x2c6)](/[^a-zA-Z0-9_]/g,'_')['replace'](/_+/g,'_')[_0xfca9a9(0x2c6)](/^_|_$/g,'');}function getTableName(_0x106a91){const _0x33346d=a0_0x573f;if(!_0x106a91)return'dataset_000000';if(_0x106a91['dbtableConfig']?.[_0x33346d(0x105)])return _0x106a91[_0x33346d(0x1f7)][_0x33346d(0x105)];const _0x30e125=_0x106a91[_0x33346d(0x129)]||_0x106a91[_0x33346d(0x278)]||_0x106a91[_0x33346d(0x17a)];if(_0x30e125)return generateTableNameFromCode(_0x30e125);return _0x33346d(0x1e0);}function getTableKey(_0x28d4cd){const _0x450dd4=a0_0x573f;if(typeof _0x28d4cd===_0x450dd4(0x286))return toCamelCase(_0x28d4cd);const _0x63fe5f=getTableName(_0x28d4cd);return toCamelCase(_0x63fe5f);}function generateTableNameFromCode(_0x43e6e0){const _0x1a83ae=a0_0x573f;if(!_0x43e6e0)return _0x1a83ae(0x1e0);const _0x40e3f6=_0x43e6e0[_0x1a83ae(0xfc)](-0x6)[_0x1a83ae(0x298)](0x6,'0');return _0x1a83ae(0x1b2)+_0x40e3f6;}function isVirtualTableName(_0x5cb9c6){const _0x5d5910=a0_0x573f;return/^dataset_[a-zA-Z0-9]{6}$/[_0x5d5910(0x206)](_0x5cb9c6);}function generateModelKeyFromCode(_0x5d7293){const _0x95661a=a0_0x573f;if(!_0x5d7293)return _0x95661a(0x146);return _0x95661a(0x1b2)+_0x5d7293;}function getDbName(_0x292b31){const _0x2b63a9=a0_0x573f;return _0x292b31[_0x2b63a9(0x1f7)]?.[_0x2b63a9(0x288)]||_0x292b31[_0x2b63a9(0x1f7)]?.[_0x2b63a9(0xf8)]?.[_0x2b63a9(0x288)]||'';}function generateDatasetsConfig(_0x37bb78,_0x1d5b71={}){const _0x2f772c=a0_0x573f,{enableDeduplication:enableDeduplication=!![],datasetNameGenerator:_0x4dcc07,filter:_0x28b01e}=_0x1d5b71,_0x5ae781=_0x28b01e?_0x37bb78[_0x2f772c(0x174)](_0x28b01e):_0x37bb78,_0x467d6f=new Map();for(const _0x4d15eb of _0x5ae781){const _0x13ca49=getTableName(_0x4d15eb),_0x26c8cf=getDbName(_0x4d15eb);!_0x467d6f[_0x2f772c(0x148)](_0x13ca49)&&_0x467d6f[_0x2f772c(0x290)](_0x13ca49,new Set()),_0x467d6f['get'](_0x13ca49)['add'](_0x26c8cf);}const _0xc08d5a=new Set();for(const [_0x5e6913,_0xb90f12]of _0x467d6f){_0xb90f12[_0x2f772c(0x1df)]>0x1&&_0xc08d5a[_0x2f772c(0x14d)](_0x5e6913);}const _0x56568c={},_0x488fae=new Set();for(const _0x2f89c7 of _0x5ae781){const _0x11c91e=getTableName(_0x2f89c7);if(enableDeduplication&&_0x488fae['has'](_0x11c91e)){console['warn'](_0x2f772c(0x218)+_0x11c91e+_0x2f772c(0x211)+_0x2f89c7[_0x2f772c(0x1ab)]+'\x20('+_0x2f89c7[_0x2f772c(0x129)]+')');continue;}_0x488fae[_0x2f772c(0x14d)](_0x11c91e);const _0x4b919b=_0x4dcc07?_0x4dcc07(_0x11c91e,_0x2f89c7):getTableKey(_0x11c91e),_0x208cd2=getDbName(_0x2f89c7),_0x2ac21e=_0xc08d5a[_0x2f772c(0x148)](_0x11c91e)&&_0x208cd2?getTableKey(_0x208cd2)+'_'+_0x4b919b:_0x4b919b;_0x56568c[_0x4b919b]={'key':_0x4b919b,'alias':_0x2ac21e,'tableName':_0x11c91e,'datasetCode':_0x2f89c7[_0x2f772c(0x129)],'name':_0x2f89c7[_0x2f772c(0x1ab)],'id':_0x2f89c7['id'],'dbName':_0x208cd2};}return _0x56568c;}function generateFullDatasetsConfig(_0x11da39,_0x847460={}){const _0x42446b=a0_0x573f,{filter:_0x608a8c,datasetNameGenerator:_0x446833}=_0x847460,_0x5aab3d=_0x608a8c?_0x11da39[_0x42446b(0x174)](_0x608a8c):_0x11da39,_0x3d08f5=new Map();for(const _0x73b511 of _0x5aab3d){const _0x214fd5=getTableName(_0x73b511),_0x42a464=getDbName(_0x73b511);!_0x3d08f5[_0x42446b(0x148)](_0x214fd5)&&_0x3d08f5[_0x42446b(0x290)](_0x214fd5,new Set()),_0x3d08f5['get'](_0x214fd5)[_0x42446b(0x14d)](_0x42a464);}const _0x2efbcb=new Set();for(const [_0x4a23f2,_0x39dc09]of _0x3d08f5){_0x39dc09[_0x42446b(0x1df)]>0x1&&_0x2efbcb['add'](_0x4a23f2);}const _0x1dfc2a=groupByTableName(_0x5aab3d),_0x3bb96f={};for(const [_0x599c93,_0x3abed1]of Object[_0x42446b(0x16a)](_0x1dfc2a)){if(_0x3abed1[_0x42446b(0x24c)]===0x1){const _0x5e84ca=_0x3abed1[0x0],_0x562d81=_0x446833?_0x446833(_0x599c93,_0x5e84ca):getTableKey(_0x599c93),_0x457cd5=getDbName(_0x5e84ca),_0x27b1e3=_0x2efbcb['has'](_0x599c93)&&_0x457cd5?getTableKey(_0x457cd5)+'_'+_0x562d81:_0x562d81;_0x3bb96f[_0x562d81]={'key':_0x562d81,'alias':_0x27b1e3,'tableName':_0x599c93,'datasetCode':_0x5e84ca[_0x42446b(0x129)],'name':_0x5e84ca[_0x42446b(0x1ab)],'id':_0x5e84ca['id'],'dbName':_0x457cd5};}else{const _0x4321de=[..._0x3abed1]['sort']((_0x27c244,_0x14731e)=>{const _0x59ec67=Number(_0x27c244['id'])||0x0,_0x503866=Number(_0x14731e['id'])||0x0;return _0x503866-_0x59ec67;});_0x4321de['forEach']((_0x527da6,_0x582d03)=>{const _0x182834=_0x42446b,_0x491333=_0x446833?_0x446833(_0x599c93,_0x527da6):getTableKey(_0x599c93),_0x4d2969=_0x582d03===0x0?_0x491333:_0x491333+'_'+_0x582d03,_0x5e87f2=getDbName(_0x527da6),_0x114a1f=_0x2efbcb[_0x182834(0x148)](_0x599c93)&&_0x5e87f2?getTableKey(_0x5e87f2)+'_'+_0x4d2969:_0x4d2969;_0x3bb96f[_0x4d2969]={'key':_0x4d2969,'alias':_0x114a1f,'tableName':_0x599c93,'datasetCode':_0x527da6['datasetCode'],'name':_0x527da6['name'],'id':_0x527da6['id'],'dbName':_0x5e87f2};});}}return _0x3bb96f;}function detectTableNameConflicts(_0x2b6a48){const _0x17ae53=a0_0x573f,_0x24fec4={};for(const _0x3654ab of _0x2b6a48){const _0x506e4c=getTableName(_0x3654ab);!_0x24fec4[_0x506e4c]&&(_0x24fec4[_0x506e4c]=[]),_0x24fec4[_0x506e4c][_0x17ae53(0x273)](_0x3654ab);}const _0x53cdb7={};for(const [_0x3a227a,_0xce4a20]of Object['entries'](_0x24fec4)){_0xce4a20[_0x17ae53(0x24c)]>0x1&&(_0x53cdb7[_0x3a227a]=_0xce4a20);}return{'hasConflicts':Object[_0x17ae53(0x254)](_0x53cdb7)['length']>0x0,'conflicts':_0x53cdb7};}function createDatasetNameMap(_0x3c2128){const _0x1ca99d=a0_0x573f,_0x232706={};for(const [_0x20205f,_0x53e6a7]of Object[_0x1ca99d(0x16a)](_0x3c2128)){_0x232706[_0x20205f]=_0x53e6a7[_0x1ca99d(0x129)]||'';}return _0x232706;}function groupByTableName(_0x5e7c8a){const _0x3080c2=a0_0x573f,_0xde5f7f={};for(const _0x32d4bf of _0x5e7c8a){const _0x4d30ec=getTableName(_0x32d4bf);!_0xde5f7f[_0x4d30ec]&&(_0xde5f7f[_0x4d30ec]=[]),_0xde5f7f[_0x4d30ec][_0x3080c2(0x273)](_0x32d4bf);}return _0xde5f7f;}function datasetsConfigToArray(_0x57f92c){const _0x3c7e0e=a0_0x573f;return Object[_0x3c7e0e(0x21c)](_0x57f92c);}function adaptDrivenDataDetail(_0x569106){const _0x23356e=a0_0x573f;return{'id':_0x569106[_0x23356e(0xcc)],'name':_0x569106[_0x23356e(0x1ab)],'datasetCode':_0x569106['modelCode'],'dbtableConfig':_0x569106['dbtableConfig'],'source':_0x569106[_0x23356e(0x19a)],'version':_0x569106[_0x23356e(0x233)],'extend':_0x569106[_0x23356e(0x2d1)],'properties':_0x569106[_0x23356e(0x1d8)],'operations':_0x569106[_0x23356e(0x2d6)]};}function adaptDrivenDataDetails(_0x599bfa){const _0x2d25ed=a0_0x573f;return _0x599bfa[_0x2d25ed(0x18a)](adaptDrivenDataDetail);}function extractDatasetFromResponse(_0x1be9f8){const _0x309e8e=a0_0x573f;if(!_0x1be9f8[_0x309e8e(0x2d0)]||!_0x1be9f8[_0x309e8e(0x114)])throw new Error(_0x309e8e(0x258)+(_0x1be9f8[_0x309e8e(0x149)]||_0x1be9f8['msg']));return adaptDrivenDataDetail(_0x1be9f8['data']);}function extractDatasetsFromListResponse(_0x48501d){const _0x86e733=a0_0x573f;if(!_0x48501d[_0x86e733(0x2d0)]||!_0x48501d[_0x86e733(0x114)]?.[_0x86e733(0xbc)])throw new Error(_0x86e733(0x1dd)+(_0x48501d[_0x86e733(0x149)]||_0x48501d[_0x86e733(0x2d2)]));return _0x48501d[_0x86e733(0x114)][_0x86e733(0xbc)][_0x86e733(0x18a)](_0x592e0e=>({..._0x592e0e,'datasetCode':_0x592e0e[_0x86e733(0x278)]||_0x592e0e[_0x86e733(0x129)]}));}function isDrivenDataDetail(_0x68593a){const _0x34a2dc=a0_0x573f;return Boolean(_0x68593a&&typeof _0x68593a[_0x34a2dc(0x17a)]===_0x34a2dc(0x286));}function smartAdapt(_0x35b277){const _0x3a7d06=a0_0x573f;if(isDrivenDataDetail(_0x35b277))return adaptDrivenDataDetail(_0x35b277);if(_0x35b277[_0x3a7d06(0x129)])return _0x35b277;if(_0x35b277[_0x3a7d06(0x278)])return{..._0x35b277,'datasetCode':_0x35b277[_0x3a7d06(0x278)]};return _0x35b277;}var DatasetOperationType;(_0x577887=>{const _0x155150=a0_0x573f;_0x577887['GET_LIST']=_0x155150(0x23c),_0x577887[_0x155150(0x1a2)]='getOne',_0x577887[_0x155150(0x1d6)]=_0x155150(0x271),_0x577887[_0x155150(0x158)]='getOneUpdate',_0x577887[_0x155150(0x240)]=_0x155150(0x1e8),_0x577887['UPDATE']=_0x155150(0x1b6),_0x577887[_0x155150(0x2bc)]='delete',_0x577887[_0x155150(0x1e4)]=_0x155150(0x116),_0x577887['GET_FILE_URL']=_0x155150(0x1ca),_0x577887['EXCEL_EXPORT']='excelExport',_0x577887[_0x155150(0x1f8)]=_0x155150(0x2cd),_0x577887['CREATE_IMPORT']='createImport',_0x577887['CREATE_EXPORT']=_0x155150(0x151),_0x577887[_0x155150(0x193)]=_0x155150(0x1bb),_0x577887[_0x155150(0x23b)]=_0x155150(0x19c);})(DatasetOperationType||={});var OPERATION_TYPE_DISPLAY_NAME={[a0_0x556480(0x23c)]:a0_0x556480(0x239),[a0_0x556480(0x19b)]:'查询单条',[a0_0x556480(0x271)]:a0_0x556480(0x2ad),[a0_0x556480(0x204)]:'查询单条(用于更新)',['create']:'创建',[a0_0x556480(0x1b6)]:'更新',[a0_0x556480(0x1a8)]:'删除',[a0_0x556480(0x116)]:a0_0x556480(0x1c8),['getFileUrl']:a0_0x556480(0x144),['excelExport']:a0_0x556480(0x177),[a0_0x556480(0x2cd)]:'获取上传脚本',[a0_0x556480(0xea)]:a0_0x556480(0x141),['createExport']:a0_0x556480(0x20c),[a0_0x556480(0x1bb)]:a0_0x556480(0x156),['importTemplate']:a0_0x556480(0x1ee)},API_BLACKLIST=[a0_0x556480(0x23c),a0_0x556480(0x271),a0_0x556480(0x204),'getFileUrl'];function parseFieldExtend(_0x461f3f){const _0x6ec30d=a0_0x556480;if(!_0x461f3f||typeof _0x461f3f!==_0x6ec30d(0x19f))return!![]&&console['warn']('[parseFieldExtend]\x20Invalid\x20field:',_0x461f3f),{};if(!_0x461f3f['extend'])return{};try{const _0x404889=typeof _0x461f3f[_0x6ec30d(0x2d1)]===_0x6ec30d(0x286)?JSON['parse'](_0x461f3f[_0x6ec30d(0x2d1)]):_0x461f3f[_0x6ec30d(0x2d1)];if(typeof _0x404889!==_0x6ec30d(0x19f)||_0x404889===null)return{};return _0x404889;}catch{return{};}}function isPrimaryKeyField(_0x236a32,_0x2b6384){const _0x363de6=a0_0x556480;if(!_0x236a32||typeof _0x236a32!==_0x363de6(0x19f))return![];if(typeof _0x2b6384==='string'&&_0x236a32['code']===_0x2b6384)return!![];const _0x84ab77=parseFieldExtend(_0x236a32);return Boolean(_0x84ab77[_0x363de6(0x182)]||_0x84ab77['pkField']);}function isSystemField(_0x1998cf){const _0xad9a9b=a0_0x556480,_0x33be50=parseFieldExtend(_0x1998cf);return Boolean(_0x33be50[_0xad9a9b(0x19e)]);}function isRequiredField(_0x31a5f2){const _0x52f013=a0_0x556480,_0x16406a=parseFieldExtend(_0x31a5f2);return Boolean(_0x16406a[_0x52f013(0x2d9)]);}function isAutoIncrementField(_0x2770cc){const _0x50817e=a0_0x556480,_0x481470=parseFieldExtend(_0x2770cc);return Boolean(_0x481470[_0x50817e(0x1cc)]);}function isCreateTimeField(_0x29e169){const _0x825df1=a0_0x556480,_0x2f624b=parseFieldExtend(_0x29e169);return Boolean(_0x2f624b[_0x825df1(0x262)]);}function isModifyTimeField(_0x55a0ec){const _0x515cdd=a0_0x556480,_0xbf79fa=parseFieldExtend(_0x55a0ec);return Boolean(_0xbf79fa[_0x515cdd(0x119)]);}var DB_TYPE_DISPLAY_MAP={'NUMBER':'数字','TEXT':'文本','TEXTAREA':'长文本','DATE':'日期','DATETIME':a0_0x556480(0x1a1),'TIMESTAMP':'时间戳','SELECT':'下拉选择','CHECKBOX':'多选','RADIO':'单选','SWITCH':'开关','UPLOAD':a0_0x556480(0x248),'IMAGE':'图片','RICH_TEXT':a0_0x556480(0xc9),'JSON':a0_0x556480(0x2c9),'ARRAY':'数组'};function getDbTypeDisplay(_0x5ceb69){const _0x178913=a0_0x556480;if(typeof _0x5ceb69!==_0x178913(0x286))return!![]&&console[_0x178913(0x15e)]('[getDbTypeDisplay]\x20type\x20is\x20not\x20a\x20string:',_0x5ceb69),String(_0x5ceb69||'-');return DB_TYPE_DISPLAY_MAP[_0x5ceb69]||_0x5ceb69;}function a0_0x4448(){const _0x23638e=['getAutoIncrement','\x20operation\x0a','完整的\x20SDK\x20调用代码','fromApiResponse','labelField','getEnumFieldMeta','withDeleted','keys','getAt','$contain','操作成功','获取数据集失败:\x20','description','(id,\x20','SDK\x20调用','createAll','type','errorCode','import\x20{\x20createClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;\x0a\x0a//\x20Create\x20SDK\x20client\x0aconst\x20client\x20=\x20createClient({\x0a\x20\x20appCode:\x20\x27','hasUpdateTimeField','selectItemsSource','createDate','forEach','\x0a\x0a//\x20','get','getCreateTime','createTimeField','getEnabledOperationAnalyses','dbType','toFullConfig','address','Object[]','getOperationCountByMethod','[FieldList]\x20Field\x20definitions\x20must\x20be\x20an\x20array','host','multiple','getOneOrigin','[Field]\x20Invalid\x20field\x20definition','push','lastIndexOf','status','_operationAnalyses','item2','code','getOperationAnalyses','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20data\x20=\x20await\x20client.models.','value','2053260twURWz','empty','tooltip','BIGINT','\x0a\x20\x20accessKey:\x20process.env.LOVRABET_ACCESS_KEY,','getOperationCountByType','\x20的\x20extend\x20配置失败:','hasCreatorIdField','customFilter','toArray','string','getFieldCount','dbName','generateResponseExample','//\x20导出所有数据\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','getUpdatableFields','params','();\x0a\x20\x20window.open(fileUrl,\x20\x27_blank\x27);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x0a}','getFilterOperation','isRequiredField','set','every','示例值','toConfigArray','generateFromSchema','isSystem','isPrimaryKey','getOperations','padStart','generateRequestAllExamples',',\x20currentPage,\x20pageSize,\x20...\x20});','String[]','fields','toISOString','getName','valueLabels','fieldCount','getTenantCode','getBusiness','12620gCAHCl','`:\x20','getOperationsOverviewData','//\x20单值查询\x0aconst\x20result\x20=\x20await\x20client.models.','getFieldOperators','getLatestDatasets','getType','total','$gteq','要更新的字段数据对象','查询单条(原始)','getDeleted','DrivenDataDetail(','defaultValue','trim','children','options','dbVersion','label','[DrivenDataDetail.getOperation]\x20operationType\x20is\x20not\x20a\x20string:','select','getBusinessFields','groupByTableName','initDataset','orderBy','DELETE','_fields','getOperationFieldsOperatorsMap','logicField','updateTime','234wPtWYa','successCode','https://example.com/file.pdf','getMissingCRUDOperations','getFilterOperators','replace','\x20items,\x20conflict,\x20latest:\x20','items','JSON','({\x20currentPage,\x20pageSize\x20});','generateRequestExample','DatasetGroup(','getUploadFileScript','number','(...);\x0a\x20\x20console.log(data);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x20(包含\x20success,\x20errorMsg\x20等)\x0a}','success','extend','msg','({\x20','_raw','getUpdateFields','operations','\x27\x20\x20//\x20人类友好的别名,可通过\x20client.models.','getDisabledOperationInstances','required','();\x0a//\x20fileUrl:\x20\x22https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/xxx.xlsx?...\x22\x0awindow.open(fileUrl,\x20\x27_blank\x27);\x20//\x20打开下载','getAllFieldsArray','tableData','getDisabledOperations','\x0a\x0a//\x20复杂查询(组合条件)\x0aconst\x20result2\x20=\x20await\x20client.models.','getRequired','Object','RADIO','hasLogicField','businessFieldCount','currentPage','getRequestFields','每页数量','all','Integer','富文本','getSelectItemsSource','$ne','modelId','getPath','\x27,\x0a\x20\x20\x20\x20\x20\x20datasetCode:\x20\x27','datasetMap','示例文本','DESC','STRING','getMethod','some','(id);','Operation\x20instance\x20not\x20found:\x20','getOperationFieldOperators','getRawDbtableConfig','requestBody','sdkCallCode','getFieldsWithDeleted','getApplicableOperators','field_name','min','[Operation.parseRawRequestBody]\x20requestBody\x20is\x20not\x20a\x20string:','DATE','dbId','-\x20要更新的字段数据对象,只需包含需要修改的字段\x0a\x0a',',\x20...\x20});','getItems',');\x0a\x0a//\x20数组查询(支持多选)\x0aconst\x20result\x20=\x20await\x20client.models.','/filter','toLowerCase','6641256lnzsKb','pkField','createImport','getSystem','value2','getModelName','Invalid\x20simplified\x20API\x20response:\x20tableData\x20must\x20be\x20an\x20array','_operationList','keyword','isAutoIncrement','generateDefaultFilterOperation','getVirtualTables','请求示例','repeat','substring','boolean','dblinkInfoDTO','getResponseSchema','-\x20`','toObject','slice','generateAllOperationsFullSDKExample','hasCreateTimeField','getOperationRequestFields','_operations','modifierIdField','getOperationAnalysis','解析\x20responseBody\x20失败:','includeDeleted','tableName','generateAllOperationsSummary','getAll','[getFieldsForOperation]\x20fields\x20is\x20not\x20an\x20array:','hasConflicts','字段编码','from','requestFields','DATETIME','200','includes','getFieldDefinition','\x20operations)','getDatabaseName','\x0a##\x20模型访问方式说明\x0a\x0aSDK\x20提供两种模型访问方式:\x0a\x0a###\x201.\x20标准方式(推荐用于程序化场景)\x0a\x0a使用\x20`dataset_[完整datasetCode]`\x20格式(即\x20datasetSDKKey),这是通用的、稳定的访问方式:\x0a\x0a```javascript\x0a//\x20标准访问方式\x0aconst\x20result\x20=\x20await\x20client.models.','data',',\x20fields:\x20','getSelectOptions','has\x20conflicts','getByType','modifyDate','includeDisabled','\x20API\x20文档','prefix','groupByType','getDatasetDocMeta','getEnabled','_datasetMap','null','query','generateConfigArray','getEnabledOperations','toString','(...);\x0aconsole.log(data);\x20','getCount','({\x20/*\x20可选:筛选条件\x20*/\x20});','datasetCode','isCreateTime','BOOL','**参数\x201:\x20`id`**\x20(NUMBER,\x20必填)\x0a','VARCHAR','\x0a\x20\x20env:\x20\x27','这是一段较长的文本内容示例','getTooltip','update\x20接口接受两个参数:\x0a','(params);','[generateRequestExample]\x20Invalid\x20field:','OperationList(','getEnabledNames','parseRawRequestBody','sdkCall','getOperationDocMeta','findByTableName','_fieldListWithDeleted','array','displayName','path','supportsCRUD','[Operation.getFieldDefinition]\x20fieldCode\x20is\x20not\x20a\x20string:','返回字段列表(字段投影)','创建导入','13800138000','NUMBER','获取文件URL','getFilteredOperationAnalyses','dataset_unknown','join','has','errorMsg','modifierNameField','getDefaultValue','isDeleted','add','creatorNameField','TIMESTAMP','getEnum','createExport','$endWith','phone','getUpdateTime','\x0a**查询参数**\x0a\x0a```ts\x0ainterface\x20FilterParams\x20{\x0a\x20\x20where?:\x20WhereCondition;\x20//\x20查询条件(不传则查询所有)\x0a\x20\x20select?:\x20string[];\x20//\x20选择返回的字段(仅在有明确返回字段需求时设置)\x0a\x20\x20orderBy?:\x20Record<string,\x20\x22asc\x22\x20|\x20\x22desc\x22>[];\x20//\x20排序规则(仅在有排序要求时设置)\x0a\x20\x20currentPage?:\x20number;\x20//\x20当前页码(从\x201\x20开始,默认:\x201)\x0a\x20\x20pageSize?:\x20number;\x20//\x20每页数量(默认:\x2020)\x0a}\x0a```\x0a\x0a**WhereCondition\x20查询条件使用规范**\x0a\x0a`where`\x20中允许使用以下操作符(都以小写\x20`$`\x20开头,大小写敏感):\x0a\x0a|\x20操作符\x20|\x20说明\x20|\x20示例\x20|\x0a|\x20------\x20|\x20------\x20|\x20------\x20|\x0a|\x20`$eq`\x20|\x20等于\x20|\x20`{\x20age:\x20{\x20$eq:\x2018\x20}\x20}`\x20|\x0a|\x20`$ne`\x20|\x20不等于\x20|\x20`{\x20status:\x20{\x20$ne:\x20\x22deleted\x22\x20}\x20}`\x20|\x0a|\x20`$gte`\x20/\x20`$gteq`\x20|\x20大于等于\x20|\x20`{\x20age:\x20{\x20$gte:\x2018\x20}\x20}`\x20|\x0a|\x20`$lte`\x20/\x20`$lteq`\x20|\x20小于等于\x20|\x20`{\x20age:\x20{\x20$lte:\x2065\x20}\x20}`\x20|\x0a|\x20`$in`\x20|\x20在集合内\x20|\x20`{\x20country:\x20{\x20$in:\x20[\x22中国\x22,\x20\x22美国\x22]\x20}\x20}`\x20|\x0a|\x20`$nin`\x20|\x20不在集合内\x20|\x20`{\x20country:\x20{\x20$nin:\x20[\x22北京\x22,\x20\x22上海\x22]\x20}\x20}`\x20|\x0a|\x20`$contain`\x20|\x20包含(模糊匹配)\x20|\x20`{\x20name:\x20{\x20$contain:\x20\x22hello\x22\x20}\x20}`\x20|\x0a|\x20`$startWith`\x20|\x20以...开头\x20|\x20`{\x20email:\x20{\x20$startWith:\x20\x22admin\x22\x20}\x20}`\x20|\x0a|\x20`$endWith`\x20|\x20以...结尾\x20|\x20`{\x20filename:\x20{\x20$endWith:\x20\x22.pdf\x22\x20}\x20}`\x20|\x0a\x0a逻辑连接符:\x0a\x0a|\x20连接符\x20|\x20说明\x20|\x20示例\x20|\x0a|\x20------\x20|\x20------\x20|\x20------\x20|\x0a|\x20`$and`\x20|\x20且(所有条件都满足)\x20|\x20`{\x20$and:\x20[{\x20age:\x20{\x20$gte:\x2018\x20}\x20},\x20{\x20\x22country\x22:\x20{\x20\x22$eq\x22:\x20\x22中国\x22\x20}\x20}]\x20}`\x20|\x0a|\x20`$or`\x20|\x20或(任一条件满足)\x20|\x20`{\x20$or:\x20[{\x20name:\x20{\x20$contain:\x20\x22张三\x22\x20}\x20},\x20{\x20\x22email\x22:\x20{\x20\x22$startWith\x22:\x20\x22zhangsan\x22\x20}\x20}]\x20}`\x20|\x0a\x0a必要时可以嵌套使用:`$and`\x20内包含\x20`$or`,或\x20`$or`\x20内包含\x20`$and`。\x0a严禁使用文档范围之外的其他操作符。\x0a\x0a**可用查询字段**\x0a','任务信息','getOperationOperators','GET_ONE_UPDATE','getField','getTableKey','//\x20成功时\x20-\x20直接获取文件\x20URL(字符串)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','getActive','getFieldInstance','warn','getLatest','placeholder','getCountByMethod','getAppCode','getDatasetSDKKey','sort','findById','generateSingleValueExample','//\x20成功时\x20-\x20直接获取\x20data\x20字段内容\x0aconst\x20data\x20=\x20await\x20client.models.','allFields','\x0a\x20\x20models:\x20[\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20tableName:\x20\x27','entries','getAllDatasets','sortNum','generateFullSDKExample','getOperationStats','createTime','value1','const\x20fileUrl\x20=\x20await\x20client.models.','getEnumFields','(id,\x20data);','filter','113454SXvtwp','N/A','Excel导出','3035397JekkNi','<p>富文本内容</p>','modelCode','[generateExampleValue]\x20fieldType\x20is\x20not\x20a\x20string:','getRequestParams','isRequired','getConflictStats','getEnumOptions','$eq','toListItem','primaryKey','const\x20result\x20=\x20await\x20client.models.','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20fileUrl\x20=\x20await\x20client.models.','[Operation.getFieldDefinition]\x20context.fields\x20is\x20not\x20an\x20array','hasOperation','parse','getAllFieldsString','toFieldDefinition','map','getRealTables','hasDbtableConfig','parseFieldExtend','pageSize','DatasetGroupMap(','enabled','-\x20主键ID,用于定位要更新的记录\x0a\x0a','getEnumMeta','TASK_INFO','generateSDKInitCode','getRequestParamsDocInfo','operation','getFieldSelectItemsSource','[Operation.parseRawResponseBody]\x20responseBody\x20is\x20not\x20a\x20string:','[parseOperationType]\x20value\x20is\x20not\x20a\x20string:','source','getOne','importTemplate','isArray','systemRetain','object','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20可读性强,符合编程命名习惯\x0a-\x20便于记忆和手工编写\x0a-\x20代码更加简洁美观\x0a\x0a**注意**:使用别名方式需要在\x20`registerModels`\x20时配置\x20`alias`\x20字段。\x0a','日期时间','GET_ONE','isPrimaryKeyField','getFieldListWithDeleted','7846622cfWWDn','getFieldList','getConflicts','delete','getFieldsByType','getPrimaryKeys','name','getOperationCount','https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/example_file_XXXXXXX.xlsx?Expires=1765374987&OSSAccessKeyId=LTAI5tGCr8Eb3UVbdf5ap9Z1&Signature=k115junCUe7Ot5BTSov0Usul3oc%3D','isEmpty','getFullUrl','responseExample','isVirtualTable','dataset_','getOperationList','isBusiness','split','update','getOldest','getEnumFieldsMeta','responseBody','hasModifierIdField','taskInfo','String','0000','-\x20**第二个参数\x20`data`**:要更新的字段数据对象,只需包含需要修改的字段','findByCode','Number','getFieldFilterOperators','DatasetList(','hasDblinkInfo','2AwOLZp','getPrimaryKeyFields','find','hasConflict','获取下拉选项','_fieldList','getFileUrl','method','autoIncrement','detectConflicts','generateSDKCallCode','\x20groups,\x20','findByName','();','getFields','\x20fields,\x20','getFiltered','DECIMAL','GET_ONE_ORIGIN','isOperationEnabled','properties','API路径','getSystemFields','sortOperationsWithFilterFirst','$in','获取数据集列表失败:\x20','findAll','size','dataset_000000','context','getNames','getEnumMetas','GET_SELECT_OPTIONS','getDisplayName','getIds','getSDKInitData','create','hasTableName','Invalid\x20API\x20response:\x20success\x20is\x20false','getOperationAnalysesByType','isMultipleSelect','[DrivenDataDetail.parseFieldExtend]\x20Invalid\x20field:','导入模板','getModelAlias','toConfig','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20唯一确定,不会产生命名冲突\x0a-\x20适合程序自动生成代码\x0a-\x20与\x20datasetCode\x20直接对应,便于追溯\x0a\x0a###\x202.\x20别名方式(推荐用于人工编码场景)\x0a\x0a使用\x20camelCase\x20格式的别名,更加人类友好:\x0a\x0a```javascript\x0a//\x20别名访问方式(需要在\x20registerModels\x20时配置\x20alias)\x0aconst\x20result\x20=\x20await\x20client.models.','usageExample','fieldName','getCodes','DbtableConfig(table:\x20','charAt','dbtableConfig','GET_UPLOAD_FILE_SCRIPT','groups','SELECT','isEnum','tenantCode','deleted','排序规则','creatorIdField','getStats','getDatabaseType','updateTimeField','\x20items,\x20','getOneUpdate','getTableName','test','generateOperationSummary','raw','getOperation','getConflictingItems','getSource','创建导出','isSystemField','fullUrl','(支持单值或数组)','**可更新的字段列表:**','\x22,数据集:\x20','systemFieldCount','getCountByType','https://example.com/image.jpg','stringify','[generateExampleValue]\x20fieldCode\x20is\x20not\x20a\x20string:','INTEGER','[dsparser]\x20跳过重复的表名\x20\x22','操作名称','toJSON','2024-12-31','values','generateConfig','getOperators','appCode','$lteq','online','iterator','();\x0a\x0a//\x20导出指定条数\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','toUpperCase','\x20Response\x20example:\x0a','getRaw','getFieldRaw','$or','hasField','\x27,\x0a\x20\x20\x20\x20\x20\x20alias:\x20\x27','TEXT','_extend','parseRawResponseBody','2024-01-01','[DrivenDataDetail.getFieldInstance]\x20code\x20is\x20not\x20a\x20string:','当前页码(可选)','BOOLEAN','isOperatorApplicableToField','version','$lte','isUpdateTime','1184768teXYUS','查询单个条件','user@example.com','查询列表','$gte','IMPORT_TEMPLATE','getList','isEnabled','ensureFilterOperation','[filterApiOperations]\x20operations\x20is\x20not\x20an\x20array:','CREATE','generateUsageExample','datasetKey','getDisabledNames','字段名称','generateFieldExample','generateExampleValue','();\x0a\x0a//\x20按条件导出(支持与\x20filter\x20相同的参数)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','文件上传','$startWith','no\x20conflicts','主键ID(必填)','length'];a0_0x4448=function(){return _0x23638e;};return a0_0x4448();}function formatDbType(_0x3674e9,_0x55960d){const _0x379db5=a0_0x556480;if(!_0x3674e9||typeof _0x3674e9!==_0x379db5(0x286))return'-';if(!_0x55960d||typeof _0x55960d!==_0x379db5(0x2ce))return _0x3674e9;const _0x343223=[_0x379db5(0x22b),_0x379db5(0x10d),_0x379db5(0x14f),'DATE'];if(_0x343223['includes'](_0x3674e9[_0x379db5(0x224)]()))return _0x3674e9;return _0x3674e9+'('+_0x55960d+')';}function parseOperationType(_0x4b05b7){const _0x3b8893=a0_0x556480;if(typeof _0x4b05b7!==_0x3b8893(0x286)){!![]&&console[_0x3b8893(0x15e)](_0x3b8893(0x199),_0x4b05b7);return;}if(Object['values'](DatasetOperationType)['includes'](_0x4b05b7))return _0x4b05b7;const _0x3d16c0=Object[_0x3b8893(0x16a)](OPERATION_TYPE_DISPLAY_NAME)[_0x3b8893(0x1c6)](([_0x47eca6,_0x1d2873])=>_0x1d2873===_0x4b05b7);return _0x3d16c0?_0x3d16c0[0x0]:undefined;}function shouldIncludeField(_0x4bdb5f,_0x4f254e,_0xf47d2a){const _0xf52443=a0_0x556480,_0x59b678=parseFieldExtend(_0x4bdb5f),_0x18b1b7=isPrimaryKeyField(_0x4bdb5f,_0xf47d2a),_0x4579ef=Boolean(_0x59b678['systemRetain']),_0x591edc=Boolean(_0x59b678[_0xf52443(0x1cc)]),_0x23f1f8=Boolean(_0x59b678[_0xf52443(0x262)]),_0x8c1c4d=Boolean(_0x59b678[_0xf52443(0x119)]);switch(_0x4f254e){case _0xf52443(0x23c):return!![];case _0xf52443(0x19b):case _0xf52443(0x271):case _0xf52443(0x1a8):return _0x18b1b7;case _0xf52443(0x1e8):if(_0x18b1b7&&_0x591edc)return![];if(_0x4579ef)return![];if(_0x23f1f8||_0x8c1c4d)return![];return!![];case _0xf52443(0x1b6):case _0xf52443(0x204):if(_0x18b1b7)return!![];if(_0x4579ef)return![];if(_0x23f1f8||_0x8c1c4d)return![];return!![];case _0xf52443(0x116):return _0x4bdb5f[_0xf52443(0x278)]===_0xf52443(0x278);default:return!![];}}function getFieldsForOperation(_0x12528a,_0x9b8c05,_0xbe3026){const _0xed8293=a0_0x556480;if(!Array['isArray'](_0x12528a))return!![]&&console['warn'](_0xed8293(0x108),_0x12528a),[];return _0x12528a['filter'](_0x3a8750=>shouldIncludeField(_0x3a8750,_0x9b8c05,_0xbe3026));}function isApiBlacklisted(_0x177219){const _0x1e248e=a0_0x556480;if(typeof _0x177219!==_0x1e248e(0x286))return!![]&&console[_0x1e248e(0x15e)]('[isApiBlacklisted]\x20operationName\x20is\x20not\x20a\x20string:',_0x177219),![];return API_BLACKLIST[_0x1e248e(0x10f)](_0x177219);}function filterApiOperations(_0x117893){const _0x182d7c=a0_0x556480;if(!Array['isArray'](_0x117893))return!![]&&console[_0x182d7c(0x15e)](_0x182d7c(0x23f),_0x117893),[];return _0x117893['filter'](_0x338ba5=>_0x338ba5&&typeof _0x338ba5===_0x182d7c(0x19f)&&!isApiBlacklisted(_0x338ba5[_0x182d7c(0x1ab)]));}var TYPE_VALUE_GENERATORS={'TIMESTAMP':()=>Date['now'](),'DATE':()=>Date['now'](),'SELECT':({fieldInfo:_0x430e0a})=>{const _0x1c9cd6=a0_0x556480;if(_0x430e0a?.['options']&&Array[_0x1c9cd6(0x19d)](_0x430e0a['options'])&&_0x430e0a[_0x1c9cd6(0x2b3)][_0x1c9cd6(0x24c)]>0x0)return _0x430e0a[_0x1c9cd6(0x2b3)][0x0]['value'];return 0x1;},'NUMBER':()=>0x7b,'INTEGER':()=>0x64,'Integer':({fieldCode:_0x127997})=>{const _0x4c6955=a0_0x556480;if(_0x127997===_0x4c6955(0xc4))return 0x1;if(_0x127997===_0x4c6955(0x18e))return 0xa;return 0x64;},'BIGINT':()=>0xf4240,'Long':()=>0xf4240,'INT':()=>0x64,'TINYINT':()=>0x1,'DECIMAL':()=>99.99,'FLOAT':()=>99.99,'DOUBLE':()=>99.99,'TEXT':({description:_0x3f9309})=>{const _0x4e89ac=a0_0x556480;if(_0x3f9309&&typeof _0x3f9309===_0x4e89ac(0x286)){const _0x4b810a=_0x3f9309[_0x4e89ac(0xe7)]();if(_0x4b810a[_0x4e89ac(0x10f)]('邮箱')||_0x4b810a['includes']('email'))return _0x4e89ac(0x238);if(_0x4b810a[_0x4e89ac(0x10f)]('电话')||_0x4b810a[_0x4e89ac(0x10f)]('手机')||_0x4b810a[_0x4e89ac(0x10f)](_0x4e89ac(0x153)))return _0x4e89ac(0x142);if(_0x4b810a[_0x4e89ac(0x10f)]('地址')||_0x4b810a[_0x4e89ac(0x10f)](_0x4e89ac(0x26b)))return'北京市朝阳区';if(_0x4b810a['includes']('姓名')||_0x4b810a[_0x4e89ac(0x10f)](_0x4e89ac(0x1ab)))return'张三';}return _0x4e89ac(0xd0);},'VARCHAR':({description:_0x3c5715})=>TYPE_VALUE_GENERATORS[a0_0x556480(0x22b)]({'description':_0x3c5715}),'CHAR':({description:_0xabb729})=>TYPE_VALUE_GENERATORS[a0_0x556480(0x22b)]({'description':_0xabb729}),'STRING':({fieldInfo:_0x5e71fd,description:_0xb70054})=>{const _0xd7d61=a0_0x556480;if(_0x5e71fd?.['placeholder']&&typeof _0x5e71fd[_0xd7d61(0x160)]===_0xd7d61(0x286)&&_0x5e71fd[_0xd7d61(0x160)]!=='系统自动生成')return _0x5e71fd[_0xd7d61(0x160)][_0xd7d61(0x2c6)](/^请输入|^请选择/,'');return TYPE_VALUE_GENERATORS[_0xd7d61(0x22b)]({'description':_0xb70054});},'TEXTAREA':()=>a0_0x556480(0x12f),'LONGTEXT':()=>'这是一段较长的文本内容示例','BOOLEAN':()=>!![],'BOOL':()=>!![],'Boolean':()=>!![],'SWITCH':()=>!![],'CHECKBOX':()=>[0x1,0x2],'RADIO':()=>0x1,'JSON':()=>({'key':a0_0x556480(0x27b)}),'ARRAY':()=>['item1',a0_0x556480(0x277)],'UPLOAD':()=>a0_0x556480(0x2c3),'IMAGE':()=>a0_0x556480(0x214),'RICH_TEXT':()=>a0_0x556480(0x179)};function generateExampleValue(_0x3bd9b1,_0xeb4fab,_0x483385,_0x394e59={}){const _0x27cb61=a0_0x556480;typeof _0x3bd9b1!==_0x27cb61(0x286)&&(!![]&&console[_0x27cb61(0x15e)](_0x27cb61(0x216),_0x3bd9b1),_0x3bd9b1=String(_0x3bd9b1||''));if(typeof _0xeb4fab!==_0x27cb61(0x286))return!![]&&console[_0x27cb61(0x15e)](_0x27cb61(0x17b),_0xeb4fab),_0x27cb61(0x292);const {isPrimaryKey:_0x2cac4b,dbtableConfig:_0x41529e}=_0x394e59;if(_0x2cac4b)return 0x1;if(_0x41529e&&typeof _0x41529e===_0x27cb61(0x19f)){const _0x303b23=_0x41529e[_0x27cb61(0x267)]?.[_0x27cb61(0x1f3)]===_0x3bd9b1,_0x4f76c2=_0x41529e[_0x27cb61(0x202)]?.[_0x27cb61(0x1f3)]===_0x3bd9b1;if(_0x303b23||_0x4f76c2){if(_0x483385&&typeof _0x483385===_0x27cb61(0x286)&&_0x483385[_0x27cb61(0x224)]()[_0x27cb61(0x10f)](_0x27cb61(0x14f)))return Date['now']();return new Date()[_0x27cb61(0x29d)]()[_0x27cb61(0x2c6)]('T','\x20')[_0x27cb61(0x1b5)]('.')[0x0];}}const _0xf3aa57={..._0x394e59,'fieldCode':_0x3bd9b1};if(_0x483385&&typeof _0x483385===_0x27cb61(0x286)){const _0x121145=_0x483385[_0x27cb61(0x224)](),_0x3146b7=TYPE_VALUE_GENERATORS[_0x121145];if(_0x3146b7)return _0x3146b7(_0xf3aa57);}if(_0xeb4fab&&typeof _0xeb4fab===_0x27cb61(0x286)){const _0x2be8b8=_0xeb4fab[_0x27cb61(0x224)](),_0xbd559f=TYPE_VALUE_GENERATORS[_0x2be8b8];if(_0xbd559f)return _0xbd559f(_0xf3aa57);}return _0x27cb61(0x292);}function generateExampleFromSchema(_0x53b44f,_0x481254){const _0x326d69=a0_0x556480;if(!_0x53b44f||typeof _0x53b44f!==_0x326d69(0x19f))return{};if(Array[_0x326d69(0x19d)](_0x53b44f)){if(_0x53b44f[_0x326d69(0x24c)]>0x0)return[generateExampleFromSchema(_0x53b44f[0x0],_0x481254)];return[];}const _0x532903={};return Object[_0x326d69(0x254)](_0x53b44f)[_0x326d69(0x263)](_0x2ab73e=>{const _0x280aa9=_0x326d69,_0xa66a11=_0x53b44f[_0x2ab73e];if(_0xa66a11&&typeof _0xa66a11===_0x280aa9(0x19f)&&!Array[_0x280aa9(0x19d)](_0xa66a11)&&_0xa66a11[_0x280aa9(0x25d)]){const _0x5f3462=_0xa66a11,_0x4daf24=_0x5f3462[_0x280aa9(0x25d)],_0x1d50c1=_0x5f3462[_0x280aa9(0x259)];typeof _0x4daf24===_0x280aa9(0x286)?_0x532903[_0x2ab73e]=generateExampleValue(_0x2ab73e,_0x4daf24,undefined,{'description':_0x1d50c1,'dbtableConfig':_0x481254}):_0x532903[_0x2ab73e]=_0x280aa9(0x292);}else{if(Array[_0x280aa9(0x19d)](_0xa66a11))_0x532903[_0x2ab73e]=_0xa66a11[_0x280aa9(0x24c)]>0x0?[generateExampleFromSchema(_0xa66a11[0x0],_0x481254)]:[];else _0xa66a11&&typeof _0xa66a11===_0x280aa9(0x19f)?_0x532903[_0x2ab73e]=generateExampleFromSchema(_0xa66a11,_0x481254):_0x532903[_0x2ab73e]=_0xa66a11;}}),_0x532903;}function parseRequestBody(_0x449409){const _0x58a130=a0_0x556480;if(!_0x449409)return{};try{return JSON[_0x58a130(0x187)](_0x449409);}catch(_0x1d9cb3){return!![]&&console[_0x58a130(0x15e)]('解析\x20requestBody\x20失败:',_0x1d9cb3),{};}}function parseResponseBody(_0x318742){const _0x1236c9=a0_0x556480;if(!_0x318742)return null;try{const _0x33c7a1=JSON[_0x1236c9(0x187)](_0x318742);return _0x33c7a1[_0x1236c9(0x10e)]||_0x33c7a1;}catch(_0x487123){return!![]&&console[_0x1236c9(0x15e)](_0x1236c9(0x103),_0x487123),null;}}function generateRequestExample(_0x2bf16f,_0x41ceca,_0x265e55,_0x1ceb5b){const _0x4ce91a=a0_0x556480,_0x2522d6={};if(!Array[_0x4ce91a(0x19d)](_0x2bf16f))return!![]&&console[_0x4ce91a(0x15e)]('[generateRequestExample]\x20fields\x20is\x20not\x20an\x20array:',_0x2bf16f),_0x2522d6;return _0x2bf16f[_0x4ce91a(0x263)](_0x2baec9=>{const _0x182726=_0x4ce91a;if(!_0x2baec9||typeof _0x2baec9!=='object'){!![]&&console[_0x182726(0x15e)](_0x182726(0x133),_0x2baec9);return;}if(typeof _0x2baec9[_0x182726(0x278)]!==_0x182726(0x286)||typeof _0x2baec9[_0x182726(0x25d)]!==_0x182726(0x286)){!![]&&console['warn']('[generateRequestExample]\x20Invalid\x20field.code\x20or\x20field.type:',_0x2baec9);return;}const _0x3a43f9=parseFieldExtend(_0x2baec9),_0xb45a7c=_0x2baec9['code']===_0x265e55||Boolean(_0x3a43f9?.[_0x182726(0x182)]),_0x154c26=generateExampleValue(_0x2baec9['code'],_0x2baec9[_0x182726(0x25d)],typeof _0x2baec9[_0x182726(0x269)]===_0x182726(0x286)?_0x2baec9['dbType']:undefined,{'fieldInfo':_0x3a43f9,'isPrimaryKey':_0xb45a7c,'description':_0x2baec9[_0x182726(0x259)]||_0x2baec9[_0x182726(0x1ab)],'dbtableConfig':_0x1ceb5b});_0x2522d6[_0x2baec9[_0x182726(0x278)]]=_0x154c26;}),_0x41ceca===_0x4ce91a(0x23c)&&(_0x2522d6[_0x4ce91a(0xc4)]=0x1,_0x2522d6[_0x4ce91a(0x18e)]=0xa),_0x2522d6;}function formatEnumValue(_0x44194e,_0x7f571a){const _0x2cef51=a0_0x556480;if(_0x44194e[_0x2cef51(0x270)]&&Array['isArray'](_0x7f571a))return _0x7f571a[_0x2cef51(0x18a)](_0x22fb0a=>_0x44194e[_0x2cef51(0x29f)][String(_0x22fb0a)]||String(_0x22fb0a))[_0x2cef51(0x147)](',\x20');return _0x44194e[_0x2cef51(0x29f)][String(_0x7f571a)]||String(_0x7f571a);}function formatOptionsForDoc(_0x1a98cc){const _0xc5266a=a0_0x556480;return _0x1a98cc[_0xc5266a(0x18a)](_0x6c21c1=>_0x6c21c1[_0xc5266a(0x27b)]+'('+_0x6c21c1[_0xc5266a(0x2b5)]+')')[_0xc5266a(0x147)](',\x20');}function formatOptionsAsMarkdownList(_0x51c056,_0x11503c=0x0){const _0x319ae6=a0_0x556480,_0x86ec2c='\x20\x20'[_0x319ae6(0xf5)](_0x11503c),_0x26e391=[];return _0x51c056[_0x319ae6(0x263)](_0x8db32f=>{const _0x4c0757=_0x319ae6;_0x26e391['push'](_0x86ec2c+_0x4c0757(0xfa)+_0x8db32f['value']+_0x4c0757(0x2a4)+_0x8db32f[_0x4c0757(0x2b5)]),_0x8db32f[_0x4c0757(0x2b2)]&&_0x8db32f[_0x4c0757(0x2b2)]['length']>0x0&&_0x26e391[_0x4c0757(0x273)](formatOptionsAsMarkdownList(_0x8db32f[_0x4c0757(0x2b2)],_0x11503c+0x1));}),_0x26e391[_0x319ae6(0x147)]('\x0a');}class DbtableConfig{[a0_0x556480(0x2d4)];constructor(_0x3b007c){this['_raw']={..._0x3b007c};}get[a0_0x556480(0xe1)](){const _0x159e09=a0_0x556480;return this[_0x159e09(0x2d4)][_0x159e09(0xe1)];}get[a0_0x556480(0x288)](){const _0x1f9f9d=a0_0x556480;return this[_0x1f9f9d(0x2d4)][_0x1f9f9d(0x288)]??this[_0x1f9f9d(0x2d4)][_0x1f9f9d(0xf8)]?.[_0x1f9f9d(0x288)];}get[a0_0x556480(0x105)](){const _0x34432e=a0_0x556480;return this['_raw'][_0x34432e(0x105)];}get['datasetKey'](){const _0x1640f7=a0_0x556480;return this[_0x1640f7(0x2d4)][_0x1640f7(0x242)];}get[a0_0x556480(0xe9)](){const _0x242aab=a0_0x556480;return this[_0x242aab(0x2d4)][_0x242aab(0xe9)];}get[a0_0x556480(0x251)](){const _0x172495=a0_0x556480;return this[_0x172495(0x2d4)][_0x172495(0x251)];}get[a0_0x556480(0x2bf)](){const _0x3c05f1=a0_0x556480;return this[_0x3c05f1(0x2d4)][_0x3c05f1(0x2bf)];}get[a0_0x556480(0x267)](){const _0x50f4b2=a0_0x556480;return this[_0x50f4b2(0x2d4)][_0x50f4b2(0x267)];}get['updateTimeField'](){const _0x3813d2=a0_0x556480;return this[_0x3813d2(0x2d4)][_0x3813d2(0x202)];}get[a0_0x556480(0x1ff)](){const _0x5b1b7e=a0_0x556480;return this[_0x5b1b7e(0x2d4)]['creatorIdField'];}get['creatorNameField'](){const _0x26efe3=a0_0x556480;return this[_0x26efe3(0x2d4)][_0x26efe3(0x14e)];}get[a0_0x556480(0x101)](){const _0x225e79=a0_0x556480;return this['_raw'][_0x225e79(0x101)];}get[a0_0x556480(0x14a)](){const _0x13edc3=a0_0x556480;return this['_raw'][_0x13edc3(0x14a)];}get['dblinkInfoDTO'](){const _0x5333d3=a0_0x556480;return this[_0x5333d3(0x2d4)][_0x5333d3(0xf8)];}[a0_0x556480(0xbb)](){const _0x495165=a0_0x556480;if(!this[_0x495165(0x2d4)]['allFields'])return[];return this[_0x495165(0x2d4)][_0x495165(0x168)]['split'](',')['map'](_0x5579b9=>_0x5579b9[_0x495165(0x2b1)]())[_0x495165(0x174)](Boolean);}[a0_0x556480(0x188)](){const _0x529777=a0_0x556480;return this[_0x529777(0x2d4)][_0x529777(0x168)];}[a0_0x556480(0x229)](_0x17a390){const _0xe462a6=a0_0x556480;return this['getAllFieldsArray']()[_0xe462a6(0x10f)](_0x17a390);}['hasTableName'](){const _0x12fbe1=a0_0x556480;return Boolean(this[_0x12fbe1(0x2d4)][_0x12fbe1(0x105)]);}[a0_0x556480(0x1c3)](){const _0x44ae6e=a0_0x556480;return Boolean(this['_raw'][_0x44ae6e(0xf8)]);}[a0_0x556480(0xc2)](){const _0x374af9=a0_0x556480;return Boolean(this[_0x374af9(0x2d4)][_0x374af9(0x2bf)]?.['fieldName']);}[a0_0x556480(0xfe)](){const _0x5b20d7=a0_0x556480;return Boolean(this[_0x5b20d7(0x2d4)][_0x5b20d7(0x267)]?.[_0x5b20d7(0x1f3)]);}[a0_0x556480(0x260)](){const _0x1cdc09=a0_0x556480;return Boolean(this[_0x1cdc09(0x2d4)][_0x1cdc09(0x202)]?.['fieldName']);}[a0_0x556480(0x283)](){const _0x2c5c18=a0_0x556480;return Boolean(this[_0x2c5c18(0x2d4)]['creatorIdField']?.[_0x2c5c18(0x1f3)]);}[a0_0x556480(0x1ba)](){const _0x588629=a0_0x556480;return Boolean(this['_raw']['modifierIdField']?.[_0x588629(0x1f3)]);}['isPrimaryKeyField'](_0xae2fb5){const _0x305710=a0_0x556480;return this[_0x305710(0x2d4)][_0x305710(0xe9)]===_0xae2fb5;}[a0_0x556480(0x20d)](_0x41b669){const _0x1ec8b9=a0_0x556480;return this[_0x1ec8b9(0x1a3)](_0x41b669)||this[_0x1ec8b9(0x2d4)][_0x1ec8b9(0x2bf)]?.[_0x1ec8b9(0x1f3)]===_0x41b669||this[_0x1ec8b9(0x2d4)]['createTimeField']?.[_0x1ec8b9(0x1f3)]===_0x41b669||this['_raw'][_0x1ec8b9(0x202)]?.[_0x1ec8b9(0x1f3)]===_0x41b669||this[_0x1ec8b9(0x2d4)][_0x1ec8b9(0x1ff)]?.[_0x1ec8b9(0x1f3)]===_0x41b669||this[_0x1ec8b9(0x2d4)][_0x1ec8b9(0x14e)]?.[_0x1ec8b9(0x1f3)]===_0x41b669||this[_0x1ec8b9(0x2d4)][_0x1ec8b9(0x101)]?.[_0x1ec8b9(0x1f3)]===_0x41b669||this[_0x1ec8b9(0x2d4)][_0x1ec8b9(0x14a)]?.[_0x1ec8b9(0x1f3)]===_0x41b669;}[a0_0x556480(0x112)](){const _0x2aff5c=a0_0x556480;return this['_raw'][_0x2aff5c(0xf8)]?.[_0x2aff5c(0x288)];}[a0_0x556480(0x201)](){const _0x4f2e32=a0_0x556480;return this[_0x4f2e32(0x2d4)][_0x4f2e32(0xf8)]?.[_0x4f2e32(0x269)];}['getDatabaseVersion'](){const _0x21b7d5=a0_0x556480;return this[_0x21b7d5(0x2d4)][_0x21b7d5(0xf8)]?.[_0x21b7d5(0x2b4)];}[a0_0x556480(0x2a1)](){const _0x2c9fcc=a0_0x556480;return this[_0x2c9fcc(0x2d4)][_0x2c9fcc(0xf8)]?.[_0x2c9fcc(0x1fc)];}[a0_0x556480(0x162)](){const _0x2c5983=a0_0x556480;return this[_0x2c5983(0x2d4)][_0x2c5983(0xf8)]?.[_0x2c5983(0x21f)];}['getSystemAnalysisResult'](){const _0x232986=a0_0x556480;return this[_0x232986(0x2d4)][_0x232986(0xf8)]?.['systemAnalysisResult'];}['getStats'](){const _0x58032d=a0_0x556480;return{'hasTableName':this[_0x58032d(0x1e9)](),'hasDblinkInfo':this[_0x58032d(0x1c3)](),'fieldCount':this[_0x58032d(0xbb)]()[_0x58032d(0x24c)],'systemFields':{'hasLogicField':this[_0x58032d(0xc2)](),'hasCreateTimeField':this[_0x58032d(0xfe)](),'hasUpdateTimeField':this[_0x58032d(0x260)](),'hasCreatorIdField':this['hasCreatorIdField'](),'hasModifierIdField':this[_0x58032d(0x1ba)]()}};}[a0_0x556480(0x1f0)](){const _0x20faf3=a0_0x556480;return{'tableName':this[_0x20faf3(0x105)],'pkField':this[_0x20faf3(0xe9)],'datasetKey':this[_0x20faf3(0x242)],'dbId':this[_0x20faf3(0xe1)]};}[a0_0x556480(0x21a)](){const _0x524eff=a0_0x556480;return{...this[_0x524eff(0x2d4)]};}['getRaw'](){const _0xf1e33b=a0_0x556480;return{...this[_0xf1e33b(0x2d4)]};}[a0_0x556480(0x125)](){const _0x32a81a=a0_0x556480,_0x106619=this[_0x32a81a(0x105)]||_0x32a81a(0x176),_0x259d26=this[_0x32a81a(0xbb)]()[_0x32a81a(0x24c)];return _0x32a81a(0x1f5)+_0x106619+_0x32a81a(0x115)+_0x259d26+')';}static[a0_0x556480(0x27d)](){return new DbtableConfig({});}}class DatasetItem{['_raw'];constructor(_0x47a898){const _0x593225=a0_0x556480,_0x12c848=_0x47a898[_0x593225(0x129)]||_0x47a898[_0x593225(0x278)]||_0x47a898[_0x593225(0x17a)];this['_raw']={..._0x47a898,'datasetCode':_0x12c848};}get['id'](){return this['_raw']['id'];}get[a0_0x556480(0x1ab)](){return this['_raw']['name'];}[a0_0x556480(0x29e)](){return this['name'];}get[a0_0x556480(0x129)](){const _0x3b0327=a0_0x556480;return this[_0x3b0327(0x2d4)][_0x3b0327(0x129)]||'';}get[a0_0x556480(0x1f7)](){const _0x59b498=a0_0x556480;if(!this[_0x59b498(0x2d4)]['dbtableConfig'])return null;return new DbtableConfig(this['_raw'][_0x59b498(0x1f7)]);}[a0_0x556480(0xd8)](){const _0x6d5b18=a0_0x556480;return this[_0x6d5b18(0x2d4)][_0x6d5b18(0x1f7)];}['getDbName'](){const _0x38658f=a0_0x556480;return this[_0x38658f(0x1f7)]?.[_0x38658f(0x288)]||'';}[a0_0x556480(0x205)](){const _0x423ea6=a0_0x556480;return getTableName(this[_0x423ea6(0x2d4)]);}[a0_0x556480(0x15a)](){const _0x38a7f8=a0_0x556480;return getTableKey(this[_0x38a7f8(0x205)]());}[a0_0x556480(0x163)](){const _0x399c28=a0_0x556480;return generateModelKeyFromCode(this[_0x399c28(0x129)]);}[a0_0x556480(0x1b1)](){const _0x504716=a0_0x556480;return isVirtualTableName(this[_0x504716(0x205)]());}[a0_0x556480(0xed)](){const _0x3ccbf8=a0_0x556480;return getTableKey(this[_0x3ccbf8(0x205)]());}['toConfig'](){const _0x181bd9=a0_0x556480,_0x5a8d00=getTableKey(this[_0x181bd9(0x205)]());return{'key':_0x5a8d00,'alias':_0x5a8d00,'tableName':this[_0x181bd9(0x205)](),'datasetCode':this[_0x181bd9(0x129)],'name':this[_0x181bd9(0x1ab)]};}[a0_0x556480(0x21a)](){const _0x1ec734=a0_0x556480;return{...this[_0x1ec734(0x2d4)],'datasetCode':this[_0x1ec734(0x129)]};}[a0_0x556480(0x226)](){const _0x3caa27=a0_0x556480;return{...this[_0x3caa27(0x2d4)]};}[a0_0x556480(0x18c)](){const _0x5d3457=a0_0x556480,_0xf347ce=this[_0x5d3457(0x1f7)];return _0xf347ce!==null&&_0xf347ce['hasTableName']();}['getExtendField'](_0x4816b9){return this['_raw'][_0x4816b9];}['hasExtendField'](_0x39611f){const _0x30059f=a0_0x556480;return _0x39611f in this[_0x30059f(0x2d4)];}[a0_0x556480(0x125)](){return'DatasetItem('+this['name']+',\x20'+this['datasetCode']+')';}}class Operation{[a0_0x556480(0x1ab)];[a0_0x556480(0x2d4)];[a0_0x556480(0x1e1)];constructor(_0x156f12,_0x518272,_0x4f1ae3){const _0x3f5858=a0_0x556480;this['name']=_0x156f12,this[_0x3f5858(0x2d4)]=_0x518272,this['context']=_0x4f1ae3;}[a0_0x556480(0x29e)](){const _0x34acb0=a0_0x556480;return this[_0x34acb0(0x1ab)];}['getDisplayName'](){const _0x149417=a0_0x556480,_0x15a796=this['getType']();return _0x15a796?OPERATION_TYPE_DISPLAY_NAME[_0x15a796]:this[_0x149417(0x1ab)];}[a0_0x556480(0x2a9)](){const _0x2eecda=a0_0x556480;return parseOperationType(this[_0x2eecda(0x1ab)]);}['isEnabled'](){const _0x1edb3a=a0_0x556480;return this[_0x1edb3a(0x2d4)]!=null&&this['_raw']!==![];}['getMethod'](){const _0x5c63fc=a0_0x556480;if(!this[_0x5c63fc(0x23d)]()||!this[_0x5c63fc(0x2d4)])return'';const _0x3e4356=this[_0x5c63fc(0x2d4)][_0x5c63fc(0x1cb)];return typeof _0x3e4356===_0x5c63fc(0x286)?_0x3e4356:'POST';}['getPath'](){const _0x5e8f8f=a0_0x556480;if(!this[_0x5e8f8f(0x23d)]()||!this[_0x5e8f8f(0x2d4)])return'';const _0x545998=this[_0x5e8f8f(0x2d4)][_0x5e8f8f(0x13d)];return typeof _0x545998===_0x5e8f8f(0x286)?_0x545998:'';}[a0_0x556480(0x1af)](){const _0x47a47d=a0_0x556480;if(!this[_0x47a47d(0x23d)]()||!this[_0x47a47d(0x2d4)])return'';const {host:_0xffa94e,path:_0x5d8319}=this[_0x47a47d(0x2d4)],_0x5319e8=typeof _0xffa94e===_0x47a47d(0x286)?_0xffa94e:'',_0x434a20=typeof _0x5d8319==='string'?_0x5d8319:'';return _0x5319e8&&_0x434a20?''+_0x5319e8+_0x434a20:_0x434a20;}[a0_0x556480(0xc5)](){const _0x31f912=a0_0x556480;return Object[_0x31f912(0x254)](this[_0x31f912(0x17c)]());}[a0_0x556480(0x195)](){const _0xdc2f47=a0_0x556480,_0x25c7be=this[_0xdc2f47(0x17c)]();return{'params':Object['entries'](_0x25c7be)[_0xdc2f47(0x18a)](([_0x253968,_0x488b3a])=>{const _0x4e3f3f=_0xdc2f47,_0x147f23=_0x488b3a;return{'name':_0x253968,'type':_0x147f23[_0x4e3f3f(0x25d)]||_0x4e3f3f(0x1bc),'description':_0x147f23['description']||'-','required':_0x147f23[_0x4e3f3f(0x2d9)]};})};}['parseRawRequestBody'](){const _0x2eca25=a0_0x556480;if(!this[_0x2eca25(0x23d)]()||typeof this[_0x2eca25(0x2d4)]===_0x2eca25(0xf7)||!this[_0x2eca25(0x2d4)]?.[_0x2eca25(0xd9)])return{};const _0x35f3bf=this[_0x2eca25(0x2d4)]['requestBody'];if(typeof _0x35f3bf!=='string')return!![]&&console[_0x2eca25(0x15e)](_0x2eca25(0xdf),_0x35f3bf),{};return parseRequestBody(_0x35f3bf);}[a0_0x556480(0x22d)](){const _0x3a7d2a=a0_0x556480;if(!this[_0x3a7d2a(0x23d)]()||typeof this['_raw']===_0x3a7d2a(0xf7)||!this['_raw']?.[_0x3a7d2a(0x1b9)])return null;const _0x419dd8=this['_raw'][_0x3a7d2a(0x1b9)];if(typeof _0x419dd8!==_0x3a7d2a(0x286))return!![]&&console[_0x3a7d2a(0x15e)](_0x3a7d2a(0x198),_0x419dd8),null;return parseResponseBody(_0x419dd8);}[a0_0x556480(0x245)](_0x381c34,_0x44324f,_0x484082,_0x59ebc3){const _0x1e0189=a0_0x556480;return generateExampleValue(_0x381c34,_0x44324f,_0x484082,{'isPrimaryKey':_0x59ebc3?.[_0x1e0189(0x296)],'description':_0x59ebc3?.[_0x1e0189(0x259)],'dbtableConfig':this[_0x1e0189(0x1e1)][_0x1e0189(0x1f7)]});}[a0_0x556480(0x110)](_0xc688d0){const _0x1e5195=a0_0x556480;if(!Array[_0x1e5195(0x19d)](this[_0x1e5195(0x1e1)]['fields'])){!![]&&console[_0x1e5195(0x15e)](_0x1e5195(0x185));return;}if(typeof _0xc688d0!==_0x1e5195(0x286)){!![]&&console[_0x1e5195(0x15e)](_0x1e5195(0x13f),_0xc688d0);return;}return this['context'][_0x1e5195(0x29c)][_0x1e5195(0x1c6)](_0x423bf5=>_0x423bf5&&_0x423bf5[_0x1e5195(0x278)]===_0xc688d0);}[a0_0x556480(0x125)](){const _0x74e015=a0_0x556480,_0x4f0d0e=this[_0x74e015(0x23d)]()?'启用':'禁用';return this[_0x74e015(0x1e5)]()+'('+this[_0x74e015(0x1ab)]+',\x20'+_0x4f0d0e+')';}[a0_0x556480(0x21e)](){return[];}[a0_0x556480(0x2a7)](_0xa94827){return[];}[a0_0x556480(0x241)](_0x29a768){const _0x51288f=a0_0x556480,_0x3ae1d7=this[_0x51288f(0x29e)](),_0x25bd28=_0x51288f(0x167)+_0x29a768+'.'+_0x3ae1d7+_0x51288f(0x126),_0x39fe76=_0x51288f(0x27a)+_0x29a768+'.'+_0x3ae1d7+_0x51288f(0x2cf);return{'successCode':_0x25bd28,'errorCode':_0x39fe76};}[a0_0x556480(0x21a)](){const _0x41b954=a0_0x556480;return{'name':this[_0x41b954(0x29e)](),'displayName':this[_0x41b954(0x1e5)](),'type':this['getType'](),'enabled':this[_0x41b954(0x23d)](),'method':this[_0x41b954(0xd3)](),'path':this[_0x41b954(0xcd)](),'fullUrl':this['getFullUrl'](),'requestFields':this[_0x41b954(0xc5)](),'requestParams':this['getRequestParams'](),'responseSchema':this[_0x41b954(0xf9)](),'requestExample':this[_0x41b954(0x2cb)](),'responseExample':this[_0x41b954(0x289)]()};}}class GenericOperation extends Operation{['getRequestParams'](){return this['parseRawRequestBody']();}[a0_0x556480(0xf9)](){const _0x505f3c=a0_0x556480;return this[_0x505f3c(0x22d)]();}[a0_0x556480(0x2cb)](){const _0x32d965=a0_0x556480,_0x47e0a3={},_0x51cfda=this['getRequestParams'](),_0x5c3e63=this[_0x32d965(0x2a9)]();if(Object[_0x32d965(0x254)](_0x51cfda)[_0x32d965(0x24c)]===0x0&&_0x5c3e63){const _0x498fe5=getFieldsForOperation(this['context'][_0x32d965(0x29c)],_0x5c3e63,this['context'][_0x32d965(0xe9)]);return _0x498fe5[_0x32d965(0x263)](_0x5d7a0d=>{const _0x5aae70=_0x32d965,_0x4920a9=this['generateFieldExample'](_0x5d7a0d['code'],_0x5d7a0d['type'],typeof _0x5d7a0d[_0x5aae70(0x269)]===_0x5aae70(0x286)?_0x5d7a0d[_0x5aae70(0x269)]:undefined,{'isPrimaryKey':_0x5d7a0d[_0x5aae70(0x278)]===this[_0x5aae70(0x1e1)][_0x5aae70(0xe9)],'description':_0x5d7a0d['description']||_0x5d7a0d['name']});_0x47e0a3[_0x5d7a0d[_0x5aae70(0x278)]]=_0x4920a9;}),_0x47e0a3;}return Object['entries'](_0x51cfda)['forEach'](([_0x5ad28b,_0xed7e92])=>{const _0x4bfb69=_0x32d965,_0x508ccb=_0xed7e92;let _0x244d0e;if(typeof _0x508ccb[_0x4bfb69(0x25d)]===_0x4bfb69(0x286))_0x244d0e=_0x508ccb[_0x4bfb69(0x25d)];else _0x508ccb[_0x4bfb69(0x25d)]&&typeof _0x508ccb[_0x4bfb69(0x25d)]===_0x4bfb69(0x19f)?_0x244d0e=_0x508ccb[_0x4bfb69(0x25d)]['type']||_0x4bfb69(0x22b):_0x244d0e=_0x4bfb69(0x22b);const _0x32697e=_0x508ccb[_0x4bfb69(0x259)],_0x223244=this['getFieldDefinition'](_0x5ad28b);if(_0x5ad28b===_0x4bfb69(0xc4))_0x47e0a3[_0x5ad28b]=0x1;else{if(_0x5ad28b===_0x4bfb69(0x18e))_0x47e0a3[_0x5ad28b]=0xa;else _0x5ad28b==='id'?_0x47e0a3[_0x5ad28b]=0x1:_0x47e0a3[_0x5ad28b]=this[_0x4bfb69(0x245)](_0x5ad28b,_0x244d0e,typeof _0x223244?.[_0x4bfb69(0x269)]===_0x4bfb69(0x286)?_0x223244['dbType']:undefined,{'isPrimaryKey':_0x5ad28b===this[_0x4bfb69(0x1e1)]['pkField']||_0x5ad28b==='id','description':_0x32697e||_0x223244?.['description']||_0x223244?.[_0x4bfb69(0x1ab)]});}}),_0x47e0a3;}[a0_0x556480(0x289)](){const _0x39a523=a0_0x556480,_0x11311e=this[_0x39a523(0xf9)]();if(!_0x11311e)return{'success':!![],'msg':_0x39a523(0x257),'errorMsg':'','errorCode':_0x39a523(0x1bd),'data':null};return this[_0x39a523(0x294)](_0x11311e);}[a0_0x556480(0x294)](_0x19ecad){const _0x3082f2=a0_0x556480;if(!_0x19ecad||typeof _0x19ecad!==_0x3082f2(0x19f))return{};if(Array[_0x3082f2(0x19d)](_0x19ecad)){if(_0x19ecad[_0x3082f2(0x24c)]>0x0)return[this['generateFromSchema'](_0x19ecad[0x0])];return[];}const _0x2cffef={};return Object[_0x3082f2(0x254)](_0x19ecad)[_0x3082f2(0x263)](_0x18c8e5=>{const _0xb68738=_0x3082f2,_0xc84f40=_0x19ecad[_0x18c8e5];if(_0xc84f40&&typeof _0xc84f40===_0xb68738(0x19f)&&!Array['isArray'](_0xc84f40)&&_0xc84f40[_0xb68738(0x25d)]){const _0x450113=_0xc84f40;let _0x564945;if(typeof _0x450113[_0xb68738(0x25d)]===_0xb68738(0x286))_0x564945=_0x450113[_0xb68738(0x25d)];else _0x450113['type']&&typeof _0x450113[_0xb68738(0x25d)]==='object'?_0x564945=_0x450113['type'][_0xb68738(0x25d)]||_0xb68738(0x22b):_0x564945=_0xb68738(0x22b);const _0x1b94c2=_0x450113['description'];_0x2cffef[_0x18c8e5]=this[_0xb68738(0x245)](_0x18c8e5,_0x564945,undefined,{'description':_0x1b94c2});}else{if(Array[_0xb68738(0x19d)](_0xc84f40))_0x2cffef[_0x18c8e5]=_0xc84f40['length']>0x0?[this[_0xb68738(0x294)](_0xc84f40[0x0])]:[];else _0xc84f40&&typeof _0xc84f40===_0xb68738(0x19f)?_0x2cffef[_0x18c8e5]=this[_0xb68738(0x294)](_0xc84f40):_0x2cffef[_0x18c8e5]=_0xc84f40;}}),_0x2cffef;}['generateSDKCallCode'](_0x352f79,_0x2af351){const _0x56e568=a0_0x556480,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x2af351||{},_0x5e3272=this[_0x56e568(0x29e)](),_0x5b914d=this[_0x56e568(0x2a9)](),_0x16930e=this[_0x56e568(0xc5)](),_0x587ae5=this[_0x56e568(0x2cb)](),_0x6effe4=_0xfceabb=>{const _0x48be8b=_0x56e568;if(Object['keys'](_0xfceabb)[_0x48be8b(0x24c)]===0x0)return'{}';const _0x318b89=JSON[_0x48be8b(0x215)](_0xfceabb,null,0x2)[_0x48be8b(0x1b5)]('\x0a')[_0x48be8b(0x18a)]((_0x939e0,_0x58aac0)=>_0x58aac0===0x0?_0x939e0:indent+_0x939e0)[_0x48be8b(0x147)]('\x0a');return _0x318b89;};switch(_0x5b914d){case _0x56e568(0x19b):case _0x56e568(0x1a8):return _0x56e568(0x183)+_0x352f79+'.'+_0x5e3272+_0x56e568(0xd5);case'update':if(useFullExample&&Object['keys'](_0x587ae5)[_0x56e568(0x24c)]>0x0)return _0x56e568(0x183)+_0x352f79+'.'+_0x5e3272+_0x56e568(0x25a)+_0x6effe4(_0x587ae5)+');';return _0x56e568(0x183)+_0x352f79+'.'+_0x5e3272+_0x56e568(0x173);case _0x56e568(0x1e8):case _0x56e568(0x23c):case _0x56e568(0x116):default:if(_0x16930e[_0x56e568(0x24c)]>0x0){if(useFullExample&&Object[_0x56e568(0x254)](_0x587ae5)['length']>0x0)return _0x56e568(0x183)+_0x352f79+'.'+_0x5e3272+'('+_0x6effe4(_0x587ae5)+');';else{const _0x19fab1=Object[_0x56e568(0x254)](_0x587ae5);if(_0x19fab1[_0x56e568(0x24c)]>0x0){const _0x54acd6=_0x19fab1[_0x56e568(0xfc)](0x0,0x2)['join'](',\x20');return _0x56e568(0x183)+_0x352f79+'.'+_0x5e3272+_0x56e568(0x2d3)+_0x54acd6+_0x56e568(0xe3);}else return _0x56e568(0x183)+_0x352f79+'.'+_0x5e3272+_0x56e568(0x132);}}else return'const\x20result\x20=\x20await\x20client.models.'+_0x352f79+'.'+_0x5e3272+_0x56e568(0x1d1);}}['generateRequestAllExamples'](){const _0x5cec97=a0_0x556480;return[{'title':_0x5cec97(0xf4),'data':this[_0x5cec97(0x2cb)]()}];}}class GetSelectOptionsOperation extends GenericOperation{['getRequestParams'](){const _0x192eb3=a0_0x556480,_0x2ffa93=super[_0x192eb3(0x17c)](),_0x3e65fb=Object[_0x192eb3(0x254)](_0x2ffa93);return(_0x3e65fb[_0x192eb3(0x24c)]===0x0||_0x3e65fb[_0x192eb3(0x24c)]===0x1&&_0x3e65fb[0x0]==='code')&&(!_0x2ffa93[_0x192eb3(0x278)]&&(_0x2ffa93['code']={'type':_0x192eb3(0x1bc),'description':_0x192eb3(0x10a)}),_0x2ffa93[_0x192eb3(0x2b5)]={'type':_0x192eb3(0x1bc),'description':_0x192eb3(0x244)}),_0x2ffa93;}[a0_0x556480(0x2cb)](){const _0x1c1d8f=a0_0x556480;return{'code':_0x1c1d8f(0xdd),'label':_0x1c1d8f(0xdd)};}[a0_0x556480(0x1ce)](_0x2e049f){const _0x56b07d=a0_0x556480,_0x281b7a=this['getName']();return _0x56b07d(0x183)+_0x2e049f+'.'+_0x281b7a+'({\x20code,\x20label\x20});';}}class GetListOperation extends GenericOperation{[a0_0x556480(0x17c)](){const _0x3497d2=a0_0x556480,_0x10ffd8=super[_0x3497d2(0x17c)](),{currentPage:_0x3f0a92,pageSize:_0xe18eef,..._0x11ee0e}=_0x10ffd8,_0x297c02={};return Object['entries'](_0x11ee0e)['forEach'](([_0x2806d2,_0x35047a])=>{const _0x252262=_0x3497d2;if(typeof _0x35047a===_0x252262(0x19f)&&_0x35047a!==null){const _0x587c1c=_0x35047a,_0x2ffc74=_0x587c1c['description']||'';_0x297c02[_0x2806d2]={..._0x587c1c,'description':_0x2ffc74?_0x2ffc74+_0x252262(0x20f):'支持单值或数组'};}else _0x297c02[_0x2806d2]=_0x35047a;}),{..._0x297c02,'currentPage':{...typeof _0x3f0a92==='object'?_0x3f0a92:{},'type':_0x3497d2(0x1c0),'description':'当前页码'},'pageSize':{...typeof _0xe18eef===_0x3497d2(0x19f)?_0xe18eef:{},'type':'Number','description':_0x3497d2(0xc6)}};}['generateRequestExample'](_0x14962d){const _0x206361=a0_0x556480,{useArrayValues:useArrayValues=!![]}=_0x14962d||{},_0x79235d=super[_0x206361(0x2cb)](),{currentPage:_0x11a01a,pageSize:_0xaf6761,..._0x4fe77e}=_0x79235d;if(!useArrayValues)return{..._0x4fe77e,'currentPage':_0x11a01a??0x1,'pageSize':_0xaf6761??0xa};const _0x39d9e4={},_0x446af2=['id',_0x206361(0x275),_0x206361(0x278),_0x206361(0x25d)];return Object['entries'](_0x4fe77e)['forEach'](([_0x136aa9,_0x416215],_0x5a3bf9)=>{const _0x18c967=_0x206361,_0x15fa77=_0x446af2[_0x18c967(0xd4)](_0x79f635=>_0x136aa9[_0x18c967(0xe7)]()[_0x18c967(0x10f)](_0x79f635))||_0x5a3bf9%0x3===0x0;if(_0x15fa77&&_0x416215!==null&&_0x416215!==undefined){if(typeof _0x416215==='number')_0x39d9e4[_0x136aa9]=[_0x416215,_0x416215+0x1,_0x416215+0x2];else typeof _0x416215===_0x18c967(0x286)?_0x39d9e4[_0x136aa9]=[_0x416215,_0x416215+'_2',_0x416215+'_3']:_0x39d9e4[_0x136aa9]=[_0x416215];}else _0x39d9e4[_0x136aa9]=_0x416215;}),{..._0x39d9e4,'currentPage':_0x11a01a??0x1,'pageSize':_0xaf6761??0xa};}['generateSingleValueExample'](){const _0x1e762b=a0_0x556480;return this[_0x1e762b(0x2cb)]({'useArrayValues':![]});}[a0_0x556480(0x299)](){const _0x1b6b13=a0_0x556480;return[{'title':'单值查询','description':_0x1b6b13(0x237),'data':this[_0x1b6b13(0x166)]()},{'title':'数组查询(支持多选)','description':'支持多个条件','data':this[_0x1b6b13(0x2cb)]()}];}[a0_0x556480(0x1ce)](_0xe77802,_0x2a4dd9){const _0x12a6dc=a0_0x556480,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x2a4dd9||{},_0x1a5360=this[_0x12a6dc(0x29e)](),_0x498c1c=this['generateRequestExample']({'useArrayValues':!![]}),{currentPage:_0x2c9b57,pageSize:_0x5e744a,..._0x453621}=_0x498c1c;if(useFullExample&&Object[_0x12a6dc(0x254)](_0x498c1c)[_0x12a6dc(0x24c)]>0x0){const _0x55158c=Object[_0x12a6dc(0x254)](_0x453621)[_0x12a6dc(0x24c)]>0x0;if(_0x55158c){const _0x43946c=this[_0x12a6dc(0x166)](),_0x2d7f87=_0x2a73ef=>{const _0x2da2e2=_0x12a6dc;return JSON[_0x2da2e2(0x215)](_0x2a73ef,null,0x2)[_0x2da2e2(0x1b5)]('\x0a')[_0x2da2e2(0x18a)]((_0x5c8fb0,_0x50dc64)=>_0x50dc64===0x0?_0x5c8fb0:indent+_0x5c8fb0)[_0x2da2e2(0x147)]('\x0a');};return _0x12a6dc(0x2a6)+_0xe77802+'.'+_0x1a5360+'('+_0x2d7f87(_0x43946c)+_0x12a6dc(0xe5)+_0xe77802+'.'+_0x1a5360+'('+_0x2d7f87(_0x498c1c)+');';}else{const _0x5c6482=JSON['stringify'](_0x498c1c,null,0x2)[_0x12a6dc(0x1b5)]('\x0a')[_0x12a6dc(0x18a)]((_0x4487bc,_0x44b868)=>_0x44b868===0x0?_0x4487bc:indent+_0x4487bc)[_0x12a6dc(0x147)]('\x0a');return _0x12a6dc(0x183)+_0xe77802+'.'+_0x1a5360+'('+_0x5c6482+');';}}if(Object['keys'](_0x453621)[_0x12a6dc(0x24c)]>0x0){const _0xbac1d0=Object[_0x12a6dc(0x254)](_0x453621)[0x0];return _0x12a6dc(0x183)+_0xe77802+'.'+_0x1a5360+'({\x20'+_0xbac1d0+_0x12a6dc(0x29a);}return _0x12a6dc(0x183)+_0xe77802+'.'+_0x1a5360+_0x12a6dc(0x2ca);}}var FILTER_OPERATORS=[a0_0x556480(0x180),a0_0x556480(0xcb),a0_0x556480(0x23a),'$gteq',a0_0x556480(0x234),a0_0x556480(0x220),'$in',a0_0x556480(0x256),'$startWith',a0_0x556480(0x152),'$and',a0_0x556480(0x228)];class FilterOperation extends GenericOperation{constructor(_0x6607ed,_0x3811de,_0x3a15ca){super(_0x6607ed,_0x3811de,_0x3a15ca);}[a0_0x556480(0x21e)](){return FILTER_OPERATORS;}[a0_0x556480(0x2a7)](_0x4baff1){const _0x41c7ad=a0_0x556480,_0x1a5a9a=this[_0x41c7ad(0x110)](_0x4baff1);if(!_0x1a5a9a)return[];return this[_0x41c7ad(0xdc)](_0x1a5a9a[_0x41c7ad(0x25d)]);}[a0_0x556480(0x17c)](){const _0x4dbc1a=a0_0x556480,_0x354279=super[_0x4dbc1a(0x17c)]();return{..._0x354279,'where':{'type':_0x4dbc1a(0xc0),'description':'查询条件(支持\x2012\x20种操作符:$eq,\x20$ne,\x20$gte,\x20$gteq,\x20$lte,\x20$lteq,\x20$in,\x20$contain,\x20$startWith,\x20$endWith,\x20$and,\x20$or)','required':![]},'select':{'type':_0x4dbc1a(0x29b),'description':_0x4dbc1a(0x140),'required':![]},'orderBy':{'type':_0x4dbc1a(0x26c),'description':_0x4dbc1a(0x1fe),'required':![]},'currentPage':{'type':'Number','description':'当前页码','required':![],'default':0x1},'pageSize':{'type':_0x4dbc1a(0x1c0),'description':_0x4dbc1a(0xc6),'required':![],'default':0xa}};}['generateRequestExample'](){const _0x142b5a=a0_0x556480,_0x145eb9=this[_0x142b5a(0x1e1)][_0x142b5a(0x29c)]||[];if(_0x145eb9[_0x142b5a(0x24c)]===0x0)return{'where':{},'currentPage':0x1,'pageSize':0x14};const _0x1d2d4a={},_0xdfa3df=_0x145eb9[_0x142b5a(0xfc)](0x0,Math['min'](0x3,_0x145eb9['length']));_0xdfa3df[_0x142b5a(0x263)](_0x2a2bf4=>{const _0xe85f17=_0x142b5a,_0x28552d=this[_0xe85f17(0xdc)](_0x2a2bf4[_0xe85f17(0x25d)]);if(_0x28552d[_0xe85f17(0x24c)]===0x0)return;const _0x5b536e=this['selectBestOperator'](_0x2a2bf4[_0xe85f17(0x25d)],_0x28552d),_0x5ac668=this[_0xe85f17(0x246)](_0x2a2bf4,_0x5b536e);_0x1d2d4a[_0x2a2bf4['code']]={[_0x5b536e]:_0x5ac668};});const _0x37be8c=_0x145eb9[_0x142b5a(0xfc)](0x0,Math[_0x142b5a(0xde)](0x5,_0x145eb9[_0x142b5a(0x24c)]))['map'](_0x315ff5=>_0x315ff5[_0x142b5a(0x278)]),_0x3d6580=_0x145eb9[0x0]?.[_0x142b5a(0x278)]||'id';return{'where':_0x1d2d4a,'select':_0x37be8c,'orderBy':[{[_0x3d6580]:'DESC'}],'currentPage':0x1,'pageSize':0x14};}[a0_0x556480(0x1ce)](_0xde8d61,_0x13a18b){const _0x56269b=a0_0x556480,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x13a18b||{},_0x454a9f=this[_0x56269b(0x29e)](),_0x41bfd1=this[_0x56269b(0x2cb)](),_0x383208=_0x5d5878=>{const _0x2f6311=_0x56269b;return JSON[_0x2f6311(0x215)](_0x5d5878,null,0x2)[_0x2f6311(0x1b5)]('\x0a')['map']((_0x2a9caa,_0x5c11e4)=>_0x5c11e4===0x0?_0x2a9caa:indent+_0x2a9caa)['join']('\x0a');};if(useFullExample){const _0x3123fb=this['context'][_0x56269b(0x29c)]||[],_0x4d81b0={'where':_0x3123fb[0x0]?{[_0x3123fb[0x0][_0x56269b(0x278)]]:{'$eq':this[_0x56269b(0x246)](_0x3123fb[0x0],_0x56269b(0x180))}}:{},'select':_0x3123fb[_0x56269b(0xfc)](0x0,0x3)[_0x56269b(0x18a)](_0x6d482e=>_0x6d482e['code']),'currentPage':0x1,'pageSize':0x14};let _0x186cd6='';if(_0x3123fb[_0x56269b(0x24c)]>=0x3){const _0x47e379={'$and':[]},_0xb011e7=[];if(_0x3123fb[_0x56269b(0x24c)]>0x0){const _0x485b3c=_0x3123fb[_0x56269b(0x1c6)](_0x56995a=>['NUMBER','INTEGER',_0x56269b(0x27f)]['includes'](_0x56995a[_0x56269b(0x25d)][_0x56269b(0x224)]()));_0x485b3c&&_0xb011e7[_0x56269b(0x273)]({[_0x485b3c['code']]:{'$gte':0x0,'$lte':0x64}});}if(_0x3123fb[_0x56269b(0x24c)]>0x1){const _0x5c1ece=_0x3123fb['find'](_0x41db3e=>[_0x56269b(0xd2),'TEXT',_0x56269b(0x12d)][_0x56269b(0x10f)](_0x41db3e[_0x56269b(0x25d)][_0x56269b(0x224)]()));_0x5c1ece&&_0xb011e7['push']({[_0x5c1ece[_0x56269b(0x278)]]:{'$contain':_0x56269b(0xf0)}});}if(_0xb011e7[_0x56269b(0x24c)]>0x0){_0x47e379['$and']=_0xb011e7;const _0x2db30b={'where':_0x47e379,'select':_0x3123fb[_0x56269b(0xfc)](0x0,0x4)[_0x56269b(0x18a)](_0x286d8c=>_0x286d8c[_0x56269b(0x278)]),'orderBy':[{[_0x3123fb[0x0]['code']]:_0x56269b(0xd1)}],'currentPage':0x1,'pageSize':0x14};_0x186cd6=_0x56269b(0xbe)+_0xde8d61+'.'+_0x454a9f+'('+_0x383208(_0x2db30b)+');';}}return'//\x20简单查询\x0aconst\x20result1\x20=\x20await\x20client.models.'+_0xde8d61+'.'+_0x454a9f+'('+_0x383208(_0x4d81b0)+');'+_0x186cd6;}const _0x47e649=JSON[_0x56269b(0x215)](_0x41bfd1,null,0x2)[_0x56269b(0x1b5)]('\x0a')['map']((_0x2b88ac,_0x26b35e)=>_0x26b35e===0x0?_0x2b88ac:indent+_0x2b88ac)[_0x56269b(0x147)]('\x0a');return'const\x20result\x20=\x20await\x20client.models.'+_0xde8d61+'.'+_0x454a9f+'('+_0x47e649+');';}[a0_0x556480(0xdc)](_0x51a8b1){const _0x558e9e=a0_0x556480,_0x4d08bc=_0x51a8b1[_0x558e9e(0x224)](),_0x271657=[];if([_0x558e9e(0x143),_0x558e9e(0x217),_0x558e9e(0x27f),_0x558e9e(0x1d5)][_0x558e9e(0x10f)](_0x4d08bc))_0x271657[_0x558e9e(0x273)](_0x558e9e(0x180),_0x558e9e(0xcb),'$gte',_0x558e9e(0x234),'$gteq',_0x558e9e(0x220),'$in');else{if([_0x558e9e(0xd2),_0x558e9e(0x22b),_0x558e9e(0x12d)][_0x558e9e(0x10f)](_0x4d08bc))_0x271657[_0x558e9e(0x273)](_0x558e9e(0x180),'$ne',_0x558e9e(0x1dc),'$contain',_0x558e9e(0x249),_0x558e9e(0x152));else{if([_0x558e9e(0xe0),'DATETIME',_0x558e9e(0x14f)]['includes'](_0x4d08bc))_0x271657[_0x558e9e(0x273)](_0x558e9e(0x180),_0x558e9e(0xcb),_0x558e9e(0x23a),_0x558e9e(0x234),_0x558e9e(0x2ab),_0x558e9e(0x220));else[_0x558e9e(0x231),_0x558e9e(0x12b)][_0x558e9e(0x10f)](_0x4d08bc)?_0x271657[_0x558e9e(0x273)](_0x558e9e(0x180),_0x558e9e(0xcb)):_0x271657['push'](_0x558e9e(0x180),_0x558e9e(0xcb));}}return _0x271657;}['selectBestOperator'](_0xeb967b,_0x262ce3){const _0x27380f=a0_0x556480,_0x3becae=_0xeb967b[_0x27380f(0x224)]();if(['NUMBER',_0x27380f(0x217),_0x27380f(0x27f),_0x27380f(0x1d5)][_0x27380f(0x10f)](_0x3becae))return _0x262ce3['includes'](_0x27380f(0x23a))?_0x27380f(0x23a):_0x27380f(0x180);if([_0x27380f(0xd2),_0x27380f(0x22b),_0x27380f(0x12d)][_0x27380f(0x10f)](_0x3becae))return _0x262ce3[_0x27380f(0x10f)](_0x27380f(0x256))?_0x27380f(0x256):_0x27380f(0x180);if([_0x27380f(0xe0),'DATETIME','TIMESTAMP'][_0x27380f(0x10f)](_0x3becae))return _0x262ce3[_0x27380f(0x10f)](_0x27380f(0x23a))?_0x27380f(0x23a):'$eq';return _0x27380f(0x180);}[a0_0x556480(0x246)](_0x335af7,_0x1e91ee){const _0x3486af=a0_0x556480,_0x106956=String(_0x335af7[_0x3486af(0x25d)]||'')['toUpperCase']();if(_0x335af7[_0x3486af(0x2d1)])try{const _0x523207=typeof _0x335af7['extend']==='string'?JSON[_0x3486af(0x187)](_0x335af7[_0x3486af(0x2d1)]):_0x335af7['extend'];if(_0x523207[_0x3486af(0x2b3)]&&Array[_0x3486af(0x19d)](_0x523207[_0x3486af(0x2b3)])&&_0x523207[_0x3486af(0x2b3)][_0x3486af(0x24c)]>0x0){if(_0x1e91ee==='$in')return _0x523207[_0x3486af(0x2b3)][_0x3486af(0xfc)](0x0,0x2)[_0x3486af(0x18a)](_0x5cd2f9=>_0x5cd2f9['value']);return _0x523207[_0x3486af(0x2b3)][0x0][_0x3486af(0x27b)];}}catch{}if([_0x3486af(0x143),_0x3486af(0x217),'BIGINT',_0x3486af(0x1d5)][_0x3486af(0x10f)](_0x106956)){if(_0x1e91ee===_0x3486af(0x1dc))return[0x1,0x2,0x3];if(_0x1e91ee==='$gte'||_0x1e91ee==='$gteq')return 0x0;if(_0x1e91ee===_0x3486af(0x234)||_0x1e91ee===_0x3486af(0x220))return 0x64;return 0x1;}if([_0x3486af(0xd2),'TEXT',_0x3486af(0x12d)][_0x3486af(0x10f)](_0x106956)){if(_0x1e91ee===_0x3486af(0x1dc))return[_0x3486af(0x170),_0x3486af(0xec)];if(_0x1e91ee==='$contain')return _0x3486af(0xf0);if(_0x1e91ee===_0x3486af(0x249))return _0x3486af(0x11c);if(_0x1e91ee===_0x3486af(0x152))return'suffix';return _0x3486af(0x27b);}if([_0x3486af(0xe0),'DATETIME',_0x3486af(0x14f)][_0x3486af(0x10f)](_0x106956)){if(_0x1e91ee===_0x3486af(0x23a)||_0x1e91ee===_0x3486af(0x2ab))return _0x3486af(0x22e);if(_0x1e91ee===_0x3486af(0x234)||_0x1e91ee===_0x3486af(0x220))return _0x3486af(0x21b);return _0x3486af(0x22e);}if([_0x3486af(0x231),_0x3486af(0x12b)][_0x3486af(0x10f)](_0x106956))return!![];return _0x1e91ee===_0x3486af(0x1dc)?['value1',_0x3486af(0xec)]:'value';}[a0_0x556480(0x195)](){const _0x902309=a0_0x556480,_0x3f4d4b=super[_0x902309(0x17c)](),_0x1728ee=Object['entries'](_0x3f4d4b)[_0x902309(0x18a)](([_0xfddfad,_0x2a6613])=>{const _0x4108b1=_0x902309,_0x314fa2=_0x2a6613;return{'name':_0xfddfad,'type':_0x314fa2['type']||_0x4108b1(0x1bc),'description':_0x314fa2[_0x4108b1(0x259)]||'-','required':_0x314fa2['required']};});return{'description':_0x902309(0x155),'params':_0x1728ee};}}class ExcelExportOperation extends GenericOperation{[a0_0x556480(0x17c)](){const _0x997eba=a0_0x556480,_0x3a3918=super[_0x997eba(0x17c)]();if(Object[_0x997eba(0x254)](_0x3a3918)[_0x997eba(0x24c)]===0x0){const _0x37fad1={};return this['context'][_0x997eba(0x29c)][_0x997eba(0x263)](_0x277fc0=>{const _0xe8e75a=_0x997eba;_0x277fc0&&_0x277fc0[_0xe8e75a(0x278)]&&(_0x37fad1[_0x277fc0[_0xe8e75a(0x278)]]={'type':_0x277fc0[_0xe8e75a(0x25d)]||_0xe8e75a(0x22b),'sortNum':_0x277fc0[_0xe8e75a(0x16c)],'description':_0x277fc0[_0xe8e75a(0x259)]||_0x277fc0[_0xe8e75a(0x1ab)]});}),_0x37fad1[_0x997eba(0xc4)]={'type':_0x997eba(0xc8),'description':_0x997eba(0x230)},_0x37fad1[_0x997eba(0x18e)]={'type':_0x997eba(0xc8),'description':'每页数量(可选)'},_0x37fad1;}return _0x3a3918;}[a0_0x556480(0x2cb)](){const _0x5d81c9=a0_0x556480,_0x5ebffb=super['generateRequestExample']();if(Object['keys'](_0x5ebffb)['length']===0x0)return{'currentPage':0x1,'pageSize':0x64};return{..._0x5ebffb,'currentPage':_0x5ebffb[_0x5d81c9(0xc4)]??0x1,'pageSize':_0x5ebffb['pageSize']??0x64};}[a0_0x556480(0x289)](){const _0x177691=a0_0x556480;return{'success':!![],'msg':'','errorMsg':'','errorCode':_0x177691(0x1bd),'data':_0x177691(0x1ad),'params':null};}[a0_0x556480(0x1ce)](_0xfb0ba0,_0x294598){const _0x4981a8=a0_0x556480,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x294598||{},_0x46a965=this[_0x4981a8(0x29e)]();if(useFullExample){const _0xfbd5d=this['generateRequestExample'](),{currentPage:_0x5509f2,pageSize:_0x47c60c,..._0x4bb762}=_0xfbd5d,_0x2bdb5a=Object[_0x4981a8(0x254)](_0x4bb762)[_0x4981a8(0x24c)]>0x0;if(_0x2bdb5a){const _0x37a818=_0x52e736=>{const _0x2cfb39=_0x4981a8;return JSON[_0x2cfb39(0x215)](_0x52e736,null,0x2)['split']('\x0a')['map']((_0x383619,_0x152284)=>_0x152284===0x0?_0x383619:indent+_0x383619)[_0x2cfb39(0x147)]('\x0a');};return _0x4981a8(0x28a)+_0xfb0ba0+'.'+_0x46a965+_0x4981a8(0x247)+_0xfb0ba0+'.'+_0x46a965+'('+_0x37a818(_0xfbd5d)+');';}else{const _0x48e854=_0x366008=>{const _0x275d77=_0x4981a8;return JSON[_0x275d77(0x215)](_0x366008,null,0x2)[_0x275d77(0x1b5)]('\x0a')[_0x275d77(0x18a)]((_0x1a7e29,_0x13d0ca)=>_0x13d0ca===0x0?_0x1a7e29:indent+_0x1a7e29)['join']('\x0a');};return _0x4981a8(0x28a)+_0xfb0ba0+'.'+_0x46a965+_0x4981a8(0x223)+_0xfb0ba0+'.'+_0x46a965+'('+_0x48e854({'currentPage':0x1,'pageSize':0x64})+');';}}return _0x4981a8(0x171)+_0xfb0ba0+'.'+_0x46a965+_0x4981a8(0x128);}['generateUsageExample'](_0x4f440e){const _0x4f1d59=a0_0x556480,_0x430e95=this['getName'](),_0x5ae2b2=_0x4f1d59(0x15b)+_0x4f440e+'.'+_0x430e95+_0x4f1d59(0xba),_0x3f3d02=_0x4f1d59(0x184)+_0x4f440e+'.'+_0x430e95+_0x4f1d59(0x28d);return{'successCode':_0x5ae2b2,'errorCode':_0x3f3d02};}}class UpdateOperation extends GenericOperation{[a0_0x556480(0x2d5)](){const _0x1160bd=a0_0x556480;return this[_0x1160bd(0x136)]();}['getRequestParams'](){const _0x5272ed=a0_0x556480,_0x12b08d=this[_0x5272ed(0x2d5)]();return{'id':{'type':_0x5272ed(0x143),'description':_0x5272ed(0x24b),'required':!![]},'data':{'type':_0x5272ed(0x19f),'description':_0x5272ed(0x2ac),'required':!![],'properties':_0x12b08d}};}[a0_0x556480(0x28b)](){return this['getUpdateFields']();}[a0_0x556480(0x195)](){const _0xcee6df=a0_0x556480,_0x2a797b=this[_0xcee6df(0x2d5)](),_0x42b27c=Object[_0xcee6df(0x16a)](_0x2a797b)['map'](([_0x91b8c4,_0x17b18d])=>{const _0x1ecf71=_0xcee6df,_0x1b329d=_0x17b18d;return{'name':_0x91b8c4,'type':_0x1b329d[_0x1ecf71(0x25d)]||_0x1ecf71(0x1bc),'description':_0x1b329d['description']||'-'};});return{'description':'update\x20接口接受两个参数:\x0a\x0a'+_0xcee6df(0x12c)+_0xcee6df(0x191)+'**参数\x202:\x20`data`**\x20(Object,\x20必填)\x0a'+_0xcee6df(0xe2)+_0xcee6df(0x210),'params':_0x42b27c};}['generateRequestExample'](){const _0x114487=a0_0x556480,_0x2e7fad=this[_0x114487(0x2d5)](),_0x3521dc={};return Object[_0x114487(0x16a)](_0x2e7fad)[_0x114487(0x263)](([_0x4234ab,_0xdd1f5c])=>{const _0x122d4d=_0x114487,_0x109451=_0xdd1f5c;let _0x4777f0;if(typeof _0x109451[_0x122d4d(0x25d)]===_0x122d4d(0x286))_0x4777f0=_0x109451[_0x122d4d(0x25d)];else _0x109451[_0x122d4d(0x25d)]&&typeof _0x109451['type']===_0x122d4d(0x19f)?_0x4777f0=_0x109451[_0x122d4d(0x25d)]['type']||_0x122d4d(0x22b):_0x4777f0=_0x122d4d(0x22b);const _0x2ba5f7=_0x109451[_0x122d4d(0x259)],_0x5d46b2=this['getFieldDefinition'](_0x4234ab);_0x3521dc[_0x4234ab]=this[_0x122d4d(0x245)](_0x4234ab,_0x4777f0,typeof _0x5d46b2?.[_0x122d4d(0x269)]===_0x122d4d(0x286)?_0x5d46b2[_0x122d4d(0x269)]:undefined,{'isPrimaryKey':![],'description':_0x2ba5f7||_0x5d46b2?.[_0x122d4d(0x259)]||_0x5d46b2?.[_0x122d4d(0x1ab)]});}),{'id':0x1,'data':_0x3521dc};}[a0_0x556480(0x299)](){const _0x55b134=a0_0x556480,_0x5d0f32=this[_0x55b134(0x2cb)]();return[{'title':'更新请求示例','description':_0x55b134(0x131)+'-\x20**第一个参数\x20`id`**:主键ID(必填),用于定位要更新的记录\x0a'+_0x55b134(0x1be),'data':_0x5d0f32}];}['generateSDKCallCode'](_0x16723a,_0x5444b3){const _0x2edb0e=a0_0x556480,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x5444b3||{},_0x2522b1=this[_0x2edb0e(0x29e)]();if(useFullExample){const _0x3eebeb=this[_0x2edb0e(0x2cb)](),_0x4d0556=JSON['stringify'](_0x3eebeb[_0x2edb0e(0x114)],null,0x2)[_0x2edb0e(0x1b5)]('\x0a')[_0x2edb0e(0x18a)]((_0x5f0d2e,_0x2fe05f)=>_0x2fe05f===0x0?_0x5f0d2e:indent+_0x5f0d2e)[_0x2edb0e(0x147)]('\x0a');return _0x2edb0e(0x183)+_0x16723a+'.'+_0x2522b1+'('+_0x3eebeb['id']+',\x20'+_0x4d0556+');';}return _0x2edb0e(0x183)+_0x16723a+'.'+_0x2522b1+'(id,\x20data);';}}class OperationFactory{[a0_0x556480(0x1e8)](_0x2b9a84,_0x2278ae,_0x4975c9){const _0x3e563e=a0_0x556480;switch(_0x2b9a84){case _0x3e563e(0x116):return new GetSelectOptionsOperation(_0x2b9a84,_0x2278ae,_0x4975c9);case _0x3e563e(0x23c):return new GetListOperation(_0x2b9a84,_0x2278ae,_0x4975c9);case _0x3e563e(0x174):return new FilterOperation(_0x2b9a84,_0x2278ae,_0x4975c9);case'excelExport':return new ExcelExportOperation(_0x2b9a84,_0x2278ae,_0x4975c9);case _0x3e563e(0x1b6):return new UpdateOperation(_0x2b9a84,_0x2278ae,_0x4975c9);default:return new GenericOperation(_0x2b9a84,_0x2278ae,_0x4975c9);}}['createAll'](_0x4cd1ae,_0x1c0b22){const _0x3420b7=a0_0x556480,_0xdf412c=new Map();return Object[_0x3420b7(0x16a)](_0x4cd1ae)['forEach'](([_0x393e5f,_0x3ecf05])=>{const _0x30efee=_0x3420b7;_0xdf412c[_0x30efee(0x290)](_0x393e5f,this[_0x30efee(0x1e8)](_0x393e5f,_0x3ecf05,_0x1c0b22));}),_0xdf412c;}}class OperationList{[a0_0x556480(0x100)];constructor(_0x1a7c26,_0x6abe75){const _0x3899f9=a0_0x556480,_0x449e75=new OperationFactory();this[_0x3899f9(0x100)]=_0x449e75[_0x3899f9(0x25c)](_0x1a7c26,_0x6abe75);}[a0_0x556480(0x265)](_0x4c091d){const _0x114205=a0_0x556480;return this[_0x114205(0x100)][_0x114205(0x265)](_0x4c091d);}[a0_0x556480(0x148)](_0x26259b){const _0x27395b=a0_0x556480;return this[_0x27395b(0x100)]['has'](_0x26259b);}[a0_0x556480(0x1df)](){return this['_operations']['size'];}[a0_0x556480(0x1e2)](){const _0x3a7700=a0_0x556480;return Array[_0x3a7700(0x10b)](this[_0x3a7700(0x100)][_0x3a7700(0x254)]());}[a0_0x556480(0x285)](){const _0x292ab5=a0_0x556480,_0x2f4e42=Array['from'](this[_0x292ab5(0x100)][_0x292ab5(0x21c)]());return this[_0x292ab5(0x1db)](_0x2f4e42);}[a0_0x556480(0x11f)](){const _0x3208dd=a0_0x556480;return this[_0x3208dd(0x285)]()[_0x3208dd(0x174)](_0x46c92c=>_0x46c92c[_0x3208dd(0x23d)]());}['getDisabled'](){const _0x2d0ddb=a0_0x556480;return this[_0x2d0ddb(0x285)]()[_0x2d0ddb(0x174)](_0x43ad0f=>!_0x43ad0f[_0x2d0ddb(0x23d)]());}[a0_0x556480(0x135)](){const _0x15001b=a0_0x556480;return this[_0x15001b(0x11f)]()[_0x15001b(0x18a)](_0xf13018=>_0xf13018['getName']());}[a0_0x556480(0x243)](){const _0x5c43b0=a0_0x556480;return this['getDisabled']()[_0x5c43b0(0x18a)](_0x1b7390=>_0x1b7390[_0x5c43b0(0x29e)]());}[a0_0x556480(0x118)](_0x15d14f){const _0x1f7f9e=a0_0x556480;return this[_0x1f7f9e(0x285)]()[_0x1f7f9e(0x174)](_0xe73e61=>_0xe73e61['getType']()===_0x15d14f);}[a0_0x556480(0x174)](_0x56234a){const _0x481ecf=a0_0x556480;return this[_0x481ecf(0x285)]()[_0x481ecf(0x174)](_0x56234a);}[a0_0x556480(0x1d4)](_0x276aa9={}){const _0x2b7b6a=a0_0x556480;let _0x4ea21b=this[_0x2b7b6a(0x285)]();!_0x276aa9['includeDisabled']&&(_0x4ea21b=_0x4ea21b[_0x2b7b6a(0x174)](_0x51e314=>_0x51e314[_0x2b7b6a(0x23d)]()));if(_0x276aa9['filterBlacklist']!==![]){const _0x45351b=_0x4ea21b[_0x2b7b6a(0x18a)](_0x14e1a5=>({'name':_0x14e1a5[_0x2b7b6a(0x29e)](),'operation':_0x14e1a5})),_0x5d17ca=filterApiOperations(_0x45351b);_0x4ea21b=_0x5d17ca[_0x2b7b6a(0x18a)](_0x576e95=>_0x576e95[_0x2b7b6a(0x196)]),_0x4ea21b=this[_0x2b7b6a(0x1db)](_0x4ea21b);}return _0x276aa9['customFilter']&&(_0x4ea21b=_0x4ea21b[_0x2b7b6a(0x174)](_0x276aa9[_0x2b7b6a(0x284)])),_0x4ea21b;}[a0_0x556480(0x1db)](_0x3f707a){const _0x378037=a0_0x556480,_0x296bbb=_0x3f707a[_0x378037(0x1c6)](_0x5d602f=>_0x5d602f[_0x378037(0x29e)]()==='filter'),_0x260706=_0x3f707a['filter'](_0x8ef293=>_0x8ef293['getName']()!==_0x378037(0x174));return _0x296bbb?[_0x296bbb,..._0x260706]:_0x260706;}[a0_0x556480(0x200)](){const _0x28aede=a0_0x556480,_0x3bdafe=this['getEnabled']();return{'total':this[_0x28aede(0x1df)](),'enabled':_0x3bdafe[_0x28aede(0x24c)],'disabled':this['size']()-_0x3bdafe['length'],'byType':this[_0x28aede(0x213)](_0x3bdafe),'byMethod':this[_0x28aede(0x161)](_0x3bdafe)};}[a0_0x556480(0x213)](_0x5b37ca){const _0x3e67fc={};return _0x5b37ca['forEach'](_0x59f6e8=>{const _0x15cc44=a0_0x573f,_0x3262ae=_0x59f6e8[_0x15cc44(0x2a9)]();_0x3262ae&&(_0x3e67fc[_0x3262ae]=(_0x3e67fc[_0x3262ae]||0x0)+0x1);}),_0x3e67fc;}['getCountByMethod'](_0x264d6){const _0x76e2c4=a0_0x556480,_0x477d0b={};return _0x264d6[_0x76e2c4(0x263)](_0xa0c9a8=>{const _0x403413=_0x76e2c4,_0x16c749=_0xa0c9a8[_0x403413(0xd3)]();_0x16c749&&(_0x477d0b[_0x16c749]=(_0x477d0b[_0x16c749]||0x0)+0x1);}),_0x477d0b;}[Symbol[a0_0x556480(0x222)]](){const _0x2e51c4=a0_0x556480;return this[_0x2e51c4(0x100)][_0x2e51c4(0x21c)]();}['toString'](){const _0x505b63=a0_0x556480,_0x128020=this[_0x505b63(0x200)]();return _0x505b63(0x134)+_0x128020['enabled']+'/'+_0x128020[_0x505b63(0x2aa)]+_0x505b63(0x111);}}class Field{[a0_0x556480(0x2d4)];[a0_0x556480(0x22c)]=null;constructor(_0x1140b5){const _0x3cdf4e=a0_0x556480;if(!_0x1140b5||typeof _0x1140b5!==_0x3cdf4e(0x19f))throw new Error(_0x3cdf4e(0x272));this['_raw']=_0x1140b5;}get[a0_0x556480(0x208)](){const _0x38b43b=a0_0x556480;return this[_0x38b43b(0x2d4)];}[a0_0x556480(0x189)](){const _0x5d9274=a0_0x556480;return this[_0x5d9274(0x2d4)];}get[a0_0x556480(0x1ab)](){const _0x3613f8=a0_0x556480;return this[_0x3613f8(0x2d4)][_0x3613f8(0x1ab)]||'';}get[a0_0x556480(0x278)](){const _0x2bc1d2=a0_0x556480;return this[_0x2bc1d2(0x2d4)][_0x2bc1d2(0x278)]||'';}get[a0_0x556480(0x25d)](){const _0x2291af=a0_0x556480;return this[_0x2291af(0x2d4)]['type']||'';}get['description'](){const _0x3edb84=a0_0x556480;return this['_raw'][_0x3edb84(0x259)]||'';}get[a0_0x556480(0x1fd)](){const _0x241532=a0_0x556480;return Boolean(this[_0x241532(0x2d4)][_0x241532(0x1fd)]);}get[a0_0x556480(0x2d1)](){const _0x5c3b37=a0_0x556480;if(this['_extend']!==null&&typeof this['_extend']===_0x5c3b37(0x19f))return this[_0x5c3b37(0x22c)];const _0x5b7208=this[_0x5c3b37(0x2d4)][_0x5c3b37(0x2d1)];if(!_0x5b7208||typeof _0x5b7208!==_0x5c3b37(0x286))return this[_0x5c3b37(0x22c)]={},this[_0x5c3b37(0x22c)];if(_0x5b7208===_0x5c3b37(0x121)||_0x5b7208[_0x5c3b37(0x2b1)]()===_0x5c3b37(0x121))return this[_0x5c3b37(0x22c)]={},this[_0x5c3b37(0x22c)];try{const _0x5b2695=JSON[_0x5c3b37(0x187)](_0x5b7208);return this['_extend']=_0x5b2695!==null&&typeof _0x5b2695===_0x5c3b37(0x19f)&&!Array['isArray'](_0x5b2695)?_0x5b2695:{},this['_extend'];}catch(_0x18d5c3){return!![]&&console[_0x5c3b37(0x15e)]('[Field.extend]\x20解析字段\x20'+this['code']+_0x5c3b37(0x282),_0x18d5c3),this['_extend']={},this[_0x5c3b37(0x22c)];}}[a0_0x556480(0x17d)](){const _0x3fa932=a0_0x556480;return Boolean(this[_0x3fa932(0x2d1)][_0x3fa932(0x2d9)]);}['isPrimaryKey'](){const _0x1c75ed=a0_0x556480;return Boolean(this[_0x1c75ed(0x2d1)][_0x1c75ed(0x182)]);}[a0_0x556480(0x295)](){const _0x5a4ac5=a0_0x556480;return Boolean(this[_0x5a4ac5(0x2d1)]['systemRetain']);}[a0_0x556480(0x1b4)](){const _0x38d669=a0_0x556480;return!this[_0x38d669(0x295)]();}[a0_0x556480(0x14c)](){const _0x1ffafa=a0_0x556480;return this[_0x1ffafa(0x1fd)];}[a0_0x556480(0xf1)](){const _0x222be7=a0_0x556480;return Boolean(this['extend'][_0x222be7(0x1cc)]);}[a0_0x556480(0x12a)](){const _0x40ca7a=a0_0x556480;return Boolean(this['extend'][_0x40ca7a(0x16f)]);}[a0_0x556480(0x235)](){const _0x340d2b=a0_0x556480;return Boolean(this[_0x340d2b(0x2d1)][_0x340d2b(0x2c0)]);}[a0_0x556480(0x1fb)](){const _0x3edc65=a0_0x556480,_0x44ed9b=[_0x3edc65(0xc1),_0x3edc65(0x1fa),'CHECKBOX'];return _0x44ed9b['includes'](this[_0x3edc65(0x25d)]);}[a0_0x556480(0x1ec)](){const _0x38f0ac=a0_0x556480;return this[_0x38f0ac(0x25d)]==='CHECKBOX';}[a0_0x556480(0x17f)](){const _0x51f474=a0_0x556480,_0xbcd731=this['extend'];if(_0xbcd731[_0x51f474(0x2b3)]&&Array[_0x51f474(0x19d)](_0xbcd731[_0x51f474(0x2b3)]))return _0xbcd731[_0x51f474(0x2b3)];return;}[a0_0x556480(0xca)](){const _0x5d0406=a0_0x556480,_0x21e539=this['extend'];if(_0x21e539[_0x5d0406(0x261)]&&typeof _0x21e539[_0x5d0406(0x261)]==='object')return _0x21e539[_0x5d0406(0x261)];return;}['getEnumMeta'](){const _0x234a43=a0_0x556480;if(!this[_0x234a43(0x1fb)]())return;const _0x3c25d7=this['getEnumOptions'](),_0x4bb082=this[_0x234a43(0xca)](),_0x2060e0=[],_0x21646a={},_0x511fde=_0x213aec=>{const _0x57496f=_0x234a43;_0x213aec[_0x57496f(0x263)](_0x47775a=>{const _0x6bf15=_0x57496f;_0x2060e0[_0x6bf15(0x273)](_0x47775a[_0x6bf15(0x27b)]),_0x21646a[String(_0x47775a[_0x6bf15(0x27b)])]=_0x47775a['label'],_0x47775a['children']&&_0x47775a[_0x6bf15(0x2b2)][_0x6bf15(0x24c)]>0x0&&_0x511fde(_0x47775a[_0x6bf15(0x2b2)]);});};return _0x3c25d7&&_0x3c25d7[_0x234a43(0x24c)]>0x0&&_0x511fde(_0x3c25d7),{'code':this['code'],'name':this[_0x234a43(0x1ab)],'type':this[_0x234a43(0x25d)],'multiple':this['isMultipleSelect'](),'options':_0x3c25d7,'selectItemsSource':_0x4bb082,'values':_0x2060e0,'valueLabels':_0x21646a};}[a0_0x556480(0x14b)](){const _0x4561a6=a0_0x556480;return this[_0x4561a6(0x2d1)][_0x4561a6(0x2b0)];}[a0_0x556480(0x130)](){const _0x36503a=a0_0x556480;return this[_0x36503a(0x2d1)][_0x36503a(0x27e)];}[a0_0x556480(0x21a)](){const _0x53b952=a0_0x556480;return{'name':this[_0x53b952(0x1ab)],'code':this[_0x53b952(0x278)],'type':this[_0x53b952(0x25d)],'description':this[_0x53b952(0x259)],'required':this[_0x53b952(0x17d)](),'primaryKey':this[_0x53b952(0x296)](),'system':this['isSystem'](),'autoIncrement':this[_0x53b952(0xf1)](),'createTime':this['isCreateTime'](),'updateTime':this[_0x53b952(0x235)](),'isEnum':this[_0x53b952(0x1fb)](),'enumMeta':this[_0x53b952(0x1fb)]()?this[_0x53b952(0x192)]():undefined};}}class FieldList{[a0_0x556480(0x2bd)];constructor(_0x4d88a5,_0x2a1512){const _0x471335=a0_0x556480;if(!Array['isArray'](_0x4d88a5))throw new Error(_0x471335(0x26e));const _0x41f9d0=_0x2a1512?.[_0x471335(0x104)]??![],_0x2de5ab=_0x41f9d0?_0x4d88a5:_0x4d88a5[_0x471335(0x174)](_0x16f4e0=>!_0x16f4e0['deleted']);this[_0x471335(0x2bd)]=_0x2de5ab[_0x471335(0x18a)](_0x287cc7=>new Field(_0x287cc7));}get[a0_0x556480(0x24c)](){const _0x2e08e0=a0_0x556480;return this['_fields'][_0x2e08e0(0x24c)];}[a0_0x556480(0xc7)](){return[...this['_fields']];}['raw'](){return this['_fields']['map'](_0x54d316=>_0x54d316['raw']);}['at'](_0x5df2fd){const _0x21fb65=a0_0x556480;return this[_0x21fb65(0x2bd)]['at'](_0x5df2fd);}['find'](_0x48e1bf){const _0x4fb4bb=a0_0x556480;return this[_0x4fb4bb(0x2bd)][_0x4fb4bb(0x1c6)](_0x8b63e1=>_0x8b63e1[_0x4fb4bb(0x278)]===_0x48e1bf);}[a0_0x556480(0x1d0)](_0x28526d){const _0x36129e=a0_0x556480;return this[_0x36129e(0x2bd)][_0x36129e(0x1c6)](_0x5e14c5=>_0x5e14c5['name']===_0x28526d);}[a0_0x556480(0x148)](_0x39dd19){const _0x3fe6f2=a0_0x556480;return this[_0x3fe6f2(0x2bd)][_0x3fe6f2(0xd4)](_0x2e950a=>_0x2e950a['code']===_0x39dd19);}[a0_0x556480(0x263)](_0x5b772d){const _0x3a7489=a0_0x556480;this['_fields'][_0x3a7489(0x263)](_0x5b772d);}[a0_0x556480(0x18a)](_0x56f145){const _0x205cd0=a0_0x556480;return this[_0x205cd0(0x2bd)][_0x205cd0(0x18a)](_0x56f145);}[a0_0x556480(0x174)](_0x3cd365){const _0x4b7631=a0_0x556480;return this[_0x4b7631(0x2bd)][_0x4b7631(0x174)](_0x3cd365);}[a0_0x556480(0x291)](_0x1ac9f1){const _0x42dbb3=a0_0x556480;return this['_fields'][_0x42dbb3(0x291)](_0x1ac9f1);}[a0_0x556480(0xd4)](_0x43c895){const _0x366530=a0_0x556480;return this[_0x366530(0x2bd)]['some'](_0x43c895);}[a0_0x556480(0xbf)](){const _0x59ab46=a0_0x556480;return this[_0x59ab46(0x2bd)][_0x59ab46(0x174)](_0x17ce98=>_0x17ce98[_0x59ab46(0x17d)]());}[a0_0x556480(0x1aa)](){const _0x18840a=a0_0x556480;return this[_0x18840a(0x2bd)]['filter'](_0x47d8e9=>_0x47d8e9[_0x18840a(0x296)]());}[a0_0x556480(0xeb)](){const _0x29ba83=a0_0x556480;return this[_0x29ba83(0x2bd)][_0x29ba83(0x174)](_0x215a40=>_0x215a40[_0x29ba83(0x295)]());}['getBusiness'](){const _0x578653=a0_0x556480;return this[_0x578653(0x2bd)][_0x578653(0x174)](_0x27f9d5=>_0x27f9d5['isBusiness']());}[a0_0x556480(0x150)](){const _0x5c23f2=a0_0x556480;return this['_fields'][_0x5c23f2(0x174)](_0xaae9d3=>_0xaae9d3[_0x5c23f2(0x1fb)]());}['getAutoIncrement'](){const _0x182857=a0_0x556480;return this[_0x182857(0x2bd)]['filter'](_0x1d4989=>_0x1d4989[_0x182857(0xf1)]());}[a0_0x556480(0x266)](){const _0x5b002b=a0_0x556480;return this[_0x5b002b(0x2bd)][_0x5b002b(0x174)](_0xb65dce=>_0xb65dce[_0x5b002b(0x12a)]());}[a0_0x556480(0x154)](){const _0x472b88=a0_0x556480;return this[_0x472b88(0x2bd)][_0x472b88(0x174)](_0x21451b=>_0x21451b[_0x472b88(0x235)]());}[a0_0x556480(0x2ae)](){const _0x4840b7=a0_0x556480;return this[_0x4840b7(0x2bd)][_0x4840b7(0x174)](_0x44c2c4=>_0x44c2c4['isDeleted']());}[a0_0x556480(0x15c)](){const _0x11fed9=a0_0x556480;return this[_0x11fed9(0x2bd)]['filter'](_0x2847a2=>!_0x2847a2[_0x11fed9(0x14c)]());}[a0_0x556480(0x11d)](){const _0x258080=a0_0x556480,_0x26315c={};return this[_0x258080(0x2bd)][_0x258080(0x263)](_0x4eb8b0=>{const _0x4deeb3=_0x258080,_0x2a522f=_0x4eb8b0[_0x4deeb3(0x25d)];!_0x26315c[_0x2a522f]&&(_0x26315c[_0x2a522f]=[]),_0x26315c[_0x2a522f][_0x4deeb3(0x273)](_0x4eb8b0);}),_0x26315c;}[a0_0x556480(0x1e3)](){const _0x252f7d=a0_0x556480,_0x14837b={};return this[_0x252f7d(0x2bd)]['forEach'](_0x310acb=>{const _0x368bfd=_0x252f7d;if(_0x310acb[_0x368bfd(0x1fb)]()){const _0x18f289=_0x310acb[_0x368bfd(0x192)]();_0x18f289&&(_0x14837b[_0x310acb[_0x368bfd(0x278)]]=_0x18f289);}}),_0x14837b;}[a0_0x556480(0x200)](){const _0x5956e1=a0_0x556480;return{'total':this['length'],'required':this['getRequired']()[_0x5956e1(0x24c)],'primaryKey':this[_0x5956e1(0x1aa)]()[_0x5956e1(0x24c)],'system':this[_0x5956e1(0xeb)]()[_0x5956e1(0x24c)],'business':this[_0x5956e1(0x2a2)]()[_0x5956e1(0x24c)],'enum':this[_0x5956e1(0x150)]()['length'],'autoIncrement':this[_0x5956e1(0x24d)]()[_0x5956e1(0x24c)]};}[a0_0x556480(0x21a)](){const _0x574f73=a0_0x556480;return this[_0x574f73(0x2bd)][_0x574f73(0x18a)](_0x54587b=>_0x54587b[_0x574f73(0x21a)]());}[a0_0x556480(0x1f4)](){return this['_fields']['map'](_0x830f06=>_0x830f06['code']);}['getNames'](){const _0x129296=a0_0x556480;return this[_0x129296(0x2bd)][_0x129296(0x18a)](_0x4dcedb=>_0x4dcedb[_0x129296(0x1ab)]);}static[a0_0x556480(0x10b)](_0x3adc45){const _0x1992e1=a0_0x556480,_0x5185c2=_0x3adc45[_0x1992e1(0x18a)](_0x7aec19=>_0x7aec19['raw']);return new FieldList(_0x5185c2);}static[a0_0x556480(0x253)](_0x1ecee0){return new FieldList(_0x1ecee0,{'includeDeleted':!![]});}}class DrivenDataDetail extends DatasetItem{['_operationList'];[a0_0x556480(0x1c9)];[a0_0x556480(0x13a)];constructor(_0x34eb6f){const _0x8b9e25=a0_0x556480;super({..._0x34eb6f,'id':_0x34eb6f[_0x8b9e25(0xcc)],'datasetCode':_0x34eb6f[_0x8b9e25(0x17a)]});}get[a0_0x556480(0x19a)](){const _0x5172a6=a0_0x556480;return this['_raw'][_0x5172a6(0x19a)];}[a0_0x556480(0x20b)](){return this['source'];}get[a0_0x556480(0x233)](){const _0x5e97bc=a0_0x556480;return this[_0x5e97bc(0x2d4)][_0x5e97bc(0x233)];}[a0_0x556480(0x1a6)](){const _0x41613e=a0_0x556480;return!this[_0x41613e(0x1c9)]&&(this[_0x41613e(0x1c9)]=new FieldList(this[_0x41613e(0x2d4)][_0x41613e(0x1d8)]||[])),this[_0x41613e(0x1c9)];}[a0_0x556480(0x1a4)](){const _0x7d5168=a0_0x556480;return!this[_0x7d5168(0x13a)]&&(this['_fieldListWithDeleted']=FieldList[_0x7d5168(0x253)](this[_0x7d5168(0x2d4)][_0x7d5168(0x1d8)]||[])),this[_0x7d5168(0x13a)];}[a0_0x556480(0x1d2)](){const _0x3243ac=a0_0x556480;return this[_0x3243ac(0x1a6)]()[_0x3243ac(0x208)]();}[a0_0x556480(0xdb)](){const _0x5ebbcf=a0_0x556480;return this[_0x5ebbcf(0x2d4)][_0x5ebbcf(0x1d8)]||[];}[a0_0x556480(0x287)](){const _0x5bab9e=a0_0x556480;return this[_0x5bab9e(0x1a6)]()[_0x5bab9e(0x24c)];}[a0_0x556480(0x159)](_0x506fc4){const _0x56aa64=a0_0x556480,_0x23fe01=this[_0x56aa64(0x15d)](_0x506fc4);return _0x23fe01?_0x23fe01[_0x56aa64(0x208)]:undefined;}[a0_0x556480(0x227)](_0x2a9658){const _0x291026=a0_0x556480;return this[_0x291026(0x1a6)]()['find'](_0x2a9658)?.[_0x291026(0x208)]||undefined;}['getFieldInstance'](_0x4750d6){const _0xc5dd7c=a0_0x556480;if(typeof _0x4750d6!==_0xc5dd7c(0x286)){!![]&&console[_0xc5dd7c(0x15e)](_0xc5dd7c(0x22f),_0x4750d6);return;}return this['getFieldList']()[_0xc5dd7c(0x1c6)](_0x4750d6);}[a0_0x556480(0x229)](_0x388d07){const _0x1947a8=a0_0x556480;return this[_0x1947a8(0x1a6)]()[_0x1947a8(0x148)](_0x388d07);}[a0_0x556480(0x18d)](_0x2794e9){const _0x16ef74=a0_0x556480;if(!_0x2794e9||typeof _0x2794e9!==_0x16ef74(0x19f))return!![]&&console[_0x16ef74(0x15e)](_0x16ef74(0x1ed),_0x2794e9),{};if(!_0x2794e9[_0x16ef74(0x2d1)])return{};try{const _0x3f997e=typeof _0x2794e9['extend']===_0x16ef74(0x286)?JSON['parse'](_0x2794e9[_0x16ef74(0x2d1)]):_0x2794e9[_0x16ef74(0x2d1)];if(typeof _0x3f997e!==_0x16ef74(0x19f)||_0x3f997e===null)return{};return _0x3f997e;}catch{return{};}}[a0_0x556480(0x1a3)](_0x3b4141){const _0x25602a=a0_0x556480;if(!_0x3b4141||typeof _0x3b4141!=='object')return![];const _0x3aa359=this[_0x25602a(0x1a6)]()[_0x25602a(0x1c6)](_0x3b4141[_0x25602a(0x278)]);return _0x3aa359?_0x3aa359[_0x25602a(0x296)]():![];}[a0_0x556480(0x20d)](_0x4aab2c){const _0x4d224f=a0_0x556480;if(!_0x4aab2c||typeof _0x4aab2c!=='object')return![];const _0x31ae18=this[_0x4d224f(0x1a6)]()[_0x4d224f(0x1c6)](_0x4aab2c[_0x4d224f(0x278)]);return _0x31ae18?_0x31ae18[_0x4d224f(0x295)]():![];}[a0_0x556480(0x28f)](_0x5be900){const _0x3dfa78=a0_0x556480;if(!_0x5be900||typeof _0x5be900!==_0x3dfa78(0x19f))return![];const _0x26c54b=this[_0x3dfa78(0x1a6)]()[_0x3dfa78(0x1c6)](_0x5be900[_0x3dfa78(0x278)]);return _0x26c54b?_0x26c54b['isRequired']():![];}[a0_0x556480(0x1c5)](){const _0x1e7685=a0_0x556480;return this[_0x1e7685(0x1a6)]()[_0x1e7685(0x1aa)]()[_0x1e7685(0x18a)](_0x2153e5=>_0x2153e5['raw']);}[a0_0x556480(0x1da)](){const _0xd15f0f=a0_0x556480;return this['getFieldList']()[_0xd15f0f(0xeb)]()[_0xd15f0f(0x18a)](_0x324b9c=>_0x324b9c[_0xd15f0f(0x208)]);}[a0_0x556480(0x2b8)](){const _0x326d54=a0_0x556480;return this[_0x326d54(0x1a6)]()[_0x326d54(0x2a2)]()['map'](_0x53cf37=>_0x53cf37[_0x326d54(0x208)]);}['getRequiredFields'](){const _0x41a79e=a0_0x556480;return this['getFieldList']()[_0x41a79e(0xbf)]()[_0x41a79e(0x18a)](_0x28d2c7=>_0x28d2c7[_0x41a79e(0x208)]);}[a0_0x556480(0x1a9)](){const _0x429993=a0_0x556480,_0x12f2ee=this[_0x429993(0x1a6)]()[_0x429993(0x11d)](),_0x3112db={};for(const [_0x2adea5,_0x1f5631]of Object['entries'](_0x12f2ee)){_0x3112db[_0x2adea5]=_0x1f5631[_0x429993(0x18a)](_0x40b590=>_0x40b590[_0x429993(0x208)]);}return _0x3112db;}['isEnumField'](_0x56c627){const _0x5116d0=a0_0x556480;if(!_0x56c627||typeof _0x56c627!==_0x5116d0(0x19f))return![];const _0x43bcd4=this[_0x5116d0(0x1a6)]()['find'](_0x56c627[_0x5116d0(0x278)]);return _0x43bcd4?_0x43bcd4[_0x5116d0(0x1fb)]():![];}['isMultipleSelectField'](_0x15c4bd){const _0x3a5f79=a0_0x556480;if(!_0x15c4bd||typeof _0x15c4bd!=='object')return![];const _0x5782a6=this[_0x3a5f79(0x1a6)]()[_0x3a5f79(0x1c6)](_0x15c4bd[_0x3a5f79(0x278)]);return _0x5782a6?_0x5782a6[_0x3a5f79(0x1ec)]():![];}['getFieldOptions'](_0x18a1e2){const _0x308041=a0_0x556480;if(!_0x18a1e2||typeof _0x18a1e2!==_0x308041(0x19f))return[];const _0x44c4f9=this['getFieldList']()[_0x308041(0x1c6)](_0x18a1e2[_0x308041(0x278)]);if(!_0x44c4f9||!_0x44c4f9[_0x308041(0x1fb)]())return[];return _0x44c4f9[_0x308041(0x17f)]()||[];}[a0_0x556480(0x197)](_0x239c8f){const _0x112782=a0_0x556480;if(!_0x239c8f||typeof _0x239c8f!==_0x112782(0x19f))return;const _0x52654d=this[_0x112782(0x1a6)]()[_0x112782(0x1c6)](_0x239c8f['code']);if(!_0x52654d||!_0x52654d[_0x112782(0x1fb)]())return;return _0x52654d[_0x112782(0xca)]();}[a0_0x556480(0x252)](_0x171f61){const _0x47529f=a0_0x556480;if(!_0x171f61||typeof _0x171f61!=='object')return;const _0x575c77=this[_0x47529f(0x1a6)]()[_0x47529f(0x1c6)](_0x171f61['code']);if(!_0x575c77||!_0x575c77[_0x47529f(0x1fb)]())return;return _0x575c77[_0x47529f(0x192)]();}['getEnumFields'](){const _0x6d9c25=a0_0x556480;return this[_0x6d9c25(0x1a6)]()['getEnum']()[_0x6d9c25(0x18a)](_0xf43d59=>_0xf43d59[_0x6d9c25(0x208)]);}[a0_0x556480(0x1b8)](){const _0x498228=a0_0x556480,_0x5b5979={};return this[_0x498228(0x172)]()[_0x498228(0x263)](_0x22ceb8=>{const _0x4164d9=_0x498228,_0x21a82e=this[_0x4164d9(0x252)](_0x22ceb8);_0x21a82e&&(_0x5b5979[_0x22ceb8['code']]=_0x21a82e);}),_0x5b5979;}['validateEnumValue'](_0x9d40e8,_0x1a7260){const _0x5f410d=a0_0x556480,_0xbcd423=this[_0x5f410d(0x252)](_0x9d40e8);if(!_0xbcd423)return!![];if(_0xbcd423[_0x5f410d(0x261)]&&!_0xbcd423[_0x5f410d(0x2b3)])return!![];if(_0xbcd423[_0x5f410d(0x270)]&&Array[_0x5f410d(0x19d)](_0x1a7260))return _0x1a7260['every'](_0x1c63d4=>_0xbcd423['values'][_0x5f410d(0x10f)](_0x1c63d4));return _0xbcd423[_0x5f410d(0x21c)]['includes'](_0x1a7260);}[a0_0x556480(0x1b3)](){const _0x21047f=a0_0x556480;if(!this['_operationList']){const _0x2a5e48=this[_0x21047f(0x23e)](this[_0x21047f(0x2d4)][_0x21047f(0x2d6)]||{});this['_operationList']=new OperationList(_0x2a5e48,{'fields':this[_0x21047f(0x1d2)](),'pkField':this['_raw'][_0x21047f(0x1f7)]?.[_0x21047f(0xe9)],'dbtableConfig':this[_0x21047f(0x2d4)][_0x21047f(0x1f7)]});}return this[_0x21047f(0xef)];}[a0_0x556480(0x23e)](_0x561551){const _0x5b1747=a0_0x556480;if(_0x561551[_0x5b1747(0x174)]!==undefined)return _0x561551;return{..._0x561551,'filter':this[_0x5b1747(0xf2)]()};}[a0_0x556480(0xf2)](){const _0x32abdf=a0_0x556480,_0x39a3cd=this[_0x32abdf(0x2d4)][_0x32abdf(0x2d6)]?.[_0x32abdf(0x23c)];let _0x5e0fab=_0x39a3cd?.[_0x32abdf(0x26f)],_0x55ff9f='';if(!_0x5e0fab&&this[_0x32abdf(0x2d4)][_0x32abdf(0x2d6)]){const _0x25fff3=Object[_0x32abdf(0x21c)](this[_0x32abdf(0x2d4)][_0x32abdf(0x2d6)]);for(const _0x24d7ab of _0x25fff3){if(_0x24d7ab&&typeof _0x24d7ab==='object'&&'host'in _0x24d7ab){_0x5e0fab=_0x24d7ab[_0x32abdf(0x26f)];break;}}}if(_0x39a3cd?.[_0x32abdf(0x13d)]){const _0x92437d=_0x39a3cd[_0x32abdf(0x13d)],_0x39eff3=_0x92437d[_0x32abdf(0x274)]('/');_0x39eff3!==-0x1&&(_0x55ff9f=_0x92437d[_0x32abdf(0xf6)](0x0,_0x39eff3));}return{'name':_0x32abdf(0x174),'type':_0x32abdf(0x122),'description':'Filter\x20API\x20-\x20高级查询接口','method':'POST','host':_0x5e0fab,'path':_0x55ff9f?_0x55ff9f+'/filter':_0x32abdf(0xe6),'params':_0x39a3cd?.[_0x32abdf(0x28c)]||[{'name':'where','type':_0x32abdf(0x19f),'required':![]},{'name':_0x32abdf(0x2b7),'type':_0x32abdf(0x13b),'required':![]},{'name':_0x32abdf(0x2bb),'type':'array','required':![]},{'name':'currentPage','type':_0x32abdf(0x2ce),'required':![],'default':0x1},{'name':'pageSize','type':_0x32abdf(0x2ce),'required':![],'default':0xa}],'_autoGenerated':!![]};}[a0_0x556480(0x297)](){const _0x5d5369=a0_0x556480;return this[_0x5d5369(0x1b3)]()[_0x5d5369(0x285)]();}[a0_0x556480(0x1ac)](){const _0xceb2c2=a0_0x556480;return this[_0xceb2c2(0x1b3)]()[_0xceb2c2(0x1df)]();}[a0_0x556480(0x209)](_0x56390e){const _0x3b7ed9=a0_0x556480;if(typeof _0x56390e!==_0x3b7ed9(0x286)){!![]&&console['warn'](_0x3b7ed9(0x2b6),_0x56390e);return;}return this[_0x3b7ed9(0x1b3)]()[_0x3b7ed9(0x265)](_0x56390e);}[a0_0x556480(0x186)](_0x57e48e){const _0xc98ed=a0_0x556480;if(typeof _0x57e48e!==_0xc98ed(0x286))return![];return this['getOperationList']()['has'](_0x57e48e);}[a0_0x556480(0x1d7)](_0x5ebd35){const _0x5b188c=a0_0x556480;if(typeof _0x5ebd35!==_0x5b188c(0x286))return![];const _0x3aa245=this[_0x5b188c(0x209)](_0x5ebd35);return _0x3aa245?.[_0x5b188c(0x23d)]()||![];}[a0_0x556480(0x124)](){const _0xe86d39=a0_0x556480;return this[_0xe86d39(0x1b3)]()[_0xe86d39(0x135)]();}[a0_0x556480(0xbd)](){const _0x1bb477=a0_0x556480;return this[_0x1bb477(0x1b3)]()[_0x1bb477(0x243)]();}['getEnabledOperationInstances'](){const _0x30cf12=a0_0x556480;return this[_0x30cf12(0x1b3)]()[_0x30cf12(0x11f)]();}[a0_0x556480(0x2d8)](){const _0x41801b=a0_0x556480;return this[_0x41801b(0x1b3)]()['getDisabled']();}['getStats'](){const _0x5e9e64=a0_0x556480;return{'fieldCount':this[_0x5e9e64(0x287)](),'systemFieldCount':this[_0x5e9e64(0x1da)]()[_0x5e9e64(0x24c)],'businessFieldCount':this[_0x5e9e64(0x2b8)]()['length'],'requiredFieldCount':this['getRequiredFields']()[_0x5e9e64(0x24c)],'primaryKeyCount':this['getPrimaryKeyFields']()[_0x5e9e64(0x24c)],'operationCount':this[_0x5e9e64(0x1ac)](),'enabledOperationCount':this[_0x5e9e64(0x124)]()[_0x5e9e64(0x24c)]};}[a0_0x556480(0x181)](){const _0x43b207=a0_0x556480;return new DatasetItem({'id':this['id'],'name':this[_0x43b207(0x1ab)],'datasetCode':this[_0x43b207(0x129)],'dbtableConfig':this['getRawDbtableConfig']()});}[a0_0x556480(0x125)](){const _0x17392f=a0_0x556480;return _0x17392f(0x2af)+this[_0x17392f(0x1ab)]+',\x20'+this[_0x17392f(0x129)]+',\x20'+this[_0x17392f(0x287)]()+_0x17392f(0x1d3)+this[_0x17392f(0x1ac)]()+_0x17392f(0x111);}[a0_0x556480(0x28e)](){const _0x36d4b2=a0_0x556480,_0x411a8e=this[_0x36d4b2(0x209)]('filter');return _0x411a8e;}['hasFilterOperation'](){const _0x428f56=a0_0x556480;return this[_0x428f56(0x186)](_0x428f56(0x174));}[a0_0x556480(0x157)](_0x399570){const _0x419c3d=a0_0x556480,_0x57e94d=this[_0x419c3d(0x209)](_0x399570);return _0x57e94d?_0x57e94d['getOperators']():[];}[a0_0x556480(0xd7)](_0x3c4b4e,_0x507d02){const _0x2eeda2=a0_0x556480,_0x1bd845=this['getOperation'](_0x3c4b4e);return _0x1bd845?_0x1bd845[_0x2eeda2(0x2a7)](_0x507d02):[];}[a0_0x556480(0x2be)](_0x3a7015){const _0x14262f=a0_0x556480,_0x5f414d={};return this[_0x14262f(0x1a6)]()[_0x14262f(0x263)](_0x1cc0e6=>{const _0x4f6620=_0x14262f,_0x3fda8e=this[_0x4f6620(0xd7)](_0x3a7015,_0x1cc0e6['code']);_0x3fda8e['length']>0x0&&(_0x5f414d[_0x1cc0e6[_0x4f6620(0x278)]]=_0x3fda8e);}),_0x5f414d;}[a0_0x556480(0x232)](_0x45b7b9,_0x4661b7,_0x1ba41d){const _0x167136=a0_0x556480,_0x73eed5=this[_0x167136(0xd7)](_0x45b7b9,_0x4661b7);return _0x73eed5[_0x167136(0x10f)](_0x1ba41d);}[a0_0x556480(0x2c5)](){const _0x553c0b=a0_0x556480;return this[_0x553c0b(0x157)](_0x553c0b(0x174));}[a0_0x556480(0x1c1)](_0x18d195){const _0x5c2347=a0_0x556480;return this[_0x5c2347(0xd7)](_0x5c2347(0x174),_0x18d195);}['getFieldsFilterOperatorsMap'](){const _0x46d147=a0_0x556480;return this[_0x46d147(0x2be)](_0x46d147(0x174));}}class DatasetGroup{[a0_0x556480(0x2c8)];constructor(_0xe8457e){const _0x3cdd80=a0_0x556480;this['items']=Array[_0x3cdd80(0x19d)](_0xe8457e)?[..._0xe8457e]:[_0xe8457e],this['items'][_0x3cdd80(0x164)]((_0x529a30,_0x27425d)=>{const _0x5849bb=Number(_0x529a30['id'])||0x0,_0x4d2070=Number(_0x27425d['id'])||0x0;return _0x4d2070-_0x5849bb;});}[a0_0x556480(0x1c7)](){const _0x2d6bda=a0_0x556480;return this[_0x2d6bda(0x2c8)][_0x2d6bda(0x24c)]>0x1;}['getLatest'](){const _0xbaafd3=a0_0x556480;return this[_0xbaafd3(0x2c8)][0x0];}[a0_0x556480(0x1b7)](){const _0x143119=a0_0x556480;return this[_0x143119(0x2c8)][this[_0x143119(0x2c8)][_0x143119(0x24c)]-0x1];}[a0_0x556480(0x107)](){const _0x189b40=a0_0x556480;return[...this[_0x189b40(0x2c8)]];}[a0_0x556480(0x127)](){const _0x4263d8=a0_0x556480;return this['items'][_0x4263d8(0x24c)];}[a0_0x556480(0x255)](_0x1cd5b6){const _0xd98c0c=a0_0x556480;return this[_0xd98c0c(0x2c8)][_0x1cd5b6];}[a0_0x556480(0x165)](_0x591b9b){const _0x38e5d6=a0_0x556480;return this['items'][_0x38e5d6(0x1c6)](_0x2a6396=>_0x2a6396['id']===_0x591b9b);}[a0_0x556480(0x1bf)](_0xdce3fe){const _0x4630c8=a0_0x556480;return this[_0x4630c8(0x2c8)][_0x4630c8(0x1c6)](_0x20c8d4=>_0x20c8d4[_0x4630c8(0x129)]===_0xdce3fe);}[a0_0x556480(0x1e6)](){const _0x409ea4=a0_0x556480;return this[_0x409ea4(0x2c8)][_0x409ea4(0x18a)](_0x58a821=>_0x58a821['id'])[_0x409ea4(0x174)](_0x2a8444=>_0x2a8444!==undefined);}[a0_0x556480(0x1f4)](){const _0x6f1e58=a0_0x556480;return this[_0x6f1e58(0x2c8)][_0x6f1e58(0x18a)](_0x48860e=>_0x48860e[_0x6f1e58(0x129)]);}['toString'](){const _0x4191b6=a0_0x556480;if(this['hasConflict']())return _0x4191b6(0x2cc)+this['items'][_0x4191b6(0x24c)]+_0x4191b6(0x2c7)+this['getLatest']()[_0x4191b6(0x1ab)]+')';return'DatasetGroup('+this[_0x4191b6(0x2c8)][0x0][_0x4191b6(0x1ab)]+')';}}class DatasetGroupMap{[a0_0x556480(0x1f9)];constructor(_0x498404){const _0x13834e=a0_0x556480;this['groups']=new Map();for(const _0x5ed55d of _0x498404){const _0x1d7502=getTableKey(_0x5ed55d);if(!this[_0x13834e(0x1f9)][_0x13834e(0x148)](_0x1d7502))this[_0x13834e(0x1f9)][_0x13834e(0x290)](_0x1d7502,new DatasetGroup(_0x5ed55d));else{const _0x502df1=this[_0x13834e(0x1f9)][_0x13834e(0x265)](_0x1d7502),_0x57b586=[..._0x502df1['getAll'](),_0x5ed55d];this[_0x13834e(0x1f9)][_0x13834e(0x290)](_0x1d7502,new DatasetGroup(_0x57b586));}}}[a0_0x556480(0x265)](_0x2a4873){const _0x1bfc4d=a0_0x556480;return this[_0x1bfc4d(0x1f9)][_0x1bfc4d(0x265)](_0x2a4873);}[a0_0x556480(0x148)](_0x1bd521){const _0x4a3ad2=a0_0x556480;return this['groups'][_0x4a3ad2(0x148)](_0x1bd521);}get[a0_0x556480(0x1df)](){const _0x4aa47b=a0_0x556480;return this[_0x4aa47b(0x1f9)][_0x4aa47b(0x1df)];}['keys'](){const _0x2dd98f=a0_0x556480;return this[_0x2dd98f(0x1f9)][_0x2dd98f(0x254)]();}[a0_0x556480(0x21c)](){const _0x7e8691=a0_0x556480;return this[_0x7e8691(0x1f9)][_0x7e8691(0x21c)]();}[a0_0x556480(0x16a)](){return this['groups']['entries']();}[Symbol[a0_0x556480(0x222)]](){const _0x5aecc5=a0_0x556480;return this[_0x5aecc5(0x1f9)]['entries']();}['forEach'](_0x60f8d2){const _0x16d0d5=a0_0x556480;this[_0x16d0d5(0x1f9)][_0x16d0d5(0x263)]((_0x4365ea,_0x44183e)=>_0x60f8d2(_0x4365ea,_0x44183e,this));}[a0_0x556480(0x1a7)](){const _0x51cf65=a0_0x556480,_0x56f78c=new Map();for(const [_0x4a43df,_0x38208d]of this[_0x51cf65(0x1f9)]){_0x38208d['hasConflict']()&&_0x56f78c[_0x51cf65(0x290)](_0x4a43df,_0x38208d);}return _0x56f78c;}[a0_0x556480(0x109)](){const _0x11fa00=a0_0x556480;for(const _0x4ee035 of this[_0x11fa00(0x1f9)]['values']()){if(_0x4ee035[_0x11fa00(0x1c7)]())return!![];}return![];}[a0_0x556480(0x17e)](){const _0x505087=a0_0x556480;let _0x44e8ea=0x0,_0x3b07cb=0x0;for(const _0x4ff3eb of this[_0x505087(0x1f9)][_0x505087(0x21c)]()){_0x4ff3eb[_0x505087(0x1c7)]()&&(_0x44e8ea++,_0x3b07cb+=_0x4ff3eb[_0x505087(0x127)]());}return{'conflictGroupCount':_0x44e8ea,'conflictItemCount':_0x3b07cb,'totalGroups':this[_0x505087(0x1f9)][_0x505087(0x1df)]};}[a0_0x556480(0x16b)](){const _0x177f58=a0_0x556480,_0x53f774=[];for(const _0x2ad9f7 of this[_0x177f58(0x1f9)][_0x177f58(0x21c)]()){_0x53f774[_0x177f58(0x273)](..._0x2ad9f7[_0x177f58(0x107)]());}return _0x53f774;}['getLatestDatasets'](){const _0x40958a=a0_0x556480,_0x4819b0=[];for(const _0x3c71d6 of this['groups'][_0x40958a(0x21c)]()){_0x4819b0[_0x40958a(0x273)](_0x3c71d6[_0x40958a(0x15f)]());}return _0x4819b0;}[a0_0x556480(0x15f)](_0x127ce4){const _0x54ee37=a0_0x556480;return this['groups'][_0x54ee37(0x265)](_0x127ce4)?.[_0x54ee37(0x15f)]();}[a0_0x556480(0x107)](_0x5e2df0){const _0x351474=a0_0x556480;return this[_0x351474(0x1f9)][_0x351474(0x265)](_0x5e2df0)?.[_0x351474(0x107)]()||[];}[a0_0x556480(0x1f0)](){const _0xd0580b=a0_0x556480,_0x301642=this[_0xd0580b(0x2a8)](),_0x47b37a=_0x301642[_0xd0580b(0x18a)](_0x3ba3d9=>_0x3ba3d9[_0xd0580b(0x21a)]());return generateDatasetsConfig(_0x47b37a,{'enableDeduplication':![]});}[a0_0x556480(0x26a)](){const _0x473ed1=a0_0x556480,_0xcb778a=this[_0x473ed1(0x16b)](),_0x16b50a=_0xcb778a['map'](_0x5a6464=>_0x5a6464[_0x473ed1(0x21a)]());return generateFullDatasetsConfig(_0x16b50a);}[a0_0x556480(0xfb)](){const _0x15c3b7={};for(const [_0x3fa1b4,_0x4f3ef4]of this['groups']){_0x15c3b7[_0x3fa1b4]=_0x4f3ef4;}return _0x15c3b7;}['toJSON'](){const _0x2bed90=a0_0x556480,_0x4040bf={};for(const [_0x122080,_0xffb245]of this['groups']){_0x4040bf[_0x122080]=_0xffb245[_0x2bed90(0x107)]()[_0x2bed90(0x18a)](_0x4038bf=>_0x4038bf[_0x2bed90(0x21a)]());}return _0x4040bf;}['toString'](){const _0xe0cac5=a0_0x556480;return _0xe0cac5(0x18f)+this['groups'][_0xe0cac5(0x1df)]+_0xe0cac5(0x1cf)+(this['hasConflicts']()?_0xe0cac5(0x117):_0xe0cac5(0x24a))+')';}}class DatasetList{[a0_0x556480(0x120)];constructor(_0x2bb661){const _0x216def=a0_0x556480;let _0x3c2d1a;if(Array['isArray'](_0x2bb661))_0x3c2d1a=_0x2bb661;else{if(_0x216def(0x2d0)in _0x2bb661){if(!_0x2bb661[_0x216def(0x2d0)])throw new Error(_0x216def(0x1ea));if(Array[_0x216def(0x19d)](_0x2bb661['data']))_0x3c2d1a=_0x2bb661[_0x216def(0x114)]['map'](_0xfc0410=>({..._0xfc0410,'datasetCode':_0xfc0410[_0x216def(0x278)]||_0xfc0410['datasetCode']}));else{if(_0x2bb661[_0x216def(0x114)]?.[_0x216def(0xbc)])_0x3c2d1a=_0x2bb661[_0x216def(0x114)]['tableData'][_0x216def(0x18a)](_0x18755a=>({..._0x18755a,'datasetCode':_0x18755a[_0x216def(0x278)]||_0x18755a[_0x216def(0x129)]}));else throw new Error('Invalid\x20API\x20response:\x20data\x20must\x20be\x20an\x20array\x20(get-dataset-list)\x20or\x20contain\x20tableData\x20(getList)');}}else{if(_0x216def(0xbc)in _0x2bb661){if(!Array[_0x216def(0x19d)](_0x2bb661[_0x216def(0xbc)]))throw new Error(_0x216def(0xee));_0x3c2d1a=_0x2bb661[_0x216def(0xbc)][_0x216def(0x18a)](_0x3ac2b0=>({..._0x3ac2b0,'datasetCode':_0x3ac2b0['code']||_0x3ac2b0['datasetCode']}));}else throw new Error('Invalid\x20input:\x20expected\x20DatasetItemData[],\x20GetListApiResponse,\x20GetDatasetListApiResponse,\x20or\x20GetListSimplifiedResponse');}}const _0x3ba6e9=_0x3c2d1a[_0x216def(0x18a)](_0x279c29=>new DatasetItem(_0x279c29));this['_datasetMap']=new DatasetGroupMap(_0x3ba6e9);}get[a0_0x556480(0xcf)](){return this['_datasetMap'];}[a0_0x556480(0xe4)](){const _0x580df1=a0_0x556480;return this[_0x580df1(0x120)][_0x580df1(0x16b)]();}[a0_0x556480(0x127)](){const _0xbb65f9=a0_0x556480;return this[_0xbb65f9(0xe4)]()[_0xbb65f9(0x24c)];}[a0_0x556480(0x1ae)](){const _0x3cbfa9=a0_0x556480;return this[_0x3cbfa9(0x120)][_0x3cbfa9(0x1df)]===0x0;}[a0_0x556480(0x255)](_0x484336){return this['getItems']()[_0x484336];}['getFirst'](){const _0xd75d25=a0_0x556480;return this[_0xd75d25(0xe4)]()[0x0];}['getLast'](){const _0x308ace=a0_0x556480,_0x2112dd=this[_0x308ace(0xe4)]();return _0x2112dd[_0x2112dd[_0x308ace(0x24c)]-0x1];}[a0_0x556480(0x1bf)](_0x27fc49){const _0x3ebda3=a0_0x556480;for(const _0x376eae of this[_0x3ebda3(0x120)][_0x3ebda3(0x21c)]()){const _0x5789dd=_0x376eae[_0x3ebda3(0x1bf)](_0x27fc49);if(_0x5789dd)return _0x5789dd;}return;}[a0_0x556480(0x1d0)](_0x554d27){const _0x242e7f=a0_0x556480;return this[_0x242e7f(0xe4)]()[_0x242e7f(0x1c6)](_0x54432d=>_0x54432d[_0x242e7f(0x1ab)]===_0x554d27);}[a0_0x556480(0x165)](_0x5264e8){const _0x455f62=a0_0x556480;for(const _0x2d2ad8 of this[_0x455f62(0x120)][_0x455f62(0x21c)]()){const _0x33a3f5=_0x2d2ad8[_0x455f62(0x165)](_0x5264e8);if(_0x33a3f5)return _0x33a3f5;}return;}[a0_0x556480(0x139)](_0x120966){const _0x40cddc=a0_0x556480,_0x114352=getTableKey(_0x120966);return this['_datasetMap'][_0x40cddc(0x15f)](_0x114352);}['filter'](_0x1fb80d){const _0xd0ef10=a0_0x556480,_0x21b98b=this[_0xd0ef10(0xe4)]()[_0xd0ef10(0x174)](_0x1fb80d);return new DatasetList(_0x21b98b['map'](_0x18b4b6=>_0x18b4b6[_0xd0ef10(0x21a)]()));}[a0_0x556480(0x1de)](_0x1deff3){const _0x3aa65c=a0_0x556480;return this[_0x3aa65c(0xe4)]()[_0x3aa65c(0x174)](_0x1deff3);}[a0_0x556480(0x263)](_0x557bca){const _0x267a29=a0_0x556480;this['getItems']()[_0x267a29(0x263)](_0x557bca);}[a0_0x556480(0x18a)](_0xd138f9){const _0x408dd1=a0_0x556480;return this['getItems']()[_0x408dd1(0x18a)](_0xd138f9);}[Symbol[a0_0x556480(0x222)]](){const _0x587bd5=a0_0x556480;return this['getItems']()[Symbol[_0x587bd5(0x222)]]();}[a0_0x556480(0xf3)](){const _0x404cc2=a0_0x556480;return this[_0x404cc2(0xe4)]()['filter'](_0x5ad908=>_0x5ad908[_0x404cc2(0x1b1)]());}[a0_0x556480(0x18b)](){const _0x2ec2fc=a0_0x556480;return this['getItems']()[_0x2ec2fc(0x174)](_0x485851=>!_0x485851[_0x2ec2fc(0x1b1)]());}[a0_0x556480(0x2b9)](){const _0x2567cc=a0_0x556480,_0x36acf2={};for(const _0x1fd149 of this[_0x2567cc(0x120)][_0x2567cc(0x21c)]()){const _0x35e7ee=_0x1fd149[_0x2567cc(0x15f)]()['getTableName']();_0x36acf2[_0x35e7ee]=_0x1fd149[_0x2567cc(0x107)]();}return _0x36acf2;}[a0_0x556480(0x1cd)](){const _0x52e2a7=a0_0x556480,_0x10fa23={};for(const _0x58a35a of this[_0x52e2a7(0x120)]['getConflicts']()['values']()){const _0x24bc21=_0x58a35a[_0x52e2a7(0x15f)]()[_0x52e2a7(0x205)]();_0x10fa23[_0x24bc21]=_0x58a35a['getAll']()[_0x52e2a7(0x18a)](_0x127238=>_0x127238[_0x52e2a7(0x21a)]());}return{'hasConflicts':Object[_0x52e2a7(0x254)](_0x10fa23)[_0x52e2a7(0x24c)]>0x0,'conflicts':_0x10fa23};}['hasConflicts'](){const _0x2b22f3=a0_0x556480;return this[_0x2b22f3(0x120)]['hasConflicts']();}[a0_0x556480(0x20a)](){const _0x451ed1=a0_0x556480,_0x344170=[];for(const _0x3b4279 of this[_0x451ed1(0x120)][_0x451ed1(0x1a7)]()[_0x451ed1(0x21c)]()){_0x344170[_0x451ed1(0x273)](..._0x3b4279['getAll']());}return _0x344170;}['generateConfig'](_0x165af2){const _0x2a9a7d=a0_0x556480;if(!_0x165af2||Object[_0x2a9a7d(0x254)](_0x165af2)['length']===0x0)return this['datasetMap']['toConfig']();const _0x200e60=this[_0x2a9a7d(0xe4)]()[_0x2a9a7d(0x18a)](_0x263d07=>_0x263d07[_0x2a9a7d(0x21a)]());return generateDatasetsConfig(_0x200e60,_0x165af2);}[a0_0x556480(0x123)](_0x4a90db){const _0x11ab20=a0_0x556480,_0x399b53=this[_0x11ab20(0x21d)](_0x4a90db);return datasetsConfigToArray(_0x399b53);}[a0_0x556480(0x293)](){const _0x1008e5=a0_0x556480;return this[_0x1008e5(0xe4)]()['map'](_0x3650b4=>_0x3650b4[_0x1008e5(0x1f0)]());}['getStats'](){const _0x2806cc=a0_0x556480;return{'total':this[_0x2806cc(0x127)](),'virtualTables':this[_0x2806cc(0xf3)]()[_0x2806cc(0x24c)],'realTables':this[_0x2806cc(0x18b)]()[_0x2806cc(0x24c)],'hasConflicts':this[_0x2806cc(0x109)](),'conflictCount':this[_0x2806cc(0x20a)]()['length']};}[a0_0x556480(0x285)](){const _0x519e9f=a0_0x556480;return this[_0x519e9f(0xe4)]()[_0x519e9f(0x18a)](_0x4e8dd4=>_0x4e8dd4[_0x519e9f(0x21a)]());}['toJSON'](){const _0xf86c1e=a0_0x556480;return this[_0xf86c1e(0x285)]();}['toString'](){const _0x3202b3=a0_0x556480;return _0x3202b3(0x1c2)+this[_0x3202b3(0x127)]()+_0x3202b3(0x203)+this[_0x3202b3(0x120)][_0x3202b3(0x1df)]+'\x20groups)';}static[a0_0x556480(0x250)](_0x20615f){return new DatasetList(_0x20615f);}static[a0_0x556480(0x2ba)](_0x103da4){return new DatasetList(_0x103da4);}static[a0_0x556480(0x27d)](){return new DatasetList([]);}}function operationToAnalysis(_0x32af12){const _0x4218b0=a0_0x556480;return{'name':_0x32af12[_0x4218b0(0x29e)](),'displayName':_0x32af12[_0x4218b0(0x1e5)](),'type':_0x32af12[_0x4218b0(0x2a9)](),'method':_0x32af12[_0x4218b0(0xd3)](),'path':_0x32af12[_0x4218b0(0xcd)](),'fullUrl':_0x32af12[_0x4218b0(0x1af)](),'requestFields':_0x32af12['getRequestFields'](),'requestParams':_0x32af12['getRequestParams'](),'responseSchema':_0x32af12[_0x4218b0(0xf9)](),'requestExample':_0x32af12['generateRequestExample'](),'responseExample':_0x32af12[_0x4218b0(0x289)](),'enabled':_0x32af12[_0x4218b0(0x23d)]()};}function operationsToAnalyses(_0x414265){const _0x1ebd4a=a0_0x556480;return _0x414265[_0x1ebd4a(0x18a)](operationToAnalysis);}class DrivenDataDetailPlus extends DrivenDataDetail{[a0_0x556480(0x276)];[a0_0x556480(0x1ef)](){const _0xc18128=a0_0x556480;return this[_0xc18128(0x15a)]();}[a0_0x556480(0x279)](_0x3e1b16=![]){const _0xa90f21=a0_0x556480;if(!_0x3e1b16&&this[_0xa90f21(0x276)])return this[_0xa90f21(0x276)];const _0x52c28d=this['getOperations']();return this[_0xa90f21(0x276)]=operationsToAnalyses(_0x52c28d),this[_0xa90f21(0x276)];}[a0_0x556480(0x268)](){return this['getFilteredOperationAnalyses']({'includeDisabled':![],'filterBlacklist':!![]});}['getFilteredOperationAnalyses'](_0xa1ab7f={}){const _0x247937=a0_0x556480;let _0xd9d378=this[_0x247937(0x279)]();return!_0xa1ab7f[_0x247937(0x11a)]&&(_0xd9d378=_0xd9d378[_0x247937(0x174)](_0x505eeb=>_0x505eeb[_0x247937(0x190)])),_0xa1ab7f['filterBlacklist']!==![]&&(_0xd9d378=filterApiOperations(_0xd9d378)),_0xa1ab7f[_0x247937(0x284)]&&(_0xd9d378=_0xd9d378[_0x247937(0x174)](_0xa1ab7f['customFilter'])),_0xd9d378=this[_0x247937(0x1db)](_0xd9d378),_0xd9d378;}[a0_0x556480(0x1db)](_0x4fa87a){const _0x8cc12f=a0_0x556480,_0x4fa726=_0x4fa87a[_0x8cc12f(0x1c6)](_0x1237de=>_0x1237de[_0x8cc12f(0x1ab)]===_0x8cc12f(0x174)),_0x1bbb32=_0x4fa87a[_0x8cc12f(0x174)](_0x25ebf8=>_0x25ebf8['name']!=='filter');return _0x4fa726?[_0x4fa726,..._0x1bbb32]:_0x1bbb32;}[a0_0x556480(0x102)](_0x1539ca){const _0x476932=a0_0x556480,_0x52040c=this['getOperationAnalyses']();return _0x52040c['find'](_0x17862a=>_0x17862a[_0x476932(0x1ab)]===_0x1539ca);}[a0_0x556480(0x1eb)](_0x5f2da8){const _0xf73a9e=a0_0x556480,_0x2007ea=this[_0xf73a9e(0x279)]();return _0x2007ea[_0xf73a9e(0x174)](_0x559b97=>_0x559b97['type']===_0x5f2da8);}[a0_0x556480(0xff)](_0x11aadf){const _0x2bf708=a0_0x556480,_0x3c3fb7=this[_0x2bf708(0x209)](_0x11aadf);if(!_0x3c3fb7)return[];const _0x4a1a14=_0x3c3fb7[_0x2bf708(0xc5)](),_0x3e6ad4=this[_0x2bf708(0x1d2)]();return _0x3e6ad4[_0x2bf708(0x174)](_0x423924=>_0x4a1a14[_0x2bf708(0x10f)](_0x423924[_0x2bf708(0x278)]));}[a0_0x556480(0x138)](_0x560602,_0x3f1799){const _0x1a03fd=a0_0x556480,_0x379920=this[_0x1a03fd(0x102)](_0x560602);if(!_0x379920)return null;const _0x364d6b=this[_0x1a03fd(0x209)](_0x379920[_0x1a03fd(0x1ab)]);if(!_0x364d6b)throw new Error(_0x1a03fd(0xd6)+_0x379920[_0x1a03fd(0x1ab)]);const _0x2905f3=this[_0x1a03fd(0x163)](),_0x161090=this[_0x1a03fd(0x205)](),_0x64c36d=_0x364d6b[_0x1a03fd(0x1ce)](_0x2905f3,{'useFullExample':_0x3f1799?.['useFullExample']}),_0x4c803f=_0x364d6b[_0x1a03fd(0x241)](_0x2905f3);return{'operation':_0x379920,'operationInstance':_0x364d6b,'basicInfo':{'name':_0x379920[_0x1a03fd(0x1ab)],'displayName':_0x379920[_0x1a03fd(0x13c)],'method':_0x379920[_0x1a03fd(0x1cb)],'path':_0x379920['path'],'fullUrl':_0x379920[_0x1a03fd(0x20e)],'enabled':_0x379920[_0x1a03fd(0x190)]},'sdkCall':{'datasetCode':this['datasetCode'],'datasetSDKKey':_0x2905f3,'tableName':_0x161090,'operationName':_0x379920[_0x1a03fd(0x1ab)],'params':_0x379920['requestFields'],'code':_0x64c36d},'usageExample':_0x4c803f};}[a0_0x556480(0x11e)](_0x3bdc17={}){const _0x24003f=a0_0x556480,_0x319546=this[_0x24003f(0x145)](_0x3bdc17),_0x3f6d4d=this[_0x24003f(0x200)](),_0x8cae50=_0x319546[_0x24003f(0x18a)](_0x274b4e=>this['getOperationDocMeta'](_0x274b4e[_0x24003f(0x1ab)]))['filter'](_0x2b6fc6=>_0x2b6fc6!==null),_0xf3f5f=this[_0x24003f(0x163)](),_0x18221f={'name':this['name'],'code':this[_0x24003f(0x129)],'tableName':this[_0x24003f(0x205)](),'datasetSDKKey':_0xf3f5f,'tableKey':this[_0x24003f(0x15a)](),'source':this[_0x24003f(0x19a)],'fieldCount':_0x3f6d4d[_0x24003f(0x2a0)],'businessFieldCount':_0x3f6d4d[_0x24003f(0xc3)],'systemFieldCount':_0x3f6d4d[_0x24003f(0x212)],'operationCount':_0x3f6d4d['operationCount'],'enabledOperationCount':_0x8cae50['length']};return{'title':this[_0x24003f(0x1ab)]+_0x24003f(0x11b),'datasetInfo':_0x18221f,'operations':_0x8cae50};}[a0_0x556480(0x2a5)](_0x5cd5d0){const _0x45a6ba=a0_0x556480,_0x2a71c2=[{'index':_0x45a6ba(0x1ab),'label':'接口名称'},{'index':_0x45a6ba(0x13c),'label':_0x45a6ba(0x219)},{'index':_0x45a6ba(0x1cb),'label':'方法'},{'index':_0x45a6ba(0x137),'label':_0x45a6ba(0x25b)},{'index':_0x45a6ba(0x13d),'label':_0x45a6ba(0x1d9)},{'index':_0x45a6ba(0xda),'label':_0x45a6ba(0x24f)}],_0x41e2d0=_0x5cd5d0[_0x45a6ba(0x18a)](_0x2f00e7=>{const _0x10a252=_0x45a6ba,{basicInfo:_0x555d55,sdkCall:_0x2fdb8e}=_0x2f00e7,_0x35c669=_0x2fdb8e[_0x10a252(0x278)][_0x10a252(0x2c6)](/^const\s+\w+\s*=\s*await\s+/,'')[_0x10a252(0x2c6)](/;$/,'');return{'displayName':_0x555d55['displayName'],'name':_0x555d55[_0x10a252(0x1ab)],'method':_0x555d55[_0x10a252(0x1cb)],'path':_0x555d55[_0x10a252(0x13d)],'sdkCall':_0x35c669,'sdkCallCode':_0x2fdb8e[_0x10a252(0x278)]};});return{'tableColumns':_0x2a71c2,'tableData':_0x41e2d0};}[a0_0x556480(0x207)](_0xdc9586){const _0x2e9395=a0_0x556480,_0x20a137=this['getOperationAnalysis'](_0xdc9586);if(!_0x20a137)return null;return{'name':_0x20a137[_0x2e9395(0x1ab)],'displayName':_0x20a137['displayName'],'type':_0x20a137[_0x2e9395(0x25d)],'method':_0x20a137[_0x2e9395(0x1cb)],'path':_0x20a137[_0x2e9395(0x13d)],'enabled':_0x20a137[_0x2e9395(0x190)],'requestFieldCount':_0x20a137[_0x2e9395(0x10c)]['length'],'hasResponseSchema':_0x20a137['responseSchema']!==null};}[a0_0x556480(0x106)](_0x3af8a3={}){const _0x5e5651=a0_0x556480,_0x3401a0=this[_0x5e5651(0x145)](_0x3af8a3);return{'datasetName':this['name'],'datasetCode':this['datasetCode'],'tableName':this[_0x5e5651(0x205)](),'totalOperations':_0x3401a0[_0x5e5651(0x24c)],'operations':_0x3401a0[_0x5e5651(0x18a)](_0x591696=>({'name':_0x591696['name'],'displayName':_0x591696[_0x5e5651(0x13c)],'type':_0x591696['type'],'method':_0x591696[_0x5e5651(0x1cb)],'path':_0x591696['path'],'requestFieldCount':_0x591696[_0x5e5651(0x10c)][_0x5e5651(0x24c)]}))};}[a0_0x556480(0x166)](_0x3b163e){const _0x5d4534=a0_0x556480,_0x4c9c1d={};return Object[_0x5d4534(0x16a)](_0x3b163e)[_0x5d4534(0x263)](([_0x15a860,_0x4a0596])=>{const _0x21cb0f=_0x5d4534;Array[_0x21cb0f(0x19d)](_0x4a0596)&&_0x4a0596[_0x21cb0f(0x24c)]>0x0?_0x4c9c1d[_0x15a860]=_0x4a0596[0x0]:_0x4c9c1d[_0x15a860]=_0x4a0596;}),_0x4c9c1d;}[a0_0x556480(0x16e)](){const _0x3e4c52=a0_0x556480,_0x36a48d=this['getOperationAnalyses'](),_0x5c899f=_0x36a48d['filter'](_0x595d4c=>_0x595d4c[_0x3e4c52(0x190)]);return{'total':_0x36a48d[_0x3e4c52(0x24c)],'enabled':_0x5c899f['length'],'disabled':_0x36a48d[_0x3e4c52(0x24c)]-_0x5c899f['length'],'byType':this['getOperationCountByType'](_0x5c899f),'byMethod':this['getOperationCountByMethod'](_0x5c899f)};}[a0_0x556480(0x281)](_0x2e0e78){const _0x5aa1a5=a0_0x556480,_0x3d1b30={};return _0x2e0e78[_0x5aa1a5(0x263)](_0x26c3b1=>{const _0x1771f5=_0x5aa1a5;_0x26c3b1[_0x1771f5(0x25d)]&&(_0x3d1b30[_0x26c3b1['type']]=(_0x3d1b30[_0x26c3b1[_0x1771f5(0x25d)]]||0x0)+0x1);}),_0x3d1b30;}[a0_0x556480(0x26d)](_0x20f395){const _0xa30d29={};return _0x20f395['forEach'](_0x1c77cd=>{const _0x493dc3=a0_0x573f;_0xa30d29[_0x1c77cd[_0x493dc3(0x1cb)]]=(_0xa30d29[_0x1c77cd[_0x493dc3(0x1cb)]]||0x0)+0x1;}),_0xa30d29;}[a0_0x556480(0x13e)](){const _0x199b9b=a0_0x556480,_0x1e9c5f=this[_0x199b9b(0x268)](),_0x4ba088=new Set(_0x1e9c5f[_0x199b9b(0x18a)](_0x6b6490=>_0x6b6490[_0x199b9b(0x25d)])[_0x199b9b(0x174)](Boolean));return _0x4ba088[_0x199b9b(0x148)](_0x199b9b(0x1e8))&&_0x4ba088[_0x199b9b(0x148)](_0x199b9b(0x23c))&&_0x4ba088[_0x199b9b(0x148)](_0x199b9b(0x1b6))&&_0x4ba088[_0x199b9b(0x148)]('delete');}[a0_0x556480(0x2c4)](){const _0x46d954=a0_0x556480,_0x2da3fc=this[_0x46d954(0x268)](),_0x2c2a0e=new Set(_0x2da3fc['map'](_0xad01df=>_0xad01df[_0x46d954(0x25d)])['filter'](Boolean)),_0x2b96cc=['create','getList',_0x46d954(0x1b6),_0x46d954(0x1a8)];return _0x2b96cc[_0x46d954(0x174)](_0x2f2255=>!_0x2c2a0e[_0x46d954(0x148)](_0x2f2255));}[a0_0x556480(0x16d)](_0x59e82b,_0x1703ad,_0x2d0144){const _0x53ed7f=a0_0x556480,{includeRequestExample:includeRequestExample=!![],includeResponseExample:includeResponseExample=![],includeUsageExample:includeUsageExample=!![]}=_0x2d0144||{},_0x4980d0=this[_0x53ed7f(0x138)](_0x59e82b,{'useFullExample':includeRequestExample});if(!_0x4980d0)return null;let _0xa54136='';_0xa54136+=_0x53ed7f(0x264)+_0x4980d0[_0x53ed7f(0x196)]['displayName']+'\x0a//\x20Call\x20the\x20'+_0x4980d0[_0x53ed7f(0x196)]['name']+_0x53ed7f(0x24e)+_0x4980d0[_0x53ed7f(0x137)][_0x53ed7f(0x278)];if(includeResponseExample&&_0x4980d0[_0x53ed7f(0x196)][_0x53ed7f(0x1b0)]?.[_0x53ed7f(0x114)]){const _0x3052a6=typeof _0x4980d0['operation'][_0x53ed7f(0x1b0)][_0x53ed7f(0x114)]===_0x53ed7f(0x286)?_0x4980d0['operation'][_0x53ed7f(0x1b0)]['data']:JSON[_0x53ed7f(0x215)](_0x4980d0[_0x53ed7f(0x196)]['responseExample'][_0x53ed7f(0x114)],null,0x2);_0xa54136+=_0x53ed7f(0x264)+_0x4980d0['operation'][_0x53ed7f(0x1ab)]+_0x53ed7f(0x225)+_0x3052a6;}return includeUsageExample&&_0x4980d0[_0x53ed7f(0x1f2)]&&(_0xa54136+='\x0a\x0a//\x20Usage\x20examples:\x0a\x0a'+_0x4980d0[_0x53ed7f(0x1f2)][_0x53ed7f(0x2c2)]+'\x0a\x0a'+_0x4980d0[_0x53ed7f(0x1f2)][_0x53ed7f(0x25e)]),_0xa54136;}[a0_0x556480(0xfd)](_0x1e3096){const _0x479779=a0_0x556480,{includeRequestExample:includeRequestExample=!![],includeUsageExample:includeUsageExample=![]}=_0x1e3096||{},_0x4c3f6b=this[_0x479779(0x268)]();return _0x4c3f6b['map'](_0x102b3e=>this[_0x479779(0x16d)](_0x102b3e[_0x479779(0x1ab)],this[_0x479779(0x129)],{'includeRequestExample':includeRequestExample,'includeUsageExample':includeUsageExample}))[_0x479779(0x147)]('\x0a');}[a0_0x556480(0x1e7)](_0x41668d){const _0x2ec68f=a0_0x556480,_0x189e1e=this[_0x2ec68f(0x163)]();return{'appCode':_0x41668d,'datasetSDKKey':_0x189e1e,'tableKey':this[_0x2ec68f(0x15a)](),'alias':this['getModelAlias'](),'tableName':this[_0x2ec68f(0x205)](),'datasetCode':this[_0x2ec68f(0x129)]};}[a0_0x556480(0x194)](_0x1c0a5f,_0x3d4f22=a0_0x556480(0x221),_0x23a004=![]){const _0x227f14=a0_0x556480,{alias:_0x59faae,tableName:_0x4dbacb,datasetCode:_0x2a0a95}=this[_0x227f14(0x1e7)](_0x1c0a5f),_0x439345=_0x3d4f22==='daily'?_0x227f14(0x12e)+_0x3d4f22+'\x27,':'',_0x5adc69=_0x23a004?_0x227f14(0x280):'';return _0x227f14(0x25f)+_0x1c0a5f+'\x27,'+_0x5adc69+_0x439345+_0x227f14(0x169)+_0x4dbacb+_0x227f14(0xce)+_0x2a0a95+_0x227f14(0x22a)+_0x59faae+_0x227f14(0x2d7)+_0x59faae+'\x20访问\x0a\x20\x20\x20\x20}\x0a\x20\x20]\x0a});';}['generateAliasExplanation'](){const _0x5c63bf=a0_0x556480,_0x3228a3=this[_0x5c63bf(0x163)](),_0x4bf98f=this[_0x5c63bf(0x1ef)]();return _0x5c63bf(0x113)+_0x3228a3+_0x5c63bf(0x1f1)+_0x4bf98f+_0x5c63bf(0x1a0);}['toString'](){const _0x2d4b75=a0_0x556480,_0x25914c=this[_0x2d4b75(0x16e)]();return'DrivenDataDetailPlus('+this[_0x2d4b75(0x1ab)]+',\x20'+this[_0x2d4b75(0x129)]+',\x20'+this['getFieldCount']()+_0x2d4b75(0x1d3)+_0x25914c[_0x2d4b75(0x190)]+'/'+_0x25914c[_0x2d4b75(0x2aa)]+_0x2d4b75(0x111);}}var VERSION='1.0.0-beta.8';export{toSnakeCase,toPascalCase,toKebabCase,toCamelCase,smartAdapt,shouldIncludeField,parseResponseBody,parseRequestBody,parseOperationType,parseFieldExtend,normalizeFieldName,isVirtualTableName,isSystemField,isRequiredField,isPrimaryKeyField,isModifyTimeField,isDrivenDataDetail,isCreateTimeField,isAutoIncrementField,isApiBlacklisted,groupByTableName,getTableName,getFieldsForOperation,getDbTypeDisplay,generateTableNameFromCode,generateRequestExample,generateExampleValue,generateExampleFromSchema,generateDatasetsConfig,formatOptionsForDoc,formatOptionsAsMarkdownList,formatEnumValue,formatDbType,filterApiOperations,extractDatasetsFromListResponse,extractDatasetFromResponse,detectTableNameConflicts,createDatasetNameMap,adaptDrivenDataDetails,adaptDrivenDataDetail,VERSION,OperationList,OperationFactory,Operation,OPERATION_TYPE_DISPLAY_NAME,GetSelectOptionsOperation,GetListOperation,GenericOperation,FilterOperation,FieldList,Field,FILTER_OPERATORS,DrivenDataDetailPlus,DrivenDataDetail,DatasetOperationType,DatasetList,DatasetItem,DatasetGroupMap,DatasetGroup,DB_TYPE_DISPLAY_MAP,API_BLACKLIST};
|
|
1
|
+
const a0_0x53bff1=a0_0x1dcc;(function(_0x217a42,_0x5d930d){const _0x3aec49=a0_0x1dcc,_0x2a87cd=_0x217a42();while(!![]){try{const _0x32d65d=parseInt(_0x3aec49(0x1d0))/0x1+-parseInt(_0x3aec49(0x28d))/0x2*(-parseInt(_0x3aec49(0x306))/0x3)+parseInt(_0x3aec49(0x1ff))/0x4+-parseInt(_0x3aec49(0x308))/0x5*(parseInt(_0x3aec49(0x1e2))/0x6)+parseInt(_0x3aec49(0x1f5))/0x7*(-parseInt(_0x3aec49(0x245))/0x8)+-parseInt(_0x3aec49(0x290))/0x9*(-parseInt(_0x3aec49(0x208))/0xa)+parseInt(_0x3aec49(0x136))/0xb;if(_0x32d65d===_0x5d930d)break;else _0x2a87cd['push'](_0x2a87cd['shift']());}catch(_0x21a989){_0x2a87cd['push'](_0x2a87cd['shift']());}}}(a0_0x57ac,0x99a42));function toCamelCase(_0x55cbc5){const _0x64d9c9=a0_0x1dcc;if(!_0x55cbc5)return'';return _0x55cbc5[_0x64d9c9(0xf8)](/[_-]/)[_0x64d9c9(0x1e1)]((_0x27d279,_0x32990f)=>{const _0x398e7c=_0x64d9c9;if(_0x32990f===0x0)return _0x27d279[_0x398e7c(0x184)]();return _0x27d279[_0x398e7c(0x117)](0x0)['toUpperCase']()+_0x27d279[_0x398e7c(0x27a)](0x1)['toLowerCase']();})[_0x64d9c9(0x2e8)]('');}function toPascalCase(_0xdc959e){const _0xb34566=a0_0x1dcc;if(!_0xdc959e)return'';const _0x5db2de=toCamelCase(_0xdc959e);return _0x5db2de[_0xb34566(0x117)](0x0)[_0xb34566(0x311)]()+_0x5db2de['slice'](0x1);}function toSnakeCase(_0x1d210b){const _0x6c266c=a0_0x1dcc;if(!_0x1d210b)return'';return _0x1d210b[_0x6c266c(0x254)](/([A-Z])/g,_0x6c266c(0x263))[_0x6c266c(0x184)]()[_0x6c266c(0x254)](/^_/,'');}function a0_0x57ac(){const _0x116618=['getOneOrigin','创建导入','toLowerCase','getFieldListWithDeleted','getFilterOperators','POST','UPDATE','tenantCode','hasModifierIdField','//\x20成功时\x20-\x20直接获取文件\x20URL(字符串)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','查询单条(原始)','getRequestParamsDocInfo','getRequired','N/A','CHECKBOX','\x27\x20\x20//\x20人类友好的别名,可通过\x20client.models.','parseFieldExtend','displayName','NUMBER','dbVersion','\x0a\x0a//\x20Usage\x20examples:\x0a\x0a','getOneUpdate','getFilterOperation','useFullExample','getEnabledOperationAnalyses','generateUsageExample','operation','operationCount','1.0.0-beta.8',',\x20...\x20});','$eq','$contain','getConflictingItems','getFieldFilterOperators','importTemplate','now','getDatasetSDKKey','_min','getEnabledNames','字段编码','stringify','getFirst','https://example.com/file.pdf','array','find','-\x20**第二个参数\x20`data`**:要更新的字段数据对象,只需包含需要修改的字段','fields','(id,\x20data);','forEach','selectItemsSource','$gte','\x20fields,\x20','update\x20接口接受两个参数:\x0a\x0a','null','TIMESTAMP','getOperationFieldOperators','isEnabled','DATE','toFullConfig','String[]','//\x20简单聚合查询\x0aconst\x20result1\x20=\x20await\x20client.models.','items','2024-12-31','单值查询','getModelAlias','update\x20接口接受两个参数:\x0a','dataset_','requestFields','TASK_INFO','dbType','datasetCode','iterator','//\x20导出所有数据\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','GET_UPLOAD_FILE_SCRIPT','getAt','hasCreateTimeField','filter','API路径','96980cgixFP','Invalid\x20simplified\x20API\x20response:\x20tableData\x20must\x20be\x20an\x20array','toJSON','VARCHAR','isCreateTime','\x0a\x20\x20accessKey:\x20process.env.LOVRABET_ACCESS_KEY,','getTenantCode','logicField','getStats','Object[]','每页数量','Invalid\x20API\x20response:\x20data\x20must\x20be\x20an\x20array\x20(get-dataset-list)\x20or\x20contain\x20tableData\x20(getList)','hasOperation','code','includeDeleted','generateFromSchema','delete','map','3648ZoVwLD','success','getDisplayName','ensureFilterOperation','排序规则','generateExampleValue','请求示例','[Operation.parseRawRequestBody]\x20requestBody\x20is\x20not\x20a\x20string:','任务信息','\x0a**查询参数**\x0a\x0a```ts\x0ainterface\x20FilterParams\x20{\x0a\x20\x20where?:\x20WhereCondition;\x20//\x20查询条件(不传则查询所有)\x0a\x20\x20select?:\x20string[];\x20//\x20选择返回的字段(仅在有明确返回字段需求时设置)\x0a\x20\x20orderBy?:\x20Record<string,\x20\x22asc\x22\x20|\x20\x22desc\x22>[];\x20//\x20排序规则(仅在有排序要求时设置)\x0a\x20\x20currentPage?:\x20number;\x20//\x20当前页码(从\x201\x20开始,默认:\x201)\x0a\x20\x20pageSize?:\x20number;\x20//\x20每页数量(默认:\x2020)\x0a}\x0a```\x0a\x0a**WhereCondition\x20查询条件使用规范**\x0a\x0a`where`\x20中允许使用以下操作符(都以小写\x20`$`\x20开头,大小写敏感):\x0a\x0a|\x20操作符\x20|\x20说明\x20|\x20示例\x20|\x0a|\x20------\x20|\x20------\x20|\x20------\x20|\x0a|\x20`$eq`\x20|\x20等于\x20|\x20`{\x20age:\x20{\x20$eq:\x2018\x20}\x20}`\x20|\x0a|\x20`$ne`\x20|\x20不等于\x20|\x20`{\x20status:\x20{\x20$ne:\x20\x22deleted\x22\x20}\x20}`\x20|\x0a|\x20`$gte`/`$gteq`\x20|\x20大于等于\x20|\x20`{\x20age:\x20{\x20$gte:\x2018\x20}\x20}`\x20|\x0a|\x20`$lte`/`$lteq`\x20|\x20小于等于\x20|\x20`{\x20age:\x20{\x20$lte:\x2065\x20}\x20}`\x20|\x0a|\x20`$in`\x20|\x20在集合内\x20|\x20`{\x20country:\x20{\x20$in:\x20[\x22中国\x22,\x20\x22美国\x22]\x20}\x20}`\x20|\x0a|\x20`$nin`\x20|\x20不在集合内\x20|\x20`{\x20country:\x20{\x20$nin:\x20[\x22北京\x22,\x20\x22上海\x22]\x20}\x20}`\x20|\x0a|\x20`$contain`\x20|\x20包含(模糊匹配)\x20|\x20`{\x20name:\x20{\x20$contain:\x20\x22hello\x22\x20}\x20}`\x20|\x0a|\x20`$startWith`\x20|\x20以...开头\x20|\x20`{\x20email:\x20{\x20$startWith:\x20\x22admin\x22\x20}\x20}`\x20|\x0a|\x20`$endWith`\x20|\x20以...结尾\x20|\x20`{\x20filename:\x20{\x20$endWith:\x20\x22.pdf\x22\x20}\x20}`\x20|\x0a\x0a逻辑连接符:\x0a\x0a|\x20连接符\x20|\x20说明\x20|\x20示例\x20|\x0a|\x20------\x20|\x20------\x20|\x20------\x20|\x0a|\x20`$and`\x20|\x20且(所有条件都满足)\x20|\x20`{\x20$and:\x20[{\x20age:\x20{\x20$gte:\x2018\x20}\x20},\x20{\x20\x22country\x22:\x20{\x20\x22$eq\x22:\x20\x22中国\x22\x20}\x20}]\x20}`\x20|\x0a|\x20`$or`\x20|\x20或(任一条件满足)\x20|\x20`{\x20$or:\x20[{\x20name:\x20{\x20$contain:\x20\x22张三\x22\x20}\x20},\x20{\x20\x22email\x22:\x20{\x20\x22$startWith\x22:\x20\x22zhangsan\x22\x20}\x20}]\x20}`\x20|\x0a\x0a必要时可以嵌套使用:`$and`\x20内包含\x20`$or`,或\x20`$or`\x20内包含\x20`$and`。\x0a严禁使用文档范围之外的其他操作符。\x0a\x0a**可用查询字段**\x0a','isSystemField','responseSchema','getConflicts','modifyDate','$endWith','getRequestParams','supportsCRUD','getName','allFields','3202409WMocDW','getOperators','$and','更新请求示例','[parseFieldExtend]\x20Invalid\x20field:','tableName','Excel导出','getExtendField','tooltip','desc','2769888JXHMpx','multiple','getType','({\x20code,\x20label\x20});','status','DESC','获取下拉选项','getOperationCountByMethod','isEmpty','90wHCSxi','[Operation.getFieldDefinition]\x20fieldCode\x20is\x20not\x20a\x20string:','dbName','raw','dataset_000000','({\x20','isEnum','getEnumFields','every','generateRequestExample','systemFieldCount','getFieldCount','modifierIdField','String','generateAllOperationsFullSDKExample','[Field.extend]\x20解析字段\x20','getUpdatableFields','isMultipleSelect','sortOperationsWithFilterFirst','北京市朝阳区','hasLogicField','getDefaultValue','generateAllOperationsSummary','主键ID(必填)','includes','generateOperationSummary','\x0a//\x20Call\x20the\x20','context','getPrimaryKeys','DELETE','当前页码','sortNum','INTEGER','pageSize','value2','查询单个条件','getMethod','Invalid\x20API\x20response:\x20success\x20is\x20false','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20data\x20=\x20await\x20client.models.','GET_SELECT_OPTIONS','getOperationOperators','getOperationAnalyses','13800138000','createExport','updateTimeField','getLast','creatorIdField','字段名称','getSystem','online','path','primaryKey','required','getDatasetDocMeta','getFileUrl','getFiltered','get','createImport','getSource','repeat','hasConflict','8OAicvh','\x20的\x20extend\x20配置失败:','options','hasField','enabled','EXCEL_EXPORT','isBusiness','getFieldsByType','_fieldList','isPrimaryKey','systemAnalysisResult','from','\x20items,\x20','$lteq','getEnumMeta','replace','isEnumField','getDisabledNames','isUpdateTime','getApplicableOperators','\x20items,\x20conflict,\x20latest:\x20','getAll','数组查询(支持多选)','getPath',',\x20currentPage,\x20pageSize,\x20...\x20});','\x0a-\x20aggregate\x20API\x20在\x20filter\x20API\x20基础上增加了聚合功能,\x20filter\x20API\x20已有的入参(where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize)均支持\x0a-\x20入参\x20`aggregates`\x20的聚合函数\x20alias\x20会直接作为返回结果的字段名,\x20无需在\x20`select`\x20中指定\x0a-\x20当设置了\x20`groupBy`\x20时,\x20select\x20中的列必须满足**分组列或聚合列**的规则\x0a\x0a**查询参数**\x0a\x0a```ts\x0ainterface\x20AggregateParams\x20{\x0a\x20\x20aggregate?:\x20AggregateConfig[];\x20//\x20聚合字段列表(可选,不设置则不分组)\x0a\x20\x20groupBy?:\x20string[];\x20//\x20分组字段列表(可选,不设置则不分组)\x0a\x20\x20having?:\x20{\x20columnName:\x20string,\x20condition:\x20WhereCondition\x20}[];\x20//\x20分组过滤条件(可选,不设置则不分组)\x0a\x20\x20where?:\x20WhereCondition;\x20//\x20查询条件,\x20与\x20Filter\x20API\x20相同(不传则查询所有)\x0a\x20\x20select?:\x20string[];\x20//\x20选择返回的字段,\x20与\x20Filter\x20API\x20相同(仅在有明确返回字段需求时设置)\x0a\x20\x20orderBy?:\x20Record<string,\x20\x22asc\x22\x20|\x20\x22desc\x22>[];\x20//\x20排序规则,\x20与\x20Filter\x20API\x20相同(仅在有排序要求时设置)\x0a\x20\x20currentPage?:\x20number;\x20//\x20当前页码(从\x201\x20开始,默认:\x201)\x0a\x20\x20pageSize?:\x20number;\x20//\x20每页数量(默认:\x2020)\x0a}\x0a\x0ainterface\x20AggregateConfig\x20{\x0a\x20\x20type:\x20\x22sum\x22\x20|\x20\x22count\x22\x20|\x20\x22avg\x22\x20|\x20\x22max\x22\x20|\x20\x22min\x22;\x20//\x20聚合函数类型\x0a\x20\x20field:\x20string;\x20//\x20聚合字段\x0a\x20\x20alias:\x20string;\x20//\x20聚合结果别名\x0a\x20\x20distinct?:\x20boolean;\x20//\x20是否去重(可选,默认:\x20false)\x0a\x20\x20round?:\x20boolean;\x20//\x20是否四舍五入(可选,默认:\x20false)\x0a\x20\x20precision?:\x20number;\x20//\x20round精度(可选,默认:\x202)\x0a}\x0a```\x0a\x0a**WhereCondition\x20查询条件使用规范**\x0a\x0a-\x20与\x20Filter\x20API\x20完全相同,支持所有操作符和连接符,支持嵌套条件\x0a\x0a**可用聚合字段**\x0a','getAllFieldsString','sdkCall','findById','支持单值或数组','_$1','getOne','//\x20单值查询\x0aconst\x20result\x20=\x20await\x20client.models.','/filter','sum','suffix','email','getModelName','errorMsg','日期时间','toObject','[FieldList]\x20Field\x20definitions\x20must\x20be\x20an\x20array','isRequired','getAllFieldsArray','detectConflicts','[getFieldsForOperation]\x20fields\x20is\x20not\x20an\x20array:','https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/example_file_XXXXXXX.xlsx?Expires=1765374987&OSSAccessKeyId=LTAI5tGCr8Eb3UVbdf5ap9Z1&Signature=k115junCUe7Ot5BTSov0Usul3oc%3D','getAllDatasets','getVirtualTables','(params);','(id);','value1','usageExample','slice','createTimeField','datasetMap','DatasetGroupMap(','STRING','hasUpdateTimeField','getFullUrl','https://example.com/image.jpg','isVirtualTable','getOperationAnalysis','createDate','getOperationCountByType',',\x20fields:\x20','getOperation','TEXT','parseRawRequestBody','keys','add','//\x20成功时\x20-\x20直接获取\x20data\x20字段内容\x0aconst\x20data\x20=\x20await\x20client.models.','96706FuwpVb','操作名称','**参数\x201:\x20`id`**\x20(NUMBER,\x20必填)\x0a','40995CnFasJ','getSelectOptions','getMissingCRUDOperations','getBusiness','SDK\x20调用','getEnabled','获取文件URL','excelExport','[DrivenDataDetail.getFieldInstance]\x20code\x20is\x20not\x20a\x20string:','total_count','();\x0a\x0a//\x20按条件导出(支持与\x20filter\x20相同的参数)\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','BIGINT','\x20API\x20文档','getFieldSelectItemsSource','_operationAnalyses','[generateExampleValue]\x20fieldCode\x20is\x20not\x20a\x20string:','getLatest','generateSDKInitCode','sdkCallCode','orderBy','getSelectItemsSource','getFieldInstance','value','toArray','test','version','generateSingleValueExample','type','getOperationList','getUploadFileScript','下拉选择','getLatestDatasets','sort','getRawDbtableConfig','size','createTime','responseBody','parse','isPrimaryKeyField','systemRetain','pkField','每页数量(可选)','groupByTableName','BOOLEAN','source','isRequiredField','\x0a\x20\x20models:\x20[\x0a\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20tableName:\x20\x27','getCountByType','示例值','query','\x20groups,\x20','generateFieldExample','_fields','CREATE','appCode','getOperationStats','\x0a\x0a//\x20分组聚合查询\x0aconst\x20result2\x20=\x20await\x20client.models.','解析\x20requestBody\x20失败:','GET_ONE','has\x20conflicts','creatorNameField','businessFieldCount','\x22,数据集:\x20','getOldest','();\x0a\x20\x20window.open(fileUrl,\x20\x27_blank\x27);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x0a}','defaultValue','lastIndexOf','entries','dblinkInfoDTO','where','isNumericField','const\x20result\x20=\x20await\x20client.models.','modelCode','getConflictStats','getOperationsOverviewData','[dsparser]\x20跳过重复的表名\x20\x22','msg','查询列表','$or','findAll','string','toListItem','generateDefaultFilterOperation','getEnabledOperations','user@example.com','getFieldsWithDeleted','createAll','//\x20失败时\x20-\x20捕获错误\x0atry\x20{\x0a\x20\x20const\x20fileUrl\x20=\x20await\x20client.models.','join','CREATE_EXPORT','[generateRequestExample]\x20Invalid\x20field:','0000','getSystemFields','[Field]\x20Invalid\x20field\x20definition','label','_max','getOperationDocMeta','data','导入模板','has','warn','create','DECIMAL','dbtableConfig','分组字段列表','getDeleted','_extend','operations','getOperationAnalysesByType','responseExample','all','(...);\x0aconsole.log(data);\x20','返回字段列表(字段投影)','generateSDKCallCode','prefix','min','getOperations','length','6nSefVH','Array','1745rWZJnc','aggregate','getFieldList','({\x20/*\x20可选:筛选条件\x20*/\x20});','toFieldDefinition','hasDblinkInfo','initDataset','();\x0a\x0a//\x20导出指定条数\x0aconst\x20fileUrl\x20=\x20await\x20client.models.','();\x0a//\x20fileUrl:\x20\x22https://yuntoo-export-import.oss-cn-hangzhou.aliyuncs.com/xxx.xlsx?...\x22\x0awindow.open(fileUrl,\x20\x27_blank\x27);\x20//\x20打开下载','toUpperCase','getOperationCount','_raw','getFieldDefinition','200','hasConflicts','update','updateTime','toISOString','dataset_unknown','push','tableData','_requestExampleCache','validateEnumValue','import\x20{\x20createClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;\x0a\x0a//\x20Create\x20SDK\x20client\x0aconst\x20client\x20=\x20createClient({\x0a\x20\x20appCode:\x20\x27','getCount','\x0a\x20\x20env:\x20\x27','getUpdateTime','address','getRequiredFields','_fieldListWithDeleted','object','findByName','getFieldOperators','DbtableConfig(table:\x20','要更新的字段数据对象','getList','getDisabled','getEnum','getDisabledOperations','getSystemAnalysisResult','这是一段较长的文本内容示例','properties','IMPORT_TEMPLATE','[filterApiOperations]\x20operations\x20is\x20not\x20an\x20array:','Number','empty','_operations','OperationList(','DATETIME','keyword','操作成功','generateConfig','获取数据集列表失败:\x20','查询条件(支持与\x20Filter\x20API\x20相同的\x2012\x20种操作符)','includeDisabled','boolean','JSON','deleted','split','selectBestOperator','({\x20currentPage,\x20pageSize\x20});','name','[parseOperationType]\x20value\x20is\x20not\x20a\x20string:','\x0a##\x20模型访问方式说明\x0a\x0aSDK\x20提供两种模型访问方式:\x0a\x0a###\x201.\x20标准方式(推荐用于程序化场景)\x0a\x0a使用\x20`dataset_[完整datasetCode]`\x20格式(即\x20datasetSDKKey),这是通用的、稳定的访问方式:\x0a\x0a```javascript\x0a//\x20标准访问方式\x0aconst\x20result\x20=\x20await\x20client.models.','\x20operation\x0a','_datasetMap','getFieldsFilterOperatorsMap','description','当前页码(可选)','getEnumFieldMeta','getAggregates','getEnumMetas','field_name','getOperationFieldsOperatorsMap',');\x0a\x0a//\x20数组查询(支持多选)\x0aconst\x20result\x20=\x20await\x20client.models.','getAutoIncrement','Filter\x20API\x20-\x20高级查询接口','getResponseSchema','children','getCodes','\x20Response\x20example:\x0a','getNames','generateRequestAllExamples','2024-01-01','autoIncrement','_operationList','extend','$startWith','generateConfigArray','charAt','fromApiResponse','\x27,\x0a\x20\x20\x20\x20\x20\x20alias:\x20\x27','GET_LIST','getField','labelField','getCountByMethod','getSDKInitData','时间戳','fullUrl','-$1','getBusinessFields','-\x20主键ID,用于定位要更新的记录\x0a\x0a','findByCode','完整的\x20SDK\x20调用代码','dbId','[generateRequestExample]\x20fields\x20is\x20not\x20an\x20array:','values','withDeleted','groups','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20唯一确定,不会产生命名冲突\x0a-\x20适合程序自动生成代码\x0a-\x20与\x20datasetCode\x20直接对应,便于追溯\x0a\x0a###\x202.\x20别名方式(推荐用于人工编码场景)\x0a\x0a使用\x20camelCase\x20格式的别名,更加人类友好:\x0a\x0a```javascript\x0a//\x20别名访问方式(需要在\x20registerModels\x20时配置\x20alias)\x0aconst\x20result\x20=\x20await\x20client.models.','GET_ONE_UPDATE','\x20groups)','method','datasetKey','requestBody','total','DatasetGroup(','getItems','获取上传脚本','some','4090240WWjcGA','alias','RADIO','DrivenDataDetail(','hasTableName','getRequestFields','CREATE_IMPORT','\x20访问\x0a\x20\x20\x20\x20}\x0a\x20\x20]\x0a});','getIds','.filter({...});\x0a```\x0a\x0a**优点**:\x0a-\x20可读性强,符合编程命名习惯\x0a-\x20便于记忆和手工编写\x0a-\x20代码更加简洁美观\x0a\x0a**注意**:使用别名方式需要在\x20`registerModels`\x20时配置\x20`alias`\x20字段。\x0a','phone','$lte','params','taskInfo','getEnumOptions','avg','(支持单值或数组)','getRealTables','聚合函数配置数组','[isApiBlacklisted]\x20operationName\x20is\x20not\x20a\x20string:','$in','GET_ONE_ORIGIN','number','filterBlacklist','getDbName','Invalid\x20input:\x20expected\x20DatasetItemData[],\x20GetListApiResponse,\x20GetDatasetListApiResponse,\x20or\x20GetListSimplifiedResponse','hasExtendField','getTableName','getUpdateFields','isArray','generateResponseExample','getTableKey','$ne','placeholder','max','host','fieldName','round','$gteq','DatasetList(','(...);\x0a\x20\x20console.log(data);\x0a}\x20catch\x20(error)\x20{\x0a\x20\x20console.error(error.message);\x20//\x20错误消息\x20(errorMsg)\x0a\x20\x20console.error(error.response);\x20//\x20完整的服务端返回\x20(包含\x20success,\x20errorMsg\x20等)\x0a}','toString','_sum','hasCreatorIdField','parseRawResponseBody','富文本','valueLabels','isSystem','Operation\x20instance\x20not\x20found:\x20','isOperatorApplicableToField','getDisabledOperationInstances','set','count','generateFullSDKExample','getDatabaseName','//\x20简单查询\x0aconst\x20result1\x20=\x20await\x20client.models.','item1','trim','isAutoIncrement','();','BOOL','长文本','groupByType','SELECT','isDeleted','modifierNameField','customFilter','getFilteredOperationAnalyses','getByType','toConfig','[generateRequestExample]\x20Invalid\x20field.code\x20or\x20field.type:','currentPage','toConfigArray','-\x20要更新的字段数据对象,只需包含需要修改的字段\x0a\x0a','getRaw','\x0a\x0a//\x20复杂查询(组合条件)\x0aconst\x20result2\x20=\x20await\x20client.models.'];a0_0x57ac=function(){return _0x116618;};return a0_0x57ac();}function toKebabCase(_0x97ef9a){const _0x272b8c=a0_0x1dcc;if(!_0x97ef9a)return'';return _0x97ef9a[_0x272b8c(0x254)](/([A-Z])/g,_0x272b8c(0x121))[_0x272b8c(0x184)]()[_0x272b8c(0x254)](/^-/,'');}function normalizeFieldName(_0x329516){const _0x3e9681=a0_0x1dcc;if(!_0x329516)return'';return _0x329516['trim']()[_0x3e9681(0x254)](/\s+/g,'_')[_0x3e9681(0x254)](/[^a-zA-Z0-9_]/g,'_')['replace'](/_+/g,'_')[_0x3e9681(0x254)](/^_|_$/g,'');}function getTableName(_0x25f802){const _0xbbb1f1=a0_0x1dcc;if(!_0x25f802)return _0xbbb1f1(0x20c);if(_0x25f802[_0xbbb1f1(0x2f7)]?.[_0xbbb1f1(0x1fa)])return _0x25f802[_0xbbb1f1(0x2f7)][_0xbbb1f1(0x1fa)];const _0x18275b=_0x25f802['datasetCode']||_0x25f802[_0xbbb1f1(0x1dd)]||_0x25f802[_0xbbb1f1(0x2d8)];if(_0x18275b)return generateTableNameFromCode(_0x18275b);return _0xbbb1f1(0x20c);}function getTableKey(_0x5eeb99){if(typeof _0x5eeb99==='string')return toCamelCase(_0x5eeb99);const _0x31ea0f=getTableName(_0x5eeb99);return toCamelCase(_0x31ea0f);}function generateTableNameFromCode(_0x1d0ee2){const _0x5ef2ea=a0_0x1dcc;if(!_0x1d0ee2)return _0x5ef2ea(0x20c);const _0x526acf=_0x1d0ee2[_0x5ef2ea(0x27a)](-0x6)['padStart'](0x6,'0');return'dataset_'+_0x526acf;}function isVirtualTableName(_0x3dab7a){const _0x349441=a0_0x1dcc;return/^dataset_[a-zA-Z0-9]{6}$/[_0x349441(0x2a8)](_0x3dab7a);}function generateModelKeyFromCode(_0x44e2eb){const _0x4d057f=a0_0x1dcc;if(!_0x44e2eb)return _0x4d057f(0xd0);return _0x4d057f(0x1c4)+_0x44e2eb;}function getDbName(_0x5e3444){const _0x20a4cd=a0_0x1dcc;return _0x5e3444[_0x20a4cd(0x2f7)]?.[_0x20a4cd(0x20a)]||_0x5e3444[_0x20a4cd(0x2f7)]?.['dblinkInfoDTO']?.[_0x20a4cd(0x20a)]||'';}function generateDatasetsConfig(_0xb5e2d9,_0x34ae43={}){const _0x572022=a0_0x1dcc,{enableDeduplication:enableDeduplication=!![],datasetNameGenerator:_0x2fb35d,filter:_0xeb4901}=_0x34ae43,_0x3c0924=_0xeb4901?_0xb5e2d9[_0x572022(0x1ce)](_0xeb4901):_0xb5e2d9,_0x17d625=new Map();for(const _0x4f6b91 of _0x3c0924){const _0x526f54=getTableName(_0x4f6b91),_0x58d4e7=getDbName(_0x4f6b91);!_0x17d625[_0x572022(0x2f3)](_0x526f54)&&_0x17d625[_0x572022(0x169)](_0x526f54,new Set()),_0x17d625[_0x572022(0x240)](_0x526f54)['add'](_0x58d4e7);}const _0x2ed0a3=new Set();for(const [_0x11db95,_0x28a2d4]of _0x17d625){_0x28a2d4[_0x572022(0x2b2)]>0x1&&_0x2ed0a3['add'](_0x11db95);}const _0xd4e8d5={},_0x312212=new Set();for(const _0x8123e4 of _0x3c0924){const _0x275c97=getTableName(_0x8123e4);if(enableDeduplication&&_0x312212['has'](_0x275c97)){console[_0x572022(0x2f4)](_0x572022(0x2db)+_0x275c97+_0x572022(0x2ce)+_0x8123e4[_0x572022(0xfb)]+'\x20('+_0x8123e4[_0x572022(0x1c8)]+')');continue;}_0x312212[_0x572022(0x28b)](_0x275c97);const _0x50ac2d=_0x2fb35d?_0x2fb35d(_0x275c97,_0x8123e4):getTableKey(_0x275c97),_0x152ffa=getDbName(_0x8123e4),_0x1ab35c=_0x2ed0a3[_0x572022(0x2f3)](_0x275c97)&&_0x152ffa?getTableKey(_0x152ffa)+'_'+_0x50ac2d:_0x50ac2d;_0xd4e8d5[_0x50ac2d]={'key':_0x50ac2d,'alias':_0x1ab35c,'tableName':_0x275c97,'datasetCode':_0x8123e4[_0x572022(0x1c8)],'name':_0x8123e4['name'],'id':_0x8123e4['id'],'dbName':_0x152ffa};}return _0xd4e8d5;}function generateFullDatasetsConfig(_0xf11fa9,_0x22e3a9={}){const _0x138a35=a0_0x1dcc,{filter:_0x54c802,datasetNameGenerator:_0x19a726}=_0x22e3a9,_0x23c4e0=_0x54c802?_0xf11fa9['filter'](_0x54c802):_0xf11fa9,_0x4a418b=new Map();for(const _0x1272d1 of _0x23c4e0){const _0x4c9136=getTableName(_0x1272d1),_0x59efe2=getDbName(_0x1272d1);!_0x4a418b[_0x138a35(0x2f3)](_0x4c9136)&&_0x4a418b[_0x138a35(0x169)](_0x4c9136,new Set()),_0x4a418b[_0x138a35(0x240)](_0x4c9136)['add'](_0x59efe2);}const _0x5b93d6=new Set();for(const [_0x514a64,_0x3648ff]of _0x4a418b){_0x3648ff[_0x138a35(0x2b2)]>0x1&&_0x5b93d6[_0x138a35(0x28b)](_0x514a64);}const _0xe14fdd=groupByTableName(_0x23c4e0),_0x280025={};for(const [_0x540656,_0x4f584a]of Object['entries'](_0xe14fdd)){if(_0x4f584a[_0x138a35(0x305)]===0x1){const _0x578d4d=_0x4f584a[0x0],_0x46c05e=_0x19a726?_0x19a726(_0x540656,_0x578d4d):getTableKey(_0x540656),_0xe1e0b9=getDbName(_0x578d4d),_0x3c7e36=_0x5b93d6[_0x138a35(0x2f3)](_0x540656)&&_0xe1e0b9?getTableKey(_0xe1e0b9)+'_'+_0x46c05e:_0x46c05e;_0x280025[_0x46c05e]={'key':_0x46c05e,'alias':_0x3c7e36,'tableName':_0x540656,'datasetCode':_0x578d4d['datasetCode'],'name':_0x578d4d[_0x138a35(0xfb)],'id':_0x578d4d['id'],'dbName':_0xe1e0b9};}else{const _0x3d3306=[..._0x4f584a][_0x138a35(0x2b0)]((_0x25d25e,_0x3a2968)=>{const _0x4dff7d=Number(_0x25d25e['id'])||0x0,_0xbd8c5a=Number(_0x3a2968['id'])||0x0;return _0xbd8c5a-_0x4dff7d;});_0x3d3306[_0x138a35(0x1b2)]((_0x113954,_0x54950f)=>{const _0x185dfc=_0x138a35,_0x1e60d5=_0x19a726?_0x19a726(_0x540656,_0x113954):getTableKey(_0x540656),_0x49e6f7=_0x54950f===0x0?_0x1e60d5:_0x1e60d5+'_'+_0x54950f,_0x2fd4b6=getDbName(_0x113954),_0xd076a=_0x5b93d6[_0x185dfc(0x2f3)](_0x540656)&&_0x2fd4b6?getTableKey(_0x2fd4b6)+'_'+_0x49e6f7:_0x49e6f7;_0x280025[_0x49e6f7]={'key':_0x49e6f7,'alias':_0xd076a,'tableName':_0x540656,'datasetCode':_0x113954['datasetCode'],'name':_0x113954['name'],'id':_0x113954['id'],'dbName':_0x2fd4b6};});}}return _0x280025;}function detectTableNameConflicts(_0x129ae4){const _0x258391=a0_0x1dcc,_0x22b847={};for(const _0x350673 of _0x129ae4){const _0x1d7643=getTableName(_0x350673);!_0x22b847[_0x1d7643]&&(_0x22b847[_0x1d7643]=[]),_0x22b847[_0x1d7643][_0x258391(0xd1)](_0x350673);}const _0x5c3f28={};for(const [_0x5179ff,_0x5dd130]of Object[_0x258391(0x2d3)](_0x22b847)){_0x5dd130['length']>0x1&&(_0x5c3f28[_0x5179ff]=_0x5dd130);}return{'hasConflicts':Object[_0x258391(0x28a)](_0x5c3f28)['length']>0x0,'conflicts':_0x5c3f28};}function createDatasetNameMap(_0x209cdc){const _0x1aebb4=a0_0x1dcc,_0x3b9ee6={};for(const [_0x2fa1f0,_0x3f0667]of Object[_0x1aebb4(0x2d3)](_0x209cdc)){_0x3b9ee6[_0x2fa1f0]=_0x3f0667['datasetCode']||'';}return _0x3b9ee6;}function groupByTableName(_0x4cc5e8){const _0x20c42d={};for(const _0x2e939c of _0x4cc5e8){const _0x375082=getTableName(_0x2e939c);!_0x20c42d[_0x375082]&&(_0x20c42d[_0x375082]=[]),_0x20c42d[_0x375082]['push'](_0x2e939c);}return _0x20c42d;}function datasetsConfigToArray(_0x22bf41){const _0x12827d=a0_0x1dcc;return Object[_0x12827d(0x128)](_0x22bf41);}function adaptDrivenDataDetail(_0xc820f){const _0x358656=a0_0x1dcc;return{'id':_0xc820f['modelId'],'name':_0xc820f[_0x358656(0xfb)],'datasetCode':_0xc820f[_0x358656(0x2d8)],'dbtableConfig':_0xc820f[_0x358656(0x2f7)],'source':_0xc820f[_0x358656(0x2bc)],'version':_0xc820f[_0x358656(0x2a9)],'extend':_0xc820f['extend'],'properties':_0xc820f[_0x358656(0xe7)],'operations':_0xc820f[_0x358656(0x2fb)]};}function adaptDrivenDataDetails(_0x3cd7eb){const _0x103e8a=a0_0x1dcc;return _0x3cd7eb[_0x103e8a(0x1e1)](adaptDrivenDataDetail);}function extractDatasetFromResponse(_0x2df0f9){const _0x8e4637=a0_0x1dcc;if(!_0x2df0f9['success']||!_0x2df0f9['data'])throw new Error('获取数据集失败:\x20'+(_0x2df0f9[_0x8e4637(0x26b)]||_0x2df0f9['msg']));return adaptDrivenDataDetail(_0x2df0f9[_0x8e4637(0x2f1)]);}function extractDatasetsFromListResponse(_0x3a4900){const _0x4595f5=a0_0x1dcc;if(!_0x3a4900[_0x4595f5(0x1e3)]||!_0x3a4900[_0x4595f5(0x2f1)]?.['tableData'])throw new Error(_0x4595f5(0xf2)+(_0x3a4900['errorMsg']||_0x3a4900[_0x4595f5(0x2dc)]));return _0x3a4900[_0x4595f5(0x2f1)][_0x4595f5(0xd2)][_0x4595f5(0x1e1)](_0x439d94=>({..._0x439d94,'datasetCode':_0x439d94[_0x4595f5(0x1dd)]||_0x439d94[_0x4595f5(0x1c8)]}));}function isDrivenDataDetail(_0x343f9c){const _0x35dc9a=a0_0x1dcc;return Boolean(_0x343f9c&&typeof _0x343f9c[_0x35dc9a(0x2d8)]==='string');}function smartAdapt(_0x48bf3d){const _0x7d7ccd=a0_0x1dcc;if(isDrivenDataDetail(_0x48bf3d))return adaptDrivenDataDetail(_0x48bf3d);if(_0x48bf3d[_0x7d7ccd(0x1c8)])return _0x48bf3d;if(_0x48bf3d['code'])return{..._0x48bf3d,'datasetCode':_0x48bf3d[_0x7d7ccd(0x1dd)]};return _0x48bf3d;}var DatasetOperationType;(_0x58fd9e=>{const _0x50f359=a0_0x1dcc;_0x58fd9e[_0x50f359(0x11a)]=_0x50f359(0xe1),_0x58fd9e[_0x50f359(0x2ca)]=_0x50f359(0x264),_0x58fd9e[_0x50f359(0x14b)]=_0x50f359(0x182),_0x58fd9e[_0x50f359(0x12c)]=_0x50f359(0x197),_0x58fd9e[_0x50f359(0x2c5)]=_0x50f359(0x2f5),_0x58fd9e[_0x50f359(0x188)]=_0x50f359(0xcd),_0x58fd9e[_0x50f359(0x225)]=_0x50f359(0x1e0),_0x58fd9e[_0x50f359(0x22f)]=_0x50f359(0x291),_0x58fd9e['GET_FILE_URL']=_0x50f359(0x23e),_0x58fd9e[_0x50f359(0x24a)]='excelExport',_0x58fd9e[_0x50f359(0x1cb)]=_0x50f359(0x2ad),_0x58fd9e[_0x50f359(0x13c)]=_0x50f359(0x241),_0x58fd9e[_0x50f359(0x2e9)]='createExport',_0x58fd9e[_0x50f359(0x1c6)]=_0x50f359(0x143),_0x58fd9e[_0x50f359(0xe8)]=_0x50f359(0x1a4);})(DatasetOperationType||={});var OPERATION_TYPE_DISPLAY_NAME={[a0_0x53bff1(0xe1)]:a0_0x53bff1(0x2dd),[a0_0x53bff1(0x264)]:'查询单条',[a0_0x53bff1(0x182)]:a0_0x53bff1(0x18c),[a0_0x53bff1(0x197)]:'查询单条(用于更新)',[a0_0x53bff1(0x2f5)]:'创建',[a0_0x53bff1(0xcd)]:'更新',[a0_0x53bff1(0x1e0)]:'删除',['getSelectOptions']:a0_0x53bff1(0x205),[a0_0x53bff1(0x23e)]:a0_0x53bff1(0x296),[a0_0x53bff1(0x297)]:a0_0x53bff1(0x1fb),[a0_0x53bff1(0x2ad)]:a0_0x53bff1(0x134),['createImport']:a0_0x53bff1(0x183),[a0_0x53bff1(0x233)]:'创建导出',[a0_0x53bff1(0x143)]:a0_0x53bff1(0x1ea),['importTemplate']:a0_0x53bff1(0x2f2)},API_BLACKLIST=['getList',a0_0x53bff1(0x182),a0_0x53bff1(0x197),a0_0x53bff1(0x23e)];function parseFieldExtend(_0x6bd65f){const _0x5a60cf=a0_0x53bff1;if(!_0x6bd65f||typeof _0x6bd65f!==_0x5a60cf(0xdc))return!![]&&console[_0x5a60cf(0x2f4)](_0x5a60cf(0x1f9),_0x6bd65f),{};if(!_0x6bd65f[_0x5a60cf(0x114)])return{};try{const _0x1c0d55=typeof _0x6bd65f['extend']===_0x5a60cf(0x2e0)?JSON['parse'](_0x6bd65f[_0x5a60cf(0x114)]):_0x6bd65f['extend'];if(typeof _0x1c0d55!==_0x5a60cf(0xdc)||_0x1c0d55===null)return{};return _0x1c0d55;}catch{return{};}}function isPrimaryKeyField(_0x4eb971,_0x9da0a9){const _0x35d6c5=a0_0x53bff1;if(!_0x4eb971||typeof _0x4eb971!==_0x35d6c5(0xdc))return![];if(typeof _0x9da0a9===_0x35d6c5(0x2e0)&&_0x4eb971[_0x35d6c5(0x1dd)]===_0x9da0a9)return!![];const _0x1e8b44=parseFieldExtend(_0x4eb971);return Boolean(_0x1e8b44[_0x35d6c5(0x23b)]||_0x1e8b44[_0x35d6c5(0x2b8)]);}function isSystemField(_0x41b5b5){const _0x59ef34=parseFieldExtend(_0x41b5b5);return Boolean(_0x59ef34['systemRetain']);}function isRequiredField(_0x477af2){const _0x35a261=a0_0x53bff1,_0x5828d8=parseFieldExtend(_0x477af2);return Boolean(_0x5828d8[_0x35a261(0x23c)]);}function isAutoIncrementField(_0x181e20){const _0x1890a5=parseFieldExtend(_0x181e20);return Boolean(_0x1890a5['autoIncrement']);}function isCreateTimeField(_0x3abfa9){const _0x2abfd4=a0_0x53bff1,_0x1aee4b=parseFieldExtend(_0x3abfa9);return Boolean(_0x1aee4b[_0x2abfd4(0x284)]);}function isModifyTimeField(_0x491761){const _0x321591=a0_0x53bff1,_0x5a7d70=parseFieldExtend(_0x491761);return Boolean(_0x5a7d70[_0x321591(0x1ef)]);}var DB_TYPE_DISPLAY_MAP={'NUMBER':'数字','TEXT':'文本','TEXTAREA':a0_0x53bff1(0x173),'DATE':'日期','DATETIME':a0_0x53bff1(0x26c),'TIMESTAMP':a0_0x53bff1(0x11f),'SELECT':a0_0x53bff1(0x2ae),'CHECKBOX':'多选','RADIO':'单选','SWITCH':'开关','UPLOAD':'文件上传','IMAGE':'图片','RICH_TEXT':a0_0x53bff1(0x163),'JSON':a0_0x53bff1(0xf6),'ARRAY':'数组'};function getDbTypeDisplay(_0x202e37){const _0x196c38=a0_0x53bff1;if(typeof _0x202e37!==_0x196c38(0x2e0))return!![]&&console[_0x196c38(0x2f4)]('[getDbTypeDisplay]\x20type\x20is\x20not\x20a\x20string:',_0x202e37),String(_0x202e37||'-');return DB_TYPE_DISPLAY_MAP[_0x202e37]||_0x202e37;}function formatDbType(_0x210656,_0x3be58e){const _0x5d0be3=a0_0x53bff1;if(!_0x210656||typeof _0x210656!==_0x5d0be3(0x2e0))return'-';if(!_0x3be58e||typeof _0x3be58e!==_0x5d0be3(0x14c))return _0x210656;const _0x596cf3=[_0x5d0be3(0x288),_0x5d0be3(0xee),'TIMESTAMP',_0x5d0be3(0x1bb)];if(_0x596cf3[_0x5d0be3(0x220)](_0x210656[_0x5d0be3(0x311)]()))return _0x210656;return _0x210656+'('+_0x3be58e+')';}function parseOperationType(_0x694fec){const _0x1ac948=a0_0x53bff1;if(typeof _0x694fec!==_0x1ac948(0x2e0)){!![]&&console[_0x1ac948(0x2f4)](_0x1ac948(0xfc),_0x694fec);return;}if(Object[_0x1ac948(0x128)](DatasetOperationType)['includes'](_0x694fec))return _0x694fec;const _0x8edb29=Object[_0x1ac948(0x2d3)](OPERATION_TYPE_DISPLAY_NAME)[_0x1ac948(0x1ae)](([_0x5ab3d5,_0x1f77b3])=>_0x1f77b3===_0x694fec);return _0x8edb29?_0x8edb29[0x0]:undefined;}function shouldIncludeField(_0x5afd29,_0x34dd63,_0x341fbe){const _0x132224=a0_0x53bff1,_0x2f4cf0=parseFieldExtend(_0x5afd29),_0x10d535=isPrimaryKeyField(_0x5afd29,_0x341fbe),_0x38abe8=Boolean(_0x2f4cf0[_0x132224(0x2b7)]),_0x28d4e9=Boolean(_0x2f4cf0[_0x132224(0x112)]),_0x34d6ae=Boolean(_0x2f4cf0['createDate']),_0x5663eb=Boolean(_0x2f4cf0['modifyDate']);switch(_0x34dd63){case _0x132224(0xe1):return!![];case'getOne':case _0x132224(0x182):case _0x132224(0x1e0):return _0x10d535;case _0x132224(0x2f5):if(_0x10d535&&_0x28d4e9)return![];if(_0x38abe8)return![];if(_0x34d6ae||_0x5663eb)return![];return!![];case _0x132224(0xcd):case'getOneUpdate':if(_0x10d535)return!![];if(_0x38abe8)return![];if(_0x34d6ae||_0x5663eb)return![];return!![];case _0x132224(0x291):return _0x5afd29[_0x132224(0x1dd)]===_0x132224(0x1dd);default:return!![];}}function getFieldsForOperation(_0x30106e,_0x22fcf2,_0x571198){const _0x13da5c=a0_0x53bff1;if(!Array[_0x13da5c(0x153)](_0x30106e))return!![]&&console[_0x13da5c(0x2f4)](_0x13da5c(0x272),_0x30106e),[];return _0x30106e[_0x13da5c(0x1ce)](_0x597734=>shouldIncludeField(_0x597734,_0x22fcf2,_0x571198));}function isApiBlacklisted(_0x4bb7ca){const _0x4488d3=a0_0x53bff1;if(typeof _0x4bb7ca!==_0x4488d3(0x2e0))return!![]&&console['warn'](_0x4488d3(0x149),_0x4bb7ca),![];return API_BLACKLIST[_0x4488d3(0x220)](_0x4bb7ca);}function filterApiOperations(_0x59aef9){const _0x5e729d=a0_0x53bff1;if(!Array[_0x5e729d(0x153)](_0x59aef9))return!![]&&console['warn'](_0x5e729d(0xe9),_0x59aef9),[];return _0x59aef9[_0x5e729d(0x1ce)](_0x19d8dc=>_0x19d8dc&&typeof _0x19d8dc===_0x5e729d(0xdc)&&!isApiBlacklisted(_0x19d8dc[_0x5e729d(0xfb)]));}var TYPE_VALUE_GENERATORS={'TIMESTAMP':()=>Date[a0_0x53bff1(0x1a5)](),'DATE':()=>Date['now'](),'SELECT':({fieldInfo:_0x1c6b11})=>{const _0xc94879=a0_0x53bff1;if(_0x1c6b11?.['options']&&Array[_0xc94879(0x153)](_0x1c6b11[_0xc94879(0x247)])&&_0x1c6b11['options'][_0xc94879(0x305)]>0x0)return _0x1c6b11[_0xc94879(0x247)][0x0][_0xc94879(0x2a6)];return 0x1;},'NUMBER':()=>0x7b,'INTEGER':()=>0x64,'Integer':({fieldCode:_0xc410bf})=>{const _0x33c7a7=a0_0x53bff1;if(_0xc410bf==='currentPage')return 0x1;if(_0xc410bf===_0x33c7a7(0x229))return 0xa;return 0x64;},'BIGINT':()=>0xf4240,'Long':()=>0xf4240,'INT':()=>0x64,'TINYINT':()=>0x1,'DECIMAL':()=>99.99,'FLOAT':()=>99.99,'DOUBLE':()=>99.99,'TEXT':({description:_0x5bb2ee})=>{const _0x407700=a0_0x53bff1;if(_0x5bb2ee&&typeof _0x5bb2ee===_0x407700(0x2e0)){const _0x6102fa=_0x5bb2ee['toLowerCase']();if(_0x6102fa[_0x407700(0x220)]('邮箱')||_0x6102fa[_0x407700(0x220)](_0x407700(0x269)))return _0x407700(0x2e4);if(_0x6102fa[_0x407700(0x220)]('电话')||_0x6102fa['includes']('手机')||_0x6102fa['includes'](_0x407700(0x140)))return _0x407700(0x232);if(_0x6102fa[_0x407700(0x220)]('地址')||_0x6102fa[_0x407700(0x220)](_0x407700(0xd9)))return _0x407700(0x21b);if(_0x6102fa['includes']('姓名')||_0x6102fa[_0x407700(0x220)](_0x407700(0xfb)))return'张三';}return'示例文本';},'VARCHAR':({description:_0x392f71})=>TYPE_VALUE_GENERATORS['TEXT']({'description':_0x392f71}),'CHAR':({description:_0x1936da})=>TYPE_VALUE_GENERATORS[a0_0x53bff1(0x288)]({'description':_0x1936da}),'STRING':({fieldInfo:_0x260b01,description:_0x17a771})=>{const _0x29c2d0=a0_0x53bff1;if(_0x260b01?.['placeholder']&&typeof _0x260b01[_0x29c2d0(0x157)]===_0x29c2d0(0x2e0)&&_0x260b01['placeholder']!=='系统自动生成')return _0x260b01[_0x29c2d0(0x157)][_0x29c2d0(0x254)](/^请输入|^请选择/,'');return TYPE_VALUE_GENERATORS['TEXT']({'description':_0x17a771});},'TEXTAREA':()=>'这是一段较长的文本内容示例','LONGTEXT':()=>a0_0x53bff1(0xe6),'BOOLEAN':()=>!![],'BOOL':()=>!![],'Boolean':()=>!![],'SWITCH':()=>!![],'CHECKBOX':()=>[0x1,0x2],'RADIO':()=>0x1,'JSON':()=>({'key':a0_0x53bff1(0x2a6)}),'ARRAY':()=>[a0_0x53bff1(0x16e),'item2'],'UPLOAD':()=>a0_0x53bff1(0x1ac),'IMAGE':()=>a0_0x53bff1(0x281),'RICH_TEXT':()=>'<p>富文本内容</p>'};function generateExampleValue(_0x1c7314,_0x806cc1,_0x545c1d,_0x35dcf2={}){const _0x26dcff=a0_0x53bff1;typeof _0x1c7314!==_0x26dcff(0x2e0)&&(!![]&&console['warn'](_0x26dcff(0x29f),_0x1c7314),_0x1c7314=String(_0x1c7314||''));if(typeof _0x806cc1!=='string')return!![]&&console[_0x26dcff(0x2f4)]('[generateExampleValue]\x20fieldType\x20is\x20not\x20a\x20string:',_0x806cc1),_0x26dcff(0x2c0);const {isPrimaryKey:_0x46bd3b,dbtableConfig:_0x7af142}=_0x35dcf2;if(_0x46bd3b)return 0x1;if(_0x7af142&&typeof _0x7af142==='object'){const _0x4063d3=_0x7af142[_0x26dcff(0x27b)]?.[_0x26dcff(0x15a)]===_0x1c7314,_0x570ada=_0x7af142[_0x26dcff(0x234)]?.[_0x26dcff(0x15a)]===_0x1c7314;if(_0x4063d3||_0x570ada){if(_0x545c1d&&typeof _0x545c1d===_0x26dcff(0x2e0)&&_0x545c1d[_0x26dcff(0x311)]()[_0x26dcff(0x220)]('TIMESTAMP'))return Date[_0x26dcff(0x1a5)]();return new Date()[_0x26dcff(0xcf)]()[_0x26dcff(0x254)]('T','\x20')[_0x26dcff(0xf8)]('.')[0x0];}}const _0x1708a7={..._0x35dcf2,'fieldCode':_0x1c7314};if(_0x545c1d&&typeof _0x545c1d==='string'){const _0x1d3f6f=_0x545c1d['toUpperCase'](),_0x15d934=TYPE_VALUE_GENERATORS[_0x1d3f6f];if(_0x15d934)return _0x15d934(_0x1708a7);}if(_0x806cc1&&typeof _0x806cc1===_0x26dcff(0x2e0)){const _0x11cd6b=_0x806cc1[_0x26dcff(0x311)](),_0x5e4ebf=TYPE_VALUE_GENERATORS[_0x11cd6b];if(_0x5e4ebf)return _0x5e4ebf(_0x1708a7);}return _0x26dcff(0x2c0);}function generateExampleFromSchema(_0x382a97,_0x48b9a0){const _0x153262=a0_0x53bff1;if(!_0x382a97||typeof _0x382a97!=='object')return{};if(Array[_0x153262(0x153)](_0x382a97)){if(_0x382a97['length']>0x0)return[generateExampleFromSchema(_0x382a97[0x0],_0x48b9a0)];return[];}const _0x484343={};return Object[_0x153262(0x28a)](_0x382a97)[_0x153262(0x1b2)](_0x2b1be2=>{const _0x2438aa=_0x153262,_0xc3988f=_0x382a97[_0x2b1be2];if(_0xc3988f&&typeof _0xc3988f===_0x2438aa(0xdc)&&!Array['isArray'](_0xc3988f)&&_0xc3988f[_0x2438aa(0x2ab)]){const _0x2cf21a=_0xc3988f,_0x28bf03=_0x2cf21a[_0x2438aa(0x2ab)],_0x252138=_0x2cf21a[_0x2438aa(0x101)];typeof _0x28bf03===_0x2438aa(0x2e0)?_0x484343[_0x2b1be2]=generateExampleValue(_0x2b1be2,_0x28bf03,undefined,{'description':_0x252138,'dbtableConfig':_0x48b9a0}):_0x484343[_0x2b1be2]=_0x2438aa(0x2c0);}else{if(Array[_0x2438aa(0x153)](_0xc3988f))_0x484343[_0x2b1be2]=_0xc3988f[_0x2438aa(0x305)]>0x0?[generateExampleFromSchema(_0xc3988f[0x0],_0x48b9a0)]:[];else _0xc3988f&&typeof _0xc3988f===_0x2438aa(0xdc)?_0x484343[_0x2b1be2]=generateExampleFromSchema(_0xc3988f,_0x48b9a0):_0x484343[_0x2b1be2]=_0xc3988f;}}),_0x484343;}function parseRequestBody(_0x1ef3d3){const _0x4b89c0=a0_0x53bff1;if(!_0x1ef3d3)return{};try{return JSON[_0x4b89c0(0x2b5)](_0x1ef3d3);}catch(_0x4b55b2){return!![]&&console[_0x4b89c0(0x2f4)](_0x4b89c0(0x2c9),_0x4b55b2),{};}}function parseResponseBody(_0x427823){const _0x2a2019=a0_0x53bff1;if(!_0x427823)return null;try{const _0x151264=JSON[_0x2a2019(0x2b5)](_0x427823);return _0x151264[_0x2a2019(0x315)]||_0x151264;}catch(_0x5ab70b){return!![]&&console[_0x2a2019(0x2f4)]('解析\x20responseBody\x20失败:',_0x5ab70b),null;}}function generateRequestExample(_0x409e3e,_0x53ab17,_0x37e64e,_0x12be2e){const _0x37f4b4=a0_0x53bff1,_0x5c7a77={};if(!Array['isArray'](_0x409e3e))return!![]&&console[_0x37f4b4(0x2f4)](_0x37f4b4(0x127),_0x409e3e),_0x5c7a77;return _0x409e3e['forEach'](_0x22e1bf=>{const _0x1e7277=_0x37f4b4;if(!_0x22e1bf||typeof _0x22e1bf!==_0x1e7277(0xdc)){!![]&&console[_0x1e7277(0x2f4)](_0x1e7277(0x2ea),_0x22e1bf);return;}if(typeof _0x22e1bf[_0x1e7277(0x1dd)]!==_0x1e7277(0x2e0)||typeof _0x22e1bf[_0x1e7277(0x2ab)]!==_0x1e7277(0x2e0)){!![]&&console[_0x1e7277(0x2f4)](_0x1e7277(0x17c),_0x22e1bf);return;}const _0x3bec07=parseFieldExtend(_0x22e1bf),_0x1fec20=_0x22e1bf[_0x1e7277(0x1dd)]===_0x37e64e||Boolean(_0x3bec07?.[_0x1e7277(0x23b)]),_0x409531=generateExampleValue(_0x22e1bf[_0x1e7277(0x1dd)],_0x22e1bf[_0x1e7277(0x2ab)],typeof _0x22e1bf[_0x1e7277(0x1c7)]==='string'?_0x22e1bf[_0x1e7277(0x1c7)]:undefined,{'fieldInfo':_0x3bec07,'isPrimaryKey':_0x1fec20,'description':_0x22e1bf[_0x1e7277(0x101)]||_0x22e1bf[_0x1e7277(0xfb)],'dbtableConfig':_0x12be2e});_0x5c7a77[_0x22e1bf[_0x1e7277(0x1dd)]]=_0x409531;}),_0x53ab17===_0x37f4b4(0xe1)&&(_0x5c7a77[_0x37f4b4(0x17d)]=0x1,_0x5c7a77[_0x37f4b4(0x229)]=0xa),_0x5c7a77;}function formatEnumValue(_0x56f8be,_0xc284ce){const _0x4d78cd=a0_0x53bff1;if(_0x56f8be['multiple']&&Array[_0x4d78cd(0x153)](_0xc284ce))return _0xc284ce[_0x4d78cd(0x1e1)](_0x32aa5e=>_0x56f8be[_0x4d78cd(0x164)][String(_0x32aa5e)]||String(_0x32aa5e))[_0x4d78cd(0x2e8)](',\x20');return _0x56f8be[_0x4d78cd(0x164)][String(_0xc284ce)]||String(_0xc284ce);}function formatOptionsForDoc(_0x258364){const _0x1d3fed=a0_0x53bff1;return _0x258364[_0x1d3fed(0x1e1)](_0x5da442=>_0x5da442[_0x1d3fed(0x2a6)]+'('+_0x5da442[_0x1d3fed(0x2ee)]+')')[_0x1d3fed(0x2e8)](',\x20');}function formatOptionsAsMarkdownList(_0x286bb7,_0x5cead6=0x0){const _0x3aa87a=a0_0x53bff1,_0x4ea440='\x20\x20'[_0x3aa87a(0x243)](_0x5cead6),_0x21f477=[];return _0x286bb7[_0x3aa87a(0x1b2)](_0xb98dbd=>{const _0x2869c3=_0x3aa87a;_0x21f477[_0x2869c3(0xd1)](_0x4ea440+'-\x20`'+_0xb98dbd[_0x2869c3(0x2a6)]+'`:\x20'+_0xb98dbd[_0x2869c3(0x2ee)]),_0xb98dbd[_0x2869c3(0x10c)]&&_0xb98dbd[_0x2869c3(0x10c)][_0x2869c3(0x305)]>0x0&&_0x21f477[_0x2869c3(0xd1)](formatOptionsAsMarkdownList(_0xb98dbd[_0x2869c3(0x10c)],_0x5cead6+0x1));}),_0x21f477[_0x3aa87a(0x2e8)]('\x0a');}class DbtableConfig{[a0_0x53bff1(0x313)];constructor(_0xc4a22){this['_raw']={..._0xc4a22};}get['dbId'](){const _0x315d61=a0_0x53bff1;return this[_0x315d61(0x313)][_0x315d61(0x126)];}get[a0_0x53bff1(0x20a)](){const _0x38bfd3=a0_0x53bff1;return this[_0x38bfd3(0x313)][_0x38bfd3(0x20a)]??this[_0x38bfd3(0x313)][_0x38bfd3(0x2d4)]?.[_0x38bfd3(0x20a)];}get['tableName'](){const _0x5466f8=a0_0x53bff1;return this[_0x5466f8(0x313)][_0x5466f8(0x1fa)];}get['datasetKey'](){const _0x19ffe1=a0_0x53bff1;return this[_0x19ffe1(0x313)][_0x19ffe1(0x12f)];}get['pkField'](){const _0xbe443=a0_0x53bff1;return this[_0xbe443(0x313)][_0xbe443(0x2b8)];}get[a0_0x53bff1(0x11c)](){const _0x234742=a0_0x53bff1;return this['_raw'][_0x234742(0x11c)];}get[a0_0x53bff1(0x1d7)](){const _0x13e814=a0_0x53bff1;return this[_0x13e814(0x313)]['logicField'];}get[a0_0x53bff1(0x27b)](){const _0x555b85=a0_0x53bff1;return this[_0x555b85(0x313)][_0x555b85(0x27b)];}get[a0_0x53bff1(0x234)](){const _0x405e65=a0_0x53bff1;return this[_0x405e65(0x313)][_0x405e65(0x234)];}get['creatorIdField'](){const _0x4513dd=a0_0x53bff1;return this[_0x4513dd(0x313)][_0x4513dd(0x236)];}get['creatorNameField'](){const _0x155bae=a0_0x53bff1;return this[_0x155bae(0x313)][_0x155bae(0x2cc)];}get[a0_0x53bff1(0x214)](){const _0x1aa66f=a0_0x53bff1;return this[_0x1aa66f(0x313)]['modifierIdField'];}get[a0_0x53bff1(0x177)](){const _0x392410=a0_0x53bff1;return this[_0x392410(0x313)][_0x392410(0x177)];}get['dblinkInfoDTO'](){const _0x316fb4=a0_0x53bff1;return this[_0x316fb4(0x313)][_0x316fb4(0x2d4)];}[a0_0x53bff1(0x270)](){const _0x40721a=a0_0x53bff1;if(!this['_raw'][_0x40721a(0x1f4)])return[];return this[_0x40721a(0x313)][_0x40721a(0x1f4)][_0x40721a(0xf8)](',')[_0x40721a(0x1e1)](_0x2a9736=>_0x2a9736['trim']())['filter'](Boolean);}[a0_0x53bff1(0x25f)](){const _0x40997f=a0_0x53bff1;return this['_raw'][_0x40997f(0x1f4)];}[a0_0x53bff1(0x248)](_0x5342dd){const _0x1441e6=a0_0x53bff1;return this[_0x1441e6(0x270)]()[_0x1441e6(0x220)](_0x5342dd);}[a0_0x53bff1(0x13a)](){const _0x2404f4=a0_0x53bff1;return Boolean(this[_0x2404f4(0x313)][_0x2404f4(0x1fa)]);}[a0_0x53bff1(0x30d)](){const _0x4160e8=a0_0x53bff1;return Boolean(this[_0x4160e8(0x313)][_0x4160e8(0x2d4)]);}[a0_0x53bff1(0x21c)](){const _0x11d07b=a0_0x53bff1;return Boolean(this[_0x11d07b(0x313)][_0x11d07b(0x1d7)]?.[_0x11d07b(0x15a)]);}[a0_0x53bff1(0x1cd)](){const _0x3383e5=a0_0x53bff1;return Boolean(this[_0x3383e5(0x313)][_0x3383e5(0x27b)]?.[_0x3383e5(0x15a)]);}[a0_0x53bff1(0x27f)](){const _0x1d50f4=a0_0x53bff1;return Boolean(this['_raw'][_0x1d50f4(0x234)]?.[_0x1d50f4(0x15a)]);}[a0_0x53bff1(0x161)](){const _0x3605c7=a0_0x53bff1;return Boolean(this[_0x3605c7(0x313)]['creatorIdField']?.[_0x3605c7(0x15a)]);}[a0_0x53bff1(0x18a)](){const _0x4ae99a=a0_0x53bff1;return Boolean(this[_0x4ae99a(0x313)][_0x4ae99a(0x214)]?.[_0x4ae99a(0x15a)]);}[a0_0x53bff1(0x2b6)](_0x28a384){const _0x372cab=a0_0x53bff1;return this[_0x372cab(0x313)][_0x372cab(0x2b8)]===_0x28a384;}[a0_0x53bff1(0x1ec)](_0x5efff1){const _0x35002e=a0_0x53bff1;return this[_0x35002e(0x2b6)](_0x5efff1)||this[_0x35002e(0x313)][_0x35002e(0x1d7)]?.['fieldName']===_0x5efff1||this[_0x35002e(0x313)]['createTimeField']?.[_0x35002e(0x15a)]===_0x5efff1||this[_0x35002e(0x313)]['updateTimeField']?.[_0x35002e(0x15a)]===_0x5efff1||this[_0x35002e(0x313)][_0x35002e(0x236)]?.['fieldName']===_0x5efff1||this[_0x35002e(0x313)][_0x35002e(0x2cc)]?.[_0x35002e(0x15a)]===_0x5efff1||this['_raw'][_0x35002e(0x214)]?.[_0x35002e(0x15a)]===_0x5efff1||this[_0x35002e(0x313)][_0x35002e(0x177)]?.[_0x35002e(0x15a)]===_0x5efff1;}[a0_0x53bff1(0x16c)](){const _0x30feeb=a0_0x53bff1;return this['_raw'][_0x30feeb(0x2d4)]?.['dbName'];}['getDatabaseType'](){const _0x452662=a0_0x53bff1;return this[_0x452662(0x313)][_0x452662(0x2d4)]?.[_0x452662(0x1c7)];}['getDatabaseVersion'](){const _0xa53112=a0_0x53bff1;return this[_0xa53112(0x313)]['dblinkInfoDTO']?.[_0xa53112(0x195)];}[a0_0x53bff1(0x1d6)](){const _0x19dfe9=a0_0x53bff1;return this[_0x19dfe9(0x313)][_0x19dfe9(0x2d4)]?.[_0x19dfe9(0x189)];}['getAppCode'](){const _0xadfbf5=a0_0x53bff1;return this[_0xadfbf5(0x313)][_0xadfbf5(0x2d4)]?.[_0xadfbf5(0x2c6)];}[a0_0x53bff1(0xe5)](){const _0x56f228=a0_0x53bff1;return this[_0x56f228(0x313)][_0x56f228(0x2d4)]?.[_0x56f228(0x24f)];}[a0_0x53bff1(0x1d8)](){const _0x2de74b=a0_0x53bff1;return{'hasTableName':this[_0x2de74b(0x13a)](),'hasDblinkInfo':this[_0x2de74b(0x30d)](),'fieldCount':this[_0x2de74b(0x270)]()['length'],'systemFields':{'hasLogicField':this[_0x2de74b(0x21c)](),'hasCreateTimeField':this[_0x2de74b(0x1cd)](),'hasUpdateTimeField':this['hasUpdateTimeField'](),'hasCreatorIdField':this['hasCreatorIdField'](),'hasModifierIdField':this[_0x2de74b(0x18a)]()}};}[a0_0x53bff1(0x17b)](){const _0x22fb57=a0_0x53bff1;return{'tableName':this['tableName'],'pkField':this[_0x22fb57(0x2b8)],'datasetKey':this[_0x22fb57(0x12f)],'dbId':this[_0x22fb57(0x126)]};}[a0_0x53bff1(0x1d2)](){const _0x1ef892=a0_0x53bff1;return{...this[_0x1ef892(0x313)]};}[a0_0x53bff1(0x180)](){return{...this['_raw']};}[a0_0x53bff1(0x15f)](){const _0x5b20a3=a0_0x53bff1,_0x50fbdf=this[_0x5b20a3(0x1fa)]||_0x5b20a3(0x18f),_0x566504=this[_0x5b20a3(0x270)]()[_0x5b20a3(0x305)];return _0x5b20a3(0xdf)+_0x50fbdf+_0x5b20a3(0x286)+_0x566504+')';}static[a0_0x53bff1(0xeb)](){return new DbtableConfig({});}}class DatasetItem{[a0_0x53bff1(0x313)];constructor(_0x3c2712){const _0x3135f7=a0_0x53bff1,_0x22ae0e=_0x3c2712['datasetCode']||_0x3c2712[_0x3135f7(0x1dd)]||_0x3c2712[_0x3135f7(0x2d8)];this[_0x3135f7(0x313)]={..._0x3c2712,'datasetCode':_0x22ae0e};}get['id'](){const _0x27445f=a0_0x53bff1;return this[_0x27445f(0x313)]['id'];}get[a0_0x53bff1(0xfb)](){const _0x2f82b0=a0_0x53bff1;return this[_0x2f82b0(0x313)][_0x2f82b0(0xfb)];}[a0_0x53bff1(0x1f3)](){const _0x4f06e5=a0_0x53bff1;return this[_0x4f06e5(0xfb)];}get['datasetCode'](){const _0x1413aa=a0_0x53bff1;return this['_raw'][_0x1413aa(0x1c8)]||'';}get[a0_0x53bff1(0x2f7)](){const _0xca2fd1=a0_0x53bff1;if(!this[_0xca2fd1(0x313)][_0xca2fd1(0x2f7)])return null;return new DbtableConfig(this[_0xca2fd1(0x313)]['dbtableConfig']);}[a0_0x53bff1(0x2b1)](){const _0x1c1300=a0_0x53bff1;return this[_0x1c1300(0x313)][_0x1c1300(0x2f7)];}[a0_0x53bff1(0x14e)](){const _0x569fed=a0_0x53bff1;return this[_0x569fed(0x2f7)]?.[_0x569fed(0x20a)]||'';}[a0_0x53bff1(0x151)](){return getTableName(this['_raw']);}[a0_0x53bff1(0x155)](){const _0xb30d90=a0_0x53bff1;return getTableKey(this[_0xb30d90(0x151)]());}[a0_0x53bff1(0x1a6)](){const _0x3d1f65=a0_0x53bff1;return generateModelKeyFromCode(this[_0x3d1f65(0x1c8)]);}[a0_0x53bff1(0x282)](){return isVirtualTableName(this['getTableName']());}[a0_0x53bff1(0x26a)](){return getTableKey(this['getTableName']());}['toConfig'](){const _0x5a3c63=a0_0x53bff1,_0x24d745=getTableKey(this[_0x5a3c63(0x151)]());return{'key':_0x24d745,'alias':_0x24d745,'tableName':this[_0x5a3c63(0x151)](),'datasetCode':this[_0x5a3c63(0x1c8)],'name':this[_0x5a3c63(0xfb)]};}[a0_0x53bff1(0x1d2)](){const _0x8a35f9=a0_0x53bff1;return{...this['_raw'],'datasetCode':this[_0x8a35f9(0x1c8)]};}[a0_0x53bff1(0x180)](){const _0x4647b0=a0_0x53bff1;return{...this[_0x4647b0(0x313)]};}['hasDbtableConfig'](){const _0x2ddc2f=a0_0x53bff1,_0x5218a9=this['dbtableConfig'];return _0x5218a9!==null&&_0x5218a9[_0x2ddc2f(0x13a)]();}[a0_0x53bff1(0x1fc)](_0x70153){const _0x4f9e06=a0_0x53bff1;return this[_0x4f9e06(0x313)][_0x70153];}[a0_0x53bff1(0x150)](_0xb8f0ab){return _0xb8f0ab in this['_raw'];}[a0_0x53bff1(0x15f)](){const _0x40a4cc=a0_0x53bff1;return'DatasetItem('+this['name']+',\x20'+this[_0x40a4cc(0x1c8)]+')';}}class Operation{[a0_0x53bff1(0xfb)];['_raw'];[a0_0x53bff1(0x223)];constructor(_0x452c92,_0x52a49e,_0xcacc6e){const _0x4926c0=a0_0x53bff1;this[_0x4926c0(0xfb)]=_0x452c92,this[_0x4926c0(0x313)]=_0x52a49e,this['context']=_0xcacc6e;}[a0_0x53bff1(0x1f3)](){const _0x230095=a0_0x53bff1;return this[_0x230095(0xfb)];}[a0_0x53bff1(0x1e4)](){const _0x514af9=a0_0x53bff1,_0x3b4854=this[_0x514af9(0x201)]();return _0x3b4854?OPERATION_TYPE_DISPLAY_NAME[_0x3b4854]:this['name'];}['getType'](){const _0x2ef59c=a0_0x53bff1;return parseOperationType(this[_0x2ef59c(0xfb)]);}['isEnabled'](){const _0x5925ad=a0_0x53bff1;return this[_0x5925ad(0x313)]!=null&&this[_0x5925ad(0x313)]!==![];}['getMethod'](){const _0x16fb55=a0_0x53bff1;if(!this[_0x16fb55(0x1ba)]()||!this[_0x16fb55(0x313)])return'';const _0x22a7fa=this[_0x16fb55(0x313)]['method'];return typeof _0x22a7fa===_0x16fb55(0x2e0)?_0x22a7fa:_0x16fb55(0x187);}[a0_0x53bff1(0x25c)](){const _0x127826=a0_0x53bff1;if(!this['isEnabled']()||!this[_0x127826(0x313)])return'';const _0x57cb02=this[_0x127826(0x313)]['path'];return typeof _0x57cb02===_0x127826(0x2e0)?_0x57cb02:'';}['getFullUrl'](){const _0x845b9a=a0_0x53bff1;if(!this[_0x845b9a(0x1ba)]()||!this[_0x845b9a(0x313)])return'';const {host:_0x59490f,path:_0x8bf190}=this[_0x845b9a(0x313)],_0x5638d7=typeof _0x59490f===_0x845b9a(0x2e0)?_0x59490f:'',_0x58013e=typeof _0x8bf190===_0x845b9a(0x2e0)?_0x8bf190:'';return _0x5638d7&&_0x58013e?''+_0x5638d7+_0x58013e:_0x58013e;}[a0_0x53bff1(0x13b)](){return Object['keys'](this['getRequestParams']());}[a0_0x53bff1(0x18d)](){const _0x5de936=a0_0x53bff1,_0x5ba7aa=this[_0x5de936(0x1f1)]();return{'params':Object[_0x5de936(0x2d3)](_0x5ba7aa)[_0x5de936(0x1e1)](([_0x36b148,_0x18e972])=>{const _0x28babc=_0x5de936,_0x39810a=_0x18e972;return{'name':_0x36b148,'type':_0x39810a[_0x28babc(0x2ab)]||_0x28babc(0x215),'description':_0x39810a['description']||'-','required':_0x39810a['required']};})};}['parseRawRequestBody'](){const _0x570e5b=a0_0x53bff1;if(!this[_0x570e5b(0x1ba)]()||typeof this['_raw']===_0x570e5b(0xf5)||!this[_0x570e5b(0x313)]?.['requestBody'])return{};const _0x409b44=this[_0x570e5b(0x313)][_0x570e5b(0x130)];if(typeof _0x409b44!=='string')return!![]&&console[_0x570e5b(0x2f4)](_0x570e5b(0x1e9),_0x409b44),{};return parseRequestBody(_0x409b44);}['parseRawResponseBody'](){const _0x167c13=a0_0x53bff1;if(!this[_0x167c13(0x1ba)]()||typeof this['_raw']===_0x167c13(0xf5)||!this[_0x167c13(0x313)]?.[_0x167c13(0x2b4)])return null;const _0x47bdc7=this[_0x167c13(0x313)][_0x167c13(0x2b4)];if(typeof _0x47bdc7!==_0x167c13(0x2e0))return!![]&&console['warn']('[Operation.parseRawResponseBody]\x20responseBody\x20is\x20not\x20a\x20string:',_0x47bdc7),null;return parseResponseBody(_0x47bdc7);}[a0_0x53bff1(0x2c3)](_0x2d0018,_0x261ff8,_0x57ad1a,_0x3d120b){const _0x27508c=a0_0x53bff1;return generateExampleValue(_0x2d0018,_0x261ff8,_0x57ad1a,{'isPrimaryKey':_0x3d120b?.[_0x27508c(0x24e)],'description':_0x3d120b?.[_0x27508c(0x101)],'dbtableConfig':this[_0x27508c(0x223)]['dbtableConfig']});}['getFieldDefinition'](_0x4a45cb){const _0x4a6a9d=a0_0x53bff1;if(!Array['isArray'](this[_0x4a6a9d(0x223)][_0x4a6a9d(0x1b0)])){!![]&&console[_0x4a6a9d(0x2f4)]('[Operation.getFieldDefinition]\x20context.fields\x20is\x20not\x20an\x20array');return;}if(typeof _0x4a45cb!==_0x4a6a9d(0x2e0)){!![]&&console[_0x4a6a9d(0x2f4)](_0x4a6a9d(0x209),_0x4a45cb);return;}return this[_0x4a6a9d(0x223)][_0x4a6a9d(0x1b0)][_0x4a6a9d(0x1ae)](_0x5209d7=>_0x5209d7&&_0x5209d7[_0x4a6a9d(0x1dd)]===_0x4a45cb);}[a0_0x53bff1(0x15f)](){const _0x463134=a0_0x53bff1,_0x244f09=this[_0x463134(0x1ba)]()?'启用':'禁用';return this[_0x463134(0x1e4)]()+'('+this[_0x463134(0xfb)]+',\x20'+_0x244f09+')';}['getOperators'](){return[];}[a0_0x53bff1(0xde)](_0x5dbca2){return[];}[a0_0x53bff1(0x19b)](_0x32e74d){const _0x585d12=a0_0x53bff1,_0x48437d=this['getName'](),_0x2010da=_0x585d12(0x28c)+_0x32e74d+'.'+_0x48437d+_0x585d12(0x2ff),_0x581e50=_0x585d12(0x22e)+_0x32e74d+'.'+_0x48437d+_0x585d12(0x15e);return{'successCode':_0x2010da,'errorCode':_0x581e50};}['toJSON'](){const _0x996a4f=a0_0x53bff1;return{'name':this['getName'](),'displayName':this[_0x996a4f(0x1e4)](),'type':this[_0x996a4f(0x201)](),'enabled':this[_0x996a4f(0x1ba)](),'method':this['getMethod'](),'path':this[_0x996a4f(0x25c)](),'fullUrl':this[_0x996a4f(0x280)](),'requestFields':this[_0x996a4f(0x13b)](),'requestParams':this[_0x996a4f(0x1f1)](),'responseSchema':this['getResponseSchema'](),'requestExample':this['generateRequestExample'](),'responseExample':this['generateResponseExample']()};}}class GenericOperation extends Operation{[a0_0x53bff1(0xd3)];[a0_0x53bff1(0x1f1)](){const _0x6cb35c=a0_0x53bff1;return this[_0x6cb35c(0x289)]();}[a0_0x53bff1(0x10b)](){const _0x11f1d3=a0_0x53bff1;return this[_0x11f1d3(0x162)]();}[a0_0x53bff1(0x211)](){const _0xf73a1=a0_0x53bff1;if(this[_0xf73a1(0xd3)])return this[_0xf73a1(0xd3)];const _0x7ea231={},_0x23a880=this[_0xf73a1(0x1f1)](),_0x147862=this[_0xf73a1(0x201)]();if(Object[_0xf73a1(0x28a)](_0x23a880)[_0xf73a1(0x305)]===0x0&&_0x147862){const _0x3d0fd8=getFieldsForOperation(this[_0xf73a1(0x223)][_0xf73a1(0x1b0)],_0x147862,this[_0xf73a1(0x223)][_0xf73a1(0x2b8)]);return _0x3d0fd8[_0xf73a1(0x1b2)](_0x3ef6b6=>{const _0x4d52eb=_0xf73a1,_0x5a7c15=this[_0x4d52eb(0x2c3)](_0x3ef6b6[_0x4d52eb(0x1dd)],_0x3ef6b6['type'],typeof _0x3ef6b6['dbType']===_0x4d52eb(0x2e0)?_0x3ef6b6[_0x4d52eb(0x1c7)]:undefined,{'isPrimaryKey':_0x3ef6b6[_0x4d52eb(0x1dd)]===this[_0x4d52eb(0x223)][_0x4d52eb(0x2b8)],'description':_0x3ef6b6[_0x4d52eb(0x101)]||_0x3ef6b6[_0x4d52eb(0xfb)]});_0x7ea231[_0x3ef6b6[_0x4d52eb(0x1dd)]]=_0x5a7c15;}),this[_0xf73a1(0xd3)]=_0x7ea231,_0x7ea231;}return Object['entries'](_0x23a880)[_0xf73a1(0x1b2)](([_0x1fa516,_0x284912])=>{const _0x536cd0=_0xf73a1,_0x155ab3=_0x284912;let _0x5a2ded;if(typeof _0x155ab3[_0x536cd0(0x2ab)]===_0x536cd0(0x2e0))_0x5a2ded=_0x155ab3[_0x536cd0(0x2ab)];else _0x155ab3[_0x536cd0(0x2ab)]&&typeof _0x155ab3['type']==='object'?_0x5a2ded=_0x155ab3[_0x536cd0(0x2ab)]['type']||_0x536cd0(0x288):_0x5a2ded=_0x536cd0(0x288);const _0x1f0d5c=_0x155ab3[_0x536cd0(0x101)],_0xd7bb0f=this[_0x536cd0(0x314)](_0x1fa516);if(_0x1fa516===_0x536cd0(0x17d))_0x7ea231[_0x1fa516]=0x1;else{if(_0x1fa516==='pageSize')_0x7ea231[_0x1fa516]=0xa;else _0x1fa516==='id'?_0x7ea231[_0x1fa516]=0x1:_0x7ea231[_0x1fa516]=this['generateFieldExample'](_0x1fa516,_0x5a2ded,typeof _0xd7bb0f?.[_0x536cd0(0x1c7)]===_0x536cd0(0x2e0)?_0xd7bb0f['dbType']:undefined,{'isPrimaryKey':_0x1fa516===this['context'][_0x536cd0(0x2b8)]||_0x1fa516==='id','description':_0x1f0d5c||_0xd7bb0f?.[_0x536cd0(0x101)]||_0xd7bb0f?.[_0x536cd0(0xfb)]});}}),this[_0xf73a1(0xd3)]=_0x7ea231,_0x7ea231;}[a0_0x53bff1(0x154)](){const _0x2392a3=a0_0x53bff1,_0x56491d=this[_0x2392a3(0x10b)]();if(!_0x56491d)return{'success':!![],'msg':_0x2392a3(0xf0),'errorMsg':'','errorCode':_0x2392a3(0x2eb),'data':null};return this[_0x2392a3(0x1df)](_0x56491d);}[a0_0x53bff1(0x1df)](_0x1afdf2){const _0x3c82d7=a0_0x53bff1;if(!_0x1afdf2||typeof _0x1afdf2!==_0x3c82d7(0xdc))return{};if(Array['isArray'](_0x1afdf2)){if(_0x1afdf2['length']>0x0)return[this[_0x3c82d7(0x1df)](_0x1afdf2[0x0])];return[];}const _0x3778bd={};return Object[_0x3c82d7(0x28a)](_0x1afdf2)[_0x3c82d7(0x1b2)](_0xe380c0=>{const _0x50d26b=_0x3c82d7,_0x67cdf2=_0x1afdf2[_0xe380c0];if(_0x67cdf2&&typeof _0x67cdf2==='object'&&!Array[_0x50d26b(0x153)](_0x67cdf2)&&_0x67cdf2[_0x50d26b(0x2ab)]){const _0xc80f2d=_0x67cdf2;let _0xd63529;if(typeof _0xc80f2d[_0x50d26b(0x2ab)]===_0x50d26b(0x2e0))_0xd63529=_0xc80f2d[_0x50d26b(0x2ab)];else _0xc80f2d[_0x50d26b(0x2ab)]&&typeof _0xc80f2d[_0x50d26b(0x2ab)]===_0x50d26b(0xdc)?_0xd63529=_0xc80f2d[_0x50d26b(0x2ab)]['type']||_0x50d26b(0x288):_0xd63529='TEXT';const _0x458122=_0xc80f2d['description'];_0x3778bd[_0xe380c0]=this['generateFieldExample'](_0xe380c0,_0xd63529,undefined,{'description':_0x458122});}else{if(Array['isArray'](_0x67cdf2))_0x3778bd[_0xe380c0]=_0x67cdf2[_0x50d26b(0x305)]>0x0?[this['generateFromSchema'](_0x67cdf2[0x0])]:[];else _0x67cdf2&&typeof _0x67cdf2==='object'?_0x3778bd[_0xe380c0]=this[_0x50d26b(0x1df)](_0x67cdf2):_0x3778bd[_0xe380c0]=_0x67cdf2;}}),_0x3778bd;}[a0_0x53bff1(0x301)](_0x4a92ea,_0xa143f2){const _0x182d6c=a0_0x53bff1,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0xa143f2||{},_0x3a77eb=this[_0x182d6c(0x1f3)](),_0x5f5468=this[_0x182d6c(0x201)](),_0x14debd=this['getRequestFields'](),_0xfd1974=this[_0x182d6c(0x211)](),_0x13ab5f=_0x5d4609=>{const _0x581594=_0x182d6c;if(Object[_0x581594(0x28a)](_0x5d4609)[_0x581594(0x305)]===0x0)return'{}';const _0xfe3833=JSON['stringify'](_0x5d4609,null,0x2)[_0x581594(0xf8)]('\x0a')[_0x581594(0x1e1)]((_0x1f4760,_0x59a39c)=>_0x59a39c===0x0?_0x1f4760:indent+_0x1f4760)[_0x581594(0x2e8)]('\x0a');return _0xfe3833;};switch(_0x5f5468){case'getOne':case _0x182d6c(0x1e0):return _0x182d6c(0x2d7)+_0x4a92ea+'.'+_0x3a77eb+_0x182d6c(0x277);case'update':if(useFullExample&&Object[_0x182d6c(0x28a)](_0xfd1974)['length']>0x0)return _0x182d6c(0x2d7)+_0x4a92ea+'.'+_0x3a77eb+'(id,\x20'+_0x13ab5f(_0xfd1974)+');';return'const\x20result\x20=\x20await\x20client.models.'+_0x4a92ea+'.'+_0x3a77eb+_0x182d6c(0x1b1);case _0x182d6c(0x2f5):case _0x182d6c(0xe1):case'getSelectOptions':default:if(_0x14debd[_0x182d6c(0x305)]>0x0){if(useFullExample&&Object['keys'](_0xfd1974)[_0x182d6c(0x305)]>0x0)return _0x182d6c(0x2d7)+_0x4a92ea+'.'+_0x3a77eb+'('+_0x13ab5f(_0xfd1974)+');';else{const _0x11127a=Object[_0x182d6c(0x28a)](_0xfd1974);if(_0x11127a[_0x182d6c(0x305)]>0x0){const _0x1df1f5=_0x11127a['slice'](0x0,0x2)[_0x182d6c(0x2e8)](',\x20');return _0x182d6c(0x2d7)+_0x4a92ea+'.'+_0x3a77eb+'({\x20'+_0x1df1f5+_0x182d6c(0x19f);}else return'const\x20result\x20=\x20await\x20client.models.'+_0x4a92ea+'.'+_0x3a77eb+_0x182d6c(0x276);}}else return _0x182d6c(0x2d7)+_0x4a92ea+'.'+_0x3a77eb+_0x182d6c(0x171);}}['generateRequestAllExamples'](){const _0xa9270b=a0_0x53bff1;return[{'title':_0xa9270b(0x1e8),'data':this['generateRequestExample']()}];}}class GetSelectOptionsOperation extends GenericOperation{[a0_0x53bff1(0x1f1)](){const _0x2e1726=a0_0x53bff1,_0x578faf=super[_0x2e1726(0x1f1)](),_0x301e83=Object[_0x2e1726(0x28a)](_0x578faf);return(_0x301e83[_0x2e1726(0x305)]===0x0||_0x301e83['length']===0x1&&_0x301e83[0x0]==='code')&&(!_0x578faf[_0x2e1726(0x1dd)]&&(_0x578faf[_0x2e1726(0x1dd)]={'type':'String','description':_0x2e1726(0x1a9)}),_0x578faf['label']={'type':_0x2e1726(0x215),'description':_0x2e1726(0x237)}),_0x578faf;}['generateRequestExample'](){const _0x2e3d14=a0_0x53bff1;return{'code':'field_name','label':_0x2e3d14(0x106)};}[a0_0x53bff1(0x301)](_0x4ec1ac){const _0x9d5458=a0_0x53bff1,_0x41b848=this[_0x9d5458(0x1f3)]();return _0x9d5458(0x2d7)+_0x4ec1ac+'.'+_0x41b848+_0x9d5458(0x202);}}class GetListOperation extends GenericOperation{[a0_0x53bff1(0x1f1)](){const _0x44d4d1=a0_0x53bff1,_0x163a66=super[_0x44d4d1(0x1f1)](),{currentPage:_0x2a1c1c,pageSize:_0x2fe1eb,..._0x5c83df}=_0x163a66,_0x12e4e2={};return Object['entries'](_0x5c83df)[_0x44d4d1(0x1b2)](([_0x5dee5c,_0x27d7b6])=>{const _0x440894=_0x44d4d1;if(typeof _0x27d7b6===_0x440894(0xdc)&&_0x27d7b6!==null){const _0x32a2f1=_0x27d7b6,_0x5310e8=_0x32a2f1['description']||'';_0x12e4e2[_0x5dee5c]={..._0x32a2f1,'description':_0x5310e8?_0x5310e8+_0x440894(0x146):_0x440894(0x262)};}else _0x12e4e2[_0x5dee5c]=_0x27d7b6;}),{..._0x12e4e2,'currentPage':{...typeof _0x2a1c1c===_0x44d4d1(0xdc)?_0x2a1c1c:{},'type':_0x44d4d1(0xea),'description':_0x44d4d1(0x226)},'pageSize':{...typeof _0x2fe1eb===_0x44d4d1(0xdc)?_0x2fe1eb:{},'type':'Number','description':'每页数量'}};}[a0_0x53bff1(0x211)](_0x4cffbb){const _0x49e28e=a0_0x53bff1,{useArrayValues:useArrayValues=!![]}=_0x4cffbb||{},_0xbac407=super[_0x49e28e(0x211)](),{currentPage:_0x48d423,pageSize:_0x1c6b13,..._0x2b3c79}=_0xbac407;if(!useArrayValues)return{..._0x2b3c79,'currentPage':_0x48d423??0x1,'pageSize':_0x1c6b13??0xa};const _0x5e5418={},_0x47d202=['id',_0x49e28e(0x203),_0x49e28e(0x1dd),_0x49e28e(0x2ab)];return Object[_0x49e28e(0x2d3)](_0x2b3c79)[_0x49e28e(0x1b2)](([_0x43ac2a,_0x4a130b],_0x58546b)=>{const _0x454901=_0x49e28e,_0x582368=_0x47d202[_0x454901(0x135)](_0x424327=>_0x43ac2a[_0x454901(0x184)]()[_0x454901(0x220)](_0x424327))||_0x58546b%0x3===0x0;if(_0x582368&&_0x4a130b!==null&&_0x4a130b!==undefined){if(typeof _0x4a130b==='number')_0x5e5418[_0x43ac2a]=[_0x4a130b,_0x4a130b+0x1,_0x4a130b+0x2];else typeof _0x4a130b===_0x454901(0x2e0)?_0x5e5418[_0x43ac2a]=[_0x4a130b,_0x4a130b+'_2',_0x4a130b+'_3']:_0x5e5418[_0x43ac2a]=[_0x4a130b];}else _0x5e5418[_0x43ac2a]=_0x4a130b;}),{..._0x5e5418,'currentPage':_0x48d423??0x1,'pageSize':_0x1c6b13??0xa};}[a0_0x53bff1(0x2aa)](){const _0x191830=a0_0x53bff1;return this[_0x191830(0x211)]({'useArrayValues':![]});}['generateRequestAllExamples'](){const _0x3469f2=a0_0x53bff1;return[{'title':_0x3469f2(0x1c1),'description':_0x3469f2(0x22b),'data':this['generateSingleValueExample']()},{'title':_0x3469f2(0x25b),'description':'支持多个条件','data':this[_0x3469f2(0x211)]()}];}[a0_0x53bff1(0x301)](_0x231778,_0x175bd1){const _0x2b981c=a0_0x53bff1,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x175bd1||{},_0x15ea2b=this[_0x2b981c(0x1f3)](),_0x1a6414=this[_0x2b981c(0x211)]({'useArrayValues':!![]}),{currentPage:_0x4cabbc,pageSize:_0x283e8c,..._0x47c772}=_0x1a6414;if(useFullExample&&Object[_0x2b981c(0x28a)](_0x1a6414)[_0x2b981c(0x305)]>0x0){const _0x461b68=Object['keys'](_0x47c772)[_0x2b981c(0x305)]>0x0;if(_0x461b68){const _0x329418=this[_0x2b981c(0x2aa)](),_0x34b258=_0x1fcdf2=>{const _0x3ad6eb=_0x2b981c;return JSON[_0x3ad6eb(0x1aa)](_0x1fcdf2,null,0x2)[_0x3ad6eb(0xf8)]('\x0a')[_0x3ad6eb(0x1e1)]((_0x316143,_0x54a0bc)=>_0x54a0bc===0x0?_0x316143:indent+_0x316143)[_0x3ad6eb(0x2e8)]('\x0a');};return _0x2b981c(0x265)+_0x231778+'.'+_0x15ea2b+'('+_0x34b258(_0x329418)+_0x2b981c(0x108)+_0x231778+'.'+_0x15ea2b+'('+_0x34b258(_0x1a6414)+');';}else{const _0x2a4215=JSON['stringify'](_0x1a6414,null,0x2)[_0x2b981c(0xf8)]('\x0a')[_0x2b981c(0x1e1)]((_0x43f6db,_0x4c0686)=>_0x4c0686===0x0?_0x43f6db:indent+_0x43f6db)[_0x2b981c(0x2e8)]('\x0a');return _0x2b981c(0x2d7)+_0x231778+'.'+_0x15ea2b+'('+_0x2a4215+');';}}if(Object[_0x2b981c(0x28a)](_0x47c772)[_0x2b981c(0x305)]>0x0){const _0x1b140b=Object[_0x2b981c(0x28a)](_0x47c772)[0x0];return _0x2b981c(0x2d7)+_0x231778+'.'+_0x15ea2b+_0x2b981c(0x20d)+_0x1b140b+_0x2b981c(0x25d);}return _0x2b981c(0x2d7)+_0x231778+'.'+_0x15ea2b+_0x2b981c(0xfa);}}var FILTER_OPERATORS=[a0_0x53bff1(0x1a0),'$ne','$gte','$gteq','$lte','$lteq','$in',a0_0x53bff1(0x1a1),a0_0x53bff1(0x115),a0_0x53bff1(0x1f0),a0_0x53bff1(0x1f7),a0_0x53bff1(0x2de)];class FilterOperation extends GenericOperation{constructor(_0x5c3964,_0x341354,_0x35abfe){super(_0x5c3964,_0x341354,_0x35abfe);}[a0_0x53bff1(0x1f6)](){return FILTER_OPERATORS;}[a0_0x53bff1(0xde)](_0x4b8907){const _0x10612d=a0_0x53bff1,_0x5d5b86=this[_0x10612d(0x314)](_0x4b8907);if(!_0x5d5b86)return[];return this[_0x10612d(0x258)](_0x5d5b86['type']);}[a0_0x53bff1(0x1f1)](){const _0x5b2611=a0_0x53bff1,_0x406bfb=super[_0x5b2611(0x1f1)]();return{..._0x406bfb,'where':{'type':'Object','description':'查询条件(支持\x2012\x20种操作符:$eq,\x20$ne,\x20$gte,\x20$gteq,\x20$lte,\x20$lteq,\x20$in,\x20$contain,\x20$startWith,\x20$endWith,\x20$and,\x20$or)','required':![]},'select':{'type':_0x5b2611(0x1bd),'description':_0x5b2611(0x300),'required':![]},'orderBy':{'type':_0x5b2611(0x1d9),'description':_0x5b2611(0x1e6),'required':![]},'currentPage':{'type':_0x5b2611(0xea),'description':_0x5b2611(0x226),'required':![],'default':0x1},'pageSize':{'type':_0x5b2611(0xea),'description':_0x5b2611(0x1da),'required':![],'default':0xa}};}[a0_0x53bff1(0x211)](){const _0x318d4b=a0_0x53bff1,_0x1a9778=this[_0x318d4b(0x223)]['fields']||[];if(_0x1a9778[_0x318d4b(0x305)]===0x0)return{'where':{},'currentPage':0x1,'pageSize':0x14};const _0xd4f636={},_0x4bf08e=_0x1a9778[_0x318d4b(0x27a)](0x0,Math[_0x318d4b(0x303)](0x3,_0x1a9778[_0x318d4b(0x305)]));_0x4bf08e[_0x318d4b(0x1b2)](_0x58c535=>{const _0x26280c=_0x318d4b,_0x3b53cb=this[_0x26280c(0x258)](_0x58c535[_0x26280c(0x2ab)]);if(_0x3b53cb[_0x26280c(0x305)]===0x0)return;const _0x3c7627=this[_0x26280c(0xf9)](_0x58c535[_0x26280c(0x2ab)],_0x3b53cb),_0x31f312=this['generateExampleValue'](_0x58c535,_0x3c7627);_0xd4f636[_0x58c535[_0x26280c(0x1dd)]]={[_0x3c7627]:_0x31f312};});const _0x3a4b80=_0x1a9778[_0x318d4b(0x27a)](0x0,Math['min'](0x5,_0x1a9778[_0x318d4b(0x305)]))[_0x318d4b(0x1e1)](_0x395dce=>_0x395dce[_0x318d4b(0x1dd)]),_0x7a1843=_0x1a9778[0x0]?.[_0x318d4b(0x1dd)]||'id';return{'where':_0xd4f636,'select':_0x3a4b80,'orderBy':[{[_0x7a1843]:_0x318d4b(0x204)}],'currentPage':0x1,'pageSize':0x14};}['generateSDKCallCode'](_0x3305eb,_0x376c59){const _0x206e24=a0_0x53bff1,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x376c59||{},_0x24999b=this['getName'](),_0x2fba5f=this[_0x206e24(0x211)](),_0x11c2fe=_0x48d59d=>{const _0x34493a=_0x206e24;return JSON[_0x34493a(0x1aa)](_0x48d59d,null,0x2)[_0x34493a(0xf8)]('\x0a')[_0x34493a(0x1e1)]((_0x41a647,_0x2d727e)=>_0x2d727e===0x0?_0x41a647:indent+_0x41a647)['join']('\x0a');};if(useFullExample){const _0x5d63ad=this[_0x206e24(0x223)][_0x206e24(0x1b0)]||[],_0x475a7f={'where':_0x5d63ad[0x0]?{[_0x5d63ad[0x0][_0x206e24(0x1dd)]]:{'$eq':this[_0x206e24(0x1e7)](_0x5d63ad[0x0],'$eq')}}:{},'select':_0x5d63ad[_0x206e24(0x27a)](0x0,0x3)[_0x206e24(0x1e1)](_0x3de78d=>_0x3de78d[_0x206e24(0x1dd)]),'currentPage':0x1,'pageSize':0x14};let _0x2613c3='';if(_0x5d63ad[_0x206e24(0x305)]>=0x3){const _0x38c949={'$and':[]},_0x40b316=[];if(_0x5d63ad['length']>0x0){const _0xe19b07=_0x5d63ad[_0x206e24(0x1ae)](_0x593f14=>[_0x206e24(0x194),_0x206e24(0x228),_0x206e24(0x29b)][_0x206e24(0x220)](_0x593f14[_0x206e24(0x2ab)][_0x206e24(0x311)]()));_0xe19b07&&_0x40b316[_0x206e24(0xd1)]({[_0xe19b07[_0x206e24(0x1dd)]]:{'$gte':0x0,'$lte':0x64}});}if(_0x5d63ad[_0x206e24(0x305)]>0x1){const _0x489e6f=_0x5d63ad[_0x206e24(0x1ae)](_0x42c4f2=>[_0x206e24(0x27e),_0x206e24(0x288),'VARCHAR'][_0x206e24(0x220)](_0x42c4f2[_0x206e24(0x2ab)][_0x206e24(0x311)]()));_0x489e6f&&_0x40b316['push']({[_0x489e6f[_0x206e24(0x1dd)]]:{'$contain':_0x206e24(0xef)}});}if(_0x40b316[_0x206e24(0x305)]>0x0){_0x38c949[_0x206e24(0x1f7)]=_0x40b316;const _0x2326e9={'where':_0x38c949,'select':_0x5d63ad[_0x206e24(0x27a)](0x0,0x4)[_0x206e24(0x1e1)](_0x5829bf=>_0x5829bf['code']),'orderBy':[{[_0x5d63ad[0x0][_0x206e24(0x1dd)]]:'DESC'}],'currentPage':0x1,'pageSize':0x14};_0x2613c3=_0x206e24(0x181)+_0x3305eb+'.'+_0x24999b+'('+_0x11c2fe(_0x2326e9)+');';}}return _0x206e24(0x16d)+_0x3305eb+'.'+_0x24999b+'('+_0x11c2fe(_0x475a7f)+');'+_0x2613c3;}const _0x578bc5=JSON['stringify'](_0x2fba5f,null,0x2)[_0x206e24(0xf8)]('\x0a')[_0x206e24(0x1e1)]((_0x388529,_0x4f0cb5)=>_0x4f0cb5===0x0?_0x388529:indent+_0x388529)[_0x206e24(0x2e8)]('\x0a');return'const\x20result\x20=\x20await\x20client.models.'+_0x3305eb+'.'+_0x24999b+'('+_0x578bc5+');';}[a0_0x53bff1(0x258)](_0x549566){const _0x562186=a0_0x53bff1,_0x2f2fb6=_0x549566[_0x562186(0x311)](),_0x4897f8=[];if([_0x562186(0x194),_0x562186(0x228),'BIGINT',_0x562186(0x2f6)][_0x562186(0x220)](_0x2f2fb6))_0x4897f8[_0x562186(0xd1)](_0x562186(0x1a0),'$ne',_0x562186(0x1b4),_0x562186(0x141),_0x562186(0x15c),_0x562186(0x252),_0x562186(0x14a));else{if([_0x562186(0x27e),_0x562186(0x288),_0x562186(0x1d3)][_0x562186(0x220)](_0x2f2fb6))_0x4897f8[_0x562186(0xd1)](_0x562186(0x1a0),'$ne',_0x562186(0x14a),_0x562186(0x1a1),_0x562186(0x115),_0x562186(0x1f0));else{if(['DATE',_0x562186(0xee),'TIMESTAMP'][_0x562186(0x220)](_0x2f2fb6))_0x4897f8[_0x562186(0xd1)](_0x562186(0x1a0),'$ne','$gte',_0x562186(0x141),'$gteq',_0x562186(0x252));else[_0x562186(0x2bb),_0x562186(0x172)]['includes'](_0x2f2fb6)?_0x4897f8[_0x562186(0xd1)](_0x562186(0x1a0),_0x562186(0x156)):_0x4897f8[_0x562186(0xd1)](_0x562186(0x1a0),'$ne');}}return _0x4897f8;}[a0_0x53bff1(0xf9)](_0x1e31c8,_0x53ed3e){const _0x5c4865=a0_0x53bff1,_0xaeb488=_0x1e31c8[_0x5c4865(0x311)]();if([_0x5c4865(0x194),_0x5c4865(0x228),'BIGINT',_0x5c4865(0x2f6)][_0x5c4865(0x220)](_0xaeb488))return _0x53ed3e[_0x5c4865(0x220)](_0x5c4865(0x1b4))?_0x5c4865(0x1b4):_0x5c4865(0x1a0);if([_0x5c4865(0x27e),'TEXT','VARCHAR'][_0x5c4865(0x220)](_0xaeb488))return _0x53ed3e[_0x5c4865(0x220)]('$contain')?_0x5c4865(0x1a1):'$eq';if([_0x5c4865(0x1bb),'DATETIME',_0x5c4865(0x1b8)]['includes'](_0xaeb488))return _0x53ed3e[_0x5c4865(0x220)]('$gte')?_0x5c4865(0x1b4):'$eq';return _0x5c4865(0x1a0);}['generateExampleValue'](_0x5ef852,_0x3ad995){const _0x4a363b=a0_0x53bff1,_0x32b3d3=String(_0x5ef852['type']||'')[_0x4a363b(0x311)]();if(_0x5ef852[_0x4a363b(0x114)])try{const _0x425299=typeof _0x5ef852[_0x4a363b(0x114)]===_0x4a363b(0x2e0)?JSON[_0x4a363b(0x2b5)](_0x5ef852[_0x4a363b(0x114)]):_0x5ef852['extend'];if(_0x425299[_0x4a363b(0x247)]&&Array['isArray'](_0x425299[_0x4a363b(0x247)])&&_0x425299[_0x4a363b(0x247)]['length']>0x0){if(_0x3ad995==='$in')return _0x425299['options'][_0x4a363b(0x27a)](0x0,0x2)[_0x4a363b(0x1e1)](_0x3a8d0c=>_0x3a8d0c[_0x4a363b(0x2a6)]);return _0x425299[_0x4a363b(0x247)][0x0]['value'];}}catch{}if([_0x4a363b(0x194),_0x4a363b(0x228),_0x4a363b(0x29b),_0x4a363b(0x2f6)][_0x4a363b(0x220)](_0x32b3d3)){if(_0x3ad995===_0x4a363b(0x14a))return[0x1,0x2,0x3];if(_0x3ad995===_0x4a363b(0x1b4)||_0x3ad995===_0x4a363b(0x15c))return 0x0;if(_0x3ad995===_0x4a363b(0x141)||_0x3ad995===_0x4a363b(0x252))return 0x64;return 0x1;}if(['STRING',_0x4a363b(0x288),_0x4a363b(0x1d3)][_0x4a363b(0x220)](_0x32b3d3)){if(_0x3ad995==='$in')return['value1','value2'];if(_0x3ad995===_0x4a363b(0x1a1))return _0x4a363b(0xef);if(_0x3ad995===_0x4a363b(0x115))return _0x4a363b(0x302);if(_0x3ad995===_0x4a363b(0x1f0))return _0x4a363b(0x268);return'value';}if(['DATE',_0x4a363b(0xee),'TIMESTAMP'][_0x4a363b(0x220)](_0x32b3d3)){if(_0x3ad995==='$gte'||_0x3ad995===_0x4a363b(0x15c))return _0x4a363b(0x111);if(_0x3ad995===_0x4a363b(0x141)||_0x3ad995==='$lteq')return _0x4a363b(0x1c0);return'2024-01-01';}if([_0x4a363b(0x2bb),_0x4a363b(0x172)][_0x4a363b(0x220)](_0x32b3d3))return!![];return _0x3ad995==='$in'?[_0x4a363b(0x278),_0x4a363b(0x22a)]:_0x4a363b(0x2a6);}['getRequestParamsDocInfo'](){const _0x1e1d4f=a0_0x53bff1,_0x91611a=super[_0x1e1d4f(0x1f1)](),_0x25203e=Object['entries'](_0x91611a)[_0x1e1d4f(0x1e1)](([_0x119ca3,_0x34d7ec])=>{const _0xd461c5=_0x1e1d4f,_0x31fe48=_0x34d7ec;return{'name':_0x119ca3,'type':_0x31fe48[_0xd461c5(0x2ab)]||_0xd461c5(0x215),'description':_0x31fe48[_0xd461c5(0x101)]||'-','required':_0x31fe48['required']};});return{'description':_0x1e1d4f(0x1eb),'params':_0x25203e};}}var AGGREGATE_FUNCTIONS=[a0_0x53bff1(0x267),a0_0x53bff1(0x16a),a0_0x53bff1(0x145),a0_0x53bff1(0x158),'min'];class AggregateOperation extends GenericOperation{constructor(_0x50486f,_0x42b6c1,_0x500a12){super(_0x50486f,_0x42b6c1,_0x500a12);}[a0_0x53bff1(0x104)](){return AGGREGATE_FUNCTIONS;}['getRequestParams'](){const _0x1d9e4b=a0_0x53bff1,_0x191ba2=super[_0x1d9e4b(0x1f1)]();return{..._0x191ba2,'where':{'type':'Object','description':_0x1d9e4b(0xf3),'required':![]},'groupBy':{'type':'String[]','description':_0x1d9e4b(0x2f8),'required':![]},'aggregates':{'type':_0x1d9e4b(0x307),'description':_0x1d9e4b(0x148),'required':![]}};}['generateRequestExample'](){const _0x50032e=a0_0x53bff1,_0x1bb7ba=this[_0x50032e(0x223)][_0x50032e(0x1b0)]||[];if(_0x1bb7ba[_0x50032e(0x305)]===0x0)return{'where':{},'groupBy':[],'aggregates':[]};const _0xdfae6a={},_0x5d54c0=_0x1bb7ba[_0x50032e(0x27a)](0x0,Math[_0x50032e(0x303)](0x3,_0x1bb7ba['length']));_0x5d54c0[_0x50032e(0x1b2)](_0x483879=>{const _0x1e721c=_0x50032e,_0x20b5e3=this[_0x1e721c(0x258)](_0x483879['type']);if(_0x20b5e3[_0x1e721c(0x305)]===0x0)return;const _0x324920=this['selectBestOperator'](_0x483879['type'],_0x20b5e3),_0x3f6877=this[_0x1e721c(0x1e7)](_0x483879,_0x324920);_0xdfae6a[_0x483879[_0x1e721c(0x1dd)]]={[_0x324920]:_0x3f6877};});const _0x3719fd=_0x1bb7ba['slice'](0x0,Math[_0x50032e(0x303)](0x2,_0x1bb7ba[_0x50032e(0x305)]))[_0x50032e(0x1e1)](_0x49d2dd=>_0x49d2dd[_0x50032e(0x1dd)]),_0x33e73f=[],_0x37ee59=_0x1bb7ba[_0x50032e(0x1ce)](_0x2a8289=>this[_0x50032e(0x2d6)](_0x2a8289['type']));if(_0x37ee59[_0x50032e(0x305)]>0x0){const _0x4ad66d=_0x37ee59[0x0];_0x33e73f[_0x50032e(0xd1)]({'type':_0x50032e(0x267),'field':_0x4ad66d[_0x50032e(0x1dd)],'alias':_0x4ad66d['code']+_0x50032e(0x160),'distinct':![],'round':!![],'precision':0x2}),_0x33e73f[_0x50032e(0xd1)]({'type':'avg','field':_0x4ad66d[_0x50032e(0x1dd)],'alias':_0x4ad66d['code']+'_avg','distinct':![],'round':!![],'precision':0x2}),_0x33e73f['push']({'type':_0x50032e(0x158),'field':_0x4ad66d[_0x50032e(0x1dd)],'alias':_0x4ad66d[_0x50032e(0x1dd)]+_0x50032e(0x2ef),'distinct':![],'round':!![],'precision':0x2}),_0x33e73f[_0x50032e(0xd1)]({'type':_0x50032e(0x303),'field':_0x4ad66d[_0x50032e(0x1dd)],'alias':_0x4ad66d[_0x50032e(0x1dd)]+_0x50032e(0x1a7),'distinct':![],'round':!![],'precision':0x2});}else{if(_0x1bb7ba[_0x50032e(0x305)]>0x0){const _0x544efe=_0x1bb7ba[0x0];_0x33e73f['push']({'type':_0x50032e(0x16a),'field':_0x544efe[_0x50032e(0x1dd)],'alias':'total_count','distinct':!![]});}}const _0x3e1127=[];return _0x1bb7ba[_0x50032e(0x305)]>0x0&&_0x3e1127[_0x50032e(0xd1)]({[_0x1bb7ba[0x0][_0x50032e(0x1dd)]]:_0x50032e(0x1fe)}),{'where':_0xdfae6a,'groupBy':_0x3719fd,'aggregates':_0x33e73f,'orderBy':_0x3e1127};}[a0_0x53bff1(0x301)](_0x361606,_0x5b6cc0){const _0x587555=a0_0x53bff1,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x5b6cc0||{},_0xb52b51=this['getName'](),_0x1a4c3a=this[_0x587555(0x211)](),_0x15d2e3=_0x2e6fce=>{const _0x2af376=_0x587555;return JSON['stringify'](_0x2e6fce,null,0x2)[_0x2af376(0xf8)]('\x0a')[_0x2af376(0x1e1)]((_0x8488d3,_0x28ff23)=>_0x28ff23===0x0?_0x8488d3:indent+_0x8488d3)['join']('\x0a');};if(useFullExample){const _0x176bd7=this[_0x587555(0x223)][_0x587555(0x1b0)]||[],_0x3b22ee=_0x176bd7['filter'](_0xccfac9=>this[_0x587555(0x2d6)](_0xccfac9['type'])),_0x1eaa8e={'where':_0x176bd7[0x0]?{[_0x176bd7[0x0][_0x587555(0x1dd)]]:{'$eq':this['generateExampleValue'](_0x176bd7[0x0],_0x587555(0x1a0))}}:{},'aggregates':_0x3b22ee[_0x587555(0x305)]>0x0?[{'type':_0x587555(0x267),'field':_0x3b22ee[0x0][_0x587555(0x1dd)],'alias':_0x3b22ee[0x0][_0x587555(0x1dd)]+_0x587555(0x160),'distinct':![],'round':!![],'precision':0x2}]:[{'type':_0x587555(0x16a),'field':_0x176bd7[0x0]?.[_0x587555(0x1dd)],'alias':_0x587555(0x299),'distinct':!![]}],'orderBy':[{[_0x176bd7[0x0]['code']]:_0x587555(0x1fe)}]};let _0x17a30f='';return _0x176bd7[_0x587555(0x305)]>=0x3&&(_0x17a30f=_0x587555(0x2c8)+_0x361606+'.'+_0xb52b51+'('+_0x15d2e3(_0x1a4c3a)+');'),_0x587555(0x1be)+_0x361606+'.'+_0xb52b51+'('+_0x15d2e3(_0x1eaa8e)+');'+_0x17a30f;}const _0x33fbe7=JSON[_0x587555(0x1aa)](_0x1a4c3a,null,0x2)[_0x587555(0xf8)]('\x0a')['map']((_0xbe299b,_0x5d3e57)=>_0x5d3e57===0x0?_0xbe299b:indent+_0xbe299b)['join']('\x0a');return _0x587555(0x2d7)+_0x361606+'.'+_0xb52b51+'('+_0x33fbe7+');';}['isNumericField'](_0x2bfd1e){const _0x1482b5=a0_0x53bff1,_0x6a4486=_0x2bfd1e[_0x1482b5(0x311)]();return['NUMBER',_0x1482b5(0x228),_0x1482b5(0x29b),_0x1482b5(0x2f6)][_0x1482b5(0x220)](_0x6a4486);}['getApplicableOperators'](_0x5a3f42){const _0x301533=a0_0x53bff1,_0x122199=_0x5a3f42['toUpperCase'](),_0x1e9ee9=[];if([_0x301533(0x194),_0x301533(0x228),_0x301533(0x29b),'DECIMAL'][_0x301533(0x220)](_0x122199))_0x1e9ee9[_0x301533(0xd1)]('$eq',_0x301533(0x156),_0x301533(0x1b4),_0x301533(0x141),_0x301533(0x15c),'$lteq','$in');else{if([_0x301533(0x27e),'TEXT',_0x301533(0x1d3)][_0x301533(0x220)](_0x122199))_0x1e9ee9[_0x301533(0xd1)](_0x301533(0x1a0),_0x301533(0x156),_0x301533(0x14a),_0x301533(0x1a1),'$startWith',_0x301533(0x1f0));else{if([_0x301533(0x1bb),_0x301533(0xee),'TIMESTAMP'][_0x301533(0x220)](_0x122199))_0x1e9ee9[_0x301533(0xd1)](_0x301533(0x1a0),_0x301533(0x156),_0x301533(0x1b4),_0x301533(0x141),_0x301533(0x15c),_0x301533(0x252));else[_0x301533(0x2bb),_0x301533(0x172)][_0x301533(0x220)](_0x122199)?_0x1e9ee9[_0x301533(0xd1)](_0x301533(0x1a0),'$ne'):_0x1e9ee9[_0x301533(0xd1)](_0x301533(0x1a0),_0x301533(0x156));}}return _0x1e9ee9;}['selectBestOperator'](_0x4b127d,_0x5ba36d){const _0x2eda95=a0_0x53bff1,_0x448353=_0x4b127d[_0x2eda95(0x311)]();if([_0x2eda95(0x194),_0x2eda95(0x228),_0x2eda95(0x29b),'DECIMAL']['includes'](_0x448353))return _0x5ba36d['includes'](_0x2eda95(0x1b4))?'$gte':_0x2eda95(0x1a0);if([_0x2eda95(0x27e),_0x2eda95(0x288),'VARCHAR'][_0x2eda95(0x220)](_0x448353))return _0x5ba36d[_0x2eda95(0x220)](_0x2eda95(0x1a1))?_0x2eda95(0x1a1):_0x2eda95(0x1a0);if(['DATE',_0x2eda95(0xee),'TIMESTAMP'][_0x2eda95(0x220)](_0x448353))return _0x5ba36d[_0x2eda95(0x220)](_0x2eda95(0x1b4))?_0x2eda95(0x1b4):_0x2eda95(0x1a0);return _0x2eda95(0x1a0);}['generateExampleValue'](_0x4a9ebb,_0x54b1e6){const _0x3d5f3d=a0_0x53bff1,_0x111524=String(_0x4a9ebb['type']||'')[_0x3d5f3d(0x311)]();if(_0x4a9ebb[_0x3d5f3d(0x114)])try{const _0x376b9e=typeof _0x4a9ebb[_0x3d5f3d(0x114)]===_0x3d5f3d(0x2e0)?JSON[_0x3d5f3d(0x2b5)](_0x4a9ebb[_0x3d5f3d(0x114)]):_0x4a9ebb['extend'];if(_0x376b9e[_0x3d5f3d(0x247)]&&Array['isArray'](_0x376b9e[_0x3d5f3d(0x247)])&&_0x376b9e[_0x3d5f3d(0x247)][_0x3d5f3d(0x305)]>0x0){if(_0x54b1e6===_0x3d5f3d(0x14a))return _0x376b9e['options'][_0x3d5f3d(0x27a)](0x0,0x2)[_0x3d5f3d(0x1e1)](_0x2bbf40=>_0x2bbf40['value']);return _0x376b9e['options'][0x0]['value'];}}catch{}if([_0x3d5f3d(0x194),'INTEGER','BIGINT',_0x3d5f3d(0x2f6)][_0x3d5f3d(0x220)](_0x111524)){if(_0x54b1e6===_0x3d5f3d(0x14a))return[0x1,0x2,0x3];if(_0x54b1e6===_0x3d5f3d(0x1b4)||_0x54b1e6===_0x3d5f3d(0x15c))return 0x0;if(_0x54b1e6==='$lte'||_0x54b1e6===_0x3d5f3d(0x252))return 0x64;return 0x1;}if([_0x3d5f3d(0x27e),'TEXT',_0x3d5f3d(0x1d3)][_0x3d5f3d(0x220)](_0x111524)){if(_0x54b1e6===_0x3d5f3d(0x14a))return['value1','value2'];if(_0x54b1e6===_0x3d5f3d(0x1a1))return _0x3d5f3d(0xef);if(_0x54b1e6==='$startWith')return _0x3d5f3d(0x302);if(_0x54b1e6===_0x3d5f3d(0x1f0))return _0x3d5f3d(0x268);return _0x3d5f3d(0x2a6);}if(['DATE','DATETIME',_0x3d5f3d(0x1b8)][_0x3d5f3d(0x220)](_0x111524)){if(_0x54b1e6===_0x3d5f3d(0x1b4)||_0x54b1e6===_0x3d5f3d(0x15c))return'2024-01-01';if(_0x54b1e6==='$lte'||_0x54b1e6===_0x3d5f3d(0x252))return _0x3d5f3d(0x1c0);return _0x3d5f3d(0x111);}if([_0x3d5f3d(0x2bb),_0x3d5f3d(0x172)][_0x3d5f3d(0x220)](_0x111524))return!![];return _0x54b1e6==='$in'?[_0x3d5f3d(0x278),'value2']:_0x3d5f3d(0x2a6);}[a0_0x53bff1(0x18d)](){const _0x53e269=a0_0x53bff1,_0x4778cd=super[_0x53e269(0x1f1)](),_0x25f7cd=Object[_0x53e269(0x2d3)](_0x4778cd)[_0x53e269(0x1e1)](([_0x3a8f3c,_0x3e5631])=>{const _0x9082e8=_0x53e269,_0x4a9179=_0x3e5631;return{'name':_0x3a8f3c,'type':_0x4a9179[_0x9082e8(0x2ab)]||'String','description':_0x4a9179[_0x9082e8(0x101)]||'-','required':_0x4a9179[_0x9082e8(0x23c)]};});return{'description':_0x53e269(0x25e),'params':_0x25f7cd};}[a0_0x53bff1(0x154)](){const _0x10fc30=a0_0x53bff1,_0x17a179=this[_0x10fc30(0x211)]()['aggregates'],_0xf0cb52=[{}],_0x14ea1f=[];return _0x17a179?.[_0x10fc30(0x1b2)](_0x72d20f=>{const _0x328db7=_0x10fc30;_0x14ea1f[_0x328db7(0xd1)]({'title':_0x72d20f['alias'],'dataIndex':_0x72d20f['alias']}),_0xf0cb52[0x0][_0x72d20f[_0x328db7(0x137)]]=_0x72d20f[_0x328db7(0x2ab)]==='count'?0x64:Math[_0x328db7(0x15b)](Math['random']()*0x64*0x64)/0x64;}),{'success':!![],'msg':'','errorMsg':'','errorCode':_0x10fc30(0x2eb),'data':{'paging':{'pageSize':0x1,'totalCount':0x64,'currentPage':0x1},'tableData':_0xf0cb52,'tableColumns':_0x14ea1f},'params':null};}}class ExcelExportOperation extends GenericOperation{[a0_0x53bff1(0x1f1)](){const _0x4eb03=a0_0x53bff1,_0x54bb9a=super[_0x4eb03(0x1f1)]();if(Object[_0x4eb03(0x28a)](_0x54bb9a)['length']===0x0){const _0x1e6d7e={};return this['context']['fields'][_0x4eb03(0x1b2)](_0x33dcba=>{const _0x32f68a=_0x4eb03;_0x33dcba&&_0x33dcba[_0x32f68a(0x1dd)]&&(_0x1e6d7e[_0x33dcba[_0x32f68a(0x1dd)]]={'type':_0x33dcba[_0x32f68a(0x2ab)]||_0x32f68a(0x288),'sortNum':_0x33dcba[_0x32f68a(0x227)],'description':_0x33dcba[_0x32f68a(0x101)]||_0x33dcba[_0x32f68a(0xfb)]});}),_0x1e6d7e[_0x4eb03(0x17d)]={'type':'Integer','description':_0x4eb03(0x102)},_0x1e6d7e['pageSize']={'type':'Integer','description':_0x4eb03(0x2b9)},_0x1e6d7e;}return _0x54bb9a;}[a0_0x53bff1(0x211)](){const _0x6aeaa4=a0_0x53bff1,_0x536724=super['generateRequestExample']();if(Object[_0x6aeaa4(0x28a)](_0x536724)['length']===0x0)return{'currentPage':0x1,'pageSize':0x64};return{..._0x536724,'currentPage':_0x536724[_0x6aeaa4(0x17d)]??0x1,'pageSize':_0x536724[_0x6aeaa4(0x229)]??0x64};}[a0_0x53bff1(0x154)](){const _0x320c40=a0_0x53bff1;return{'success':!![],'msg':'','errorMsg':'','errorCode':'0000','data':_0x320c40(0x273),'params':null};}[a0_0x53bff1(0x301)](_0x58fe74,_0x36b7f5){const _0x314dbd=a0_0x53bff1,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x36b7f5||{},_0x4bbd34=this[_0x314dbd(0x1f3)]();if(useFullExample){const _0x4fb9c2=this[_0x314dbd(0x211)](),{currentPage:_0x5c6922,pageSize:_0x270a43,..._0x41e732}=_0x4fb9c2,_0x2e180b=Object[_0x314dbd(0x28a)](_0x41e732)[_0x314dbd(0x305)]>0x0;if(_0x2e180b){const _0x114e88=_0xe49080=>{const _0xdee70c=_0x314dbd;return JSON[_0xdee70c(0x1aa)](_0xe49080,null,0x2)[_0xdee70c(0xf8)]('\x0a')[_0xdee70c(0x1e1)]((_0x64c22,_0x77e0a1)=>_0x77e0a1===0x0?_0x64c22:indent+_0x64c22)[_0xdee70c(0x2e8)]('\x0a');};return _0x314dbd(0x1ca)+_0x58fe74+'.'+_0x4bbd34+_0x314dbd(0x29a)+_0x58fe74+'.'+_0x4bbd34+'('+_0x114e88(_0x4fb9c2)+');';}else{const _0x2e4871=_0x2d88a3=>{const _0x5aa587=_0x314dbd;return JSON['stringify'](_0x2d88a3,null,0x2)[_0x5aa587(0xf8)]('\x0a')[_0x5aa587(0x1e1)]((_0x47b26c,_0x2c2985)=>_0x2c2985===0x0?_0x47b26c:indent+_0x47b26c)[_0x5aa587(0x2e8)]('\x0a');};return _0x314dbd(0x1ca)+_0x58fe74+'.'+_0x4bbd34+_0x314dbd(0x30f)+_0x58fe74+'.'+_0x4bbd34+'('+_0x2e4871({'currentPage':0x1,'pageSize':0x64})+');';}}return'const\x20fileUrl\x20=\x20await\x20client.models.'+_0x58fe74+'.'+_0x4bbd34+_0x314dbd(0x30b);}[a0_0x53bff1(0x19b)](_0x351672){const _0x1bc4cf=a0_0x53bff1,_0x3815a1=this['getName'](),_0x55c966=_0x1bc4cf(0x18b)+_0x351672+'.'+_0x3815a1+_0x1bc4cf(0x310),_0x125c71=_0x1bc4cf(0x2e7)+_0x351672+'.'+_0x3815a1+_0x1bc4cf(0x2d0);return{'successCode':_0x55c966,'errorCode':_0x125c71};}}class UpdateOperation extends GenericOperation{[a0_0x53bff1(0x152)](){const _0x5895f3=a0_0x53bff1;return this[_0x5895f3(0x289)]();}['getRequestParams'](){const _0x5a79e9=a0_0x53bff1,_0x40797e=this['getUpdateFields']();return{'id':{'type':_0x5a79e9(0x194),'description':_0x5a79e9(0x21f),'required':!![]},'data':{'type':_0x5a79e9(0xdc),'description':_0x5a79e9(0xe0),'required':!![],'properties':_0x40797e}};}[a0_0x53bff1(0x218)](){const _0x4e73b4=a0_0x53bff1;return this[_0x4e73b4(0x152)]();}['getRequestParamsDocInfo'](){const _0x4c2473=a0_0x53bff1,_0x389e6c=this[_0x4c2473(0x152)](),_0x2714c5=Object[_0x4c2473(0x2d3)](_0x389e6c)[_0x4c2473(0x1e1)](([_0x55d126,_0x1d33e1])=>{const _0x5033bb=_0x4c2473,_0x355150=_0x1d33e1;return{'name':_0x55d126,'type':_0x355150[_0x5033bb(0x2ab)]||_0x5033bb(0x215),'description':_0x355150[_0x5033bb(0x101)]||'-'};});return{'description':_0x4c2473(0x1b6)+_0x4c2473(0x28f)+_0x4c2473(0x123)+'**参数\x202:\x20`data`**\x20(Object,\x20必填)\x0a'+_0x4c2473(0x17f)+'**可更新的字段列表:**','params':_0x2714c5};}[a0_0x53bff1(0x211)](){const _0x13c29b=a0_0x53bff1,_0x417025=this[_0x13c29b(0x152)](),_0xdfdcd1={};return Object['entries'](_0x417025)[_0x13c29b(0x1b2)](([_0x486113,_0x3a9b00])=>{const _0x5ac104=_0x13c29b,_0x44db99=_0x3a9b00;let _0x58efd2;if(typeof _0x44db99[_0x5ac104(0x2ab)]==='string')_0x58efd2=_0x44db99[_0x5ac104(0x2ab)];else _0x44db99[_0x5ac104(0x2ab)]&&typeof _0x44db99[_0x5ac104(0x2ab)]==='object'?_0x58efd2=_0x44db99['type'][_0x5ac104(0x2ab)]||'TEXT':_0x58efd2=_0x5ac104(0x288);const _0x5b3ed8=_0x44db99['description'],_0xdc93ef=this['getFieldDefinition'](_0x486113);_0xdfdcd1[_0x486113]=this[_0x5ac104(0x2c3)](_0x486113,_0x58efd2,typeof _0xdc93ef?.['dbType']===_0x5ac104(0x2e0)?_0xdc93ef[_0x5ac104(0x1c7)]:undefined,{'isPrimaryKey':![],'description':_0x5b3ed8||_0xdc93ef?.[_0x5ac104(0x101)]||_0xdc93ef?.[_0x5ac104(0xfb)]});}),{'id':0x1,'data':_0xdfdcd1};}[a0_0x53bff1(0x110)](){const _0x44e984=a0_0x53bff1,_0x5d28b3=this['generateRequestExample']();return[{'title':_0x44e984(0x1f8),'description':_0x44e984(0x1c3)+'-\x20**第一个参数\x20`id`**:主键ID(必填),用于定位要更新的记录\x0a'+_0x44e984(0x1af),'data':_0x5d28b3}];}[a0_0x53bff1(0x301)](_0x695f8a,_0x4249cc){const _0x2adfd7=a0_0x53bff1,{useFullExample:useFullExample=![],indent:indent='\x20\x20'}=_0x4249cc||{},_0x44d01b=this[_0x2adfd7(0x1f3)]();if(useFullExample){const _0x105cd3=this['generateRequestExample'](),_0x4f2a99=JSON[_0x2adfd7(0x1aa)](_0x105cd3[_0x2adfd7(0x2f1)],null,0x2)[_0x2adfd7(0xf8)]('\x0a')['map']((_0x568cd3,_0x485f4f)=>_0x485f4f===0x0?_0x568cd3:indent+_0x568cd3)[_0x2adfd7(0x2e8)]('\x0a');return _0x2adfd7(0x2d7)+_0x695f8a+'.'+_0x44d01b+'('+_0x105cd3['id']+',\x20'+_0x4f2a99+');';}return _0x2adfd7(0x2d7)+_0x695f8a+'.'+_0x44d01b+_0x2adfd7(0x1b1);}}class OperationFactory{[a0_0x53bff1(0x2f5)](_0x503303,_0x2de849,_0x2c102a){const _0x45f27e=a0_0x53bff1;switch(_0x503303){case _0x45f27e(0x291):return new GetSelectOptionsOperation(_0x503303,_0x2de849,_0x2c102a);case'getList':return new GetListOperation(_0x503303,_0x2de849,_0x2c102a);case _0x45f27e(0x1ce):return new FilterOperation(_0x503303,_0x2de849,_0x2c102a);case _0x45f27e(0x297):return new ExcelExportOperation(_0x503303,_0x2de849,_0x2c102a);case _0x45f27e(0xcd):return new UpdateOperation(_0x503303,_0x2de849,_0x2c102a);case _0x45f27e(0x309):return new AggregateOperation(_0x503303,_0x2de849,_0x2c102a);default:return new GenericOperation(_0x503303,_0x2de849,_0x2c102a);}}[a0_0x53bff1(0x2e6)](_0x7ba517,_0x579887){const _0x15c89f=a0_0x53bff1,_0x3de03c=new Map();return Object['entries'](_0x7ba517)[_0x15c89f(0x1b2)](([_0x1057d7,_0x163e79])=>{const _0x10aeb5=_0x15c89f;_0x3de03c[_0x10aeb5(0x169)](_0x1057d7,this[_0x10aeb5(0x2f5)](_0x1057d7,_0x163e79,_0x579887));}),_0x3de03c;}}function a0_0x1dcc(_0x1a565e,_0x436a0d){const _0x57acdb=a0_0x57ac();return a0_0x1dcc=function(_0x1dcc09,_0x29b043){_0x1dcc09=_0x1dcc09-0xcc;let _0x7be125=_0x57acdb[_0x1dcc09];return _0x7be125;},a0_0x1dcc(_0x1a565e,_0x436a0d);}class OperationList{[a0_0x53bff1(0xec)];constructor(_0x12cabc,_0x5a2620){const _0x573f9c=a0_0x53bff1,_0x17e938=new OperationFactory();this[_0x573f9c(0xec)]=_0x17e938[_0x573f9c(0x2e6)](_0x12cabc,_0x5a2620);}[a0_0x53bff1(0x240)](_0x105c3f){const _0x24ea56=a0_0x53bff1;return this[_0x24ea56(0xec)]['get'](_0x105c3f);}[a0_0x53bff1(0x2f3)](_0xe483bd){const _0x40203f=a0_0x53bff1;return this[_0x40203f(0xec)][_0x40203f(0x2f3)](_0xe483bd);}['size'](){const _0x52828b=a0_0x53bff1;return this['_operations'][_0x52828b(0x2b2)];}[a0_0x53bff1(0x10f)](){const _0x4f0dff=a0_0x53bff1;return Array[_0x4f0dff(0x250)](this['_operations']['keys']());}[a0_0x53bff1(0x2a7)](){const _0x18549a=a0_0x53bff1,_0x4811d9=Array[_0x18549a(0x250)](this['_operations'][_0x18549a(0x128)]());return this['sortOperationsWithFilterFirst'](_0x4811d9);}[a0_0x53bff1(0x295)](){const _0x331dc7=a0_0x53bff1;return this['toArray']()[_0x331dc7(0x1ce)](_0xa231af=>_0xa231af[_0x331dc7(0x1ba)]());}[a0_0x53bff1(0xe2)](){const _0x58bac2=a0_0x53bff1;return this[_0x58bac2(0x2a7)]()[_0x58bac2(0x1ce)](_0x4d8afb=>!_0x4d8afb[_0x58bac2(0x1ba)]());}[a0_0x53bff1(0x1a8)](){const _0x41ee27=a0_0x53bff1;return this[_0x41ee27(0x295)]()[_0x41ee27(0x1e1)](_0x321d3d=>_0x321d3d['getName']());}[a0_0x53bff1(0x256)](){const _0x4ca196=a0_0x53bff1;return this[_0x4ca196(0xe2)]()['map'](_0x28f4c2=>_0x28f4c2[_0x4ca196(0x1f3)]());}[a0_0x53bff1(0x17a)](_0x16c1b4){const _0x316461=a0_0x53bff1;return this[_0x316461(0x2a7)]()[_0x316461(0x1ce)](_0x1c89a8=>_0x1c89a8[_0x316461(0x201)]()===_0x16c1b4);}[a0_0x53bff1(0x1ce)](_0x863a3b){const _0x47ea05=a0_0x53bff1;return this[_0x47ea05(0x2a7)]()[_0x47ea05(0x1ce)](_0x863a3b);}[a0_0x53bff1(0x23f)](_0x1d1288={}){const _0x52728c=a0_0x53bff1;let _0x4ad14a=this[_0x52728c(0x2a7)]();!_0x1d1288['includeDisabled']&&(_0x4ad14a=_0x4ad14a['filter'](_0x3ef32f=>_0x3ef32f[_0x52728c(0x1ba)]()));if(_0x1d1288[_0x52728c(0x14d)]!==![]){const _0x3a591f=_0x4ad14a[_0x52728c(0x1e1)](_0x3c9287=>({'name':_0x3c9287['getName'](),'operation':_0x3c9287})),_0x19821c=filterApiOperations(_0x3a591f);_0x4ad14a=_0x19821c['map'](_0x15452f=>_0x15452f[_0x52728c(0x19c)]),_0x4ad14a=this[_0x52728c(0x21a)](_0x4ad14a);}return _0x1d1288['customFilter']&&(_0x4ad14a=_0x4ad14a['filter'](_0x1d1288['customFilter'])),_0x4ad14a;}['sortOperationsWithFilterFirst'](_0x26f826){const _0x1d4ac9=a0_0x53bff1,_0x347e4e=_0x26f826['find'](_0x134859=>_0x134859[_0x1d4ac9(0x1f3)]()===_0x1d4ac9(0x1ce)),_0x3a22fb=_0x26f826[_0x1d4ac9(0x1ce)](_0xa8bf71=>_0xa8bf71[_0x1d4ac9(0x1f3)]()!==_0x1d4ac9(0x1ce));return _0x347e4e?[_0x347e4e,..._0x3a22fb]:_0x3a22fb;}[a0_0x53bff1(0x1d8)](){const _0x5bee17=a0_0x53bff1,_0x12f266=this[_0x5bee17(0x295)]();return{'total':this[_0x5bee17(0x2b2)](),'enabled':_0x12f266[_0x5bee17(0x305)],'disabled':this[_0x5bee17(0x2b2)]()-_0x12f266[_0x5bee17(0x305)],'byType':this['getCountByType'](_0x12f266),'byMethod':this['getCountByMethod'](_0x12f266)};}[a0_0x53bff1(0x2bf)](_0xf0a81f){const _0x1adcfa=a0_0x53bff1,_0x24ce25={};return _0xf0a81f[_0x1adcfa(0x1b2)](_0x5e5de8=>{const _0x31bf59=_0x5e5de8['getType']();_0x31bf59&&(_0x24ce25[_0x31bf59]=(_0x24ce25[_0x31bf59]||0x0)+0x1);}),_0x24ce25;}[a0_0x53bff1(0x11d)](_0x4c5a67){const _0x579bd7=a0_0x53bff1,_0x5d5025={};return _0x4c5a67[_0x579bd7(0x1b2)](_0x23677f=>{const _0x113db3=_0x579bd7,_0x2dc5fa=_0x23677f[_0x113db3(0x22c)]();_0x2dc5fa&&(_0x5d5025[_0x2dc5fa]=(_0x5d5025[_0x2dc5fa]||0x0)+0x1);}),_0x5d5025;}[Symbol[a0_0x53bff1(0x1c9)]](){const _0x27d872=a0_0x53bff1;return this[_0x27d872(0xec)][_0x27d872(0x128)]();}[a0_0x53bff1(0x15f)](){const _0x288e00=a0_0x53bff1,_0x46c53a=this[_0x288e00(0x1d8)]();return _0x288e00(0xed)+_0x46c53a['enabled']+'/'+_0x46c53a[_0x288e00(0x131)]+'\x20operations)';}}class Field{[a0_0x53bff1(0x313)];[a0_0x53bff1(0x2fa)]=null;constructor(_0xeeb9ad){const _0x339693=a0_0x53bff1;if(!_0xeeb9ad||typeof _0xeeb9ad!==_0x339693(0xdc))throw new Error(_0x339693(0x2ed));this[_0x339693(0x313)]=_0xeeb9ad;}get[a0_0x53bff1(0x20b)](){const _0x4b632e=a0_0x53bff1;return this[_0x4b632e(0x313)];}[a0_0x53bff1(0x30c)](){const _0x4992ec=a0_0x53bff1;return this[_0x4992ec(0x313)];}get[a0_0x53bff1(0xfb)](){const _0x51f1d8=a0_0x53bff1;return this[_0x51f1d8(0x313)]['name']||'';}get['code'](){const _0x1a5cab=a0_0x53bff1;return this[_0x1a5cab(0x313)][_0x1a5cab(0x1dd)]||'';}get[a0_0x53bff1(0x2ab)](){const _0x550484=a0_0x53bff1;return this[_0x550484(0x313)][_0x550484(0x2ab)]||'';}get[a0_0x53bff1(0x101)](){const _0x17a092=a0_0x53bff1;return this[_0x17a092(0x313)][_0x17a092(0x101)]||'';}get[a0_0x53bff1(0xf7)](){const _0x88ff6a=a0_0x53bff1;return Boolean(this[_0x88ff6a(0x313)][_0x88ff6a(0xf7)]);}get[a0_0x53bff1(0x114)](){const _0x103f13=a0_0x53bff1;if(this[_0x103f13(0x2fa)]!==null&&typeof this[_0x103f13(0x2fa)]===_0x103f13(0xdc))return this[_0x103f13(0x2fa)];const _0x7970ac=this[_0x103f13(0x313)][_0x103f13(0x114)];if(!_0x7970ac||typeof _0x7970ac!==_0x103f13(0x2e0))return this[_0x103f13(0x2fa)]={},this['_extend'];if(_0x7970ac===_0x103f13(0x1b7)||_0x7970ac[_0x103f13(0x16f)]()==='null')return this['_extend']={},this[_0x103f13(0x2fa)];try{const _0x23c350=JSON[_0x103f13(0x2b5)](_0x7970ac);return this[_0x103f13(0x2fa)]=_0x23c350!==null&&typeof _0x23c350===_0x103f13(0xdc)&&!Array[_0x103f13(0x153)](_0x23c350)?_0x23c350:{},this[_0x103f13(0x2fa)];}catch(_0x135ca1){return!![]&&console[_0x103f13(0x2f4)](_0x103f13(0x217)+this['code']+_0x103f13(0x246),_0x135ca1),this[_0x103f13(0x2fa)]={},this[_0x103f13(0x2fa)];}}[a0_0x53bff1(0x26f)](){const _0x2d57d5=a0_0x53bff1;return Boolean(this['extend'][_0x2d57d5(0x23c)]);}[a0_0x53bff1(0x24e)](){const _0xa1f169=a0_0x53bff1;return Boolean(this[_0xa1f169(0x114)][_0xa1f169(0x23b)]);}['isSystem'](){const _0x4ccff3=a0_0x53bff1;return Boolean(this[_0x4ccff3(0x114)][_0x4ccff3(0x2b7)]);}[a0_0x53bff1(0x24b)](){const _0x3b55e7=a0_0x53bff1;return!this[_0x3b55e7(0x165)]();}[a0_0x53bff1(0x176)](){const _0x41fa2f=a0_0x53bff1;return this[_0x41fa2f(0xf7)];}['isAutoIncrement'](){const _0x45739d=a0_0x53bff1;return Boolean(this[_0x45739d(0x114)]['autoIncrement']);}[a0_0x53bff1(0x1d4)](){const _0x3b5912=a0_0x53bff1;return Boolean(this[_0x3b5912(0x114)][_0x3b5912(0x2b3)]);}[a0_0x53bff1(0x257)](){const _0xf15248=a0_0x53bff1;return Boolean(this[_0xf15248(0x114)][_0xf15248(0xce)]);}[a0_0x53bff1(0x20e)](){const _0xae700f=a0_0x53bff1,_0x596c05=[_0xae700f(0x138),_0xae700f(0x175),_0xae700f(0x190)];return _0x596c05[_0xae700f(0x220)](this['type']);}[a0_0x53bff1(0x219)](){return this['type']==='CHECKBOX';}[a0_0x53bff1(0x144)](){const _0x1c03f3=a0_0x53bff1,_0x218620=this['extend'];if(_0x218620[_0x1c03f3(0x247)]&&Array[_0x1c03f3(0x153)](_0x218620[_0x1c03f3(0x247)]))return _0x218620[_0x1c03f3(0x247)];return;}['getSelectItemsSource'](){const _0x2644b1=a0_0x53bff1,_0xadea62=this[_0x2644b1(0x114)];if(_0xadea62[_0x2644b1(0x1b3)]&&typeof _0xadea62['selectItemsSource']===_0x2644b1(0xdc))return _0xadea62[_0x2644b1(0x1b3)];return;}[a0_0x53bff1(0x253)](){const _0x407836=a0_0x53bff1;if(!this['isEnum']())return;const _0x3697f2=this['getEnumOptions'](),_0x527c9a=this[_0x407836(0x2a4)](),_0x46220d=[],_0x23545c={},_0x4bd831=_0x3f96c5=>{const _0x3474bd=_0x407836;_0x3f96c5[_0x3474bd(0x1b2)](_0x294808=>{const _0x424252=_0x3474bd;_0x46220d['push'](_0x294808['value']),_0x23545c[String(_0x294808[_0x424252(0x2a6)])]=_0x294808[_0x424252(0x2ee)],_0x294808[_0x424252(0x10c)]&&_0x294808[_0x424252(0x10c)][_0x424252(0x305)]>0x0&&_0x4bd831(_0x294808[_0x424252(0x10c)]);});};return _0x3697f2&&_0x3697f2[_0x407836(0x305)]>0x0&&_0x4bd831(_0x3697f2),{'code':this[_0x407836(0x1dd)],'name':this[_0x407836(0xfb)],'type':this['type'],'multiple':this['isMultipleSelect'](),'options':_0x3697f2,'selectItemsSource':_0x527c9a,'values':_0x46220d,'valueLabels':_0x23545c};}[a0_0x53bff1(0x21d)](){const _0x4ec6cf=a0_0x53bff1;return this[_0x4ec6cf(0x114)][_0x4ec6cf(0x2d1)];}['getTooltip'](){const _0x31f4d2=a0_0x53bff1;return this[_0x31f4d2(0x114)][_0x31f4d2(0x1fd)];}[a0_0x53bff1(0x1d2)](){const _0xa7ca6a=a0_0x53bff1;return{'name':this[_0xa7ca6a(0xfb)],'code':this[_0xa7ca6a(0x1dd)],'type':this[_0xa7ca6a(0x2ab)],'description':this[_0xa7ca6a(0x101)],'required':this['isRequired'](),'primaryKey':this[_0xa7ca6a(0x24e)](),'system':this['isSystem'](),'autoIncrement':this['isAutoIncrement'](),'createTime':this[_0xa7ca6a(0x1d4)](),'updateTime':this['isUpdateTime'](),'isEnum':this[_0xa7ca6a(0x20e)](),'enumMeta':this[_0xa7ca6a(0x20e)]()?this['getEnumMeta']():undefined};}}class FieldList{[a0_0x53bff1(0x2c4)];constructor(_0x109c70,_0x944d6a){const _0x3926db=a0_0x53bff1;if(!Array[_0x3926db(0x153)](_0x109c70))throw new Error(_0x3926db(0x26e));const _0x34883c=_0x944d6a?.[_0x3926db(0x1de)]??![],_0x5df281=_0x34883c?_0x109c70:_0x109c70[_0x3926db(0x1ce)](_0x2d7d57=>!_0x2d7d57['deleted']);this['_fields']=_0x5df281[_0x3926db(0x1e1)](_0x126cc9=>new Field(_0x126cc9));}get[a0_0x53bff1(0x305)](){const _0x44cdac=a0_0x53bff1;return this['_fields'][_0x44cdac(0x305)];}[a0_0x53bff1(0x2fe)](){const _0x3cdcab=a0_0x53bff1;return[...this[_0x3cdcab(0x2c4)]];}['raw'](){const _0x3cac0e=a0_0x53bff1;return this[_0x3cac0e(0x2c4)][_0x3cac0e(0x1e1)](_0x67e9ce=>_0x67e9ce[_0x3cac0e(0x20b)]);}['at'](_0x18fd1c){return this['_fields']['at'](_0x18fd1c);}[a0_0x53bff1(0x1ae)](_0x2aa85e){const _0x13f745=a0_0x53bff1;return this['_fields'][_0x13f745(0x1ae)](_0x303f87=>_0x303f87[_0x13f745(0x1dd)]===_0x2aa85e);}[a0_0x53bff1(0xdd)](_0x4bff61){const _0x4e00fa=a0_0x53bff1;return this[_0x4e00fa(0x2c4)][_0x4e00fa(0x1ae)](_0x2ff8a1=>_0x2ff8a1[_0x4e00fa(0xfb)]===_0x4bff61);}[a0_0x53bff1(0x2f3)](_0x2409ae){const _0x3cf416=a0_0x53bff1;return this[_0x3cf416(0x2c4)]['some'](_0x3cb097=>_0x3cb097[_0x3cf416(0x1dd)]===_0x2409ae);}[a0_0x53bff1(0x1b2)](_0x215dff){const _0x5ba447=a0_0x53bff1;this[_0x5ba447(0x2c4)][_0x5ba447(0x1b2)](_0x215dff);}[a0_0x53bff1(0x1e1)](_0x19523a){const _0x16482a=a0_0x53bff1;return this['_fields'][_0x16482a(0x1e1)](_0x19523a);}[a0_0x53bff1(0x1ce)](_0x42f2f4){const _0x2f6fb6=a0_0x53bff1;return this[_0x2f6fb6(0x2c4)]['filter'](_0x42f2f4);}[a0_0x53bff1(0x210)](_0x35445b){const _0x25d424=a0_0x53bff1;return this[_0x25d424(0x2c4)][_0x25d424(0x210)](_0x35445b);}[a0_0x53bff1(0x135)](_0x148239){return this['_fields']['some'](_0x148239);}[a0_0x53bff1(0x18e)](){const _0x49d0ac=a0_0x53bff1;return this[_0x49d0ac(0x2c4)][_0x49d0ac(0x1ce)](_0x2bafd0=>_0x2bafd0[_0x49d0ac(0x26f)]());}[a0_0x53bff1(0x224)](){const _0x4acd40=a0_0x53bff1;return this[_0x4acd40(0x2c4)][_0x4acd40(0x1ce)](_0x34225c=>_0x34225c['isPrimaryKey']());}[a0_0x53bff1(0x238)](){const _0xa791f6=a0_0x53bff1;return this[_0xa791f6(0x2c4)][_0xa791f6(0x1ce)](_0x5d4638=>_0x5d4638[_0xa791f6(0x165)]());}['getBusiness'](){const _0x2fe759=a0_0x53bff1;return this[_0x2fe759(0x2c4)][_0x2fe759(0x1ce)](_0x43a5a4=>_0x43a5a4[_0x2fe759(0x24b)]());}[a0_0x53bff1(0xe3)](){const _0x390f30=a0_0x53bff1;return this['_fields'][_0x390f30(0x1ce)](_0x18ee43=>_0x18ee43[_0x390f30(0x20e)]());}[a0_0x53bff1(0x109)](){const _0x547338=a0_0x53bff1;return this[_0x547338(0x2c4)][_0x547338(0x1ce)](_0x58a16a=>_0x58a16a[_0x547338(0x170)]());}['getCreateTime'](){const _0x55c097=a0_0x53bff1;return this['_fields'][_0x55c097(0x1ce)](_0x52a989=>_0x52a989[_0x55c097(0x1d4)]());}[a0_0x53bff1(0xd8)](){const _0x4b2c84=a0_0x53bff1;return this[_0x4b2c84(0x2c4)]['filter'](_0x5c9e3c=>_0x5c9e3c[_0x4b2c84(0x257)]());}[a0_0x53bff1(0x2f9)](){const _0x28308d=a0_0x53bff1;return this[_0x28308d(0x2c4)]['filter'](_0x2853ed=>_0x2853ed['isDeleted']());}['getActive'](){const _0x57efb2=a0_0x53bff1;return this[_0x57efb2(0x2c4)][_0x57efb2(0x1ce)](_0x4379c6=>!_0x4379c6['isDeleted']());}[a0_0x53bff1(0x174)](){const _0x3582bb=a0_0x53bff1,_0x3b4b8c={};return this[_0x3582bb(0x2c4)][_0x3582bb(0x1b2)](_0x46af8b=>{const _0x283018=_0x3582bb,_0x307c0c=_0x46af8b[_0x283018(0x2ab)];!_0x3b4b8c[_0x307c0c]&&(_0x3b4b8c[_0x307c0c]=[]),_0x3b4b8c[_0x307c0c][_0x283018(0xd1)](_0x46af8b);}),_0x3b4b8c;}[a0_0x53bff1(0x105)](){const _0x5e2876=a0_0x53bff1,_0xb41f52={};return this[_0x5e2876(0x2c4)][_0x5e2876(0x1b2)](_0x4fb472=>{const _0x67b7ee=_0x5e2876;if(_0x4fb472['isEnum']()){const _0x3c62c6=_0x4fb472['getEnumMeta']();_0x3c62c6&&(_0xb41f52[_0x4fb472[_0x67b7ee(0x1dd)]]=_0x3c62c6);}}),_0xb41f52;}[a0_0x53bff1(0x1d8)](){const _0x4f2cdd=a0_0x53bff1;return{'total':this[_0x4f2cdd(0x305)],'required':this[_0x4f2cdd(0x18e)]()[_0x4f2cdd(0x305)],'primaryKey':this[_0x4f2cdd(0x224)]()['length'],'system':this[_0x4f2cdd(0x238)]()[_0x4f2cdd(0x305)],'business':this[_0x4f2cdd(0x293)]()['length'],'enum':this['getEnum']()[_0x4f2cdd(0x305)],'autoIncrement':this[_0x4f2cdd(0x109)]()['length']};}[a0_0x53bff1(0x1d2)](){const _0x276eeb=a0_0x53bff1;return this[_0x276eeb(0x2c4)][_0x276eeb(0x1e1)](_0x4d9c08=>_0x4d9c08[_0x276eeb(0x1d2)]());}[a0_0x53bff1(0x10d)](){const _0x45d0d6=a0_0x53bff1;return this[_0x45d0d6(0x2c4)][_0x45d0d6(0x1e1)](_0x2c293b=>_0x2c293b[_0x45d0d6(0x1dd)]);}[a0_0x53bff1(0x10f)](){const _0x4db5de=a0_0x53bff1;return this['_fields'][_0x4db5de(0x1e1)](_0x3b6aa6=>_0x3b6aa6[_0x4db5de(0xfb)]);}static[a0_0x53bff1(0x250)](_0x112f95){const _0x1b564d=a0_0x53bff1,_0x12f733=_0x112f95[_0x1b564d(0x1e1)](_0x122794=>_0x122794[_0x1b564d(0x20b)]);return new FieldList(_0x12f733);}static[a0_0x53bff1(0x129)](_0x28200d){return new FieldList(_0x28200d,{'includeDeleted':!![]});}}class DrivenDataDetail extends DatasetItem{[a0_0x53bff1(0x113)];[a0_0x53bff1(0x24d)];[a0_0x53bff1(0xdb)];constructor(_0x1c6c7f){super({..._0x1c6c7f,'id':_0x1c6c7f['modelId'],'datasetCode':_0x1c6c7f['modelCode']});}get[a0_0x53bff1(0x2bc)](){const _0x2ec6b1=a0_0x53bff1;return this[_0x2ec6b1(0x313)]['source'];}[a0_0x53bff1(0x242)](){const _0x735f4f=a0_0x53bff1;return this[_0x735f4f(0x2bc)];}get[a0_0x53bff1(0x2a9)](){const _0x348b25=a0_0x53bff1;return this[_0x348b25(0x313)][_0x348b25(0x2a9)];}['getFieldList'](){const _0x181da5=a0_0x53bff1;return!this[_0x181da5(0x24d)]&&(this['_fieldList']=new FieldList(this[_0x181da5(0x313)]['properties']||[])),this[_0x181da5(0x24d)];}[a0_0x53bff1(0x185)](){const _0x652086=a0_0x53bff1;return!this[_0x652086(0xdb)]&&(this[_0x652086(0xdb)]=FieldList[_0x652086(0x129)](this[_0x652086(0x313)][_0x652086(0xe7)]||[])),this[_0x652086(0xdb)];}['getFields'](){const _0x3b27a0=a0_0x53bff1;return this['getFieldList']()[_0x3b27a0(0x20b)]();}[a0_0x53bff1(0x2e5)](){const _0x3f094b=a0_0x53bff1;return this[_0x3f094b(0x313)][_0x3f094b(0xe7)]||[];}[a0_0x53bff1(0x213)](){const _0x161ca3=a0_0x53bff1;return this[_0x161ca3(0x30a)]()[_0x161ca3(0x305)];}[a0_0x53bff1(0x11b)](_0x345685){const _0x398bf8=this['getFieldInstance'](_0x345685);return _0x398bf8?_0x398bf8['raw']:undefined;}['getFieldRaw'](_0x26265b){const _0x350fed=a0_0x53bff1;return this[_0x350fed(0x30a)]()[_0x350fed(0x1ae)](_0x26265b)?.[_0x350fed(0x20b)]||undefined;}[a0_0x53bff1(0x2a5)](_0xf06d63){const _0xa5a4e9=a0_0x53bff1;if(typeof _0xf06d63!==_0xa5a4e9(0x2e0)){!![]&&console[_0xa5a4e9(0x2f4)](_0xa5a4e9(0x298),_0xf06d63);return;}return this[_0xa5a4e9(0x30a)]()[_0xa5a4e9(0x1ae)](_0xf06d63);}['hasField'](_0x5c63f4){const _0x4c3be9=a0_0x53bff1;return this[_0x4c3be9(0x30a)]()[_0x4c3be9(0x2f3)](_0x5c63f4);}[a0_0x53bff1(0x192)](_0x5a171a){const _0x26a70d=a0_0x53bff1;if(!_0x5a171a||typeof _0x5a171a!==_0x26a70d(0xdc))return!![]&&console[_0x26a70d(0x2f4)]('[DrivenDataDetail.parseFieldExtend]\x20Invalid\x20field:',_0x5a171a),{};if(!_0x5a171a[_0x26a70d(0x114)])return{};try{const _0x45dd4e=typeof _0x5a171a[_0x26a70d(0x114)]===_0x26a70d(0x2e0)?JSON[_0x26a70d(0x2b5)](_0x5a171a[_0x26a70d(0x114)]):_0x5a171a[_0x26a70d(0x114)];if(typeof _0x45dd4e!=='object'||_0x45dd4e===null)return{};return _0x45dd4e;}catch{return{};}}['isPrimaryKeyField'](_0x4a70df){const _0x7ed3dd=a0_0x53bff1;if(!_0x4a70df||typeof _0x4a70df!=='object')return![];const _0x59e150=this['getFieldList']()['find'](_0x4a70df[_0x7ed3dd(0x1dd)]);return _0x59e150?_0x59e150['isPrimaryKey']():![];}[a0_0x53bff1(0x1ec)](_0x112b54){const _0x1e9910=a0_0x53bff1;if(!_0x112b54||typeof _0x112b54!=='object')return![];const _0x42506b=this[_0x1e9910(0x30a)]()[_0x1e9910(0x1ae)](_0x112b54['code']);return _0x42506b?_0x42506b[_0x1e9910(0x165)]():![];}[a0_0x53bff1(0x2bd)](_0x28e0c2){const _0x5d2c9f=a0_0x53bff1;if(!_0x28e0c2||typeof _0x28e0c2!==_0x5d2c9f(0xdc))return![];const _0x118658=this['getFieldList']()[_0x5d2c9f(0x1ae)](_0x28e0c2['code']);return _0x118658?_0x118658[_0x5d2c9f(0x26f)]():![];}['getPrimaryKeyFields'](){const _0x27b9cd=a0_0x53bff1;return this['getFieldList']()[_0x27b9cd(0x224)]()['map'](_0x448f34=>_0x448f34[_0x27b9cd(0x20b)]);}[a0_0x53bff1(0x2ec)](){const _0x104a93=a0_0x53bff1;return this[_0x104a93(0x30a)]()[_0x104a93(0x238)]()[_0x104a93(0x1e1)](_0x2fa8e0=>_0x2fa8e0['raw']);}[a0_0x53bff1(0x122)](){const _0x4cfb04=a0_0x53bff1;return this[_0x4cfb04(0x30a)]()[_0x4cfb04(0x293)]()[_0x4cfb04(0x1e1)](_0x1ee6d4=>_0x1ee6d4[_0x4cfb04(0x20b)]);}[a0_0x53bff1(0xda)](){const _0x1846b7=a0_0x53bff1;return this[_0x1846b7(0x30a)]()['getRequired']()[_0x1846b7(0x1e1)](_0x2a5c65=>_0x2a5c65[_0x1846b7(0x20b)]);}[a0_0x53bff1(0x24c)](){const _0x5f5acb=a0_0x53bff1,_0x41e350=this['getFieldList']()[_0x5f5acb(0x174)](),_0x3fb74d={};for(const [_0x46f532,_0x32ea1d]of Object[_0x5f5acb(0x2d3)](_0x41e350)){_0x3fb74d[_0x46f532]=_0x32ea1d[_0x5f5acb(0x1e1)](_0x4af120=>_0x4af120[_0x5f5acb(0x20b)]);}return _0x3fb74d;}[a0_0x53bff1(0x255)](_0x9b0b36){const _0x194a89=a0_0x53bff1;if(!_0x9b0b36||typeof _0x9b0b36!==_0x194a89(0xdc))return![];const _0x25f7dd=this[_0x194a89(0x30a)]()[_0x194a89(0x1ae)](_0x9b0b36[_0x194a89(0x1dd)]);return _0x25f7dd?_0x25f7dd[_0x194a89(0x20e)]():![];}['isMultipleSelectField'](_0x27c241){const _0x3bf573=a0_0x53bff1;if(!_0x27c241||typeof _0x27c241!==_0x3bf573(0xdc))return![];const _0x314439=this[_0x3bf573(0x30a)]()[_0x3bf573(0x1ae)](_0x27c241[_0x3bf573(0x1dd)]);return _0x314439?_0x314439[_0x3bf573(0x219)]():![];}['getFieldOptions'](_0x5d6b87){const _0x500f26=a0_0x53bff1;if(!_0x5d6b87||typeof _0x5d6b87!=='object')return[];const _0x216109=this[_0x500f26(0x30a)]()[_0x500f26(0x1ae)](_0x5d6b87[_0x500f26(0x1dd)]);if(!_0x216109||!_0x216109[_0x500f26(0x20e)]())return[];return _0x216109['getEnumOptions']()||[];}[a0_0x53bff1(0x29d)](_0x1c2b35){const _0x38405b=a0_0x53bff1;if(!_0x1c2b35||typeof _0x1c2b35!==_0x38405b(0xdc))return;const _0x1888e4=this[_0x38405b(0x30a)]()[_0x38405b(0x1ae)](_0x1c2b35[_0x38405b(0x1dd)]);if(!_0x1888e4||!_0x1888e4['isEnum']())return;return _0x1888e4[_0x38405b(0x2a4)]();}[a0_0x53bff1(0x103)](_0x51a38c){const _0x19f142=a0_0x53bff1;if(!_0x51a38c||typeof _0x51a38c!==_0x19f142(0xdc))return;const _0x359b21=this[_0x19f142(0x30a)]()[_0x19f142(0x1ae)](_0x51a38c[_0x19f142(0x1dd)]);if(!_0x359b21||!_0x359b21[_0x19f142(0x20e)]())return;return _0x359b21[_0x19f142(0x253)]();}[a0_0x53bff1(0x20f)](){const _0xcdab82=a0_0x53bff1;return this[_0xcdab82(0x30a)]()['getEnum']()[_0xcdab82(0x1e1)](_0x513d06=>_0x513d06['raw']);}['getEnumFieldsMeta'](){const _0x450e38=a0_0x53bff1,_0x522df1={};return this[_0x450e38(0x20f)]()[_0x450e38(0x1b2)](_0x4a8191=>{const _0x323311=_0x450e38,_0xff4d0f=this[_0x323311(0x103)](_0x4a8191);_0xff4d0f&&(_0x522df1[_0x4a8191[_0x323311(0x1dd)]]=_0xff4d0f);}),_0x522df1;}[a0_0x53bff1(0xd4)](_0x4a2c25,_0x1ef41f){const _0x7c40aa=a0_0x53bff1,_0x570cf7=this[_0x7c40aa(0x103)](_0x4a2c25);if(!_0x570cf7)return!![];if(_0x570cf7['selectItemsSource']&&!_0x570cf7[_0x7c40aa(0x247)])return!![];if(_0x570cf7[_0x7c40aa(0x200)]&&Array[_0x7c40aa(0x153)](_0x1ef41f))return _0x1ef41f[_0x7c40aa(0x210)](_0x31a95e=>_0x570cf7[_0x7c40aa(0x128)][_0x7c40aa(0x220)](_0x31a95e));return _0x570cf7[_0x7c40aa(0x128)][_0x7c40aa(0x220)](_0x1ef41f);}[a0_0x53bff1(0x2ac)](){const _0x1d0df7=a0_0x53bff1;if(!this[_0x1d0df7(0x113)]){const _0x39500e=this[_0x1d0df7(0x1e5)](this[_0x1d0df7(0x313)][_0x1d0df7(0x2fb)]||{});this['_operationList']=new OperationList(_0x39500e,{'fields':this['getFields'](),'pkField':this[_0x1d0df7(0x313)][_0x1d0df7(0x2f7)]?.[_0x1d0df7(0x2b8)],'dbtableConfig':this[_0x1d0df7(0x313)][_0x1d0df7(0x2f7)]});}return this[_0x1d0df7(0x113)];}['ensureFilterOperation'](_0x3cda60){const _0x31ad95=a0_0x53bff1;if(_0x3cda60[_0x31ad95(0x1ce)]!==undefined)return _0x3cda60;return{..._0x3cda60,'filter':this['generateDefaultFilterOperation']()};}[a0_0x53bff1(0x2e2)](){const _0x421656=a0_0x53bff1,_0x570a8d=this[_0x421656(0x313)][_0x421656(0x2fb)]?.['getList'];let _0x4553a4=_0x570a8d?.[_0x421656(0x159)],_0x5841e3='';if(!_0x4553a4&&this[_0x421656(0x313)][_0x421656(0x2fb)]){const _0x4c568f=Object[_0x421656(0x128)](this[_0x421656(0x313)]['operations']);for(const _0x5a3e9c of _0x4c568f){if(_0x5a3e9c&&typeof _0x5a3e9c===_0x421656(0xdc)&&'host'in _0x5a3e9c){_0x4553a4=_0x5a3e9c[_0x421656(0x159)];break;}}}if(_0x570a8d?.[_0x421656(0x23a)]){const _0x1bfae5=_0x570a8d['path'],_0x4187e6=_0x1bfae5[_0x421656(0x2d2)]('/');_0x4187e6!==-0x1&&(_0x5841e3=_0x1bfae5['substring'](0x0,_0x4187e6));}return{'name':'filter','type':_0x421656(0x2c1),'description':_0x421656(0x10a),'method':_0x421656(0x187),'host':_0x4553a4,'path':_0x5841e3?_0x5841e3+_0x421656(0x266):_0x421656(0x266),'params':_0x570a8d?.[_0x421656(0x142)]||[{'name':_0x421656(0x2d5),'type':_0x421656(0xdc),'required':![]},{'name':'select','type':_0x421656(0x1ad),'required':![]},{'name':_0x421656(0x2a3),'type':_0x421656(0x1ad),'required':![]},{'name':_0x421656(0x17d),'type':_0x421656(0x14c),'required':![],'default':0x1},{'name':_0x421656(0x229),'type':'number','required':![],'default':0xa}],'_autoGenerated':!![]};}['getOperations'](){const _0x3141fb=a0_0x53bff1;return this[_0x3141fb(0x2ac)]()[_0x3141fb(0x2a7)]();}[a0_0x53bff1(0x312)](){const _0x3e2040=a0_0x53bff1;return this[_0x3e2040(0x2ac)]()['size']();}['getOperation'](_0x482ec9){const _0x5a3d8a=a0_0x53bff1;if(typeof _0x482ec9!==_0x5a3d8a(0x2e0)){!![]&&console[_0x5a3d8a(0x2f4)]('[DrivenDataDetail.getOperation]\x20operationType\x20is\x20not\x20a\x20string:',_0x482ec9);return;}return this[_0x5a3d8a(0x2ac)]()[_0x5a3d8a(0x240)](_0x482ec9);}[a0_0x53bff1(0x1dc)](_0x485228){const _0x77c462=a0_0x53bff1;if(typeof _0x485228!==_0x77c462(0x2e0))return![];return this[_0x77c462(0x2ac)]()['has'](_0x485228);}['isOperationEnabled'](_0x5a2f4c){const _0x51bc63=a0_0x53bff1;if(typeof _0x5a2f4c!==_0x51bc63(0x2e0))return![];const _0x22fa9e=this[_0x51bc63(0x287)](_0x5a2f4c);return _0x22fa9e?.['isEnabled']()||![];}[a0_0x53bff1(0x2e3)](){const _0x5311ac=a0_0x53bff1;return this[_0x5311ac(0x2ac)]()[_0x5311ac(0x1a8)]();}[a0_0x53bff1(0xe4)](){const _0x5c3e9c=a0_0x53bff1;return this[_0x5c3e9c(0x2ac)]()[_0x5c3e9c(0x256)]();}['getEnabledOperationInstances'](){return this['getOperationList']()['getEnabled']();}[a0_0x53bff1(0x168)](){const _0x51533b=a0_0x53bff1;return this['getOperationList']()[_0x51533b(0xe2)]();}[a0_0x53bff1(0x1d8)](){const _0x5ac8e2=a0_0x53bff1;return{'fieldCount':this[_0x5ac8e2(0x213)](),'systemFieldCount':this[_0x5ac8e2(0x2ec)]()[_0x5ac8e2(0x305)],'businessFieldCount':this[_0x5ac8e2(0x122)]()[_0x5ac8e2(0x305)],'requiredFieldCount':this[_0x5ac8e2(0xda)]()['length'],'primaryKeyCount':this['getPrimaryKeyFields']()['length'],'operationCount':this['getOperationCount'](),'enabledOperationCount':this[_0x5ac8e2(0x2e3)]()['length']};}[a0_0x53bff1(0x2e1)](){const _0x40bc93=a0_0x53bff1;return new DatasetItem({'id':this['id'],'name':this[_0x40bc93(0xfb)],'datasetCode':this['datasetCode'],'dbtableConfig':this[_0x40bc93(0x2b1)]()});}[a0_0x53bff1(0x15f)](){const _0x5c839a=a0_0x53bff1;return _0x5c839a(0x139)+this['name']+',\x20'+this['datasetCode']+',\x20'+this[_0x5c839a(0x213)]()+'\x20fields,\x20'+this[_0x5c839a(0x312)]()+'\x20operations)';}[a0_0x53bff1(0x198)](){const _0x163056=a0_0x53bff1,_0x6ccfcb=this[_0x163056(0x287)](_0x163056(0x1ce));return _0x6ccfcb;}['hasFilterOperation'](){const _0x484be5=a0_0x53bff1;return this['hasOperation'](_0x484be5(0x1ce));}[a0_0x53bff1(0x230)](_0x342d72){const _0x517cd3=a0_0x53bff1,_0x14b125=this[_0x517cd3(0x287)](_0x342d72);return _0x14b125?_0x14b125['getOperators']():[];}['getOperationFieldOperators'](_0xcc3ac6,_0x943781){const _0x8dd8b4=a0_0x53bff1,_0x5495f2=this[_0x8dd8b4(0x287)](_0xcc3ac6);return _0x5495f2?_0x5495f2['getFieldOperators'](_0x943781):[];}[a0_0x53bff1(0x107)](_0x31c6db){const _0x5ad1b3=a0_0x53bff1,_0xb6b71b={};return this[_0x5ad1b3(0x30a)]()['forEach'](_0x49a676=>{const _0x42e232=_0x5ad1b3,_0x44de04=this[_0x42e232(0x1b9)](_0x31c6db,_0x49a676[_0x42e232(0x1dd)]);_0x44de04[_0x42e232(0x305)]>0x0&&(_0xb6b71b[_0x49a676[_0x42e232(0x1dd)]]=_0x44de04);}),_0xb6b71b;}[a0_0x53bff1(0x167)](_0x3a74f1,_0x37202f,_0x55551f){const _0x18d32b=a0_0x53bff1,_0xb0061d=this[_0x18d32b(0x1b9)](_0x3a74f1,_0x37202f);return _0xb0061d['includes'](_0x55551f);}[a0_0x53bff1(0x186)](){return this['getOperationOperators']('filter');}[a0_0x53bff1(0x1a3)](_0x4e55ed){const _0x2f8474=a0_0x53bff1;return this[_0x2f8474(0x1b9)](_0x2f8474(0x1ce),_0x4e55ed);}[a0_0x53bff1(0x100)](){const _0x4c2ea2=a0_0x53bff1;return this['getOperationFieldsOperatorsMap'](_0x4c2ea2(0x1ce));}}class DatasetGroup{[a0_0x53bff1(0x1bf)];constructor(_0x500fe3){const _0x3ddb40=a0_0x53bff1;this[_0x3ddb40(0x1bf)]=Array['isArray'](_0x500fe3)?[..._0x500fe3]:[_0x500fe3],this[_0x3ddb40(0x1bf)][_0x3ddb40(0x2b0)]((_0x21dd32,_0x40da55)=>{const _0x39d1ad=Number(_0x21dd32['id'])||0x0,_0x179a2e=Number(_0x40da55['id'])||0x0;return _0x179a2e-_0x39d1ad;});}[a0_0x53bff1(0x244)](){const _0xf2894d=a0_0x53bff1;return this['items'][_0xf2894d(0x305)]>0x1;}['getLatest'](){return this['items'][0x0];}[a0_0x53bff1(0x2cf)](){const _0x223527=a0_0x53bff1;return this[_0x223527(0x1bf)][this[_0x223527(0x1bf)]['length']-0x1];}[a0_0x53bff1(0x25a)](){const _0x53d1fa=a0_0x53bff1;return[...this[_0x53d1fa(0x1bf)]];}[a0_0x53bff1(0xd6)](){const _0x361824=a0_0x53bff1;return this['items'][_0x361824(0x305)];}[a0_0x53bff1(0x1cc)](_0x213377){const _0x2cbcd7=a0_0x53bff1;return this[_0x2cbcd7(0x1bf)][_0x213377];}[a0_0x53bff1(0x261)](_0x51bb45){const _0x1e8df7=a0_0x53bff1;return this['items'][_0x1e8df7(0x1ae)](_0x837e90=>_0x837e90['id']===_0x51bb45);}[a0_0x53bff1(0x124)](_0x50cbe4){const _0x448a35=a0_0x53bff1;return this[_0x448a35(0x1bf)][_0x448a35(0x1ae)](_0x23a60c=>_0x23a60c[_0x448a35(0x1c8)]===_0x50cbe4);}[a0_0x53bff1(0x13e)](){const _0x554177=a0_0x53bff1;return this['items']['map'](_0x56af64=>_0x56af64['id'])[_0x554177(0x1ce)](_0x316141=>_0x316141!==undefined);}['getCodes'](){const _0x32837a=a0_0x53bff1;return this[_0x32837a(0x1bf)][_0x32837a(0x1e1)](_0x46a111=>_0x46a111[_0x32837a(0x1c8)]);}[a0_0x53bff1(0x15f)](){const _0x5049a0=a0_0x53bff1;if(this[_0x5049a0(0x244)]())return _0x5049a0(0x132)+this[_0x5049a0(0x1bf)][_0x5049a0(0x305)]+_0x5049a0(0x259)+this[_0x5049a0(0x2a0)]()[_0x5049a0(0xfb)]+')';return _0x5049a0(0x132)+this[_0x5049a0(0x1bf)][0x0][_0x5049a0(0xfb)]+')';}}class DatasetGroupMap{['groups'];constructor(_0x23a566){const _0x1a4210=a0_0x53bff1;this['groups']=new Map();for(const _0x8288b5 of _0x23a566){const _0x1a0b2b=getTableKey(_0x8288b5);if(!this['groups'][_0x1a4210(0x2f3)](_0x1a0b2b))this[_0x1a4210(0x12a)]['set'](_0x1a0b2b,new DatasetGroup(_0x8288b5));else{const _0x5637b5=this[_0x1a4210(0x12a)][_0x1a4210(0x240)](_0x1a0b2b),_0x4d2a03=[..._0x5637b5[_0x1a4210(0x25a)](),_0x8288b5];this['groups'][_0x1a4210(0x169)](_0x1a0b2b,new DatasetGroup(_0x4d2a03));}}}['get'](_0x601143){const _0x326730=a0_0x53bff1;return this[_0x326730(0x12a)][_0x326730(0x240)](_0x601143);}[a0_0x53bff1(0x2f3)](_0x318fc5){const _0x53bfa0=a0_0x53bff1;return this[_0x53bfa0(0x12a)]['has'](_0x318fc5);}get[a0_0x53bff1(0x2b2)](){const _0x2b31ba=a0_0x53bff1;return this[_0x2b31ba(0x12a)]['size'];}['keys'](){const _0x2310ba=a0_0x53bff1;return this[_0x2310ba(0x12a)][_0x2310ba(0x28a)]();}[a0_0x53bff1(0x128)](){const _0x4cc74d=a0_0x53bff1;return this[_0x4cc74d(0x12a)][_0x4cc74d(0x128)]();}['entries'](){const _0xbe4b5e=a0_0x53bff1;return this[_0xbe4b5e(0x12a)]['entries']();}[Symbol[a0_0x53bff1(0x1c9)]](){const _0x48008a=a0_0x53bff1;return this[_0x48008a(0x12a)][_0x48008a(0x2d3)]();}['forEach'](_0x1ed307){const _0x30dcaa=a0_0x53bff1;this[_0x30dcaa(0x12a)][_0x30dcaa(0x1b2)]((_0x23fe84,_0x580d61)=>_0x1ed307(_0x23fe84,_0x580d61,this));}['getConflicts'](){const _0x21474d=a0_0x53bff1,_0x44b9c7=new Map();for(const [_0x1af32e,_0x415e2a]of this[_0x21474d(0x12a)]){_0x415e2a[_0x21474d(0x244)]()&&_0x44b9c7[_0x21474d(0x169)](_0x1af32e,_0x415e2a);}return _0x44b9c7;}[a0_0x53bff1(0xcc)](){const _0x3b29c7=a0_0x53bff1;for(const _0xc5d706 of this[_0x3b29c7(0x12a)][_0x3b29c7(0x128)]()){if(_0xc5d706[_0x3b29c7(0x244)]())return!![];}return![];}[a0_0x53bff1(0x2d9)](){const _0x2bd267=a0_0x53bff1;let _0x2299d1=0x0,_0x55e828=0x0;for(const _0x241b50 of this[_0x2bd267(0x12a)][_0x2bd267(0x128)]()){_0x241b50[_0x2bd267(0x244)]()&&(_0x2299d1++,_0x55e828+=_0x241b50[_0x2bd267(0xd6)]());}return{'conflictGroupCount':_0x2299d1,'conflictItemCount':_0x55e828,'totalGroups':this[_0x2bd267(0x12a)][_0x2bd267(0x2b2)]};}[a0_0x53bff1(0x274)](){const _0x548e61=a0_0x53bff1,_0x4b21c4=[];for(const _0x22b6db of this[_0x548e61(0x12a)][_0x548e61(0x128)]()){_0x4b21c4[_0x548e61(0xd1)](..._0x22b6db[_0x548e61(0x25a)]());}return _0x4b21c4;}[a0_0x53bff1(0x2af)](){const _0x3cd5c0=a0_0x53bff1,_0x5e50b4=[];for(const _0x15ff47 of this[_0x3cd5c0(0x12a)][_0x3cd5c0(0x128)]()){_0x5e50b4[_0x3cd5c0(0xd1)](_0x15ff47[_0x3cd5c0(0x2a0)]());}return _0x5e50b4;}[a0_0x53bff1(0x2a0)](_0x55fbcc){const _0x3f0df0=a0_0x53bff1;return this[_0x3f0df0(0x12a)][_0x3f0df0(0x240)](_0x55fbcc)?.[_0x3f0df0(0x2a0)]();}['getAll'](_0x184d00){const _0x43e928=a0_0x53bff1;return this[_0x43e928(0x12a)]['get'](_0x184d00)?.[_0x43e928(0x25a)]()||[];}['toConfig'](){const _0x2978db=a0_0x53bff1,_0x16d2a9=this[_0x2978db(0x2af)](),_0x523b15=_0x16d2a9[_0x2978db(0x1e1)](_0x19bb25=>_0x19bb25['toJSON']());return generateDatasetsConfig(_0x523b15,{'enableDeduplication':![]});}[a0_0x53bff1(0x1bc)](){const _0x44b3f5=a0_0x53bff1,_0x5282f3=this[_0x44b3f5(0x274)](),_0x405ad3=_0x5282f3[_0x44b3f5(0x1e1)](_0x40b788=>_0x40b788[_0x44b3f5(0x1d2)]());return generateFullDatasetsConfig(_0x405ad3);}[a0_0x53bff1(0x26d)](){const _0x1cfee0=a0_0x53bff1,_0x589555={};for(const [_0x551c37,_0x331072]of this[_0x1cfee0(0x12a)]){_0x589555[_0x551c37]=_0x331072;}return _0x589555;}[a0_0x53bff1(0x1d2)](){const _0x521509=a0_0x53bff1,_0x192a29={};for(const [_0xc0a05f,_0x5cd3bf]of this[_0x521509(0x12a)]){_0x192a29[_0xc0a05f]=_0x5cd3bf[_0x521509(0x25a)]()[_0x521509(0x1e1)](_0x598887=>_0x598887[_0x521509(0x1d2)]());}return _0x192a29;}[a0_0x53bff1(0x15f)](){const _0x3c3d99=a0_0x53bff1;return _0x3c3d99(0x27d)+this[_0x3c3d99(0x12a)][_0x3c3d99(0x2b2)]+_0x3c3d99(0x2c2)+(this[_0x3c3d99(0xcc)]()?_0x3c3d99(0x2cb):'no\x20conflicts')+')';}}class DatasetList{[a0_0x53bff1(0xff)];constructor(_0x725b47){const _0x45ec68=a0_0x53bff1;let _0x1a5f99;if(Array['isArray'](_0x725b47))_0x1a5f99=_0x725b47;else{if(_0x45ec68(0x1e3)in _0x725b47){if(!_0x725b47[_0x45ec68(0x1e3)])throw new Error(_0x45ec68(0x22d));if(Array[_0x45ec68(0x153)](_0x725b47[_0x45ec68(0x2f1)]))_0x1a5f99=_0x725b47[_0x45ec68(0x2f1)][_0x45ec68(0x1e1)](_0x398f60=>({..._0x398f60,'datasetCode':_0x398f60[_0x45ec68(0x1dd)]||_0x398f60[_0x45ec68(0x1c8)]}));else{if(_0x725b47[_0x45ec68(0x2f1)]?.[_0x45ec68(0xd2)])_0x1a5f99=_0x725b47[_0x45ec68(0x2f1)][_0x45ec68(0xd2)]['map'](_0x26e03d=>({..._0x26e03d,'datasetCode':_0x26e03d['code']||_0x26e03d[_0x45ec68(0x1c8)]}));else throw new Error(_0x45ec68(0x1db));}}else{if(_0x45ec68(0xd2)in _0x725b47){if(!Array[_0x45ec68(0x153)](_0x725b47[_0x45ec68(0xd2)]))throw new Error(_0x45ec68(0x1d1));_0x1a5f99=_0x725b47[_0x45ec68(0xd2)]['map'](_0x3bc59a=>({..._0x3bc59a,'datasetCode':_0x3bc59a[_0x45ec68(0x1dd)]||_0x3bc59a[_0x45ec68(0x1c8)]}));}else throw new Error(_0x45ec68(0x14f));}}const _0x30fca0=_0x1a5f99['map'](_0x298b84=>new DatasetItem(_0x298b84));this[_0x45ec68(0xff)]=new DatasetGroupMap(_0x30fca0);}get[a0_0x53bff1(0x27c)](){const _0x26de6a=a0_0x53bff1;return this[_0x26de6a(0xff)];}[a0_0x53bff1(0x133)](){const _0x152f1d=a0_0x53bff1;return this[_0x152f1d(0xff)][_0x152f1d(0x274)]();}[a0_0x53bff1(0xd6)](){const _0x1c8e4d=a0_0x53bff1;return this[_0x1c8e4d(0x133)]()[_0x1c8e4d(0x305)];}[a0_0x53bff1(0x207)](){const _0x3dfc74=a0_0x53bff1;return this[_0x3dfc74(0xff)][_0x3dfc74(0x2b2)]===0x0;}[a0_0x53bff1(0x1cc)](_0x1a7ca1){const _0x3888a9=a0_0x53bff1;return this[_0x3888a9(0x133)]()[_0x1a7ca1];}[a0_0x53bff1(0x1ab)](){const _0xedf15f=a0_0x53bff1;return this[_0xedf15f(0x133)]()[0x0];}[a0_0x53bff1(0x235)](){const _0x3f94e7=a0_0x53bff1,_0x1e8949=this[_0x3f94e7(0x133)]();return _0x1e8949[_0x1e8949['length']-0x1];}[a0_0x53bff1(0x124)](_0x4a395f){const _0x512b39=a0_0x53bff1;for(const _0x5c4830 of this[_0x512b39(0xff)][_0x512b39(0x128)]()){const _0x190ade=_0x5c4830[_0x512b39(0x124)](_0x4a395f);if(_0x190ade)return _0x190ade;}return;}[a0_0x53bff1(0xdd)](_0x27ebbd){const _0x2ec95c=a0_0x53bff1;return this['getItems']()[_0x2ec95c(0x1ae)](_0x571cfd=>_0x571cfd[_0x2ec95c(0xfb)]===_0x27ebbd);}[a0_0x53bff1(0x261)](_0x4976ae){const _0x40073d=a0_0x53bff1;for(const _0x5cac74 of this['_datasetMap'][_0x40073d(0x128)]()){const _0x3bd908=_0x5cac74[_0x40073d(0x261)](_0x4976ae);if(_0x3bd908)return _0x3bd908;}return;}['findByTableName'](_0x5bc885){const _0x1f1aa6=a0_0x53bff1,_0x18d3c9=getTableKey(_0x5bc885);return this[_0x1f1aa6(0xff)][_0x1f1aa6(0x2a0)](_0x18d3c9);}['filter'](_0x5f1d60){const _0x4f30af=a0_0x53bff1,_0x2b16f1=this[_0x4f30af(0x133)]()[_0x4f30af(0x1ce)](_0x5f1d60);return new DatasetList(_0x2b16f1[_0x4f30af(0x1e1)](_0x1afab5=>_0x1afab5[_0x4f30af(0x1d2)]()));}[a0_0x53bff1(0x2df)](_0xc4e71f){const _0x105395=a0_0x53bff1;return this[_0x105395(0x133)]()[_0x105395(0x1ce)](_0xc4e71f);}[a0_0x53bff1(0x1b2)](_0x454ae1){const _0x2f30a6=a0_0x53bff1;this[_0x2f30a6(0x133)]()['forEach'](_0x454ae1);}[a0_0x53bff1(0x1e1)](_0x1ff576){const _0x12c263=a0_0x53bff1;return this[_0x12c263(0x133)]()['map'](_0x1ff576);}[Symbol[a0_0x53bff1(0x1c9)]](){const _0x23f70d=a0_0x53bff1;return this[_0x23f70d(0x133)]()[Symbol[_0x23f70d(0x1c9)]]();}['getVirtualTables'](){const _0x5d5d7b=a0_0x53bff1;return this[_0x5d5d7b(0x133)]()[_0x5d5d7b(0x1ce)](_0x7168d6=>_0x7168d6[_0x5d5d7b(0x282)]());}[a0_0x53bff1(0x147)](){const _0x8238f6=a0_0x53bff1;return this['getItems']()[_0x8238f6(0x1ce)](_0x384bf0=>!_0x384bf0[_0x8238f6(0x282)]());}[a0_0x53bff1(0x2ba)](){const _0x52f4b9=a0_0x53bff1,_0x5ce3ec={};for(const _0x2d696a of this[_0x52f4b9(0xff)]['values']()){const _0x235974=_0x2d696a['getLatest']()[_0x52f4b9(0x151)]();_0x5ce3ec[_0x235974]=_0x2d696a[_0x52f4b9(0x25a)]();}return _0x5ce3ec;}[a0_0x53bff1(0x271)](){const _0x16710d=a0_0x53bff1,_0x1960b2={};for(const _0x4062a0 of this[_0x16710d(0xff)][_0x16710d(0x1ee)]()[_0x16710d(0x128)]()){const _0xfc6b9=_0x4062a0[_0x16710d(0x2a0)]()[_0x16710d(0x151)]();_0x1960b2[_0xfc6b9]=_0x4062a0['getAll']()[_0x16710d(0x1e1)](_0x2a4443=>_0x2a4443[_0x16710d(0x1d2)]());}return{'hasConflicts':Object[_0x16710d(0x28a)](_0x1960b2)[_0x16710d(0x305)]>0x0,'conflicts':_0x1960b2};}[a0_0x53bff1(0xcc)](){const _0xaa52d9=a0_0x53bff1;return this[_0xaa52d9(0xff)][_0xaa52d9(0xcc)]();}[a0_0x53bff1(0x1a2)](){const _0x2a29a0=a0_0x53bff1,_0xaba50=[];for(const _0x4f6577 of this[_0x2a29a0(0xff)][_0x2a29a0(0x1ee)]()[_0x2a29a0(0x128)]()){_0xaba50[_0x2a29a0(0xd1)](..._0x4f6577[_0x2a29a0(0x25a)]());}return _0xaba50;}[a0_0x53bff1(0xf1)](_0x209207){const _0x56042c=a0_0x53bff1;if(!_0x209207||Object[_0x56042c(0x28a)](_0x209207)[_0x56042c(0x305)]===0x0)return this[_0x56042c(0x27c)]['toConfig']();const _0x3556ac=this[_0x56042c(0x133)]()[_0x56042c(0x1e1)](_0x33e815=>_0x33e815[_0x56042c(0x1d2)]());return generateDatasetsConfig(_0x3556ac,_0x209207);}[a0_0x53bff1(0x116)](_0x17a61b){const _0x1bdbb7=a0_0x53bff1,_0x125438=this[_0x1bdbb7(0xf1)](_0x17a61b);return datasetsConfigToArray(_0x125438);}[a0_0x53bff1(0x17e)](){const _0x3166c7=a0_0x53bff1;return this[_0x3166c7(0x133)]()[_0x3166c7(0x1e1)](_0x3abf5a=>_0x3abf5a['toConfig']());}[a0_0x53bff1(0x1d8)](){const _0x268e73=a0_0x53bff1;return{'total':this[_0x268e73(0xd6)](),'virtualTables':this[_0x268e73(0x275)]()[_0x268e73(0x305)],'realTables':this[_0x268e73(0x147)]()[_0x268e73(0x305)],'hasConflicts':this[_0x268e73(0xcc)](),'conflictCount':this[_0x268e73(0x1a2)]()[_0x268e73(0x305)]};}[a0_0x53bff1(0x2a7)](){const _0xe255a=a0_0x53bff1;return this[_0xe255a(0x133)]()[_0xe255a(0x1e1)](_0x535fc6=>_0x535fc6[_0xe255a(0x1d2)]());}[a0_0x53bff1(0x1d2)](){const _0x580df0=a0_0x53bff1;return this[_0x580df0(0x2a7)]();}[a0_0x53bff1(0x15f)](){const _0x240672=a0_0x53bff1;return _0x240672(0x15d)+this[_0x240672(0xd6)]()+_0x240672(0x251)+this[_0x240672(0xff)][_0x240672(0x2b2)]+_0x240672(0x12d);}static[a0_0x53bff1(0x118)](_0x2974f8){return new DatasetList(_0x2974f8);}static[a0_0x53bff1(0x30e)](_0xebb13e){return new DatasetList(_0xebb13e);}static[a0_0x53bff1(0xeb)](){return new DatasetList([]);}}function operationToAnalysis(_0x24a763){const _0xbce7b=a0_0x53bff1;return{'name':_0x24a763[_0xbce7b(0x1f3)](),'displayName':_0x24a763[_0xbce7b(0x1e4)](),'type':_0x24a763[_0xbce7b(0x201)](),'method':_0x24a763[_0xbce7b(0x22c)](),'path':_0x24a763[_0xbce7b(0x25c)](),'fullUrl':_0x24a763[_0xbce7b(0x280)](),'requestFields':_0x24a763[_0xbce7b(0x13b)](),'requestParams':_0x24a763['getRequestParams'](),'responseSchema':_0x24a763[_0xbce7b(0x10b)](),'requestExample':_0x24a763[_0xbce7b(0x211)](),'responseExample':_0x24a763[_0xbce7b(0x154)](),'enabled':_0x24a763[_0xbce7b(0x1ba)]()};}function operationsToAnalyses(_0x183c22){return _0x183c22['map'](operationToAnalysis);}class DrivenDataDetailPlus extends DrivenDataDetail{['_operationAnalyses'];[a0_0x53bff1(0x1c2)](){const _0x1b9ba4=a0_0x53bff1;return this[_0x1b9ba4(0x155)]();}['getOperationAnalyses'](_0x597762=![]){const _0x33ad9b=a0_0x53bff1;if(!_0x597762&&this[_0x33ad9b(0x29e)])return this[_0x33ad9b(0x29e)];const _0x34fe7d=this[_0x33ad9b(0x304)]();return this[_0x33ad9b(0x29e)]=operationsToAnalyses(_0x34fe7d),this[_0x33ad9b(0x29e)];}[a0_0x53bff1(0x19a)](){const _0x2efab9=a0_0x53bff1;return this[_0x2efab9(0x179)]({'includeDisabled':![],'filterBlacklist':!![]});}[a0_0x53bff1(0x179)](_0x5a07a4={}){const _0x41e9b0=a0_0x53bff1;let _0x1f7a7c=this[_0x41e9b0(0x231)]();return!_0x5a07a4[_0x41e9b0(0xf4)]&&(_0x1f7a7c=_0x1f7a7c[_0x41e9b0(0x1ce)](_0x3617fe=>_0x3617fe['enabled'])),_0x5a07a4[_0x41e9b0(0x14d)]!==![]&&(_0x1f7a7c=filterApiOperations(_0x1f7a7c)),_0x5a07a4[_0x41e9b0(0x178)]&&(_0x1f7a7c=_0x1f7a7c[_0x41e9b0(0x1ce)](_0x5a07a4[_0x41e9b0(0x178)])),_0x1f7a7c=this[_0x41e9b0(0x21a)](_0x1f7a7c),_0x1f7a7c;}['sortOperationsWithFilterFirst'](_0x1d154e){const _0x2b741a=a0_0x53bff1,_0x1e3aca=_0x1d154e[_0x2b741a(0x1ae)](_0x3082c0=>_0x3082c0[_0x2b741a(0xfb)]==='filter'),_0x7b6e96=_0x1d154e['filter'](_0x3df6b6=>_0x3df6b6['name']!==_0x2b741a(0x1ce));return _0x1e3aca?[_0x1e3aca,..._0x7b6e96]:_0x7b6e96;}[a0_0x53bff1(0x283)](_0x5f34a8){const _0x5507d2=a0_0x53bff1,_0x2eed80=this[_0x5507d2(0x231)]();return _0x2eed80['find'](_0x22ae22=>_0x22ae22['name']===_0x5f34a8);}[a0_0x53bff1(0x2fc)](_0xfb3196){const _0x343bbd=a0_0x53bff1,_0x51ddc5=this['getOperationAnalyses']();return _0x51ddc5[_0x343bbd(0x1ce)](_0x4ec5de=>_0x4ec5de[_0x343bbd(0x2ab)]===_0xfb3196);}['getOperationRequestFields'](_0xb4588d){const _0x1b5e33=a0_0x53bff1,_0x58f7c8=this[_0x1b5e33(0x287)](_0xb4588d);if(!_0x58f7c8)return[];const _0x22d73a=_0x58f7c8[_0x1b5e33(0x13b)](),_0x4dc9ef=this['getFields']();return _0x4dc9ef[_0x1b5e33(0x1ce)](_0x390d02=>_0x22d73a[_0x1b5e33(0x220)](_0x390d02[_0x1b5e33(0x1dd)]));}[a0_0x53bff1(0x2f0)](_0x8da353,_0x3fafab){const _0x3cecdf=a0_0x53bff1,_0x49d6ae=this[_0x3cecdf(0x283)](_0x8da353);if(!_0x49d6ae)return null;const _0x356b7c=this[_0x3cecdf(0x287)](_0x49d6ae[_0x3cecdf(0xfb)]);if(!_0x356b7c)throw new Error(_0x3cecdf(0x166)+_0x49d6ae['name']);const _0x633b57=this[_0x3cecdf(0x1a6)](),_0x3f9473=this[_0x3cecdf(0x151)](),_0xe02954=_0x356b7c[_0x3cecdf(0x301)](_0x633b57,{'useFullExample':_0x3fafab?.[_0x3cecdf(0x199)]}),_0x4cc830=_0x356b7c[_0x3cecdf(0x19b)](_0x633b57);return{'operation':_0x49d6ae,'operationInstance':_0x356b7c,'basicInfo':{'name':_0x49d6ae[_0x3cecdf(0xfb)],'displayName':_0x49d6ae['displayName'],'method':_0x49d6ae[_0x3cecdf(0x12e)],'path':_0x49d6ae[_0x3cecdf(0x23a)],'fullUrl':_0x49d6ae[_0x3cecdf(0x120)],'enabled':_0x49d6ae[_0x3cecdf(0x249)]},'sdkCall':{'datasetCode':this['datasetCode'],'datasetSDKKey':_0x633b57,'tableName':_0x3f9473,'operationName':_0x49d6ae['name'],'params':_0x49d6ae[_0x3cecdf(0x1c5)],'code':_0xe02954},'usageExample':_0x4cc830};}[a0_0x53bff1(0x23d)](_0x588a6c={}){const _0x395940=a0_0x53bff1,_0x1f9b37=this['getFilteredOperationAnalyses'](_0x588a6c),_0x1c4918=this[_0x395940(0x1d8)](),_0x443654=_0x1f9b37['map'](_0x244d28=>this[_0x395940(0x2f0)](_0x244d28['name']))['filter'](_0x1f2c8c=>_0x1f2c8c!==null),_0x502c61=this[_0x395940(0x1a6)](),_0x145487={'name':this[_0x395940(0xfb)],'code':this[_0x395940(0x1c8)],'tableName':this[_0x395940(0x151)](),'datasetSDKKey':_0x502c61,'tableKey':this[_0x395940(0x155)](),'source':this[_0x395940(0x2bc)],'fieldCount':_0x1c4918['fieldCount'],'businessFieldCount':_0x1c4918[_0x395940(0x2cd)],'systemFieldCount':_0x1c4918[_0x395940(0x212)],'operationCount':_0x1c4918[_0x395940(0x19d)],'enabledOperationCount':_0x443654[_0x395940(0x305)]};return{'title':this[_0x395940(0xfb)]+_0x395940(0x29c),'datasetInfo':_0x145487,'operations':_0x443654};}[a0_0x53bff1(0x2da)](_0x1bb725){const _0x2a6c8d=a0_0x53bff1,_0x42f095=[{'index':_0x2a6c8d(0xfb),'label':'接口名称'},{'index':_0x2a6c8d(0x193),'label':_0x2a6c8d(0x28e)},{'index':'method','label':'方法'},{'index':_0x2a6c8d(0x260),'label':_0x2a6c8d(0x294)},{'index':_0x2a6c8d(0x23a),'label':_0x2a6c8d(0x1cf)},{'index':_0x2a6c8d(0x2a2),'label':_0x2a6c8d(0x125)}],_0x306c5d=_0x1bb725['map'](_0xcc7e2f=>{const _0x41b51c=_0x2a6c8d,{basicInfo:_0x58f637,sdkCall:_0x3432e1}=_0xcc7e2f,_0x59b064=_0x3432e1[_0x41b51c(0x1dd)][_0x41b51c(0x254)](/^const\s+\w+\s*=\s*await\s+/,'')[_0x41b51c(0x254)](/;$/,'');return{'displayName':_0x58f637[_0x41b51c(0x193)],'name':_0x58f637[_0x41b51c(0xfb)],'method':_0x58f637[_0x41b51c(0x12e)],'path':_0x58f637['path'],'sdkCall':_0x59b064,'sdkCallCode':_0x3432e1[_0x41b51c(0x1dd)]};});return{'tableColumns':_0x42f095,'tableData':_0x306c5d};}[a0_0x53bff1(0x221)](_0x11a163){const _0x334dc=a0_0x53bff1,_0x4f1478=this['getOperationAnalysis'](_0x11a163);if(!_0x4f1478)return null;return{'name':_0x4f1478[_0x334dc(0xfb)],'displayName':_0x4f1478[_0x334dc(0x193)],'type':_0x4f1478[_0x334dc(0x2ab)],'method':_0x4f1478['method'],'path':_0x4f1478[_0x334dc(0x23a)],'enabled':_0x4f1478[_0x334dc(0x249)],'requestFieldCount':_0x4f1478['requestFields']['length'],'hasResponseSchema':_0x4f1478[_0x334dc(0x1ed)]!==null};}[a0_0x53bff1(0x21e)](_0x3cbf0e={}){const _0x3308cc=a0_0x53bff1,_0x6269a9=this[_0x3308cc(0x179)](_0x3cbf0e);return{'datasetName':this[_0x3308cc(0xfb)],'datasetCode':this[_0x3308cc(0x1c8)],'tableName':this[_0x3308cc(0x151)](),'totalOperations':_0x6269a9['length'],'operations':_0x6269a9[_0x3308cc(0x1e1)](_0x3d8e87=>({'name':_0x3d8e87[_0x3308cc(0xfb)],'displayName':_0x3d8e87[_0x3308cc(0x193)],'type':_0x3d8e87[_0x3308cc(0x2ab)],'method':_0x3d8e87[_0x3308cc(0x12e)],'path':_0x3d8e87[_0x3308cc(0x23a)],'requestFieldCount':_0x3d8e87['requestFields'][_0x3308cc(0x305)]}))};}[a0_0x53bff1(0x2aa)](_0x907e81){const _0x5419de=a0_0x53bff1,_0x27f6fc={};return Object[_0x5419de(0x2d3)](_0x907e81)[_0x5419de(0x1b2)](([_0x2b1092,_0xbdb689])=>{Array['isArray'](_0xbdb689)&&_0xbdb689['length']>0x0?_0x27f6fc[_0x2b1092]=_0xbdb689[0x0]:_0x27f6fc[_0x2b1092]=_0xbdb689;}),_0x27f6fc;}[a0_0x53bff1(0x2c7)](){const _0x513c8f=a0_0x53bff1,_0x5565ff=this['getOperationAnalyses'](),_0x6e51ff=_0x5565ff[_0x513c8f(0x1ce)](_0x424018=>_0x424018['enabled']);return{'total':_0x5565ff[_0x513c8f(0x305)],'enabled':_0x6e51ff[_0x513c8f(0x305)],'disabled':_0x5565ff[_0x513c8f(0x305)]-_0x6e51ff[_0x513c8f(0x305)],'byType':this[_0x513c8f(0x285)](_0x6e51ff),'byMethod':this[_0x513c8f(0x206)](_0x6e51ff)};}[a0_0x53bff1(0x285)](_0x3e6568){const _0x43dbd3=a0_0x53bff1,_0x14cf79={};return _0x3e6568[_0x43dbd3(0x1b2)](_0x40b88b=>{const _0x357692=_0x43dbd3;_0x40b88b[_0x357692(0x2ab)]&&(_0x14cf79[_0x40b88b[_0x357692(0x2ab)]]=(_0x14cf79[_0x40b88b[_0x357692(0x2ab)]]||0x0)+0x1);}),_0x14cf79;}[a0_0x53bff1(0x206)](_0x1030fc){const _0x14dedf={};return _0x1030fc['forEach'](_0x147bda=>{const _0x12f078=a0_0x1dcc;_0x14dedf[_0x147bda['method']]=(_0x14dedf[_0x147bda[_0x12f078(0x12e)]]||0x0)+0x1;}),_0x14dedf;}[a0_0x53bff1(0x1f2)](){const _0x222293=a0_0x53bff1,_0x31b2c9=this['getEnabledOperationAnalyses'](),_0x5a5b1a=new Set(_0x31b2c9[_0x222293(0x1e1)](_0x24f3bc=>_0x24f3bc['type'])[_0x222293(0x1ce)](Boolean));return _0x5a5b1a[_0x222293(0x2f3)]('create')&&_0x5a5b1a[_0x222293(0x2f3)]('getList')&&_0x5a5b1a[_0x222293(0x2f3)](_0x222293(0xcd))&&_0x5a5b1a[_0x222293(0x2f3)](_0x222293(0x1e0));}[a0_0x53bff1(0x292)](){const _0x514403=a0_0x53bff1,_0x29ddaa=this['getEnabledOperationAnalyses'](),_0x5a2850=new Set(_0x29ddaa[_0x514403(0x1e1)](_0x2cf104=>_0x2cf104['type'])[_0x514403(0x1ce)](Boolean)),_0x5d1fee=[_0x514403(0x2f5),_0x514403(0xe1),'update','delete'];return _0x5d1fee['filter'](_0x3858cd=>!_0x5a2850[_0x514403(0x2f3)](_0x3858cd));}[a0_0x53bff1(0x16b)](_0x21ae21,_0x1cf5b1,_0x4cb17f){const _0x92fc8f=a0_0x53bff1,{includeRequestExample:includeRequestExample=!![],includeResponseExample:includeResponseExample=![],includeUsageExample:includeUsageExample=!![]}=_0x4cb17f||{},_0x424ca9=this['getOperationDocMeta'](_0x21ae21,{'useFullExample':includeRequestExample});if(!_0x424ca9)return null;let _0x3bad69='';_0x3bad69+='\x0a\x0a//\x20'+_0x424ca9[_0x92fc8f(0x19c)]['displayName']+_0x92fc8f(0x222)+_0x424ca9[_0x92fc8f(0x19c)][_0x92fc8f(0xfb)]+_0x92fc8f(0xfe)+_0x424ca9['sdkCall']['code'];if(includeResponseExample&&_0x424ca9[_0x92fc8f(0x19c)]['responseExample']?.[_0x92fc8f(0x2f1)]){const _0x347d98=typeof _0x424ca9['operation'][_0x92fc8f(0x2fd)][_0x92fc8f(0x2f1)]===_0x92fc8f(0x2e0)?_0x424ca9[_0x92fc8f(0x19c)][_0x92fc8f(0x2fd)][_0x92fc8f(0x2f1)]:JSON[_0x92fc8f(0x1aa)](_0x424ca9[_0x92fc8f(0x19c)][_0x92fc8f(0x2fd)][_0x92fc8f(0x2f1)],null,0x2);_0x3bad69+='\x0a\x0a//\x20'+_0x424ca9[_0x92fc8f(0x19c)][_0x92fc8f(0xfb)]+_0x92fc8f(0x10e)+_0x347d98;}return includeUsageExample&&_0x424ca9[_0x92fc8f(0x279)]&&(_0x3bad69+=_0x92fc8f(0x196)+_0x424ca9[_0x92fc8f(0x279)]['successCode']+'\x0a\x0a'+_0x424ca9['usageExample']['errorCode']),_0x3bad69;}[a0_0x53bff1(0x216)](_0x118f4a){const _0x350daa=a0_0x53bff1,{includeRequestExample:includeRequestExample=!![],includeUsageExample:includeUsageExample=![]}=_0x118f4a||{},_0x229c0b=this[_0x350daa(0x19a)]();return _0x229c0b['map'](_0x286dd7=>this[_0x350daa(0x16b)](_0x286dd7[_0x350daa(0xfb)],this[_0x350daa(0x1c8)],{'includeRequestExample':includeRequestExample,'includeUsageExample':includeUsageExample}))[_0x350daa(0x2e8)]('\x0a');}[a0_0x53bff1(0x11e)](_0x117836){const _0x3ccd45=a0_0x53bff1,_0x4a4f45=this[_0x3ccd45(0x1a6)]();return{'appCode':_0x117836,'datasetSDKKey':_0x4a4f45,'tableKey':this[_0x3ccd45(0x155)](),'alias':this[_0x3ccd45(0x1c2)](),'tableName':this[_0x3ccd45(0x151)](),'datasetCode':this['datasetCode']};}[a0_0x53bff1(0x2a1)](_0x428942,_0x47ade3=a0_0x53bff1(0x239),_0x59d731=![]){const _0x42ee57=a0_0x53bff1,{alias:_0x27d316,tableName:_0x457b0d,datasetCode:_0x2527c2}=this[_0x42ee57(0x11e)](_0x428942),_0x2a49d3=_0x47ade3==='daily'?_0x42ee57(0xd7)+_0x47ade3+'\x27,':'',_0x2d8b8a=_0x59d731?_0x42ee57(0x1d5):'';return _0x42ee57(0xd5)+_0x428942+'\x27,'+_0x2d8b8a+_0x2a49d3+_0x42ee57(0x2be)+_0x457b0d+'\x27,\x0a\x20\x20\x20\x20\x20\x20datasetCode:\x20\x27'+_0x2527c2+_0x42ee57(0x119)+_0x27d316+_0x42ee57(0x191)+_0x27d316+_0x42ee57(0x13d);}['generateAliasExplanation'](){const _0x2eb329=a0_0x53bff1,_0x455917=this[_0x2eb329(0x1a6)](),_0x5ca999=this['getModelAlias']();return _0x2eb329(0xfd)+_0x455917+_0x2eb329(0x12b)+_0x5ca999+_0x2eb329(0x13f);}[a0_0x53bff1(0x15f)](){const _0x3113de=a0_0x53bff1,_0x406a54=this['getOperationStats']();return'DrivenDataDetailPlus('+this[_0x3113de(0xfb)]+',\x20'+this[_0x3113de(0x1c8)]+',\x20'+this[_0x3113de(0x213)]()+_0x3113de(0x1b5)+_0x406a54['enabled']+'/'+_0x406a54[_0x3113de(0x131)]+'\x20operations)';}}var VERSION=a0_0x53bff1(0x19e);export{toSnakeCase,toPascalCase,toKebabCase,toCamelCase,smartAdapt,shouldIncludeField,parseResponseBody,parseRequestBody,parseOperationType,parseFieldExtend,normalizeFieldName,isVirtualTableName,isSystemField,isRequiredField,isPrimaryKeyField,isModifyTimeField,isDrivenDataDetail,isCreateTimeField,isAutoIncrementField,isApiBlacklisted,groupByTableName,getTableName,getFieldsForOperation,getDbTypeDisplay,generateTableNameFromCode,generateRequestExample,generateExampleValue,generateExampleFromSchema,generateDatasetsConfig,formatOptionsForDoc,formatOptionsAsMarkdownList,formatEnumValue,formatDbType,filterApiOperations,extractDatasetsFromListResponse,extractDatasetFromResponse,detectTableNameConflicts,createDatasetNameMap,adaptDrivenDataDetails,adaptDrivenDataDetail,VERSION,OperationList,OperationFactory,Operation,OPERATION_TYPE_DISPLAY_NAME,GetSelectOptionsOperation,GetListOperation,GenericOperation,FilterOperation,FieldList,Field,FILTER_OPERATORS,DrivenDataDetailPlus,DrivenDataDetail,DatasetOperationType,DatasetList,DatasetItem,DatasetGroupMap,DatasetGroup,DB_TYPE_DISPLAY_MAP,API_BLACKLIST};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Aggregate 操作
|
|
3
|
+
* 特殊处理:
|
|
4
|
+
* 1. 参数包含 where(查询条件)、groupBy(分组字段)、aggregates(聚合函数)
|
|
5
|
+
* 2. aggregates 支持多种聚合函数:sum, count, avg, max, min, countDistinct
|
|
6
|
+
* 3. 自动生成基于字段类型的聚合查询示例
|
|
7
|
+
*/
|
|
8
|
+
import { GenericOperation } from './GenericOperation.js';
|
|
9
|
+
import type { OperationContext, RequestParamsDocInfo } from './Operation.js';
|
|
10
|
+
/**
|
|
11
|
+
* Aggregate API 支持的聚合函数
|
|
12
|
+
*/
|
|
13
|
+
export declare const AGGREGATE_FUNCTIONS: readonly ["sum", "count", "avg", "max", "min"];
|
|
14
|
+
/** Aggregate 聚合函数类型 */
|
|
15
|
+
export type AggregateFunction = (typeof AGGREGATE_FUNCTIONS)[number];
|
|
16
|
+
/** Aggregate 入参聚合配置项 */
|
|
17
|
+
export interface AggregateConfig {
|
|
18
|
+
type: 'sum' | 'count' | 'avg' | 'max' | 'min';
|
|
19
|
+
field: string;
|
|
20
|
+
alias: string;
|
|
21
|
+
distinct?: boolean;
|
|
22
|
+
round?: boolean;
|
|
23
|
+
precision?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Aggregate 操作类
|
|
27
|
+
* 继承自 GenericOperation,override 核心方法提供 aggregate 特有的参数和示例生成
|
|
28
|
+
*/
|
|
29
|
+
export declare class AggregateOperation extends GenericOperation {
|
|
30
|
+
constructor(name: string, rawData: unknown, context: OperationContext);
|
|
31
|
+
/**
|
|
32
|
+
* 获取 Aggregate API 支持的聚合函数列表
|
|
33
|
+
*/
|
|
34
|
+
getAggregates(): readonly string[];
|
|
35
|
+
/**
|
|
36
|
+
* 获取请求参数定义
|
|
37
|
+
* 特殊处理:添加 Aggregate API 的特有参数
|
|
38
|
+
*/
|
|
39
|
+
getRequestParams(): Record<string, unknown>;
|
|
40
|
+
/**
|
|
41
|
+
* 生成请求示例数据
|
|
42
|
+
* 特殊处理:
|
|
43
|
+
* 1. 根据字段类型生成聚合函数配置
|
|
44
|
+
* 2. 提供分组字段示例
|
|
45
|
+
* 3. 生成 where 条件示例
|
|
46
|
+
*/
|
|
47
|
+
generateRequestExample(): Record<string, unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* 生成 SDK 调用代码示例
|
|
50
|
+
* 特殊处理:展示 Aggregate API 的完整用法
|
|
51
|
+
*/
|
|
52
|
+
generateSDKCallCode(modelKey: string, options?: {
|
|
53
|
+
useFullExample?: boolean;
|
|
54
|
+
indent?: string;
|
|
55
|
+
}): string;
|
|
56
|
+
/**
|
|
57
|
+
* 判断字段是否为数字类型
|
|
58
|
+
*/
|
|
59
|
+
private isNumericField;
|
|
60
|
+
/**
|
|
61
|
+
* 根据字段类型获取适用的操作符
|
|
62
|
+
*/
|
|
63
|
+
private getApplicableOperators;
|
|
64
|
+
/**
|
|
65
|
+
* 选择最适合的操作符(用于示例生成)
|
|
66
|
+
*/
|
|
67
|
+
private selectBestOperator;
|
|
68
|
+
/**
|
|
69
|
+
* 根据字段和操作符生成示例值
|
|
70
|
+
*/
|
|
71
|
+
private generateExampleValue;
|
|
72
|
+
/**
|
|
73
|
+
* 重写请求参数的文档描述信息
|
|
74
|
+
* 1. 返回 aggregate 操作的特殊请求说明
|
|
75
|
+
* 2. 可用聚合字段和函数说明
|
|
76
|
+
*/
|
|
77
|
+
getRequestParamsDocInfo(): RequestParamsDocInfo;
|
|
78
|
+
/**
|
|
79
|
+
* 重写生成响应示例数据
|
|
80
|
+
* 1. 根据request请求中的aggregates生成响应示例数据
|
|
81
|
+
* 2. 响应示例数据中每个字段的值为随机数
|
|
82
|
+
*/
|
|
83
|
+
generateResponseExample(): Record<string, unknown>;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=AggregateOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AggregateOperation.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/AggregateOperation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG7E;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAMtB,CAAC;AAEX,uBAAuB;AACvB,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,wBAAwB;AACxB,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,gBAAgB;gBAC1C,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB;IAIrE;;OAEG;IACH,aAAa,IAAI,SAAS,MAAM,EAAE;IAIlC;;;OAGG;IACH,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAwB3C;;;;;;OAMG;IACH,sBAAsB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAyGjD;;;OAGG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GACA,MAAM;IAyET;;OAEG;IACH,OAAO,CAAC,cAAc;IAKtB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA4B9B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAsB1B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAiD5B;;;;OAIG;IACM,uBAAuB,IAAI,oBAAoB;IAoDxD;;;;OAIG;IACM,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CA8B5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericOperation.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/GenericOperation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;OAEG;IACH,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI3C;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAInD;;OAEG;IACH,sBAAsB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GenericOperation.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/GenericOperation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,gBAAgB;IAChB,OAAO,CAAC,oBAAoB,CAAC,CAA0B;IAEvD;;OAEG;IACH,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI3C;;OAEG;IACH,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAInD;;OAEG;IACH,sBAAsB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAmFjD;;OAEG;IACH,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAkBlD;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAsD1B;;;OAGG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;QACR,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GACA,MAAM;IA2DT;;;;OAIG;IACH,0BAA0B,IAAI,KAAK,CAAC;QAClC,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC/B,CAAC;CASH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationFactory.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/OperationFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"OperationFactory.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/OperationFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AASlE;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,GAAG,SAAS;IAmC5E;;;;;OAKG;IACH,SAAS,CACP,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvC,OAAO,EAAE,gBAAgB,GACxB,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC;CAS1B"}
|
|
@@ -6,6 +6,7 @@ export { GenericOperation } from './GenericOperation.js';
|
|
|
6
6
|
export { GetSelectOptionsOperation } from './GetSelectOptionsOperation.js';
|
|
7
7
|
export { GetListOperation } from './GetListOperation.js';
|
|
8
8
|
export { FilterOperation, FILTER_OPERATORS, type FilterOperator } from './FilterOperation.js';
|
|
9
|
+
export { AggregateOperation } from './AggregateOperation.js';
|
|
9
10
|
export { ExcelExportOperation } from './ExcelExportOperation.js';
|
|
10
11
|
export { UpdateOperation, type UpdateRequestParams } from './UpdateOperation.js';
|
|
11
12
|
export { OperationFactory } from './OperationFactory.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
|