@floristcloud/api-lib 1.2.65 → 1.2.67
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/report/export-sales-revenue.query.js +4 -7
- package/build/enum/action-log-type.enum.js +1 -0
- package/build/enum/index.js +1 -0
- package/build/enum/order-product-verify-source.enum.js +13 -0
- package/commands/report/export-sales-revenue.query.ts +4 -9
- package/enum/action-log-type.enum.ts +1 -0
- package/enum/index.ts +1 -0
- package/enum/order-product-verify-source.enum.ts +9 -0
- package/package.json +1 -1
|
@@ -21,13 +21,10 @@ const ExportSalesRevenueRequestSchema = zod_1.z
|
|
|
21
21
|
path: ['endDate', 'startDate'],
|
|
22
22
|
});
|
|
23
23
|
const ExportSalesRevenueResponseSchema = zod_1.z.object({
|
|
24
|
-
data: zod_1.z.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
units: zod_1.z.number(),
|
|
29
|
-
avgCheck: zod_1.z.number(),
|
|
30
|
-
})),
|
|
24
|
+
data: zod_1.z.object({
|
|
25
|
+
fileUrl: zod_1.z.string(),
|
|
26
|
+
fileKey: zod_1.z.string(),
|
|
27
|
+
}),
|
|
31
28
|
});
|
|
32
29
|
var ExportSalesRevenueContractQuery;
|
|
33
30
|
(function (ExportSalesRevenueContractQuery) {
|
|
@@ -9,6 +9,7 @@ var ActionLogTypeEnum;
|
|
|
9
9
|
ActionLogTypeEnum["DELETE_ORDER"] = "DELETE_ORDER";
|
|
10
10
|
ActionLogTypeEnum["DELETE_ORDER_ITEM"] = "DELETE_ORDER_ITEM";
|
|
11
11
|
ActionLogTypeEnum["UPDATE_ORDER_ITEM"] = "UPDATE_ORDER_ITEM";
|
|
12
|
+
ActionLogTypeEnum["VERIFY_ORDER_ITEM"] = "VERIFY_ORDER_ITEM";
|
|
12
13
|
ActionLogTypeEnum["MOVE_ORDER_ITEM"] = "MOVE_ORDER_ITEM";
|
|
13
14
|
ActionLogTypeEnum["MERGE_ORDER"] = "MERGE_ORDER";
|
|
14
15
|
ActionLogTypeEnum["ADD_PAYMENT"] = "ADD_PAYMENT";
|
package/build/enum/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./outbound-sync-intent.enum"), exports);
|
|
|
21
21
|
__exportStar(require("./outbound-sync-status.enum"), exports);
|
|
22
22
|
__exportStar(require("./order-type.enum"), exports);
|
|
23
23
|
__exportStar(require("./order-status.enum"), exports);
|
|
24
|
+
__exportStar(require("./order-product-verify-source.enum"), exports);
|
|
24
25
|
__exportStar(require("./order-restricted-status-list"), exports);
|
|
25
26
|
__exportStar(require("./order-balance-status-list"), exports);
|
|
26
27
|
__exportStar(require("./order-merge-allowed-status-list"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderProductVerifySourceEnum = void 0;
|
|
4
|
+
// What triggered an order-product isVerify change — used for logging/attribution.
|
|
5
|
+
// MANUAL: a user toggled the verify checkbox (single or bulk).
|
|
6
|
+
// DISTRIBUTION_PACKED: a distribution isPacked change recomputed the position's verify state.
|
|
7
|
+
// SYSTEM: internal flows (order creation/update, etc.).
|
|
8
|
+
var OrderProductVerifySourceEnum;
|
|
9
|
+
(function (OrderProductVerifySourceEnum) {
|
|
10
|
+
OrderProductVerifySourceEnum["MANUAL"] = "MANUAL";
|
|
11
|
+
OrderProductVerifySourceEnum["DISTRIBUTION_PACKED"] = "DISTRIBUTION_PACKED";
|
|
12
|
+
OrderProductVerifySourceEnum["SYSTEM"] = "SYSTEM";
|
|
13
|
+
})(OrderProductVerifySourceEnum || (exports.OrderProductVerifySourceEnum = OrderProductVerifySourceEnum = {}));
|
|
@@ -23,15 +23,10 @@ const ExportSalesRevenueRequestSchema = z
|
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
const ExportSalesRevenueResponseSchema = z.object({
|
|
26
|
-
data: z.
|
|
27
|
-
z.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
orders: z.number(),
|
|
31
|
-
units: z.number(),
|
|
32
|
-
avgCheck: z.number(),
|
|
33
|
-
}),
|
|
34
|
-
),
|
|
26
|
+
data: z.object({
|
|
27
|
+
fileUrl: z.string(),
|
|
28
|
+
fileKey: z.string(),
|
|
29
|
+
}),
|
|
35
30
|
});
|
|
36
31
|
|
|
37
32
|
export namespace ExportSalesRevenueContractQuery {
|
|
@@ -5,6 +5,7 @@ export enum ActionLogTypeEnum {
|
|
|
5
5
|
DELETE_ORDER = 'DELETE_ORDER',
|
|
6
6
|
DELETE_ORDER_ITEM = 'DELETE_ORDER_ITEM',
|
|
7
7
|
UPDATE_ORDER_ITEM = 'UPDATE_ORDER_ITEM',
|
|
8
|
+
VERIFY_ORDER_ITEM = 'VERIFY_ORDER_ITEM',
|
|
8
9
|
MOVE_ORDER_ITEM = 'MOVE_ORDER_ITEM',
|
|
9
10
|
MERGE_ORDER = 'MERGE_ORDER',
|
|
10
11
|
ADD_PAYMENT = 'ADD_PAYMENT',
|
package/enum/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './outbound-sync-intent.enum';
|
|
|
5
5
|
export * from './outbound-sync-status.enum';
|
|
6
6
|
export * from './order-type.enum';
|
|
7
7
|
export * from './order-status.enum';
|
|
8
|
+
export * from './order-product-verify-source.enum';
|
|
8
9
|
export * from './order-restricted-status-list';
|
|
9
10
|
export * from './order-balance-status-list';
|
|
10
11
|
export * from './order-merge-allowed-status-list';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// What triggered an order-product isVerify change — used for logging/attribution.
|
|
2
|
+
// MANUAL: a user toggled the verify checkbox (single or bulk).
|
|
3
|
+
// DISTRIBUTION_PACKED: a distribution isPacked change recomputed the position's verify state.
|
|
4
|
+
// SYSTEM: internal flows (order creation/update, etc.).
|
|
5
|
+
export enum OrderProductVerifySourceEnum {
|
|
6
|
+
MANUAL = 'MANUAL',
|
|
7
|
+
DISTRIBUTION_PACKED = 'DISTRIBUTION_PACKED',
|
|
8
|
+
SYSTEM = 'SYSTEM',
|
|
9
|
+
}
|