@floristcloud/api-lib 1.2.66 → 1.2.68
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/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/build/schemas/action-log/action-log.schema.js +7 -0
- package/build/schemas/action-log/index.js +1 -0
- package/build/schemas/action-log/order-product-verify-action-log.schema.js +12 -0
- 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
- package/schemas/action-log/action-log.schema.ts +7 -0
- package/schemas/action-log/index.ts +1 -0
- package/schemas/action-log/order-product-verify-action-log.schema.ts +10 -0
|
@@ -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 = {}));
|
|
@@ -8,6 +8,7 @@ const order_merge_action_log_schema_1 = require("./order-merge-action-log.schema
|
|
|
8
8
|
const order_product_delete_action_log_schema_1 = require("./order-product-delete-action-log.schema");
|
|
9
9
|
const order_product_move_action_log_schema_1 = require("./order-product-move-action-log.schema");
|
|
10
10
|
const order_product_update_action_log_schema_1 = require("./order-product-update-action-log.schema");
|
|
11
|
+
const order_product_verify_action_log_schema_1 = require("./order-product-verify-action-log.schema");
|
|
11
12
|
const order_update_action_log_schema_1 = require("./order-update-action-log.schema");
|
|
12
13
|
const transaction_add_action_log_schema_1 = require("./transaction-add-action-log.schema");
|
|
13
14
|
const transaction_delete_action_log_schema_1 = require("./transaction-delete-action-log.schema");
|
|
@@ -42,6 +43,12 @@ exports.ActionLogSchema = zod_1.z.discriminatedUnion('actionType', [
|
|
|
42
43
|
payload: order_product_update_action_log_schema_1.OrderProductUpdateActionLogSchema,
|
|
43
44
|
})
|
|
44
45
|
.merge(BaseActionFields),
|
|
46
|
+
zod_1.z
|
|
47
|
+
.object({
|
|
48
|
+
actionType: zod_1.z.literal(enum_1.ActionLogTypeEnum.VERIFY_ORDER_ITEM),
|
|
49
|
+
payload: order_product_verify_action_log_schema_1.OrderProductVerifyActionLogSchema,
|
|
50
|
+
})
|
|
51
|
+
.merge(BaseActionFields),
|
|
45
52
|
zod_1.z
|
|
46
53
|
.object({
|
|
47
54
|
actionType: zod_1.z.literal(enum_1.ActionLogTypeEnum.MOVE_ORDER_ITEM),
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./order-product-delete-action-log.schema"), exports);
|
|
|
23
23
|
__exportStar(require("./order-product-info.schema"), exports);
|
|
24
24
|
__exportStar(require("./order-product-move-action-log.schema"), exports);
|
|
25
25
|
__exportStar(require("./order-product-update-action-log.schema"), exports);
|
|
26
|
+
__exportStar(require("./order-product-verify-action-log.schema"), exports);
|
|
26
27
|
__exportStar(require("./order-update-action-log.schema"), exports);
|
|
27
28
|
__exportStar(require("./pre-order-create-action-log.schema"), exports);
|
|
28
29
|
__exportStar(require("./pre-order-delete-action-log.schema"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderProductVerifyActionLogSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const order_product_info_schema_1 = require("./order-product-info.schema");
|
|
6
|
+
const enum_1 = require("../../enum");
|
|
7
|
+
exports.OrderProductVerifyActionLogSchema = zod_1.z.object({
|
|
8
|
+
orderProduct: order_product_info_schema_1.OrderProductInfoSchema,
|
|
9
|
+
isVerified: zod_1.z.boolean(),
|
|
10
|
+
previousIsVerified: zod_1.z.boolean(),
|
|
11
|
+
source: zod_1.z.nativeEnum(enum_1.OrderProductVerifySourceEnum),
|
|
12
|
+
});
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { OrderMergeActionLogSchema } from './order-merge-action-log.schema';
|
|
|
5
5
|
import { OrderProductDeleteActionLogSchema } from './order-product-delete-action-log.schema';
|
|
6
6
|
import { OrderProductMoveActionLogSchema } from './order-product-move-action-log.schema';
|
|
7
7
|
import { OrderProductUpdateActionLogSchema } from './order-product-update-action-log.schema';
|
|
8
|
+
import { OrderProductVerifyActionLogSchema } from './order-product-verify-action-log.schema';
|
|
8
9
|
import { OrderUpdateActionLogSchema } from './order-update-action-log.schema';
|
|
9
10
|
import { TransactionAddActionLogSchema } from './transaction-add-action-log.schema';
|
|
10
11
|
import { TransactionDeleteActionLogSchema } from './transaction-delete-action-log.schema';
|
|
@@ -41,6 +42,12 @@ export const ActionLogSchema = z.discriminatedUnion('actionType', [
|
|
|
41
42
|
payload: OrderProductUpdateActionLogSchema,
|
|
42
43
|
})
|
|
43
44
|
.merge(BaseActionFields),
|
|
45
|
+
z
|
|
46
|
+
.object({
|
|
47
|
+
actionType: z.literal(ActionLogTypeEnum.VERIFY_ORDER_ITEM),
|
|
48
|
+
payload: OrderProductVerifyActionLogSchema,
|
|
49
|
+
})
|
|
50
|
+
.merge(BaseActionFields),
|
|
44
51
|
z
|
|
45
52
|
.object({
|
|
46
53
|
actionType: z.literal(ActionLogTypeEnum.MOVE_ORDER_ITEM),
|
|
@@ -7,6 +7,7 @@ export * from './order-product-delete-action-log.schema';
|
|
|
7
7
|
export * from './order-product-info.schema';
|
|
8
8
|
export * from './order-product-move-action-log.schema';
|
|
9
9
|
export * from './order-product-update-action-log.schema';
|
|
10
|
+
export * from './order-product-verify-action-log.schema';
|
|
10
11
|
export * from './order-update-action-log.schema';
|
|
11
12
|
export * from './pre-order-create-action-log.schema';
|
|
12
13
|
export * from './pre-order-delete-action-log.schema';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderProductInfoSchema } from './order-product-info.schema';
|
|
3
|
+
import { OrderProductVerifySourceEnum } from '../../enum';
|
|
4
|
+
|
|
5
|
+
export const OrderProductVerifyActionLogSchema = z.object({
|
|
6
|
+
orderProduct: OrderProductInfoSchema,
|
|
7
|
+
isVerified: z.boolean(),
|
|
8
|
+
previousIsVerified: z.boolean(),
|
|
9
|
+
source: z.nativeEnum(OrderProductVerifySourceEnum),
|
|
10
|
+
});
|