itrm-tools 1.3.17 → 1.3.19-beta.1
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/api/alegra/AlegraConnectionManager.d.ts +30 -30
- package/dist/api/check/route/CorsCheckApiRouter.js +1 -1
- package/dist/api/check/route/CorsCheckApiRouter.js.map +1 -1
- package/dist/api/check/route/SimpleCheckableAPIRouter.js +4 -1
- package/dist/api/check/route/SimpleCheckableAPIRouter.js.map +1 -1
- package/dist/api/express/ExpressStandardConfiguration.js +7 -2
- package/dist/api/express/ExpressStandardConfiguration.js.map +1 -1
- package/dist/api/request/crud/CrudManager.d.ts +11 -11
- package/dist/api/request/crud/CrudServiceManager.d.ts +28 -28
- package/dist/api/request/crud/CrudServiceManager.js +98 -98
- package/dist/api/request/crud/CrudServiceManager.js.map +1 -1
- package/dist/api/request/crud/common/ActivityHistoryManager.d.ts +38 -38
- package/dist/api/request/crud/common/ActivityHistoryManager.js +68 -68
- package/dist/api/request/crud/common/ApplicationManager.d.ts +37 -37
- package/dist/api/request/crud/common/ApplicationManager.js +56 -56
- package/dist/api/request/crud/common/AvailablePlatformManager.d.ts +38 -38
- package/dist/api/request/crud/common/AvailablePlatformManager.js +68 -68
- package/dist/api/request/crud/common/ComponentManager.d.ts +51 -48
- package/dist/api/request/crud/common/ComponentManager.js +62 -62
- package/dist/api/request/crud/common/ComponentManager.js.map +1 -1
- package/dist/api/request/crud/common/KeyManager.d.ts +41 -41
- package/dist/api/request/crud/common/KeyManager.js +69 -69
- package/dist/api/request/crud/common/PlatformManager.d.ts +44 -41
- package/dist/api/request/crud/common/PlatformManager.js +59 -59
- package/dist/api/request/crud/common/PlatformManager.js.map +1 -1
- package/dist/api/request/crud/common/RoleManager.d.ts +41 -40
- package/dist/api/request/crud/common/RoleManager.js +56 -56
- package/dist/api/request/crud/common/RoleManager.js.map +1 -1
- package/dist/api/request/crud/common/ServiceSessionManager.d.ts +29 -0
- package/dist/api/request/crud/common/ServiceSessionManager.js +224 -0
- package/dist/api/request/crud/common/ServiceSessionManager.js.map +1 -0
- package/dist/api/request/crud/common/StatusManager.d.ts +32 -32
- package/dist/api/request/crud/common/StatusManager.js +56 -56
- package/dist/api/request/crud/common/TypeManager.d.ts +32 -32
- package/dist/api/request/crud/common/TypeManager.js +56 -56
- package/dist/api/request/crud/common/UserCredentialsManager.d.ts +37 -37
- package/dist/api/request/crud/common/UserCredentialsManager.js +66 -66
- package/dist/api/request/crud/common/UserManager.d.ts +38 -38
- package/dist/api/request/crud/common/UserManager.js +62 -62
- package/dist/api/utils/Response.d.ts +25 -25
- package/dist/api/utils/Response.js +85 -85
- package/dist/cryptography/jwt/JwtUtils.d.ts +18 -18
- package/dist/cryptography/jwt/JwtUtils.js +36 -36
- package/dist/cryptography/password/PasswordUtils.d.ts +6 -6
- package/dist/cryptography/password/PasswordUtils.js +34 -34
- package/dist/index.d.ts +63 -62
- package/dist/index.js +128 -126
- package/dist/index.js.map +1 -1
- package/dist/types/api.d.ts +21 -21
- package/dist/types/api.js +2 -2
- package/package.json +6 -6
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpCode = exports.ResponseUtils = exports.ApiServiceError = void 0;
|
|
4
|
-
exports.mapErrorCodeToHttpStatus = mapErrorCodeToHttpStatus;
|
|
5
|
-
class ApiServiceError extends Error {
|
|
6
|
-
httpStatus;
|
|
7
|
-
code;
|
|
8
|
-
details;
|
|
9
|
-
constructor(httpStatus, code, message, details) {
|
|
10
|
-
super(message);
|
|
11
|
-
this.httpStatus = httpStatus;
|
|
12
|
-
this.code = code;
|
|
13
|
-
this.details = details;
|
|
14
|
-
// Maintains proper stack trace
|
|
15
|
-
Object.setPrototypeOf(this, ApiServiceError.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ApiServiceError = ApiServiceError;
|
|
19
|
-
class ResponseUtils {
|
|
20
|
-
static success(payload, message, meta) {
|
|
21
|
-
return {
|
|
22
|
-
success: true,
|
|
23
|
-
payload,
|
|
24
|
-
message,
|
|
25
|
-
meta: {
|
|
26
|
-
timestamp: new Date().toISOString(),
|
|
27
|
-
...meta,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
static error(apiError, meta) {
|
|
32
|
-
return {
|
|
33
|
-
success: false,
|
|
34
|
-
payload: null,
|
|
35
|
-
error: {
|
|
36
|
-
code: apiError.code,
|
|
37
|
-
message: apiError.message,
|
|
38
|
-
details: apiError.details,
|
|
39
|
-
},
|
|
40
|
-
meta: {
|
|
41
|
-
timestamp: new Date().toISOString(),
|
|
42
|
-
...meta,
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
static paginated(payload, pagination, message) {
|
|
47
|
-
return {
|
|
48
|
-
success: true,
|
|
49
|
-
payload,
|
|
50
|
-
message,
|
|
51
|
-
meta: {
|
|
52
|
-
timestamp: new Date().toISOString(),
|
|
53
|
-
pagination,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ResponseUtils = ResponseUtils;
|
|
59
|
-
function mapErrorCodeToHttpStatus(code) {
|
|
60
|
-
switch (code) {
|
|
61
|
-
case 'NOT_FOUND':
|
|
62
|
-
return HttpCode.NOT_FOUND;
|
|
63
|
-
case 'UNAUTHORIZED':
|
|
64
|
-
return HttpCode.UNAUTHORIZED;
|
|
65
|
-
case 'INTERNAL_SERVER_ERROR':
|
|
66
|
-
return HttpCode.INTERNAL_SERVER_ERROR;
|
|
67
|
-
case 'FORBIDDEN':
|
|
68
|
-
return HttpCode.FORBIDDEN;
|
|
69
|
-
default:
|
|
70
|
-
return HttpCode.BAD_REQUEST;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
var HttpCode;
|
|
74
|
-
(function (HttpCode) {
|
|
75
|
-
HttpCode[HttpCode["OK"] = 200] = "OK";
|
|
76
|
-
HttpCode[HttpCode["CREATED"] = 201] = "CREATED";
|
|
77
|
-
HttpCode[HttpCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
78
|
-
HttpCode[HttpCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
79
|
-
HttpCode[HttpCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
80
|
-
HttpCode[HttpCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
81
|
-
HttpCode[HttpCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
82
|
-
HttpCode[HttpCode["CONFLICT"] = 409] = "CONFLICT";
|
|
83
|
-
HttpCode[HttpCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
84
|
-
HttpCode[HttpCode["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
85
|
-
})(HttpCode || (exports.HttpCode = HttpCode = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpCode = exports.ResponseUtils = exports.ApiServiceError = void 0;
|
|
4
|
+
exports.mapErrorCodeToHttpStatus = mapErrorCodeToHttpStatus;
|
|
5
|
+
class ApiServiceError extends Error {
|
|
6
|
+
httpStatus;
|
|
7
|
+
code;
|
|
8
|
+
details;
|
|
9
|
+
constructor(httpStatus, code, message, details) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.httpStatus = httpStatus;
|
|
12
|
+
this.code = code;
|
|
13
|
+
this.details = details;
|
|
14
|
+
// Maintains proper stack trace
|
|
15
|
+
Object.setPrototypeOf(this, ApiServiceError.prototype);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ApiServiceError = ApiServiceError;
|
|
19
|
+
class ResponseUtils {
|
|
20
|
+
static success(payload, message, meta) {
|
|
21
|
+
return {
|
|
22
|
+
success: true,
|
|
23
|
+
payload,
|
|
24
|
+
message,
|
|
25
|
+
meta: {
|
|
26
|
+
timestamp: new Date().toISOString(),
|
|
27
|
+
...meta,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static error(apiError, meta) {
|
|
32
|
+
return {
|
|
33
|
+
success: false,
|
|
34
|
+
payload: null,
|
|
35
|
+
error: {
|
|
36
|
+
code: apiError.code,
|
|
37
|
+
message: apiError.message,
|
|
38
|
+
details: apiError.details,
|
|
39
|
+
},
|
|
40
|
+
meta: {
|
|
41
|
+
timestamp: new Date().toISOString(),
|
|
42
|
+
...meta,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static paginated(payload, pagination, message) {
|
|
47
|
+
return {
|
|
48
|
+
success: true,
|
|
49
|
+
payload,
|
|
50
|
+
message,
|
|
51
|
+
meta: {
|
|
52
|
+
timestamp: new Date().toISOString(),
|
|
53
|
+
pagination,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ResponseUtils = ResponseUtils;
|
|
59
|
+
function mapErrorCodeToHttpStatus(code) {
|
|
60
|
+
switch (code) {
|
|
61
|
+
case 'NOT_FOUND':
|
|
62
|
+
return HttpCode.NOT_FOUND;
|
|
63
|
+
case 'UNAUTHORIZED':
|
|
64
|
+
return HttpCode.UNAUTHORIZED;
|
|
65
|
+
case 'INTERNAL_SERVER_ERROR':
|
|
66
|
+
return HttpCode.INTERNAL_SERVER_ERROR;
|
|
67
|
+
case 'FORBIDDEN':
|
|
68
|
+
return HttpCode.FORBIDDEN;
|
|
69
|
+
default:
|
|
70
|
+
return HttpCode.BAD_REQUEST;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
var HttpCode;
|
|
74
|
+
(function (HttpCode) {
|
|
75
|
+
HttpCode[HttpCode["OK"] = 200] = "OK";
|
|
76
|
+
HttpCode[HttpCode["CREATED"] = 201] = "CREATED";
|
|
77
|
+
HttpCode[HttpCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
78
|
+
HttpCode[HttpCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
79
|
+
HttpCode[HttpCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
80
|
+
HttpCode[HttpCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
81
|
+
HttpCode[HttpCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
82
|
+
HttpCode[HttpCode["CONFLICT"] = 409] = "CONFLICT";
|
|
83
|
+
HttpCode[HttpCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
84
|
+
HttpCode[HttpCode["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
85
|
+
})(HttpCode || (exports.HttpCode = HttpCode = {}));
|
|
86
86
|
//# sourceMappingURL=Response.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { JWTPayload } from 'jose';
|
|
2
|
-
export interface CustomJWTPayload extends JWTPayload {
|
|
3
|
-
userId: string;
|
|
4
|
-
rolesByPlatform: Record<string, string>;
|
|
5
|
-
status: string;
|
|
6
|
-
application: string;
|
|
7
|
-
metadata?: Record<string, boolean>;
|
|
8
|
-
}
|
|
9
|
-
export interface JwtConfig {
|
|
10
|
-
algorithm?: string;
|
|
11
|
-
expirationTime?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare class JwtUtils {
|
|
14
|
-
private readonly config;
|
|
15
|
-
constructor(config: JwtConfig);
|
|
16
|
-
sign(payload: CustomJWTPayload, secretKey: string): Promise<string | undefined>;
|
|
17
|
-
verify(token: string, secretKey: string): Promise<CustomJWTPayload | undefined>;
|
|
18
|
-
}
|
|
1
|
+
import { JWTPayload } from 'jose';
|
|
2
|
+
export interface CustomJWTPayload extends JWTPayload {
|
|
3
|
+
userId: string;
|
|
4
|
+
rolesByPlatform: Record<string, string>;
|
|
5
|
+
status: string;
|
|
6
|
+
application: string;
|
|
7
|
+
metadata?: Record<string, boolean>;
|
|
8
|
+
}
|
|
9
|
+
export interface JwtConfig {
|
|
10
|
+
algorithm?: string;
|
|
11
|
+
expirationTime?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class JwtUtils {
|
|
14
|
+
private readonly config;
|
|
15
|
+
constructor(config: JwtConfig);
|
|
16
|
+
sign(payload: CustomJWTPayload, secretKey: string): Promise<string | undefined>;
|
|
17
|
+
verify(token: string, secretKey: string): Promise<CustomJWTPayload | undefined>;
|
|
18
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JwtUtils = void 0;
|
|
4
|
-
const jose_1 = require("jose");
|
|
5
|
-
class JwtUtils {
|
|
6
|
-
config;
|
|
7
|
-
constructor(config) {
|
|
8
|
-
this.config = config;
|
|
9
|
-
}
|
|
10
|
-
async sign(payload, secretKey) {
|
|
11
|
-
try {
|
|
12
|
-
const keyToUse = new TextEncoder().encode(secretKey);
|
|
13
|
-
const jwt = new jose_1.SignJWT(payload)
|
|
14
|
-
.setProtectedHeader({ alg: this.config.algorithm ?? 'HS512' })
|
|
15
|
-
.setIssuedAt()
|
|
16
|
-
.setExpirationTime(Date.now() + (this.config.expirationTime ?? 3600) * 1000);
|
|
17
|
-
return await jwt.sign(keyToUse);
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error(`Failed to sign JWT: ${error}`);
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
async verify(token, secretKey) {
|
|
25
|
-
try {
|
|
26
|
-
const keyToUse = new TextEncoder().encode(secretKey);
|
|
27
|
-
const { payload } = await (0, jose_1.jwtVerify)(token, keyToUse);
|
|
28
|
-
return payload;
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
console.error(`Failed to verify JWT: ${error}`);
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.JwtUtils = JwtUtils;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JwtUtils = void 0;
|
|
4
|
+
const jose_1 = require("jose");
|
|
5
|
+
class JwtUtils {
|
|
6
|
+
config;
|
|
7
|
+
constructor(config) {
|
|
8
|
+
this.config = config;
|
|
9
|
+
}
|
|
10
|
+
async sign(payload, secretKey) {
|
|
11
|
+
try {
|
|
12
|
+
const keyToUse = new TextEncoder().encode(secretKey);
|
|
13
|
+
const jwt = new jose_1.SignJWT(payload)
|
|
14
|
+
.setProtectedHeader({ alg: this.config.algorithm ?? 'HS512' })
|
|
15
|
+
.setIssuedAt()
|
|
16
|
+
.setExpirationTime(Date.now() + (this.config.expirationTime ?? 3600) * 1000);
|
|
17
|
+
return await jwt.sign(keyToUse);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
console.error(`Failed to sign JWT: ${error}`);
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
async verify(token, secretKey) {
|
|
25
|
+
try {
|
|
26
|
+
const keyToUse = new TextEncoder().encode(secretKey);
|
|
27
|
+
const { payload } = await (0, jose_1.jwtVerify)(token, keyToUse);
|
|
28
|
+
return payload;
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
console.error(`Failed to verify JWT: ${error}`);
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.JwtUtils = JwtUtils;
|
|
37
37
|
//# sourceMappingURL=JwtUtils.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class PasswordUtils {
|
|
2
|
-
private readonly iterations;
|
|
3
|
-
constructor(iterations?: number);
|
|
4
|
-
hashPassword(password: string): Promise<string>;
|
|
5
|
-
comparePasswords(password: string, storedHash: string): Promise<boolean>;
|
|
6
|
-
}
|
|
1
|
+
export declare class PasswordUtils {
|
|
2
|
+
private readonly iterations;
|
|
3
|
+
constructor(iterations?: number);
|
|
4
|
+
hashPassword(password: string): Promise<string>;
|
|
5
|
+
comparePasswords(password: string, storedHash: string): Promise<boolean>;
|
|
6
|
+
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PasswordUtils = void 0;
|
|
4
|
-
const crypto_js_1 = require("crypto-js");
|
|
5
|
-
class PasswordUtils {
|
|
6
|
-
iterations;
|
|
7
|
-
constructor(iterations = 600000) {
|
|
8
|
-
this.iterations = iterations;
|
|
9
|
-
}
|
|
10
|
-
async hashPassword(password) {
|
|
11
|
-
const salt = crypto_js_1.lib.WordArray.random(128 / 8); // 128-bit salt is standard
|
|
12
|
-
const hash = (0, crypto_js_1.PBKDF2)(password, salt, {
|
|
13
|
-
keySize: 512 / 32, // 512-bit key
|
|
14
|
-
iterations: this.iterations,
|
|
15
|
-
hasher: crypto_js_1.algo.SHA256,
|
|
16
|
-
});
|
|
17
|
-
return `${crypto_js_1.enc.Hex.stringify(salt)}:${crypto_js_1.enc.Hex.stringify(hash)}`;
|
|
18
|
-
}
|
|
19
|
-
async comparePasswords(password, storedHash) {
|
|
20
|
-
const [saltHex, originalHashHex] = storedHash.split(':');
|
|
21
|
-
if (!saltHex || !originalHashHex) {
|
|
22
|
-
throw new Error("Invalid stored hash format. Expected 'salt:hash'.");
|
|
23
|
-
}
|
|
24
|
-
const salt = crypto_js_1.enc.Hex.parse(saltHex);
|
|
25
|
-
const hash = (0, crypto_js_1.PBKDF2)(password, salt, {
|
|
26
|
-
keySize: 512 / 32,
|
|
27
|
-
iterations: this.iterations,
|
|
28
|
-
hasher: crypto_js_1.algo.SHA256,
|
|
29
|
-
});
|
|
30
|
-
const inputPasswordHashHex = crypto_js_1.enc.Hex.stringify(hash);
|
|
31
|
-
return inputPasswordHashHex === originalHashHex;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.PasswordUtils = PasswordUtils;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PasswordUtils = void 0;
|
|
4
|
+
const crypto_js_1 = require("crypto-js");
|
|
5
|
+
class PasswordUtils {
|
|
6
|
+
iterations;
|
|
7
|
+
constructor(iterations = 600000) {
|
|
8
|
+
this.iterations = iterations;
|
|
9
|
+
}
|
|
10
|
+
async hashPassword(password) {
|
|
11
|
+
const salt = crypto_js_1.lib.WordArray.random(128 / 8); // 128-bit salt is standard
|
|
12
|
+
const hash = (0, crypto_js_1.PBKDF2)(password, salt, {
|
|
13
|
+
keySize: 512 / 32, // 512-bit key
|
|
14
|
+
iterations: this.iterations,
|
|
15
|
+
hasher: crypto_js_1.algo.SHA256,
|
|
16
|
+
});
|
|
17
|
+
return `${crypto_js_1.enc.Hex.stringify(salt)}:${crypto_js_1.enc.Hex.stringify(hash)}`;
|
|
18
|
+
}
|
|
19
|
+
async comparePasswords(password, storedHash) {
|
|
20
|
+
const [saltHex, originalHashHex] = storedHash.split(':');
|
|
21
|
+
if (!saltHex || !originalHashHex) {
|
|
22
|
+
throw new Error("Invalid stored hash format. Expected 'salt:hash'.");
|
|
23
|
+
}
|
|
24
|
+
const salt = crypto_js_1.enc.Hex.parse(saltHex);
|
|
25
|
+
const hash = (0, crypto_js_1.PBKDF2)(password, salt, {
|
|
26
|
+
keySize: 512 / 32,
|
|
27
|
+
iterations: this.iterations,
|
|
28
|
+
hasher: crypto_js_1.algo.SHA256,
|
|
29
|
+
});
|
|
30
|
+
const inputPasswordHashHex = crypto_js_1.enc.Hex.stringify(hash);
|
|
31
|
+
return inputPasswordHashHex === originalHashHex;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.PasswordUtils = PasswordUtils;
|
|
35
35
|
//# sourceMappingURL=PasswordUtils.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
export { EncryptionAlgorithm } from './cryptography/EncryptionAlgorithm';
|
|
2
|
-
export { AlegraConnectionManager as AlegraConnectionManager } from './api/alegra/AlegraConnectionManager';
|
|
3
|
-
export { IAlegraContact as IAlegraContact, IAlegraPayment as IAlegraPayment, IAlegraCategory as IAlegraCategory, IAlegraJournal as IAlegraJournal, IAlegraEntry as IAlegraEntry, IAlegraResult as IAlegraResult } from './api/alegra/AlegraTypes';
|
|
4
|
-
export { ApiServiceError as ApiServiceError, ResponseUtils as ResponseUtils, mapErrorCodeToHttpStatus as mapErrorCodeToHttpStatus, HttpCode as HttpCode } from './api/utils/Response';
|
|
5
|
-
export { ApiResponse as ApiResponse, PaginationMeta as PaginationMeta } from './types/api';
|
|
6
|
-
export { APIServiceConfig as APIServiceConfig, APIService as APIService, APIServiceResponse as APIServiceResponse, ITRMAPIServiceGlobal as ITRMAPIServiceGlobal } from './api/APIService';
|
|
7
|
-
export { HttpsAPIService as HttpsAPIService } from './api/HttpsAPIService';
|
|
8
|
-
export { ExpressConfiguration as ExpressConfiguration } from './api/ExpressConfiguration';
|
|
9
|
-
export { StandardGetRequestBuilder as StandardGetRequestBuilder } from './api/builder/StandardGetRequestBuilder';
|
|
10
|
-
export { ExpressLogableConfig as ExpressLogableConfig } from './api/express/ExpressLogableConfig';
|
|
11
|
-
export { ExpressStandardConfiguration as ExpressStandardConfiguration } from './api/express/ExpressStandardConfiguration';
|
|
12
|
-
export { ExpressFileUploadingConfiguration as ExpressFileUploadingConfiguration } from './api/express/ExpressFileUploadingConfiguration';
|
|
13
|
-
export { ExternalApiConnection as ExternalApiConnection } from './api/external/ExternalApiConnection';
|
|
14
|
-
export { CetusStrategyApiManager as CetusStrategyApiManager, CetusPair as CetusPair, CetusRate as CetusRate, CetusStrategy as CetusStrategy } from './api/external/cetus/CetusStrategyApiManager';
|
|
15
|
-
export { APIRequest as APIRequest, RequestMethod as RequestMethod, RequestContext as RequestContext, GroupedParameters as GroupedParameters, APIRequestConfig as APIRequestConfig, RequestParameterType as RequestParameterType } from './api/APIRequest';
|
|
16
|
-
export { APIRequestBuilder as APIRequestBuilder, DocDetails as DocDetails, ISamples as ISamples } from './api/APIRequestBuilder';
|
|
17
|
-
export { APIRouter as APIRouter } from './api/APIRouter';
|
|
18
|
-
export { SimpleAPIRouter as SimpleAPIRouter } from './api/route/SimpleAPIRouter';
|
|
19
|
-
export { RequestAxiosCall as RequestAxiosCall } from './api/request/RequestAxiosCall';
|
|
20
|
-
export { GetRequest as GetRequest } from './api/request/GetRequest';
|
|
21
|
-
export { PostRequest as PostRequest } from './api/request/PostRequest';
|
|
22
|
-
export { PutRequest as PutRequest } from './api/request/PutRequest';
|
|
23
|
-
export { DeleteRequest as DeleteRequest } from './api/request/DeleteRequest';
|
|
24
|
-
export { CheckableAPIRequest as CheckableAPIRequest } from './api/check/CheckableAPIRequest';
|
|
25
|
-
export { Checkable as Checkable, APICheckResult as APICheckResult, APICheck as APICheck, APIChecker as APIChecker, APICheckConfig as APICheckConfig } from './api/check/APIChecker';
|
|
26
|
-
export { CheckableDeleteRequest as CheckableDeleteRequest } from './api/check/request/CheckableDeleteRequest';
|
|
27
|
-
export { CheckableGetRequest as CheckableGetRequest } from './api/check/request/CheckableGetRequest';
|
|
28
|
-
export { CheckablePostRequest as CheckablePostRequest } from './api/check/request/CheckablePostRequest';
|
|
29
|
-
export { CheckablePutRequest as CheckablePutRequest } from './api/check/request/CheckablePutRequest';
|
|
30
|
-
export { CheckableFileUploadingPostRequest as CheckableFileUploadingPostRequest } from './api/check/request/CheckableFileUploadingPostRequest';
|
|
31
|
-
export { CheckableAPIRouter as CheckableAPIRouter } from './api/check/CheckableAPIRouter';
|
|
32
|
-
export { CorsCheckApiRouter as CorsCheckApiRouter } from './api/check/route/CorsCheckApiRouter';
|
|
33
|
-
export { SimpleCheckableAPIRouter as SimpleCheckableAPIRouter } from './api/check/route/SimpleCheckableAPIRouter';
|
|
34
|
-
export { ActivityHistoryManager as ActivityHistoryManager, IActivityHistory as IActivityHistory, IActivityHistorySearchDetails as IActivityHistorySearchDetails } from "./api/request/crud/common/ActivityHistoryManager";
|
|
35
|
-
export { ApplicationManager as ApplicationManager, IApplication as IApplication, IApplicationSearchDetails as IApplicationSearchDetails, IApplicationDetails as IApplicationDetails } from './api/request/crud/common/ApplicationManager';
|
|
36
|
-
export { AvailablePlatformManager as AvailablePlatformManager, IAvailablePlatform as IAvailablePlatform, IAvailablePlatformSearchDetails as IAvailablePlatformSearchDetails } from './api/request/crud/common/AvailablePlatformManager';
|
|
37
|
-
export { ComponentManager as ComponentManager, IComponent as IComponent, IComponentSearchDetails as IComponentSearchDetails, IComponentDetails as IComponentDetails } from './api/request/crud/common/ComponentManager';
|
|
38
|
-
export { KeyManager as KeyManager, IKey as IKey, IKeySearchDetails as IKeySearchDetails } from "./api/request/crud/common/KeyManager";
|
|
39
|
-
export { PlatformManager as PlatformManager, IPlatform as IPlatform, IPlatformSearchDetails as IPlatformSearchDetails, IPlatformDetails as IPlatformDetails } from "./api/request/crud/common/PlatformManager";
|
|
40
|
-
export { RoleManager as RoleManager, IRole as IRole, IRoleSearchDetails as IRoleSearchDetails } from "./api/request/crud/common/RoleManager";
|
|
41
|
-
export { StatusManager as StatusManager, IStatus as IStatus, IStatusSearchDetails as IStatusSearchDetails } from "./api/request/crud/common/StatusManager";
|
|
42
|
-
export { TypeManager as TypeManager, IType as IType, ITypeSearchDetails as ITypeSearchDetails } from "./api/request/crud/common/TypeManager";
|
|
43
|
-
export { UserCredentialsManager as UserCredentialsManager, IUserCredentials as IUserCredentials, IUserCredentialsSearchDetails as IUserCredentialsSearchDetails } from "./api/request/crud/common/UserCredentialsManager";
|
|
44
|
-
export { UserManager as UserManager, IUser as IUser, IUserSearchDetails as IUserSearchDetails } from "./api/request/crud/common/UserManager";
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
1
|
+
export { EncryptionAlgorithm } from './cryptography/EncryptionAlgorithm';
|
|
2
|
+
export { AlegraConnectionManager as AlegraConnectionManager } from './api/alegra/AlegraConnectionManager';
|
|
3
|
+
export { IAlegraContact as IAlegraContact, IAlegraPayment as IAlegraPayment, IAlegraCategory as IAlegraCategory, IAlegraJournal as IAlegraJournal, IAlegraEntry as IAlegraEntry, IAlegraResult as IAlegraResult } from './api/alegra/AlegraTypes';
|
|
4
|
+
export { ApiServiceError as ApiServiceError, ResponseUtils as ResponseUtils, mapErrorCodeToHttpStatus as mapErrorCodeToHttpStatus, HttpCode as HttpCode } from './api/utils/Response';
|
|
5
|
+
export { ApiResponse as ApiResponse, PaginationMeta as PaginationMeta } from './types/api';
|
|
6
|
+
export { APIServiceConfig as APIServiceConfig, APIService as APIService, APIServiceResponse as APIServiceResponse, ITRMAPIServiceGlobal as ITRMAPIServiceGlobal } from './api/APIService';
|
|
7
|
+
export { HttpsAPIService as HttpsAPIService } from './api/HttpsAPIService';
|
|
8
|
+
export { ExpressConfiguration as ExpressConfiguration } from './api/ExpressConfiguration';
|
|
9
|
+
export { StandardGetRequestBuilder as StandardGetRequestBuilder } from './api/builder/StandardGetRequestBuilder';
|
|
10
|
+
export { ExpressLogableConfig as ExpressLogableConfig } from './api/express/ExpressLogableConfig';
|
|
11
|
+
export { ExpressStandardConfiguration as ExpressStandardConfiguration } from './api/express/ExpressStandardConfiguration';
|
|
12
|
+
export { ExpressFileUploadingConfiguration as ExpressFileUploadingConfiguration } from './api/express/ExpressFileUploadingConfiguration';
|
|
13
|
+
export { ExternalApiConnection as ExternalApiConnection } from './api/external/ExternalApiConnection';
|
|
14
|
+
export { CetusStrategyApiManager as CetusStrategyApiManager, CetusPair as CetusPair, CetusRate as CetusRate, CetusStrategy as CetusStrategy } from './api/external/cetus/CetusStrategyApiManager';
|
|
15
|
+
export { APIRequest as APIRequest, RequestMethod as RequestMethod, RequestContext as RequestContext, GroupedParameters as GroupedParameters, APIRequestConfig as APIRequestConfig, RequestParameterType as RequestParameterType } from './api/APIRequest';
|
|
16
|
+
export { APIRequestBuilder as APIRequestBuilder, DocDetails as DocDetails, ISamples as ISamples } from './api/APIRequestBuilder';
|
|
17
|
+
export { APIRouter as APIRouter } from './api/APIRouter';
|
|
18
|
+
export { SimpleAPIRouter as SimpleAPIRouter } from './api/route/SimpleAPIRouter';
|
|
19
|
+
export { RequestAxiosCall as RequestAxiosCall } from './api/request/RequestAxiosCall';
|
|
20
|
+
export { GetRequest as GetRequest } from './api/request/GetRequest';
|
|
21
|
+
export { PostRequest as PostRequest } from './api/request/PostRequest';
|
|
22
|
+
export { PutRequest as PutRequest } from './api/request/PutRequest';
|
|
23
|
+
export { DeleteRequest as DeleteRequest } from './api/request/DeleteRequest';
|
|
24
|
+
export { CheckableAPIRequest as CheckableAPIRequest } from './api/check/CheckableAPIRequest';
|
|
25
|
+
export { Checkable as Checkable, APICheckResult as APICheckResult, APICheck as APICheck, APIChecker as APIChecker, APICheckConfig as APICheckConfig } from './api/check/APIChecker';
|
|
26
|
+
export { CheckableDeleteRequest as CheckableDeleteRequest } from './api/check/request/CheckableDeleteRequest';
|
|
27
|
+
export { CheckableGetRequest as CheckableGetRequest } from './api/check/request/CheckableGetRequest';
|
|
28
|
+
export { CheckablePostRequest as CheckablePostRequest } from './api/check/request/CheckablePostRequest';
|
|
29
|
+
export { CheckablePutRequest as CheckablePutRequest } from './api/check/request/CheckablePutRequest';
|
|
30
|
+
export { CheckableFileUploadingPostRequest as CheckableFileUploadingPostRequest } from './api/check/request/CheckableFileUploadingPostRequest';
|
|
31
|
+
export { CheckableAPIRouter as CheckableAPIRouter } from './api/check/CheckableAPIRouter';
|
|
32
|
+
export { CorsCheckApiRouter as CorsCheckApiRouter } from './api/check/route/CorsCheckApiRouter';
|
|
33
|
+
export { SimpleCheckableAPIRouter as SimpleCheckableAPIRouter } from './api/check/route/SimpleCheckableAPIRouter';
|
|
34
|
+
export { ActivityHistoryManager as ActivityHistoryManager, IActivityHistory as IActivityHistory, IActivityHistorySearchDetails as IActivityHistorySearchDetails } from "./api/request/crud/common/ActivityHistoryManager";
|
|
35
|
+
export { ApplicationManager as ApplicationManager, IApplication as IApplication, IApplicationSearchDetails as IApplicationSearchDetails, IApplicationDetails as IApplicationDetails } from './api/request/crud/common/ApplicationManager';
|
|
36
|
+
export { AvailablePlatformManager as AvailablePlatformManager, IAvailablePlatform as IAvailablePlatform, IAvailablePlatformSearchDetails as IAvailablePlatformSearchDetails } from './api/request/crud/common/AvailablePlatformManager';
|
|
37
|
+
export { ComponentManager as ComponentManager, IComponent as IComponent, IComponentSearchDetails as IComponentSearchDetails, IComponentDetails as IComponentDetails } from './api/request/crud/common/ComponentManager';
|
|
38
|
+
export { KeyManager as KeyManager, IKey as IKey, IKeySearchDetails as IKeySearchDetails } from "./api/request/crud/common/KeyManager";
|
|
39
|
+
export { PlatformManager as PlatformManager, IPlatform as IPlatform, IPlatformSearchDetails as IPlatformSearchDetails, IPlatformDetails as IPlatformDetails } from "./api/request/crud/common/PlatformManager";
|
|
40
|
+
export { RoleManager as RoleManager, IRole as IRole, IRoleSearchDetails as IRoleSearchDetails } from "./api/request/crud/common/RoleManager";
|
|
41
|
+
export { StatusManager as StatusManager, IStatus as IStatus, IStatusSearchDetails as IStatusSearchDetails } from "./api/request/crud/common/StatusManager";
|
|
42
|
+
export { TypeManager as TypeManager, IType as IType, ITypeSearchDetails as ITypeSearchDetails } from "./api/request/crud/common/TypeManager";
|
|
43
|
+
export { UserCredentialsManager as UserCredentialsManager, IUserCredentials as IUserCredentials, IUserCredentialsSearchDetails as IUserCredentialsSearchDetails } from "./api/request/crud/common/UserCredentialsManager";
|
|
44
|
+
export { UserManager as UserManager, IUser as IUser, IUserSearchDetails as IUserSearchDetails } from "./api/request/crud/common/UserManager";
|
|
45
|
+
export { ServiceSessionManager as ServiceSessionManager } from './api/request/crud/common/ServiceSessionManager';
|
|
46
|
+
export { CrudManager as CrudManager } from './api/request/crud/CrudManager';
|
|
47
|
+
export { CrudServiceManager as CrudServiceManager, StandardIdRequestDefinition as StandardIdRequestDefinition } from './api/request/crud/CrudServiceManager';
|
|
48
|
+
export { CipheringAlgorithm as CipheringAlgorithm } from './cryptography/CipheringAlgorithm';
|
|
49
|
+
export { AesCipheringAlgorithm as AesCipheringAlgorithm } from './cryptography/algorithm/AesCipheringAlgorithm';
|
|
50
|
+
export { StandardKeyGroup as StandardKeyGroup, StandardApiKeyGenerator as StandardApiKeyGenerator } from './cryptography/generate/StandardApiKeyGenerator';
|
|
51
|
+
export { ApiKeySigner as ApiKeySigner } from './cryptography/sign/ApiKeySigner';
|
|
52
|
+
export { PasswordUtils as PasswordUtils } from './cryptography/password/PasswordUtils';
|
|
53
|
+
export { JwtUtils as JwtUtils, CustomJWTPayload as CustomJWTPayload, JwtConfig as JwtConfig } from './cryptography/jwt/JwtUtils';
|
|
54
|
+
export { MongooseModelManager as MongooseModelManager } from './database/mongoose/MongooseModelManager';
|
|
55
|
+
export { SequelizeConnection as SequelizeConnection } from './database/sequelize/SequelizeConnection';
|
|
56
|
+
export { SequelizeModelManager as SequelizeModelManager } from './database/sequelize/SequelizeModelManager';
|
|
57
|
+
export { Logger as Logger } from './log/Logger';
|
|
58
|
+
export { LoggerManager as LoggerManager } from './log/LoggerManager';
|
|
59
|
+
export { LoggerWebSocket as LoggerWebSocket } from './log/LoggerWebSocket';
|
|
60
|
+
export { Coin as Coin } from './web3/Coin';
|
|
61
|
+
export { CoingeckoPriceFinder as CoingeckoPriceFinder } from './web3/coingecko/CoingeckoPriceFinder';
|
|
62
|
+
export { round as round } from './math/Utils';
|
|
63
|
+
export { BANKS as BANKS, DOCUMENT_TYPES as DOCUMENT_TYPES, PAYMENT_TYPES as PAYMENT_TYPES } from './types/payments';
|