anncic-api 3.4.32 → 3.4.34
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/config/config.default.d.ts +27 -27
- package/dist/config/config.default.js +1 -1
- package/dist/config/config.production.d.ts +5 -5
- package/dist/config/config.production.js +1 -1
- package/dist/configuration.d.ts +17 -17
- package/dist/configuration.js +1 -1
- package/dist/decorator/Action.d.ts +14 -14
- package/dist/decorator/Action.js +1 -1
- package/dist/decorator/ActionApitest.d.ts +2 -2
- package/dist/decorator/ActionApitest.js +1 -1
- package/dist/decorator/Intercept.d.ts +5 -5
- package/dist/decorator/Intercept.js +1 -1
- package/dist/exception/ApiError.d.ts +9 -9
- package/dist/exception/ApiError.js +1 -1
- package/dist/helper/getAppsConfig.d.ts +3 -3
- package/dist/helper/getAppsConfig.js +1 -1
- package/dist/helper/getRoutes.d.ts +9 -9
- package/dist/helper/getRoutes.js +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/service/ApiService.d.ts +12 -12
- package/dist/service/ApiService.js +1 -1
- package/dist/service/ApitestService.d.ts +19 -19
- package/dist/service/ApitestService.js +1 -1
- package/dist/service/ExcelService.d.ts +46 -46
- package/dist/service/ExcelService.js +1 -1
- package/dist/service/ExcelStream.d.ts +38 -38
- package/dist/service/ExcelStream.js +1 -1
- package/dist/types/action.d.ts +27 -27
- package/dist/types/action.js +1 -1
- package/dist/types/common.d.ts +14 -14
- package/dist/types/common.js +1 -1
- package/dist/types/intercept.d.ts +3 -3
- package/dist/types/intercept.js +1 -1
- package/package.json +8 -8
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as exceljs from 'exceljs';
|
|
2
|
-
interface ExcelColumn {
|
|
3
|
-
key: string;
|
|
4
|
-
header: string;
|
|
5
|
-
handler?: (row: any, options?: {
|
|
6
|
-
row: exceljs.Row;
|
|
7
|
-
col: exceljs.Column;
|
|
8
|
-
cell: exceljs.Cell;
|
|
9
|
-
sheet: exceljs.Worksheet;
|
|
10
|
-
}) => Promise<any>;
|
|
11
|
-
}
|
|
12
|
-
interface ExcelImportColumn {
|
|
13
|
-
key: string;
|
|
14
|
-
header: string;
|
|
15
|
-
handler?: (row: any, rowCell?: exceljs.CellModel) => Promise<any>;
|
|
16
|
-
}
|
|
17
|
-
export declare class ExcelStream {
|
|
18
|
-
protected readonly WorkbookReader: exceljs.stream.xlsx.WorkbookReader;
|
|
19
|
-
protected readonly WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter;
|
|
20
|
-
protected WorksheetWriterMap: Map<number | string, exceljs.Worksheet>;
|
|
21
|
-
constructor(WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter, WorkbookReader: exceljs.stream.xlsx.WorkbookReader);
|
|
22
|
-
static instance(file: string, option?: {
|
|
23
|
-
rootpath?: string;
|
|
24
|
-
suffix?: string[];
|
|
25
|
-
}): Promise<ExcelStream>;
|
|
26
|
-
writer(column: Array<ExcelColumn>, columnDatas: Array<{
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}>, sheet?: number | string): Promise<this>;
|
|
29
|
-
reader(column: ExcelImportColumn[], callback: (row: any, option: {
|
|
30
|
-
sheet: exceljs.Worksheet;
|
|
31
|
-
row: exceljs.Row;
|
|
32
|
-
}) => Promise<void>, options?: {
|
|
33
|
-
sheets?: number | string | Array<number | string>;
|
|
34
|
-
}): Promise<void>;
|
|
35
|
-
save(): Promise<this>;
|
|
36
|
-
protected getWriterSheet(sheet: number | string, notFindCreate?: boolean): Promise<exceljs.Worksheet>;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
1
|
+
import * as exceljs from 'exceljs';
|
|
2
|
+
interface ExcelColumn {
|
|
3
|
+
key: string;
|
|
4
|
+
header: string;
|
|
5
|
+
handler?: (row: any, options?: {
|
|
6
|
+
row: exceljs.Row;
|
|
7
|
+
col: exceljs.Column;
|
|
8
|
+
cell: exceljs.Cell;
|
|
9
|
+
sheet: exceljs.Worksheet;
|
|
10
|
+
}) => Promise<any>;
|
|
11
|
+
}
|
|
12
|
+
interface ExcelImportColumn {
|
|
13
|
+
key: string;
|
|
14
|
+
header: string;
|
|
15
|
+
handler?: (row: any, rowCell?: exceljs.CellModel) => Promise<any>;
|
|
16
|
+
}
|
|
17
|
+
export declare class ExcelStream {
|
|
18
|
+
protected readonly WorkbookReader: exceljs.stream.xlsx.WorkbookReader;
|
|
19
|
+
protected readonly WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter;
|
|
20
|
+
protected WorksheetWriterMap: Map<number | string, exceljs.Worksheet>;
|
|
21
|
+
constructor(WorkbookWriter: exceljs.stream.xlsx.WorkbookWriter, WorkbookReader: exceljs.stream.xlsx.WorkbookReader);
|
|
22
|
+
static instance(file: string, option?: {
|
|
23
|
+
rootpath?: string;
|
|
24
|
+
suffix?: string[];
|
|
25
|
+
}): Promise<ExcelStream>;
|
|
26
|
+
writer(column: Array<ExcelColumn>, columnDatas: Array<{
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, sheet?: number | string): Promise<this>;
|
|
29
|
+
reader(column: ExcelImportColumn[], callback: (row: any, option: {
|
|
30
|
+
sheet: exceljs.Worksheet;
|
|
31
|
+
row: exceljs.Row;
|
|
32
|
+
}) => Promise<void>, options?: {
|
|
33
|
+
sheets?: number | string | Array<number | string>;
|
|
34
|
+
}): Promise<void>;
|
|
35
|
+
save(): Promise<this>;
|
|
36
|
+
protected getWriterSheet(sheet: number | string, notFindCreate?: boolean): Promise<exceljs.Worksheet>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a13_0x3fee00=a13_0x4877;function a13_0x545f(){const _0x4512c1=['xlsx','312685yyuLTQ','set','isNumber','Workbook','121692CtHKGq','addWorksheet','getCell','columns','11UftKkz','worksheets','key','writer','eachCell','toString','文件名格式错误','startsWith','987lhBfnh','existsSync','lastIndexOf','keys','save','values','read','15LaJRfX','filter','rootpath','__esModule','has','getWorksheet','indexOf','WorkbookReader','WorkbookWriter','getColumn','value','length','2886EhkueX','exceljs','reader','sheets','22712qRVoOo','defineProperty','apply','path','get','frozen','ignore','6756921lMdhyu','header','handler','includes','WorksheetWriterMap','push','3296030ZJYQxq','2cYDFpj','880846eRbDPy','row','addRow','substring','getWriterSheet','stream','ExcelStream','emit','model','cellCount','30wBjymh','replace','xls','102876mHZllp','(((.+)+)+)+$','suffix','constructor','commit','function','isArray','search'];a13_0x545f=function(){return _0x4512c1;};return a13_0x545f();}function a13_0x4877(_0xa77c29,_0x2a903c){const _0x2ebc7e=a13_0x545f();return a13_0x4877=function(_0x393b8a,_0x2b4d38){_0x393b8a=_0x393b8a-0x6e;let _0x545f1b=_0x2ebc7e[_0x393b8a];return _0x545f1b;},a13_0x4877(_0xa77c29,_0x2a903c);}(function(_0x24b7fb,_0x16f505){const _0x3d9485=a13_0x4877,_0x3a37c9=_0x24b7fb();while(!![]){try{const _0x14801a=parseInt(_0x3d9485(0x7b))/0x1*(-parseInt(_0x3d9485(0x7a))/0x2)+parseInt(_0x3d9485(0xa8))/0x3*(-parseInt(_0x3d9485(0x95))/0x4)+parseInt(_0x3d9485(0x91))/0x5*(parseInt(_0x3d9485(0x85))/0x6)+parseInt(_0x3d9485(0xa1))/0x7*(parseInt(_0x3d9485(0xb8))/0x8)+-parseInt(_0x3d9485(0x73))/0x9+-parseInt(_0x3d9485(0x79))/0xa*(parseInt(_0x3d9485(0x99))/0xb)+-parseInt(_0x3d9485(0x88))/0xc*(-parseInt(_0x3d9485(0xb4))/0xd);if(_0x14801a===_0x16f505)break;else _0x3a37c9['push'](_0x3a37c9['shift']());}catch(_0xcfa657){_0x3a37c9['push'](_0x3a37c9['shift']());}}}(a13_0x545f,0x7ac49));const a13_0x2b4d38=(function(){let _0xf75dda=!![];return function(_0x3e3467,_0x1c7b3f){const _0x30b36d=_0xf75dda?function(){const _0x5727ac=a13_0x4877;if(_0x1c7b3f){const _0x553e2a=_0x1c7b3f[_0x5727ac(0x6e)](_0x3e3467,arguments);return _0x1c7b3f=null,_0x553e2a;}}:function(){};return _0xf75dda=![],_0x30b36d;};}()),a13_0x393b8a=a13_0x2b4d38(this,function(){const _0x427b23=a13_0x4877;return a13_0x393b8a[_0x427b23(0x9e)]()[_0x427b23(0x8f)]('(((.+)+)+)+$')[_0x427b23(0x9e)]()[_0x427b23(0x8b)](a13_0x393b8a)['search'](_0x427b23(0x89));});a13_0x393b8a();'use strict';Object[a13_0x3fee00(0xb9)](exports,a13_0x3fee00(0xab),{'value':!![]}),exports[a13_0x3fee00(0x81)]=void 0x0;const fs=require('fs'),path=require(a13_0x3fee00(0x6f)),exceljs=require(a13_0x3fee00(0xb5));class ExcelStream{constructor(_0x3b1bef,_0x477c5c){const _0xfef765=a13_0x3fee00;this[_0xfef765(0x77)]=new Map(),(this[_0xfef765(0xb0)]=_0x3b1bef,this[_0xfef765(0xaf)]=_0x477c5c);}static['instance'](_0x2ea899,_0x4a87cb={'suffix':[a13_0x3fee00(0x87),a13_0x3fee00(0x90)]}){return new Promise(async(_0x49e4c9,_0x3eb530)=>{const _0x12b12d=a13_0x4877,_0x3bb1aa=_0x2ea899['substring']((_0x2ea899[_0x12b12d(0xae)]('/')>-0x1?_0x2ea899[_0x12b12d(0xa3)]('/'):_0x2ea899['lastIndexOf']('\x5c'))+0x1),_0x3aedd9=path['dirname'](((_0x4a87cb===null||_0x4a87cb===void 0x0?void 0x0:_0x4a87cb['rootpath'])&&!_0x2ea899[_0x12b12d(0xa0)](_0x4a87cb[_0x12b12d(0xaa)])?_0x4a87cb[_0x12b12d(0xaa)]+'/'+_0x2ea899:'/'+_0x2ea899)[_0x12b12d(0x86)](/(\\|\/)/g,'/')[_0x12b12d(0x86)](/\/{2,}/g,'/'));if(!((_0x4a87cb===null||_0x4a87cb===void 0x0?void 0x0:_0x4a87cb[_0x12b12d(0x8a)])?_0x4a87cb['suffix']:[_0x12b12d(0x87),'xlsx'])[_0x12b12d(0x76)](_0x3bb1aa[_0x12b12d(0x7e)](_0x3bb1aa[_0x12b12d(0xa3)]('.')+0x1)))return _0x3eb530(_0x12b12d(0x9f));if(!fs[_0x12b12d(0xa2)]((_0x3aedd9+'/'+_0x3bb1aa)[_0x12b12d(0x86)](/(\\|\/)/g,'/')[_0x12b12d(0x86)](/\/{2,}/g,'/'))){!fs['existsSync'](_0x3aedd9)&&fs['mkdirSync'](_0x3aedd9,{'recursive':!![]});const _0x6afb6=new exceljs[(_0x12b12d(0x94))]();await _0x6afb6[_0x12b12d(0x90)]['writeFile']((_0x3aedd9+'/'+_0x3bb1aa)['replace'](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'));}const _0x139e99=new exceljs[(_0x12b12d(0x80))][(_0x12b12d(0x90))][(_0x12b12d(0xb0))]({'filename':(_0x3aedd9+'/'+_0x3bb1aa)[_0x12b12d(0x86)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x21ac7d=new exceljs[(_0x12b12d(0x80))]['xlsx']['WorkbookReader']((_0x3aedd9+'/'+_0x3bb1aa)[_0x12b12d(0x86)](/(\\|\/)/g,'/')['replace'](/\/{2,}/g,'/'),{'worksheets':_0x12b12d(0x82),'sharedStrings':_0x12b12d(0x72),'hyperlinks':_0x12b12d(0x72),'styles':_0x12b12d(0x72)});return _0x49e4c9(new ExcelStream(_0x139e99,_0x21ac7d));});}async[a13_0x3fee00(0x9c)](_0x2e9071,_0x2e4316,_0x5a4269=0x0){const _0x356f51=a13_0x3fee00;var _0x55c933,_0xf1bc7;const _0x33bbe2=await this['getWriterSheet'](_0x5a4269,!![]),_0xcd443f={},_0x25cd27=[];for(const _0x18886b in _0x2e9071){_0xcd443f[_0x2e9071[_0x18886b]['key']]=_0x2e9071[_0x18886b]['header'],_0x25cd27[_0x356f51(0x78)]({'header':_0x2e9071[_0x18886b][_0x356f51(0x74)],'key':(_0x55c933=_0x2e9071[_0x18886b])===null||_0x55c933===void 0x0?void 0x0:_0x55c933[_0x356f51(0x9b)][_0x356f51(0x86)](/\./g,'_')});}(_0x33bbe2===null||_0x33bbe2===void 0x0?void 0x0:_0x33bbe2['columns'])!=_0x25cd27&&(_0x33bbe2[_0x356f51(0x98)]=_0x25cd27);for(const _0x2c8131 in _0x2e4316){const _0x3c44ed=_0x2e4316[_0x2c8131],_0x41abe6=_0x33bbe2[_0x356f51(0x7d)]({});for(let _0x39835c in _0x2e9071){const _0x4e134b=_0x2e9071[_0x39835c][_0x356f51(0x9b)][_0x356f51(0x86)](/\./g,'_'),_0x243ec8=_0x33bbe2[_0x356f51(0xb1)](_0x4e134b),_0x178478=_0x41abe6===null||_0x41abe6===void 0x0?void 0x0:_0x41abe6['getCell'](_0x4e134b);typeof((_0xf1bc7=_0x2e9071[_0x39835c])===null||_0xf1bc7===void 0x0?void 0x0:_0xf1bc7[_0x356f51(0x75)])==_0x356f51(0x8d)?_0x178478['value']=await _0x2e9071[_0x39835c][_0x356f51(0x75)](_0x3c44ed,{'row':_0x41abe6,'col':_0x243ec8,'cell':_0x178478,'sheet':_0x33bbe2})||'':_0x178478[_0x356f51(0xb2)]=lodash[_0x356f51(0x70)](_0x3c44ed,_0x2e9071[_0x39835c][_0x356f51(0x9b)],'');}}return this;}async[a13_0x3fee00(0xb6)](_0x2d4451,_0x5231ac,_0x20a2c3={'sheets':0x0}){const _0xebf587=a13_0x3fee00;var _0x1feb03;const _0x642ef3=(_0x20a2c3===null||_0x20a2c3===void 0x0?void 0x0:_0x20a2c3[_0xebf587(0xb7)])?Array[_0xebf587(0x8e)](_0x20a2c3[_0xebf587(0xb7)])?_0x20a2c3[_0xebf587(0xb7)]:[_0x20a2c3[_0xebf587(0xb7)]]:[0x0],_0x5c665e=_0x46ba38=>new Promise(async(_0x9d429f,_0x71e48b)=>{const _0x40ad8f=_0xebf587,_0x2c7ac8=_0x46ba38['getRow'](0x1),_0x55cf68=await new Promise(_0x1a43e9=>{const _0x4d7031=a13_0x4877,_0x5ae95b={};_0x2c7ac8[_0x4d7031(0x9d)]((_0x578920,_0x26e986)=>{const _0x1fcf84=_0x4d7031;for(const _0x25a0e0 of _0x2d4451){if(_0x578920[_0x1fcf84(0xb2)]==_0x25a0e0[_0x1fcf84(0x74)])_0x5ae95b[_0x25a0e0['key']]={'header':_0x578920['col'],'handler':_0x25a0e0[_0x1fcf84(0x75)]};else{if(!_0x5ae95b[_0x25a0e0[_0x1fcf84(0x9b)]])try{const _0x529121=_0x2c7ac8&&_0x2c7ac8[_0x1fcf84(0x97)](_0x25a0e0['header']);_0x529121&&(_0x5ae95b[_0x25a0e0[_0x1fcf84(0x9b)]]={'header':_0x529121['col'],'handler':_0x25a0e0[_0x1fcf84(0x75)]});}catch{}}}_0x2c7ac8[_0x1fcf84(0x84)]==_0x26e986&&_0x1a43e9(_0x5ae95b);});});_0x46ba38['on']('finished',_0x556df2=>_0x9d429f(_0x46ba38)),_0x46ba38['on']('error',_0x1726b5=>_0x71e48b(_0x1726b5)),_0x46ba38['on'](_0x40ad8f(0x7c),async _0x333ca4=>{const _0x132ea3=_0x40ad8f;var _0x207598;if(typeof(_0x333ca4===null||_0x333ca4===void 0x0?void 0x0:_0x333ca4[_0x132ea3(0x97)])==_0x132ea3(0x8d)){const _0x4aeb23={};_0x2adf9e:for(const _0x4dd220 in _0x55cf68){if(_0x55cf68[_0x4dd220][_0x132ea3(0x74)]){const _0x3a43d8=_0x333ca4[_0x132ea3(0x97)](_0x55cf68[_0x4dd220][_0x132ea3(0x74)]);if(!_0x3a43d8)continue _0x2adf9e;try{_0x3a43d8['toString']();}catch(_0x35c896){_0x3a43d8['toString']=()=>{const _0x1cd892=_0x132ea3;var _0x54dfc1;return''+(((_0x54dfc1=_0x3a43d8===null||_0x3a43d8===void 0x0?void 0x0:_0x3a43d8[_0x1cd892(0x83)])===null||_0x54dfc1===void 0x0?void 0x0:_0x54dfc1[_0x1cd892(0xb2)])||'');};}typeof((_0x207598=_0x55cf68[_0x4dd220])===null||_0x207598===void 0x0?void 0x0:_0x207598['handler'])==_0x132ea3(0x8d)?_0x4aeb23[_0x4dd220]=await _0x55cf68[_0x4dd220][_0x132ea3(0x75)](lodash[_0x132ea3(0x92)]({},_0x4dd220,(_0x3a43d8===null||_0x3a43d8===void 0x0?void 0x0:_0x3a43d8[_0x132ea3(0x9e)]())||''),_0x3a43d8[_0x132ea3(0x83)]):_0x4aeb23[_0x4dd220]=(_0x3a43d8===null||_0x3a43d8===void 0x0?void 0x0:_0x3a43d8[_0x132ea3(0x9e)]())||'';}}Object[_0x132ea3(0xa4)](_0x4aeb23)['length']>0x0&&Object[_0x132ea3(0xa6)](_0x4aeb23)[_0x132ea3(0xa9)](_0x18b142=>_0x18b142!='')[_0x132ea3(0xb3)]>0x0&&await _0x5231ac(_0x4aeb23,{'sheet':_0x46ba38,'row':_0x333ca4});}}),await _0x46ba38[_0x40ad8f(0xa7)]();});for(const _0xf79239 of _0x642ef3){const _0x3cef52=lodash[_0xebf587(0x93)](_0xf79239)?((_0x1feb03=this[_0xebf587(0xaf)][_0xebf587(0x9a)])===null||_0x1feb03===void 0x0?void 0x0:_0x1feb03[_0xf79239])||undefined:this[_0xebf587(0xaf)]['getWorksheet'](_0xf79239);_0x3cef52&&await _0x5c665e(_0x3cef52);}}async[a13_0x3fee00(0xa5)](){const _0x2ea3a2=a13_0x3fee00;return await this[_0x2ea3a2(0xb0)][_0x2ea3a2(0x8c)](),this;}async[a13_0x3fee00(0x7f)](_0x2c4837,_0xdcebce=![]){const _0x5e91f3=a13_0x3fee00;let _0x865dd3=this[_0x5e91f3(0xb0)][_0x5e91f3(0xad)](_0x2c4837);return!_0x865dd3&&this[_0x5e91f3(0x77)][_0x5e91f3(0xac)](_0x2c4837)&&(_0x865dd3=this[_0x5e91f3(0x77)]['get'](_0x2c4837)),!_0x865dd3&&_0xdcebce&&(_0x865dd3=this[_0x5e91f3(0xb0)][_0x5e91f3(0x96)](lodash[_0x5e91f3(0x93)](_0x2c4837)?undefined:''+_0x2c4837,{'views':[{'state':_0x5e91f3(0x71),'ySplit':0x0}]}),this['WorksheetWriterMap'][_0x5e91f3(0x92)](_0x2c4837,_0x865dd3)),_0x865dd3;}}exports['ExcelStream']=ExcelStream;
|
package/dist/types/action.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ValidatorOptions } from "@anncic-api/validator";
|
|
2
|
-
import { MiddlewareParamArray } from '@midwayjs/core';
|
|
3
|
-
export declare const ACTION_KEY = "anncic-api:action";
|
|
4
|
-
export declare const ACTION_ROUTE_KEY = "anncic-api:action:route";
|
|
5
|
-
export declare const APPSCONFIG_KEY = "anncic-api:apps:config";
|
|
6
|
-
export interface ActionOption {
|
|
7
|
-
prefix?: string;
|
|
8
|
-
alias?: string[];
|
|
9
|
-
tagName?: string;
|
|
10
|
-
sensitive?: boolean;
|
|
11
|
-
description?: string;
|
|
12
|
-
middleware?: MiddlewareParamArray;
|
|
13
|
-
IgnoreMiddleware?: MiddlewareParamArray;
|
|
14
|
-
ignoreGlobalPrefix?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface ActionApiOption {
|
|
17
|
-
apimit?: boolean;
|
|
18
|
-
intercept?: boolean;
|
|
19
|
-
routerName?: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
validate?: ValidatorOptions;
|
|
22
|
-
middleware?: MiddlewareParamArray;
|
|
23
|
-
middlewareIgnore?: MiddlewareParamArray;
|
|
24
|
-
ignoreGlobalPrefix?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare class AppsConfigTmp {
|
|
27
|
-
}
|
|
1
|
+
import { ValidatorOptions } from "@anncic-api/validator";
|
|
2
|
+
import { MiddlewareParamArray } from '@midwayjs/core';
|
|
3
|
+
export declare const ACTION_KEY = "anncic-api:action";
|
|
4
|
+
export declare const ACTION_ROUTE_KEY = "anncic-api:action:route";
|
|
5
|
+
export declare const APPSCONFIG_KEY = "anncic-api:apps:config";
|
|
6
|
+
export interface ActionOption {
|
|
7
|
+
prefix?: string;
|
|
8
|
+
alias?: string[];
|
|
9
|
+
tagName?: string;
|
|
10
|
+
sensitive?: boolean;
|
|
11
|
+
description?: string;
|
|
12
|
+
middleware?: MiddlewareParamArray;
|
|
13
|
+
IgnoreMiddleware?: MiddlewareParamArray;
|
|
14
|
+
ignoreGlobalPrefix?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ActionApiOption {
|
|
17
|
+
apimit?: boolean;
|
|
18
|
+
intercept?: boolean;
|
|
19
|
+
routerName?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
validate?: ValidatorOptions;
|
|
22
|
+
middleware?: MiddlewareParamArray;
|
|
23
|
+
middlewareIgnore?: MiddlewareParamArray;
|
|
24
|
+
ignoreGlobalPrefix?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare class AppsConfigTmp {
|
|
27
|
+
}
|
package/dist/types/action.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a14_0x2267f2=a14_0x504e;function a14_0x504e(_0x241961,_0x55fc85){var _0x1b3ebd=a14_0xd071();return a14_0x504e=function(_0x21a007,_0x464834){_0x21a007=_0x21a007-0x125;var _0xd071f7=_0x1b3ebd[_0x21a007];return _0xd071f7;},a14_0x504e(_0x241961,_0x55fc85);}(function(_0x9fbf7c,_0x331254){var _0x329b57=a14_0x504e,_0x12eb55=_0x9fbf7c();while(!![]){try{var _0x173f4b=parseInt(_0x329b57(0x136))/0x1*(parseInt(_0x329b57(0x135))/0x2)+parseInt(_0x329b57(0x139))/0x3*(-parseInt(_0x329b57(0x129))/0x4)+parseInt(_0x329b57(0x12e))/0x5*(parseInt(_0x329b57(0x130))/0x6)+parseInt(_0x329b57(0x125))/0x7*(-parseInt(_0x329b57(0x137))/0x8)+parseInt(_0x329b57(0x128))/0x9+-parseInt(_0x329b57(0x138))/0xa*(parseInt(_0x329b57(0x12c))/0xb)+-parseInt(_0x329b57(0x12a))/0xc;if(_0x173f4b===_0x331254)break;else _0x12eb55['push'](_0x12eb55['shift']());}catch(_0x42258b){_0x12eb55['push'](_0x12eb55['shift']());}}}(a14_0xd071,0xaf725));var a14_0x464834=(function(){var _0x550a60=!![];return function(_0x224a9a,_0x1b16bb){var _0x1902c5=_0x550a60?function(){if(_0x1b16bb){var _0x155808=_0x1b16bb['apply'](_0x224a9a,arguments);return _0x1b16bb=null,_0x155808;}}:function(){};return _0x550a60=![],_0x1902c5;};}()),a14_0x21a007=a14_0x464834(this,function(){var _0xe1d14a=a14_0x504e;return a14_0x21a007[_0xe1d14a(0x133)]()[_0xe1d14a(0x131)]('(((.+)+)+)+$')[_0xe1d14a(0x133)]()['constructor'](a14_0x21a007)['search'](_0xe1d14a(0x12f));});a14_0x21a007();'use strict';function a14_0xd071(){var _0x2d0b46=['1ePBTlI','24flUbwB','23300jNWWWf','138qrBLDK','ACTION_ROUTE_KEY','496251yyBgKW','anncic-api:apps:config','defineProperty','11394783RAwPmn','10796tjFjSP','13494300UEzCND','anncic-api:action','1969UiVMKo','ACTION_KEY','11795rcMArF','(((.+)+)+)+$','3294Ftsczu','search','APPSCONFIG_KEY','toString','AppsConfigTmp','71758WJuCvJ'];a14_0xd071=function(){return _0x2d0b46;};return a14_0xd071();}Object[a14_0x2267f2(0x127)](exports,'__esModule',{'value':!![]}),exports[a14_0x2267f2(0x134)]=exports[a14_0x2267f2(0x132)]=exports[a14_0x2267f2(0x13a)]=exports[a14_0x2267f2(0x12d)]=void 0x0,exports[a14_0x2267f2(0x12d)]=a14_0x2267f2(0x12b),exports['ACTION_ROUTE_KEY']='anncic-api:action:route',exports[a14_0x2267f2(0x132)]=a14_0x2267f2(0x126);class AppsConfigTmp{}exports[a14_0x2267f2(0x134)]=AppsConfigTmp;
|
package/dist/types/common.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Readable } from "stream";
|
|
3
|
-
export declare class PageDTO {
|
|
4
|
-
_page?: number;
|
|
5
|
-
_size?: number;
|
|
6
|
-
_order?: string;
|
|
7
|
-
_isreverse?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface UploadFileInfo<T> {
|
|
10
|
-
filename: string;
|
|
11
|
-
fieldName: string;
|
|
12
|
-
mimeType: string;
|
|
13
|
-
data: T extends string ? string : Readable;
|
|
14
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Readable } from "stream";
|
|
3
|
+
export declare class PageDTO {
|
|
4
|
+
_page?: number;
|
|
5
|
+
_size?: number;
|
|
6
|
+
_order?: string;
|
|
7
|
+
_isreverse?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface UploadFileInfo<T> {
|
|
10
|
+
filename: string;
|
|
11
|
+
fieldName: string;
|
|
12
|
+
mimeType: string;
|
|
13
|
+
data: T extends string ? string : Readable;
|
|
14
|
+
}
|
package/dist/types/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a15_0x1f32d7=a15_0x30b3;(function(_0x3354d7,_0x59d469){var _0x3b71ad=a15_0x30b3,_0x54a528=_0x3354d7();while(!![]){try{var _0x38aa9b=-parseInt(_0x3b71ad(0x10d))/0x1*(-parseInt(_0x3b71ad(0x101))/0x2)+parseInt(_0x3b71ad(0x104))/0x3+parseInt(_0x3b71ad(0x10e))/0x4+-parseInt(_0x3b71ad(0x108))/0x5*(parseInt(_0x3b71ad(0x102))/0x6)+parseInt(_0x3b71ad(0x117))/0x7+-parseInt(_0x3b71ad(0x10f))/0x8*(-parseInt(_0x3b71ad(0xfa))/0x9)+-parseInt(_0x3b71ad(0xfe))/0xa;if(_0x38aa9b===_0x59d469)break;else _0x54a528['push'](_0x54a528['shift']());}catch(_0x529ca1){_0x54a528['push'](_0x54a528['shift']());}}}(a15_0x15b8,0xc1d30));var a15_0x57fda2=(function(){var _0x363aa5=!![];return function(_0x16c2e8,_0xc60ab6){var _0x2d0064=_0x363aa5?function(){var _0x3a9eca=a15_0x30b3;if(_0xc60ab6){var _0x376130=_0xc60ab6[_0x3a9eca(0x115)](_0x16c2e8,arguments);return _0xc60ab6=null,_0x376130;}}:function(){};return _0x363aa5=![],_0x2d0064;};}()),a15_0x160ee5=a15_0x57fda2(this,function(){var _0x3a6c03=a15_0x30b3;return a15_0x160ee5[_0x3a6c03(0x11e)]()['search']('(((.+)+)+)+$')[_0x3a6c03(0x11e)]()[_0x3a6c03(0x112)](a15_0x160ee5)[_0x3a6c03(0x11f)](_0x3a6c03(0x11b));});a15_0x160ee5();'use strict';function a15_0x15b8(){var _0x20064f=['valid','365IzyQrP','RuleType','PageDTO','prototype','_order','80yMeEqy','3574312NroCWP','56BtlNqZ','defineProperty','function','constructor','string','_page','apply','metadata','6213991TDbvHd','_size','min','Rule','(((.+)+)+)+$','object','number','toString','search','499599fMSMGM','integer','__metadata','length','7373210PmxSRY','design:type','排序方式','7628UjMmYd','100194UUyLwQ','第一页为1,第二页为2','825792eEvoQB','_isreverse','decorate'];a15_0x15b8=function(){return _0x20064f;};return a15_0x15b8();}function a15_0x30b3(_0x179741,_0x751f3b){var _0x5e5732=a15_0x15b8();return a15_0x30b3=function(_0x160ee5,_0x57fda2){_0x160ee5=_0x160ee5-0xfa;var _0x15b839=_0x5e5732[_0x160ee5];return _0x15b839;},a15_0x30b3(_0x179741,_0x751f3b);}var __decorate=this&&this['__decorate']||function(_0x47a1b0,_0x5606f4,_0x33ead1,_0x5607df){var _0x257616=a15_0x30b3,_0x48179e=arguments[_0x257616(0xfd)],_0x3d4874=_0x48179e<0x3?_0x5606f4:_0x5607df===null?_0x5607df=Object['getOwnPropertyDescriptor'](_0x5606f4,_0x33ead1):_0x5607df,_0x20b3c7;if(typeof Reflect===_0x257616(0x11c)&&typeof Reflect[_0x257616(0x106)]===_0x257616(0x111))_0x3d4874=Reflect[_0x257616(0x106)](_0x47a1b0,_0x5606f4,_0x33ead1,_0x5607df);else{for(var _0xc5a3ec=_0x47a1b0[_0x257616(0xfd)]-0x1;_0xc5a3ec>=0x0;_0xc5a3ec--)if(_0x20b3c7=_0x47a1b0[_0xc5a3ec])_0x3d4874=(_0x48179e<0x3?_0x20b3c7(_0x3d4874):_0x48179e>0x3?_0x20b3c7(_0x5606f4,_0x33ead1,_0x3d4874):_0x20b3c7(_0x5606f4,_0x33ead1))||_0x3d4874;}return _0x48179e>0x3&&_0x3d4874&&Object['defineProperty'](_0x5606f4,_0x33ead1,_0x3d4874),_0x3d4874;},__metadata=this&&this[a15_0x1f32d7(0xfc)]||function(_0x54d681,_0x17588b){var _0x4947ab=a15_0x1f32d7;if(typeof Reflect===_0x4947ab(0x11c)&&typeof Reflect['metadata']===_0x4947ab(0x111))return Reflect[_0x4947ab(0x116)](_0x54d681,_0x17588b);};Object[a15_0x1f32d7(0x110)](exports,'__esModule',{'value':!![]}),exports[a15_0x1f32d7(0x10a)]=void 0x0;const validator_1=require('@anncic-api/validator');class PageDTO{}__decorate([(0x0,validator_1[a15_0x1f32d7(0x11a)])('分页',validator_1[a15_0x1f32d7(0x109)][a15_0x1f32d7(0x11d)]()['integer']()['min'](0x1),a15_0x1f32d7(0x103)),__metadata(a15_0x1f32d7(0xff),Number)],PageDTO[a15_0x1f32d7(0x10b)],a15_0x1f32d7(0x114),void 0x0),__decorate([(0x0,validator_1[a15_0x1f32d7(0x11a)])('分页数量',validator_1['RuleType']['number']()[a15_0x1f32d7(0xfb)]()[a15_0x1f32d7(0x119)](0x1)),__metadata(a15_0x1f32d7(0xff),Number)],PageDTO['prototype'],a15_0x1f32d7(0x118),void 0x0),__decorate([(0x0,validator_1[a15_0x1f32d7(0x11a)])(a15_0x1f32d7(0x100),validator_1[a15_0x1f32d7(0x109)][a15_0x1f32d7(0x113)]()['trim']()),__metadata(a15_0x1f32d7(0xff),String)],PageDTO[a15_0x1f32d7(0x10b)],a15_0x1f32d7(0x10c),void 0x0),__decorate([(0x0,validator_1[a15_0x1f32d7(0x11a)])('是否倒序',validator_1[a15_0x1f32d7(0x109)]['number']()[a15_0x1f32d7(0xfb)]()[a15_0x1f32d7(0x107)](0x0,0x1),'1:是;0:否'),__metadata('design:type',Number)],PageDTO['prototype'],a15_0x1f32d7(0x105),void 0x0),exports[a15_0x1f32d7(0x10a)]=PageDTO;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const INTERCEPT_KEY = "anncic-api:intercept";
|
|
2
|
-
export declare class InterceptTargetTmp {
|
|
3
|
-
}
|
|
1
|
+
export declare const INTERCEPT_KEY = "anncic-api:intercept";
|
|
2
|
+
export declare class InterceptTargetTmp {
|
|
3
|
+
}
|
package/dist/types/intercept.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a16_0x190763=a16_0x33cd;(function(_0x17fa06,_0x3296db){var _0x32ef11=a16_0x33cd,_0x595a8b=_0x17fa06();while(!![]){try{var _0x123b23=-parseInt(_0x32ef11(0x109))/0x1*(-parseInt(_0x32ef11(0x10b))/0x2)+parseInt(_0x32ef11(0x102))/0x3+parseInt(_0x32ef11(0x10a))/0x4+-parseInt(_0x32ef11(0x101))/0x5+parseInt(_0x32ef11(0x106))/0x6+-parseInt(_0x32ef11(0x107))/0x7*(parseInt(_0x32ef11(0xfa))/0x8)+-parseInt(_0x32ef11(0x105))/0x9*(parseInt(_0x32ef11(0xff))/0xa);if(_0x123b23===_0x3296db)break;else _0x595a8b['push'](_0x595a8b['shift']());}catch(_0x416113){_0x595a8b['push'](_0x595a8b['shift']());}}}(a16_0x1f1f,0x66da6));var a16_0x56fd65=(function(){var _0x3e4d91=!![];return function(_0x5b39d4,_0x4405da){var _0x67a601=_0x3e4d91?function(){var _0x4804b0=a16_0x33cd;if(_0x4405da){var _0x2757f8=_0x4405da[_0x4804b0(0xfe)](_0x5b39d4,arguments);return _0x4405da=null,_0x2757f8;}}:function(){};return _0x3e4d91=![],_0x67a601;};}()),a16_0x1263e1=a16_0x56fd65(this,function(){var _0x28469b=a16_0x33cd;return a16_0x1263e1[_0x28469b(0xfc)]()['search'](_0x28469b(0x104))[_0x28469b(0xfc)]()[_0x28469b(0x108)](a16_0x1263e1)[_0x28469b(0x100)]('(((.+)+)+)+$');});function a16_0x1f1f(){var _0x59a70a=['6568oXsWit','INTERCEPT_KEY','6696dhkxQy','__esModule','toString','InterceptTargetTmp','apply','29330UnwWYx','search','119555SwIyHx','354084bICZjy','defineProperty','(((.+)+)+)+$','3015myOHOt','2733030zXnKam','1575OLdOpz','constructor','64saseKi','3329472czBmtd'];a16_0x1f1f=function(){return _0x59a70a;};return a16_0x1f1f();}function a16_0x33cd(_0x270e82,_0x51e356){var _0x264a86=a16_0x1f1f();return a16_0x33cd=function(_0x1263e1,_0x56fd65){_0x1263e1=_0x1263e1-0xfa;var _0x1f1f6e=_0x264a86[_0x1263e1];return _0x1f1f6e;},a16_0x33cd(_0x270e82,_0x51e356);}a16_0x1263e1();'use strict';Object[a16_0x190763(0x103)](exports,a16_0x190763(0xfb),{'value':!![]}),exports[a16_0x190763(0xfd)]=exports[a16_0x190763(0x10c)]=void 0x0,exports['INTERCEPT_KEY']='anncic-api:intercept';class InterceptTargetTmp{}exports[a16_0x190763(0xfd)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.34",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"build": "tsc && javascript-obfuscator ./dist --output ./dist --config obfuscator.json"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@anncic-api/cache": "^3.4.
|
|
21
|
-
"@anncic-api/core": "^3.4.
|
|
22
|
-
"@anncic-api/event": "^3.4.
|
|
23
|
-
"@anncic-api/typeorm": "^3.4.
|
|
24
|
-
"@anncic-api/validator": "^3.4.
|
|
20
|
+
"@anncic-api/cache": "^3.4.34",
|
|
21
|
+
"@anncic-api/core": "^3.4.34",
|
|
22
|
+
"@anncic-api/event": "^3.4.34",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.34",
|
|
24
|
+
"@anncic-api/validator": "^3.4.34",
|
|
25
25
|
"@midwayjs/cross-domain": "^3.12.8",
|
|
26
26
|
"@midwayjs/koa": "^3.12.8",
|
|
27
27
|
"@midwayjs/static-file": "^3.12.8",
|
|
28
28
|
"@midwayjs/upload": "^3.12.8",
|
|
29
|
-
"anncic-apihelper": "^3.4.
|
|
29
|
+
"anncic-apihelper": "^3.4.34",
|
|
30
30
|
"exceljs": "^4.4.0",
|
|
31
31
|
"koa-send": "^5.0.1"
|
|
32
32
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"javascript-obfuscator": "^4.0.2",
|
|
36
36
|
"typescript": "^5.1.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "ee5d6108f5470a0eac75bcbc1fde8f24de4e68be"
|
|
39
39
|
}
|