@webitel/api-services 26.8.35 → 26.8.37
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/api-services",
|
|
3
|
-
"version": "26.8.
|
|
3
|
+
"version": "26.8.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -93,6 +93,10 @@
|
|
|
93
93
|
"types": "./src/gen/_models/index.ts",
|
|
94
94
|
"import": "./src/gen/_models/index.ts"
|
|
95
95
|
},
|
|
96
|
+
"./gen/models/*": {
|
|
97
|
+
"types": "./src/gen/_models/*.ts",
|
|
98
|
+
"import": "./src/gen/_models/*.ts"
|
|
99
|
+
},
|
|
96
100
|
"./gen-wire": {
|
|
97
101
|
"types": "./src/gen-wire/index.ts",
|
|
98
102
|
"import": "./src/gen-wire/index.ts"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getDefaultsFromZodSchema } from '@webitel/api-services/gen/utils';
|
|
2
2
|
import { describe, expect, it } from 'vitest';
|
|
3
3
|
import type { z } from 'zod';
|
|
4
|
+
import * as validationsIndex from '../../index';
|
|
4
5
|
import {
|
|
5
6
|
calendarSchema,
|
|
6
7
|
getCalendarDayRangeIssues,
|
|
@@ -659,11 +660,11 @@ describe('calendarSchema', () => {
|
|
|
659
660
|
});
|
|
660
661
|
|
|
661
662
|
describe('validations barrel export', () => {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
expect(
|
|
666
|
-
expect(typeof
|
|
663
|
+
// Imported statically: resolving the barrel lazily made the transform cost
|
|
664
|
+
// land inside the test's own timeout.
|
|
665
|
+
it('re-exports calendarSchema from the validations index', () => {
|
|
666
|
+
expect(validationsIndex.calendarSchema).toBe(calendarSchema);
|
|
667
|
+
expect(typeof validationsIndex.calendarSchema.parse).toBe('function');
|
|
667
668
|
});
|
|
668
669
|
});
|
|
669
670
|
|