mvc-common-toolkit 1.1.5 → 1.3.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.
@@ -4,8 +4,35 @@ export declare enum LOG_LEVEL {
4
4
  DEBUG = "debug",
5
5
  FATAL = "fatal"
6
6
  }
7
+ export declare enum SET_CACHE_POLICY {
8
+ KEEP_TTL = 0,
9
+ WITH_TTL = 1,
10
+ IF_EXISTS = 2,
11
+ IF_NOT_EXISTS = 3
12
+ }
7
13
  export declare enum APP_ENV {
8
14
  DEVELOPMENT = "development",
9
15
  STAGING = "staging",
10
16
  PRODUCTION = "production"
11
17
  }
18
+ export declare enum FILTER_OPERATOR {
19
+ NOT = "not",
20
+ EQUAL = "eq",
21
+ LIKE = "like",
22
+ INS_LIKE = "ins_like",
23
+ STARTS_WITH = "starts_with",
24
+ ENDS_WITH = "ends_with",
25
+ INS_STARTS_WITH = "ins_starts_with",
26
+ INS_ENDS_WITH = "ins_ends_with",
27
+ LESS_THAN = "lt",
28
+ LESS_THAN_OR_EQUAL = "lte",
29
+ GREATER_THAN = "gt",
30
+ GREATER_THAN_OR_EQUAL = "gte",
31
+ IN = "in",
32
+ NOT_IN = "nin",
33
+ OR = "or",
34
+ NOR = "nor",
35
+ AND = "and",
36
+ IS = "is",
37
+ NOT_EQUAL = "ne"
38
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.APP_ENV = exports.LOG_LEVEL = void 0;
3
+ exports.FILTER_OPERATOR = exports.APP_ENV = exports.SET_CACHE_POLICY = exports.LOG_LEVEL = void 0;
4
4
  var LOG_LEVEL;
5
5
  (function (LOG_LEVEL) {
6
6
  LOG_LEVEL["INFO"] = "info";
@@ -8,10 +8,39 @@ var LOG_LEVEL;
8
8
  LOG_LEVEL["DEBUG"] = "debug";
9
9
  LOG_LEVEL["FATAL"] = "fatal";
10
10
  })(LOG_LEVEL = exports.LOG_LEVEL || (exports.LOG_LEVEL = {}));
11
+ var SET_CACHE_POLICY;
12
+ (function (SET_CACHE_POLICY) {
13
+ SET_CACHE_POLICY[SET_CACHE_POLICY["KEEP_TTL"] = 0] = "KEEP_TTL";
14
+ SET_CACHE_POLICY[SET_CACHE_POLICY["WITH_TTL"] = 1] = "WITH_TTL";
15
+ SET_CACHE_POLICY[SET_CACHE_POLICY["IF_EXISTS"] = 2] = "IF_EXISTS";
16
+ SET_CACHE_POLICY[SET_CACHE_POLICY["IF_NOT_EXISTS"] = 3] = "IF_NOT_EXISTS";
17
+ })(SET_CACHE_POLICY = exports.SET_CACHE_POLICY || (exports.SET_CACHE_POLICY = {}));
11
18
  var APP_ENV;
12
19
  (function (APP_ENV) {
13
20
  APP_ENV["DEVELOPMENT"] = "development";
14
21
  APP_ENV["STAGING"] = "staging";
15
22
  APP_ENV["PRODUCTION"] = "production";
16
23
  })(APP_ENV = exports.APP_ENV || (exports.APP_ENV = {}));
24
+ var FILTER_OPERATOR;
25
+ (function (FILTER_OPERATOR) {
26
+ FILTER_OPERATOR["NOT"] = "not";
27
+ FILTER_OPERATOR["EQUAL"] = "eq";
28
+ FILTER_OPERATOR["LIKE"] = "like";
29
+ FILTER_OPERATOR["INS_LIKE"] = "ins_like";
30
+ FILTER_OPERATOR["STARTS_WITH"] = "starts_with";
31
+ FILTER_OPERATOR["ENDS_WITH"] = "ends_with";
32
+ FILTER_OPERATOR["INS_STARTS_WITH"] = "ins_starts_with";
33
+ FILTER_OPERATOR["INS_ENDS_WITH"] = "ins_ends_with";
34
+ FILTER_OPERATOR["LESS_THAN"] = "lt";
35
+ FILTER_OPERATOR["LESS_THAN_OR_EQUAL"] = "lte";
36
+ FILTER_OPERATOR["GREATER_THAN"] = "gt";
37
+ FILTER_OPERATOR["GREATER_THAN_OR_EQUAL"] = "gte";
38
+ FILTER_OPERATOR["IN"] = "in";
39
+ FILTER_OPERATOR["NOT_IN"] = "nin";
40
+ FILTER_OPERATOR["OR"] = "or";
41
+ FILTER_OPERATOR["NOR"] = "nor";
42
+ FILTER_OPERATOR["AND"] = "and";
43
+ FILTER_OPERATOR["IS"] = "is";
44
+ FILTER_OPERATOR["NOT_EQUAL"] = "ne";
45
+ })(FILTER_OPERATOR = exports.FILTER_OPERATOR || (exports.FILTER_OPERATOR = {}));
17
46
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;AACjB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAED,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;AAC3B,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;AACjB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,iEAAS,CAAA;IACT,yEAAa,CAAA;AACf,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B;AAED,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;AAC3B,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB;AAED,IAAY,eAoBX;AApBD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,+BAAY,CAAA;IACZ,gCAAa,CAAA;IACb,wCAAqB,CAAA;IACrB,8CAA2B,CAAA;IAC3B,0CAAuB,CAAA;IACvB,sDAAmC,CAAA;IACnC,kDAA+B,CAAA;IAC/B,mCAAgB,CAAA;IAChB,6CAA0B,CAAA;IAC1B,sCAAmB,CAAA;IACnB,gDAA6B,CAAA;IAC7B,4BAAS,CAAA;IACT,iCAAc,CAAA;IACd,4BAAS,CAAA;IACT,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,4BAAS,CAAA;IACT,mCAAgB,CAAA;AAClB,CAAC,EApBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAoB1B"}
@@ -1,6 +1,19 @@
1
1
  import { Borders, CellValue, Style } from "exceljs";
2
2
  import { ConsumerConfig, ConsumerRunConfig, ConsumerSubscribeTopics, ProducerConfig, ProducerRecord } from "kafkajs";
3
- import { LOG_LEVEL } from "./constants";
3
+ import { FILTER_OPERATOR, LOG_LEVEL, SET_CACHE_POLICY } from "./constants";
4
+ export interface SQLRunner {
5
+ query<T = any>(sql: string, ...args: any[]): Promise<T>;
6
+ }
7
+ export interface CacheService {
8
+ get(key: string): Promise<any>;
9
+ set(key: string, value: any, option: SetCacheOption): Promise<any>;
10
+ incrBy(key: string, value?: number): Promise<any>;
11
+ decrBy(key: string, value?: number): Promise<any>;
12
+ }
13
+ export interface SetCacheOption {
14
+ policy: SET_CACHE_POLICY;
15
+ value: any;
16
+ }
4
17
  export interface IMessageQueueService {
5
18
  initProducer(config?: any): Promise<void>;
6
19
  initConsumer(config?: any): Promise<void>;
@@ -17,9 +30,15 @@ export interface CloudStorageClient {
17
30
  generateTmpCredentials(sessionId: string): Promise<any>;
18
31
  getObjectReadStream(fileName: string): Promise<any>;
19
32
  }
33
+ export interface IFilter {
34
+ field: string;
35
+ operator: FILTER_OPERATOR;
36
+ value: any;
37
+ }
38
+ export type SORT_DIRECTION = "ASC" | "DESC";
20
39
  export interface ISort {
21
40
  columnName: string;
22
- direction: "ASC" | "DESC";
41
+ direction: SORT_DIRECTION;
23
42
  }
24
43
  export interface EmailSender {
25
44
  send(mailOptions: SendMailOptions): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { IFilter } from "../interfaces";
2
+ export declare const toSimpleMongooseFilter: (filters: IFilter[]) => Record<string, any>;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSimpleMongooseFilter = void 0;
4
+ const constants_1 = require("../constants");
5
+ const toSimpleMongooseFilter = (filters) => {
6
+ return filters.reduce((agg, current) => {
7
+ var _a, _b;
8
+ switch (current.operator) {
9
+ case constants_1.FILTER_OPERATOR.EQUAL:
10
+ agg[current.field] = current.value;
11
+ break;
12
+ case constants_1.FILTER_OPERATOR.NOT_EQUAL:
13
+ agg[current.field] = {
14
+ $ne: current.value,
15
+ };
16
+ break;
17
+ case constants_1.FILTER_OPERATOR.NOT:
18
+ agg[current.field] = {
19
+ $ne: current.value,
20
+ };
21
+ break;
22
+ case constants_1.FILTER_OPERATOR.LIKE:
23
+ agg[current.field] = {
24
+ $regex: `.*${current.value}.*`,
25
+ };
26
+ break;
27
+ case constants_1.FILTER_OPERATOR.INS_LIKE:
28
+ agg[current.field] = {
29
+ $regex: `.*${current.value}.*`,
30
+ $options: "i",
31
+ };
32
+ break;
33
+ case constants_1.FILTER_OPERATOR.STARTS_WITH:
34
+ agg[current.field] = {
35
+ $regex: `^${current.value}.*$`,
36
+ };
37
+ break;
38
+ case constants_1.FILTER_OPERATOR.ENDS_WITH:
39
+ agg[current.field] = {
40
+ $regex: `.*${current.value}$`,
41
+ };
42
+ break;
43
+ case constants_1.FILTER_OPERATOR.INS_STARTS_WITH:
44
+ agg[current.field] = {
45
+ $regex: `^${current.value}.*$`,
46
+ $options: "i",
47
+ };
48
+ break;
49
+ case constants_1.FILTER_OPERATOR.INS_ENDS_WITH:
50
+ agg[current.field] = {
51
+ $regex: `.*${current.value}$`,
52
+ $options: "i",
53
+ };
54
+ break;
55
+ case constants_1.FILTER_OPERATOR.GREATER_THAN:
56
+ agg[current.field] = {
57
+ $gt: current.value,
58
+ };
59
+ break;
60
+ case constants_1.FILTER_OPERATOR.GREATER_THAN_OR_EQUAL:
61
+ agg[current.field] = {
62
+ $gte: current.value,
63
+ };
64
+ break;
65
+ case constants_1.FILTER_OPERATOR.LESS_THAN:
66
+ agg[current.field] = {
67
+ $lt: current.value,
68
+ };
69
+ break;
70
+ case constants_1.FILTER_OPERATOR.LESS_THAN_OR_EQUAL:
71
+ agg[current.field] = {
72
+ $lte: current.value,
73
+ };
74
+ break;
75
+ case constants_1.FILTER_OPERATOR.IN:
76
+ agg[current.field] = current.value;
77
+ break;
78
+ case constants_1.FILTER_OPERATOR.NOT_IN:
79
+ agg[current.field] = {
80
+ $nin: current.value,
81
+ };
82
+ break;
83
+ case constants_1.FILTER_OPERATOR.OR:
84
+ const parsedOr = ((_a = current.value) === null || _a === void 0 ? void 0 : _a.map((filterCondition) => (0, exports.toSimpleMongooseFilter)([filterCondition]))) || [];
85
+ if (!parsedOr.length) {
86
+ break;
87
+ }
88
+ agg.$or = parsedOr;
89
+ break;
90
+ case constants_1.FILTER_OPERATOR.NOR:
91
+ const parsedNor = ((_b = current.value) === null || _b === void 0 ? void 0 : _b.map((filterCondition) => (0, exports.toSimpleMongooseFilter)([filterCondition]))) || [];
92
+ if (!parsedNor.length) {
93
+ break;
94
+ }
95
+ agg.$nor = parsedNor;
96
+ break;
97
+ }
98
+ return agg;
99
+ }, {});
100
+ };
101
+ exports.toSimpleMongooseFilter = toSimpleMongooseFilter;
102
+ //# sourceMappingURL=filter-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-helper.js","sourceRoot":"","sources":["../../../src/pkg/filter-helper.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAGxC,MAAM,sBAAsB,GAAG,CACpC,OAAkB,EACG,EAAE;IACvB,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC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AAE,CAC9C,IAAA,8BAAsB,EAAC,CAAC,eAAe,CAAC,CAAC,CAC1C,KAAI,EAAE,CAAC;gBAEV,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE;oBACpB,MAAM;iBACP;gBAED,GAAG,CAAC,GAAG,GAAG,QAAQ,CAAC;gBAEnB,MAAM;YAER,KAAK,2BAAe,CAAC,GAAG;gBACtB,MAAM,SAAS,GACb,CAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,GAAG,CAAC,CAAC,eAAwB,EAAE,EAAE,CAC9C,IAAA,8BAAsB,EAAC,CAAC,eAAe,CAAC,CAAC,CAC1C,KAAI,EAAE,CAAC;gBAEV,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;oBACrB,MAAM;iBACP;gBAED,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;gBAErB,MAAM;SACT;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAyB,CAAC,CAAC;AAChC,CAAC,CAAC;AAvIW,QAAA,sBAAsB,0BAuIjC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const chai_1 = require("chai");
4
+ const constants_1 = require("../constants");
5
+ const filter_helper_1 = require("./filter-helper");
6
+ describe("filter helper", () => {
7
+ describe("simple mongoose filter", () => {
8
+ it("should parse simple equal filters correctly", () => {
9
+ const filters = [
10
+ {
11
+ field: "name",
12
+ operator: constants_1.FILTER_OPERATOR.EQUAL,
13
+ value: "andy",
14
+ },
15
+ {
16
+ field: "email",
17
+ operator: constants_1.FILTER_OPERATOR.EQUAL,
18
+ value: "andy@gmail.com",
19
+ },
20
+ ];
21
+ const parsedFilter = (0, filter_helper_1.toSimpleMongooseFilter)(filters);
22
+ (0, chai_1.expect)(parsedFilter.name).to.be.equal("andy");
23
+ (0, chai_1.expect)(parsedFilter.email).to.be.equal("andy@gmail.com");
24
+ });
25
+ it("should parse more complex filters correctly", () => {
26
+ const filters = [
27
+ {
28
+ field: "name",
29
+ operator: constants_1.FILTER_OPERATOR.STARTS_WITH,
30
+ value: "andy",
31
+ },
32
+ {
33
+ field: "email",
34
+ operator: constants_1.FILTER_OPERATOR.ENDS_WITH,
35
+ value: "andy@gmail.com",
36
+ },
37
+ {
38
+ field: "age",
39
+ operator: constants_1.FILTER_OPERATOR.IN,
40
+ value: [20, 30, 40],
41
+ },
42
+ ];
43
+ const parsedFilter = (0, filter_helper_1.toSimpleMongooseFilter)(filters);
44
+ (0, chai_1.expect)(parsedFilter.name).to.be.deep.equal({
45
+ $regex: "^andy.*$",
46
+ $options: "i",
47
+ });
48
+ (0, chai_1.expect)(parsedFilter.email).to.be.deep.equal({
49
+ $regex: ".*andy@gmail.com$",
50
+ $options: "i",
51
+ });
52
+ (0, chai_1.expect)(parsedFilter.age).to.be.deep.equal([20, 30, 40]);
53
+ });
54
+ it("should parse OR operator correctly", () => {
55
+ const filters = [
56
+ {
57
+ field: null,
58
+ operator: constants_1.FILTER_OPERATOR.OR,
59
+ value: [
60
+ {
61
+ field: "name",
62
+ operator: constants_1.FILTER_OPERATOR.EQUAL,
63
+ value: "andy",
64
+ },
65
+ {
66
+ field: "name",
67
+ operator: constants_1.FILTER_OPERATOR.EQUAL,
68
+ value: "devstic",
69
+ },
70
+ ],
71
+ },
72
+ {
73
+ field: "email",
74
+ operator: constants_1.FILTER_OPERATOR.LIKE,
75
+ value: "andy@gmail.com",
76
+ },
77
+ ];
78
+ const parsedFilter = (0, filter_helper_1.toSimpleMongooseFilter)(filters);
79
+ (0, chai_1.expect)(parsedFilter.$or).to.be.deep.equal([
80
+ {
81
+ name: "andy",
82
+ },
83
+ {
84
+ name: "devstic",
85
+ },
86
+ ]);
87
+ (0, chai_1.expect)(parsedFilter.email).to.be.deep.equal({
88
+ $regex: ".*andy@gmail.com.*",
89
+ $options: "i",
90
+ });
91
+ });
92
+ });
93
+ });
94
+ //# sourceMappingURL=filter-helper.test.js.map
@@ -0,0 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AAC,IAAI,CAAC,KAAK,CAAC;gBACxC;oBACE,IAAI,EAAE,MAAM;iBACb;gBACD;oBACE,IAAI,EAAE,SAAS;iBAChB;aACF,CAAC,CAAC;YAEH,IAAA,aAAM,EAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;gBAC1C,MAAM,EAAE,oBAAoB;gBAC5B,QAAQ,EAAE,GAAG;aACd,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import { ISort } from "../interfaces";
1
+ import { IFilter, ISort } from "../interfaces";
2
2
  export declare function parseSort(data: string): ISort[];
3
+ export declare function parseFilter(field: string, filterData: string): IFilter;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseSort = void 0;
3
+ exports.parseFilter = exports.parseSort = void 0;
4
+ const constants_1 = require("../constants");
4
5
  function parseSort(data) {
5
6
  if (!data) {
6
7
  return [];
@@ -20,4 +21,40 @@ function parseSort(data) {
20
21
  return sortConditions;
21
22
  }
22
23
  exports.parseSort = parseSort;
24
+ function parseFilter(field, filterData) {
25
+ if (!filterData) {
26
+ throw new Error("missing filter data");
27
+ }
28
+ const splittedData = filterData.split(":");
29
+ if (splittedData.length === 1) {
30
+ return {
31
+ field,
32
+ operator: constants_1.FILTER_OPERATOR.EQUAL,
33
+ value: splittedData[0],
34
+ };
35
+ }
36
+ if (splittedData.length === 2) {
37
+ const [operator, value] = splittedData;
38
+ if (!Object.keys(constants_1.FILTER_OPERATOR).includes(operator)) {
39
+ throw new Error(`invalid filter operator ${operator}`);
40
+ }
41
+ if (operator === constants_1.FILTER_OPERATOR.OR || operator === constants_1.FILTER_OPERATOR.AND) {
42
+ throw new Error("operator $or and $and are only for internal use");
43
+ }
44
+ if (operator === constants_1.FILTER_OPERATOR.IN ||
45
+ operator === constants_1.FILTER_OPERATOR.NOT_IN) {
46
+ return {
47
+ field,
48
+ operator: operator,
49
+ value: value.split(","),
50
+ };
51
+ }
52
+ return {
53
+ field,
54
+ operator: operator,
55
+ value,
56
+ };
57
+ }
58
+ }
59
+ exports.parseFilter = parseFilter;
23
60
  //# sourceMappingURL=query-helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-helper.js","sourceRoot":"","sources":["../../../src/pkg/query-helper.ts"],"names":[],"mappings":";;;AAOA,SAAgB,SAAS,CAAC,IAAY;IACpC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAY,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC3D,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACnB,OAAO;gBACL,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;gBAC1C,SAAS,EAAE,MAAM;aAClB,CAAC;SACH;QAED,OAAO;YACL,UAAU,EAAE,IAAI;YAChB,SAAS,EAAE,KAAK;SACjB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC;AACxB,CAAC;AApBD,8BAoBC"}
1
+ {"version":3,"file":"query-helper.js","sourceRoot":"","sources":["../../../src/pkg/query-helper.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAQ/C,SAAgB,SAAS,CAAC,IAAY;IACpC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAY,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC3D,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACnB,OAAO;gBACL,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC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QAED,OAAO;YACL,KAAK;YACL,QAAQ,EAAE,QAA2B;YACrC,KAAK;SACN,CAAC;KACH;AACH,CAAC;AA1CD,kCA0CC"}
@@ -0,0 +1,3 @@
1
+ import { ISort, SORT_DIRECTION } from "../interfaces";
2
+ export declare const toMongooseSort: (sorts: ISort[]) => Record<string, number>;
3
+ export declare const toTypeOrmSort: (sorts: ISort[]) => Record<string, SORT_DIRECTION>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toTypeOrmSort = exports.toMongooseSort = void 0;
4
+ const toMongooseSort = (sorts) => {
5
+ return sorts.reduce((agg, current) => {
6
+ agg[current.columnName] = current.direction === "ASC" ? 1 : -1;
7
+ return agg;
8
+ }, {});
9
+ };
10
+ exports.toMongooseSort = toMongooseSort;
11
+ const toTypeOrmSort = (sorts) => {
12
+ return sorts.reduce((agg, current) => {
13
+ agg[current.columnName] = current.direction;
14
+ return agg;
15
+ }, {});
16
+ };
17
+ exports.toTypeOrmSort = toTypeOrmSort;
18
+ //# sourceMappingURL=sort-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-helper.js","sourceRoot":"","sources":["../../../src/pkg/sort-helper.ts"],"names":[],"mappings":";;;AAEO,MAAM,cAAc,GAAG,CAAC,KAAc,EAA0B,EAAE;IACvE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QACnC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAE/D,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB;AAEK,MAAM,aAAa,GAAG,CAC3B,KAAc,EACkB,EAAE;IAClC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QACnC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;QAE5C,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
@@ -0,0 +1,10 @@
1
+ import * as ioredis from "ioredis";
2
+ import { CacheService, SetCacheOption } from "../interfaces";
3
+ export declare class RedisService implements CacheService {
4
+ protected _redis: ioredis.Redis;
5
+ constructor(config: ioredis.RedisOptions);
6
+ get(key: string): Promise<any>;
7
+ set(key: string, value: any, option: SetCacheOption): Promise<any>;
8
+ incrBy(key: string, value?: number): Promise<any>;
9
+ decrBy(key: string, value?: number): Promise<any>;
10
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.RedisService = void 0;
27
+ const ioredis = __importStar(require("ioredis"));
28
+ const constants_1 = require("../constants");
29
+ class RedisService {
30
+ constructor(config) {
31
+ this._redis = new ioredis.Redis(config);
32
+ }
33
+ get(key) {
34
+ return this._redis.get(key);
35
+ }
36
+ set(key, value, option) {
37
+ switch (option.policy) {
38
+ case constants_1.SET_CACHE_POLICY.WITH_TTL:
39
+ return this._redis.set(key, value, "EX", option.value);
40
+ case constants_1.SET_CACHE_POLICY.KEEP_TTL:
41
+ return this._redis.set(key, value, "KEEPTTL");
42
+ case constants_1.SET_CACHE_POLICY.IF_EXISTS:
43
+ return this._redis.set(key, value, "XX");
44
+ case constants_1.SET_CACHE_POLICY.IF_NOT_EXISTS:
45
+ return this._redis.set(key, value, "NX");
46
+ default:
47
+ throw new Error("policy not supported");
48
+ }
49
+ }
50
+ incrBy(key, value = 1) {
51
+ return this._redis.incrby(key, value);
52
+ }
53
+ decrBy(key, value = 1) {
54
+ return this._redis.decrby(key, value);
55
+ }
56
+ }
57
+ exports.RedisService = RedisService;
58
+ //# sourceMappingURL=redis-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis-service.js","sourceRoot":"","sources":["../../../src/services/redis-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAGnC,4CAAgD;AAEhD,MAAa,YAAY;IAGvB,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAEM,GAAG,CAAC,GAAW;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAEM,GAAG,CAAC,GAAW,EAAE,KAAU,EAAE,MAAsB;QACxD,QAAQ,MAAM,CAAC,MAAM,EAAE;YACrB,KAAK,4BAAgB,CAAC,QAAQ;gBAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,4BAAgB,CAAC,QAAQ;gBAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;YAChD,KAAK,4BAAgB,CAAC,SAAS;gBAC7B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;YAC3C,KAAK,4BAAgB,CAAC,aAAa;gBACjC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;YAC3C;gBACE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;SAC3C;IACH,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAK,GAAG,CAAC;QAClC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAK,GAAG,CAAC;QAClC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;CACF;AAjCD,oCAiCC"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/constants.ts","../node_modules/exceljs/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/kafkajs/types/index.d.ts","../src/interfaces.ts","../node_modules/@types/ali-oss/index.d.ts","../node_modules/@alicloud/pop-core/lib/rpc.d.ts","../src/gateways/alibaba-cloud-gateway.ts","../node_modules/axios/index.d.ts","../node_modules/@paralleldrive/cuid2/index.d.ts","../src/pkg/string-utils.ts","../src/gateways/http-audit-gateway.ts","../src/gateways/index.ts","../src/models/audit-log.ts","../src/models/index.ts","../node_modules/@types/bcrypt/index.d.ts","../src/pkg/bcrypt-helper.ts","../src/pkg/http-request-utils.ts","../src/pkg/object-helper.ts","../src/pkg/query-helper.ts","../src/pkg/worksheet.utils.ts","../src/pkg/index.ts","../src/services/audit-service.ts","../src/services/excel.service.ts","../src/services/mailer-service.ts","../src/services/kafka-service.ts","../src/services/index.ts","../index.ts"],"fileInfos":["df039a67536fe2acc3affdcbfb645892f842db36fe599e8e652e2f0c640a90d1",{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"63dc4a75d834ab7d7347a3df435c984ced3f76340205a576a10af85d32f26ae6","signature":"9e78f2de7ea69cbff8e27a96e6415012675524bc860593d387f95c01452da381"},"a8669e593472df912d84f2e679b699e01aa137304ec6734a5e7757633f64b9b3","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"9c9461d480b1812281abffc647107904970791c170cd0ab97563daa10c6e0171","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","bdd64e322c4ec2f42a3e311c83ce95ec9d290e6b44d32dd94cc94bd7e01a0ea0","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","11bf7fc87cd49308e2c0ff41f1d030797b1831e763c0a1b70febc17105f3c82a","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","bba259efdf9ab95e0c7d3cc8e99250f56bb6b31d6129efdf733ca4eb1d01feea","97f837637f01e274ada9de388e99b1a5c5a82ae4184f8c924209fe201f4ffc9e","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","a504c109b872b0e653549bd258eb06584c148c98d79406c7516995865a6d5089","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","aa95cc73ea5315e4f6fc8c6db43d49e3b7de3780cae20a4f1319032809013038","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"7d0a3356909df08e5df9af2cfd43e8780f24bb12d07b00daaf7ed2a891fa60e5","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","c724034e22cbbde98550aca4ee32006f7f4c566885328949ac16ff9ff2f76e89",{"version":"79d2a1f05a833ce4bfd659bc4ba072ad7c67f47401a2d07bf14c0d1ef8b23a44","signature":"fe621400e98cfc98c08284b20ca8cbe6ec68a674b1067049952f6ea7bc402667"},"aeedd840f50f60785b8646d3bc1fbd23a47f2fbf71cba4a84a80e050c4f996f8","387cd51ff3531cf5470164612ed89448e82ec111c5eaeb1befe99e59b23072ff",{"version":"cc8d8af50a1109acc29f84998c5f519ac77f05dedfb44897b331ebbe956e6eee","signature":"d5ca394e1c806035477d360f32f47652bece9bbdf59cd3ad8fc54ee625fe251d"},"1d729ea435a93e1a70519d06a6f13fa418c4c39a52b69e6db86750ebfcdf5554","7aa9f477eb1e44629a34615a451350e4055fec737bdd3a8a7c5234dbb6d29018",{"version":"2ab253fe6ba04388a443a24befc872175ed4c0892b8820888e333746c417a2c1","signature":"d2dde0e18b3ad6e2cab3703826890677ae8f9849c38b0f5b743f308be247a411"},{"version":"18d74d652ddc0aa24ca69e74b3f51fb5efe45945d689c19c9b1d1aed5c5c078d","signature":"fc2e23877c5ccf30f6571c9d7834f66e32bfbe1f57c6d791594edfa47e285794"},"b1a0b021c2d05b82954d5ccec365ced19feaeb04a1271019ab4db6068cc978dc",{"version":"19cbadcf0e3ae87536e5a5cd9de46e4e87d4a6a022e2e42d145ca03f7bfad55f","signature":"3b35f71853871dea38a9049f16560e32d9aab8506085d6c01a79731398640308"},"f91cc198133b66e544b8638a2e17f68d0ea974063fc084375b8f6a7296282d05","57ddc4e066366bbe04f497f9afce1c88e088dbd09be0618e072754450de3acbb",{"version":"2dadf3a49c8d9c3f65e2ceb870489bf39cf23759337863a90ded962feb8880d8","signature":"36ab75f2013dccfe181a7aab19d70d1d5088fdeb45a005c33479606e34016aba"},{"version":"51833618a96db5e1ff2e28f023aeb7f12a8fed0c47f737b31bd0b68d90771b93","signature":"b7b0ecd8296f5335cf13b09ebb979831f3969a7a7c8e03d6bcba618ba0ca69eb"},{"version":"5e066b89f0944f913bcc5eba60206dc3b3b9056b8be2c4324ac1852739611ab5","signature":"3e255545f498155d138273eb0e71563a6b7ef6ccd274774a31a166ac28648467"},{"version":"ad3210d5328fdd78f098067083f688af2b3aaf720b15b12734252b2d983ed1a5","signature":"725c9ded35c07149509267603d04a74a15e6e152337d5538d9d30864447608d5"},{"version":"c9c8fef1ef7d4bdf6c63686a78f6acd826162ecd12c2cdf2782d8fc8a6dcb3db","signature":"5e3cdc915544f43e870d140d1242efb52e968a3ca7bc2bc2fcd3c4d3d1be5628"},"1cb9948374fe40e08cf5e5c7e4a45a5cc73c0cc8632dbcae69641f14609a0e70",{"version":"644d3ef1bfd575cc343e4402729d2536d97031c85a833ae21a0b18e3dd3044e1","signature":"9c0d5549744e1225e55371b8cd15b7e3b2f5a89b2ec015f9e63949db89418318"},{"version":"0894931f094af3a6865fb3721e6dbc53096d69addf1b40871d93776a22f98d8b","signature":"618ccb7ababec31ff0e23956a575b80978b7e834140835aa98ad96a886d25c69"},{"version":"8933cf1043c68ef8acf35cbce86b1598e75639b27f92e1c31d246f373f4d73b2","signature":"d538d8643ce2f71061fea5ccf88c19298f93602d224f99ae54efebde70be70ca"},{"version":"f03cdebd7a2954a4c040880dd198082764b657166b3252a8a51bb517b861cc4a","signature":"657c6de6f9415f9e99ee9b66789f23387b525c7a695d1b05993c34c30d8690b0"},"80f44743ed1a1266d9d286e0f9468eeeb3ce463e906da46a315d69a232aeaeb3","5caa7eb81a5adab09f3464c74a639f506b63fb7df512295a92859668e7e8aa06"],"root":[36,83,86,[89,93],[95,106]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strictBindCallApply":false,"strictNullChecks":false,"target":2},"fileIdsList":[[36,83,91,93,100,105],[81],[38],[40],[41,46],[42,50,51,58,67],[42,43,50,58],[44,74],[45,46,51,59],[46,67],[47,48,50,58],[48],[49,50],[50],[50,51,52,67,73],[51,52],[50,53,58,67,73],[50,51,53,54,58,67,70,73],[53,55,67,70,73],[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],[50,56],[57,73],[48,50,58,67],[59],[60],[40,61],[62,72],[63],[64],[50,65],[65,66,74,76],[50,67],[68],[69],[58,67,70],[71],[58,72],[53,64,73],[74],[67,75],[76],[77],[50,52,67,73,76,78],[67,79],[58,70,81],[83,84,85],[36,83,87,89],[86,90],[36,37,82],[36],[92],[94],[89,95,96,97,98,99],[83],[88],[37,83],[83,92],[37,67,99],[101,102,103,104],[82,83],[36,83,87]],"referencedMap":[[106,1],[94,2],[38,3],[40,4],[41,5],[42,6],[43,7],[44,8],[45,9],[46,10],[47,11],[48,12],[49,13],[50,14],[51,15],[52,16],[53,17],[54,18],[55,19],[81,20],[56,21],[57,22],[58,23],[59,24],[60,25],[61,26],[62,27],[63,28],[64,29],[65,30],[66,31],[67,32],[68,33],[69,34],[70,35],[71,36],[72,37],[73,38],[74,39],[75,40],[76,41],[77,42],[78,43],[79,44],[37,32],[82,45],[86,46],[90,47],[91,48],[83,49],[92,50],[93,51],[95,52],[100,53],[98,54],[89,55],[99,56],[101,57],[102,58],[105,59],[104,60],[103,54]],"exportedModulesMap":[[106,1],[94,2],[38,3],[40,4],[41,5],[42,6],[43,7],[44,8],[45,9],[46,10],[47,11],[48,12],[49,13],[50,14],[51,15],[52,16],[53,17],[54,18],[55,19],[81,20],[56,21],[57,22],[58,23],[59,24],[60,25],[61,26],[62,27],[63,28],[64,29],[65,30],[66,31],[67,32],[68,33],[69,34],[70,35],[71,36],[72,37],[73,38],[74,39],[75,40],[76,41],[77,42],[78,43],[79,44],[37,32],[82,45],[86,46],[90,61],[91,48],[83,49],[92,50],[93,51],[100,53],[98,54],[99,56],[101,57],[102,58],[105,59],[104,60],[103,54]],"semanticDiagnosticsPerFile":[106,85,88,84,94,38,40,41,42,43,44,45,46,47,48,49,50,51,52,39,80,53,54,55,81,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,87,37,82,34,35,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,32,2,1,33,10,9,36,86,90,91,83,92,93,95,96,100,97,98,89,99,101,102,105,104,103]},"version":"5.0.4"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/constants.ts","../node_modules/exceljs/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/kafkajs/types/index.d.ts","../src/interfaces.ts","../node_modules/@types/ali-oss/index.d.ts","../node_modules/@alicloud/pop-core/lib/rpc.d.ts","../src/gateways/alibaba-cloud-gateway.ts","../node_modules/axios/index.d.ts","../node_modules/@paralleldrive/cuid2/index.d.ts","../src/pkg/string-utils.ts","../src/gateways/http-audit-gateway.ts","../src/gateways/index.ts","../src/models/audit-log.ts","../src/models/index.ts","../node_modules/@types/bcrypt/index.d.ts","../src/pkg/bcrypt-helper.ts","../node_modules/@types/chai/index.d.ts","../src/pkg/filter-helper.ts","../src/pkg/filter-helper.test.ts","../src/pkg/http-request-utils.ts","../src/pkg/object-helper.ts","../src/pkg/query-helper.ts","../src/pkg/worksheet.utils.ts","../src/pkg/index.ts","../src/pkg/sort-helper.ts","../src/services/audit-service.ts","../src/services/excel.service.ts","../src/services/mailer-service.ts","../src/services/kafka-service.ts","../src/services/index.ts","../node_modules/ioredis/built/types.d.ts","../node_modules/ioredis/built/command.d.ts","../node_modules/ioredis/built/scanstream.d.ts","../node_modules/ioredis/built/utils/rediscommander.d.ts","../node_modules/ioredis/built/transaction.d.ts","../node_modules/ioredis/built/utils/commander.d.ts","../node_modules/ioredis/built/connectors/abstractconnector.d.ts","../node_modules/ioredis/built/connectors/connectorconstructor.d.ts","../node_modules/ioredis/built/connectors/sentinelconnector/types.d.ts","../node_modules/ioredis/built/connectors/sentinelconnector/sentineliterator.d.ts","../node_modules/ioredis/built/connectors/sentinelconnector/index.d.ts","../node_modules/ioredis/built/connectors/standaloneconnector.d.ts","../node_modules/ioredis/built/redis/redisoptions.d.ts","../node_modules/ioredis/built/cluster/util.d.ts","../node_modules/ioredis/built/cluster/clusteroptions.d.ts","../node_modules/ioredis/built/cluster/index.d.ts","../node_modules/denque/index.d.ts","../node_modules/ioredis/built/subscriptionset.d.ts","../node_modules/ioredis/built/datahandler.d.ts","../node_modules/ioredis/built/redis.d.ts","../node_modules/ioredis/built/pipeline.d.ts","../node_modules/ioredis/built/index.d.ts","../src/services/redis-service.ts","../index.ts","../node_modules/@types/mocha/index.d.ts"],"fileInfos":["df039a67536fe2acc3affdcbfb645892f842db36fe599e8e652e2f0c640a90d1",{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"43169074e0e63a7bf731ce739b2cc4dce768ed23a0081808a729f5df8487df4c","signature":"0971813833a31ded266e455528857c74dc7058f76b224a13d96de03fbaa1bb13"},"a8669e593472df912d84f2e679b699e01aa137304ec6734a5e7757633f64b9b3","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"9c9461d480b1812281abffc647107904970791c170cd0ab97563daa10c6e0171","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","bdd64e322c4ec2f42a3e311c83ce95ec9d290e6b44d32dd94cc94bd7e01a0ea0","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","11bf7fc87cd49308e2c0ff41f1d030797b1831e763c0a1b70febc17105f3c82a","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","bba259efdf9ab95e0c7d3cc8e99250f56bb6b31d6129efdf733ca4eb1d01feea","97f837637f01e274ada9de388e99b1a5c5a82ae4184f8c924209fe201f4ffc9e","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","a504c109b872b0e653549bd258eb06584c148c98d79406c7516995865a6d5089","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","aa95cc73ea5315e4f6fc8c6db43d49e3b7de3780cae20a4f1319032809013038","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"7d0a3356909df08e5df9af2cfd43e8780f24bb12d07b00daaf7ed2a891fa60e5","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","c724034e22cbbde98550aca4ee32006f7f4c566885328949ac16ff9ff2f76e89",{"version":"0334b8656611a54c25f6008d530afe5c1d74572a9de6e13909b0a1b7d2ff468c","signature":"2101906cf0cf1dad4d6ddd6671b9cbae2d4a697addb71db522c221b9b4418f68"},"aeedd840f50f60785b8646d3bc1fbd23a47f2fbf71cba4a84a80e050c4f996f8","387cd51ff3531cf5470164612ed89448e82ec111c5eaeb1befe99e59b23072ff",{"version":"cc8d8af50a1109acc29f84998c5f519ac77f05dedfb44897b331ebbe956e6eee","signature":"d5ca394e1c806035477d360f32f47652bece9bbdf59cd3ad8fc54ee625fe251d"},"1d729ea435a93e1a70519d06a6f13fa418c4c39a52b69e6db86750ebfcdf5554","7aa9f477eb1e44629a34615a451350e4055fec737bdd3a8a7c5234dbb6d29018",{"version":"2ab253fe6ba04388a443a24befc872175ed4c0892b8820888e333746c417a2c1","signature":"d2dde0e18b3ad6e2cab3703826890677ae8f9849c38b0f5b743f308be247a411"},{"version":"18d74d652ddc0aa24ca69e74b3f51fb5efe45945d689c19c9b1d1aed5c5c078d","signature":"fc2e23877c5ccf30f6571c9d7834f66e32bfbe1f57c6d791594edfa47e285794"},"b1a0b021c2d05b82954d5ccec365ced19feaeb04a1271019ab4db6068cc978dc",{"version":"19cbadcf0e3ae87536e5a5cd9de46e4e87d4a6a022e2e42d145ca03f7bfad55f","signature":"3b35f71853871dea38a9049f16560e32d9aab8506085d6c01a79731398640308"},"f91cc198133b66e544b8638a2e17f68d0ea974063fc084375b8f6a7296282d05","57ddc4e066366bbe04f497f9afce1c88e088dbd09be0618e072754450de3acbb",{"version":"2dadf3a49c8d9c3f65e2ceb870489bf39cf23759337863a90ded962feb8880d8","signature":"36ab75f2013dccfe181a7aab19d70d1d5088fdeb45a005c33479606e34016aba"},{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"c2aa9671a29669027acc6117cf8dde17af33ef5d534e0d3eeed9ca92bbf37c47","signature":"b1755109f641c01bb7adedc4852942097e9a686d1c5f3ed55c888d3ba4c99ac6"},{"version":"00d0180b2f975f3fcc8512fed5b0a22a9a1ec5b5f06546b9b32c69d2d0ad50dc","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"51833618a96db5e1ff2e28f023aeb7f12a8fed0c47f737b31bd0b68d90771b93","signature":"b7b0ecd8296f5335cf13b09ebb979831f3969a7a7c8e03d6bcba618ba0ca69eb"},{"version":"5e066b89f0944f913bcc5eba60206dc3b3b9056b8be2c4324ac1852739611ab5","signature":"3e255545f498155d138273eb0e71563a6b7ef6ccd274774a31a166ac28648467"},{"version":"fb153203f040746c1e19d0b6405b1b182eb4f8bcb508569d0e6bea1a5981bebe","signature":"610af39dd50352e3b5c359a05515a1cb98ce2d6f96ac3eff406185c716c661d3"},{"version":"c9c8fef1ef7d4bdf6c63686a78f6acd826162ecd12c2cdf2782d8fc8a6dcb3db","signature":"5e3cdc915544f43e870d140d1242efb52e968a3ca7bc2bc2fcd3c4d3d1be5628"},"1cb9948374fe40e08cf5e5c7e4a45a5cc73c0cc8632dbcae69641f14609a0e70",{"version":"15487a74ab674f245a56c37225b57009e67f9a70f05f0ee7e88d701368760666","signature":"6faf611f402c7b541c7469920447752b7b5e9b3fe1b49d851a685ddc0c229d04"},{"version":"644d3ef1bfd575cc343e4402729d2536d97031c85a833ae21a0b18e3dd3044e1","signature":"9c0d5549744e1225e55371b8cd15b7e3b2f5a89b2ec015f9e63949db89418318"},{"version":"0894931f094af3a6865fb3721e6dbc53096d69addf1b40871d93776a22f98d8b","signature":"618ccb7ababec31ff0e23956a575b80978b7e834140835aa98ad96a886d25c69"},{"version":"8933cf1043c68ef8acf35cbce86b1598e75639b27f92e1c31d246f373f4d73b2","signature":"d538d8643ce2f71061fea5ccf88c19298f93602d224f99ae54efebde70be70ca"},{"version":"f03cdebd7a2954a4c040880dd198082764b657166b3252a8a51bb517b861cc4a","signature":"657c6de6f9415f9e99ee9b66789f23387b525c7a695d1b05993c34c30d8690b0"},"80f44743ed1a1266d9d286e0f9468eeeb3ce463e906da46a315d69a232aeaeb3","e8a5beb73e49b5a4899f12b21fa436f4088f5c6b22ed3e6718fcdf526539d851","911484710eb1feaf615cb68eb5875cbfb8edab2a032f0e4fe5a7f8b17e3a997c","4b16f3af68c203b4518ce37421fbb64d8e52f3b454796cd62157cfca503b1e08","4fc05cd35f313ea6bc2cd52bfd0d3d1a79c894aeaeffd7c285153cb7d243f19b","29994a97447d10d003957bcc0c9355c272d8cf0f97143eb1ade331676e860945","6865b4ef724cb739f8f1511295f7ce77c52c67ff4af27e07b61471d81de8ecfc","9cddf06f2bc6753a8628670a737754b5c7e93e2cfe982a300a0b43cf98a7d032","3f8e68bd94e82fe4362553aa03030fcf94c381716ce3599d242535b0d9953e49","63e628515ec7017458620e1624c594c9bd76382f606890c8eebf2532bcab3b7c","355d5e2ba58012bc059e347a70aa8b72d18d82f0c3491e9660adaf852648f032","0c543e751bbd130170ed4efdeca5ff681d06a99f70b5d6fe7defad449d08023d","c301dded041994ed4899a7cf08d1d6261a94788da88a4318c1c2338512431a03","236c2990d130b924b4442194bdafefa400fcbd0c125a5e2c3e106a0dbe43eaad","ded3d0fb8ac3980ae7edcc723cc2ad35da1798d52cceff51c92abe320432ceeb","fbb60baf8c207f19aa1131365e57e1c7974a4f7434c1f8d12e13508961fb20ec","00011159f97bde4bdb1913f30ef185e6948b8d7ad022b1f829284dfc78feaabf","ed849d616865076f44a41c87f27698f7cdf230290c44bafc71d7c2bc6919b202","9a0a0af04065ddfecc29d2b090659fce57f46f64c7a04a9ba63835ef2b2d0efa","10297d22a9209a718b9883a384db19249b206a0897e95f2b9afeed3144601cb0","620d6e0143dba8d88239e321315ddfb662283da3ada6b00cbc935d5c2cee4202","34d206f6ba993e601dade2791944bdf742ab0f7a8caccc661106c87438f4f904","05ca49cc7ba9111f6c816ecfadb9305fffeb579840961ee8286cc89749f06ebd",{"version":"f05292b8635c921263621967562266e5d833ed23779aa44620bb9b3515ee34ed","signature":"04c04c206e56dd0e48d1d59fceb1d1fde274cabc4e3f76f647fa51403bba94df"},"5caa7eb81a5adab09f3464c74a639f506b63fb7df512295a92859668e7e8aa06",{"version":"677646e2620795c98a539fb12fb531f10331c217cef1492132b2518f894fa92d","affectsGlobalScope":true}],"root":[36,83,86,[89,93],95,[97,109],132,133],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strictBindCallApply":false,"strictNullChecks":false,"target":2},"fileIdsList":[[36,83,91,93,103,109],[81],[38],[40],[41,46],[42,50,51,58,67],[42,43,50,58],[44,74],[45,46,51,59],[46,67],[47,48,50,58],[48],[49,50],[50],[50,51,52,67,73],[51,52],[50,53,58,67,73],[50,51,53,54,58,67,70,73],[53,55,67,70,73],[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],[50,56],[57,73],[48,50,58,67],[59],[60],[40,61],[62,72],[63],[64],[50,65],[65,66,74,76],[50,67],[68],[69],[58,67,70],[71],[58,72],[53,64,73],[74],[67,75],[76],[77],[50,52,67,73,76,78],[67,79],[48,81,115,122,123],[50,81,110,111,112,114,115,123,124,129],[48,81],[81,110],[110],[116],[50,70,81,110,116,118,119,124],[118],[122],[58,70,81,110,116],[50,81,110,126,127],[110,111,112,113,116,120,121,122,123,124,125,129,130],[111,115,125,129],[50,81,110,111,112,114,115,122,125,126,128],[115,117,120,121],[67,81],[111],[113],[58,70,81],[110,111,113],[83,84,85],[36,83,87,89],[86,90],[36,37,82],[36],[92],[94],[36,83,96,97],[36,83],[89,95,99,100,101,102],[83],[88],[37,83],[83,92],[37,67,102],[105,106,107,108],[82,83],[36,83,131],[36,83,87],[83,131]],"referencedMap":[[133,1],[94,2],[38,3],[40,4],[41,5],[42,6],[43,7],[44,8],[45,9],[46,10],[47,11],[48,12],[49,13],[50,14],[51,15],[52,16],[53,17],[54,18],[55,19],[81,20],[56,21],[57,22],[58,23],[59,24],[60,25],[61,26],[62,27],[63,28],[64,29],[65,30],[66,31],[67,32],[68,33],[69,34],[70,35],[71,36],[72,37],[73,38],[74,39],[75,40],[76,41],[77,42],[78,43],[79,44],[37,32],[124,45],[125,46],[123,47],[111,48],[116,49],[117,50],[120,51],[119,52],[118,53],[121,54],[128,55],[131,56],[130,57],[129,58],[122,59],[112,60],[127,61],[114,62],[110,63],[115,64],[113,48],[82,63],[86,65],[90,66],[91,67],[83,68],[92,69],[93,70],[95,71],[98,72],[97,73],[103,74],[101,73],[104,75],[89,76],[102,77],[105,78],[106,79],[109,80],[108,81],[107,75],[132,82]],"exportedModulesMap":[[133,1],[94,2],[38,3],[40,4],[41,5],[42,6],[43,7],[44,8],[45,9],[46,10],[47,11],[48,12],[49,13],[50,14],[51,15],[52,16],[53,17],[54,18],[55,19],[81,20],[56,21],[57,22],[58,23],[59,24],[60,25],[61,26],[62,27],[63,28],[64,29],[65,30],[66,31],[67,32],[68,33],[69,34],[70,35],[71,36],[72,37],[73,38],[74,39],[75,40],[76,41],[77,42],[78,43],[79,44],[37,32],[124,45],[125,46],[123,47],[111,48],[116,49],[117,50],[120,51],[119,52],[118,53],[121,54],[128,55],[131,56],[130,57],[129,58],[122,59],[112,60],[127,61],[114,62],[110,63],[115,64],[113,48],[82,63],[86,65],[90,83],[91,67],[83,68],[92,69],[93,70],[97,75],[103,74],[101,75],[104,75],[102,77],[105,78],[106,79],[109,80],[108,81],[107,75],[132,84]],"semanticDiagnosticsPerFile":[133,85,88,84,94,96,134,38,40,41,42,43,44,45,46,47,48,49,50,51,52,39,80,53,54,55,81,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,87,126,37,124,125,123,111,116,117,120,119,118,121,128,131,130,129,122,112,127,114,110,115,113,82,34,35,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,32,2,1,33,10,9,36,86,90,91,83,92,93,95,98,97,99,103,100,101,104,89,102,105,106,109,108,107,132]},"version":"5.0.4"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "mvc-common-toolkit",
3
- "version": "1.1.5",
3
+ "version": "1.3.0",
4
4
  "description": "This package contains common toolkits like query string parser, filter parser,... and other reusable patterns for any web projects",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
- "test": "npm t",
7
+ "test": "mocha -r ts-node/register './src/**/*.test.ts'",
8
8
  "build": "rimraf dist && tsc",
9
9
  "prepublishOnly": "yarn build"
10
10
  },
@@ -32,12 +32,19 @@
32
32
  "bcrypt": "^5.1.0",
33
33
  "core-js": "^3.30.2",
34
34
  "exceljs": "^4.3.0",
35
- "kafkajs": "^2.2.4"
35
+ "ioredis": "^5.3.2",
36
+ "kafkajs": "^2.2.4",
37
+ "knex": "^2.4.2"
36
38
  },
37
39
  "devDependencies": {
38
40
  "@types/ali-oss": "^6.16.7",
39
41
  "@types/bcrypt": "^5.0.0",
42
+ "@types/chai": "^4.3.5",
43
+ "@types/mocha": "^10.0.1",
44
+ "chai": "^4.3.7",
45
+ "mocha": "^10.2.0",
40
46
  "rimraf": "^5.0.0",
47
+ "ts-node": "^10.9.1",
41
48
  "typescript": "^5.0.4"
42
49
  }
43
50
  }