@pedro.araujo/ml-architecture-shared 0.1.28 → 0.1.30

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.
Files changed (37) hide show
  1. package/dist/auction-item-user/add-auction-item-users-request.dto.d.ts +7 -0
  2. package/dist/auction-item-user/add-auction-item-users-request.dto.d.ts.map +1 -0
  3. package/dist/auction-item-user/add-auction-item-users-request.dto.js +1 -0
  4. package/dist/auction-item-user/add-auction-item-users-request.schema.d.ts +4 -0
  5. package/dist/auction-item-user/add-auction-item-users-request.schema.d.ts.map +1 -0
  6. package/dist/auction-item-user/add-auction-item-users-request.schema.js +7 -0
  7. package/dist/bid/bid-response.dto.d.ts +7 -0
  8. package/dist/bid/bid-response.dto.d.ts.map +1 -0
  9. package/dist/bid/bid-response.dto.js +1 -0
  10. package/dist/bid/create-bid-request.dto.d.ts +7 -0
  11. package/dist/bid/create-bid-request.dto.d.ts.map +1 -0
  12. package/dist/bid/create-bid-request.dto.js +1 -0
  13. package/dist/bid/create-bid-request.schema.d.ts +4 -0
  14. package/dist/bid/create-bid-request.schema.d.ts.map +1 -0
  15. package/dist/bid/create-bid-request.schema.js +7 -0
  16. package/dist/bid/delete-bid-request.dto.d.ts +5 -0
  17. package/dist/bid/delete-bid-request.dto.d.ts.map +1 -0
  18. package/dist/bid/delete-bid-request.dto.js +1 -0
  19. package/dist/bid/delete-bid-request.schema.d.ts +4 -0
  20. package/dist/bid/delete-bid-request.schema.d.ts.map +1 -0
  21. package/dist/bid/delete-bid-request.schema.js +5 -0
  22. package/dist/bid/get-bids-by-auction-session-request.dto.d.ts +5 -0
  23. package/dist/bid/get-bids-by-auction-session-request.dto.d.ts.map +1 -0
  24. package/dist/bid/get-bids-by-auction-session-request.dto.js +1 -0
  25. package/dist/bid/get-bids-by-auction-session-request.schema.d.ts +4 -0
  26. package/dist/bid/get-bids-by-auction-session-request.schema.d.ts.map +1 -0
  27. package/dist/bid/get-bids-by-auction-session-request.schema.js +5 -0
  28. package/dist/bid/update-bid-request.dto.d.ts +8 -0
  29. package/dist/bid/update-bid-request.dto.d.ts.map +1 -0
  30. package/dist/bid/update-bid-request.dto.js +1 -0
  31. package/dist/bid/update-bid-request.schema.d.ts +4 -0
  32. package/dist/bid/update-bid-request.schema.d.ts.map +1 -0
  33. package/dist/bid/update-bid-request.schema.js +8 -0
  34. package/dist/index.d.ts +11 -4
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +11 -4
  37. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import { AuctionItemUserRole } from "./auction-item-user-role.enum.js";
2
+ export interface AddAuctionItemUsersRequestDTO {
3
+ auctionItemId: number;
4
+ emails: string[];
5
+ role: AuctionItemUserRole;
6
+ }
7
+ //# sourceMappingURL=add-auction-item-users-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-auction-item-users-request.dto.d.ts","sourceRoot":"","sources":["../../src/auction-item-user/add-auction-item-users-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,MAAM,WAAW,6BAA6B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { AddAuctionItemUsersRequestDTO } from "./add-auction-item-users-request.dto.js";
3
+ export declare const AddAuctionItemUsersRequestSchema: z.ZodType<AddAuctionItemUsersRequestDTO>;
4
+ //# sourceMappingURL=add-auction-item-users-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-auction-item-users-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item-user/add-auction-item-users-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAKlF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ import { AuctionItemUserRole } from "./auction-item-user-role.enum.js";
3
+ export const AddAuctionItemUsersRequestSchema = z.object({
4
+ auctionItemId: z.number().int().positive(),
5
+ emails: z.array(z.email()).min(1).max(100),
6
+ role: z.enum(AuctionItemUserRole),
7
+ });
@@ -0,0 +1,7 @@
1
+ export interface BidResponseDTO {
2
+ id: number;
3
+ date: string;
4
+ amount: number;
5
+ note?: string;
6
+ }
7
+ //# sourceMappingURL=bid-response.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bid-response.dto.d.ts","sourceRoot":"","sources":["../../src/bid/bid-response.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface CreateBidRequestDTO {
2
+ auctionSessionId: number;
3
+ date: string;
4
+ amount: number;
5
+ note?: string;
6
+ }
7
+ //# sourceMappingURL=create-bid-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bid-request.dto.d.ts","sourceRoot":"","sources":["../../src/bid/create-bid-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { CreateBidRequestDTO } from "./create-bid-request.dto.js";
3
+ export declare const CreateBidSchema: z.ZodType<CreateBidRequestDTO>;
4
+ //# sourceMappingURL=create-bid-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bid-request.schema.d.ts","sourceRoot":"","sources":["../../src/bid/create-bid-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAMvD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export const CreateBidSchema = z.object({
3
+ auctionSessionId: z.coerce.number().int().positive(),
4
+ date: z.coerce.date().transform((d) => d.toISOString()),
5
+ amount: z.coerce.number().positive(),
6
+ note: z.string().min(1).max(1000).optional(),
7
+ });
@@ -0,0 +1,5 @@
1
+ export interface DeleteBidRequestDTO {
2
+ auctionSessionId: number;
3
+ bidId: number;
4
+ }
5
+ //# sourceMappingURL=delete-bid-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-bid-request.dto.d.ts","sourceRoot":"","sources":["../../src/bid/delete-bid-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { DeleteBidRequestDTO } from "./delete-bid-request.dto.js";
3
+ export declare const DeleteBidSchema: z.ZodType<DeleteBidRequestDTO>;
4
+ //# sourceMappingURL=delete-bid-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-bid-request.schema.d.ts","sourceRoot":"","sources":["../../src/bid/delete-bid-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAIvD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export const DeleteBidSchema = z.object({
3
+ auctionSessionId: z.coerce.number().int().positive(),
4
+ bidId: z.coerce.number().int().positive(),
5
+ });
@@ -0,0 +1,5 @@
1
+ import { PaginationRequestDTO } from "../pagination/pagination-request.dto.js";
2
+ export interface GetBidsByAuctionSessionRequestDTO extends PaginationRequestDTO {
3
+ auctionSessionId: number;
4
+ }
5
+ //# sourceMappingURL=get-bids-by-auction-session-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-bids-by-auction-session-request.dto.d.ts","sourceRoot":"","sources":["../../src/bid/get-bids-by-auction-session-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB;IAC7E,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { GetBidsByAuctionSessionRequestDTO } from "./get-bids-by-auction-session-request.dto.js";
3
+ export declare const GetBidsByAuctionSessionSchema: z.ZodType<GetBidsByAuctionSessionRequestDTO>;
4
+ //# sourceMappingURL=get-bids-by-auction-session-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-bids-by-auction-session-request.schema.d.ts","sourceRoot":"","sources":["../../src/bid/get-bids-by-auction-session-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iCAAiC,EAAE,MAAM,8CAA8C,CAAC;AAGjG,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAGnF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ import { PaginationRequestSchema } from "../pagination/pagination-request.schema.js";
3
+ export const GetBidsByAuctionSessionSchema = PaginationRequestSchema.extend({
4
+ auctionSessionId: z.coerce.number().int().positive(),
5
+ });
@@ -0,0 +1,8 @@
1
+ export interface UpdateBidRequestDTO {
2
+ auctionSessionId: number;
3
+ bidId: number;
4
+ date: string;
5
+ amount: number;
6
+ note?: string;
7
+ }
8
+ //# sourceMappingURL=update-bid-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-bid-request.dto.d.ts","sourceRoot":"","sources":["../../src/bid/update-bid-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { UpdateBidRequestDTO } from "./update-bid-request.dto.js";
3
+ export declare const UpdateBidSchema: z.ZodType<UpdateBidRequestDTO>;
4
+ //# sourceMappingURL=update-bid-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-bid-request.schema.d.ts","sourceRoot":"","sources":["../../src/bid/update-bid-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAOvD,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export const UpdateBidSchema = z.object({
3
+ auctionSessionId: z.coerce.number().int().positive(),
4
+ bidId: z.coerce.number().int().positive(),
5
+ date: z.coerce.date().transform((d) => d.toISOString()),
6
+ amount: z.coerce.number().positive(),
7
+ note: z.string().min(1).max(1000).optional(),
8
+ });
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@ export * from "./auction-item/get-auction-items-view-request.dto.js";
10
10
  export * from "./auction-item/get-auction-items-view-request.schema.js";
11
11
  export * from "./auction-item-status/auction-item-status-response.dto.js";
12
12
  export * from "./auction-item-type/auction-item-type-response.dto.js";
13
- export * from "./auction-item-user/add-auction-item-user-request.dto.js";
14
- export * from "./auction-item-user/add-auction-item-user-request.schema.js";
13
+ export * from "./auction-item-user/add-auction-item-users-request.dto.js";
14
+ export * from "./auction-item-user/add-auction-item-users-request.schema.js";
15
15
  export * from "./auction-item-user/auction-item-user-response.dto.js";
16
16
  export * from "./auction-item-user/auction-item-user-role.enum.js";
17
17
  export * from "./auction-item-user/auction-item-user-role.schema.js";
@@ -20,8 +20,15 @@ export * from "./auction-item-user/remove-auction-item-user-request.schema.js";
20
20
  export * from "./auction-session/auction-session-response.dto.js";
21
21
  export * from "./auction-session-status/auction-session-status-response.dto.js";
22
22
  export * from "./auction-type/auction-type-response.dto.js";
23
- export * from "./bid/get-bids-by-auction-item.dto.js";
24
- export * from "./bid/get-bids-by-auction-item.schema.js";
23
+ export * from "./bid/bid-response.dto.js";
24
+ export * from "./bid/create-bid-request.dto.js";
25
+ export * from "./bid/create-bid-request.schema.js";
26
+ export * from "./bid/delete-bid-request.dto.js";
27
+ export * from "./bid/delete-bid-request.schema.js";
28
+ export * from "./bid/get-bids-by-auction-session-request.dto.js";
29
+ export * from "./bid/get-bids-by-auction-session-request.schema.js";
30
+ export * from "./bid/update-bid-request.dto.js";
31
+ export * from "./bid/update-bid-request.schema.js";
25
32
  export * from "./item-note/create-item-note-request.dto.js";
26
33
  export * from "./item-note/create-item-note-request.schema.js";
27
34
  export * from "./item-note/delete-item-note-request.dto.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAA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.dto.js";
10
10
  export * from "./auction-item/get-auction-items-view-request.schema.js";
11
11
  export * from "./auction-item-status/auction-item-status-response.dto.js";
12
12
  export * from "./auction-item-type/auction-item-type-response.dto.js";
13
- export * from "./auction-item-user/add-auction-item-user-request.dto.js";
14
- export * from "./auction-item-user/add-auction-item-user-request.schema.js";
13
+ export * from "./auction-item-user/add-auction-item-users-request.dto.js";
14
+ export * from "./auction-item-user/add-auction-item-users-request.schema.js";
15
15
  export * from "./auction-item-user/auction-item-user-response.dto.js";
16
16
  export * from "./auction-item-user/auction-item-user-role.enum.js";
17
17
  export * from "./auction-item-user/auction-item-user-role.schema.js";
@@ -20,8 +20,15 @@ export * from "./auction-item-user/remove-auction-item-user-request.schema.js";
20
20
  export * from "./auction-session/auction-session-response.dto.js";
21
21
  export * from "./auction-session-status/auction-session-status-response.dto.js";
22
22
  export * from "./auction-type/auction-type-response.dto.js";
23
- export * from "./bid/get-bids-by-auction-item.dto.js";
24
- export * from "./bid/get-bids-by-auction-item.schema.js";
23
+ export * from "./bid/bid-response.dto.js";
24
+ export * from "./bid/create-bid-request.dto.js";
25
+ export * from "./bid/create-bid-request.schema.js";
26
+ export * from "./bid/delete-bid-request.dto.js";
27
+ export * from "./bid/delete-bid-request.schema.js";
28
+ export * from "./bid/get-bids-by-auction-session-request.dto.js";
29
+ export * from "./bid/get-bids-by-auction-session-request.schema.js";
30
+ export * from "./bid/update-bid-request.dto.js";
31
+ export * from "./bid/update-bid-request.schema.js";
25
32
  export * from "./item-note/create-item-note-request.dto.js";
26
33
  export * from "./item-note/create-item-note-request.schema.js";
27
34
  export * from "./item-note/delete-item-note-request.dto.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedro.araujo/ml-architecture-shared",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",