@l-v-yonsama/multi-platform-database-drivers 0.1.13 → 0.1.15
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/built/src/db/DBError.js +4 -1
- package/built/src/db/DBError.js.map +1 -1
- package/built/src/db/drivers/AwsS3Driver.js +131 -105
- package/built/src/db/drivers/AwsS3Driver.js.map +1 -1
- package/built/src/db/drivers/BaseDriver.js +75 -65
- package/built/src/db/drivers/BaseDriver.js.map +1 -1
- package/built/src/db/drivers/MySQLDriver.js +201 -179
- package/built/src/db/drivers/MySQLDriver.js.map +1 -1
- package/built/src/db/drivers/PostgresDriver.js +186 -162
- package/built/src/db/drivers/PostgresDriver.js.map +1 -1
- package/built/src/db/drivers/RedisDriver.js +180 -160
- package/built/src/db/drivers/RedisDriver.js.map +1 -1
- package/built/src/db/drivers/index.js +8 -5
- package/built/src/db/drivers/index.js.map +1 -1
- package/built/src/db/index.js +6 -3
- package/built/src/db/index.js.map +1 -1
- package/built/src/db/resource/DbResource.js +58 -43
- package/built/src/db/resource/DbResource.js.map +1 -1
- package/built/src/db/resource/MultipleResultSetDataHolder.js +9 -5
- package/built/src/db/resource/MultipleResultSetDataHolder.js.map +1 -1
- package/built/src/db/resource/ResourceHelper.js +5 -1
- package/built/src/db/resource/ResourceHelper.js.map +1 -1
- package/built/src/db/resource/ResultSetDataHolder.js +43 -33
- package/built/src/db/resource/ResultSetDataHolder.js.map +1 -1
- package/built/src/db/resource/index.js +8 -5
- package/built/src/db/resource/index.js.map +1 -1
- package/built/src/db/resource/types/DBType.js +6 -3
- package/built/src/db/resource/types/DBType.js.map +1 -1
- package/built/src/db/resource/types/GeneralColumnType.js +8 -5
- package/built/src/db/resource/types/GeneralColumnType.js.map +1 -1
- package/built/src/db/resource/types/MySQLColumnType.js +10 -7
- package/built/src/db/resource/types/MySQLColumnType.js.map +1 -1
- package/built/src/db/resource/types/ODBCVendorType.js +5 -2
- package/built/src/db/resource/types/ODBCVendorType.js.map +1 -1
- package/built/src/db/resource/types/PostgresColumnType.js +9 -6
- package/built/src/db/resource/types/PostgresColumnType.js.map +1 -1
- package/built/src/db/resource/types/RedisKeyType.js +8 -5
- package/built/src/db/resource/types/RedisKeyType.js.map +1 -1
- package/built/src/db/resource/types/ResourceType.js +5 -2
- package/built/src/db/resource/types/ResourceType.js.map +1 -1
- package/built/src/db/resource/types/index.js +10 -7
- package/built/src/db/resource/types/index.js.map +1 -1
- package/built/src/index.js +6 -3
- package/built/src/index.js.map +1 -1
- package/built/src/service/DBAccessService.js +273 -246
- package/built/src/service/DBAccessService.js.map +1 -1
- package/built/src/service/DBDriverResolver.js +36 -32
- package/built/src/service/DBDriverResolver.js.map +1 -1
- package/built/src/service/SQLService.js +8 -3
- package/built/src/service/SQLService.js.map +1 -1
- package/built/src/service/index.js +8 -5
- package/built/src/service/index.js.map +1 -1
- package/built/src/service/request/RedisRequest.js +5 -2
- package/built/src/service/request/RedisRequest.js.map +1 -1
- package/built/src/service/request/S3Request.js +5 -2
- package/built/src/service/request/S3Request.js.map +1 -1
- package/built/src/service/request/index.js +5 -2
- package/built/src/service/request/index.js.map +1 -1
- package/built/src/service/response/GeneralDBResponse.js +2 -1
- package/built/src/service/response/GeneralResponse.js +5 -1
- package/built/src/service/response/GeneralResponse.js.map +1 -1
- package/built/src/service/response/index.js +5 -2
- package/built/src/service/response/index.js.map +1 -1
- package/built/src/service/response/reply/ConnectionResult.js +2 -1
- package/built/src/service/response/reply/FileExportReply.js +8 -4
- package/built/src/service/response/reply/FileExportReply.js.map +1 -1
- package/built/src/service/response/reply/FileProcessResult.js +7 -3
- package/built/src/service/response/reply/FileProcessResult.js.map +1 -1
- package/built/src/service/response/reply/GeneralReply.js +4 -1
- package/built/src/service/response/reply/GeneralReply.js.map +1 -1
- package/built/src/service/response/reply/OutputReply.js +8 -4
- package/built/src/service/response/reply/OutputReply.js.map +1 -1
- package/built/src/service/response/reply/ProgressReply.js +6 -2
- package/built/src/service/response/reply/ProgressReply.js.map +1 -1
- package/built/src/service/response/reply/types/FileExportType.js +5 -2
- package/built/src/service/response/reply/types/FileExportType.js.map +1 -1
- package/built/src/service/response/reply/types/OutputType.js +5 -2
- package/built/src/service/response/reply/types/OutputType.js.map +1 -1
- package/built/src/service/response/reply/types/ReplyEventType.js +5 -2
- package/built/src/service/response/reply/types/ReplyEventType.js.map +1 -1
- package/built/src/types/DateModifiedType.js +6 -3
- package/built/src/types/DateModifiedType.js.map +1 -1
- package/built/src/types/FileKindType.js +6 -3
- package/built/src/types/FileKindType.js.map +1 -1
- package/built/src/types/index.js +5 -2
- package/built/src/types/index.js.map +1 -1
- package/package.json +2 -3
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DBDriverResolver = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const RedisDriver_1 = tslib_1.__importDefault(require("../db/drivers/RedisDriver"));
|
|
6
|
+
const MySQLDriver_1 = tslib_1.__importDefault(require("../db/drivers/MySQLDriver"));
|
|
7
|
+
const PostgresDriver_1 = tslib_1.__importDefault(require("../db/drivers/PostgresDriver"));
|
|
8
|
+
const AwsS3Driver_1 = tslib_1.__importDefault(require("../db/drivers/AwsS3Driver"));
|
|
9
|
+
const DbResource_1 = require("../db/resource/DbResource");
|
|
10
|
+
const DBType_1 = require("../db/resource/types/DBType");
|
|
11
|
+
const short_unique_id_1 = tslib_1.__importDefault(require("short-unique-id"));
|
|
12
|
+
const uid = new short_unique_id_1.default();
|
|
13
|
+
class DBDriverResolver {
|
|
10
14
|
static getInstance() {
|
|
11
15
|
if (!this.instance) {
|
|
12
16
|
this.instance = new DBDriverResolver();
|
|
@@ -43,24 +47,21 @@ export class DBDriverResolver {
|
|
|
43
47
|
return this.driverMap.get(connectionId);
|
|
44
48
|
}
|
|
45
49
|
createDriver(setting) {
|
|
46
|
-
const conRes = new DbConnection({
|
|
47
|
-
...setting,
|
|
48
|
-
id: uid.randomUUID(8),
|
|
49
|
-
});
|
|
50
|
+
const conRes = new DbResource_1.DbConnection(Object.assign(Object.assign({}, setting), { id: uid.randomUUID(8) }));
|
|
50
51
|
let driver = undefined;
|
|
51
52
|
switch (conRes.dbType) {
|
|
52
|
-
case DBType.MySQL:
|
|
53
|
-
driver = new
|
|
53
|
+
case DBType_1.DBType.MySQL:
|
|
54
|
+
driver = new MySQLDriver_1.default(conRes);
|
|
54
55
|
break;
|
|
55
|
-
case DBType.Postgres:
|
|
56
|
-
driver = new
|
|
56
|
+
case DBType_1.DBType.Postgres:
|
|
57
|
+
driver = new PostgresDriver_1.default(conRes);
|
|
57
58
|
break;
|
|
58
|
-
case DBType.Redis:
|
|
59
|
-
driver = new
|
|
59
|
+
case DBType_1.DBType.Redis:
|
|
60
|
+
driver = new RedisDriver_1.default(conRes);
|
|
60
61
|
break;
|
|
61
|
-
case DBType.AwsS3:
|
|
62
|
-
case DBType.Minio:
|
|
63
|
-
driver = new
|
|
62
|
+
case DBType_1.DBType.AwsS3:
|
|
63
|
+
case DBType_1.DBType.Minio:
|
|
64
|
+
driver = new AwsS3Driver_1.default(conRes);
|
|
64
65
|
break;
|
|
65
66
|
default:
|
|
66
67
|
throw new Error(`${conRes.dbType} is not supported.`);
|
|
@@ -69,17 +70,20 @@ export class DBDriverResolver {
|
|
|
69
70
|
this.driverMap.set(conRes.id, driver);
|
|
70
71
|
return driver;
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
closeAll() {
|
|
74
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
let errorMessage = '';
|
|
76
|
+
this.driverMap.forEach((driver) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
try {
|
|
78
|
+
yield driver.disconnect();
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
errorMessage += e.message + '\n';
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
return errorMessage;
|
|
81
85
|
});
|
|
82
|
-
return errorMessage;
|
|
83
86
|
}
|
|
84
87
|
}
|
|
88
|
+
exports.DBDriverResolver = DBDriverResolver;
|
|
85
89
|
//# sourceMappingURL=DBDriverResolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBDriverResolver.js","sourceRoot":"","sources":["../../../src/service/DBDriverResolver.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"DBDriverResolver.js","sourceRoot":"","sources":["../../../src/service/DBDriverResolver.ts"],"names":[],"mappings":";;;;AAEA,oFAAoD;AACpD,oFAAoD;AACpD,0FAA0D;AAC1D,oFAAoD;AAGpD,0DAA4E;AAC5E,wDAAqD;AACrD,8EAA4C;AAE5C,MAAM,GAAG,GAAG,IAAI,yBAAa,EAAE,CAAC;AAEhC,MAAa,gBAAgB;IAO3B,MAAM,CAAC,WAAW;QAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,EAAE,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD;QACE,IAAI,CAAC,cAAc,GAAG,IAAI,KAAK,EAAgB,CAAC;QAChD,IAAI,CAAC,qBAAqB,GAAG,IAAI,KAAK,EAAqB,CAAC;QAC5D,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAsB,CAAC;IACjD,CAAC;IAED,oBAAoB,CAAC,OAA0B;QAC7C,IAAI,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,I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ClB,MAAM,GAAG,IAAI,wBAAc,CAAC,MAAM,CAAC,CAAC;gBACpC,MAAM;YACR,KAAK,eAAM,CAAC,KAAK;gBACf,MAAM,GAAG,IAAI,qBAAW,CAAC,MAAM,CAAC,CAAC;gBACjC,MAAM;YAIR,KAAK,eAAM,CAAC,KAAK,CAAC;YAClB,KAAK,eAAM,CAAC,KAAK;gBACf,MAAM,GAAG,IAAI,qBAAW,CAAC,MAAM,CAAC,CAAC;gBACjC,MAAM;YAOR;gBACE,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,oBAAoB,CAAC,CAAC;SACzD;QACD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEK,QAAQ;;YACZ,IAAI,YAAY,GAAG,EAAE,CAAC;YACtB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAO,MAAkB,EAAE,EAAE;gBAClD,IAAI;oBACF,MAAM,MAAM,CAAC,UAAU,EAAE,CAAC;iBAC3B;gBAAC,OAAO,CAAC,EAAE;oBACV,YAAY,IAAI,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;iBAClC;YACH,CAAC,CAAA,CAAC,CAAC;YACH,OAAO,YAAY,CAAC;QACtB,CAAC;KAAA;CACF;AAxGD,4CAwGC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SQLService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const mariadb_1 = tslib_1.__importDefault(require("node-sql-parser/build/mariadb"));
|
|
6
|
+
class SQLService {
|
|
3
7
|
static validate(sql, schema) {
|
|
4
8
|
const missingColumns = [];
|
|
5
9
|
try {
|
|
6
|
-
const parser = new
|
|
10
|
+
const parser = new mariadb_1.default.Parser();
|
|
7
11
|
const { tableList, columnList, ast } = parser.parse(sql, {
|
|
8
12
|
database: 'MariaDB',
|
|
9
13
|
});
|
|
@@ -60,4 +64,5 @@ export class SQLService {
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
}
|
|
67
|
+
exports.SQLService = SQLService;
|
|
63
68
|
//# sourceMappingURL=SQLService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SQLService.js","sourceRoot":"","sources":["../../../src/service/SQLService.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"SQLService.js","sourceRoot":"","sources":["../../../src/service/SQLService.ts"],"names":[],"mappings":";;;;AAAA,oFAAkE;AAUlE,MAAa,UAAU;IACd,MAAM,CAAC,QAAQ,CAAC,GAAW,EAAE,MAAgB;QAClD,MAAM,cAAc,GAA+B,EAAE,CAAC;QACtD,IAAI;YACF,MAAM,MAAM,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE,CAAC;YACnC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;gBACvD,QAAQ,EAAE,SAAS;aACpB,CAAC,CAAC;YACH,MAAM,IAAI,GAAI,GAAkB,CAAC,IAAI,CAAC;YAOtC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAmB,CAAC;YAC5C,MAAM,iBAAiB,GAAG,EAAE,CAAC;YAC7B,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACtB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;gBAC5C,IAAI,CAAC,EAAE;oBACL,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAClB,MAAM,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBA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iBACF;YACH,CAAC,CAAC,CAAC;YACH,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;aAClC;YACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;SAC3D;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;SAC3D;IACH,CAAC;CAGF;AApED,gCAoEC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DBAccessService"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./request"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./response"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DBAccessService"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./SQLService"), exports);
|
|
6
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/service/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,oDAA0B;AAC1B,qDAA2B;AAC3B,4DAAkC;AAClC,uDAA6B"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedisCommandType = void 0;
|
|
4
|
+
var RedisCommandType;
|
|
2
5
|
(function (RedisCommandType) {
|
|
3
6
|
RedisCommandType["Dbsize"] = "dbsize";
|
|
4
7
|
RedisCommandType["Flushall"] = "Flushall";
|
|
@@ -7,5 +10,5 @@ export var RedisCommandType;
|
|
|
7
10
|
RedisCommandType["Info"] = "info";
|
|
8
11
|
RedisCommandType["Scan"] = "Scan";
|
|
9
12
|
RedisCommandType["SetValue"] = "SetValue";
|
|
10
|
-
})(RedisCommandType || (RedisCommandType = {}));
|
|
13
|
+
})(RedisCommandType = exports.RedisCommandType || (exports.RedisCommandType = {}));
|
|
11
14
|
//# sourceMappingURL=RedisRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedisRequest.js","sourceRoot":"","sources":["../../../../src/service/request/RedisRequest.ts"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"RedisRequest.js","sourceRoot":"","sources":["../../../../src/service/request/RedisRequest.ts"],"names":[],"mappings":";;;AAWA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,yCAAqB,CAAA;AACvB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.S3CommandType = void 0;
|
|
4
|
+
var S3CommandType;
|
|
2
5
|
(function (S3CommandType) {
|
|
3
6
|
S3CommandType["PutObject"] = "PutObject";
|
|
4
7
|
S3CommandType["Search"] = "Search";
|
|
5
8
|
S3CommandType["AbortSearch"] = "AbortSearch";
|
|
6
9
|
S3CommandType["listObject"] = "listObject";
|
|
7
10
|
S3CommandType["getObject"] = "getObject";
|
|
8
|
-
})(S3CommandType || (S3CommandType = {}));
|
|
11
|
+
})(S3CommandType = exports.S3CommandType || (exports.S3CommandType = {}));
|
|
9
12
|
//# sourceMappingURL=S3Request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"S3Request.js","sourceRoot":"","sources":["../../../../src/service/request/S3Request.ts"],"names":[],"mappings":"AAQA,
|
|
1
|
+
{"version":3,"file":"S3Request.js","sourceRoot":"","sources":["../../../../src/service/request/S3Request.ts"],"names":[],"mappings":";;;AAQA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;IAC3B,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;AACzB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneralDBCommandType = void 0;
|
|
4
|
+
var GeneralDBCommandType;
|
|
2
5
|
(function (GeneralDBCommandType) {
|
|
3
6
|
GeneralDBCommandType["CountTables"] = "CountTables";
|
|
4
7
|
GeneralDBCommandType["ViewData"] = "ViewData";
|
|
@@ -12,5 +15,5 @@ export var GeneralDBCommandType;
|
|
|
12
15
|
GeneralDBCommandType["Disconnect"] = "Disconnect";
|
|
13
16
|
GeneralDBCommandType["DisconnectAll"] = "DisconnectAll";
|
|
14
17
|
GeneralDBCommandType["BatchInsertFromArray"] = "BatchInsertFromArray";
|
|
15
|
-
})(GeneralDBCommandType || (GeneralDBCommandType = {}));
|
|
18
|
+
})(GeneralDBCommandType = exports.GeneralDBCommandType || (exports.GeneralDBCommandType = {}));
|
|
16
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/request/index.ts"],"names":[],"mappings":"AA0EA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/request/index.ts"],"names":[],"mappings":";;;AA0EA,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC9B,mDAA2B,CAAA;IAC3B,6CAAqB,CAAA;IACrB,uDAA+B,CAAA;IAC/B,qEAA6C,CAAA;IAC7C,iDAAyB,CAAA;IACzB,qEAA6C,CAAA;IAC7C,2EAAmD,CAAA;IACnD,uEAA+C,CAAA;IAC/C,2CAAmB,CAAA;IACnB,iDAAyB,CAAA;IACzB,uDAA+B,CAAA;IAC/B,qEAA6C,CAAA;AAC/C,CAAC,EAbW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAa/B"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeneralResponse = void 0;
|
|
4
|
+
class GeneralResponse {
|
|
2
5
|
constructor(ok = true, message = '') {
|
|
3
6
|
this.ok = true;
|
|
4
7
|
this.message = '';
|
|
@@ -6,4 +9,5 @@ export class GeneralResponse {
|
|
|
6
9
|
this.message = message;
|
|
7
10
|
}
|
|
8
11
|
}
|
|
12
|
+
exports.GeneralResponse = GeneralResponse;
|
|
9
13
|
//# sourceMappingURL=GeneralResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralResponse.js","sourceRoot":"","sources":["../../../../src/service/response/GeneralResponse.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"GeneralResponse.js","sourceRoot":"","sources":["../../../../src/service/response/GeneralResponse.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;IAK1B,YAAY,EAAE,GAAG,IAAI,EAAE,OAAO,GAAG,EAAE;QAJ5B,OAAE,GAAG,IAAI,CAAC;QACV,YAAO,GAAG,EAAE,CAAC;QAIlB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AATD,0CASC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./GeneralDBResponse"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./GeneralResponse"), exports);
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/response/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/response/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,4DAAkC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const short_unique_id_1 = tslib_1.__importDefault(require("short-unique-id"));
|
|
5
|
+
const GeneralReply_1 = tslib_1.__importDefault(require("./GeneralReply"));
|
|
6
|
+
const uid = new short_unique_id_1.default();
|
|
7
|
+
class FileExportReply extends GeneralReply_1.default {
|
|
5
8
|
constructor(export_type, target_path) {
|
|
6
9
|
super(true, '');
|
|
7
10
|
this.ok = true;
|
|
@@ -11,4 +14,5 @@ export default class FileExportReply extends GeneralReply {
|
|
|
11
14
|
this.target_path = target_path;
|
|
12
15
|
}
|
|
13
16
|
}
|
|
17
|
+
exports.default = FileExportReply;
|
|
14
18
|
//# sourceMappingURL=FileExportReply.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExportReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/FileExportReply.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FileExportReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/FileExportReply.ts"],"names":[],"mappings":";;;AAAA,8EAA4C;AAC5C,0EAA0C;AAG1C,MAAM,GAAG,GAAG,IAAI,yBAAa,EAAE,CAAC;AAEhC,MAAqB,eAAgB,SAAQ,sBAAY;IAOvD,YAAY,WAA2B,EAAE,WAAmB;QAC1D,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QALX,OAAE,GAAG,IAAI,CAAC;QACV,YAAO,GAAG,EAAE,CAAC;QAKlB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AAbD,kCAaC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const path = tslib_1.__importStar(require("path"));
|
|
5
|
+
const GeneralReply_1 = tslib_1.__importDefault(require("./GeneralReply"));
|
|
6
|
+
class FileProcessResult extends GeneralReply_1.default {
|
|
4
7
|
constructor(ok, message, options) {
|
|
5
8
|
super(ok, message);
|
|
6
9
|
this.extension = '';
|
|
@@ -22,4 +25,5 @@ export default class FileProcessResult extends GeneralReply {
|
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
}
|
|
28
|
+
exports.default = FileProcessResult;
|
|
25
29
|
//# sourceMappingURL=FileProcessResult.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileProcessResult.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/FileProcessResult.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FileProcessResult.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/FileProcessResult.ts"],"names":[],"mappings":";;;AAAA,mDAA6B;AAC7B,0EAA0C;AAE1C,MAAqB,iBAAkB,SAAQ,sBAAY;IAOzD,YAAY,EAAW,EAAE,OAAe,EAAE,OAIzC;QACC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAXd,cAAS,GAAG,EAAE,CAAC;QAGf,cAAS,GAAG,EAAE,CAAC;QASpB,IAAI,OAAO,CAAC,SAAS,EAAE;YACrB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;YACnC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;SACnD;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;YACjC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SAClD;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,GAAG,IAAI,CAAC,EAAE;YACZ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;SACpD;QACD,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SAC1B;IACH,CAAC;CACF;AA7BD,oCA6BC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class GeneralReply {
|
|
2
4
|
constructor(ok = true, message = '') {
|
|
3
5
|
this.ok = true;
|
|
4
6
|
this.message = '';
|
|
@@ -6,4 +8,5 @@ export default class GeneralReply {
|
|
|
6
8
|
this.message = message;
|
|
7
9
|
}
|
|
8
10
|
}
|
|
11
|
+
exports.default = GeneralReply;
|
|
9
12
|
//# sourceMappingURL=GeneralReply.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/GeneralReply.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"GeneralReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/GeneralReply.ts"],"names":[],"mappings":";;AAAA,MAAqB,YAAY;IAK/B,YAAY,EAAE,GAAG,IAAI,EAAE,OAAO,GAAG,EAAE;QAJ5B,OAAE,GAAG,IAAI,CAAC;QACV,YAAO,GAAG,EAAE,CAAC;QAIlB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AATD,+BASC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const short_unique_id_1 = tslib_1.__importDefault(require("short-unique-id"));
|
|
5
|
+
const GeneralReply_1 = tslib_1.__importDefault(require("./GeneralReply"));
|
|
6
|
+
const uid = new short_unique_id_1.default();
|
|
7
|
+
class OutputReply extends GeneralReply_1.default {
|
|
5
8
|
constructor(output_type, label, content) {
|
|
6
9
|
super(true, '');
|
|
7
10
|
this.output_type = output_type;
|
|
@@ -10,4 +13,5 @@ export default class OutputReply extends GeneralReply {
|
|
|
10
13
|
this.content = content;
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
exports.default = OutputReply;
|
|
13
17
|
//# sourceMappingURL=OutputReply.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/OutputReply.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"OutputReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/OutputReply.ts"],"names":[],"mappings":";;;AAAA,8EAA4C;AAE5C,0EAA0C;AAE1C,MAAM,GAAG,GAAG,IAAI,yBAAa,EAAE,CAAC;AAEhC,MAAqB,WAAY,SAAQ,sBAAY;IAMnD,YAAY,WAAuB,EAAE,KAAa,EAAE,OAAY;QAC9D,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAChB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAbD,8BAaC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const GeneralReply_1 = tslib_1.__importDefault(require("./GeneralReply"));
|
|
5
|
+
class ProgressReply extends GeneralReply_1.default {
|
|
3
6
|
constructor(source, message, progress, options) {
|
|
4
7
|
super(true, message);
|
|
5
8
|
this.source = source;
|
|
@@ -7,4 +10,5 @@ export default class ProgressReply extends GeneralReply {
|
|
|
7
10
|
this.options = options;
|
|
8
11
|
}
|
|
9
12
|
}
|
|
13
|
+
exports.default = ProgressReply;
|
|
10
14
|
//# sourceMappingURL=ProgressReply.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/ProgressReply.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ProgressReply.js","sourceRoot":"","sources":["../../../../../src/service/response/reply/ProgressReply.ts"],"names":[],"mappings":";;;AAAA,0EAA0C;AAE1C,MAAqB,aAAc,SAAQ,sBAAY;IAKrD,YAAY,MAAc,EAAE,OAAe,EAAE,QAAgB,EAAE,OAAa;QAC1E,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAXD,gCAWC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileExportType = void 0;
|
|
4
|
+
var FileExportType;
|
|
2
5
|
(function (FileExportType) {
|
|
3
6
|
FileExportType["Excel"] = "Excel";
|
|
4
|
-
})(FileExportType || (FileExportType = {}));
|
|
7
|
+
})(FileExportType = exports.FileExportType || (exports.FileExportType = {}));
|
|
5
8
|
;
|
|
6
9
|
//# sourceMappingURL=FileExportType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExportType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/FileExportType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FileExportType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/FileExportType.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,iCAAe,CAAA;AACjB,CAAC,EAFW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAEzB;AAAA,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutputType = void 0;
|
|
4
|
+
var OutputType;
|
|
2
5
|
(function (OutputType) {
|
|
3
6
|
OutputType["Log"] = "output.Log";
|
|
4
7
|
OutputType["SqlHistory"] = "output.SqlHistory";
|
|
@@ -9,5 +12,5 @@ export var OutputType;
|
|
|
9
12
|
OutputType["S3ContantFilePath"] = "output.S3ContantFilePath";
|
|
10
13
|
OutputType["IndexedDBKeyWithValue"] = "output.IndexedDBKeyWithValue";
|
|
11
14
|
OutputType["RestResponse"] = "output.RestResponse";
|
|
12
|
-
})(OutputType || (OutputType = {}));
|
|
15
|
+
})(OutputType = exports.OutputType || (exports.OutputType = {}));
|
|
13
16
|
//# sourceMappingURL=OutputType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/OutputType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"OutputType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/OutputType.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAUX;AAVD,WAAY,UAAU;IACpB,gCAAkB,CAAA;IAClB,8CAAgC,CAAA;IAChC,wDAA0C,CAAA;IAC1C,kEAAoD,CAAA;IACpD,4DAA8C,CAAA;IAC9C,oEAAsD,CAAA;IACtD,4DAA8C,CAAA;IAC9C,oEAAsD,CAAA;IACtD,kDAAoC,CAAA;AACtC,CAAC,EAVW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAUrB"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReplyEventType = void 0;
|
|
4
|
+
var ReplyEventType;
|
|
2
5
|
(function (ReplyEventType) {
|
|
3
6
|
ReplyEventType["REPLY_RESOURCE_LIST"] = "reply.resource.list";
|
|
4
7
|
ReplyEventType["REPLY_SQL_OUTPUT"] = "reply.sql.output";
|
|
@@ -8,6 +11,6 @@ export var ReplyEventType;
|
|
|
8
11
|
ReplyEventType["REPLY_FILE_OUTPUT"] = "reply.file.output";
|
|
9
12
|
ReplyEventType["REPLY_AUTOMATION_CREATE"] = "reply.automation.create";
|
|
10
13
|
ReplyEventType["REPLY_AUTOMATION_DESTROY"] = "reply.automation.destroy";
|
|
11
|
-
})(ReplyEventType || (ReplyEventType = {}));
|
|
14
|
+
})(ReplyEventType = exports.ReplyEventType || (exports.ReplyEventType = {}));
|
|
12
15
|
;
|
|
13
16
|
//# sourceMappingURL=ReplyEventType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplyEventType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/ReplyEventType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ReplyEventType.js","sourceRoot":"","sources":["../../../../../../src/service/response/reply/types/ReplyEventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,6DAA2C,CAAA;IAC3C,uDAAqC,CAAA;IACrC,+DAA6C,CAAA;IAC7C,iEAA+C,CAAA;IAC/C,4DAA0C,CAAA;IAC1C,yDAAuC,CAAA;IACvC,qEAAmD,CAAA;IACnD,uEAAqD,CAAA;AACvD,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAAA,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateModifiedType = void 0;
|
|
4
|
+
var DateModifiedType;
|
|
2
5
|
(function (DateModifiedType) {
|
|
3
6
|
DateModifiedType["None"] = "-";
|
|
4
7
|
DateModifiedType["Today"] = "Today";
|
|
@@ -9,7 +12,7 @@ export var DateModifiedType;
|
|
|
9
12
|
DateModifiedType["LastMonth"] = "Last month";
|
|
10
13
|
DateModifiedType["ThisYear"] = "This year";
|
|
11
14
|
DateModifiedType["LastYear"] = "Last year";
|
|
12
|
-
})(DateModifiedType || (DateModifiedType = {}));
|
|
15
|
+
})(DateModifiedType = exports.DateModifiedType || (exports.DateModifiedType = {}));
|
|
13
16
|
const DAY1 = 1000 * 60 * 60 * 24;
|
|
14
17
|
const cutoffHours = (dt) => {
|
|
15
18
|
const r = new Date();
|
|
@@ -61,5 +64,5 @@ const cutoffHours = (dt) => {
|
|
|
61
64
|
return true;
|
|
62
65
|
}
|
|
63
66
|
DateModifiedType.isValid = isValid;
|
|
64
|
-
})(DateModifiedType || (DateModifiedType = {}));
|
|
67
|
+
})(DateModifiedType = exports.DateModifiedType || (exports.DateModifiedType = {}));
|
|
65
68
|
//# sourceMappingURL=DateModifiedType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateModifiedType.js","sourceRoot":"","sources":["../../../src/types/DateModifiedType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"DateModifiedType.js","sourceRoot":"","sources":["../../../src/types/DateModifiedType.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,8BAAU,CAAA;IACV,mCAAe,CAAA;IACf,2CAAuB,CAAA;IACvB,0CAAsB,CAAA;IACtB,0CAAsB,CAAA;IACtB,4CAAwB,CAAA;IACxB,4CAAwB,CAAA;IACxB,0CAAsB,CAAA;IACtB,0CAAsB,CAAA;AACxB,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AACD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACjC,MAAM,WAAW,GAAG,CAAC,EAAQ,EAAQ,EAAE;IACrC,MAAM,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;IACrB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACd,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAChB,CAAC,C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,WAAW,EAAE,CAAC;SACrD;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAnDe,wBAAO,UAmDtB,CAAA;AACH,CAAC,EArDgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAqDhC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileKindType = void 0;
|
|
4
|
+
var FileKindType;
|
|
2
5
|
(function (FileKindType) {
|
|
3
6
|
FileKindType["All"] = "All";
|
|
4
7
|
FileKindType["Image"] = "Image";
|
|
@@ -7,7 +10,7 @@ export var FileKindType;
|
|
|
7
10
|
FileKindType["Document"] = "Document";
|
|
8
11
|
FileKindType["Program"] = "Program";
|
|
9
12
|
FileKindType["Text"] = "Text";
|
|
10
|
-
})(FileKindType || (FileKindType = {}));
|
|
13
|
+
})(FileKindType = exports.FileKindType || (exports.FileKindType = {}));
|
|
11
14
|
(function (FileKindType) {
|
|
12
15
|
function isValid(type, file_name) {
|
|
13
16
|
if (FileKindType.All === type) {
|
|
@@ -68,5 +71,5 @@ export var FileKindType;
|
|
|
68
71
|
return false;
|
|
69
72
|
}
|
|
70
73
|
FileKindType.isValid = isValid;
|
|
71
|
-
})(FileKindType || (FileKindType = {}));
|
|
74
|
+
})(FileKindType = exports.FileKindType || (exports.FileKindType = {}));
|
|
72
75
|
//# sourceMappingURL=FileKindType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileKindType.js","sourceRoot":"","sources":["../../../src/types/FileKindType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"FileKindType.js","sourceRoot":"","sources":["../../../src/types/FileKindType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,qCAAqB,CAAA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AAK,MAAM;oBACd,GAAG,KAAK,MAAM,CACf,CAAC;YACJ,KAAK,YAAY,CAAC,IAAI;gBACpB,IAAI,GAAG,KAAK,KAAK,IAAI,GAAG,KAAK,MAAM,EAAE;oBACnC,OAAO,IAAI,CAAC;iBACb;gBACD,OAAO,CACL,GAAG,KAAK,IAAI;oBACZ,GAAG,KAAK,IAAI;oBACZ,GAAG,KAAK,IAAI;oBACZ,GAAG,KAAK,KAAK;oBACb,GAAG,KAAK,MAAM;oBACd,GAAG,KAAK,MAAM;oBACd,GAAG,KAAK,KAAK;oBACb,GAAG,KAAK,KAAK;oBACb,GAAG,KAAK,GAAG,CACZ,CAAC;YACJ,KAAK,YAAY,CAAC,OAAO;gBACvB,OAAO,CACL,GAAG,KAAK,IAAI;oBACZ,GAAG,KAAK,IAAI;oBACZ,GAAG,KAAK,IAAI;oBACZ,GAAG,KAAK,KAAK;oBACb,GAAG,KAAK,MAAM;oBACd,GAAG,KAAK,MAAM;oBACd,GAAG,KAAK,KAAK;oBACb,GAAG,KAAK,KAAK;oBACb,GAAG,KAAK,GAAG,CACZ,CAAC;SACL;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAnEe,oBAAO,UAmEtB,CAAA;AACH,CAAC,EArEgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAqE5B"}
|
package/built/src/types/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DateModifiedType"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./FileKindType"), exports);
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,yDAA+B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l-v-yonsama/multi-platform-database-drivers",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"description": "multi-platform database drivers in TypeScript.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">= 18.12 <19"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dayjs": "^1.11.7",
|
|
50
50
|
"dt-sql-parser": "^4.0.0-beta.3.2",
|
|
51
51
|
"enum-values": "^1.2.1",
|
|
52
|
-
"get-port": "^
|
|
52
|
+
"get-port-please": "^3.0.1",
|
|
53
53
|
"ioredis": "^5.3.1",
|
|
54
54
|
"jconv": "^0.1.5",
|
|
55
55
|
"list-it": "^1.3.10",
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"node": "18.12.1"
|
|
68
68
|
},
|
|
69
69
|
"main": "built/src/index.js",
|
|
70
|
-
"type": "module",
|
|
71
70
|
"types": "built/src/index.d.ts",
|
|
72
71
|
"files": [
|
|
73
72
|
"built/src"
|