@webitel/api-services 26.12.31 → 26.12.32
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/flows/flow.ts +3 -0
- package/src/locale/en/en.ts +7 -0
- package/src/locale/es/es.ts +7 -0
- package/src/locale/kz/kz.ts +7 -0
- package/src/locale/pl/pl.ts +7 -0
- package/src/locale/ro/ro.ts +7 -0
- package/src/locale/ru/ru.ts +7 -0
- package/src/locale/uk/uk.ts +7 -0
- package/src/locale/uz/uz.ts +7 -0
- package/src/locale/vi/vi.ts +7 -0
- package/types/.tsbuildinfo +1 -1
- 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
package/package.json
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
sanitizeToWire,
|
|
19
19
|
snakeToCamel,
|
|
20
20
|
starToSearch,
|
|
21
|
+
translateError,
|
|
21
22
|
} from '../../transformers';
|
|
22
23
|
import type {
|
|
23
24
|
AddItemParams,
|
|
@@ -146,6 +147,7 @@ const addFlow = async ({ itemInstance }: AddItemParams) => {
|
|
|
146
147
|
return fromResponseItem(response.data);
|
|
147
148
|
} catch (err) {
|
|
148
149
|
throw applyTransform(err, [
|
|
150
|
+
translateError,
|
|
149
151
|
notify,
|
|
150
152
|
]);
|
|
151
153
|
}
|
|
@@ -160,6 +162,7 @@ const updateFlow = async ({ itemInstance, itemId: id }: UpdateItemParams) => {
|
|
|
160
162
|
return fromResponseItem(response.data);
|
|
161
163
|
} catch (err) {
|
|
162
164
|
throw applyTransform(err, [
|
|
165
|
+
translateError,
|
|
163
166
|
notify,
|
|
164
167
|
]);
|
|
165
168
|
}
|
package/src/locale/en/en.ts
CHANGED
package/src/locale/es/es.ts
CHANGED
package/src/locale/kz/kz.ts
CHANGED
package/src/locale/pl/pl.ts
CHANGED
package/src/locale/ro/ro.ts
CHANGED
package/src/locale/ru/ru.ts
CHANGED
package/src/locale/uk/uk.ts
CHANGED
package/src/locale/uz/uz.ts
CHANGED