@kuzntsv/uikit 1.0.119 → 1.0.120

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.
@@ -2619,23 +2619,23 @@ function provideLogger(config) {
2619
2619
  }
2620
2620
  const secUserViewSchema = z.object({
2621
2621
  id: z.number().default(0),
2622
- idHuman: z.number().default(0),
2623
- loginAD: z.string().default("").nullable(),
2624
- dept: z.number().default(0),
2625
- tabnum: z.number().default(0),
2626
- lastname: z.string().default(""),
2627
- firstname: z.string().default(""),
2628
- middlename: z.string().default(""),
2629
- fio: z.string().default(""),
2630
- dateHuman: z.coerce.date().optional(),
2631
- profession: z.string().default("")
2622
+ idHuman: z.number().default(0).nullable(),
2623
+ loginAD: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2624
+ dept: z.number().default(0).nullable(),
2625
+ tabnum: z.number().default(0).nullable(),
2626
+ lastname: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2627
+ firstname: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2628
+ middlename: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2629
+ fio: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2630
+ dateHuman: z.coerce.date().optional().nullable(),
2631
+ profession: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string())
2632
2632
  });
2633
2633
  const secUserSchema = z.object({
2634
2634
  id: z.number().default(0),
2635
- login: z.string().default(""),
2636
- fio: z.string().default(""),
2637
- dept: z.number().default(0),
2638
- tabnum: z.number().default(0),
2635
+ login: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2636
+ fio: z.string().nullable().default("").transform((val) => val === null ? "" : val).pipe(z.string()),
2637
+ dept: z.number().default(0).nullable(),
2638
+ tabnum: z.number().default(0).nullable(),
2639
2639
  userView: secUserViewSchema.optional().nullable()
2640
2640
  });
2641
2641
  var SafePipe = class SafePipe {