@volontariapp/contracts 3.3.3 → 3.3.4-next.20260417130257
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/gateway/user/request/user.request.d.ts +11 -3
- package/dist/gateway/user/request/user.request.d.ts.map +1 -1
- package/dist/gateway/user/response/user.response.d.ts +18 -9
- package/dist/gateway/user/response/user.response.d.ts.map +1 -1
- package/dist/user/user.command.d.ts +23 -9
- package/dist/user/user.command.d.ts.map +1 -1
- package/dist/user/user.d.ts +18 -2
- package/dist/user/user.d.ts.map +1 -1
- package/dist/user/user.query.d.ts +2 -2
- package/dist/user/user.query.d.ts.map +1 -1
- package/dist/user/user.responses.d.ts +15 -6
- package/dist/user/user.responses.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ListUsersQuery } from '../../../user/user.query.js';
|
|
3
|
-
export interface
|
|
1
|
+
import type { DeleteUserCommand, LoginCommand, RefreshTokenCommand, SignUpCommand, UpdateUserCommand } from '../../../user/user.command.js';
|
|
2
|
+
import type { GetUserQuery, ListUsersQuery } from '../../../user/user.query.js';
|
|
3
|
+
export interface SignUpRequest extends SignUpCommand {
|
|
4
4
|
}
|
|
5
5
|
export interface UpdateUserRequest extends Partial<Omit<UpdateUserCommand, 'id'>> {
|
|
6
6
|
}
|
|
7
7
|
export interface ListUsersRequest extends Partial<ListUsersQuery> {
|
|
8
8
|
}
|
|
9
|
+
export interface GetUserRequest extends GetUserQuery {
|
|
10
|
+
}
|
|
11
|
+
export interface DeleteUserRequest extends DeleteUserCommand {
|
|
12
|
+
}
|
|
13
|
+
export interface LoginRequest extends LoginCommand {
|
|
14
|
+
}
|
|
15
|
+
export interface RefreshTokenRequest extends RefreshTokenCommand {
|
|
16
|
+
}
|
|
9
17
|
//# sourceMappingURL=user.request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/user/request/user.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"user.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/user/request/user.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAKhF,MAAM,WAAW,aAAc,SAAQ,aAAa;CAAG;AAMvD,MAAM,WAAW,iBAAkB,SAAQ,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;CAAG;AAKpF,MAAM,WAAW,gBAAiB,SAAQ,OAAO,CAAC,cAAc,CAAC;CAAG;AAEpE,MAAM,WAAW,cAAe,SAAQ,YAAY;CAAG;AAEvD,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;CAAG;AAE/D,MAAM,WAAW,YAAa,SAAQ,YAAY;CAAG;AAErD,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;CAAG"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { DeleteUserResponse, ListUsersResponse, UserResponse, AuthResponse, LoginResponse, RefreshTokenResponse, SignUpResponse, UpdateUserResponse } from '../../../user/user.responses.js';
|
|
2
|
+
export interface UserWebResponse extends UserResponse {
|
|
3
|
+
}
|
|
4
|
+
export interface ListUsersWebResponse extends ListUsersResponse {
|
|
5
|
+
}
|
|
6
|
+
export interface GetUserWebResponse extends UserResponse {
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteUserWebResponse extends DeleteUserResponse {
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateUserWebResponse extends UpdateUserResponse {
|
|
11
|
+
}
|
|
12
|
+
export interface AuthWebResponse extends AuthResponse {
|
|
13
|
+
}
|
|
14
|
+
export interface LoginWebResponse extends LoginResponse {
|
|
15
|
+
}
|
|
16
|
+
export interface RefreshTokenWebResponse extends RefreshTokenResponse {
|
|
17
|
+
}
|
|
18
|
+
export interface SignUpWebResponse extends SignUpResponse {
|
|
10
19
|
}
|
|
11
20
|
//# sourceMappingURL=user.response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/user/response/user.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"user.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/user/response/user.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAC/D,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,cAAc,EACjE,kBAAkB,EAClB,MAAM,iCAAiC,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG;AAExD,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;CAAG;AAElE,MAAM,WAAW,kBAAmB,SAAQ,YAAY;CAAG;AAE3D,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;CAAG;AAEpE,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;CAAG;AAEpE,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG;AAExD,MAAM,WAAW,gBAAiB,SAAQ,aAAa;CAAG;AAE1D,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;CAAG;AAExE,MAAM,WAAW,iBAAkB,SAAQ,cAAc;CAAG"}
|
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import { OrganisationInfo } from "./user.js";
|
|
2
|
+
export interface SignUpCommand {
|
|
2
3
|
email: string;
|
|
3
|
-
firstName: string;
|
|
4
|
-
lastName: string;
|
|
5
4
|
password: string;
|
|
6
|
-
|
|
5
|
+
phone?: string | undefined;
|
|
6
|
+
pseudo?: string | undefined;
|
|
7
|
+
bio?: string | undefined;
|
|
8
|
+
logoPath?: string | undefined;
|
|
9
|
+
organisationInfo?: OrganisationInfo | undefined;
|
|
7
10
|
}
|
|
8
11
|
export interface UpdateUserCommand {
|
|
9
|
-
|
|
12
|
+
userId: string;
|
|
10
13
|
email?: string | undefined;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
previousPassword?: string | undefined;
|
|
15
|
+
newPassword?: string | undefined;
|
|
16
|
+
phone?: string | undefined;
|
|
17
|
+
pseudo?: string | undefined;
|
|
18
|
+
bio?: string | undefined;
|
|
19
|
+
logoPath?: string | undefined;
|
|
20
|
+
organisationInfo?: OrganisationInfo | undefined;
|
|
14
21
|
}
|
|
15
22
|
export interface DeleteUserCommand {
|
|
16
|
-
|
|
23
|
+
userId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface LoginCommand {
|
|
26
|
+
email: string;
|
|
27
|
+
password: string;
|
|
28
|
+
}
|
|
29
|
+
export interface RefreshTokenCommand {
|
|
30
|
+
refreshToken: string;
|
|
17
31
|
}
|
|
18
32
|
//# sourceMappingURL=user.command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.command.d.ts","sourceRoot":"","sources":["../../src/user/user.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.command.d.ts","sourceRoot":"","sources":["../../src/user/user.command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
package/dist/user/user.d.ts
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
2
|
+
export interface OrganisationInfo {
|
|
3
|
+
rna: string;
|
|
4
|
+
}
|
|
5
|
+
export interface Badge {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
iconPath?: string | undefined;
|
|
10
|
+
description: string;
|
|
11
|
+
awardedAt: Timestamp | undefined;
|
|
12
|
+
}
|
|
1
13
|
export interface User {
|
|
2
14
|
id: string;
|
|
3
15
|
email: string;
|
|
4
|
-
|
|
5
|
-
|
|
16
|
+
pseudo: string;
|
|
17
|
+
bio?: string | undefined;
|
|
6
18
|
role: string;
|
|
19
|
+
logoPath?: string | undefined;
|
|
20
|
+
totalImpactScore: number;
|
|
21
|
+
organisationInfo?: OrganisationInfo | undefined;
|
|
22
|
+
badges: Badge[];
|
|
7
23
|
}
|
|
8
24
|
//# sourceMappingURL=user.d.ts.map
|
package/dist/user/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user/user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user/user.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.query.d.ts","sourceRoot":"","sources":["../../src/user/user.query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"user.query.d.ts","sourceRoot":"","sources":["../../src/user/user.query.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C"}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { PaginationResponse } from "../common/pagination.js";
|
|
2
2
|
import { User } from "./user.js";
|
|
3
|
-
export interface
|
|
3
|
+
export interface UserResponse {
|
|
4
4
|
user: User | undefined;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
7
|
-
user: User | undefined;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateUserResponse {
|
|
6
|
+
export interface SignUpResponse {
|
|
10
7
|
user: User | undefined;
|
|
8
|
+
auth: AuthResponse | undefined;
|
|
11
9
|
}
|
|
12
10
|
export interface ListUsersResponse {
|
|
13
11
|
users: User[];
|
|
14
12
|
pagination: PaginationResponse | undefined;
|
|
15
13
|
}
|
|
14
|
+
export interface UpdateUserResponse {
|
|
15
|
+
}
|
|
16
16
|
export interface DeleteUserResponse {
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
export interface AuthResponse {
|
|
19
|
+
accessToken: string;
|
|
20
|
+
refreshToken: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LoginResponse {
|
|
23
|
+
auth: AuthResponse | undefined;
|
|
24
|
+
}
|
|
25
|
+
export interface RefreshTokenResponse {
|
|
26
|
+
auth: AuthResponse | undefined;
|
|
18
27
|
}
|
|
19
28
|
//# sourceMappingURL=user.responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.responses.d.ts","sourceRoot":"","sources":["../../src/user/user.responses.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"user.responses.d.ts","sourceRoot":"","sources":["../../src/user/user.responses.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,kBAAkB;CAClC;AAED,MAAM,WAAW,kBAAkB;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;CAChC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volontariapp/contracts",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4-next.20260417130257",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typescript": "5.7.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@volontariapp/logger": "0.2.
|
|
42
|
+
"@volontariapp/logger": "0.2.3-next.20260417130257",
|
|
43
43
|
"protobufjs": "7.5.3"
|
|
44
44
|
}
|
|
45
45
|
}
|