@webitel/api-services 26.8.42 → 26.8.43
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 +1 -1
- package/src/api/clients//321/201ontacts/_internals/__tests__/stringifyContactExtensionFilters.spec.ts +80 -0
- package/src/api/clients//321/201ontacts/_internals/stringifyContactExtensionFilters.ts +88 -0
- package/src/api/clients//321/201ontacts/contacts.ts +27 -14
- package/src/api/transformers/translateError/__tests__/translateError.spec.ts +38 -0
- package/src/api/transformers/translateError/translateError.transformer.ts +17 -5
- package/src/locale/en/en.ts +8 -0
- package/src/locale/es/es.ts +8 -0
- package/src/locale/kz/kz.ts +8 -0
- package/src/locale/pl/pl.ts +8 -0
- package/src/locale/ro/ro.ts +8 -0
- package/src/locale/ru/ru.ts +8 -0
- package/src/locale/uk/uk.ts +8 -0
- package/src/locale/uz/uz.ts +8 -0
- package/src/locale/vi/vi.ts +8 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients//321/201ontacts/_internals/stringifyContactExtensionFilters.d.ts +3 -0
- package/types/api/transformers/translateError/translateError.transformer.d.ts +6 -4
- package/types/locale/en/en.d.ts +7 -0
- package/types/locale/es/es.d.ts +7 -0
- package/types/locale/index.d.ts +63 -0
- package/types/locale/kz/kz.d.ts +7 -0
- package/types/locale/pl/pl.d.ts +7 -0
- package/types/locale/ro/ro.d.ts +7 -0
- package/types/locale/ru/ru.d.ts +7 -0
- package/types/locale/uk/uk.d.ts +7 -0
- package/types/locale/uz/uz.d.ts +7 -0
- package/types/locale/vi/vi.d.ts +7 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
interface TranslatableErrorData {
|
|
2
|
+
id?: string;
|
|
3
|
+
detail?: string;
|
|
4
|
+
translation?: string;
|
|
5
|
+
}
|
|
1
6
|
interface TranslatableError {
|
|
2
7
|
response?: {
|
|
3
|
-
data?:
|
|
4
|
-
id?: string;
|
|
5
|
-
translation?: string;
|
|
6
|
-
};
|
|
8
|
+
data?: TranslatableErrorData;
|
|
7
9
|
};
|
|
8
10
|
}
|
|
9
11
|
declare const translateError: <T extends TranslatableError>(err: T) => T;
|
package/types/locale/en/en.d.ts
CHANGED
package/types/locale/es/es.d.ts
CHANGED
package/types/locale/index.d.ts
CHANGED
|
@@ -10,6 +10,13 @@ import vi from './vi/vi';
|
|
|
10
10
|
export declare const messages: {
|
|
11
11
|
en: {
|
|
12
12
|
backendErrors: {
|
|
13
|
+
contacts: {
|
|
14
|
+
search: {
|
|
15
|
+
filters: {
|
|
16
|
+
reservedField: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
13
20
|
app: {
|
|
14
21
|
auditForm: {
|
|
15
22
|
isValid: {
|
|
@@ -33,6 +40,13 @@ export declare const messages: {
|
|
|
33
40
|
};
|
|
34
41
|
uk: {
|
|
35
42
|
backendErrors: {
|
|
43
|
+
contacts: {
|
|
44
|
+
search: {
|
|
45
|
+
filters: {
|
|
46
|
+
reservedField: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
36
50
|
app: {
|
|
37
51
|
auditForm: {
|
|
38
52
|
isValid: {
|
|
@@ -56,6 +70,13 @@ export declare const messages: {
|
|
|
56
70
|
};
|
|
57
71
|
ru: {
|
|
58
72
|
backendErrors: {
|
|
73
|
+
contacts: {
|
|
74
|
+
search: {
|
|
75
|
+
filters: {
|
|
76
|
+
reservedField: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
59
80
|
app: {
|
|
60
81
|
auditForm: {
|
|
61
82
|
isValid: {
|
|
@@ -79,6 +100,13 @@ export declare const messages: {
|
|
|
79
100
|
};
|
|
80
101
|
es: {
|
|
81
102
|
backendErrors: {
|
|
103
|
+
contacts: {
|
|
104
|
+
search: {
|
|
105
|
+
filters: {
|
|
106
|
+
reservedField: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
82
110
|
app: {
|
|
83
111
|
auditForm: {
|
|
84
112
|
isValid: {
|
|
@@ -102,6 +130,13 @@ export declare const messages: {
|
|
|
102
130
|
};
|
|
103
131
|
pl: {
|
|
104
132
|
backendErrors: {
|
|
133
|
+
contacts: {
|
|
134
|
+
search: {
|
|
135
|
+
filters: {
|
|
136
|
+
reservedField: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
105
140
|
app: {
|
|
106
141
|
auditForm: {
|
|
107
142
|
isValid: {
|
|
@@ -125,6 +160,13 @@ export declare const messages: {
|
|
|
125
160
|
};
|
|
126
161
|
ro: {
|
|
127
162
|
backendErrors: {
|
|
163
|
+
contacts: {
|
|
164
|
+
search: {
|
|
165
|
+
filters: {
|
|
166
|
+
reservedField: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
128
170
|
app: {
|
|
129
171
|
auditForm: {
|
|
130
172
|
isValid: {
|
|
@@ -148,6 +190,13 @@ export declare const messages: {
|
|
|
148
190
|
};
|
|
149
191
|
kz: {
|
|
150
192
|
backendErrors: {
|
|
193
|
+
contacts: {
|
|
194
|
+
search: {
|
|
195
|
+
filters: {
|
|
196
|
+
reservedField: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
151
200
|
app: {
|
|
152
201
|
auditForm: {
|
|
153
202
|
isValid: {
|
|
@@ -171,6 +220,13 @@ export declare const messages: {
|
|
|
171
220
|
};
|
|
172
221
|
uz: {
|
|
173
222
|
backendErrors: {
|
|
223
|
+
contacts: {
|
|
224
|
+
search: {
|
|
225
|
+
filters: {
|
|
226
|
+
reservedField: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
174
230
|
app: {
|
|
175
231
|
auditForm: {
|
|
176
232
|
isValid: {
|
|
@@ -194,6 +250,13 @@ export declare const messages: {
|
|
|
194
250
|
};
|
|
195
251
|
vi: {
|
|
196
252
|
backendErrors: {
|
|
253
|
+
contacts: {
|
|
254
|
+
search: {
|
|
255
|
+
filters: {
|
|
256
|
+
reservedField: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
197
260
|
app: {
|
|
198
261
|
auditForm: {
|
|
199
262
|
isValid: {
|
package/types/locale/kz/kz.d.ts
CHANGED
package/types/locale/pl/pl.d.ts
CHANGED
package/types/locale/ro/ro.d.ts
CHANGED
package/types/locale/ru/ru.d.ts
CHANGED
package/types/locale/uk/uk.d.ts
CHANGED
package/types/locale/uz/uz.d.ts
CHANGED