@volontariapp/contracts 3.3.3-next.20260417093633 → 3.3.3

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,21 +1,9 @@
1
- import type { SignUpCommand, UpdateUserCommand } from '../../../user/user.command.js';
2
- import type { GetUserQuery, ListUsersQuery } from '../../../user/user.query.js';
3
- export interface SignUpRequest extends SignUpCommand {
1
+ import type { CreateUserCommand, UpdateUserCommand } from '../../../user/user.command.js';
2
+ import type { ListUsersQuery } from '../../../user/user.query.js';
3
+ export interface CreateUserRequest extends CreateUserCommand {
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 Partial<GetUserQuery> {
10
- }
11
- export interface DeleteUserRequest {
12
- userId: string;
13
- }
14
- export interface LoginRequest {
15
- email: string;
16
- password: string;
17
- }
18
- export interface RefreshTokenRequest {
19
- refreshToken: string;
20
- }
21
9
  //# 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,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACtF,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,OAAO,CAAC,YAAY,CAAC;CAAG;AAEhE,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"}
1
+ {"version":3,"file":"user.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/user/request/user.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAKlE,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;CAAG;AAM/D,MAAM,WAAW,iBAAkB,SAAQ,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;CAAG;AAKpF,MAAM,WAAW,gBAAiB,SAAQ,OAAO,CAAC,cAAc,CAAC;CAAG"}
@@ -5,27 +5,7 @@ export interface UserWebResponse {
5
5
  }
6
6
  export interface ListUsersWebResponse {
7
7
  users: User[];
8
+ totalCount: number;
8
9
  pagination: PaginationResponse;
9
10
  }
10
- export interface GetUserWebResponse {
11
- user: User;
12
- }
13
- export interface DeleteUserWebResponse {
14
- }
15
- export interface UpdateUserWebResponse {
16
- }
17
- export interface AuthWebResponse {
18
- accessToken: string;
19
- refreshToken: string;
20
- }
21
- export interface LoginWebResponse {
22
- auth: AuthWebResponse;
23
- }
24
- export interface RefreshTokenWebResponse {
25
- auth: AuthWebResponse;
26
- }
27
- export interface SignUpWebResponse {
28
- user: User;
29
- auth: AuthWebResponse;
30
- }
31
11
  //# 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,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,qBAAqB;CACrC;AAED,MAAM,WAAW,qBAAqB;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,eAAe,CAAC;CACvB"}
1
+ {"version":3,"file":"user.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/user/response/user.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,kBAAkB,CAAC;CAChC"}
@@ -1,32 +1,18 @@
1
- import { OrganisationInfo } from "./user.js";
2
- export interface SignUpCommand {
1
+ export interface CreateUserCommand {
3
2
  email: string;
3
+ firstName: string;
4
+ lastName: string;
4
5
  password: string;
5
- phone?: string | undefined;
6
- pseudo?: string | undefined;
7
- bio?: string | undefined;
8
- logoPath?: string | undefined;
9
- organisationInfo?: OrganisationInfo | undefined;
6
+ role: string;
10
7
  }
11
8
  export interface UpdateUserCommand {
12
- userId: string;
9
+ id: string;
13
10
  email?: string | undefined;
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;
11
+ firstName?: string | undefined;
12
+ lastName?: string | undefined;
13
+ role?: string | undefined;
21
14
  }
22
15
  export interface DeleteUserCommand {
23
- userId: string;
24
- }
25
- export interface LoginCommand {
26
- email: string;
27
- password: string;
28
- }
29
- export interface RefreshTokenCommand {
30
- refreshToken: string;
16
+ id: string;
31
17
  }
32
18
  //# 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":"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"}
1
+ {"version":3,"file":"user.command.d.ts","sourceRoot":"","sources":["../../src/user/user.command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -1,24 +1,8 @@
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
- }
13
1
  export interface User {
14
2
  id: string;
15
3
  email: string;
16
- pseudo: string;
17
- bio?: string | undefined;
4
+ firstName: string;
5
+ lastName: string;
18
6
  role: string;
19
- logoPath?: string | undefined;
20
- totalImpactScore: number;
21
- organisationInfo?: OrganisationInfo | undefined;
22
- badges: Badge[];
23
7
  }
24
8
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user/user.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,6 +1,6 @@
1
1
  import { PaginationRequest } from "../common/pagination.js";
2
- export interface GetUserQuery {
3
- userId: string;
2
+ export interface UserQuery {
3
+ id: string;
4
4
  }
5
5
  export interface ListUsersQuery {
6
6
  pagination: PaginationRequest | undefined;
@@ -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,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C"}
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,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3C"}
@@ -1,28 +1,19 @@
1
1
  import { PaginationResponse } from "../common/pagination.js";
2
2
  import { User } from "./user.js";
3
- export interface UserResponse {
3
+ export interface GetUserResponse {
4
4
  user: User | undefined;
5
5
  }
6
- export interface SignUpResponse {
6
+ export interface CreateUserResponse {
7
+ user: User | undefined;
8
+ }
9
+ export interface UpdateUserResponse {
7
10
  user: User | undefined;
8
- auth: AuthResponse | undefined;
9
11
  }
10
12
  export interface ListUsersResponse {
11
13
  users: User[];
12
14
  pagination: PaginationResponse | undefined;
13
15
  }
14
- export interface UpdateUserResponse {
15
- }
16
16
  export interface DeleteUserResponse {
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;
17
+ success: boolean;
27
18
  }
28
19
  //# 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,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"}
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,eAAe;IAC9B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/contracts",
3
- "version": "3.3.3-next.20260417093633",
3
+ "version": "3.3.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true