@pedro.araujo/ml-architecture-shared 0.1.43 → 0.1.44
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/item-financial-event/create-financial-event-request.dto.d.ts +13 -0
- package/dist/item-financial-event/create-financial-event-request.dto.d.ts.map +1 -0
- package/dist/item-financial-event/create-financial-event-request.dto.js +1 -0
- package/dist/item-financial-event/create-financial-event-request.schema.d.ts +4 -0
- package/dist/item-financial-event/create-financial-event-request.schema.d.ts.map +1 -0
- package/dist/item-financial-event/create-financial-event-request.schema.js +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from "./bid/get-bids-by-auction-session-request.dto.js";
|
|
|
32
32
|
export * from "./bid/get-bids-by-auction-session-request.schema.js";
|
|
33
33
|
export * from "./bid/update-bid-request.dto.js";
|
|
34
34
|
export * from "./bid/update-bid-request.schema.js";
|
|
35
|
+
export * from "./item-financial-event/create-financial-event-request.dto.js";
|
|
36
|
+
export * from "./item-financial-event/create-financial-event-request.schema.js";
|
|
35
37
|
export * from "./item-financial-event/item-financial-event-type.enum.js";
|
|
36
38
|
export * from "./item-financial-event/payment-type.enum.js";
|
|
37
39
|
export * from "./item-note/create-item-note-request.dto.js";
|
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,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cA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CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,iDAAiD,CAAC;AAEhE,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
|
@@ -32,6 +32,8 @@ export * from "./bid/get-bids-by-auction-session-request.dto.js";
|
|
|
32
32
|
export * from "./bid/get-bids-by-auction-session-request.schema.js";
|
|
33
33
|
export * from "./bid/update-bid-request.dto.js";
|
|
34
34
|
export * from "./bid/update-bid-request.schema.js";
|
|
35
|
+
export * from "./item-financial-event/create-financial-event-request.dto.js";
|
|
36
|
+
export * from "./item-financial-event/create-financial-event-request.schema.js";
|
|
35
37
|
export * from "./item-financial-event/item-financial-event-type.enum.js";
|
|
36
38
|
export * from "./item-financial-event/payment-type.enum.js";
|
|
37
39
|
export * from "./item-note/create-item-note-request.dto.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ItemFinancialEventType } from "./item-financial-event-type.enum.js";
|
|
2
|
+
import { PaymentType } from "./payment-type.enum.js";
|
|
3
|
+
export interface CreateFinancialEventRequestDTO {
|
|
4
|
+
auctionItemId: number;
|
|
5
|
+
eventType: ItemFinancialEventType;
|
|
6
|
+
occurredAt: string;
|
|
7
|
+
paymentType: PaymentType;
|
|
8
|
+
totalAmount: number;
|
|
9
|
+
downPayment?: number;
|
|
10
|
+
installmentsQty?: number;
|
|
11
|
+
note?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=create-financial-event-request.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-financial-event-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-financial-event/create-financial-event-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,sBAAsB,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CreateFinancialEventRequestDTO } from "./create-financial-event-request.dto.js";
|
|
3
|
+
export declare const CreateFinancialEventRequestSchema: z.ZodType<CreateFinancialEventRequestDTO>;
|
|
4
|
+
//# sourceMappingURL=create-financial-event-request.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-financial-event-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-financial-event/create-financial-event-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAIzF,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAUpF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ItemFinancialEventType } from "./item-financial-event-type.enum.js";
|
|
3
|
+
import { PaymentType } from "./payment-type.enum.js";
|
|
4
|
+
export const CreateFinancialEventRequestSchema = z.object({
|
|
5
|
+
auctionItemId: z.coerce.number().int().positive(),
|
|
6
|
+
eventType: z.enum(ItemFinancialEventType),
|
|
7
|
+
occurredAt: z.iso.datetime(),
|
|
8
|
+
paymentType: z.enum(PaymentType),
|
|
9
|
+
totalAmount: z.coerce.number().positive(),
|
|
10
|
+
downPayment: z.coerce.number().min(0).optional(),
|
|
11
|
+
installmentsQty: z.coerce.number().int().positive().optional(),
|
|
12
|
+
note: z.string().max(1000).optional(),
|
|
13
|
+
});
|