akeyless-server-commons 1.0.1 → 1.0.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/dist/cjs/helpers/login_helpers.d.ts +1 -2
- package/dist/cjs/helpers/login_helpers.js.map +1 -1
- package/dist/cjs/types/types/global.d.ts +2 -2
- package/dist/esm/helpers/login_helpers.d.ts +1 -2
- package/dist/esm/helpers/login_helpers.js.map +1 -1
- package/dist/esm/types/types/global.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NxUser,
|
|
1
|
+
import { NxUser, DefaultClient } from "akeyless-types-commons";
|
|
2
2
|
export declare const convert_to_short_phone_number: (phone_number: string) => string;
|
|
3
3
|
interface Users {
|
|
4
|
-
installer?: Installer;
|
|
5
4
|
nx_user?: NxUser;
|
|
6
5
|
}
|
|
7
6
|
export declare const get_users_by_phone: (phone_number: string, default_client_key?: DefaultClient) => Promise<Users>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login_helpers.js","sourceRoot":"","sources":["../../../src/helpers/login_helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"login_helpers.js","sourceRoot":"","sources":["../../../src/helpers/login_helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,yDAA6E;AAEtE,MAAM,6BAA6B,GAAG,CAAC,YAAoB,EAAU,EAAE;IAC1E,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,6BAA6B,iCAExC;AAIK,MAAM,kBAAkB,GAAG,4BAAwG,EAAE,mEAAnG,YAAoB,EAAE,qBAAoC,sCAAa,CAAC,OAAO;IACpH,IAAI,OAAO,CAAC;IAEZ,MAAM,SAAS,GAAkB,MAAM,IAAA,0CAAuB,EAAC,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE;QAC7F,IAAA,qCAA6B,EAAC,YAAY,CAAC;QAC3C,YAAY;KACf,CAAC,CAAC;IACH,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,MAAM,gBAAgB,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACZ,OAAO,GAAG,SAAS,CAAC;IACxB,CAAC;IACD,OAAO;QACH,OAAO;KACV,CAAC;AACN,CAAC,CAAA,CAAC;AAjBW,QAAA,kBAAkB,sBAiB7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response, Express, NextFunction } from "express";
|
|
2
|
-
import {
|
|
2
|
+
import { NxUser, TObject } from "akeyless-types-commons";
|
|
3
3
|
export type JsonOK<T> = (data?: T) => {
|
|
4
4
|
success: true;
|
|
5
5
|
data: T | undefined;
|
|
@@ -12,4 +12,4 @@ export type MainRouter = (app: Express) => void;
|
|
|
12
12
|
export type MW = (req: Request, res: Response, next: NextFunction) => void;
|
|
13
13
|
export type Service = (req: Request, res: Response) => void;
|
|
14
14
|
export type Route = (req: Request, res: Response, next?: NextFunction) => Response;
|
|
15
|
-
export type AddAuditRecord = (action: string, entity: string, details: TObject<any>, user?:
|
|
15
|
+
export type AddAuditRecord = (action: string, entity: string, details: TObject<any>, user?: NxUser) => Promise<void>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NxUser,
|
|
1
|
+
import { NxUser, DefaultClient } from "akeyless-types-commons";
|
|
2
2
|
export declare const convert_to_short_phone_number: (phone_number: string) => string;
|
|
3
3
|
interface Users {
|
|
4
|
-
installer?: Installer;
|
|
5
4
|
nx_user?: NxUser;
|
|
6
5
|
}
|
|
7
6
|
export declare const get_users_by_phone: (phone_number: string, default_client_key?: DefaultClient) => Promise<Users>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login_helpers.js","sourceRoot":"","sources":["../../../src/helpers/login_helpers.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"login_helpers.js","sourceRoot":"","sources":["../../../src/helpers/login_helpers.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAkB,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,YAAoB,EAAU,EAAE;IAC1E,OAAO,IAAI,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC/C,CAAC,CAAC;AAIF,MAAM,CAAC,MAAM,kBAAkB,GAAG,4BAAwG,EAAE,mEAAnG,YAAoB,EAAE,qBAAoC,aAAa,CAAC,OAAO;IACpH,IAAI,OAAO,CAAC;IAEZ,MAAM,SAAS,GAAkB,MAAM,uBAAuB,CAAC,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE;QAC7F,6BAA6B,CAAC,YAAY,CAAC;QAC3C,YAAY;KACf,CAAC,CAAC;IACH,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,MAAM,gBAAgB,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS,EAAE,CAAC;QACZ,OAAO,GAAG,SAAS,CAAC;IACxB,CAAC;IACD,OAAO;QACH,OAAO;KACV,CAAC;AACN,CAAC,CAAA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response, Express, NextFunction } from "express";
|
|
2
|
-
import {
|
|
2
|
+
import { NxUser, TObject } from "akeyless-types-commons";
|
|
3
3
|
export type JsonOK<T> = (data?: T) => {
|
|
4
4
|
success: true;
|
|
5
5
|
data: T | undefined;
|
|
@@ -12,4 +12,4 @@ export type MainRouter = (app: Express) => void;
|
|
|
12
12
|
export type MW = (req: Request, res: Response, next: NextFunction) => void;
|
|
13
13
|
export type Service = (req: Request, res: Response) => void;
|
|
14
14
|
export type Route = (req: Request, res: Response, next?: NextFunction) => Response;
|
|
15
|
-
export type AddAuditRecord = (action: string, entity: string, details: TObject<any>, user?:
|
|
15
|
+
export type AddAuditRecord = (action: string, entity: string, details: TObject<any>, user?: NxUser) => Promise<void>;
|