@webitel/api-services 26.8.2 → 26.8.4
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
|
@@ -124,6 +124,7 @@ const addAdjunctType = async ({ itemInstance }: AddItemParams) => {
|
|
|
124
124
|
return applyTransform(response.data, [
|
|
125
125
|
snakeToCamel(),
|
|
126
126
|
itemResponseHandler,
|
|
127
|
+
assignFieldPositions,
|
|
127
128
|
]);
|
|
128
129
|
} catch (err) {
|
|
129
130
|
throw applyTransform(err, [
|
|
@@ -146,6 +147,7 @@ const updateAdjunctType = async ({
|
|
|
146
147
|
return applyTransform(response.data, [
|
|
147
148
|
snakeToCamel(),
|
|
148
149
|
itemResponseHandler,
|
|
150
|
+
assignFieldPositions,
|
|
149
151
|
]);
|
|
150
152
|
} catch (err) {
|
|
151
153
|
throw applyTransform(err, [
|
|
@@ -62,6 +62,7 @@ const addTypeExtension = async ({
|
|
|
62
62
|
return applyTransform(response.data, [
|
|
63
63
|
snakeToCamel(),
|
|
64
64
|
generateIdsFromRepos,
|
|
65
|
+
assignFieldPositions,
|
|
65
66
|
]);
|
|
66
67
|
} catch (err) {
|
|
67
68
|
throw applyTransform(err, [
|
|
@@ -124,6 +125,7 @@ const updateTypeExtension = async ({
|
|
|
124
125
|
return applyTransform(response.data, [
|
|
125
126
|
snakeToCamel(),
|
|
126
127
|
generateIdsFromRepos,
|
|
128
|
+
assignFieldPositions,
|
|
127
129
|
]);
|
|
128
130
|
} catch (err) {
|
|
129
131
|
throw applyTransform(err, [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DataInputDictionary } from '@webitel/api-services/gen/models';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
|
+
import { i18nIssue } from '../_shared/i18nIssue';
|
|
4
5
|
import type { ZodShape } from '../types';
|
|
5
6
|
|
|
6
7
|
export const adjunctTypeSchema = z.object<ZodShape<DataInputDictionary>>({
|
|
@@ -8,7 +9,10 @@ export const adjunctTypeSchema = z.object<ZodShape<DataInputDictionary>>({
|
|
|
8
9
|
repo: z
|
|
9
10
|
.string()
|
|
10
11
|
.min(1)
|
|
11
|
-
.
|
|
12
|
+
.refine(
|
|
13
|
+
(value) => /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(value),
|
|
14
|
+
i18nIssue('latinWithNumber'),
|
|
15
|
+
),
|
|
12
16
|
about: z.string().optional(),
|
|
13
17
|
administered: z.boolean().optional(),
|
|
14
18
|
primary: z.string().optional(),
|