@floristcloud/api-lib 1.2.32 → 1.2.34
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.
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MoyskladOrderStateMappingSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const order_status_enum_1 = require("../../../enum/order-status.enum");
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
6
|
+
// MS state id is an external identifier — don't enforce a UUID shape here.
|
|
7
|
+
// Empty string means "unmap this status"; the server normalizes empties away
|
|
8
|
+
// and validates remaining values against the live MS state list.
|
|
9
9
|
exports.MoyskladOrderStateMappingSchema = zod_1.z
|
|
10
|
-
.record(zod_1.z.nativeEnum(order_status_enum_1.OrderStatusEnum), zod_1.z.string()
|
|
10
|
+
.record(zod_1.z.nativeEnum(order_status_enum_1.OrderStatusEnum), zod_1.z.string())
|
|
11
11
|
.nullable();
|
|
@@ -3,9 +3,9 @@ import { OrderStatusEnum } from '../../../enum/order-status.enum';
|
|
|
3
3
|
|
|
4
4
|
export type MoyskladOrderStateMapping = Partial<Record<OrderStatusEnum, string>>;
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
6
|
+
// MS state id is an external identifier — don't enforce a UUID shape here.
|
|
7
|
+
// Empty string means "unmap this status"; the server normalizes empties away
|
|
8
|
+
// and validates remaining values against the live MS state list.
|
|
9
9
|
export const MoyskladOrderStateMappingSchema = z
|
|
10
|
-
.record(z.nativeEnum(OrderStatusEnum), z.string()
|
|
10
|
+
.record(z.nativeEnum(OrderStatusEnum), z.string())
|
|
11
11
|
.nullable() as z.ZodType<MoyskladOrderStateMapping | null>;
|