@floristcloud/api-lib 1.0.12 → 1.0.13
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/build/commands/order/update-order.command.js +5 -3
- package/build/schemas/order/order.schema.js +2 -0
- package/build/schemas/settings/settings.schema.js +3 -0
- package/commands/order/update-order.command.ts +5 -3
- package/package.json +1 -1
- package/schemas/order/order.schema.ts +3 -0
- package/schemas/settings/settings.schema.ts +3 -0
|
@@ -7,15 +7,17 @@ const schemas_1 = require("../../schemas");
|
|
|
7
7
|
const UpdateOrderRequestSchema = zod_1.z.object({
|
|
8
8
|
clientUUID: zod_1.z.string().uuid(),
|
|
9
9
|
branchUUID: zod_1.z.string().uuid().nullable(),
|
|
10
|
-
deliveryCost: zod_1.z.number(),
|
|
10
|
+
deliveryCost: zod_1.z.coerce.number(),
|
|
11
11
|
type: zod_1.z.nativeEnum(enum_1.OrderTypeEnum),
|
|
12
12
|
comment: zod_1.z.string().nullable(),
|
|
13
13
|
clientComment: zod_1.z.string().nullable(),
|
|
14
14
|
tag: zod_1.z.string().nullable(),
|
|
15
15
|
status: zod_1.z.nativeEnum(enum_1.OrderStatusEnum),
|
|
16
16
|
isPaid: zod_1.z.coerce.boolean(),
|
|
17
|
-
deliveryVat: zod_1.z.number().nullable(),
|
|
18
|
-
deliveryVatAmount: zod_1.z.number(),
|
|
17
|
+
deliveryVat: zod_1.z.coerce.number().nullable(),
|
|
18
|
+
deliveryVatAmount: zod_1.z.coerce.number(),
|
|
19
|
+
completedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
20
|
+
paymentDueAt: zod_1.z.coerce.date().nullable().optional(),
|
|
19
21
|
});
|
|
20
22
|
const UpdateOrderResponseSchema = zod_1.z.object({
|
|
21
23
|
message: zod_1.z.string().optional(),
|
|
@@ -33,6 +33,8 @@ exports.OrderSchema = zod_1.z.object({
|
|
|
33
33
|
totalProductNumber: zod_1.z.number(),
|
|
34
34
|
invoiceSendAt: zod_1.z.date().nullable(),
|
|
35
35
|
deliveryRouteUUID: zod_1.z.string().uuid().nullable(),
|
|
36
|
+
completedAt: zod_1.z.date().nullable(),
|
|
37
|
+
paymentDueAt: zod_1.z.date().nullable(),
|
|
36
38
|
createdAt: zod_1.z.date(),
|
|
37
39
|
updatedAt: zod_1.z.date(),
|
|
38
40
|
deletedAt: zod_1.z.date().nullable(),
|
|
@@ -41,6 +41,7 @@ exports.SettingsSchema = zod_1.z.object({
|
|
|
41
41
|
isShowPriceAnonymous: zod_1.z.boolean(),
|
|
42
42
|
orderExpirationWarningMin: zod_1.z.number().nullable(),
|
|
43
43
|
orderExpirationMin: zod_1.z.number().nullable(),
|
|
44
|
+
paymentGraceDaysAfterCompletion: zod_1.z.number().nullable(),
|
|
44
45
|
discountPriceRounding: zod_1.z.nativeEnum(enum_1.DiscountPriceRoundingEnum),
|
|
45
46
|
createdAt: zod_1.z.coerce.date(),
|
|
46
47
|
updatedAt: zod_1.z.coerce.date(),
|
|
@@ -97,6 +98,7 @@ exports.CreateSettingsSchema = zod_1.z.object({
|
|
|
97
98
|
bankAccountNumber: zod_1.z.string().optional(),
|
|
98
99
|
orderExpirationWarningMin: zod_1.z.coerce.number().nullable().optional(),
|
|
99
100
|
orderExpirationMin: zod_1.z.coerce.number().nullable().optional(),
|
|
101
|
+
paymentGraceDaysAfterCompletion: zod_1.z.coerce.number().nullable().optional(),
|
|
100
102
|
isShowPriceAnonymous: zod_1.z.coerce.boolean().optional(),
|
|
101
103
|
discountPriceRounding: zod_1.z.nativeEnum(enum_1.DiscountPriceRoundingEnum).optional(),
|
|
102
104
|
vatTag: zod_1.z.string().nullable().optional(),
|
|
@@ -151,6 +153,7 @@ exports.UpdateSettingsRequestSchema = zod_1.z.object({
|
|
|
151
153
|
isShowPriceAnonymous: zod_1.z.coerce.boolean().optional(),
|
|
152
154
|
orderExpirationWarningMin: zod_1.z.coerce.number().nullable().optional(),
|
|
153
155
|
orderExpirationMin: zod_1.z.coerce.number().nullable().optional(),
|
|
156
|
+
paymentGraceDaysAfterCompletion: zod_1.z.coerce.number().nullable().optional(),
|
|
154
157
|
discountPriceRounding: zod_1.z.nativeEnum(enum_1.DiscountPriceRoundingEnum).optional(),
|
|
155
158
|
webshopMainDisplayMode: zod_1.z.nativeEnum(webshop_main_display_mode_enum_1.WebshopMainDisplayModeEnum).nullable().optional(),
|
|
156
159
|
webshopMode: zod_1.z.nativeEnum(enum_1.WebshopModeEnum).nullable().optional(),
|
|
@@ -5,15 +5,17 @@ import { OrderSchema } from '../../schemas';
|
|
|
5
5
|
const UpdateOrderRequestSchema = z.object({
|
|
6
6
|
clientUUID: z.string().uuid(),
|
|
7
7
|
branchUUID: z.string().uuid().nullable(),
|
|
8
|
-
deliveryCost: z.number(),
|
|
8
|
+
deliveryCost: z.coerce.number(),
|
|
9
9
|
type: z.nativeEnum(OrderTypeEnum),
|
|
10
10
|
comment: z.string().nullable(),
|
|
11
11
|
clientComment: z.string().nullable(),
|
|
12
12
|
tag: z.string().nullable(),
|
|
13
13
|
status: z.nativeEnum(OrderStatusEnum),
|
|
14
14
|
isPaid: z.coerce.boolean(),
|
|
15
|
-
deliveryVat: z.number().nullable(),
|
|
16
|
-
deliveryVatAmount: z.number(),
|
|
15
|
+
deliveryVat: z.coerce.number().nullable(),
|
|
16
|
+
deliveryVatAmount: z.coerce.number(),
|
|
17
|
+
completedAt: z.coerce.date().nullable().optional(),
|
|
18
|
+
paymentDueAt: z.coerce.date().nullable().optional(),
|
|
17
19
|
});
|
|
18
20
|
|
|
19
21
|
const UpdateOrderResponseSchema = z.object({
|
package/package.json
CHANGED
|
@@ -36,6 +36,9 @@ export const OrderSchema = z.object({
|
|
|
36
36
|
invoiceSendAt: z.date().nullable(),
|
|
37
37
|
deliveryRouteUUID: z.string().uuid().nullable(),
|
|
38
38
|
|
|
39
|
+
completedAt: z.date().nullable(),
|
|
40
|
+
paymentDueAt: z.date().nullable(),
|
|
41
|
+
|
|
39
42
|
createdAt: z.date(),
|
|
40
43
|
updatedAt: z.date(),
|
|
41
44
|
deletedAt: z.date().nullable(),
|
|
@@ -40,6 +40,7 @@ export const SettingsSchema = z.object({
|
|
|
40
40
|
isShowPriceAnonymous: z.boolean(),
|
|
41
41
|
orderExpirationWarningMin: z.number().nullable(),
|
|
42
42
|
orderExpirationMin: z.number().nullable(),
|
|
43
|
+
paymentGraceDaysAfterCompletion: z.number().nullable(),
|
|
43
44
|
discountPriceRounding: z.nativeEnum(DiscountPriceRoundingEnum),
|
|
44
45
|
createdAt: z.coerce.date(),
|
|
45
46
|
updatedAt: z.coerce.date(),
|
|
@@ -98,6 +99,7 @@ export const CreateSettingsSchema = z.object({
|
|
|
98
99
|
bankAccountNumber: z.string().optional(),
|
|
99
100
|
orderExpirationWarningMin: z.coerce.number().nullable().optional(),
|
|
100
101
|
orderExpirationMin: z.coerce.number().nullable().optional(),
|
|
102
|
+
paymentGraceDaysAfterCompletion: z.coerce.number().nullable().optional(),
|
|
101
103
|
isShowPriceAnonymous: z.coerce.boolean().optional(),
|
|
102
104
|
discountPriceRounding: z.nativeEnum(DiscountPriceRoundingEnum).optional(),
|
|
103
105
|
vatTag: z.string().nullable().optional(),
|
|
@@ -155,6 +157,7 @@ export const UpdateSettingsRequestSchema = z.object({
|
|
|
155
157
|
isShowPriceAnonymous: z.coerce.boolean().optional(),
|
|
156
158
|
orderExpirationWarningMin: z.coerce.number().nullable().optional(),
|
|
157
159
|
orderExpirationMin: z.coerce.number().nullable().optional(),
|
|
160
|
+
paymentGraceDaysAfterCompletion: z.coerce.number().nullable().optional(),
|
|
158
161
|
discountPriceRounding: z.nativeEnum(DiscountPriceRoundingEnum).optional(),
|
|
159
162
|
webshopMainDisplayMode: z.nativeEnum(WebshopMainDisplayModeEnum).nullable().optional(),
|
|
160
163
|
webshopMode: z.nativeEnum(WebshopModeEnum).nullable().optional(),
|