@floristcloud/api-lib 1.2.151 → 1.2.153

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.
@@ -10,6 +10,8 @@ exports.ConsignmentTransferRequestItemSchema = zod_1.z.object({
10
10
  name: zod_1.z.string(),
11
11
  quantity: zod_1.z.number().int(),
12
12
  transferPrice: money_schema_1.MoneySchema,
13
+ // Себестоимость отправителя; null — себестоимость не раскрывалась.
14
+ transferCostPrice: money_schema_1.MoneySchema.nullable(),
13
15
  categoryName: zod_1.z.string().nullable(),
14
16
  multiplicity: zod_1.z.number().int(),
15
17
  grower: zod_1.z.string().nullable(),
@@ -12,6 +12,8 @@ exports.ConsignmentTransferRequestSchema = zod_1.z.object({
12
12
  sourceConsignmentUUID: zod_1.z.uuid(),
13
13
  targetConsignmentUUID: zod_1.z.uuid().nullable(),
14
14
  status: zod_1.z.nativeEnum(enum_1.ConsignmentTransferRequestStatusEnum),
15
+ // Отправитель разрешил передать свою себестоимость получателю.
16
+ isCostPriceShared: zod_1.z.boolean(),
15
17
  comment: zod_1.z.string().nullable(),
16
18
  processedComment: zod_1.z.string().nullable(),
17
19
  processedAt: zod_1.z.date().nullable(),
@@ -6,6 +6,8 @@ const consignment_transfer_request_schema_1 = require("./consignment-transfer-re
6
6
  exports.CreateConsignmentTransferRequestSchema = zod_1.z.object({
7
7
  receiverCompanyUUID: zod_1.z.uuid(),
8
8
  sourceConsignmentUUID: zod_1.z.uuid(),
9
+ // Раскрыть получателю свою себестоимость — осознанное действие отправителя, по умолчанию выключено.
10
+ isCostPriceShared: zod_1.z.boolean().optional().default(false),
9
11
  comment: zod_1.z.string().max(2000).nullable().optional(),
10
12
  items: zod_1.z
11
13
  .array(zod_1.z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floristcloud/api-lib",
3
- "version": "1.2.151",
3
+ "version": "1.2.153",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -8,6 +8,8 @@ export const ConsignmentTransferRequestItemSchema = z.object({
8
8
  name: z.string(),
9
9
  quantity: z.number().int(),
10
10
  transferPrice: MoneySchema,
11
+ // Себестоимость отправителя; null — себестоимость не раскрывалась.
12
+ transferCostPrice: MoneySchema.nullable(),
11
13
  categoryName: z.string().nullable(),
12
14
  multiplicity: z.number().int(),
13
15
  grower: z.string().nullable(),
@@ -10,6 +10,8 @@ export const ConsignmentTransferRequestSchema = z.object({
10
10
  sourceConsignmentUUID: z.uuid(),
11
11
  targetConsignmentUUID: z.uuid().nullable(),
12
12
  status: z.nativeEnum(ConsignmentTransferRequestStatusEnum),
13
+ // Отправитель разрешил передать свою себестоимость получателю.
14
+ isCostPriceShared: z.boolean(),
13
15
  comment: z.string().nullable(),
14
16
  processedComment: z.string().nullable(),
15
17
  processedAt: z.date().nullable(),
@@ -4,6 +4,8 @@ import { ConsignmentTransferRequestSchema } from './consignment-transfer-request
4
4
  export const CreateConsignmentTransferRequestSchema = z.object({
5
5
  receiverCompanyUUID: z.uuid(),
6
6
  sourceConsignmentUUID: z.uuid(),
7
+ // Раскрыть получателю свою себестоимость — осознанное действие отправителя, по умолчанию выключено.
8
+ isCostPriceShared: z.boolean().optional().default(false),
7
9
  comment: z.string().max(2000).nullable().optional(),
8
10
  items: z
9
11
  .array(