anncic-api 3.4.24 → 3.4.33
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
|
-
const
|
|
1
|
+
const a13_0x42d448=a13_0x5c5e;(function(_0x432a76,_0x25b083){const _0x591e91=a13_0x5c5e,_0x35916e=_0x432a76();while(!![]){try{const _0x1b82a9=parseInt(_0x591e91(0x108))/0x1+-parseInt(_0x591e91(0xff))/0x2*(parseInt(_0x591e91(0x127))/0x3)+parseInt(_0x591e91(0x10b))/0x4*(-parseInt(_0x591e91(0x100))/0x5)+parseInt(_0x591e91(0x116))/0x6*(-parseInt(_0x591e91(0x119))/0x7)+parseInt(_0x591e91(0x121))/0x8+parseInt(_0x591e91(0x125))/0x9+parseInt(_0x591e91(0x114))/0xa;if(_0x1b82a9===_0x25b083)break;else _0x35916e['push'](_0x35916e['shift']());}catch(_0x681235){_0x35916e['push'](_0x35916e['shift']());}}}(a13_0x1e35,0x82bbb));function a13_0x1e35(){const _0x376905=['columns','rootpath','xls','WorkbookReader','toString','suffix','lastIndexOf','sheets','header','(((.+)+)+)+$','col','2cszBQm','10tlrbXZ','dirname','emit','exceljs','worksheets','values','existsSync','addWorksheet','533696UXhKiX','handler','getWriterSheet','1358024jtpOER','getRow','function','read','ignore','get','key','getCell','writer','4000210jnYhEQ','keys','6jAIDYv','model','length','6844327gJlRRD','set','value','文件名格式错误','instance','substring','isNumber','WorkbookWriter','8170032RYGdaY','cellCount','__esModule','has','6612948xGQNvb','finished','1492461ibSVcL','startsWith','ExcelStream','getWorksheet','xlsx','isArray','WorksheetWriterMap','replace','indexOf'];a13_0x1e35=function(){return _0x376905;};return a13_0x1e35();}const a13_0x386aea=(function(){let _0x2c4d91=!![];return function(_0x805b45,_0x1190bb){const _0x2cec5c=_0x2c4d91?function(){if(_0x1190bb){const _0x526cc8=_0x1190bb['apply'](_0x805b45,arguments);return _0x1190bb=null,_0x526cc8;}}:function(){};return _0x2c4d91=![],_0x2cec5c;};}()),a13_0x25b52c=a13_0x386aea(this,function(){const _0x19d639=a13_0x5c5e;return a13_0x25b52c[_0x19d639(0xf8)]()['search'](_0x19d639(0xfd))['toString']()['constructor'](a13_0x25b52c)['search'](_0x19d639(0xfd));});a13_0x25b52c();'use strict';function a13_0x5c5e(_0x109d19,_0x26d16c){const _0x50e140=a13_0x1e35();return a13_0x5c5e=function(_0x25b52c,_0x386aea){_0x25b52c=_0x25b52c-0xf8;let _0x1e356a=_0x50e140[_0x25b52c];return _0x1e356a;},a13_0x5c5e(_0x109d19,_0x26d16c);}Object['defineProperty'](exports,a13_0x42d448(0x123),{'value':!![]}),exports[a13_0x42d448(0x129)]=void 0x0;const fs=require('fs'),path=require('path'),exceljs=require(a13_0x42d448(0x103));class ExcelStream{constructor(_0x469763,_0x13f05c){const _0x8192c2=a13_0x42d448;this[_0x8192c2(0x12d)]=new Map(),(this['WorkbookWriter']=_0x469763,this[_0x8192c2(0x133)]=_0x13f05c);}static[a13_0x42d448(0x11d)](_0x48a3c0,_0x1a4e9f={'suffix':[a13_0x42d448(0x132),a13_0x42d448(0x12b)]}){return new Promise(async(_0x2f92bb,_0x20b13c)=>{const _0xacfe07=a13_0x5c5e,_0xa35893=_0x48a3c0[_0xacfe07(0x11e)]((_0x48a3c0[_0xacfe07(0x12f)]('/')>-0x1?_0x48a3c0[_0xacfe07(0xfa)]('/'):_0x48a3c0[_0xacfe07(0xfa)]('\x5c'))+0x1),_0x2d4120=path[_0xacfe07(0x101)](((_0x1a4e9f===null||_0x1a4e9f===void 0x0?void 0x0:_0x1a4e9f['rootpath'])&&!_0x48a3c0[_0xacfe07(0x128)](_0x1a4e9f[_0xacfe07(0x131)])?_0x1a4e9f[_0xacfe07(0x131)]+'/'+_0x48a3c0:'/'+_0x48a3c0)[_0xacfe07(0x12e)](/(\\|\/)/g,'/')[_0xacfe07(0x12e)](/\/{2,}/g,'/'));if(!((_0x1a4e9f===null||_0x1a4e9f===void 0x0?void 0x0:_0x1a4e9f[_0xacfe07(0xf9)])?_0x1a4e9f[_0xacfe07(0xf9)]:[_0xacfe07(0x132),_0xacfe07(0x12b)])['includes'](_0xa35893[_0xacfe07(0x11e)](_0xa35893[_0xacfe07(0xfa)]('.')+0x1)))return _0x20b13c(_0xacfe07(0x11c));if(!fs['existsSync']((_0x2d4120+'/'+_0xa35893)[_0xacfe07(0x12e)](/(\\|\/)/g,'/')[_0xacfe07(0x12e)](/\/{2,}/g,'/'))){!fs[_0xacfe07(0x106)](_0x2d4120)&&fs['mkdirSync'](_0x2d4120,{'recursive':!![]});const _0x3dd71f=new exceljs['Workbook']();await _0x3dd71f[_0xacfe07(0x12b)]['writeFile']((_0x2d4120+'/'+_0xa35893)[_0xacfe07(0x12e)](/(\\|\/)/g,'/')[_0xacfe07(0x12e)](/\/{2,}/g,'/'));}const _0x1cbb2a=new exceljs['stream'][(_0xacfe07(0x12b))][(_0xacfe07(0x120))]({'filename':(_0x2d4120+'/'+_0xa35893)[_0xacfe07(0x12e)](/(\\|\/)/g,'/')[_0xacfe07(0x12e)](/\/{2,}/g,'/'),'useStyles':!![],'useSharedStrings':![]}),_0x2d71fc=new exceljs['stream'][(_0xacfe07(0x12b))][(_0xacfe07(0x133))]((_0x2d4120+'/'+_0xa35893)[_0xacfe07(0x12e)](/(\\|\/)/g,'/')[_0xacfe07(0x12e)](/\/{2,}/g,'/'),{'worksheets':_0xacfe07(0x102),'sharedStrings':_0xacfe07(0x10f),'hyperlinks':_0xacfe07(0x10f),'styles':_0xacfe07(0x10f)});return _0x2f92bb(new ExcelStream(_0x1cbb2a,_0x2d71fc));});}async[a13_0x42d448(0x113)](_0xdb3325,_0x901211,_0x2977dd=0x0){const _0x52240d=a13_0x42d448;var _0x3260b7,_0x2239aa;const _0x4f1119=await this[_0x52240d(0x10a)](_0x2977dd,!![]),_0x173f1f={},_0x32359f=[];for(const _0x114d5c in _0xdb3325){_0x173f1f[_0xdb3325[_0x114d5c][_0x52240d(0x111)]]=_0xdb3325[_0x114d5c][_0x52240d(0xfc)],_0x32359f['push']({'header':_0xdb3325[_0x114d5c][_0x52240d(0xfc)],'key':(_0x3260b7=_0xdb3325[_0x114d5c])===null||_0x3260b7===void 0x0?void 0x0:_0x3260b7[_0x52240d(0x111)][_0x52240d(0x12e)](/\./g,'_')});}(_0x4f1119===null||_0x4f1119===void 0x0?void 0x0:_0x4f1119[_0x52240d(0x130)])!=_0x32359f&&(_0x4f1119[_0x52240d(0x130)]=_0x32359f);for(const _0x330426 in _0x901211){const _0xaceb0e=_0x901211[_0x330426],_0x3b8c79=_0x4f1119['addRow']({});for(let _0x17f1b5 in _0xdb3325){const _0x31529a=_0xdb3325[_0x17f1b5][_0x52240d(0x111)]['replace'](/\./g,'_'),_0x21ebcd=_0x4f1119['getColumn'](_0x31529a),_0x2cea0d=_0x3b8c79===null||_0x3b8c79===void 0x0?void 0x0:_0x3b8c79[_0x52240d(0x112)](_0x31529a);typeof((_0x2239aa=_0xdb3325[_0x17f1b5])===null||_0x2239aa===void 0x0?void 0x0:_0x2239aa[_0x52240d(0x109)])==_0x52240d(0x10d)?_0x2cea0d[_0x52240d(0x11b)]=await _0xdb3325[_0x17f1b5][_0x52240d(0x109)](_0xaceb0e,{'row':_0x3b8c79,'col':_0x21ebcd,'cell':_0x2cea0d,'sheet':_0x4f1119})||'':_0x2cea0d[_0x52240d(0x11b)]=lodash['get'](_0xaceb0e,_0xdb3325[_0x17f1b5][_0x52240d(0x111)],'');}}return this;}async['reader'](_0x16e413,_0x241bdc,_0x2bfa15={'sheets':0x0}){const _0x3c54fe=a13_0x42d448;var _0x69dd95;const _0x21c043=(_0x2bfa15===null||_0x2bfa15===void 0x0?void 0x0:_0x2bfa15[_0x3c54fe(0xfb)])?Array[_0x3c54fe(0x12c)](_0x2bfa15['sheets'])?_0x2bfa15['sheets']:[_0x2bfa15['sheets']]:[0x0],_0x2d31a8=_0xadfb91=>new Promise(async(_0x2b81c2,_0x1948f5)=>{const _0x38cfa2=_0x3c54fe,_0x24732d=_0xadfb91[_0x38cfa2(0x10c)](0x1),_0x4dd3e1=await new Promise(_0x9e6737=>{const _0x28c873={};_0x24732d['eachCell']((_0x4806e6,_0x18a7cb)=>{const _0x276f4e=a13_0x5c5e;for(const _0xb80bbb of _0x16e413){if(_0x4806e6[_0x276f4e(0x11b)]==_0xb80bbb[_0x276f4e(0xfc)])_0x28c873[_0xb80bbb[_0x276f4e(0x111)]]={'header':_0x4806e6['col'],'handler':_0xb80bbb[_0x276f4e(0x109)]};else{if(!_0x28c873[_0xb80bbb[_0x276f4e(0x111)]])try{const _0x1e11c9=_0x24732d&&_0x24732d[_0x276f4e(0x112)](_0xb80bbb['header']);_0x1e11c9&&(_0x28c873[_0xb80bbb['key']]={'header':_0x1e11c9[_0x276f4e(0xfe)],'handler':_0xb80bbb[_0x276f4e(0x109)]});}catch{}}}_0x24732d[_0x276f4e(0x122)]==_0x18a7cb&&_0x9e6737(_0x28c873);});});_0xadfb91['on'](_0x38cfa2(0x126),_0xa28d45=>_0x2b81c2(_0xadfb91)),_0xadfb91['on']('error',_0x39305e=>_0x1948f5(_0x39305e)),_0xadfb91['on']('row',async _0x18d892=>{const _0x493ce1=_0x38cfa2;var _0x409c73;if(typeof(_0x18d892===null||_0x18d892===void 0x0?void 0x0:_0x18d892['getCell'])=='function'){const _0x37cdf1={};_0x588205:for(const _0x5692a8 in _0x4dd3e1){if(_0x4dd3e1[_0x5692a8]['header']){const _0x1b03c6=_0x18d892[_0x493ce1(0x112)](_0x4dd3e1[_0x5692a8][_0x493ce1(0xfc)]);if(!_0x1b03c6)continue _0x588205;try{_0x1b03c6[_0x493ce1(0xf8)]();}catch(_0x242600){_0x1b03c6[_0x493ce1(0xf8)]=()=>{const _0x5ea712=_0x493ce1;var _0xf8f4e4;return''+(((_0xf8f4e4=_0x1b03c6===null||_0x1b03c6===void 0x0?void 0x0:_0x1b03c6[_0x5ea712(0x117)])===null||_0xf8f4e4===void 0x0?void 0x0:_0xf8f4e4[_0x5ea712(0x11b)])||'');};}typeof((_0x409c73=_0x4dd3e1[_0x5692a8])===null||_0x409c73===void 0x0?void 0x0:_0x409c73[_0x493ce1(0x109)])=='function'?_0x37cdf1[_0x5692a8]=await _0x4dd3e1[_0x5692a8][_0x493ce1(0x109)](lodash[_0x493ce1(0x11a)]({},_0x5692a8,(_0x1b03c6===null||_0x1b03c6===void 0x0?void 0x0:_0x1b03c6[_0x493ce1(0xf8)]())||''),_0x1b03c6[_0x493ce1(0x117)]):_0x37cdf1[_0x5692a8]=(_0x1b03c6===null||_0x1b03c6===void 0x0?void 0x0:_0x1b03c6[_0x493ce1(0xf8)]())||'';}}Object[_0x493ce1(0x115)](_0x37cdf1)[_0x493ce1(0x118)]>0x0&&Object[_0x493ce1(0x105)](_0x37cdf1)['filter'](_0x591456=>_0x591456!='')[_0x493ce1(0x118)]>0x0&&await _0x241bdc(_0x37cdf1,{'sheet':_0xadfb91,'row':_0x18d892});}}),await _0xadfb91[_0x38cfa2(0x10e)]();});for(const _0x4360a1 of _0x21c043){const _0x1ce701=lodash[_0x3c54fe(0x11f)](_0x4360a1)?((_0x69dd95=this[_0x3c54fe(0x133)][_0x3c54fe(0x104)])===null||_0x69dd95===void 0x0?void 0x0:_0x69dd95[_0x4360a1])||undefined:this[_0x3c54fe(0x133)][_0x3c54fe(0x12a)](_0x4360a1);_0x1ce701&&await _0x2d31a8(_0x1ce701);}}async['save'](){const _0x11fb07=a13_0x42d448;return await this[_0x11fb07(0x120)]['commit'](),this;}async[a13_0x42d448(0x10a)](_0x5ca943,_0x344b4f=![]){const _0x143f83=a13_0x42d448;let _0x494b4c=this[_0x143f83(0x120)][_0x143f83(0x12a)](_0x5ca943);return!_0x494b4c&&this[_0x143f83(0x12d)][_0x143f83(0x124)](_0x5ca943)&&(_0x494b4c=this[_0x143f83(0x12d)][_0x143f83(0x110)](_0x5ca943)),!_0x494b4c&&_0x344b4f&&(_0x494b4c=this[_0x143f83(0x120)][_0x143f83(0x107)](lodash['isNumber'](_0x5ca943)?undefined:''+_0x5ca943,{'views':[{'state':'frozen','ySplit':0x0}]}),this[_0x143f83(0x12d)][_0x143f83(0x11a)](_0x5ca943,_0x494b4c)),_0x494b4c;}}exports[a13_0x42d448(0x129)]=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_0x46ecc3=a14_0x4058;(function(_0x2f8ee1,_0x5e1248){var _0xff4c02=a14_0x4058,_0x11d222=_0x2f8ee1();while(!![]){try{var _0x2861eb=-parseInt(_0xff4c02(0xcc))/0x1*(parseInt(_0xff4c02(0xd8))/0x2)+parseInt(_0xff4c02(0xca))/0x3*(parseInt(_0xff4c02(0xd7))/0x4)+-parseInt(_0xff4c02(0xce))/0x5+-parseInt(_0xff4c02(0xcf))/0x6*(parseInt(_0xff4c02(0xc7))/0x7)+parseInt(_0xff4c02(0xd6))/0x8*(parseInt(_0xff4c02(0xd5))/0x9)+parseInt(_0xff4c02(0xd4))/0xa*(parseInt(_0xff4c02(0xc9))/0xb)+parseInt(_0xff4c02(0xc6))/0xc;if(_0x2861eb===_0x5e1248)break;else _0x11d222['push'](_0x11d222['shift']());}catch(_0x1c4fc7){_0x11d222['push'](_0x11d222['shift']());}}}(a14_0x17af,0x453ad));var a14_0x46d127=(function(){var _0x34035d=!![];return function(_0x17234b,_0x45388a){var _0x2b3098=_0x34035d?function(){var _0x560d95=a14_0x4058;if(_0x45388a){var _0xa9dda=_0x45388a[_0x560d95(0xc8)](_0x17234b,arguments);return _0x45388a=null,_0xa9dda;}}:function(){};return _0x34035d=![],_0x2b3098;};}()),a14_0x30b08d=a14_0x46d127(this,function(){var _0x2554dc=a14_0x4058;return a14_0x30b08d[_0x2554dc(0xc3)]()[_0x2554dc(0xc2)](_0x2554dc(0xd3))['toString']()[_0x2554dc(0xd2)](a14_0x30b08d)[_0x2554dc(0xc2)](_0x2554dc(0xd3));});a14_0x30b08d();'use strict';function a14_0x4058(_0x4fb5a9,_0x287eba){var _0x18010f=a14_0x17af();return a14_0x4058=function(_0x30b08d,_0x46d127){_0x30b08d=_0x30b08d-0xc2;var _0x17af3f=_0x18010f[_0x30b08d];return _0x17af3f;},a14_0x4058(_0x4fb5a9,_0x287eba);}Object[a14_0x46ecc3(0xc4)](exports,a14_0x46ecc3(0xc5),{'value':!![]}),exports[a14_0x46ecc3(0xd9)]=exports[a14_0x46ecc3(0xd1)]=exports['ACTION_ROUTE_KEY']=exports[a14_0x46ecc3(0xd0)]=void 0x0,exports[a14_0x46ecc3(0xd0)]='anncic-api:action',exports[a14_0x46ecc3(0xcb)]='anncic-api:action:route',exports['APPSCONFIG_KEY']=a14_0x46ecc3(0xcd);function a14_0x17af(){var _0x6aa8d0=['3qqGFiy','ACTION_ROUTE_KEY','404437HZiXxc','anncic-api:apps:config','87470fxavXr','11694qCPmEm','ACTION_KEY','APPSCONFIG_KEY','constructor','(((.+)+)+)+$','1418290XHyEDp','9dgehtg','107192CRARfK','385048wnNqlG','2ffTdbu','AppsConfigTmp','search','toString','defineProperty','__esModule','8745780Undzbq','987Vnlkar','apply','11wXuOgl'];a14_0x17af=function(){return _0x6aa8d0;};return a14_0x17af();}class AppsConfigTmp{}exports[a14_0x46ecc3(0xd9)]=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
|
+
function a15_0x13e0(_0x5aff18,_0x27d276){var _0x398406=a15_0x503c();return a15_0x13e0=function(_0xfa431f,_0x50909f){_0xfa431f=_0xfa431f-0x6f;var _0x503c37=_0x398406[_0xfa431f];return _0x503c37;},a15_0x13e0(_0x5aff18,_0x27d276);}var a15_0x11a143=a15_0x13e0;(function(_0x3aa4e5,_0x1994b5){var _0x3318c3=a15_0x13e0,_0x136079=_0x3aa4e5();while(!![]){try{var _0x2604cf=-parseInt(_0x3318c3(0x8c))/0x1*(parseInt(_0x3318c3(0x74))/0x2)+parseInt(_0x3318c3(0x78))/0x3+-parseInt(_0x3318c3(0x7e))/0x4+-parseInt(_0x3318c3(0x76))/0x5+parseInt(_0x3318c3(0x71))/0x6*(parseInt(_0x3318c3(0x88))/0x7)+parseInt(_0x3318c3(0x8d))/0x8+parseInt(_0x3318c3(0x72))/0x9*(parseInt(_0x3318c3(0x7f))/0xa);if(_0x2604cf===_0x1994b5)break;else _0x136079['push'](_0x136079['shift']());}catch(_0x322832){_0x136079['push'](_0x136079['shift']());}}}(a15_0x503c,0x64a17));var a15_0x50909f=(function(){var _0x451de8=!![];return function(_0x160836,_0x587fac){var _0x3637c9=_0x451de8?function(){var _0x2054f4=a15_0x13e0;if(_0x587fac){var _0x2e2113=_0x587fac[_0x2054f4(0x77)](_0x160836,arguments);return _0x587fac=null,_0x2e2113;}}:function(){};return _0x451de8=![],_0x3637c9;};}()),a15_0xfa431f=a15_0x50909f(this,function(){var _0x278611=a15_0x13e0;return a15_0xfa431f['toString']()[_0x278611(0x94)](_0x278611(0x89))['toString']()[_0x278611(0x98)](a15_0xfa431f)[_0x278611(0x94)](_0x278611(0x89));});function a15_0x503c(){var _0x454190=['@anncic-api/validator','decorate','Rule','search','__esModule','排序方式','valid','constructor','__decorate','_size','length','459906AirnPB','36PhrwRs','number','547396KkniKc','min','4109735PNHpiV','apply','1715892jZSUNG','_order','integer','function','_page','是否倒序','2756128hWoFdO','2899990aXAAsW','string','design:type','PageDTO','_isreverse','RuleType','第一页为1,第二页为2','defineProperty','prototype','14QadODz','(((.+)+)+)+$','object','__metadata','1ScLCWZ','2492784NfBznW','metadata','getOwnPropertyDescriptor','1:是;0:否'];a15_0x503c=function(){return _0x454190;};return a15_0x503c();}a15_0xfa431f();'use strict';var __decorate=this&&this[a15_0x11a143(0x99)]||function(_0x2b96b9,_0x378b49,_0x25852e,_0x111e04){var _0x21f70f=a15_0x11a143,_0x3ae426=arguments[_0x21f70f(0x70)],_0x48edf6=_0x3ae426<0x3?_0x378b49:_0x111e04===null?_0x111e04=Object[_0x21f70f(0x8f)](_0x378b49,_0x25852e):_0x111e04,_0xc269c6;if(typeof Reflect==='object'&&typeof Reflect[_0x21f70f(0x92)]===_0x21f70f(0x7b))_0x48edf6=Reflect[_0x21f70f(0x92)](_0x2b96b9,_0x378b49,_0x25852e,_0x111e04);else{for(var _0x36b394=_0x2b96b9['length']-0x1;_0x36b394>=0x0;_0x36b394--)if(_0xc269c6=_0x2b96b9[_0x36b394])_0x48edf6=(_0x3ae426<0x3?_0xc269c6(_0x48edf6):_0x3ae426>0x3?_0xc269c6(_0x378b49,_0x25852e,_0x48edf6):_0xc269c6(_0x378b49,_0x25852e))||_0x48edf6;}return _0x3ae426>0x3&&_0x48edf6&&Object[_0x21f70f(0x86)](_0x378b49,_0x25852e,_0x48edf6),_0x48edf6;},__metadata=this&&this[a15_0x11a143(0x8b)]||function(_0x3933f3,_0x1b8ca4){var _0x17fb94=a15_0x11a143;if(typeof Reflect===_0x17fb94(0x8a)&&typeof Reflect['metadata']===_0x17fb94(0x7b))return Reflect[_0x17fb94(0x8e)](_0x3933f3,_0x1b8ca4);};Object[a15_0x11a143(0x86)](exports,a15_0x11a143(0x95),{'value':!![]}),exports['PageDTO']=void 0x0;const validator_1=require(a15_0x11a143(0x91));class PageDTO{}__decorate([(0x0,validator_1[a15_0x11a143(0x93)])('分页',validator_1['RuleType'][a15_0x11a143(0x73)]()[a15_0x11a143(0x7a)]()['min'](0x1),a15_0x11a143(0x85)),__metadata(a15_0x11a143(0x81),Number)],PageDTO[a15_0x11a143(0x87)],a15_0x11a143(0x7c),void 0x0),__decorate([(0x0,validator_1[a15_0x11a143(0x93)])('分页数量',validator_1[a15_0x11a143(0x84)][a15_0x11a143(0x73)]()[a15_0x11a143(0x7a)]()[a15_0x11a143(0x75)](0x1)),__metadata(a15_0x11a143(0x81),Number)],PageDTO[a15_0x11a143(0x87)],a15_0x11a143(0x6f),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x11a143(0x96),validator_1['RuleType'][a15_0x11a143(0x80)]()['trim']()),__metadata(a15_0x11a143(0x81),String)],PageDTO[a15_0x11a143(0x87)],a15_0x11a143(0x79),void 0x0),__decorate([(0x0,validator_1['Rule'])(a15_0x11a143(0x7d),validator_1['RuleType']['number']()[a15_0x11a143(0x7a)]()[a15_0x11a143(0x97)](0x0,0x1),a15_0x11a143(0x90)),__metadata(a15_0x11a143(0x81),Number)],PageDTO['prototype'],a15_0x11a143(0x83),void 0x0),exports[a15_0x11a143(0x82)]=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
|
+
function a16_0x2a9e(_0x28ddef,_0x28694a){var _0x4d13bc=a16_0xc046();return a16_0x2a9e=function(_0x4fff2a,_0x355310){_0x4fff2a=_0x4fff2a-0x1d8;var _0xc046db=_0x4d13bc[_0x4fff2a];return _0xc046db;},a16_0x2a9e(_0x28ddef,_0x28694a);}var a16_0x5534aa=a16_0x2a9e;(function(_0x16fec5,_0x31b655){var _0x1e4010=a16_0x2a9e,_0x3e0795=_0x16fec5();while(!![]){try{var _0x157d70=parseInt(_0x1e4010(0x1dd))/0x1+parseInt(_0x1e4010(0x1de))/0x2+parseInt(_0x1e4010(0x1df))/0x3+parseInt(_0x1e4010(0x1e9))/0x4*(parseInt(_0x1e4010(0x1e2))/0x5)+parseInt(_0x1e4010(0x1d8))/0x6+-parseInt(_0x1e4010(0x1d9))/0x7*(parseInt(_0x1e4010(0x1e0))/0x8)+parseInt(_0x1e4010(0x1db))/0x9*(parseInt(_0x1e4010(0x1ea))/0xa);if(_0x157d70===_0x31b655)break;else _0x3e0795['push'](_0x3e0795['shift']());}catch(_0x113ea4){_0x3e0795['push'](_0x3e0795['shift']());}}}(a16_0xc046,0x2145e));var a16_0x355310=(function(){var _0x4820c6=!![];return function(_0x4b43ed,_0x31b775){var _0x3a71b9=_0x4820c6?function(){var _0x561ad5=a16_0x2a9e;if(_0x31b775){var _0x4927ac=_0x31b775[_0x561ad5(0x1e3)](_0x4b43ed,arguments);return _0x31b775=null,_0x4927ac;}}:function(){};return _0x4820c6=![],_0x3a71b9;};}()),a16_0x4fff2a=a16_0x355310(this,function(){var _0x2289da=a16_0x2a9e;return a16_0x4fff2a[_0x2289da(0x1e7)]()[_0x2289da(0x1e6)](_0x2289da(0x1e1))[_0x2289da(0x1e7)]()[_0x2289da(0x1e4)](a16_0x4fff2a)[_0x2289da(0x1e6)](_0x2289da(0x1e1));});a16_0x4fff2a();'use strict';function a16_0xc046(){var _0x19b3fd=['defineProperty','1521PEzCbU','INTERCEPT_KEY','58822kEOfBM','112720ctAYPU','337047oeLNbB','1981088Nsqutv','(((.+)+)+)+$','155bgDdaq','apply','constructor','InterceptTargetTmp','search','toString','__esModule','5524rJyWet','6610qchazz','11226pwkwEE','7oYboZf'];a16_0xc046=function(){return _0x19b3fd;};return a16_0xc046();}Object[a16_0x5534aa(0x1da)](exports,a16_0x5534aa(0x1e8),{'value':!![]}),exports[a16_0x5534aa(0x1e5)]=exports['INTERCEPT_KEY']=void 0x0,exports[a16_0x5534aa(0x1dc)]='anncic-api:intercept';class InterceptTargetTmp{}exports[a16_0x5534aa(0x1e5)]=InterceptTargetTmp;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anncic-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.33",
|
|
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.33",
|
|
21
|
+
"@anncic-api/core": "^3.4.33",
|
|
22
|
+
"@anncic-api/event": "^3.4.33",
|
|
23
|
+
"@anncic-api/typeorm": "^3.4.33",
|
|
24
|
+
"@anncic-api/validator": "^3.4.33",
|
|
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.33",
|
|
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": "6e3dc4cc04c16c5f54d726b20f373b159310d1dc"
|
|
39
39
|
}
|