@webitel/api-services 0.0.104 → 0.0.106

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.
Files changed (38) hide show
  1. package/package.json +6 -1
  2. package/src/api/clients/auditForms/auditForms.ts +95 -3
  3. package/src/api/clients/messageService/messageService.ts +2 -2
  4. package/src/api/clients/pdfServices/pdfServices.ts +3 -3
  5. package/src/api/transformers/index.ts +2 -0
  6. package/src/api/transformers/notify/notify.transformer.ts +7 -4
  7. package/src/api/transformers/translateError/translateError.transformer.ts +31 -0
  8. package/src/config/config.ts +12 -0
  9. package/src/locale/en/en.ts +13 -0
  10. package/src/locale/es/es.ts +13 -0
  11. package/src/locale/index.ts +24 -0
  12. package/src/locale/kz/kz.ts +13 -0
  13. package/src/locale/locale.ts +1 -0
  14. package/src/locale/pl/pl.ts +13 -0
  15. package/src/locale/ro/ro.ts +13 -0
  16. package/src/locale/ru/ru.ts +13 -0
  17. package/src/locale/uk/uk.ts +13 -0
  18. package/src/locale/uz/uz.ts +13 -0
  19. package/src/locale/vi/vi.ts +13 -0
  20. package/types/api/clients/auditForms/auditForms.d.ts +14 -0
  21. package/types/api/clients/messageService/messageService.d.ts +1 -0
  22. package/types/api/transformers/index.d.ts +2 -1
  23. package/types/api/transformers/translateError/translateError.transformer.d.ts +2 -0
  24. package/types/config/config.d.ts +2 -0
  25. package/types/gen/communication-type-service/communication-type-service.zod.gen.d.ts +10 -10
  26. package/types/gen/routing-schema-service/routing-schema-service.zod.gen.d.ts +11 -11
  27. package/types/gen/timeline/timeline.zod.gen.d.ts +2 -2
  28. package/types/locale/en/en.d.ts +14 -0
  29. package/types/locale/es/es.d.ts +14 -0
  30. package/types/locale/index.d.ts +129 -0
  31. package/types/locale/kz/kz.d.ts +14 -0
  32. package/types/locale/locale.d.ts +1 -0
  33. package/types/locale/pl/pl.d.ts +14 -0
  34. package/types/locale/ro/ro.d.ts +14 -0
  35. package/types/locale/ru/ru.d.ts +14 -0
  36. package/types/locale/uk/uk.d.ts +14 -0
  37. package/types/locale/uz/uz.d.ts +14 -0
  38. package/types/locale/vi/vi.d.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/api-services",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm run gen:api && npm version patch && (npm run build:types || true) && (npm run format:all || true) && npm run publish-lib",
@@ -44,6 +44,7 @@
44
44
  "typedoc": "^0.28.4",
45
45
  "typedoc-github-wiki-theme": "^2.1.0",
46
46
  "typescript": "5.8.2",
47
+ "vue-i18n": "^11.2.8",
47
48
  "vue-tsc": "^2.2.10",
48
49
  "webitel-sdk": "^25.4.3"
49
50
  },
@@ -97,6 +98,10 @@
97
98
  "./enums": {
98
99
  "types": "./types/enums/index.d.ts",
99
100
  "import": "./src/enums/index.ts"
101
+ },
102
+ "./locale": {
103
+ "types": "./src/locale/locale.ts",
104
+ "import": "./src/locale/locale.ts"
100
105
  }
101
106
  }
102
107
  }
@@ -1,8 +1,12 @@
1
1
  import {
2
2
  getAuditFormService,
3
3
  searchAuditFormQueryParams,
4
+ patchAuditFormBody,
5
+ updateAuditFormBody,
6
+ createAuditFormBody,
4
7
  } from '@webitel/api-services/gen';
5
8
  import { getShallowFieldsToSendFromZodSchema } from '@webitel/api-services/gen/utils';
9
+ import { EngineAuditQuestionType } from '@webitel/api-services/gen/models';
6
10
 
7
11
  import { getDefaultGetListResponse, getDefaultGetParams } from '../../defaults';
8
12
  import {
@@ -10,10 +14,37 @@ import {
10
14
  camelToSnake,
11
15
  merge,
12
16
  notify,
17
+ translateError,
13
18
  sanitize,
14
19
  snakeToCamel,
15
20
  } from '../../transformers';
16
21
 
22
+ const itemResponseHandler = (response) => ({
23
+ ...response,
24
+ questions: response.questions?.map((question) => {
25
+ if (question.type === EngineAuditQuestionType.QuestionScore) {
26
+ return {
27
+ ...question,
28
+ max: question.max || 1,
29
+ min: question.min || 0,
30
+ required: question.required || false,
31
+ question: question.question || '',
32
+ };
33
+ }
34
+ if (question.type === EngineAuditQuestionType.QuestionOption) {
35
+ return {
36
+ ...question,
37
+ options: question.options?.map((option) => ({
38
+ ...option,
39
+ name: option.name || '',
40
+ score: option.score || 0,
41
+ })) || [],
42
+ };
43
+ }
44
+ return question;
45
+ }) || [],
46
+ });
47
+
17
48
  const getAuditFormsList = async (params) => {
18
49
  const fieldsToSend = getShallowFieldsToSendFromZodSchema(
19
50
  searchAuditFormQueryParams,
@@ -38,16 +69,16 @@ const getAuditFormsList = async (params) => {
38
69
  next,
39
70
  };
40
71
  } catch (err) {
41
- throw applyTransform(err, [notify]);
72
+ throw applyTransform(err, [translateError, notify]);
42
73
  }
43
74
  };
44
75
 
45
76
  const getAuditForm = async ({ itemId: id }) => {
46
77
  try {
47
78
  const response = await getAuditFormService().readAuditForm(id);
48
- return applyTransform(response.data, [snakeToCamel()]);
79
+ return applyTransform(response.data, [snakeToCamel(), itemResponseHandler]);
49
80
  } catch (err) {
50
- throw applyTransform(err, [notify]);
81
+ throw applyTransform(err, [translateError, notify]);
51
82
  }
52
83
  };
53
84
 
@@ -57,8 +88,69 @@ const getLookup = (params) =>
57
88
  fields: params.fields || ['id', 'name'],
58
89
  });
59
90
 
91
+ const createAuditForm = async ({ itemInstance }) => {
92
+ const fieldsToSend = getShallowFieldsToSendFromZodSchema(createAuditFormBody);
93
+
94
+ const item = applyTransform(itemInstance, [
95
+ sanitize(fieldsToSend),
96
+ camelToSnake(),
97
+ ]);
98
+
99
+ try {
100
+ const response = await getAuditFormService().createAuditForm(item);
101
+ return applyTransform(response.data, [snakeToCamel()]);
102
+ } catch (err) {
103
+ throw applyTransform(err, [translateError, notify]);
104
+ }
105
+ };
106
+
107
+ const updateAuditForm = async ({ itemInstance, itemId: id }) => {
108
+ const fieldsToSend = getShallowFieldsToSendFromZodSchema(updateAuditFormBody);
109
+
110
+ const item = applyTransform(itemInstance, [
111
+ sanitize(fieldsToSend),
112
+ camelToSnake(),
113
+ ]);
114
+
115
+ try {
116
+ const response = await getAuditFormService().updateAuditForm(id, item);
117
+ return applyTransform(response.data, [snakeToCamel()]);
118
+ } catch (err) {
119
+ throw applyTransform(err, [translateError, notify]);
120
+ }
121
+ };
122
+
123
+ const patchAuditForm = async ({ changes, id }) => {
124
+ const fieldsToSend = getShallowFieldsToSendFromZodSchema(patchAuditFormBody);
125
+
126
+ const body = applyTransform(changes, [
127
+ sanitize(fieldsToSend),
128
+ camelToSnake(),
129
+ ]);
130
+
131
+ try {
132
+ const response = await getAuditFormService().patchAuditForm(id, body);
133
+ return applyTransform(response.data, [snakeToCamel()]);
134
+ } catch (err) {
135
+ throw applyTransform(err, [translateError, notify]);
136
+ }
137
+ };
138
+
139
+ const deleteAuditForm = async ({ itemId: id }) => {
140
+ try {
141
+ const response = await getAuditFormService().deleteAuditForm(id);
142
+ return applyTransform(response.data, []);
143
+ } catch (err) {
144
+ throw applyTransform(err, [translateError, notify]);
145
+ }
146
+ };
147
+
60
148
  export const AuditFormsAPI = {
61
149
  getList: getAuditFormsList,
62
150
  get: getAuditForm,
63
151
  getLookup,
152
+ add: createAuditForm,
153
+ update: updateAuditForm,
154
+ patch: patchAuditForm,
155
+ delete: deleteAuditForm,
64
156
  };
@@ -30,11 +30,11 @@ const getChatHistory = async ({ chatId, ...params }) => {
30
30
  chatId,
31
31
  listParams,
32
32
  );
33
- const { messages, peers } = applyTransform(response.data, [
33
+ const { messages, peers, next } = applyTransform(response.data, [
34
34
  snakeToCamel(),
35
35
  merge(getDefaultGetListResponse()),
36
36
  ]);
37
- return { messages, peers };
37
+ return { messages, peers, next };
38
38
  } catch (err) {
39
39
  throw applyTransform(err, [notify]);
40
40
  }
@@ -13,7 +13,7 @@ import {
13
13
  camelToSnake,
14
14
  merge,
15
15
  notify,
16
- sanitize,
16
+ sanitize,
17
17
  snakeToCamel,
18
18
  } from '../../transformers';
19
19
 
@@ -27,8 +27,8 @@ const createScreenrecordingExport = async ({ agentId, itemInstance }) => {
27
27
  const response = await getPdfService().createScreenrecordingExport(agentId, item);
28
28
  return applyTransform(response.data, [snakeToCamel()]);
29
29
  } catch (err) {
30
- throw applyTransform(err, [notify]);
31
- }
30
+ throw applyTransform(err, [notify]);
31
+ }
32
32
  };
33
33
 
34
34
  const listScreenrecordingExports = async (params: any) => {
@@ -3,6 +3,7 @@ import { applyTransform } from './applyTransform';
3
3
  import camelToSnake from './camelToSnake/camelToSnake.transformer';
4
4
  import generateUrl from './generateUrl/generateUrl.transformer';
5
5
  import log from './log/log.transformer';
6
+ import translateError from './translateError/translateError.transformer';
6
7
  import merge from './merge/merge.transformer';
7
8
  import mergeEach from './mergeEach/mergeEach.transformer';
8
9
  import notify from './notify/notify.transformer';
@@ -17,6 +18,7 @@ export {
17
18
  camelToSnake,
18
19
  generateUrl,
19
20
  log,
21
+ translateError,
20
22
  merge,
21
23
  mergeEach,
22
24
  notify,
@@ -25,12 +25,15 @@ const notifyTransformer = (notificationObject) => {
25
25
  };
26
26
  }
27
27
  if (notificationObject instanceof Error) {
28
+ const errorText =
29
+ notificationObject.response?.data?.translation ||
30
+ notificationObject.response?.data?.detail ||
31
+ notificationObject.response?.data?.message ||
32
+ notificationObject;
33
+
28
34
  apiServicesConfig.eventBus?.$emit('notification', {
29
35
  type: 'error',
30
- text:
31
- notificationObject.response?.data?.detail ||
32
- notificationObject.response?.data?.message ||
33
- notificationObject,
36
+ text: errorText,
34
37
  });
35
38
  }
36
39
  return notificationObject;
@@ -0,0 +1,31 @@
1
+ import { snakeToCamel } from '@webitel/api-services/utils';
2
+ import { config } from '../../../config/config';
3
+
4
+ const BACKEND_ERRORS_PREFIX = 'backendErrors';
5
+
6
+ // Transformer to translate error messages from backend API responses
7
+ // Converts snake_case error IDs from backend to camelCase keys
8
+ // Looks up translations in api-services locale files under 'backendErrors' prefix
9
+ // Adds the translated message to err.response.data.translation for use by notify transformer
10
+ const translateError = (err) => {
11
+ const errorId = err?.response?.data?.id;
12
+ if (!errorId) return err;
13
+
14
+ const i18n = config.i18n;
15
+ if (!i18n?.global) return err;
16
+
17
+ // Convert snake_case error ID to camelCase and build full key path
18
+ const fullKey = `${BACKEND_ERRORS_PREFIX}.${snakeToCamel(errorId)}`;
19
+
20
+ // Use i18n.t() to translate the error message
21
+ const translation = i18n.global.t(fullKey, {}, { missingWarn: false, fallbackWarn: false });
22
+
23
+ // Add translation to error response if found (i18n.t returns the key if translation is missing)
24
+ if (translation && translation !== fullKey && err.response?.data) {
25
+ err.response.data.translation = translation;
26
+ }
27
+
28
+ return err;
29
+ };
30
+
31
+ export default translateError;
@@ -1,13 +1,25 @@
1
+ import type { I18n } from 'vue-i18n';
2
+ import { messages } from '../locale';
3
+
1
4
  export type ApiServicesConfig = {
2
5
  eventBus?: {
3
6
  $emit: (event: string, payload: unknown) => unknown;
4
7
  };
8
+ i18n?: I18n;
5
9
  };
6
10
 
7
11
  export const config: ApiServicesConfig = {
8
12
  eventBus: null,
13
+ i18n: null,
9
14
  };
10
15
 
11
16
  export const setConfig = (conf: ApiServicesConfig) => {
12
17
  Object.assign(config, conf);
18
+
19
+ // Automatically merge api-services locale messages into the provided i18n instance
20
+ if (conf.i18n?.global) {
21
+ Object.entries(messages).forEach(([locale, localeMessages]) => {
22
+ conf.i18n.global.mergeLocaleMessage(locale, localeMessages);
23
+ });
24
+ }
13
25
  };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'A single criteria cannot contain duplicate scores',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'No se permite el valor de puntuación duplicado',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,24 @@
1
+ import en from './en/en';
2
+ import uk from './uk/uk';
3
+ import ru from './ru/ru';
4
+ import es from './es/es';
5
+ import pl from './pl/pl';
6
+ import ro from './ro/ro';
7
+ import kz from './kz/kz';
8
+ import uz from './uz/uz';
9
+ import vi from './vi/vi';
10
+
11
+ export const messages = {
12
+ en,
13
+ uk,
14
+ ru,
15
+ es,
16
+ pl,
17
+ ro,
18
+ kz,
19
+ uz,
20
+ vi,
21
+ };
22
+
23
+ export { en, uk, ru, es, pl, ro, kz, uz, vi };
24
+
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Дубликаттық балл мәніне рұқсат етілмейді',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Zduplikowana wartość punktacji nie jest dozwolona',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Valoarea scorului duplicat nu este permisă',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Один критерий не может содержать дубликаты оценок',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Один критерій не може містити дублікати оцінок',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Takrorlangan ball qiymatiga ruxsat berilmaydi',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -0,0 +1,13 @@
1
+ export default {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: 'Giá trị điểm trùng lặp không được phép',
8
+ },
9
+ },
10
+ },
11
+ },
12
+ },
13
+ };
@@ -10,4 +10,18 @@ export declare const AuditFormsAPI: {
10
10
  items: any;
11
11
  next: any;
12
12
  }>;
13
+ add: ({ itemInstance }: {
14
+ itemInstance: any;
15
+ }) => Promise<any>;
16
+ update: ({ itemInstance, itemId: id }: {
17
+ itemInstance: any;
18
+ itemId: any;
19
+ }) => Promise<any>;
20
+ patch: ({ changes, id }: {
21
+ changes: any;
22
+ id: any;
23
+ }) => Promise<any>;
24
+ delete: ({ itemId: id }: {
25
+ itemId: any;
26
+ }) => Promise<any>;
13
27
  };
@@ -6,5 +6,6 @@ export declare const MessagesServiceAPI: {
6
6
  }) => Promise<{
7
7
  messages: any;
8
8
  peers: any;
9
+ next: any;
9
10
  }>;
10
11
  };
@@ -3,6 +3,7 @@ import { applyTransform } from './applyTransform';
3
3
  import camelToSnake from './camelToSnake/camelToSnake.transformer';
4
4
  import generateUrl from './generateUrl/generateUrl.transformer';
5
5
  import log from './log/log.transformer';
6
+ import translateError from './translateError/translateError.transformer';
6
7
  import merge from './merge/merge.transformer';
7
8
  import mergeEach from './mergeEach/mergeEach.transformer';
8
9
  import notify from './notify/notify.transformer';
@@ -10,4 +11,4 @@ import sanitize from './sanitize/sanitize.transformer';
10
11
  import { skipIf } from './skipIf/skipIf';
11
12
  import snakeToCamel from './snakeToCamel/snakeToCamel.transformer';
12
13
  import starToSearch from './starToSearch/starToSearch.transformer';
13
- export { addQueryParamsToUrl, applyTransform, camelToSnake, generateUrl, log, merge, mergeEach, notify, sanitize, skipIf, snakeToCamel, starToSearch, };
14
+ export { addQueryParamsToUrl, applyTransform, camelToSnake, generateUrl, log, translateError, merge, mergeEach, notify, sanitize, skipIf, snakeToCamel, starToSearch, };
@@ -0,0 +1,2 @@
1
+ declare const translateError: (err: any) => any;
2
+ export default translateError;
@@ -1,7 +1,9 @@
1
+ import type { I18n } from 'vue-i18n';
1
2
  export type ApiServicesConfig = {
2
3
  eventBus?: {
3
4
  $emit: (event: string, payload: unknown) => unknown;
4
5
  };
6
+ i18n?: I18n;
5
7
  };
6
8
  export declare const config: ApiServicesConfig;
7
9
  export declare const setConfig: (conf: ApiServicesConfig) => void;
@@ -16,9 +16,9 @@ export declare const searchCommunicationTypeQueryParams: zod.ZodObject<{
16
16
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
17
17
  id: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
18
18
  channel: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
19
+ Email: "Email";
19
20
  Undefined: "Undefined";
20
21
  Phone: "Phone";
21
- Email: "Email";
22
22
  Messaging: "Messaging";
23
23
  }>>>;
24
24
  default: zod.ZodOptional<zod.ZodBoolean>;
@@ -27,9 +27,9 @@ export declare const searchCommunicationTypeResponseItemsItemChannelDefault = "U
27
27
  export declare const searchCommunicationTypeResponse: zod.ZodObject<{
28
28
  items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
29
29
  channel: zod.ZodDefault<zod.ZodEnum<{
30
+ Email: "Email";
30
31
  Undefined: "Undefined";
31
32
  Phone: "Phone";
32
- Email: "Email";
33
33
  Messaging: "Messaging";
34
34
  }>>;
35
35
  code: zod.ZodOptional<zod.ZodString>;
@@ -47,9 +47,9 @@ export declare const searchCommunicationTypeResponse: zod.ZodObject<{
47
47
  export declare const createCommunicationTypeBodyChannelDefault = "Undefined";
48
48
  export declare const createCommunicationTypeBody: zod.ZodObject<{
49
49
  channel: zod.ZodDefault<zod.ZodEnum<{
50
+ Email: "Email";
50
51
  Undefined: "Undefined";
51
52
  Phone: "Phone";
52
- Email: "Email";
53
53
  Messaging: "Messaging";
54
54
  }>>;
55
55
  code: zod.ZodOptional<zod.ZodString>;
@@ -60,9 +60,9 @@ export declare const createCommunicationTypeBody: zod.ZodObject<{
60
60
  export declare const createCommunicationTypeResponseChannelDefault = "Undefined";
61
61
  export declare const createCommunicationTypeResponse: zod.ZodObject<{
62
62
  channel: zod.ZodDefault<zod.ZodEnum<{
63
+ Email: "Email";
63
64
  Undefined: "Undefined";
64
65
  Phone: "Phone";
65
- Email: "Email";
66
66
  Messaging: "Messaging";
67
67
  }>>;
68
68
  code: zod.ZodOptional<zod.ZodString>;
@@ -84,9 +84,9 @@ export declare const deleteCommunicationTypeQueryParams: zod.ZodObject<{
84
84
  export declare const deleteCommunicationTypeResponseChannelDefault = "Undefined";
85
85
  export declare const deleteCommunicationTypeResponse: zod.ZodObject<{
86
86
  channel: zod.ZodDefault<zod.ZodEnum<{
87
+ Email: "Email";
87
88
  Undefined: "Undefined";
88
89
  Phone: "Phone";
89
- Email: "Email";
90
90
  Messaging: "Messaging";
91
91
  }>>;
92
92
  code: zod.ZodOptional<zod.ZodString>;
@@ -108,9 +108,9 @@ export declare const readCommunicationTypeQueryParams: zod.ZodObject<{
108
108
  export declare const readCommunicationTypeResponseChannelDefault = "Undefined";
109
109
  export declare const readCommunicationTypeResponse: zod.ZodObject<{
110
110
  channel: zod.ZodDefault<zod.ZodEnum<{
111
+ Email: "Email";
111
112
  Undefined: "Undefined";
112
113
  Phone: "Phone";
113
- Email: "Email";
114
114
  Messaging: "Messaging";
115
115
  }>>;
116
116
  code: zod.ZodOptional<zod.ZodString>;
@@ -126,9 +126,9 @@ export declare const patchCommunicationTypeParams: zod.ZodObject<{
126
126
  export declare const patchCommunicationTypeBodyChannelDefault = "Undefined";
127
127
  export declare const patchCommunicationTypeBody: zod.ZodObject<{
128
128
  channel: zod.ZodDefault<zod.ZodEnum<{
129
+ Email: "Email";
129
130
  Undefined: "Undefined";
130
131
  Phone: "Phone";
131
- Email: "Email";
132
132
  Messaging: "Messaging";
133
133
  }>>;
134
134
  code: zod.ZodOptional<zod.ZodString>;
@@ -140,9 +140,9 @@ export declare const patchCommunicationTypeBody: zod.ZodObject<{
140
140
  export declare const patchCommunicationTypeResponseChannelDefault = "Undefined";
141
141
  export declare const patchCommunicationTypeResponse: zod.ZodObject<{
142
142
  channel: zod.ZodDefault<zod.ZodEnum<{
143
+ Email: "Email";
143
144
  Undefined: "Undefined";
144
145
  Phone: "Phone";
145
- Email: "Email";
146
146
  Messaging: "Messaging";
147
147
  }>>;
148
148
  code: zod.ZodOptional<zod.ZodString>;
@@ -161,9 +161,9 @@ export declare const updateCommunicationTypeParams: zod.ZodObject<{
161
161
  export declare const updateCommunicationTypeBodyChannelDefault = "Undefined";
162
162
  export declare const updateCommunicationTypeBody: zod.ZodObject<{
163
163
  channel: zod.ZodDefault<zod.ZodEnum<{
164
+ Email: "Email";
164
165
  Undefined: "Undefined";
165
166
  Phone: "Phone";
166
- Email: "Email";
167
167
  Messaging: "Messaging";
168
168
  }>>;
169
169
  code: zod.ZodOptional<zod.ZodString>;
@@ -174,9 +174,9 @@ export declare const updateCommunicationTypeBody: zod.ZodObject<{
174
174
  export declare const updateCommunicationTypeResponseChannelDefault = "Undefined";
175
175
  export declare const updateCommunicationTypeResponse: zod.ZodObject<{
176
176
  channel: zod.ZodDefault<zod.ZodEnum<{
177
+ Email: "Email";
177
178
  Undefined: "Undefined";
178
179
  Phone: "Phone";
179
- Email: "Email";
180
180
  Messaging: "Messaging";
181
181
  }>>;
182
182
  code: zod.ZodOptional<zod.ZodString>;
@@ -17,8 +17,8 @@ export declare const searchRoutingSchemaQueryParams: zod.ZodObject<{
17
17
  id: zod.ZodOptional<zod.ZodArray<zod.ZodNumber>>;
18
18
  name: zod.ZodOptional<zod.ZodString>;
19
19
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
20
- default: "default";
21
20
  chat: "chat";
21
+ default: "default";
22
22
  voice: "voice";
23
23
  processing: "processing";
24
24
  service: "service";
@@ -43,8 +43,8 @@ export declare const searchRoutingSchemaResponse: zod.ZodObject<{
43
43
  id: zod.ZodOptional<zod.ZodString>;
44
44
  name: zod.ZodOptional<zod.ZodString>;
45
45
  type: zod.ZodDefault<zod.ZodEnum<{
46
- default: "default";
47
46
  chat: "chat";
47
+ default: "default";
48
48
  voice: "voice";
49
49
  processing: "processing";
50
50
  service: "service";
@@ -70,8 +70,8 @@ export declare const createRoutingSchemaBody: zod.ZodObject<{
70
70
  editor: zod.ZodOptional<zod.ZodBoolean>;
71
71
  name: zod.ZodOptional<zod.ZodString>;
72
72
  type: zod.ZodDefault<zod.ZodEnum<{
73
- default: "default";
74
73
  chat: "chat";
74
+ default: "default";
75
75
  voice: "voice";
76
76
  processing: "processing";
77
77
  service: "service";
@@ -93,8 +93,8 @@ export declare const createRoutingSchemaResponse: zod.ZodObject<{
93
93
  id: zod.ZodOptional<zod.ZodString>;
94
94
  name: zod.ZodOptional<zod.ZodString>;
95
95
  type: zod.ZodDefault<zod.ZodEnum<{
96
- default: "default";
97
96
  chat: "chat";
97
+ default: "default";
98
98
  voice: "voice";
99
99
  processing: "processing";
100
100
  service: "service";
@@ -115,8 +115,8 @@ export declare const searchRoutingSchemaTagsQueryParams: zod.ZodObject<{
115
115
  sort: zod.ZodOptional<zod.ZodString>;
116
116
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
117
117
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
118
- default: "default";
119
118
  chat: "chat";
119
+ default: "default";
120
120
  voice: "voice";
121
121
  processing: "processing";
122
122
  service: "service";
@@ -154,8 +154,8 @@ export declare const deleteRoutingSchemaResponse: zod.ZodObject<{
154
154
  id: zod.ZodOptional<zod.ZodString>;
155
155
  name: zod.ZodOptional<zod.ZodString>;
156
156
  type: zod.ZodDefault<zod.ZodEnum<{
157
- default: "default";
158
157
  chat: "chat";
158
+ default: "default";
159
159
  voice: "voice";
160
160
  processing: "processing";
161
161
  service: "service";
@@ -191,8 +191,8 @@ export declare const readRoutingSchemaResponse: zod.ZodObject<{
191
191
  id: zod.ZodOptional<zod.ZodString>;
192
192
  name: zod.ZodOptional<zod.ZodString>;
193
193
  type: zod.ZodDefault<zod.ZodEnum<{
194
- default: "default";
195
194
  chat: "chat";
195
+ default: "default";
196
196
  voice: "voice";
197
197
  processing: "processing";
198
198
  service: "service";
@@ -221,8 +221,8 @@ export declare const patchRoutingSchemaBody: zod.ZodObject<{
221
221
  name: zod.ZodOptional<zod.ZodString>;
222
222
  note: zod.ZodOptional<zod.ZodString>;
223
223
  type: zod.ZodDefault<zod.ZodEnum<{
224
- default: "default";
225
224
  chat: "chat";
225
+ default: "default";
226
226
  voice: "voice";
227
227
  processing: "processing";
228
228
  service: "service";
@@ -244,8 +244,8 @@ export declare const patchRoutingSchemaResponse: zod.ZodObject<{
244
244
  id: zod.ZodOptional<zod.ZodString>;
245
245
  name: zod.ZodOptional<zod.ZodString>;
246
246
  type: zod.ZodDefault<zod.ZodEnum<{
247
- default: "default";
248
247
  chat: "chat";
248
+ default: "default";
249
249
  voice: "voice";
250
250
  processing: "processing";
251
251
  service: "service";
@@ -273,8 +273,8 @@ export declare const updateRoutingSchemaBody: zod.ZodObject<{
273
273
  name: zod.ZodOptional<zod.ZodString>;
274
274
  note: zod.ZodOptional<zod.ZodString>;
275
275
  type: zod.ZodDefault<zod.ZodEnum<{
276
- default: "default";
277
276
  chat: "chat";
277
+ default: "default";
278
278
  voice: "voice";
279
279
  processing: "processing";
280
280
  service: "service";
@@ -296,8 +296,8 @@ export declare const updateRoutingSchemaResponse: zod.ZodObject<{
296
296
  id: zod.ZodOptional<zod.ZodString>;
297
297
  name: zod.ZodOptional<zod.ZodString>;
298
298
  type: zod.ZodDefault<zod.ZodEnum<{
299
- default: "default";
300
299
  chat: "chat";
300
+ default: "default";
301
301
  voice: "voice";
302
302
  processing: "processing";
303
303
  service: "service";
@@ -18,9 +18,9 @@ export declare const getTimelineTimelineQueryParams: zod.ZodObject<{
18
18
  dateFrom: zod.ZodOptional<zod.ZodString>;
19
19
  dateTo: zod.ZodOptional<zod.ZodString>;
20
20
  type: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
21
- email: "email";
22
21
  chat: "chat";
23
22
  call: "call";
23
+ email: "email";
24
24
  }>>>;
25
25
  }, zod.z.core.$strip>;
26
26
  export declare const getTimelineTimelineResponseDaysItemItemsItemTypeDefault = "chat";
@@ -136,9 +136,9 @@ export declare const getTimelineTimelineResponse: zod.ZodObject<{
136
136
  to: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
137
137
  }, zod.z.core.$strip>>;
138
138
  type: zod.ZodDefault<zod.ZodEnum<{
139
- email: "email";
140
139
  chat: "chat";
141
140
  call: "call";
141
+ email: "email";
142
142
  }>>;
143
143
  }, zod.z.core.$strip>>>;
144
144
  }, zod.z.core.$strip>>>;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,129 @@
1
+ import en from './en/en';
2
+ import uk from './uk/uk';
3
+ import ru from './ru/ru';
4
+ import es from './es/es';
5
+ import pl from './pl/pl';
6
+ import ro from './ro/ro';
7
+ import kz from './kz/kz';
8
+ import uz from './uz/uz';
9
+ import vi from './vi/vi';
10
+ export declare const messages: {
11
+ en: {
12
+ backendErrors: {
13
+ app: {
14
+ auditForm: {
15
+ isValid: {
16
+ option: {
17
+ duplicateScore: string;
18
+ };
19
+ };
20
+ };
21
+ };
22
+ };
23
+ };
24
+ uk: {
25
+ backendErrors: {
26
+ app: {
27
+ auditForm: {
28
+ isValid: {
29
+ option: {
30
+ duplicateScore: string;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ };
36
+ };
37
+ ru: {
38
+ backendErrors: {
39
+ app: {
40
+ auditForm: {
41
+ isValid: {
42
+ option: {
43
+ duplicateScore: string;
44
+ };
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ es: {
51
+ backendErrors: {
52
+ app: {
53
+ auditForm: {
54
+ isValid: {
55
+ option: {
56
+ duplicateScore: string;
57
+ };
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
63
+ pl: {
64
+ backendErrors: {
65
+ app: {
66
+ auditForm: {
67
+ isValid: {
68
+ option: {
69
+ duplicateScore: string;
70
+ };
71
+ };
72
+ };
73
+ };
74
+ };
75
+ };
76
+ ro: {
77
+ backendErrors: {
78
+ app: {
79
+ auditForm: {
80
+ isValid: {
81
+ option: {
82
+ duplicateScore: string;
83
+ };
84
+ };
85
+ };
86
+ };
87
+ };
88
+ };
89
+ kz: {
90
+ backendErrors: {
91
+ app: {
92
+ auditForm: {
93
+ isValid: {
94
+ option: {
95
+ duplicateScore: string;
96
+ };
97
+ };
98
+ };
99
+ };
100
+ };
101
+ };
102
+ uz: {
103
+ backendErrors: {
104
+ app: {
105
+ auditForm: {
106
+ isValid: {
107
+ option: {
108
+ duplicateScore: string;
109
+ };
110
+ };
111
+ };
112
+ };
113
+ };
114
+ };
115
+ vi: {
116
+ backendErrors: {
117
+ app: {
118
+ auditForm: {
119
+ isValid: {
120
+ option: {
121
+ duplicateScore: string;
122
+ };
123
+ };
124
+ };
125
+ };
126
+ };
127
+ };
128
+ };
129
+ export { en, uk, ru, es, pl, ro, kz, uz, vi };
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ backendErrors: {
3
+ app: {
4
+ auditForm: {
5
+ isValid: {
6
+ option: {
7
+ duplicateScore: string;
8
+ };
9
+ };
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;