storemw-core-api 1.0.161 → 1.0.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/index.d.ts +1 -0
- package/dist/controllers/index.js +4 -2
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/scheduler/schedulerSqlController.d.ts +5 -0
- package/dist/controllers/scheduler/schedulerSqlController.js +77 -0
- package/dist/controllers/scheduler/schedulerSqlController.js.map +1 -0
- package/dist/features/index.d.ts +3 -0
- package/dist/features/index.js +5 -1
- package/dist/features/index.js.map +1 -1
- package/dist/features/scheduler_sql/schedulerSqlRegister.d.ts +6 -0
- package/dist/features/scheduler_sql/schedulerSqlRegister.js +11 -0
- package/dist/features/scheduler_sql/schedulerSqlRegister.js.map +1 -0
- package/dist/features/scheduler_sql/schedulerSqlRegistry.d.ts +3 -0
- package/dist/features/scheduler_sql/schedulerSqlRegistry.js +50 -0
- package/dist/features/scheduler_sql/schedulerSqlRegistry.js.map +1 -0
- package/dist/features/scheduler_sql/schedulerSqlType.d.ts +31 -0
- package/dist/features/scheduler_sql/schedulerSqlType.js +3 -0
- package/dist/features/scheduler_sql/schedulerSqlType.js.map +1 -0
- package/dist/middlewares/route/index.d.ts +1 -1
- package/dist/middlewares/route/index.js +2 -1
- package/dist/middlewares/route/index.js.map +1 -1
- package/dist/middlewares/route/validateScheduler.d.ts +1 -0
- package/dist/middlewares/route/validateScheduler.js +6 -1
- package/dist/middlewares/route/validateScheduler.js.map +1 -1
- package/dist/routes/scheduler/schedulerSqlRoutes.d.ts +2 -0
- package/dist/routes/scheduler/schedulerSqlRoutes.js +11 -0
- package/dist/routes/scheduler/schedulerSqlRoutes.js.map +1 -0
- package/dist/routes/scheduler/schedulersRoutes.js +3 -0
- package/dist/routes/scheduler/schedulersRoutes.js.map +1 -1
- package/dist/schema/payload/index.d.ts +2 -0
- package/dist/schema/payload/index.js +3 -1
- package/dist/schema/payload/index.js.map +1 -1
- package/dist/schema/payload/scheduler/schemaSchedulerSql.d.ts +69 -0
- package/dist/schema/payload/scheduler/schemaSchedulerSql.js +19 -0
- package/dist/schema/payload/scheduler/schemaSchedulerSql.js.map +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +3 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/scheduler/SchedulerSqlService.d.ts +24 -0
- package/dist/services/scheduler/SchedulerSqlService.js +170 -0
- package/dist/services/scheduler/SchedulerSqlService.js.map +1 -0
- package/dist/services/user/WorkerService.js +13 -13
- package/dist/services/user/WorkerService.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,4 +21,5 @@ export { createItem, updateItem, getItem, listItems, deleteItems, getItemDataTyp
|
|
|
21
21
|
export { listInjectionFields, getInjectionField, replaceInjectionFields, createInjectionField, deleteInjectionFields } from '../controllers/injection_field/injectionFieldController';
|
|
22
22
|
export { createSchedulerLog, getSchedulerLog, listSchedulerLogs, deleteSchedulerLogs } from '../controllers/scheduler/schedulerLogController';
|
|
23
23
|
export { createSchedulerRequest, executeSchedulerRequest, getSchedulerRequest, listSchedulerRequests, deleteSchedulerRequests } from '../controllers/scheduler/schedulerRequestController';
|
|
24
|
+
export { executeSchedulerSql } from '../controllers/scheduler/schedulerSqlController';
|
|
24
25
|
export { validateAccessKeyUtil, getAccountOwnerAccessKeyUtil } from '../controllers/utils/accessKeyUtilController';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.listUserBranches = exports.getUserBranch = exports.updateUserBranch = exports.createUserBranch = exports.deleteUserMe = exports.changePasswordUserMe = exports.updateUserMe = exports.getUserMe = exports.getUserDataTypes = exports.deleteUsers = exports.listUsers = exports.getUser = exports.updateUser = exports.createUser = exports.updateBusiness = exports.deleteBusinesses = exports.createBusiness = exports.listBusinesses = exports.getBusiness = exports.cancelAccountSubscribe = exports.createAccountSubscribe = exports.listAccountSubscribes = exports.getAccountSubscribe = exports.deleteSubscribePlans = exports.updateSubscribePlan = exports.createSubcribePlan = exports.listSubscribePlans = exports.getSubscribePlan = exports.updateAccount = exports.deleteAccounts = exports.createAccount = exports.listAccounts = exports.getAccount = exports.performResetPassword = exports.validateResetPasswordCode = exports.requestResetPassword = exports.getOneTimeCode = exports.listOneTimeCodes = exports.assignAccessControlRolesToUsers = exports.deleteAccessControlRoles = exports.listAccessControlRoles = exports.getAccessControlRole = exports.updateAccessControlRole = exports.createAccessControlRole = exports.listAccessControlPolicyOptions = exports.revokeAccessKeys = exports.getAccessKey = exports.listAccessKeys = exports.createAccessKey = exports.getAuthToken = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.getAccountOwnerAccessKeyUtil = void 0;
|
|
4
|
+
exports.executeSchedulerSql = exports.deleteSchedulerRequests = exports.listSchedulerRequests = exports.getSchedulerRequest = exports.executeSchedulerRequest = exports.createSchedulerRequest = exports.deleteSchedulerLogs = exports.listSchedulerLogs = exports.getSchedulerLog = exports.createSchedulerLog = exports.deleteInjectionFields = exports.createInjectionField = exports.replaceInjectionFields = exports.getInjectionField = exports.listInjectionFields = exports.getItemDataTypes = exports.deleteItems = exports.listItems = exports.getItem = exports.updateItem = exports.createItem = exports.deleteFiles = exports.listFiles = exports.getFile = exports.uploadFiles = exports.getLocationDataTypes = exports.deleteLocations = exports.listLocations = exports.getLocation = exports.updateLocation = exports.createLocation = exports.getRegionDataTypes = exports.deleteRegions = exports.listRegions = exports.getRegion = exports.updateRegion = exports.createRegion = exports.deleteRepositories = exports.listRepositories = exports.getRepository = exports.updateRepository = exports.createRepository = exports.getDocumentDataTypes = exports.deleteDocuments = exports.listDocuments = exports.getDocument = exports.updateDocument = exports.createDocument = exports.getUserBranchDataTypes = exports.deleteUserBranches = void 0;
|
|
5
|
+
exports.getAccountOwnerAccessKeyUtil = exports.validateAccessKeyUtil = void 0;
|
|
6
6
|
var authController_1 = require("../controllers/auth/authController");
|
|
7
7
|
Object.defineProperty(exports, "getAuthToken", { enumerable: true, get: function () { return authController_1.getAuthToken; } });
|
|
8
8
|
var accessKeyController_1 = require("../controllers/access_key/accessKeyController");
|
|
@@ -125,6 +125,8 @@ Object.defineProperty(exports, "executeSchedulerRequest", { enumerable: true, ge
|
|
|
125
125
|
Object.defineProperty(exports, "getSchedulerRequest", { enumerable: true, get: function () { return schedulerRequestController_1.getSchedulerRequest; } });
|
|
126
126
|
Object.defineProperty(exports, "listSchedulerRequests", { enumerable: true, get: function () { return schedulerRequestController_1.listSchedulerRequests; } });
|
|
127
127
|
Object.defineProperty(exports, "deleteSchedulerRequests", { enumerable: true, get: function () { return schedulerRequestController_1.deleteSchedulerRequests; } });
|
|
128
|
+
var schedulerSqlController_1 = require("../controllers/scheduler/schedulerSqlController");
|
|
129
|
+
Object.defineProperty(exports, "executeSchedulerSql", { enumerable: true, get: function () { return schedulerSqlController_1.executeSchedulerSql; } });
|
|
128
130
|
// export { changePasswordUtil } from '../controllers/utils/changePasswordUtilController';
|
|
129
131
|
var accessKeyUtilController_1 = require("../controllers/utils/accessKeyUtilController");
|
|
130
132
|
Object.defineProperty(exports, "validateAccessKeyUtil", { enumerable: true, get: function () { return accessKeyUtilController_1.validateAccessKeyUtil; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":";;;;;AAAA,oEAAiE;AAAxD,8GAAA,YAAY,OAAA;AACrB,oFAA+H;AAAtH,sHAAA,eAAe,OAAA;AAAE,qHAAA,cAAc,OAAA;AAAE,mHAAA,YAAY,OAAA;AAAE,uHAAA,gBAAgB,OAAA;AACxE,gGAAsG;AAA7F,yIAAA,8BAA8B,OAAA;AACvC,wGAAoM;AAA3L,sIAAA,uBAAuB,OAAA;AAAE,sIAAA,uBAAuB,OAAA;AAAE,mIAAA,oBAAoB,OAAA;AAAE,qIAAA,sBAAsB,OAAA;AAAE,uIAAA,wBAAwB,OAAA;AACjI,wGAA2G;AAA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AE,0HAAA,oBAAoB,OAAA;AAC1G,oEAAiG;AAAxF,6GAAA,WAAW,OAAA;AAAE,yGAAA,OAAO,OAAA;AAAE,2GAAA,SAAS,OAAA;AAAE,6GAAA,WAAW,OAAA;AACrD,oEAA8H;AAArH,4GAAA,UAAU,OAAA;AAAE,4GAAA,UAAU,OAAA;AAAE,yGAAA,OAAO,OAAA;AAAE,2GAAA,SAAS,OAAA;AAAE,6GAAA,WAAW,OAAA;AAAE,kHAAA,gBAAgB,OAAA;AAClF,mGAAqL;AAA5K,+HAAA,mBAAmB,OAAA;AAAE,6HAAA,iBAAiB,OAAA;AAAE,kIAAA,sBAAsB,OAAA;AAAE,gIAAA,oBAAoB,OAAA;AAAE,iIAAA,qBAAqB,OAAA;AACpH,yFAA6I;AAApI,4HAAA,kBAAkB,OAAA;AAAE,yHAAA,eAAe,OAAA;AAAE,2HAAA,iBAAiB,OAAA;AAAE,6HAAA,mBAAmB,OAAA;AACpF,iGAA0L;AAAjL,oIAAA,sBAAsB,OAAA;AAAE,qIAAA,uBAAuB,OAAA;AAAE,iIAAA,mBAAmB,OAAA;AAAE,mIAAA,qBAAqB,OAAA;AAAE,qIAAA,uBAAuB,OAAA;AAC7H,yFAAqF;AAA5E,6HAAA,mBAAmB,OAAA;AAE5B,yFAAyF;AACzF,uFAAkH;AAAzG,gIAAA,qBAAqB,OAAA;AAAE,uIAAA,4BAA4B,OAAA","sourcesContent":["export { getAuthToken } from '@/controllers/auth/authController';\nexport { createAccessKey, listAccessKeys, getAccessKey, revokeAccessKeys } from '@/controllers/access_key/accessKeyController';\nexport { listAccessControlPolicyOptions } from '@/controllers/access_control/accessControlController';\nexport { createAccessControlRole, updateAccessControlRole, getAccessControlRole, listAccessControlRoles, deleteAccessControlRoles } from '@/controllers/access_control/accessControlRoleController';\nexport { assignAccessControlRolesToUsers } from '@/controllers/access_control/accessControlUserController';\nexport { listOneTimeCodes, getOneTimeCode } from '@/controllers/one_time_code/oneTimeCodeController';\nexport { requestResetPassword, validateResetPasswordCode, performResetPassword } from '@/controllers/reset_password/resetPasswordController';\nexport { getAccount, listAccounts, createAccount, deleteAccounts, updateAccount } from '@/controllers/account/accountController';\nexport { getSubscribePlan, listSubscribePlans, createSubcribePlan, updateSubscribePlan, deleteSubscribePlans } from '@/controllers/subscription/plan/subscribePlanController';\nexport { getAccountSubscribe, listAccountSubscribes, createAccountSubscribe, cancelAccountSubscribe } from '@/controllers/subscription/account/accountSubscribeController';\nexport { getBusiness, listBusinesses, createBusiness, deleteBusinesses, updateBusiness } from '@/controllers/business/businessController';\nexport { createUser, updateUser, getUser, listUsers, deleteUsers, getUserDataTypes } from '@/controllers/user/userController';\nexport { getUserMe, updateUserMe, changePasswordUserMe, deleteUserMe } from '@/controllers/user/userMeController';\nexport { createUserBranch, updateUserBranch, getUserBranch, listUserBranches, deleteUserBranches, getUserBranchDataTypes } from '@/controllers/branch/userBranchController';\nexport { createDocument, updateDocument, getDocument, listDocuments, deleteDocuments, getDocumentDataTypes } from '@/controllers/document/documentController';\nexport { createRepository, updateRepository, getRepository, listRepositories, deleteRepositories } from '@/controllers/repository/repositoryController';\nexport { createRegion, updateRegion, getRegion, listRegions, deleteRegions, getRegionDataTypes } from '@/controllers/region/regionController';\nexport { createLocation, updateLocation, getLocation, listLocations, deleteLocations, getLocationDataTypes } from '@/controllers/location/locationController';\nexport { uploadFiles, getFile, listFiles, deleteFiles } from '@/controllers/file/fileController';\nexport { createItem, updateItem, getItem, listItems, deleteItems, getItemDataTypes } from '@/controllers/item/itemController';\nexport { listInjectionFields, getInjectionField, replaceInjectionFields, createInjectionField, deleteInjectionFields } from '@/controllers/injection_field/injectionFieldController';\nexport { createSchedulerLog, getSchedulerLog, listSchedulerLogs, deleteSchedulerLogs } from '@/controllers/scheduler/schedulerLogController';\nexport { createSchedulerRequest, executeSchedulerRequest, getSchedulerRequest, listSchedulerRequests, deleteSchedulerRequests } from '@/controllers/scheduler/schedulerRequestController';\nexport { executeSchedulerSql } from '@/controllers/scheduler/schedulerSqlController';\n\n// export { changePasswordUtil } from '@/controllers/utils/changePasswordUtilController';\nexport { validateAccessKeyUtil, getAccountOwnerAccessKeyUtil } from '@/controllers/utils/accessKeyUtilController';"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Request, Response, NextFunction } from "express";
|
|
2
|
+
/** scheduler/log/:schedulerLogId : get scheduler log */
|
|
3
|
+
/** scheduler/sql/execute : execute scheduler sql */
|
|
4
|
+
export declare const executeSchedulerSql: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
5
|
+
/** scheduler/logs : list scheduler logs */
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeSchedulerSql = void 0;
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
const services_1 = require("../../services");
|
|
6
|
+
const payload_1 = require("../../schema/payload");
|
|
7
|
+
const getRootName = (toSingular) => {
|
|
8
|
+
let rootName = toSingular ? "scheduler_sql" : "scheduler_sqls";
|
|
9
|
+
return rootName;
|
|
10
|
+
};
|
|
11
|
+
/** scheduler/log/:schedulerLogId : get scheduler log */
|
|
12
|
+
// export const getSchedulerLog = async (req: Request, res: Response, next: NextFunction): Promise<any> => {
|
|
13
|
+
// try {
|
|
14
|
+
// const { schedulerLogId } = req.params;
|
|
15
|
+
// // const requestQuery = req.query as unknown as QueryList;
|
|
16
|
+
// const schedulerLogService = SchedulerLogService({
|
|
17
|
+
// ...getDefaultServiceProps(req),
|
|
18
|
+
// })
|
|
19
|
+
// const data = await schedulerLogService.getSchedulerLog({ id: Number(schedulerLogId) })
|
|
20
|
+
// return sendSuccess(res, data, "Retrieved successfully", getRootName(true));
|
|
21
|
+
// } catch (error: any) {
|
|
22
|
+
// next(error)
|
|
23
|
+
// }
|
|
24
|
+
// }
|
|
25
|
+
/** scheduler/sql/execute : execute scheduler sql */
|
|
26
|
+
const executeSchedulerSql = async (req, res, next) => {
|
|
27
|
+
try {
|
|
28
|
+
const schedulerSqlService = (0, services_1.SchedulerSqlService)({
|
|
29
|
+
...(0, utils_1.getDefaultServiceProps)(req),
|
|
30
|
+
});
|
|
31
|
+
let response = {};
|
|
32
|
+
let reqScope = req.body.scope;
|
|
33
|
+
let reqPayload = req.body.payload;
|
|
34
|
+
let request = payload_1.schemaSchedulerSqlExecutePayload.parse({
|
|
35
|
+
scope: {
|
|
36
|
+
target: reqScope.target,
|
|
37
|
+
action: reqScope.action
|
|
38
|
+
},
|
|
39
|
+
payload: {
|
|
40
|
+
schedulerSql: {
|
|
41
|
+
schedulerSqlKey: reqPayload?.scheduler_sql?.key ?? ""
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
let payload = {
|
|
46
|
+
schedulerSqlKey: request.payload.schedulerSql.schedulerSqlKey
|
|
47
|
+
};
|
|
48
|
+
response = {
|
|
49
|
+
[`${getRootName(true)}`]: await schedulerSqlService.executeSchedulerSql(payload)
|
|
50
|
+
};
|
|
51
|
+
(0, utils_1.sendSuccess)(res, response, `Schedule sql executed successfully`);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
next(error);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.executeSchedulerSql = executeSchedulerSql;
|
|
58
|
+
/** scheduler/logs : list scheduler logs */
|
|
59
|
+
// export const listSchedulerLogs = async (req: Request, res: Response, next: NextFunction): Promise<any> => {
|
|
60
|
+
// try {
|
|
61
|
+
// const requestQuery = req.query as unknown as QueryList;
|
|
62
|
+
// const schedulerLogService = SchedulerLogService({
|
|
63
|
+
// ...getDefaultServiceProps(req),
|
|
64
|
+
// })
|
|
65
|
+
// const { data, total } = await schedulerLogService.listSchedulerLoges({
|
|
66
|
+
// ...requestQuery
|
|
67
|
+
// });
|
|
68
|
+
// let response = {
|
|
69
|
+
// [`${getRootName(false)}`]: data,
|
|
70
|
+
// total,
|
|
71
|
+
// }
|
|
72
|
+
// return sendSuccess(res, response, "Retrieved successfully");
|
|
73
|
+
// } catch (error: any) {
|
|
74
|
+
// next(error)
|
|
75
|
+
// }
|
|
76
|
+
// };
|
|
77
|
+
//# sourceMappingURL=schedulerSqlController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerSqlController.js","sourceRoot":"","sources":["../../../src/controllers/scheduler/schedulerSqlController.ts"],"names":[],"mappings":";;;AAEA,mCAAqF;AAIrF,yCAA0E;AAC1E,8CAG0B;AAE1B,MAAM,WAAW,GAAG,CAAC,UAAmB,EAAE,EAAE;IAExC,IAAI,QAAQ,GAAG,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAE/D,OAAO,QAAQ,CAAA;AACnB,CAAC,CAAA;AAED,wDAAwD;AACxD,4GAA4G;AAC5G,YAAY;AAEZ,iDAAiD;AACjD,qEAAqE;AAErE,4DAA4D;AAC5D,8CAA8C;AAC9C,aAAa;AAEb,iGAAiG;AAEjG,sFAAsF;AAEtF,6BAA6B;AAC7B,sBAAsB;AACtB,QAAQ;AACR,IAAI;AAEJ,oDAAoD;AAC7C,MAAM,mBAAmB,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;IACxG,IAAI,CAAC;QAED,MAAM,mBAAmB,GAAG,IAAA,8BAAmB,EAAC;YAC5C,GAAG,IAAA,8BAAsB,EAAC,GAAG,CAAC;SACjC,CAAC,CAAA;QAEF,IAAI,QAAQ,GAAQ,EAAE,CAAA;QAEtB,IAAI,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAA;QAC7B,IAAI,UAAU,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAA;QAEjC,IAAI,OAAO,GAAG,0CAAgC,CAAC,KAAK,CAAC;YACjD,KAAK,EAAE;gBACH,MAAM,EAAE,QAAQ,CAAC,MAAM;gBACvB,MAAM,EAAE,QAAQ,CAAC,MAAM;aAC1B;YACD,OAAO,EAAE;gBACL,YAAY,EAAE;oBACV,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE;iBACxD;aACJ;SACJ,CAAC,CAAA;QAEF,IAAI,OAAO,GAA6B;YACpC,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe;SAChE,CAAA;QAED,QAAQ,GAAG;YACP,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,CAAC;SACnF,CAAA;QAED,IAAA,mBAAW,EAAC,GAAG,EAAE,QAAQ,EAAE,oCAAoC,CAAC,CAAA;IAEpE,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,CAAC,CAAA;IACf,CAAC;AACL,CAAC,CAAC;AArCW,QAAA,mBAAmB,uBAqC9B;AAEF,2CAA2C;AAC3C,8GAA8G;AAE9G,YAAY;AAEZ,kEAAkE;AAElE,4DAA4D;AAC5D,8CAA8C;AAC9C,aAAa;AAEb,iFAAiF;AACjF,8BAA8B;AAC9B,cAAc;AAEd,2BAA2B;AAC3B,+CAA+C;AAC/C,qBAAqB;AACrB,YAAY;AAEZ,uEAAuE;AAEvE,6BAA6B;AAC7B,sBAAsB;AACtB,QAAQ;AACR,KAAK","sourcesContent":["import { Request, Response, NextFunction } from \"express\";\n\nimport { getDefaultServiceProps, sendSuccess, sendError, HTTP_STATUS } from \"@/utils\"\n\nimport { QueryList } from \"@/schema/middleware/route\";\n\nimport { SchedulerSqlService, SchedulerSqlExecuteProps } from \"@/services\"\nimport {\n schemaSchedulerSqlExecutePayload,\n // schemaSchedulerLogDeletePayload,\n} from \"@/schema/payload\";\n\nconst getRootName = (toSingular: boolean) => {\n\n let rootName = toSingular ? \"scheduler_sql\" : \"scheduler_sqls\";\n\n return rootName\n}\n\n/** scheduler/log/:schedulerLogId : get scheduler log */\n// export const getSchedulerLog = async (req: Request, res: Response, next: NextFunction): Promise<any> => {\n// try {\n\n// const { schedulerLogId } = req.params;\n// // const requestQuery = req.query as unknown as QueryList;\n\n// const schedulerLogService = SchedulerLogService({\n// ...getDefaultServiceProps(req),\n// })\n\n// const data = await schedulerLogService.getSchedulerLog({ id: Number(schedulerLogId) })\n\n// return sendSuccess(res, data, \"Retrieved successfully\", getRootName(true));\n\n// } catch (error: any) {\n// next(error)\n// }\n// }\n\n/** scheduler/sql/execute : execute scheduler sql */\nexport const executeSchedulerSql = async (req: Request, res: Response, next: NextFunction): Promise<void> => {\n try {\n\n const schedulerSqlService = SchedulerSqlService({\n ...getDefaultServiceProps(req),\n })\n\n let response: any = {}\n\n let reqScope = req.body.scope\n let reqPayload = req.body.payload\n\n let request = schemaSchedulerSqlExecutePayload.parse({\n scope: {\n target: reqScope.target,\n action: reqScope.action\n },\n payload: {\n schedulerSql: {\n schedulerSqlKey: reqPayload?.scheduler_sql?.key ?? \"\"\n }\n }\n })\n\n let payload: SchedulerSqlExecuteProps = {\n schedulerSqlKey: request.payload.schedulerSql.schedulerSqlKey\n }\n\n response = {\n [`${getRootName(true)}`]: await schedulerSqlService.executeSchedulerSql(payload)\n }\n\n sendSuccess(res, response, `Schedule sql executed successfully`)\n\n } catch (error: any) {\n next(error)\n }\n};\n\n/** scheduler/logs : list scheduler logs */\n// export const listSchedulerLogs = async (req: Request, res: Response, next: NextFunction): Promise<any> => {\n\n// try {\n\n// const requestQuery = req.query as unknown as QueryList;\n\n// const schedulerLogService = SchedulerLogService({\n// ...getDefaultServiceProps(req),\n// })\n\n// const { data, total } = await schedulerLogService.listSchedulerLoges({\n// ...requestQuery\n// });\n\n// let response = {\n// [`${getRootName(false)}`]: data,\n// total,\n// }\n\n// return sendSuccess(res, response, \"Retrieved successfully\");\n\n// } catch (error: any) {\n// next(error)\n// }\n// };\n"]}
|
package/dist/features/index.d.ts
CHANGED
|
@@ -16,3 +16,6 @@ export { registerFileStorageHook } from "./file_storage/fileStorageRegister";
|
|
|
16
16
|
export { FeatureUserMeProps, FeatureUserMeRequestGetProps, FeatureUserMeRequestUpdateProps, FeatureUserMeSuccessUpdateProps, FeatureUserMeSuccessChangePasswordProps, FeatureUserMeSuccessRemoveProps } from './user_me/userMeType';
|
|
17
17
|
export { UserMeHook } from "./user_me/userMeRegistry";
|
|
18
18
|
export { registerUserMeHook } from "./user_me/userMeRegister";
|
|
19
|
+
export { FeatureSchedulerSqlProps, FeatureSchedulerSqlSetup, FeatureSchedulerSqlSetupItem, FeatureSchedulerSqlSetupItemConnection, FeatureSchedulerSqlSetupItemQuery, FeatureSchedulerSqlSuccessExecuteProps, FeatureSchedulerSqlFailExecuteProps } from './scheduler_sql/schedulerSqlType';
|
|
20
|
+
export { SchedulerSqlHook } from "./scheduler_sql/schedulerSqlRegistry";
|
|
21
|
+
export { registerSchedulerSqlHook } from "./scheduler_sql/schedulerSqlRegister";
|
package/dist/features/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerUserMeHook = exports.UserMeHook = exports.registerFileStorageHook = exports.FileStorageHook = exports.registerSmtpEmailHook = exports.SmtpEmailHook = exports.registerResetPasswordHook = exports.ResetPasswordHook = exports.registerAuthTokenHook = exports.AuthTokenHook = exports.registerCoreConfigHook = exports.CoreConfigHook = void 0;
|
|
3
|
+
exports.registerSchedulerSqlHook = exports.SchedulerSqlHook = exports.registerUserMeHook = exports.UserMeHook = exports.registerFileStorageHook = exports.FileStorageHook = exports.registerSmtpEmailHook = exports.SmtpEmailHook = exports.registerResetPasswordHook = exports.ResetPasswordHook = exports.registerAuthTokenHook = exports.AuthTokenHook = exports.registerCoreConfigHook = exports.CoreConfigHook = void 0;
|
|
4
4
|
var coreConfigRegistry_1 = require("./core_config/coreConfigRegistry");
|
|
5
5
|
Object.defineProperty(exports, "CoreConfigHook", { enumerable: true, get: function () { return coreConfigRegistry_1.CoreConfigHook; } });
|
|
6
6
|
var coreConfigRegister_1 = require("./core_config/coreConfigRegister");
|
|
@@ -25,4 +25,8 @@ var userMeRegistry_1 = require("./user_me/userMeRegistry");
|
|
|
25
25
|
Object.defineProperty(exports, "UserMeHook", { enumerable: true, get: function () { return userMeRegistry_1.UserMeHook; } });
|
|
26
26
|
var userMeRegister_1 = require("./user_me/userMeRegister");
|
|
27
27
|
Object.defineProperty(exports, "registerUserMeHook", { enumerable: true, get: function () { return userMeRegister_1.registerUserMeHook; } });
|
|
28
|
+
var schedulerSqlRegistry_1 = require("./scheduler_sql/schedulerSqlRegistry");
|
|
29
|
+
Object.defineProperty(exports, "SchedulerSqlHook", { enumerable: true, get: function () { return schedulerSqlRegistry_1.SchedulerSqlHook; } });
|
|
30
|
+
var schedulerSqlRegister_1 = require("./scheduler_sql/schedulerSqlRegister");
|
|
31
|
+
Object.defineProperty(exports, "registerSchedulerSqlHook", { enumerable: true, get: function () { return schedulerSqlRegister_1.registerSchedulerSqlHook; } });
|
|
28
32
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":";;;AACA,uEAAiE;AAAxD,oHAAA,cAAc,OAAA;AACvB,uEAAyE;AAAhE,4HAAA,sBAAsB,OAAA;AAG/B,oEAA8D;AAArD,kHAAA,aAAa,OAAA;AACtB,oEAAsE;AAA7D,0HAAA,qBAAqB,OAAA;AAG9B,gFAA0E;AAAjE,0HAAA,iBAAiB,OAAA;AAC1B,gFAAkF;AAAzE,kIAAA,yBAAyB,OAAA;AAGlC,oEAA8D;AAArD,kHAAA,aAAa,OAAA;AACtB,oEAAsE;AAA7D,0HAAA,qBAAqB,OAAA;AAG9B,0EAAoE;AAA3D,sHAAA,eAAe,OAAA;AACxB,0EAA4E;AAAnE,8HAAA,uBAAuB,OAAA;AAGhC,2DAAqD;AAA5C,4GAAA,UAAU,OAAA;AACnB,2DAA6D;AAApD,oHAAA,kBAAkB,OAAA","sourcesContent":["export { FeatureCoreConfigProps, FeatureCoreConfigOptions } from './core_config/coreConfigType'\nexport { CoreConfigHook } from \"./core_config/coreConfigRegistry\"\nexport { registerCoreConfigHook } from \"./core_config/coreConfigRegister\"\n\nexport { FeatureAuthTokenProps, FeatureAuthTokenSuccessAuthenticateProps } from './auth_token/authTokenType'\nexport { AuthTokenHook } from \"./auth_token/authTokenRegistry\"\nexport { registerAuthTokenHook } from \"./auth_token/authTokenRegister\"\n\nexport { FeatureResetPasswordProps, FeatureResetPasswordSuccessProps, FeatureResetPasswordRequestProps } from './reset_password/resetPasswordType'\nexport { ResetPasswordHook } from \"./reset_password/resetPasswordRegistry\"\nexport { registerResetPasswordHook } from \"./reset_password/resetPasswordRegister\"\n\nexport { FeatureSmtpEmailProps, FeatureSmtpEmailOptions, FeatureSmtpEmailHbsOptions, FeatureSmtpEmailStartSendProps, FeatureSmtpEmailSuccessSendProps } from './smtp_email/smtpEmailType'\nexport { SmtpEmailHook } from \"./smtp_email/smtpEmailRegistry\"\nexport { registerSmtpEmailHook } from \"./smtp_email/smtpEmailRegister\"\n\nexport { FeatureFileStorageProps, FeatureFileStorageOptions, FeatureFileStorageConfiguration, FeatureFileStorageLocalOptions, FeatureFileStorageGoogleCloudOptions, FeatureFileStorageStartUploadProps, FeatureFileStorageSuccessUploadProps } from './file_storage/fileStorageType'\nexport { FileStorageHook } from \"./file_storage/fileStorageRegistry\"\nexport { registerFileStorageHook } from \"./file_storage/fileStorageRegister\"\n\nexport { FeatureUserMeProps, FeatureUserMeRequestGetProps, FeatureUserMeRequestUpdateProps, FeatureUserMeSuccessUpdateProps, FeatureUserMeSuccessChangePasswordProps, FeatureUserMeSuccessRemoveProps } from './user_me/userMeType'\nexport { UserMeHook } from \"./user_me/userMeRegistry\"\nexport { registerUserMeHook } from \"./user_me/userMeRegister\""]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":";;;AACA,uEAAiE;AAAxD,oHAAA,cAAc,OAAA;AACvB,uEAAyE;AAAhE,4HAAA,sBAAsB,OAAA;AAG/B,oEAA8D;AAArD,kHAAA,aAAa,OAAA;AACtB,oEAAsE;AAA7D,0HAAA,qBAAqB,OAAA;AAG9B,gFAA0E;AAAjE,0HAAA,iBAAiB,OAAA;AAC1B,gFAAkF;AAAzE,kIAAA,yBAAyB,OAAA;AAGlC,oEAA8D;AAArD,kHAAA,aAAa,OAAA;AACtB,oEAAsE;AAA7D,0HAAA,qBAAqB,OAAA;AAG9B,0EAAoE;AAA3D,sHAAA,eAAe,OAAA;AACxB,0EAA4E;AAAnE,8HAAA,uBAAuB,OAAA;AAGhC,2DAAqD;AAA5C,4GAAA,UAAU,OAAA;AACnB,2DAA6D;AAApD,oHAAA,kBAAkB,OAAA;AAG3B,6EAAuE;AAA9D,wHAAA,gBAAgB,OAAA;AACzB,6EAA+E;AAAtE,gIAAA,wBAAwB,OAAA","sourcesContent":["export { FeatureCoreConfigProps, FeatureCoreConfigOptions } from './core_config/coreConfigType'\nexport { CoreConfigHook } from \"./core_config/coreConfigRegistry\"\nexport { registerCoreConfigHook } from \"./core_config/coreConfigRegister\"\n\nexport { FeatureAuthTokenProps, FeatureAuthTokenSuccessAuthenticateProps } from './auth_token/authTokenType'\nexport { AuthTokenHook } from \"./auth_token/authTokenRegistry\"\nexport { registerAuthTokenHook } from \"./auth_token/authTokenRegister\"\n\nexport { FeatureResetPasswordProps, FeatureResetPasswordSuccessProps, FeatureResetPasswordRequestProps } from './reset_password/resetPasswordType'\nexport { ResetPasswordHook } from \"./reset_password/resetPasswordRegistry\"\nexport { registerResetPasswordHook } from \"./reset_password/resetPasswordRegister\"\n\nexport { FeatureSmtpEmailProps, FeatureSmtpEmailOptions, FeatureSmtpEmailHbsOptions, FeatureSmtpEmailStartSendProps, FeatureSmtpEmailSuccessSendProps } from './smtp_email/smtpEmailType'\nexport { SmtpEmailHook } from \"./smtp_email/smtpEmailRegistry\"\nexport { registerSmtpEmailHook } from \"./smtp_email/smtpEmailRegister\"\n\nexport { FeatureFileStorageProps, FeatureFileStorageOptions, FeatureFileStorageConfiguration, FeatureFileStorageLocalOptions, FeatureFileStorageGoogleCloudOptions, FeatureFileStorageStartUploadProps, FeatureFileStorageSuccessUploadProps } from './file_storage/fileStorageType'\nexport { FileStorageHook } from \"./file_storage/fileStorageRegistry\"\nexport { registerFileStorageHook } from \"./file_storage/fileStorageRegister\"\n\nexport { FeatureUserMeProps, FeatureUserMeRequestGetProps, FeatureUserMeRequestUpdateProps, FeatureUserMeSuccessUpdateProps, FeatureUserMeSuccessChangePasswordProps, FeatureUserMeSuccessRemoveProps } from './user_me/userMeType'\nexport { UserMeHook } from \"./user_me/userMeRegistry\"\nexport { registerUserMeHook } from \"./user_me/userMeRegister\"\n\nexport { FeatureSchedulerSqlProps, FeatureSchedulerSqlSetup, FeatureSchedulerSqlSetupItem, FeatureSchedulerSqlSetupItemConnection, FeatureSchedulerSqlSetupItemQuery, FeatureSchedulerSqlSuccessExecuteProps, FeatureSchedulerSqlFailExecuteProps } from './scheduler_sql/schedulerSqlType'\nexport { SchedulerSqlHook } from \"./scheduler_sql/schedulerSqlRegistry\"\nexport { registerSchedulerSqlHook } from \"./scheduler_sql/schedulerSqlRegister\""]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FeatureSchedulerSqlProps } from './schedulerSqlType';
|
|
2
|
+
import { SchedulerSqlTypes } from './schedulerSqlRegistry';
|
|
3
|
+
/**
|
|
4
|
+
* Register consumer-provided hooks for reset password
|
|
5
|
+
*/
|
|
6
|
+
export declare function registerSchedulerSqlHook(hooks: FeatureSchedulerSqlProps<SchedulerSqlTypes>): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerSchedulerSqlHook = registerSchedulerSqlHook;
|
|
4
|
+
const schedulerSqlRegistry_1 = require("./schedulerSqlRegistry");
|
|
5
|
+
/**
|
|
6
|
+
* Register consumer-provided hooks for reset password
|
|
7
|
+
*/
|
|
8
|
+
function registerSchedulerSqlHook(hooks) {
|
|
9
|
+
Object.assign(schedulerSqlRegistry_1.SchedulerSqlHook, hooks);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=schedulerSqlRegister.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerSqlRegister.js","sourceRoot":"","sources":["../../../src/features/scheduler_sql/schedulerSqlRegister.ts"],"names":[],"mappings":";;AAMA,4DAEC;AAPD,iEAA4E;AAE5E;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAkD;IACvF,MAAM,CAAC,MAAM,CAAC,uCAAgB,EAAE,KAAK,CAAC,CAAA;AAC1C,CAAC","sourcesContent":["import { FeatureSchedulerSqlProps } from './schedulerSqlType'\nimport { SchedulerSqlHook, SchedulerSqlTypes } from './schedulerSqlRegistry'\n\n/**\n * Register consumer-provided hooks for reset password\n */\nexport function registerSchedulerSqlHook(hooks: FeatureSchedulerSqlProps<SchedulerSqlTypes>) {\n Object.assign(SchedulerSqlHook, hooks)\n}"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerSqlHook = void 0;
|
|
4
|
+
// import { OneTimeCodeType, ResetPasswordMethod } from "../../services";
|
|
5
|
+
const utils_1 = require("../../utils");
|
|
6
|
+
// Runtime scheduler sql for injected hook
|
|
7
|
+
exports.SchedulerSqlHook = {
|
|
8
|
+
onSetup: () => {
|
|
9
|
+
return {
|
|
10
|
+
"replication-status": {
|
|
11
|
+
query: {
|
|
12
|
+
raw: `SELECT REPLICA STATUS`
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"db-size-check": {
|
|
16
|
+
query: {
|
|
17
|
+
raw: `SELECT pg_size_pretty(pg_database_size('smw_db'));`
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"account-list": {
|
|
21
|
+
query: {
|
|
22
|
+
raw: `select * from accounts;`
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"health-check": {
|
|
26
|
+
query: {
|
|
27
|
+
raw: `SELECT pg_size_pretty(pg_database_size('smw_db'))`
|
|
28
|
+
},
|
|
29
|
+
connection: {
|
|
30
|
+
provider: "postgresql",
|
|
31
|
+
host: "1.1.1.1",
|
|
32
|
+
database: "sample_db",
|
|
33
|
+
port: 5978,
|
|
34
|
+
username: "wwpgsql",
|
|
35
|
+
password: "xxx",
|
|
36
|
+
ssl: false
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
onSuccessExecute: async (props) => {
|
|
42
|
+
// Default behavior: log
|
|
43
|
+
(0, utils_1.throwError)(`Invalid settings for onSuccessExecute in SchedulerSqlHook`);
|
|
44
|
+
},
|
|
45
|
+
onFailExecute: async (props) => {
|
|
46
|
+
// Default behavior: log
|
|
47
|
+
(0, utils_1.throwError)(`Invalid settings for onFailExecute in SchedulerSqlHook`);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=schedulerSqlRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerSqlRegistry.js","sourceRoot":"","sources":["../../../src/features/scheduler_sql/schedulerSqlRegistry.ts"],"names":[],"mappings":";;;AAMA,yEAAyE;AAEzE,mCAAoC;AAQpC,0CAA0C;AAC7B,QAAA,gBAAgB,GAAgD;IACzE,OAAO,EAAE,GAAgD,EAAE;QAEvD,OAAO;YACH,oBAAoB,EAAE;gBAClB,KAAK,EAAE;oBACH,GAAG,EAAE,uBAAuB;iBAC/B;aACJ;YACD,eAAe,EAAE;gBACb,KAAK,EAAE;oBACH,GAAG,EAAE,oDAAoD;iBAC5D;aACJ;YACD,cAAc,EAAE;gBACZ,KAAK,EAAE;oBACH,GAAG,EAAE,yBAAyB;iBACjC;aACJ;YACD,cAAc,EAAE;gBACZ,KAAK,EAAE;oBACH,GAAG,EAAE,mDAAmD;iBAC3D;gBACD,UAAU,EAAE;oBACR,QAAQ,EAAE,YAAY;oBACtB,IAAI,EAAE,SAAS;oBACf,QAAQ,EAAE,WAAW;oBACrB,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,SAAS;oBACnB,QAAQ,EAAE,KAAK;oBACf,GAAG,EAAE,KAAK;iBACb;aACJ;SACJ,CAAA;IAEL,CAAC;IACD,gBAAgB,EAAE,KAAK,EAAE,KAA6C,EAAE,EAAE;QACtE,wBAAwB;QACxB,IAAA,kBAAU,EAAC,2DAA2D,CAAC,CAAA;IAC3E,CAAC;IACD,aAAa,EAAE,KAAK,EAAE,KAA0C,EAAE,EAAE;QAChE,wBAAwB;QACxB,IAAA,kBAAU,EAAC,wDAAwD,CAAC,CAAA;IACxE,CAAC;CACJ,CAAA","sourcesContent":["import {\n FeatureSchedulerSqlProps,\n FeatureSchedulerSqlSetup,\n FeatureSchedulerSqlSuccessExecuteProps,\n FeatureSchedulerSqlFailExecuteProps\n} from './schedulerSqlType'\n// import { OneTimeCodeType, ResetPasswordMethod } from \"../../services\";\n\nimport { throwError } from '@/utils'\n\nexport type SchedulerSqlTypes =\n | \"replication-status\"\n | \"health-check\"\n | \"db-size-check\"\n | \"account-list\"\n\n// Runtime scheduler sql for injected hook\nexport const SchedulerSqlHook: FeatureSchedulerSqlProps<SchedulerSqlTypes> = {\n onSetup: (): FeatureSchedulerSqlSetup<SchedulerSqlTypes> => {\n\n return {\n \"replication-status\": {\n query: {\n raw: `SELECT REPLICA STATUS`\n }\n },\n \"db-size-check\": {\n query: {\n raw: `SELECT pg_size_pretty(pg_database_size('smw_db'));`\n }\n },\n \"account-list\": {\n query: {\n raw: `select * from accounts;`\n }\n },\n \"health-check\": {\n query: {\n raw: `SELECT pg_size_pretty(pg_database_size('smw_db'))`\n },\n connection: {\n provider: \"postgresql\",\n host: \"1.1.1.1\",\n database: \"sample_db\",\n port: 5978,\n username: \"wwpgsql\",\n password: \"xxx\",\n ssl: false\n }\n }\n }\n\n },\n onSuccessExecute: async (props: FeatureSchedulerSqlSuccessExecuteProps) => {\n // Default behavior: log\n throwError(`Invalid settings for onSuccessExecute in SchedulerSqlHook`)\n },\n onFailExecute: async (props: FeatureSchedulerSqlFailExecuteProps) => {\n // Default behavior: log\n throwError(`Invalid settings for onFailExecute in SchedulerSqlHook`)\n }\n}"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FeatureCallbackProps } from "../../utils";
|
|
2
|
+
export type FeatureSchedulerSqlSetupItemConnection = {
|
|
3
|
+
provider: "mysql" | "postgresql";
|
|
4
|
+
host: string;
|
|
5
|
+
port: number;
|
|
6
|
+
database: string;
|
|
7
|
+
username: string;
|
|
8
|
+
password: string;
|
|
9
|
+
ssl?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type FeatureSchedulerSqlSetupItemQuery = {
|
|
12
|
+
raw: string;
|
|
13
|
+
};
|
|
14
|
+
export type FeatureSchedulerSqlSetupItem = {
|
|
15
|
+
connection?: FeatureSchedulerSqlSetupItemConnection;
|
|
16
|
+
query: FeatureSchedulerSqlSetupItemQuery;
|
|
17
|
+
};
|
|
18
|
+
export type FeatureSchedulerSqlSuccessExecuteProps = FeatureCallbackProps<{
|
|
19
|
+
schedulerSql: any;
|
|
20
|
+
}>;
|
|
21
|
+
export type FeatureSchedulerSqlFailExecuteProps = FeatureCallbackProps<{
|
|
22
|
+
schedulerSql: any;
|
|
23
|
+
}>;
|
|
24
|
+
export type FeatureSchedulerSqlSetup<TType extends string> = {
|
|
25
|
+
[K in TType]: FeatureSchedulerSqlSetupItem;
|
|
26
|
+
};
|
|
27
|
+
export type FeatureSchedulerSqlProps<TType extends string> = {
|
|
28
|
+
onSetup: () => FeatureSchedulerSqlSetup<TType>;
|
|
29
|
+
onSuccessExecute: (props: FeatureSchedulerSqlSuccessExecuteProps) => Promise<any>;
|
|
30
|
+
onFailExecute: (props: FeatureSchedulerSqlFailExecuteProps) => Promise<any>;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerSqlType.js","sourceRoot":"","sources":["../../../src/features/scheduler_sql/schedulerSqlType.ts"],"names":[],"mappings":"","sourcesContent":["import { OneTimeCodeType } from \"../../services\";\n\nimport { FeatureCallbackProps } from \"@/utils\"\n\nexport type FeatureSchedulerSqlSetupItemConnection = {\n provider: \"mysql\" | \"postgresql\"\n host: string\n port: number\n database: string\n username: string\n password: string\n ssl?: boolean\n}\n\nexport type FeatureSchedulerSqlSetupItemQuery = {\n raw: string\n // timeoutMs?: number\n}\n\nexport type FeatureSchedulerSqlSetupItem = {\n connection?: FeatureSchedulerSqlSetupItemConnection,\n query: FeatureSchedulerSqlSetupItemQuery\n // options?: {\n // retryAttempts?: number\n // retryDelayMs?: number\n // readOnly?: boolean\n // }\n}\n\nexport type FeatureSchedulerSqlSuccessExecuteProps = FeatureCallbackProps<{\n schedulerSql: any\n}>\n\nexport type FeatureSchedulerSqlFailExecuteProps = FeatureCallbackProps<{\n schedulerSql: any\n}>\n\nexport type FeatureSchedulerSqlSetup<TType extends string> = {\n [K in TType]: FeatureSchedulerSqlSetupItem\n}\n\nexport type FeatureSchedulerSqlProps<TType extends string> = {\n onSetup: () => FeatureSchedulerSqlSetup<TType>,\n // onRequest: (props: FeatureSchedulerSqlRequestProps) => Promise<any>\n onSuccessExecute: (props: FeatureSchedulerSqlSuccessExecuteProps) => Promise<any>,\n onFailExecute: (props: FeatureSchedulerSqlFailExecuteProps) => Promise<any>\n}"]}
|
|
@@ -9,7 +9,7 @@ export { validateRouteSubscriptionPlanGet, validateRouteSubscriptionPlanList, va
|
|
|
9
9
|
export { validateRouteSubscriptionAccountGet, validateRouteSubscriptionAccountList, validateRouteSubscriptionAccountCreate, validateRouteSubscriptionAccountCancel } from "./validateSubscriptionAccount";
|
|
10
10
|
export { validateRouteBusinessGet, validateRouteBusinessList, validateRouteBusinessCreate, validateRouteBusinessUpdate, validateRouteBusinessDelete } from "./validateBusiness";
|
|
11
11
|
export { validateRouteSchedulerLogGet, validateRouteSchedulerLogList, validateRouteSchedulerLogCreate, validateRouteSchedulerLogDelete } from "./validateScheduler";
|
|
12
|
-
export { validateRouteSchedulerRequestGet, validateRouteSchedulerRequestList, validateRouteSchedulerRequestCreate, validateRouteSchedulerRequestExecute, validateRouteSchedulerRequestDelete } from "./validateScheduler";
|
|
12
|
+
export { validateRouteSchedulerRequestGet, validateRouteSchedulerRequestList, validateRouteSchedulerRequestCreate, validateRouteSchedulerRequestExecute, validateRouteSchedulerRequestDelete, validateRouteSchedulerSqlCreate } from "./validateScheduler";
|
|
13
13
|
export { validateRouteUserBranchGet, validateRouteUserBranchList, validateRouteUserBranchCreate, validateRouteUserBranchUpdate, validateRouteUserBranchDelete } from "./validateUserBranch";
|
|
14
14
|
export { validateRouteDocumentGet, validateRouteDocumentList, validateRouteDocumentCreate, validateRouteDocumentUpdate, validateRouteDocumentDelete } from "./validateDocument";
|
|
15
15
|
export { validateRouteRepositoryGet, validateRouteRepositoryList, validateRouteRepositoryCreate, validateRouteRepositoryUpdate, validateRouteRepositoryDelete } from "./validateRepository";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateRouteSchedulerRequestCreate = exports.validateRouteSchedulerRequestList = exports.validateRouteSchedulerRequestGet = exports.validateRouteSchedulerLogDelete = exports.validateRouteSchedulerLogCreate = exports.validateRouteSchedulerLogList = exports.validateRouteSchedulerLogGet = exports.validateRouteBusinessDelete = exports.validateRouteBusinessUpdate = exports.validateRouteBusinessCreate = exports.validateRouteBusinessList = exports.validateRouteBusinessGet = exports.validateRouteSubscriptionAccountCancel = exports.validateRouteSubscriptionAccountCreate = exports.validateRouteSubscriptionAccountList = exports.validateRouteSubscriptionAccountGet = exports.validateRouteSubscriptionPlanDelete = exports.validateRouteSubscriptionPlanUpdate = exports.validateRouteSubscriptionPlanCreate = exports.validateRouteSubscriptionPlanList = exports.validateRouteSubscriptionPlanGet = exports.validateRouteAccountDelete = exports.validateRouteAccountUpdate = exports.validateRouteAccountCreate = exports.validateRouteAccountList = exports.validateRouteAccountGet = exports.validateRouteResetPasswordPerform = exports.validateRouteResetPasswordValidateCode = exports.validateRouteResetPasswordRequest = exports.validateRouteOneTimeCodeList = exports.validateRouteOneTimeCodeGet = exports.validateRouteAccessKeyRevoke = exports.validateRouteAccessKeyList = exports.validateRouteAccessKeyCreate = exports.validateRouteAccessKeyGet = exports.validateRouteAccessControlAssignRoleCreate = exports.validateRouteAccessControlRoleDelete = exports.validateRouteAccessControlRoleList = exports.validateRouteAccessControlRoleUpdate = exports.validateRouteAccessControlRoleCreate = exports.validateRouteAccessControlRoleGet = exports.validateRouteUserMeDelete = exports.validateRouteUserMeChangePassword = exports.validateRouteUserMeUpdate = exports.validateRouteUserMeGet = exports.validateRouteUserDelete = exports.validateRouteUserUpdate = exports.validateRouteUserCreate = exports.validateRouteUserList = exports.validateRouteUserGet = void 0;
|
|
4
|
-
exports.validateRouteAccessKeyUtilAccountOwner = exports.validateRouteAccessKeyUtilValidate = exports.validateRouteChangePasswordUtilValidate = exports.validateRouteAuthTokenGet = exports.validateRouteInjectionFieldDelete = exports.validateRouteInjectionFieldList = exports.validateRouteRegionDelete = exports.validateRouteRegionCreate = exports.validateRouteRegionList = exports.validateRouteRegionGet = exports.validateRouteLocationDelete = exports.validateRouteLocationUpdate = exports.validateRouteLocationCreate = exports.validateRouteLocationList = exports.validateRouteLocationGet = exports.validateRouteFileDelete = exports.validateRouteFilesUpload = exports.validateRouteFileList = exports.validateRouteFileGet = exports.validateRouteItemDelete = exports.validateRouteItemUpdate = exports.validateRouteItemCreate = exports.validateRouteItemList = exports.validateRouteItemGet = exports.validateRouteRepositoryDelete = exports.validateRouteRepositoryUpdate = exports.validateRouteRepositoryCreate = exports.validateRouteRepositoryList = exports.validateRouteRepositoryGet = exports.validateRouteDocumentDelete = exports.validateRouteDocumentUpdate = exports.validateRouteDocumentCreate = exports.validateRouteDocumentList = exports.validateRouteDocumentGet = exports.validateRouteUserBranchDelete = exports.validateRouteUserBranchUpdate = exports.validateRouteUserBranchCreate = exports.validateRouteUserBranchList = exports.validateRouteUserBranchGet = exports.validateRouteSchedulerRequestDelete = exports.validateRouteSchedulerRequestExecute = void 0;
|
|
4
|
+
exports.validateRouteAccessKeyUtilAccountOwner = exports.validateRouteAccessKeyUtilValidate = exports.validateRouteChangePasswordUtilValidate = exports.validateRouteAuthTokenGet = exports.validateRouteInjectionFieldDelete = exports.validateRouteInjectionFieldList = exports.validateRouteRegionDelete = exports.validateRouteRegionCreate = exports.validateRouteRegionList = exports.validateRouteRegionGet = exports.validateRouteLocationDelete = exports.validateRouteLocationUpdate = exports.validateRouteLocationCreate = exports.validateRouteLocationList = exports.validateRouteLocationGet = exports.validateRouteFileDelete = exports.validateRouteFilesUpload = exports.validateRouteFileList = exports.validateRouteFileGet = exports.validateRouteItemDelete = exports.validateRouteItemUpdate = exports.validateRouteItemCreate = exports.validateRouteItemList = exports.validateRouteItemGet = exports.validateRouteRepositoryDelete = exports.validateRouteRepositoryUpdate = exports.validateRouteRepositoryCreate = exports.validateRouteRepositoryList = exports.validateRouteRepositoryGet = exports.validateRouteDocumentDelete = exports.validateRouteDocumentUpdate = exports.validateRouteDocumentCreate = exports.validateRouteDocumentList = exports.validateRouteDocumentGet = exports.validateRouteUserBranchDelete = exports.validateRouteUserBranchUpdate = exports.validateRouteUserBranchCreate = exports.validateRouteUserBranchList = exports.validateRouteUserBranchGet = exports.validateRouteSchedulerSqlCreate = exports.validateRouteSchedulerRequestDelete = exports.validateRouteSchedulerRequestExecute = void 0;
|
|
5
5
|
var validateUser_1 = require("./validateUser");
|
|
6
6
|
Object.defineProperty(exports, "validateRouteUserGet", { enumerable: true, get: function () { return validateUser_1.validateRouteUserGet; } });
|
|
7
7
|
Object.defineProperty(exports, "validateRouteUserList", { enumerable: true, get: function () { return validateUser_1.validateRouteUserList; } });
|
|
@@ -66,6 +66,7 @@ Object.defineProperty(exports, "validateRouteSchedulerRequestList", { enumerable
|
|
|
66
66
|
Object.defineProperty(exports, "validateRouteSchedulerRequestCreate", { enumerable: true, get: function () { return validateScheduler_2.validateRouteSchedulerRequestCreate; } });
|
|
67
67
|
Object.defineProperty(exports, "validateRouteSchedulerRequestExecute", { enumerable: true, get: function () { return validateScheduler_2.validateRouteSchedulerRequestExecute; } });
|
|
68
68
|
Object.defineProperty(exports, "validateRouteSchedulerRequestDelete", { enumerable: true, get: function () { return validateScheduler_2.validateRouteSchedulerRequestDelete; } });
|
|
69
|
+
Object.defineProperty(exports, "validateRouteSchedulerSqlCreate", { enumerable: true, get: function () { return validateScheduler_2.validateRouteSchedulerSqlCreate; } });
|
|
69
70
|
var validateUserBranch_1 = require("./validateUserBranch");
|
|
70
71
|
Object.defineProperty(exports, "validateRouteUserBranchGet", { enumerable: true, get: function () { return validateUserBranch_1.validateRouteUserBranchGet; } });
|
|
71
72
|
Object.defineProperty(exports, "validateRouteUserBranchList", { enumerable: true, get: function () { return validateUserBranch_1.validateRouteUserBranchList; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/middlewares/route/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAuJ;AAA9I,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAC/H,mDAAkJ;AAAzI,wHAAA,sBAAsB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAAE,mIAAA,iCAAiC,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AACxH,iEAA6Q;AAApQ,0IAAA,iCAAiC,OAAA;AAAE,6IAAA,oCAAoC,OA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,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,mDAAwI;AAA/H,wHAAA,sBAAsB,OAAA;AAAE,yHAAA,uBAAuB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAC9G,mEAA6G;AAApG,yIAAA,+BAA+B,OAAA;AAAE,2IAAA,iCAAiC,OAAA;AAC3E,+CAA0D;AAAjD,yHAAA,yBAAyB,OAAA;AAElC,2EAAsF;AAA7E,qJAAA,uCAAuC,OAAA;AAChD,iEAAoH;AAA3G,2IAAA,kCAAkC,OAAA;AAAE,+IAAA,sCAAsC,OAAA","sourcesContent":["export { validateRouteUserGet, validateRouteUserList, validateRouteUserCreate, validateRouteUserUpdate, validateRouteUserDelete } from \"./validateUser\"\nexport { validateRouteUserMeGet, validateRouteUserMeUpdate, validateRouteUserMeChangePassword, validateRouteUserMeDelete } from \"./validateUserMe\"\nexport { validateRouteAccessControlRoleGet, validateRouteAccessControlRoleCreate, validateRouteAccessControlRoleUpdate, validateRouteAccessControlRoleList, validateRouteAccessControlRoleDelete, validateRouteAccessControlAssignRoleCreate } from \"./validateAccessControl\"\nexport { validateRouteAccessKeyGet, validateRouteAccessKeyCreate, validateRouteAccessKeyList, validateRouteAccessKeyRevoke } from \"./validateAccessKey\"\nexport { validateRouteOneTimeCodeGet, validateRouteOneTimeCodeList } from \"./validateOneTimeCode\"\nexport { validateRouteResetPasswordRequest, validateRouteResetPasswordValidateCode, validateRouteResetPasswordPerform } from \"./validateResetPassword\"\nexport { validateRouteAccountGet, validateRouteAccountList, validateRouteAccountCreate, validateRouteAccountUpdate, validateRouteAccountDelete } from \"./validateAccount\"\nexport { validateRouteSubscriptionPlanGet, validateRouteSubscriptionPlanList, validateRouteSubscriptionPlanCreate, validateRouteSubscriptionPlanUpdate, validateRouteSubscriptionPlanDelete } from \"./validateSubscriptionPlan\"\nexport { validateRouteSubscriptionAccountGet, validateRouteSubscriptionAccountList, validateRouteSubscriptionAccountCreate, validateRouteSubscriptionAccountCancel } from \"./validateSubscriptionAccount\"\nexport { validateRouteBusinessGet, validateRouteBusinessList, validateRouteBusinessCreate, validateRouteBusinessUpdate, validateRouteBusinessDelete } from \"./validateBusiness\"\nexport { validateRouteSchedulerLogGet, validateRouteSchedulerLogList, validateRouteSchedulerLogCreate, validateRouteSchedulerLogDelete } from \"./validateScheduler\"\nexport { validateRouteSchedulerRequestGet, validateRouteSchedulerRequestList, validateRouteSchedulerRequestCreate, validateRouteSchedulerRequestExecute, validateRouteSchedulerRequestDelete, validateRouteSchedulerSqlCreate } from \"./validateScheduler\"\nexport { validateRouteUserBranchGet, validateRouteUserBranchList, validateRouteUserBranchCreate, validateRouteUserBranchUpdate, validateRouteUserBranchDelete } from \"./validateUserBranch\"\nexport { validateRouteDocumentGet, validateRouteDocumentList, validateRouteDocumentCreate, validateRouteDocumentUpdate, validateRouteDocumentDelete } from \"./validateDocument\"\nexport { validateRouteRepositoryGet, validateRouteRepositoryList, validateRouteRepositoryCreate, validateRouteRepositoryUpdate, validateRouteRepositoryDelete } from \"./validateRepository\"\nexport { validateRouteItemGet, validateRouteItemList, validateRouteItemCreate, validateRouteItemUpdate, validateRouteItemDelete } from \"./validateItem\"\nexport { validateRouteFileGet, validateRouteFileList, validateRouteFilesUpload, validateRouteFileDelete } from \"./validateFile\"\nexport { validateRouteLocationGet, validateRouteLocationList, validateRouteLocationCreate, validateRouteLocationUpdate, validateRouteLocationDelete } from \"./validateLocation\"\nexport { validateRouteRegionGet, validateRouteRegionList, validateRouteRegionCreate, validateRouteRegionDelete } from \"./validateRegion\"\nexport { validateRouteInjectionFieldList, validateRouteInjectionFieldDelete } from \"./validateInjectionField\"\nexport { validateRouteAuthTokenGet } from \"./validateAuth\"\n\nexport { validateRouteChangePasswordUtilValidate } from \"./validateChangePasswordUtil\"\nexport { validateRouteAccessKeyUtilValidate, validateRouteAccessKeyUtilAccountOwner } from \"./validateAccessKeyUtil\""]}
|
|
@@ -8,3 +8,4 @@ export declare const validateRouteSchedulerRequestList: (req: Request, res: Resp
|
|
|
8
8
|
export declare const validateRouteSchedulerRequestCreate: (req: Request, res: Response, next: NextFunction) => void;
|
|
9
9
|
export declare const validateRouteSchedulerRequestExecute: (req: Request, res: Response, next: NextFunction) => void;
|
|
10
10
|
export declare const validateRouteSchedulerRequestDelete: (req: Request, res: Response, next: NextFunction) => void;
|
|
11
|
+
export declare const validateRouteSchedulerSqlCreate: (req: Request, res: Response, next: NextFunction) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateRouteSchedulerRequestDelete = exports.validateRouteSchedulerRequestExecute = exports.validateRouteSchedulerRequestCreate = exports.validateRouteSchedulerRequestList = exports.validateRouteSchedulerRequestGet = exports.validateRouteSchedulerLogDelete = exports.validateRouteSchedulerLogCreate = exports.validateRouteSchedulerLogList = exports.validateRouteSchedulerLogGet = void 0;
|
|
3
|
+
exports.validateRouteSchedulerSqlCreate = exports.validateRouteSchedulerRequestDelete = exports.validateRouteSchedulerRequestExecute = exports.validateRouteSchedulerRequestCreate = exports.validateRouteSchedulerRequestList = exports.validateRouteSchedulerRequestGet = exports.validateRouteSchedulerLogDelete = exports.validateRouteSchedulerLogCreate = exports.validateRouteSchedulerLogList = exports.validateRouteSchedulerLogGet = void 0;
|
|
4
4
|
const utils_1 = require("../../utils");
|
|
5
5
|
const route_1 = require("../../schema/middleware/route");
|
|
6
6
|
const common_1 = require("../../schema/common");
|
|
@@ -36,4 +36,9 @@ const validateRouteSchedulerRequestExecute = (req, res, next) => {
|
|
|
36
36
|
exports.validateRouteSchedulerRequestExecute = validateRouteSchedulerRequestExecute;
|
|
37
37
|
const validateRouteSchedulerRequestDelete = (req, res, next) => next();
|
|
38
38
|
exports.validateRouteSchedulerRequestDelete = validateRouteSchedulerRequestDelete;
|
|
39
|
+
// Scheduler Sql
|
|
40
|
+
const validateRouteSchedulerSqlCreate = (req, res, next) => {
|
|
41
|
+
next();
|
|
42
|
+
};
|
|
43
|
+
exports.validateRouteSchedulerSqlCreate = validateRouteSchedulerSqlCreate;
|
|
39
44
|
//# sourceMappingURL=validateScheduler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateScheduler.js","sourceRoot":"","sources":["../../../src/middlewares/route/validateScheduler.ts"],"names":[],"mappings":";;;AAOA,mCAA0E;AAC1E,qDAAyG;AAEzG,4CAAkE;AAElE,iBAAiB;AACJ,QAAA,4BAA4B,GAAG,IAAA,+BAAuB,EAAC;IAChE,CAAC,uBAAc,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAA;AAEW,QAAA,6BAA6B,GAAG,IAAA,+BAAuB,EAAC;IACjE,CAAC,mCAA2B,EAAE,QAAQ,CAAC;IACvC,CAAC,wBAAe,EAAE,OAAO,CAAC;CAC7B,CAAC,CAAA;AAEK,MAAM,+BAA+B,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IAC/F,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,+BAA+B,mCAE1C;AAEK,MAAM,+BAA+B,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;AAA7F,QAAA,+BAA+B,mCAA8D;AAE1G,qBAAqB;AACR,QAAA,gCAAgC,GAAG,IAAA,+BAAuB,EAAC;IACpE,CAAC,uBAAc,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAA;AAEW,QAAA,iCAAiC,GAAG,IAAA,+BAAuB,EAAC;IACrE,CAAC,uCAA+B,EAAE,QAAQ,CAAC;IAC3C,CAAC,wBAAe,EAAE,OAAO,CAAC;CAC7B,CAAC,CAAA;AAEK,MAAM,mCAAmC,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACnG,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,mCAAmC,uCAE9C;AAEK,MAAM,oCAAoC,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACpG,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,oCAAoC,wCAE/C;AAEK,MAAM,mCAAmC,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;AAAjG,QAAA,mCAAmC,uCAA8D","sourcesContent":["\nimport {\n Request,\n Response,\n NextFunction\n} from \"express\";\n\nimport { validateMultipleSchemas, HTTP_STATUS, sendError } from \"@/utils\";\nimport { schemaRouteSchedulerLogList, schemaRouteSchedulerRequestList } from \"@/schema/middleware/route\";\n\nimport { schemaQueryList, schemaQueryGet } from \"@/schema/common\";\n\n// Scheduler Logs\nexport const validateRouteSchedulerLogGet = validateMultipleSchemas([\n [schemaQueryGet, \"query\"]\n])\n\nexport const validateRouteSchedulerLogList = validateMultipleSchemas([\n [schemaRouteSchedulerLogList, \"params\"],\n [schemaQueryList, \"query\"]\n])\n\nexport const validateRouteSchedulerLogCreate = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteSchedulerLogDelete = (req: Request, res: Response, next: NextFunction) => next()\n\n// Scheduler Requests\nexport const validateRouteSchedulerRequestGet = validateMultipleSchemas([\n [schemaQueryGet, \"query\"]\n])\n\nexport const validateRouteSchedulerRequestList = validateMultipleSchemas([\n [schemaRouteSchedulerRequestList, \"params\"],\n [schemaQueryList, \"query\"]\n])\n\nexport const validateRouteSchedulerRequestCreate = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteSchedulerRequestExecute = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteSchedulerRequestDelete = (req: Request, res: Response, next: NextFunction) => next()"]}
|
|
1
|
+
{"version":3,"file":"validateScheduler.js","source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AAE,GAAa,EAAE,IAAkB,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;AAAjG,QAAA,mCAAmC,uCAA8D;AAE9G,gBAAgB;AACT,MAAM,+BAA+B,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IAC/F,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,+BAA+B,mCAE1C","sourcesContent":["\nimport {\n Request,\n Response,\n NextFunction\n} from \"express\";\n\nimport { validateMultipleSchemas, HTTP_STATUS, sendError } from \"@/utils\";\nimport { schemaRouteSchedulerLogList, schemaRouteSchedulerRequestList } from \"@/schema/middleware/route\";\n\nimport { schemaQueryList, schemaQueryGet } from \"@/schema/common\";\n\n// Scheduler Logs\nexport const validateRouteSchedulerLogGet = validateMultipleSchemas([\n [schemaQueryGet, \"query\"]\n])\n\nexport const validateRouteSchedulerLogList = validateMultipleSchemas([\n [schemaRouteSchedulerLogList, \"params\"],\n [schemaQueryList, \"query\"]\n])\n\nexport const validateRouteSchedulerLogCreate = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteSchedulerLogDelete = (req: Request, res: Response, next: NextFunction) => next()\n\n// Scheduler Requests\nexport const validateRouteSchedulerRequestGet = validateMultipleSchemas([\n [schemaQueryGet, \"query\"]\n])\n\nexport const validateRouteSchedulerRequestList = validateMultipleSchemas([\n [schemaRouteSchedulerRequestList, \"params\"],\n [schemaQueryList, \"query\"]\n])\n\nexport const validateRouteSchedulerRequestCreate = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteSchedulerRequestExecute = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteSchedulerRequestDelete = (req: Request, res: Response, next: NextFunction) => next()\n\n// Scheduler Sql\nexport const validateRouteSchedulerSqlCreate = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schedulerSqlRoutes = void 0;
|
|
4
|
+
const express_1 = require("express");
|
|
5
|
+
const router = (0, express_1.Router)();
|
|
6
|
+
const route_1 = require("../../middlewares/route");
|
|
7
|
+
const controllers_1 = require("../../controllers");
|
|
8
|
+
/** scheduler/sql/execute - Execute Scheduler Sql */
|
|
9
|
+
router.post("/execute", route_1.validateRouteSchedulerSqlCreate, controllers_1.executeSchedulerSql);
|
|
10
|
+
exports.schedulerSqlRoutes = router;
|
|
11
|
+
//# sourceMappingURL=schedulerSqlRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerSqlRoutes.js","sourceRoot":"","sources":["../../../src/routes/scheduler/schedulerSqlRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,+CAAsE;AAEtE,+CAAoD;AAEpD,oDAAoD;AACpD,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,uCAA+B,EAAE,iCAAmB,CAAC,CAAC;AAEjE,QAAA,kBAAkB,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { validateRouteSchedulerSqlCreate } from \"@/middlewares/route\";\n\nimport { executeSchedulerSql } from \"@/controllers\";\n\n/** scheduler/sql/execute - Execute Scheduler Sql */\nrouter.post(\"/execute\", validateRouteSchedulerSqlCreate, executeSchedulerSql);\n\nexport const schedulerSqlRoutes: Router = router\n"]}
|
|
@@ -7,11 +7,14 @@ const schedulerLogRoutes_1 = require("./schedulerLogRoutes");
|
|
|
7
7
|
const schedulerLogsRoutes_1 = require("./schedulerLogsRoutes");
|
|
8
8
|
const schedulerRequestRoutes_1 = require("./schedulerRequestRoutes");
|
|
9
9
|
const schedulerRequestsRoutes_1 = require("./schedulerRequestsRoutes");
|
|
10
|
+
const schedulerSqlRoutes_1 = require("./schedulerSqlRoutes");
|
|
10
11
|
/** scheduler logs - Merge Scheduler Logs Routes */
|
|
11
12
|
router.use(["/log"], schedulerLogRoutes_1.schedulerLogRoutes);
|
|
12
13
|
router.use(["/logs"], schedulerLogsRoutes_1.schedulerLogsRoutes);
|
|
13
14
|
/** scheduler requests - Merge Scheduler Requests Routes */
|
|
14
15
|
router.use(["/request"], schedulerRequestRoutes_1.schedulerRequestRoutes);
|
|
15
16
|
router.use(["/requests"], schedulerRequestsRoutes_1.schedulerRequestsRoutes);
|
|
17
|
+
/** scheduler sql - Merge Scheduler Sql Routes */
|
|
18
|
+
router.use(["/sql"], schedulerSqlRoutes_1.schedulerSqlRoutes);
|
|
16
19
|
exports.schedulersRoutes = router;
|
|
17
20
|
//# sourceMappingURL=schedulersRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedulersRoutes.js","sourceRoot":"","sources":["../../../src/routes/scheduler/schedulersRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,6DAAyD;AACzD,+DAA2D;AAC3D,qEAAiE;AACjE,uEAAmE;
|
|
1
|
+
{"version":3,"file":"schedulersRoutes.js","sourceRoot":"","sources":["../../../src/routes/scheduler/schedulersRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,6DAAyD;AACzD,+DAA2D;AAC3D,qEAAiE;AACjE,uEAAmE;AACnE,6DAAyD;AAEzD,mDAAmD;AACnD,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,uCAAkB,CAAC,CAAA;AACxC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,yCAAmB,CAAC,CAAA;AAC1C,2DAA2D;AAC3D,MAAM,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,EAAE,+CAAsB,CAAC,CAAA;AAChD,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,EAAE,iDAAuB,CAAC,CAAA;AAClD,iDAAiD;AACjD,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,uCAAkB,CAAC,CAAA;AAE3B,QAAA,gBAAgB,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { schedulerLogRoutes } from \"./schedulerLogRoutes\"\nimport { schedulerLogsRoutes } from \"./schedulerLogsRoutes\"\nimport { schedulerRequestRoutes } from \"./schedulerRequestRoutes\"\nimport { schedulerRequestsRoutes } from \"./schedulerRequestsRoutes\"\nimport { schedulerSqlRoutes } from \"./schedulerSqlRoutes\"\n\n/** scheduler logs - Merge Scheduler Logs Routes */\nrouter.use([\"/log\"], schedulerLogRoutes)\nrouter.use([\"/logs\"], schedulerLogsRoutes)\n/** scheduler requests - Merge Scheduler Requests Routes */\nrouter.use([\"/request\"], schedulerRequestRoutes)\nrouter.use([\"/requests\"], schedulerRequestsRoutes)\n/** scheduler sql - Merge Scheduler Sql Routes */\nrouter.use([\"/sql\"], schedulerSqlRoutes)\n\nexport const schedulersRoutes: Router = router\n"]}
|
|
@@ -86,5 +86,7 @@ export { schemaSchedulerLogCreatePayload, schemaSchedulerLogDeletePayload } from
|
|
|
86
86
|
export type { SchemaSchedulerLogCreatePayload, SchedulerLogFlowTypeEnum, SchemaSchedulerLogDeletePayload } from "./scheduler/schemaSchedulerLog";
|
|
87
87
|
export { schemaSchedulerRequestCreatePayload, schemaSchedulerRequestExecutePayload, schemaSchedulerRequestDeletePayload } from "./scheduler/schemaSchedulerRequest";
|
|
88
88
|
export type { SchemaSchedulerRequestCreatePayload, SchemaSchedulerRequestExecutePayload, SchemaSchedulerRequestDeletePayload } from "./scheduler/schemaSchedulerRequest";
|
|
89
|
+
export { schemaSchedulerSqlExecutePayload } from "./scheduler/schemaSchedulerSql";
|
|
90
|
+
export type { SchemaSchedulerSqlExecutePayload } from "./scheduler/schemaSchedulerSql";
|
|
89
91
|
export { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
|
|
90
92
|
export type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schemaDocumentDeletePayload = exports.schemaFileDeletePayload = exports.schemaFileUploadPayload = exports.schemaAccessControlUserScope = exports.schemaAccessControlUserAssignRolesPayload = exports.schemaAccessControlRoleScope = exports.schemaAccessControlRoleUpdatePayload = exports.schemaAccessControlRoleDeletePayload = exports.schemaAccessControlRoleCreatePayload = exports.schemaAccessControlRole = exports.schemaUserAgentUpdatePayload = exports.schemaUserAgentCreatePayload = exports.schemaUserMemberUpdatePayload = exports.schemaUserMemberCreatePayload = exports.schemaUserDriverUpdatePayload = exports.schemaUserDriverCreatePayload = exports.schemaUserWorkerUpdatePayload = exports.schemaUserWorkerCreatePayload = exports.schemaUserAdministratorUpdatePayload = exports.schemaUserAdministratorCreatePayload = exports.schemaUserRetailerUpdatePayload = exports.schemaUserRetailerCreatePayload = exports.schemaUserCustomerUpdatePayload = exports.schemaUserCustomerCreatePayload = exports.schemaUserOperatorUpdatePayload = exports.schemaUserOperatorCreatePayload = exports.schemaUserMeUpdatePayload = exports.schemaUserMeChangePasswordPayload = exports.schemaUserCredential = exports.schemaUserDeletePayload = exports.schemaAccountSubscribeCancelPayload = exports.schemaAccountSubscribeCreatePayload = exports.schemaSubscribePlanDeletePayload = exports.schemaSubscribePlanUpdatePayload = exports.schemaSubscribePlanCreatePayload = exports.schemaBusinessDeletePayload = exports.schemaBusinessUpdatePayload = exports.schemaBusiness = exports.schemaBusinessCreatePayload = exports.schemaAccountDeletePayload = exports.schemaAccountUpdatePayload = exports.schemaAccountCreatePayload = exports.schemaResetPasswordPerformPayload = exports.schemaResetPasswordValidateCodePayload = exports.schemaResetPasswordRequestPayload = exports.schemaAccessKeyRevokePayload = exports.schemaAccessKeyCreatePayload = exports.schemaAuthTokenOperatorPayload = exports.schemaAuthTokenOptionalAccountPayload = exports.schemaAuthTokenPayload = void 0;
|
|
4
4
|
exports.schemaRegionAreaDeletePayload = exports.schemaRegionAreaCreatePayload = exports.schemaRegionStateUpdatePayload = exports.schemaRegionStateDeletePayload = exports.schemaRegionStateCreatePayload = exports.schemaRegionCountryDeletePayload = exports.schemaRegionCountryUpdatePayload = exports.schemaRegionCountryCreatePayload = exports.schemaInjectionFieldDeletePayload = exports.schemaInjectionFieldCreatePayload = exports.schemaInjectionFieldReplacePayload = exports.schemaSlot = exports.schemaLocationSlotDeletePayload = exports.schemaLocationSlotUpdatePayload = exports.schemaLocationSlotCreatePayload = exports.schemaLocationRackDeletePayload = exports.schemaLocationRackUpdatePayload = exports.schemaLocationRackCreatePayload = exports.schemaLocationLocationDeletePayload = exports.schemaLocationLocationUpdatePayload = exports.schemaLocationLocationCreatePayload = exports.schemaItemUomUpdatePayload = exports.schemaItemUomCreatePayload = exports.schemaItemBrandUpdatePayload = exports.schemaItemBrandCreatePayload = exports.schemaItemCategoryUpdatePayload = exports.schemaItemCategoryCreatePayload = exports.schemaItemItem = exports.schemaItemItemUpdatePayload = exports.schemaItemItemCreatePayload = exports.schemaItemProductUpdatePayload = exports.schemaItemProductCreatePayload = exports.schemaItemDeletePayload = exports.schemaRepositoryContainerUpdatePayload = exports.schemaRepositoryContainerCreatePayload = exports.schemaRepositoryScope = exports.schemaRepositoryDeletePayload = exports.schemaDocumentTripOrderUpdatePayload = exports.schemaDocumentTripOrderCreatePayload = exports.schemaDocumentCashSalesUpdatePayload = exports.schemaDocumentCashSalesCreatePayload = exports.schemaDocumentReplacementDeliveryOrderUpdatePayload = exports.schemaDocumentReplacementDeliveryOrderCreatePayload = exports.schemaDocumentDeliveryOrderUpdatePayload = exports.schemaDocumentDeliveryOrderCreatePayload = exports.schemaDocumentProformaSalesUpdatePayload = exports.schemaDocumentProformaSalesCreatePayload = exports.schemaDocumentSalesOrderUpdatePayload = exports.schemaDocumentSalesOrderCreatePayload = exports.eNumDocumentTypes = void 0;
|
|
5
|
-
exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaSchedulerRequestDeletePayload = exports.schemaSchedulerRequestExecutePayload = exports.schemaSchedulerRequestCreatePayload = exports.schemaSchedulerLogDeletePayload = exports.schemaSchedulerLogCreatePayload = exports.schemaRegionAreaUpdatePayload = void 0;
|
|
5
|
+
exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaSchedulerSqlExecutePayload = exports.schemaSchedulerRequestDeletePayload = exports.schemaSchedulerRequestExecutePayload = exports.schemaSchedulerRequestCreatePayload = exports.schemaSchedulerLogDeletePayload = exports.schemaSchedulerLogCreatePayload = exports.schemaRegionAreaUpdatePayload = void 0;
|
|
6
6
|
var schemaAuthToken_1 = require("./auth/schemaAuthToken");
|
|
7
7
|
Object.defineProperty(exports, "schemaAuthTokenPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenPayload; } });
|
|
8
8
|
Object.defineProperty(exports, "schemaAuthTokenOptionalAccountPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOptionalAccountPayload; } });
|
|
@@ -153,6 +153,8 @@ var schemaSchedulerRequest_1 = require("./scheduler/schemaSchedulerRequest");
|
|
|
153
153
|
Object.defineProperty(exports, "schemaSchedulerRequestCreatePayload", { enumerable: true, get: function () { return schemaSchedulerRequest_1.schemaSchedulerRequestCreatePayload; } });
|
|
154
154
|
Object.defineProperty(exports, "schemaSchedulerRequestExecutePayload", { enumerable: true, get: function () { return schemaSchedulerRequest_1.schemaSchedulerRequestExecutePayload; } });
|
|
155
155
|
Object.defineProperty(exports, "schemaSchedulerRequestDeletePayload", { enumerable: true, get: function () { return schemaSchedulerRequest_1.schemaSchedulerRequestDeletePayload; } });
|
|
156
|
+
var schemaSchedulerSql_1 = require("./scheduler/schemaSchedulerSql");
|
|
157
|
+
Object.defineProperty(exports, "schemaSchedulerSqlExecutePayload", { enumerable: true, get: function () { return schemaSchedulerSql_1.schemaSchedulerSqlExecutePayload; } });
|
|
156
158
|
// export { schemaChangePasswordUtilPayload } from "./utils/unuse/schemaChangePasswordUtil";
|
|
157
159
|
// export type { SchemaChangePasswordUtilPayload } from "./utils/unuse/schemaChangePasswordUtil";
|
|
158
160
|
var schemaAccessKeyUtil_1 = require("./utils/schemaAccessKeyUtil");
|