@pedro.araujo/ml-architecture-shared 0.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.
@@ -0,0 +1,7 @@
1
+ export declare enum AuctionItemStatuses {
2
+ IN_AUCTION = "IN_AUCTION",
3
+ AUCTION_ENDED = "AUCTION_ENDED",
4
+ CANCELED = "CANCELED",
5
+ SOLD = "SOLD"
6
+ }
7
+ //# sourceMappingURL=auction-item-statuses.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auction-item-statuses.enum.d.ts","sourceRoot":"","sources":["../../src/auction-item/auction-item-statuses.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;IACrB,IAAI,SAAS;CAChB"}
@@ -0,0 +1,7 @@
1
+ export var AuctionItemStatuses;
2
+ (function (AuctionItemStatuses) {
3
+ AuctionItemStatuses["IN_AUCTION"] = "IN_AUCTION";
4
+ AuctionItemStatuses["AUCTION_ENDED"] = "AUCTION_ENDED";
5
+ AuctionItemStatuses["CANCELED"] = "CANCELED";
6
+ AuctionItemStatuses["SOLD"] = "SOLD";
7
+ })(AuctionItemStatuses || (AuctionItemStatuses = {}));
@@ -0,0 +1,13 @@
1
+ export interface CreateAuctionItemDTO {
2
+ title: string;
3
+ auctionLink: string;
4
+ itemTypeId: number;
5
+ auctionTypeId: number;
6
+ authorityId: number;
7
+ jurisdiction: string | null;
8
+ appraisalValue: number | null;
9
+ minimumBid: number | null;
10
+ notes: string | null;
11
+ photoUrl: string | null;
12
+ }
13
+ //# sourceMappingURL=create-auction-item.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-auction-item.dto.d.ts","sourceRoot":"","sources":["../../src/auction-item/create-auction-item.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import type { CreateAuctionItemDTO } from "./create-auction-item.dto";
3
+ export declare const CreateAuctionItemSchema: z.ZodType<CreateAuctionItemDTO>;
4
+ //# sourceMappingURL=create-auction-item.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-auction-item.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item/create-auction-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAchE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+ export const CreateAuctionItemSchema = z.object({
3
+ title: z.string().min(2).max(255),
4
+ auctionLink: z.url(),
5
+ itemTypeId: z.number().int().positive(),
6
+ auctionTypeId: z.number().int().positive(),
7
+ authorityId: z.number().int().positive(),
8
+ jurisdiction: z.string().nullable(),
9
+ appraisalValue: z.number().nullable(),
10
+ minimumBid: z.number().nullable(),
11
+ notes: z.string().nullable(),
12
+ photoUrl: z.url().nullable(),
13
+ });
@@ -0,0 +1,4 @@
1
+ export * from "./auction-item/auction-item-statuses.enum";
2
+ export * from "./auction-item/create-auction-item.dto";
3
+ export * from "./auction-item/create-auction-item.schema";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./auction-item/auction-item-statuses.enum";
2
+ export * from "./auction-item/create-auction-item.dto";
3
+ export * from "./auction-item/create-auction-item.schema";
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@pedro.araujo/ml-architecture-shared",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/pedroaraujo-dev/ml-architecture-shared.git"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ },
18
+ "files": ["dist"],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "dependencies": {
24
+ "zod": "^4.3.2"
25
+ },
26
+ "devDependencies": {
27
+ "typescript": "^5.9.3"
28
+ },
29
+ "publishConfig": {
30
+ "@pedroaraujo-dev:registry": "https://registry.npmjs.org"
31
+ }
32
+ }