@floristcloud/api-lib 1.0.62 → 1.0.64
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/client/get-client-list.query.js +1 -1
- package/build/commands/pre-order-product/get-active-stepper-positions.query.js +17 -0
- package/build/commands/pre-order-product/index.js +2 -0
- package/build/commands/pre-order-product/set-pre-order-product-quantity-webshop.command.js +14 -0
- package/build/schemas/pre-order-product/pre-order-product.schema.js +20 -1
- package/commands/client/get-client-list.query.ts +1 -1
- package/commands/pre-order-product/get-active-stepper-positions.query.ts +19 -0
- package/commands/pre-order-product/index.ts +2 -0
- package/commands/pre-order-product/set-pre-order-product-quantity-webshop.command.ts +15 -0
- package/package.json +1 -1
- package/schemas/pre-order-product/pre-order-product.schema.ts +23 -0
|
@@ -18,7 +18,7 @@ const GetClientListRequestSchema = zod_1.z.object({
|
|
|
18
18
|
hasContract: zod_1.z
|
|
19
19
|
.string()
|
|
20
20
|
.optional()
|
|
21
|
-
.transform(val => (val === 'true' ? true : val === 'false' ? false : undefined)),
|
|
21
|
+
.transform(val => (val === 'true' ? true : val === 'false' || val === '' ? false : undefined)),
|
|
22
22
|
});
|
|
23
23
|
const GetClientListResponseSchema = zod_1.z.object({
|
|
24
24
|
message: zod_1.z.string().optional(),
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetActiveStepperPositionsContractQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const GetActiveStepperPositionsRequestSchema = zod_1.z.object({
|
|
7
|
+
preOrderCollectionUUID: zod_1.z.string().uuid().optional(),
|
|
8
|
+
});
|
|
9
|
+
const GetActiveStepperPositionsResponseSchema = zod_1.z.object({
|
|
10
|
+
message: zod_1.z.string().optional(),
|
|
11
|
+
data: schemas_1.ActiveStepperPositionsResponseSchema,
|
|
12
|
+
});
|
|
13
|
+
var GetActiveStepperPositionsContractQuery;
|
|
14
|
+
(function (GetActiveStepperPositionsContractQuery) {
|
|
15
|
+
GetActiveStepperPositionsContractQuery.RequestSchema = GetActiveStepperPositionsRequestSchema;
|
|
16
|
+
GetActiveStepperPositionsContractQuery.ResponseSchema = GetActiveStepperPositionsResponseSchema;
|
|
17
|
+
})(GetActiveStepperPositionsContractQuery || (exports.GetActiveStepperPositionsContractQuery = GetActiveStepperPositionsContractQuery = {}));
|
|
@@ -27,6 +27,8 @@ __exportStar(require("./delete-pre-order-product-webshop.command"), exports);
|
|
|
27
27
|
__exportStar(require("./update-pre-order-product-webshop.command"), exports);
|
|
28
28
|
__exportStar(require("./get-pre-order-product-list.query"), exports);
|
|
29
29
|
__exportStar(require("./get-pre-order-product-extended-list.query"), exports);
|
|
30
|
+
__exportStar(require("./get-active-stepper-positions.query"), exports);
|
|
30
31
|
__exportStar(require("./create-manually-pre-order-product-for-standing-order.command"), exports);
|
|
31
32
|
__exportStar(require("./get-pre-order-products-by-pre-order-list.command"), exports);
|
|
33
|
+
__exportStar(require("./set-pre-order-product-quantity-webshop.command"), exports);
|
|
32
34
|
__exportStar(require("./group/move-group-pre-order-product.command"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetPreOrderProductQuantityWebshopContractCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../../schemas");
|
|
6
|
+
const SetPreOrderProductQuantityWebshopContractResponseSchema = zod_1.z.object({
|
|
7
|
+
message: zod_1.z.string().optional(),
|
|
8
|
+
data: schemas_1.SetPreOrderProductQuantityWebshopResponseSchema,
|
|
9
|
+
});
|
|
10
|
+
var SetPreOrderProductQuantityWebshopContractCommand;
|
|
11
|
+
(function (SetPreOrderProductQuantityWebshopContractCommand) {
|
|
12
|
+
SetPreOrderProductQuantityWebshopContractCommand.RequestSchema = schemas_1.SetPreOrderProductQuantityWebshopRequestSchema;
|
|
13
|
+
SetPreOrderProductQuantityWebshopContractCommand.ResponseSchema = SetPreOrderProductQuantityWebshopContractResponseSchema;
|
|
14
|
+
})(SetPreOrderProductQuantityWebshopContractCommand || (exports.SetPreOrderProductQuantityWebshopContractCommand = SetPreOrderProductQuantityWebshopContractCommand = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.preOrderProductExtendedListSchema = exports.PreOrderProductListSchema = exports.UpdatePreOrderProductWebshopSchema = exports.CreatePreOrderProductWebshopSchema = exports.UpdatePreOrderProductSchema = exports.CreatePreOrderProductSchema = exports.PreOrderProductExtendedSchema = exports.PreOrderProductSchema = exports.MatchingConfigSchema = void 0;
|
|
3
|
+
exports.SetPreOrderProductQuantityWebshopResponseSchema = exports.SetPreOrderProductQuantityWebshopRequestSchema = exports.ActiveStepperPositionsResponseSchema = exports.PreOrderProductStepperPositionSchema = exports.preOrderProductExtendedListSchema = exports.PreOrderProductListSchema = exports.UpdatePreOrderProductWebshopSchema = exports.CreatePreOrderProductWebshopSchema = exports.UpdatePreOrderProductSchema = exports.CreatePreOrderProductSchema = exports.PreOrderProductExtendedSchema = exports.PreOrderProductSchema = exports.MatchingConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const pre_order_collection_item_schema_1 = require("../pre-order-collection-item/pre-order-collection-item.schema");
|
|
6
6
|
const category_schema_1 = require("../category/category.schema");
|
|
@@ -103,3 +103,22 @@ exports.preOrderProductExtendedListSchema = zod_1.z.object({
|
|
|
103
103
|
list: exports.PreOrderProductExtendedSchema.array(),
|
|
104
104
|
total: zod_1.z.number(),
|
|
105
105
|
});
|
|
106
|
+
exports.PreOrderProductStepperPositionSchema = zod_1.z.object({
|
|
107
|
+
uuid: zod_1.z.string(),
|
|
108
|
+
preOrderUUID: zod_1.z.string(),
|
|
109
|
+
preOrderCollectionUUID: zod_1.z.string().nullable(),
|
|
110
|
+
preOrderCollectionItemUUID: zod_1.z.string().nullable(),
|
|
111
|
+
multiplicityOptionUUID: zod_1.z.string().nullable().optional(),
|
|
112
|
+
quantity: zod_1.z.number(),
|
|
113
|
+
});
|
|
114
|
+
exports.ActiveStepperPositionsResponseSchema = zod_1.z.object({
|
|
115
|
+
list: exports.PreOrderProductStepperPositionSchema.array(),
|
|
116
|
+
});
|
|
117
|
+
exports.SetPreOrderProductQuantityWebshopRequestSchema = zod_1.z.object({
|
|
118
|
+
quantity: zod_1.z.number().int().min(0),
|
|
119
|
+
});
|
|
120
|
+
exports.SetPreOrderProductQuantityWebshopResponseSchema = zod_1.z.object({
|
|
121
|
+
uuid: zod_1.z.string().optional(),
|
|
122
|
+
quantity: zod_1.z.number().optional(),
|
|
123
|
+
deleted: zod_1.z.boolean().optional(),
|
|
124
|
+
});
|
|
@@ -16,7 +16,7 @@ const GetClientListRequestSchema = z.object({
|
|
|
16
16
|
hasContract: z
|
|
17
17
|
.string()
|
|
18
18
|
.optional()
|
|
19
|
-
.transform(val => (val === 'true' ? true : val === 'false' ? false : undefined)),
|
|
19
|
+
.transform(val => (val === 'true' ? true : val === 'false' || val === '' ? false : undefined)),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
const GetClientListResponseSchema = z.object({
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ActiveStepperPositionsResponseSchema } from '../../schemas';
|
|
3
|
+
|
|
4
|
+
const GetActiveStepperPositionsRequestSchema = z.object({
|
|
5
|
+
preOrderCollectionUUID: z.string().uuid().optional(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const GetActiveStepperPositionsResponseSchema = z.object({
|
|
9
|
+
message: z.string().optional(),
|
|
10
|
+
data: ActiveStepperPositionsResponseSchema,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export namespace GetActiveStepperPositionsContractQuery {
|
|
14
|
+
export const RequestSchema = GetActiveStepperPositionsRequestSchema;
|
|
15
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
16
|
+
|
|
17
|
+
export const ResponseSchema = GetActiveStepperPositionsResponseSchema;
|
|
18
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
@@ -11,6 +11,8 @@ export * from './delete-pre-order-product-webshop.command';
|
|
|
11
11
|
export * from './update-pre-order-product-webshop.command';
|
|
12
12
|
export * from './get-pre-order-product-list.query';
|
|
13
13
|
export * from './get-pre-order-product-extended-list.query';
|
|
14
|
+
export * from './get-active-stepper-positions.query';
|
|
14
15
|
export * from './create-manually-pre-order-product-for-standing-order.command';
|
|
15
16
|
export * from './get-pre-order-products-by-pre-order-list.command';
|
|
17
|
+
export * from './set-pre-order-product-quantity-webshop.command';
|
|
16
18
|
export * from './group/move-group-pre-order-product.command';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { SetPreOrderProductQuantityWebshopRequestSchema, SetPreOrderProductQuantityWebshopResponseSchema } from '../../schemas';
|
|
3
|
+
|
|
4
|
+
const SetPreOrderProductQuantityWebshopContractResponseSchema = z.object({
|
|
5
|
+
message: z.string().optional(),
|
|
6
|
+
data: SetPreOrderProductQuantityWebshopResponseSchema,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export namespace SetPreOrderProductQuantityWebshopContractCommand {
|
|
10
|
+
export const RequestSchema = SetPreOrderProductQuantityWebshopRequestSchema;
|
|
11
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
12
|
+
|
|
13
|
+
export const ResponseSchema = SetPreOrderProductQuantityWebshopContractResponseSchema;
|
|
14
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -109,3 +109,26 @@ export const preOrderProductExtendedListSchema = z.object({
|
|
|
109
109
|
list: PreOrderProductExtendedSchema.array(),
|
|
110
110
|
total: z.number(),
|
|
111
111
|
});
|
|
112
|
+
|
|
113
|
+
export const PreOrderProductStepperPositionSchema = z.object({
|
|
114
|
+
uuid: z.string(),
|
|
115
|
+
preOrderUUID: z.string(),
|
|
116
|
+
preOrderCollectionUUID: z.string().nullable(),
|
|
117
|
+
preOrderCollectionItemUUID: z.string().nullable(),
|
|
118
|
+
multiplicityOptionUUID: z.string().nullable().optional(),
|
|
119
|
+
quantity: z.number(),
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
export const ActiveStepperPositionsResponseSchema = z.object({
|
|
123
|
+
list: PreOrderProductStepperPositionSchema.array(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export const SetPreOrderProductQuantityWebshopRequestSchema = z.object({
|
|
127
|
+
quantity: z.number().int().min(0),
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export const SetPreOrderProductQuantityWebshopResponseSchema = z.object({
|
|
131
|
+
uuid: z.string().optional(),
|
|
132
|
+
quantity: z.number().optional(),
|
|
133
|
+
deleted: z.boolean().optional(),
|
|
134
|
+
});
|