@floristcloud/api-lib 1.2.193 → 1.2.194
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/pre-order/get-pre-order-list.query.js +4 -20
- package/build/commands/pre-order/get-pre-order-tag-list.query.js +10 -0
- package/build/commands/pre-order/index.js +1 -0
- package/build/schemas/pre-order/get-pre-order-list-request.schema.js +19 -0
- package/build/schemas/pre-order/get-pre-order-list-response.schema.js +8 -0
- package/build/schemas/pre-order/get-pre-order-tag-list-request.schema.js +13 -0
- package/build/schemas/pre-order/get-pre-order-tag-list-response.schema.js +7 -0
- package/build/schemas/pre-order/index.js +4 -0
- package/commands/pre-order/get-pre-order-list.query.ts +3 -20
- package/commands/pre-order/get-pre-order-tag-list.query.ts +11 -0
- package/commands/pre-order/index.ts +1 -0
- package/package.json +1 -1
- package/schemas/pre-order/get-pre-order-list-request.schema.ts +17 -0
- package/schemas/pre-order/get-pre-order-list-response.schema.ts +6 -0
- package/schemas/pre-order/get-pre-order-tag-list-request.schema.ts +11 -0
- package/schemas/pre-order/get-pre-order-tag-list-response.schema.ts +5 -0
- package/schemas/pre-order/index.ts +4 -0
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetPreOrderListContractCommand = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const enum_1 = require("../../enum");
|
|
7
|
-
const GetPreOrderListRequestSchema = zod_1.z.object({
|
|
8
|
-
page: zod_1.z.string().transform(val => Number(val) || 1),
|
|
9
|
-
count: zod_1.z.coerce.number().optional().default(10),
|
|
10
|
-
searchQuery: zod_1.z.string().optional(),
|
|
11
|
-
clientUUID: zod_1.z.string().optional(),
|
|
12
|
-
preOrderCollectionUUID: zod_1.z.string().optional(),
|
|
13
|
-
status: zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum).array().optional(),
|
|
14
|
-
createdAtFrom: zod_1.z.coerce.date().optional(),
|
|
15
|
-
createdAtTo: zod_1.z.coerce.date().optional(),
|
|
16
|
-
responsibleUserUUID: zod_1.z.string().optional(),
|
|
17
|
-
group: zod_1.z.string().optional(),
|
|
18
|
-
});
|
|
19
|
-
const GetPreOrderListResponseSchema = zod_1.z.object({
|
|
20
|
-
data: schemas_1.PreOrderListSchema,
|
|
21
|
-
});
|
|
4
|
+
const get_pre_order_list_request_schema_1 = require("../../schemas/pre-order/get-pre-order-list-request.schema");
|
|
5
|
+
const get_pre_order_list_response_schema_1 = require("../../schemas/pre-order/get-pre-order-list-response.schema");
|
|
22
6
|
var GetPreOrderListContractCommand;
|
|
23
7
|
(function (GetPreOrderListContractCommand) {
|
|
24
|
-
GetPreOrderListContractCommand.RequestSchema = GetPreOrderListRequestSchema;
|
|
25
|
-
GetPreOrderListContractCommand.ResponseSchema = GetPreOrderListResponseSchema;
|
|
8
|
+
GetPreOrderListContractCommand.RequestSchema = get_pre_order_list_request_schema_1.GetPreOrderListRequestSchema;
|
|
9
|
+
GetPreOrderListContractCommand.ResponseSchema = get_pre_order_list_response_schema_1.GetPreOrderListResponseSchema;
|
|
26
10
|
})(GetPreOrderListContractCommand || (exports.GetPreOrderListContractCommand = GetPreOrderListContractCommand = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderTagListContractQuery = void 0;
|
|
4
|
+
const get_pre_order_tag_list_request_schema_1 = require("../../schemas/pre-order/get-pre-order-tag-list-request.schema");
|
|
5
|
+
const get_pre_order_tag_list_response_schema_1 = require("../../schemas/pre-order/get-pre-order-tag-list-response.schema");
|
|
6
|
+
var GetPreOrderTagListContractQuery;
|
|
7
|
+
(function (GetPreOrderTagListContractQuery) {
|
|
8
|
+
GetPreOrderTagListContractQuery.RequestSchema = get_pre_order_tag_list_request_schema_1.GetPreOrderTagListRequestSchema;
|
|
9
|
+
GetPreOrderTagListContractQuery.ResponseSchema = get_pre_order_tag_list_response_schema_1.GetPreOrderTagListResponseSchema;
|
|
10
|
+
})(GetPreOrderTagListContractQuery || (exports.GetPreOrderTagListContractQuery = GetPreOrderTagListContractQuery = {}));
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-pre-order.command"), exports);
|
|
18
18
|
__exportStar(require("./update-pre-order.command"), exports);
|
|
19
19
|
__exportStar(require("./get-pre-order-list.query"), exports);
|
|
20
|
+
__exportStar(require("./get-pre-order-tag-list.query"), exports);
|
|
20
21
|
__exportStar(require("./get-pre-order.query"), exports);
|
|
21
22
|
__exportStar(require("./delete-pre-order.command"), exports);
|
|
22
23
|
__exportStar(require("./group"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderListRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enum_1 = require("../../enum");
|
|
6
|
+
exports.GetPreOrderListRequestSchema = zod_1.z.object({
|
|
7
|
+
page: zod_1.z.string().transform(val => Number(val) || 1),
|
|
8
|
+
count: zod_1.z.coerce.number().optional().default(10),
|
|
9
|
+
searchQuery: zod_1.z.string().optional(),
|
|
10
|
+
clientUUID: zod_1.z.string().optional(),
|
|
11
|
+
preOrderCollectionUUID: zod_1.z.string().optional(),
|
|
12
|
+
status: zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum).array().optional(),
|
|
13
|
+
createdAtFrom: zod_1.z.coerce.date().optional(),
|
|
14
|
+
createdAtTo: zod_1.z.coerce.date().optional(),
|
|
15
|
+
responsibleUserUUID: zod_1.z.string().optional(),
|
|
16
|
+
group: zod_1.z.string().optional(),
|
|
17
|
+
// Точное совпадение с PreOrder.tag; значения берутся из GET /pre-order/list/tags.
|
|
18
|
+
tag: zod_1.z.string().optional(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderListResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const pre_order_schema_1 = require("./pre-order.schema");
|
|
6
|
+
exports.GetPreOrderListResponseSchema = zod_1.z.object({
|
|
7
|
+
data: pre_order_schema_1.PreOrderListSchema,
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderTagListRequestSchema = void 0;
|
|
4
|
+
const get_pre_order_list_request_schema_1 = require("./get-pre-order-list-request.schema");
|
|
5
|
+
// Те же отборы, что у списка, кроме поиска, дат и самого тега: селект показывает все теги
|
|
6
|
+
// выбранного набора (например, status=STANDING_ORDER и каталог SO).
|
|
7
|
+
exports.GetPreOrderTagListRequestSchema = get_pre_order_list_request_schema_1.GetPreOrderListRequestSchema.pick({
|
|
8
|
+
clientUUID: true,
|
|
9
|
+
preOrderCollectionUUID: true,
|
|
10
|
+
status: true,
|
|
11
|
+
responsibleUserUUID: true,
|
|
12
|
+
group: true,
|
|
13
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderTagListResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GetPreOrderTagListResponseSchema = zod_1.z.object({
|
|
6
|
+
data: zod_1.z.array(zod_1.z.string()),
|
|
7
|
+
});
|
|
@@ -95,3 +95,7 @@ __exportStar(require("./revert-pre-order-conversion-response.schema"), exports);
|
|
|
95
95
|
__exportStar(require("./standing-order-import-row-error.schema"), exports);
|
|
96
96
|
__exportStar(require("./import-standing-order-response-data.schema"), exports);
|
|
97
97
|
__exportStar(require("./import-standing-order-response.schema"), exports);
|
|
98
|
+
__exportStar(require("./get-pre-order-list-request.schema"), exports);
|
|
99
|
+
__exportStar(require("./get-pre-order-list-response.schema"), exports);
|
|
100
|
+
__exportStar(require("./get-pre-order-tag-list-request.schema"), exports);
|
|
101
|
+
__exportStar(require("./get-pre-order-tag-list-response.schema"), exports);
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const GetPreOrderListRequestSchema = z.object({
|
|
6
|
-
page: z.string().transform(val => Number(val) || 1),
|
|
7
|
-
count: z.coerce.number().optional().default(10),
|
|
8
|
-
searchQuery: z.string().optional(),
|
|
9
|
-
clientUUID: z.string().optional(),
|
|
10
|
-
preOrderCollectionUUID: z.string().optional(),
|
|
11
|
-
status: z.nativeEnum(PreOrderStatusEnum).array().optional(),
|
|
12
|
-
createdAtFrom: z.coerce.date().optional(),
|
|
13
|
-
createdAtTo: z.coerce.date().optional(),
|
|
14
|
-
responsibleUserUUID: z.string().optional(),
|
|
15
|
-
group: z.string().optional(),
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
const GetPreOrderListResponseSchema = z.object({
|
|
19
|
-
data: PreOrderListSchema,
|
|
20
|
-
});
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import { GetPreOrderListRequestSchema } from '../../schemas/pre-order/get-pre-order-list-request.schema';
|
|
3
|
+
import { GetPreOrderListResponseSchema } from '../../schemas/pre-order/get-pre-order-list-response.schema';
|
|
21
4
|
|
|
22
5
|
export namespace GetPreOrderListContractCommand {
|
|
23
6
|
export const RequestSchema = GetPreOrderListRequestSchema;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import { GetPreOrderTagListRequestSchema } from '../../schemas/pre-order/get-pre-order-tag-list-request.schema';
|
|
3
|
+
import { GetPreOrderTagListResponseSchema } from '../../schemas/pre-order/get-pre-order-tag-list-response.schema';
|
|
4
|
+
|
|
5
|
+
export namespace GetPreOrderTagListContractQuery {
|
|
6
|
+
export const RequestSchema = GetPreOrderTagListRequestSchema;
|
|
7
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
|
|
9
|
+
export const ResponseSchema = GetPreOrderTagListResponseSchema;
|
|
10
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './create-pre-order.command';
|
|
2
2
|
export * from './update-pre-order.command';
|
|
3
3
|
export * from './get-pre-order-list.query';
|
|
4
|
+
export * from './get-pre-order-tag-list.query';
|
|
4
5
|
export * from './get-pre-order.query';
|
|
5
6
|
export * from './delete-pre-order.command';
|
|
6
7
|
export * from './group';
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PreOrderStatusEnum } from '../../enum';
|
|
3
|
+
|
|
4
|
+
export const GetPreOrderListRequestSchema = z.object({
|
|
5
|
+
page: z.string().transform(val => Number(val) || 1),
|
|
6
|
+
count: z.coerce.number().optional().default(10),
|
|
7
|
+
searchQuery: z.string().optional(),
|
|
8
|
+
clientUUID: z.string().optional(),
|
|
9
|
+
preOrderCollectionUUID: z.string().optional(),
|
|
10
|
+
status: z.nativeEnum(PreOrderStatusEnum).array().optional(),
|
|
11
|
+
createdAtFrom: z.coerce.date().optional(),
|
|
12
|
+
createdAtTo: z.coerce.date().optional(),
|
|
13
|
+
responsibleUserUUID: z.string().optional(),
|
|
14
|
+
group: z.string().optional(),
|
|
15
|
+
// Точное совпадение с PreOrder.tag; значения берутся из GET /pre-order/list/tags.
|
|
16
|
+
tag: z.string().optional(),
|
|
17
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetPreOrderListRequestSchema } from './get-pre-order-list-request.schema';
|
|
2
|
+
|
|
3
|
+
// Те же отборы, что у списка, кроме поиска, дат и самого тега: селект показывает все теги
|
|
4
|
+
// выбранного набора (например, status=STANDING_ORDER и каталог SO).
|
|
5
|
+
export const GetPreOrderTagListRequestSchema = GetPreOrderListRequestSchema.pick({
|
|
6
|
+
clientUUID: true,
|
|
7
|
+
preOrderCollectionUUID: true,
|
|
8
|
+
status: true,
|
|
9
|
+
responsibleUserUUID: true,
|
|
10
|
+
group: true,
|
|
11
|
+
});
|
|
@@ -84,3 +84,7 @@ export * from './revert-pre-order-conversion-response.schema';
|
|
|
84
84
|
export * from './standing-order-import-row-error.schema';
|
|
85
85
|
export * from './import-standing-order-response-data.schema';
|
|
86
86
|
export * from './import-standing-order-response.schema';
|
|
87
|
+
export * from './get-pre-order-list-request.schema';
|
|
88
|
+
export * from './get-pre-order-list-response.schema';
|
|
89
|
+
export * from './get-pre-order-tag-list-request.schema';
|
|
90
|
+
export * from './get-pre-order-tag-list-response.schema';
|