@konplit-services/common 1.0.30 → 1.0.32
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/build/events/accounts-events/interfaces/account-created.interface.d.ts +1 -1
- package/build/events/accounts-events/interfaces/account-updated.interface.d.ts +1 -1
- package/build/events/accounts-events/interfaces/user-created.interface.d.ts +1 -1
- package/build/events/accounts-events/interfaces/user-updated.interface.d.ts +1 -1
- package/build/redis/constants/index.d.ts +2 -0
- package/build/redis/constants/index.js +5 -1
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const REDIS_REPOSITORY = "RedisRepository";
|
|
2
|
+
export declare const setVerificationCode: (email: string) => string;
|
|
3
|
+
export declare const getVerificationCode: (email: string) => string;
|
|
2
4
|
export declare const getPermissions: (id: string) => string;
|
|
3
5
|
export declare const setPermissions: (id: string) => string;
|
|
4
6
|
export declare const checkRevokedToken: (id: string, token: string) => string;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setsetRevokedToken = exports.checkRevokedToken = exports.setPermissions = exports.getPermissions = exports.REDIS_REPOSITORY = void 0;
|
|
3
|
+
exports.setsetRevokedToken = exports.checkRevokedToken = exports.setPermissions = exports.getPermissions = exports.getVerificationCode = exports.setVerificationCode = exports.REDIS_REPOSITORY = void 0;
|
|
4
4
|
exports.REDIS_REPOSITORY = "RedisRepository";
|
|
5
|
+
const setVerificationCode = (email) => `${email}-verification`;
|
|
6
|
+
exports.setVerificationCode = setVerificationCode;
|
|
7
|
+
const getVerificationCode = (email) => `${email}-verification`;
|
|
8
|
+
exports.getVerificationCode = getVerificationCode;
|
|
5
9
|
const getPermissions = (id) => `${id}-permission`;
|
|
6
10
|
exports.getPermissions = getPermissions;
|
|
7
11
|
const setPermissions = (id) => `${id}-permission`;
|