@pedro.araujo/ml-architecture-shared 0.1.21 → 0.1.23

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,15 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export const CreateAuctionItemSchema = z.object({
3
3
  title: z.string().min(2).max(255),
4
- auctionLink: z.url(),
4
+ auctionLink: z.url().max(2048),
5
5
  itemTypeId: z.number().int().positive(),
6
6
  auctionTypeId: z.number().int().positive(),
7
7
  authorityId: z.number().int().nullable(),
8
8
  sessions: z.array(z.iso.datetime()).min(1).max(3),
9
- jurisdiction: z.string().nullable(),
10
- appraisalValue: z.number().nullable(),
11
- minimumBid: z.number().nullable(),
12
- notes: z.string().nullable(),
13
- photoUrl: z.url().nullable(),
14
- collaboratorsEmails: z.array(z.email()).nullable(),
9
+ jurisdiction: z.string().max(100).nullable(),
10
+ appraisalValue: z.number().positive().nullable(),
11
+ minimumBid: z.number().positive().nullable(),
12
+ notes: z.string().max(2000).nullable(),
13
+ photoUrl: z.url().max(2048).nullable(),
14
+ collaboratorsEmails: z.array(z.email()).max(10).nullable(),
15
15
  });
@@ -0,0 +1,5 @@
1
+ import { PaginationRequestDTO } from "../pagination/pagination-request.dto.js";
2
+ export interface GetBidsByAuctionItemRequestDTO extends PaginationRequestDTO {
3
+ auctionItemId: number;
4
+ }
5
+ //# sourceMappingURL=get-bids-by-auction-item.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-bids-by-auction-item.dto.d.ts","sourceRoot":"","sources":["../../src/bid/get-bids-by-auction-item.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,MAAM,WAAW,8BAA+B,SAAQ,oBAAoB;IAC1E,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { GetBidsByAuctionItemRequestDTO } from "./get-bids-by-auction-item.dto.js";
3
+ export declare const GetBidsByAuctionItemSchema: z.ZodType<GetBidsByAuctionItemRequestDTO>;
4
+ //# sourceMappingURL=get-bids-by-auction-item.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-bids-by-auction-item.schema.d.ts","sourceRoot":"","sources":["../../src/bid/get-bids-by-auction-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AAEnF,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAG7E,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ import { PaginationRequestSchema } from "../pagination/pagination-request.schema.js";
3
+ export const GetBidsByAuctionItemSchema = PaginationRequestSchema.extend({
4
+ auctionItemId: z.coerce.number().int().positive(),
5
+ });
package/dist/index.d.ts CHANGED
@@ -14,8 +14,12 @@ export * from "./auction-item-user/auction-item-user-role.schema.js";
14
14
  export * from "./auction-session/auction-session-response.dto.js";
15
15
  export * from "./auction-session-status/auction-session-status-response.dto.js";
16
16
  export * from "./auction-type/auction-type-response.dto.js";
17
- export * from "./item-note/get-item-notes-by-auction-item.dto.js";
18
- export * from "./item-note/get-item-notes-by-auction-item.schema.js";
17
+ export * from "./bid/get-bids-by-auction-item.dto.js";
18
+ export * from "./bid/get-bids-by-auction-item.schema.js";
19
+ export * from "./item-note/create-item-note-request.dto.js";
20
+ export * from "./item-note/create-item-note-request.schema.js";
21
+ export * from "./item-note/get-item-notes-by-auction-item-request.dto.js";
22
+ export * from "./item-note/get-item-notes-by-auction-item-request.schema.js";
19
23
  export * from "./pagination/pagination-request.schema.js";
20
24
  export * from "./pagination/pagination-request.dto.js";
21
25
  export * from "./pagination/pagination-response.dto.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/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CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8DAA8D,CAAC;AAE7E,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AAExD,cAAc,+DAA+D,CAAC;AAE9E,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
package/dist/index.js CHANGED
@@ -14,8 +14,12 @@ export * from "./auction-item-user/auction-item-user-role.schema.js";
14
14
  export * from "./auction-session/auction-session-response.dto.js";
15
15
  export * from "./auction-session-status/auction-session-status-response.dto.js";
16
16
  export * from "./auction-type/auction-type-response.dto.js";
17
- export * from "./item-note/get-item-notes-by-auction-item.dto.js";
18
- export * from "./item-note/get-item-notes-by-auction-item.schema.js";
17
+ export * from "./bid/get-bids-by-auction-item.dto.js";
18
+ export * from "./bid/get-bids-by-auction-item.schema.js";
19
+ export * from "./item-note/create-item-note-request.dto.js";
20
+ export * from "./item-note/create-item-note-request.schema.js";
21
+ export * from "./item-note/get-item-notes-by-auction-item-request.dto.js";
22
+ export * from "./item-note/get-item-notes-by-auction-item-request.schema.js";
19
23
  export * from "./pagination/pagination-request.schema.js";
20
24
  export * from "./pagination/pagination-request.dto.js";
21
25
  export * from "./pagination/pagination-response.dto.js";
@@ -0,0 +1,6 @@
1
+ export interface CreateItemNoteRequestDTO {
2
+ auctionItemId: number;
3
+ typeId: number;
4
+ content: string;
5
+ }
6
+ //# sourceMappingURL=create-item-note-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-item-note-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/create-item-note-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { CreateItemNoteRequestDTO } from "./create-item-note-request.dto.js";
3
+ export declare const CreateItemNoteSchema: z.ZodType<CreateItemNoteRequestDTO>;
4
+ //# sourceMappingURL=create-item-note-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-item-note-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-note/create-item-note-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAKjE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export const CreateItemNoteSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
4
+ typeId: z.coerce.number().int().positive(),
5
+ content: z.string().min(1).max(1000),
6
+ });
@@ -0,0 +1,5 @@
1
+ import { PaginationRequestDTO } from "../pagination/pagination-request.dto.js";
2
+ export interface GetItemNotesByAuctionItemRequestDTO extends PaginationRequestDTO {
3
+ auctionItemId: number;
4
+ }
5
+ //# sourceMappingURL=get-item-notes-by-auction-item-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item-notes-by-auction-item-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/get-item-notes-by-auction-item-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,MAAM,WAAW,mCAAoC,SAAQ,oBAAoB;IAC/E,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { GetItemNotesByAuctionItemRequestDTO } from "./get-item-notes-by-auction-item-request.dto.js";
3
+ export declare const GetItemNotesByAuctionItemSchema: z.ZodType<GetItemNotesByAuctionItemRequestDTO>;
4
+ //# sourceMappingURL=get-item-notes-by-auction-item-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item-notes-by-auction-item-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-note/get-item-notes-by-auction-item-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AAGtG,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,mCAAmC,CAGvF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ import { PaginationRequestSchema } from "../pagination/pagination-request.schema.js";
3
+ export const GetItemNotesByAuctionItemSchema = PaginationRequestSchema.extend({
4
+ auctionItemId: z.coerce.number().int().positive(),
5
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedro.araujo/ml-architecture-shared",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",