@volontariapp/contracts 3.0.10 → 3.1.0
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/event/request/event.request.d.ts +20 -0
- package/dist/gateway/event/request/event.request.d.ts.map +1 -0
- package/dist/gateway/event/request/event.request.js +2 -0
- package/dist/gateway/event/request/event.request.js.map +1 -0
- package/dist/gateway/event/response/event.response.d.ts +22 -0
- package/dist/gateway/event/response/event.response.d.ts.map +1 -0
- package/dist/gateway/event/response/event.response.js +2 -0
- package/dist/gateway/event/response/event.response.js.map +1 -0
- package/dist/gateway/index.d.ts +7 -0
- package/dist/gateway/index.d.ts.map +1 -0
- package/dist/gateway/index.js +7 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/post/request/post.request.d.ts +9 -0
- package/dist/gateway/post/request/post.request.d.ts.map +1 -0
- package/dist/gateway/post/request/post.request.js +2 -0
- package/dist/gateway/post/request/post.request.js.map +1 -0
- package/dist/gateway/post/response/post.response.d.ts +9 -0
- package/dist/gateway/post/response/post.response.d.ts.map +1 -0
- package/dist/gateway/post/response/post.response.js +2 -0
- package/dist/gateway/post/response/post.response.js.map +1 -0
- package/dist/gateway/user/request/user.request.d.ts +9 -0
- package/dist/gateway/user/request/user.request.d.ts.map +1 -0
- package/dist/gateway/user/request/user.request.js +2 -0
- package/dist/gateway/user/request/user.request.js.map +1 -0
- package/dist/gateway/user/response/user.response.d.ts +9 -0
- package/dist/gateway/user/response/user.response.d.ts.map +1 -0
- package/dist/gateway/user/response/user.response.js +2 -0
- package/dist/gateway/user/response/user.response.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CreateEventCommand, CreateTagCommand, UpdateTagCommand } from '../../../event/event.command.js';
|
|
2
|
+
import type { SearchEventsQuery } from '../../../event/event.query.js';
|
|
3
|
+
export interface CreateEventRequest extends CreateEventCommand {
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateEventRequest extends Partial<CreateEventCommand> {
|
|
6
|
+
}
|
|
7
|
+
export interface SearchEventsRequest extends Partial<SearchEventsQuery> {
|
|
8
|
+
}
|
|
9
|
+
export interface ManageRequirementRequest {
|
|
10
|
+
type: 'ADD' | 'REMOVE';
|
|
11
|
+
name?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
neededQuantity?: number;
|
|
14
|
+
requirementId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CreateTagRequest extends CreateTagCommand {
|
|
17
|
+
}
|
|
18
|
+
export interface UpdateTagRequest extends Partial<UpdateTagCommand> {
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=event.request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/event/request/event.request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMvE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;CAAG;AAOjE,MAAM,WAAW,kBAAmB,SAAQ,OAAO,CAAC,kBAAkB,CAAC;CAAG;AAK1E,MAAM,WAAW,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,CAAC;CAAG;AAK1E,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;CAAG;AAC7D,MAAM,WAAW,gBAAiB,SAAQ,OAAO,CAAC,gBAAgB,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.request.js","sourceRoot":"","sources":["../../../../src/gateway/event/request/event.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Event, Tag, Requirement } from '../../../event/event.js';
|
|
2
|
+
export interface EventWebResponse {
|
|
3
|
+
event: Event;
|
|
4
|
+
}
|
|
5
|
+
export interface ListEventsWebResponse {
|
|
6
|
+
events: Event[];
|
|
7
|
+
totalCount: number;
|
|
8
|
+
}
|
|
9
|
+
export interface TagWebResponse {
|
|
10
|
+
tag: Tag;
|
|
11
|
+
}
|
|
12
|
+
export interface ListTagsWebResponse {
|
|
13
|
+
tags: Tag[];
|
|
14
|
+
}
|
|
15
|
+
export interface ListRequirementsWebResponse {
|
|
16
|
+
requirements: Requirement[];
|
|
17
|
+
}
|
|
18
|
+
export interface ActionSuccessWebResponse {
|
|
19
|
+
success: boolean;
|
|
20
|
+
message?: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=event.response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/event/response/event.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,GAAG,CAAC;CACV;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,GAAG,EAAE,CAAC;CACb;AAED,MAAM,WAAW,2BAA2B;IAC1C,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.response.js","sourceRoot":"","sources":["../../../../src/gateway/event/response/event.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './event/request/event.request.js';
|
|
2
|
+
export * from './event/response/event.response.js';
|
|
3
|
+
export * from './user/request/user.request.js';
|
|
4
|
+
export * from './user/response/user.response.js';
|
|
5
|
+
export * from './post/request/post.request.js';
|
|
6
|
+
export * from './post/response/post.response.js';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gateway/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AAGjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './event/request/event.request.js';
|
|
2
|
+
export * from './event/response/event.response.js';
|
|
3
|
+
export * from './user/request/user.request.js';
|
|
4
|
+
export * from './user/response/user.response.js';
|
|
5
|
+
export * from './post/request/post.request.js';
|
|
6
|
+
export * from './post/response/post.response.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gateway/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AAGjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CreatePostCommand, UpdatePostCommand } from '../../../post/post.command.js';
|
|
2
|
+
import type { ListPostsQuery } from '../../../post/post.query.js';
|
|
3
|
+
export interface CreatePostRequest extends CreatePostCommand {
|
|
4
|
+
}
|
|
5
|
+
export interface UpdatePostRequest extends Partial<Omit<UpdatePostCommand, 'id'>> {
|
|
6
|
+
}
|
|
7
|
+
export interface ListPostsRequest extends Partial<ListPostsQuery> {
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=post.request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.request.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/request/post.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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.request.js","sourceRoot":"","sources":["../../../../src/gateway/post/request/post.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.response.d.ts","sourceRoot":"","sources":["../../../../src/gateway/post/response/post.response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.response.js","sourceRoot":"","sources":["../../../../src/gateway/post/response/post.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
5
|
+
export interface UpdateUserRequest extends Partial<Omit<UpdateUserCommand, 'id'>> {
|
|
6
|
+
}
|
|
7
|
+
export interface ListUsersRequest extends Partial<ListUsersQuery> {
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=user.request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.request.js","sourceRoot":"","sources":["../../../../src/gateway/user/request/user.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +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;AAElD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.response.js","sourceRoot":"","sources":["../../../../src/gateway/user/response/user.response.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|