jcc-express-mvc 1.9.0 → 1.9.2
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/global.d.ts +1 -1
- package/index.d.ts +2 -4
- package/index.d.ts.map +10 -1
- package/index.js +194 -29
- package/lib/Application/ApplicationBuilder.d.ts +2 -1
- package/lib/Application/ApplicationBuilder.d.ts.map +1 -1
- package/lib/Application/ApplicationBuilder.js +2 -1
- package/lib/Auth/index.d.ts +2 -2
- package/lib/Auth/index.d.ts.map +1 -1
- package/lib/Auth/index.js +26 -27
- package/lib/Cloudinary/CloudinaryServiceProvider.d.ts +5 -0
- package/lib/Cloudinary/CloudinaryServiceProvider.d.ts.map +1 -0
- package/lib/Cloudinary/CloudinaryServiceProvider.js +17 -0
- package/lib/Cloudinary/index.d.ts +20 -0
- package/lib/Cloudinary/index.d.ts.map +1 -0
- package/lib/Cloudinary/index.js +42 -0
- package/lib/Cloudinary/interface.d.ts +43 -0
- package/lib/Cloudinary/interface.d.ts.map +1 -0
- package/lib/Cloudinary/interface.js +2 -0
- package/lib/Cloudinary/type.d.ts +2 -0
- package/lib/Cloudinary/type.d.ts.map +1 -0
- package/lib/Cloudinary/type.js +2 -0
- package/lib/Command-Line/MakeCommand.d.ts +1 -0
- package/lib/Command-Line/MakeCommand.d.ts.map +1 -1
- package/lib/Command-Line/MakeCommand.js +21 -0
- package/lib/Command-Line/NodeArtisanCommand.d.ts.map +1 -1
- package/lib/Command-Line/NodeArtisanCommand.js +29 -10
- package/lib/Command-Line/PublishCommand.d.ts +16 -0
- package/lib/Command-Line/PublishCommand.d.ts.map +1 -1
- package/lib/Command-Line/PublishCommand.js +252 -45
- package/lib/Command-Line/files/CloudinaryConfigStub.d.ts +3 -0
- package/lib/Command-Line/files/CloudinaryConfigStub.d.ts.map +1 -0
- package/lib/Command-Line/files/CloudinaryConfigStub.js +22 -0
- package/lib/Command-Line/files/Controller.d.ts.map +1 -1
- package/lib/Command-Line/files/Controller.js +53 -51
- package/lib/Command-Line/files/MonitorConfigStub.d.ts.map +1 -1
- package/lib/Command-Line/files/MonitorConfigStub.js +21 -0
- package/lib/Command-Line/files/MonitorRouteStub.d.ts.map +1 -1
- package/lib/Command-Line/files/MonitorRouteStub.js +2 -2
- package/lib/Command-Line/files/MonitorTableStub.d.ts +2 -0
- package/lib/Command-Line/files/MonitorTableStub.d.ts.map +1 -0
- package/lib/Command-Line/files/MonitorTableStub.js +22 -0
- package/lib/Command-Line/files/Request.d.ts.map +1 -1
- package/lib/Command-Line/files/Request.js +0 -1
- package/lib/Error/FileException/index.d.ts +4 -0
- package/lib/Error/FileException/index.d.ts.map +1 -0
- package/lib/Error/FileException/index.js +9 -0
- package/lib/Error/public/419.html +1 -1
- package/lib/Global/helpers.js +1 -1
- package/lib/Interface/index.d.ts +17 -1
- package/lib/Interface/index.d.ts.map +1 -1
- package/lib/Middleware/index.d.ts +1 -0
- package/lib/Middleware/index.d.ts.map +1 -1
- package/lib/Middleware/index.js +7 -2
- package/lib/Monitor/Collectors/MailCollector.d.ts.map +1 -1
- package/lib/Monitor/Collectors/MailCollector.js +3 -2
- package/lib/Monitor/Collectors/QueueCollector.d.ts.map +1 -1
- package/lib/Monitor/Controllers/MonitorController.d.ts +20 -15
- package/lib/Monitor/Controllers/MonitorController.d.ts.map +1 -1
- package/lib/Monitor/Controllers/MonitorController.js +23 -7
- package/lib/Monitor/Middleware/MonitorMiddleware.d.ts.map +1 -1
- package/lib/Monitor/Middleware/MonitorMiddleware.js +40 -0
- package/lib/Monitor/MonitorManager.d.ts +7 -0
- package/lib/Monitor/MonitorManager.d.ts.map +1 -1
- package/lib/Monitor/MonitorManager.js +56 -0
- package/lib/Monitor/MonitorServiceProvider.d.ts.map +1 -1
- package/lib/Monitor/MonitorServiceProvider.js +3 -4
- package/lib/Monitor/Routes/monitor.routes.d.ts.map +1 -1
- package/lib/Monitor/Routes/monitor.routes.js +4 -2
- package/lib/Monitor/Storage/DatabaseStorage.d.ts +34 -0
- package/lib/Monitor/Storage/DatabaseStorage.d.ts.map +1 -0
- package/lib/Monitor/Storage/DatabaseStorage.js +113 -0
- package/lib/Monitor/Storage/FileStorage.d.ts +22 -0
- package/lib/Monitor/Storage/FileStorage.d.ts.map +1 -0
- package/lib/Monitor/Storage/FileStorage.js +145 -0
- package/lib/Monitor/Storage/MemoryStorage.d.ts +12 -0
- package/lib/Monitor/Storage/MemoryStorage.d.ts.map +1 -0
- package/lib/Monitor/Storage/MemoryStorage.js +22 -0
- package/lib/Monitor/Storage/MonitorStorage.d.ts +31 -0
- package/lib/Monitor/Storage/MonitorStorage.d.ts.map +1 -0
- package/lib/Monitor/Storage/MonitorStorage.js +27 -0
- package/lib/Monitor/Storage/RedisStorage.d.ts +29 -0
- package/lib/Monitor/Storage/RedisStorage.d.ts.map +1 -0
- package/lib/Monitor/Storage/RedisStorage.js +93 -0
- package/lib/Monitor/Storage/StorageFactory.d.ts +9 -0
- package/lib/Monitor/Storage/StorageFactory.d.ts.map +1 -0
- package/lib/Monitor/Storage/StorageFactory.js +92 -0
- package/lib/Monitor/index.d.ts +6 -0
- package/lib/Monitor/index.d.ts.map +1 -1
- package/lib/Monitor/index.js +13 -1
- package/lib/Monitor/types.d.ts +38 -0
- package/lib/Monitor/types.d.ts.map +1 -1
- package/lib/Monitor/types.js +11 -1
- package/lib/Queue/JobsLogger.d.ts.map +1 -1
- package/lib/Queue/JobsLogger.js +6 -4
- package/lib/Request/FormRequest.d.ts +13 -6
- package/lib/Request/FormRequest.d.ts.map +1 -1
- package/lib/Request/FormRequest.js +18 -7
- package/lib/Request/request.d.ts +2 -1
- package/lib/Request/request.d.ts.map +1 -1
- package/lib/Request/request.js +19 -0
- package/lib/Type/index.js +1 -0
- package/lib/util/index.d.ts +1 -2
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +31 -30
- package/package.json +1 -1
package/global.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
export { Authentication as Auth } from "./lib/Auth";
|
|
4
4
|
export { config } from "./lib/Config/Config";
|
|
5
|
+
export { SessionServiceProvider, SessionManager } from "./Core";
|
|
6
|
+
export type { SessionConfig } from "./lib/Interface";
|
|
5
7
|
export type {
|
|
6
8
|
AppRequest as Request,
|
|
7
9
|
AppResponse as Response,
|
|
8
10
|
AppNext as Next,
|
|
9
11
|
} from "./lib/Interface";
|
|
10
|
-
import { HttpContext as AppHttpContext } from "./lib/Interface";
|
|
11
12
|
export {
|
|
12
13
|
bcrypt,
|
|
13
14
|
verifyHash,
|
|
@@ -17,9 +18,7 @@ export {
|
|
|
17
18
|
assertProductionJwtSecret,
|
|
18
19
|
authSessionCookieOptions,
|
|
19
20
|
checkJwtAccessTokenPayload,
|
|
20
|
-
saveImage,
|
|
21
21
|
asyncHandler,
|
|
22
|
-
cloudinaryUpload,
|
|
23
22
|
rootPath,
|
|
24
23
|
} from "./lib/util";
|
|
25
24
|
export type { JwtAccessTokenPayloadResult } from "./lib/util";
|
|
@@ -57,5 +56,4 @@ export declare const auth: (
|
|
|
57
56
|
res: import("./lib/Interface").AppResponse,
|
|
58
57
|
next: import("./lib/Interface").AppNext,
|
|
59
58
|
) => Promise<void>;
|
|
60
|
-
export declare const httpContext: AppHttpContext;
|
|
61
59
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "index.d.ts",
|
|
4
|
+
"sourceRoot": "",
|
|
5
|
+
"sources": [
|
|
6
|
+
"../jcc-express-mvc/index.ts"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAGA,OAAO,EAAE,cAAc,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EACV,UAAU,IAAI,OAAO,EACrB,WAAW,IAAI,QAAQ,EACvB,OAAO,IAAI,IAAI,GAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,YAAY,EACZ,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,YAAY,EACZ,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,YAAY,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,2FAA2F;AAC3F,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAE9E,eAAO,MAAM,KAAK,yIAAuB,CAAC;AAC1C,eAAO,MAAM,OAAO,gMAAyB,CAAC;AAC9C,eAAO,MAAM,IAAI,mJAAsB,CAAC"
|
|
10
|
+
}
|
package/index.js
CHANGED
|
@@ -1,43 +1,208 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/// <reference path="./global.d.ts" />
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.auth =
|
|
5
|
+
exports.apiAuth =
|
|
6
|
+
exports.guest =
|
|
7
|
+
exports.SocialiteOAuthUser =
|
|
8
|
+
exports.SlackProvider =
|
|
9
|
+
exports.TwitterProvider =
|
|
10
|
+
exports.GitLabProvider =
|
|
11
|
+
exports.FacebookProvider =
|
|
12
|
+
exports.GitHubProvider =
|
|
13
|
+
exports.GoogleProvider =
|
|
14
|
+
exports.resolveSocialiteConfig =
|
|
15
|
+
exports.SocialiteProvider =
|
|
16
|
+
exports.AbstractProvider =
|
|
17
|
+
exports.Socialite =
|
|
18
|
+
exports.registerRateLimit =
|
|
19
|
+
exports.loginRateLimit =
|
|
20
|
+
exports.rootPath =
|
|
21
|
+
exports.asyncHandler =
|
|
22
|
+
exports.checkJwtAccessTokenPayload =
|
|
23
|
+
exports.authSessionCookieOptions =
|
|
24
|
+
exports.assertProductionJwtSecret =
|
|
25
|
+
exports.jwtTokenType =
|
|
26
|
+
exports.jwtVerify =
|
|
27
|
+
exports.jwtSign =
|
|
28
|
+
exports.verifyHash =
|
|
29
|
+
exports.bcrypt =
|
|
30
|
+
exports.SessionManager =
|
|
31
|
+
exports.SessionServiceProvider =
|
|
32
|
+
exports.config =
|
|
33
|
+
exports.Auth =
|
|
34
|
+
void 0;
|
|
5
35
|
const AuthMiddleware_1 = require("./lib/Auth/AuthMiddleware");
|
|
6
36
|
var Auth_1 = require("./lib/Auth");
|
|
7
|
-
Object.defineProperty(exports, "Auth", {
|
|
37
|
+
Object.defineProperty(exports, "Auth", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return Auth_1.Authentication;
|
|
41
|
+
},
|
|
42
|
+
});
|
|
8
43
|
var Config_1 = require("./lib/Config/Config");
|
|
9
|
-
Object.defineProperty(exports, "config", {
|
|
44
|
+
Object.defineProperty(exports, "config", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () {
|
|
47
|
+
return Config_1.config;
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
var Core_1 = require("./Core");
|
|
51
|
+
Object.defineProperty(exports, "SessionServiceProvider", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return Core_1.SessionServiceProvider;
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "SessionManager", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () {
|
|
60
|
+
return Core_1.SessionManager;
|
|
61
|
+
},
|
|
62
|
+
});
|
|
10
63
|
var util_1 = require("./lib/util");
|
|
11
|
-
Object.defineProperty(exports, "bcrypt", {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(exports, "
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
64
|
+
Object.defineProperty(exports, "bcrypt", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return util_1.bcrypt;
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "verifyHash", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return util_1.verifyHash;
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "jwtSign", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return util_1.jwtSign;
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "jwtVerify", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () {
|
|
85
|
+
return util_1.jwtVerify;
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "jwtTokenType", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () {
|
|
91
|
+
return util_1.jwtTokenType;
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "assertProductionJwtSecret", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () {
|
|
97
|
+
return util_1.assertProductionJwtSecret;
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "authSessionCookieOptions", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () {
|
|
103
|
+
return util_1.authSessionCookieOptions;
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "checkJwtAccessTokenPayload", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () {
|
|
109
|
+
return util_1.checkJwtAccessTokenPayload;
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(exports, "asyncHandler", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function () {
|
|
115
|
+
return util_1.asyncHandler;
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "rootPath", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () {
|
|
121
|
+
return util_1.rootPath;
|
|
122
|
+
},
|
|
123
|
+
});
|
|
23
124
|
var loginRateLimit_1 = require("./lib/Auth/loginRateLimit");
|
|
24
|
-
Object.defineProperty(exports, "loginRateLimit", {
|
|
25
|
-
|
|
125
|
+
Object.defineProperty(exports, "loginRateLimit", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () {
|
|
128
|
+
return loginRateLimit_1.loginRateLimit;
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "registerRateLimit", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return loginRateLimit_1.registerRateLimit;
|
|
135
|
+
},
|
|
136
|
+
});
|
|
26
137
|
var Socialite_1 = require("./lib/Socialite");
|
|
27
|
-
Object.defineProperty(exports, "Socialite", {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Object.defineProperty(exports, "
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
138
|
+
Object.defineProperty(exports, "Socialite", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return Socialite_1.Socialite;
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "AbstractProvider", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return Socialite_1.AbstractProvider;
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "SocialiteProvider", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return Socialite_1.SocialiteProvider;
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "resolveSocialiteConfig", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () {
|
|
159
|
+
return Socialite_1.resolveSocialiteConfig;
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "GoogleProvider", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return Socialite_1.GoogleProvider;
|
|
166
|
+
},
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "GitHubProvider", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return Socialite_1.GitHubProvider;
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "FacebookProvider", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () {
|
|
177
|
+
return Socialite_1.FacebookProvider;
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "GitLabProvider", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () {
|
|
183
|
+
return Socialite_1.GitLabProvider;
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "TwitterProvider", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () {
|
|
189
|
+
return Socialite_1.TwitterProvider;
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(exports, "SlackProvider", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function () {
|
|
195
|
+
return Socialite_1.SlackProvider;
|
|
196
|
+
},
|
|
197
|
+
});
|
|
37
198
|
/** Laravel Socialite-style OAuth user profile (class with getters + `toPlainObject()`). */
|
|
38
199
|
var SocialUser_1 = require("./lib/Socialite/SocialUser");
|
|
39
|
-
Object.defineProperty(exports, "SocialiteOAuthUser", {
|
|
200
|
+
Object.defineProperty(exports, "SocialiteOAuthUser", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: function () {
|
|
203
|
+
return SocialUser_1.SocialUser;
|
|
204
|
+
},
|
|
205
|
+
});
|
|
40
206
|
exports.guest = AuthMiddleware_1.authMiddleware.guest;
|
|
41
207
|
exports.apiAuth = AuthMiddleware_1.authMiddleware.apiAuth;
|
|
42
208
|
exports.auth = AuthMiddleware_1.authMiddleware.auth;
|
|
43
|
-
exports.httpContext = {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Application } from "./Application";
|
|
2
2
|
import { ServiceProvider } from "../Providers/ServiceProvider";
|
|
3
3
|
import { RouteConfig } from "../Interface";
|
|
4
|
+
import { RequestHandler } from "express";
|
|
4
5
|
export declare class ApplicationBuilder {
|
|
5
6
|
app: Application;
|
|
6
7
|
constructor(app: Application);
|
|
@@ -11,7 +12,7 @@ export declare class ApplicationBuilder {
|
|
|
11
12
|
private withEvents;
|
|
12
13
|
private withBroadcasting;
|
|
13
14
|
withConsole(): this;
|
|
14
|
-
withMiddleware(): this;
|
|
15
|
+
withMiddleware(beforeAppMiddlewares?: RequestHandler[]): this;
|
|
15
16
|
create(): Application;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=ApplicationBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationBuilder.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Application/ApplicationBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationBuilder.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Application/ApplicationBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAU3C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,kBAAkB;IACtB,GAAG,EAAE,WAAW,CAAC;gBAEZ,GAAG,EAAE,WAAW;IAIrB,UAAU,CAAC,MAAM,EAAE,GAAG;IAKtB,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAMtC,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE;IAOtC,aAAa,CAClB,SAAS,EAAE,KAAK,CAAC,KAAK,GAAG,EAAE,WAAW,KAAK,eAAe,CAAC;IA2B7D,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,gBAAgB;IAIjB,WAAW;IAKX,cAAc,CAAC,oBAAoB,GAAE,cAAc,EAAO;IAY1D,MAAM;CAKd"}
|
|
@@ -61,10 +61,11 @@ class ApplicationBuilder {
|
|
|
61
61
|
this.app.bind("ConsoleKernel", NodeArtisanCommand_1.ConsoleKernel);
|
|
62
62
|
return this;
|
|
63
63
|
}
|
|
64
|
-
withMiddleware() {
|
|
64
|
+
withMiddleware(beforeAppMiddlewares = []) {
|
|
65
65
|
//
|
|
66
66
|
const kernel = this.app.resolve("HttpKernel");
|
|
67
67
|
const middleware = new Middleware_1.Middleware(this.app);
|
|
68
|
+
middleware.runBeforeExpressMiddleware(beforeAppMiddlewares);
|
|
68
69
|
middleware.loadStaticFiles();
|
|
69
70
|
middleware.use(kernel.middlewares);
|
|
70
71
|
return this;
|
package/lib/Auth/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class Authentication {
|
|
|
11
11
|
/** Generate and attach tokens to cookies (refresh is rotated server-side via `jti`). */
|
|
12
12
|
private static setTokens;
|
|
13
13
|
/** Handle user login attempt */
|
|
14
|
-
static attempt
|
|
14
|
+
static attempt(next: AppNext, redirect?: string): Promise<void>;
|
|
15
15
|
/**
|
|
16
16
|
* After the user is resolved (e.g. OAuth via Socialite), issue JWT cookies
|
|
17
17
|
* and redirect or JSON response like {@link Authentication.attempt}.
|
|
@@ -25,6 +25,6 @@ export declare class Authentication {
|
|
|
25
25
|
static check(): boolean;
|
|
26
26
|
static user(): Record<string, any>;
|
|
27
27
|
static id(): any;
|
|
28
|
-
static socialLogin(userId: string | number): Promise<void>;
|
|
28
|
+
static socialLogin(userId: string | number, redirect?: string): Promise<void>;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/Auth/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAgBhE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAsB7B,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAC,YAAY,CAAgD;IAE3E,2EAA2E;IAC3E,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAI5D,qDAAqD;IACrD,OAAO,CAAC,MAAM,CAAC,cAAc;IAc7B,0DAA0D;mBACrC,OAAO;IAqB5B,wFAAwF;IACxF,OAAO,CAAC,MAAM,CAAC,SAAS;IA0BxB,gCAAgC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAgBhE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAsB7B,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAC,YAAY,CAAgD;IAE3E,2EAA2E;IAC3E,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAI5D,qDAAqD;IACrD,OAAO,CAAC,MAAM,CAAC,cAAc;IAc7B,0DAA0D;mBACrC,OAAO;IAqB5B,wFAAwF;IACxF,OAAO,CAAC,MAAM,CAAC,SAAS;IA0BxB,gCAAgC;WACnB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,GAAE,MAAgB;IA2B9D;;;OAGG;WACU,aAAa,CACxB,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,QAAQ,GAAE,MAAgB,GACzB,OAAO,CAAC,IAAI,CAAC;IA4BhB,+BAA+B;WAClB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO;IAsC1E,qBAAqB;IACrB,MAAM,CAAC,MAAM;IAsBb,4FAA4F;IAC5F,MAAM,CAAC,KAAK,IAAI,OAAO;IAWvB,MAAM,CAAC,IAAI;IAIX,MAAM,CAAC,EAAE;WAII,WAAW,CACtB,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,QAAQ,GAAE,MAAgB;CAI7B"}
|
package/lib/Auth/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.Authentication = void 0;
|
|
5
4
|
const util_1 = require("../util");
|
|
@@ -26,7 +25,7 @@ function safeInternalRedirect(url, fallback) {
|
|
|
26
25
|
class Authentication {
|
|
27
26
|
/** Use a shared store (e.g. Redis) when running multiple app instances. */
|
|
28
27
|
static setRefreshTokenStore(store) {
|
|
29
|
-
|
|
28
|
+
Authentication.refreshStore = store;
|
|
30
29
|
}
|
|
31
30
|
/** Get user lookup field (email, phone, username) */
|
|
32
31
|
static getCredentials(data) {
|
|
@@ -67,8 +66,8 @@ class Authentication {
|
|
|
67
66
|
/** Generate and attach tokens to cookies (refresh is rotated server-side via `jti`). */
|
|
68
67
|
static setTokens(res, userId) {
|
|
69
68
|
const id = String(userId);
|
|
70
|
-
const jti =
|
|
71
|
-
|
|
69
|
+
const jti = Authentication.refreshStore.generateJti();
|
|
70
|
+
Authentication.refreshStore.register(jti, id, REFRESH_TTL_MS);
|
|
72
71
|
const accessToken = (0, util_1.jwtSign)(id, { expiresIn: "1h" });
|
|
73
72
|
const refreshToken = (0, util_1.jwtSign)({ id, typ: "refresh", jti }, { expiresIn: "7d" });
|
|
74
73
|
const cookieOptions = (0, util_1.authSessionCookieOptions)();
|
|
@@ -82,6 +81,25 @@ class Authentication {
|
|
|
82
81
|
});
|
|
83
82
|
return { accessToken, refreshToken };
|
|
84
83
|
}
|
|
84
|
+
/** Handle user login attempt */
|
|
85
|
+
static async attempt(next, redirect = "/home") {
|
|
86
|
+
const req = request();
|
|
87
|
+
const res = response();
|
|
88
|
+
try {
|
|
89
|
+
const { user, field } = await this.getUser(req.body);
|
|
90
|
+
if (!user)
|
|
91
|
+
throw new ValidationException_v2_1.ValidationException({ [field]: ["Invalid credentials"] });
|
|
92
|
+
// Guard against OAuth users or accounts with no password set
|
|
93
|
+
if (!user.password ||
|
|
94
|
+
!(await (0, util_1.verifyHash)(req.body.password, user.password))) {
|
|
95
|
+
throw new ValidationException_v2_1.ValidationException({ [field]: ["Invalid credentials"] });
|
|
96
|
+
}
|
|
97
|
+
await Authentication.completeLogin(req, res, user.id || user._id, redirect);
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
next(error);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
85
103
|
/**
|
|
86
104
|
* After the user is resolved (e.g. OAuth via Socialite), issue JWT cookies
|
|
87
105
|
* and redirect or JSON response like {@link Authentication.attempt}.
|
|
@@ -133,7 +151,7 @@ class Authentication {
|
|
|
133
151
|
if (!jti) {
|
|
134
152
|
throw new Error("Invalid refresh token");
|
|
135
153
|
}
|
|
136
|
-
const session =
|
|
154
|
+
const session = Authentication.refreshStore.consume(jti);
|
|
137
155
|
const userId = (0, util_1.jwtSubjectId)(payload);
|
|
138
156
|
if (!session || session.userId !== String(userId)) {
|
|
139
157
|
throw new Error("Invalid refresh token");
|
|
@@ -158,7 +176,7 @@ class Authentication {
|
|
|
158
176
|
if (payload != null &&
|
|
159
177
|
typeof payload === "object" &&
|
|
160
178
|
typeof payload.jti === "string") {
|
|
161
|
-
|
|
179
|
+
Authentication.refreshStore.revoke(payload.jti);
|
|
162
180
|
}
|
|
163
181
|
}
|
|
164
182
|
}
|
|
@@ -187,28 +205,9 @@ class Authentication {
|
|
|
187
205
|
static id() {
|
|
188
206
|
return request().user?.id || request().user?._id;
|
|
189
207
|
}
|
|
190
|
-
static async socialLogin(userId) {
|
|
191
|
-
return this.completeLogin(request(), response(), userId,
|
|
208
|
+
static async socialLogin(userId, redirect = "/home") {
|
|
209
|
+
return this.completeLogin(request(), response(), userId, redirect);
|
|
192
210
|
}
|
|
193
211
|
}
|
|
194
212
|
exports.Authentication = Authentication;
|
|
195
|
-
_a = Authentication;
|
|
196
213
|
Authentication.refreshStore = refreshTokenStore_1.defaultRefreshTokenStore;
|
|
197
|
-
/** Handle user login attempt */
|
|
198
|
-
Authentication.attempt = async (next, redirect = "/home") => {
|
|
199
|
-
const req = request();
|
|
200
|
-
const res = response();
|
|
201
|
-
try {
|
|
202
|
-
const { user, field } = await _a.getUser(req.body);
|
|
203
|
-
if (!user)
|
|
204
|
-
throw new ValidationException_v2_1.ValidationException({ [field]: ["Invalid credentials"] });
|
|
205
|
-
// Guard against OAuth users or accounts with no password set
|
|
206
|
-
if (!user.password || !(await (0, util_1.verifyHash)(req.body.password, user.password))) {
|
|
207
|
-
throw new ValidationException_v2_1.ValidationException({ [field]: ["Invalid credentials"] });
|
|
208
|
-
}
|
|
209
|
-
await _a.completeLogin(req, res, user.id || user._id, redirect);
|
|
210
|
-
}
|
|
211
|
-
catch (error) {
|
|
212
|
-
next(error);
|
|
213
|
-
}
|
|
214
|
-
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloudinaryServiceProvider.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Cloudinary/CloudinaryServiceProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,yBAA0B,SAAQ,eAAe;IAE5D,QAAQ,IAAI,IAAI;CAQjB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudinaryServiceProvider = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
const ServiceProvider_1 = require("../Providers/ServiceProvider");
|
|
6
|
+
class CloudinaryServiceProvider extends ServiceProvider_1.ServiceProvider {
|
|
7
|
+
//
|
|
8
|
+
register() {
|
|
9
|
+
//
|
|
10
|
+
const config = this.app.config.cloudinary;
|
|
11
|
+
if (!config) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.app.singleton(_1.Cloudinary.name, () => new _1.Cloudinary(config));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.CloudinaryServiceProvider = CloudinaryServiceProvider;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UploadApiOptions, UploadApiResponse } from "cloudinary";
|
|
2
|
+
import { CloudinaryConfig, CloudinaryImageOptions } from "./interface";
|
|
3
|
+
export declare class Cloudinary {
|
|
4
|
+
constructor(config: CloudinaryConfig);
|
|
5
|
+
/**
|
|
6
|
+
* Upload file to Cloudinary
|
|
7
|
+
*/
|
|
8
|
+
upload(path: string, option?: UploadApiOptions): Promise<UploadApiResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Returns ONLY the URL (no HTML)
|
|
11
|
+
*/
|
|
12
|
+
url(publicId: string, options?: CloudinaryImageOptions): string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns HTML <img> tag
|
|
15
|
+
*/
|
|
16
|
+
image(publicId: string, options?: CloudinaryImageOptions): string;
|
|
17
|
+
videoUrl(publicId: string, options?: CloudinaryImageOptions): string;
|
|
18
|
+
video(publicId: string, options?: any): string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Cloudinary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAEvE,qBAAa,UAAU;gBACT,MAAM,EAAE,gBAAgB;IASpC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI3E;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM;IAI/D;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM;IAIjE,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM;IAOpE,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM;CAG/C"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Cloudinary = void 0;
|
|
4
|
+
const cloudinary_1 = require("cloudinary");
|
|
5
|
+
class Cloudinary {
|
|
6
|
+
constructor(config) {
|
|
7
|
+
cloudinary_1.v2.config({
|
|
8
|
+
cloud_name: config.cloud_name,
|
|
9
|
+
api_key: config.api_key,
|
|
10
|
+
api_secret: config.api_secret,
|
|
11
|
+
secure: true,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Upload file to Cloudinary
|
|
16
|
+
*/
|
|
17
|
+
upload(path, option) {
|
|
18
|
+
return cloudinary_1.v2.uploader.upload(path, option);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns ONLY the URL (no HTML)
|
|
22
|
+
*/
|
|
23
|
+
url(publicId, options) {
|
|
24
|
+
return cloudinary_1.v2.url(publicId, options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns HTML <img> tag
|
|
28
|
+
*/
|
|
29
|
+
image(publicId, options) {
|
|
30
|
+
return cloudinary_1.v2.image(publicId, options);
|
|
31
|
+
}
|
|
32
|
+
videoUrl(publicId, options) {
|
|
33
|
+
return cloudinary_1.v2.url(publicId, {
|
|
34
|
+
resource_type: "video",
|
|
35
|
+
...options,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
video(publicId, options) {
|
|
39
|
+
return cloudinary_1.v2.video(publicId, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Cloudinary = Cloudinary;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CropType } from "./type";
|
|
2
|
+
export interface Transformation {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
crop?: CropType;
|
|
6
|
+
gravity?: string;
|
|
7
|
+
quality?: string | number;
|
|
8
|
+
format?: string;
|
|
9
|
+
radius?: number | string;
|
|
10
|
+
effect?: string;
|
|
11
|
+
dpr?: number | string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export interface ImageTagAttributes {
|
|
15
|
+
alt?: string;
|
|
16
|
+
class?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
loading?: "lazy" | "eager";
|
|
19
|
+
title?: string;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export interface CloudinaryConfigOverrides {
|
|
23
|
+
cloud_name?: string;
|
|
24
|
+
secure?: boolean;
|
|
25
|
+
version?: string | number;
|
|
26
|
+
}
|
|
27
|
+
export interface CloudinaryImageOptions extends Transformation, CloudinaryConfigOverrides, ImageTagAttributes {
|
|
28
|
+
/**
|
|
29
|
+
* Full transformation object (preferred modern way)
|
|
30
|
+
*/
|
|
31
|
+
transformation?: Transformation | Transformation[];
|
|
32
|
+
/**
|
|
33
|
+
* Raw transformation string (advanced usage)
|
|
34
|
+
*/
|
|
35
|
+
raw_transformation?: string;
|
|
36
|
+
}
|
|
37
|
+
export type CloudinaryConfig = {
|
|
38
|
+
cloud_name: string;
|
|
39
|
+
api_key: string;
|
|
40
|
+
api_secret: string;
|
|
41
|
+
secure: boolean;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Cloudinary/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEtB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,sBACf,SAAQ,cAAc,EAAE,yBAAyB,EAAE,kBAAkB;IACrE;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,cAAc,EAAE,CAAC;IAEnD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Cloudinary/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,GACP,OAAO,CAAC"}
|
|
@@ -10,6 +10,7 @@ export declare class MakeCommand {
|
|
|
10
10
|
createJob(job: string): any;
|
|
11
11
|
createEventListener(event: string, listener?: string): any;
|
|
12
12
|
createQueueTable(): void;
|
|
13
|
+
createMonitorTable(): void;
|
|
13
14
|
createObserver(name: string, model?: string): any;
|
|
14
15
|
createPolicy(name: string, model?: string): any;
|
|
15
16
|
createCommand(name: string, customSignature?: string): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MakeCommand.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Command-Line/MakeCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MakeCommand.d.ts","sourceRoot":"","sources":["../../../jcc-express-mvc/lib/Command-Line/MakeCommand.ts"],"names":[],"mappings":"AAmCA,qBAAa,WAAW;IACtB,OAAO,CAAC,aAAa,CAA0C;IAE/D,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,GAAG;IAsChE,mBAAmB,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,UAAQ,GAAG,GAAG;IAkDnE,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG;IAuBnC,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG;IA4BvC,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,GAAG;IA4BlE,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG;IA2B/B,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG;IA8B/B,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG;IA8B3B,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,GAAG;IAmC1D,gBAAgB;IA+BhB,kBAAkB;IAyBlB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG;IAiCjD,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG;IAmC/C,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,GAAG;IAmC1D,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA+BjC,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IA+BpD,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAiC7B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA8BhC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG;CAkCrC"}
|