@nomalism-com/types 0.32.8 → 0.32.10
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
1
|
import * as Users from '../users/interface';
|
|
3
2
|
export interface ICreateRequest {
|
|
4
3
|
account: string;
|
|
@@ -6,7 +5,7 @@ export interface ICreateRequest {
|
|
|
6
5
|
}
|
|
7
6
|
export interface ICreateResponse {
|
|
8
7
|
access_token: string;
|
|
9
|
-
user: Users.
|
|
8
|
+
user: Users.IFindByAccountResponse;
|
|
10
9
|
refresh_token: string;
|
|
11
10
|
roles: string[];
|
|
12
11
|
expiresInToken: number;
|
|
@@ -15,4 +14,6 @@ export interface ICreateResponse {
|
|
|
15
14
|
export interface IRepository {
|
|
16
15
|
create(data: ICreateRequest): Promise<ICreateResponse>;
|
|
17
16
|
}
|
|
18
|
-
export
|
|
17
|
+
export interface IController {
|
|
18
|
+
create(data: ICreateRequest, ip: string): Promise<ICreateResponse>;
|
|
19
|
+
}
|
|
@@ -10,10 +10,10 @@ interface IMainPersona extends Persona {
|
|
|
10
10
|
reason_for_exemption: ReasonForExemption | null;
|
|
11
11
|
}
|
|
12
12
|
interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id'> {
|
|
13
|
-
main_persona: Pick<Persona, 'name'>;
|
|
13
|
+
main_persona: Pick<Persona, 'name' | 'email'>;
|
|
14
14
|
theme: Pick<Theme, 'colors'>;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface IFindByAccountResponse extends Pick<Entity, 'id' | 'account'> {
|
|
17
17
|
store_operator: IStoreOperator;
|
|
18
18
|
}
|
|
19
19
|
export interface IFindByIdResponse extends EntityWithoutPassword {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.32.
|
|
12
|
+
"version": "0.32.10",
|
|
13
13
|
"main": "./dist/index.min.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
41
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
42
|
-
"@types/node": "^22.13.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
42
|
+
"@types/node": "^22.13.9",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.26.0",
|
|
45
45
|
"eslint": "^9.21.0",
|
|
46
46
|
"eslint-config-prettier": "^10.0.2",
|
|
47
47
|
"eslint-import-resolver-typescript": "^3.8.3",
|