@webitel/ui-sdk 26.8.34 → 26.8.36
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/locale/en/en.js +7 -0
- package/src/locale/es/es.js +9 -0
- package/src/locale/kz/kz.js +9 -0
- package/src/locale/pl/pl.js +8 -0
- package/src/locale/ro/ro.js +9 -0
- package/src/locale/ru/ru.js +8 -0
- package/src/locale/uk/uk.js +7 -0
- package/src/locale/uz/uz.js +9 -0
- package/src/locale/vi/vi.js +8 -0
- package/src/modules/AgentStatusSelect/api/agent-status.js +2 -0
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-activity-type-popup.vue +104 -0
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +148 -37
- package/src/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.ts +43 -0
- package/src/modules/AgentStatusSelect/types/StatusChangePayload.types.ts +9 -0
- package/src/modules/AgentStatusSelect/types/UseCCenterModeSwitcherParams.types.ts +9 -0
- package/src/modules/ObjectPermissions/headers/headers.ts +5 -0
- package/src/types/LookupOption.types.ts +4 -0
- package/src/types/index.ts +1 -0
- package/src/validations/config/errors/__tests__/customZodErrorsHandler.spec.ts +103 -0
- package/src/validations/config/errors/customZodErrorsHandler.ts +14 -0
- package/types/.tsbuildinfo +1 -1
- package/types/locale/en/en.d.ts +7 -0
- package/types/locale/es/es.d.ts +10 -2
- package/types/locale/i18n.d.ts +63 -0
- package/types/locale/index.d.ts +63 -0
- package/types/locale/kz/kz.d.ts +10 -2
- package/types/locale/pl/pl.d.ts +10 -2
- package/types/locale/ro/ro.d.ts +10 -2
- package/types/locale/ru/ru.d.ts +10 -2
- package/types/locale/uk/uk.d.ts +10 -2
- package/types/locale/uz/uz.d.ts +10 -2
- package/types/locale/vi/vi.d.ts +10 -2
- package/types/modules/AgentStatusSelect/api/agent-status.d.ts +2 -1
- package/types/modules/AgentStatusSelect/components/_internals/wt-cc-activity-type-popup.vue.d.ts +15 -0
- package/types/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue.d.ts +21 -32
- package/types/modules/AgentStatusSelect/composables/useCCenterModeSwitcher.d.ts +5 -0
- package/types/modules/AgentStatusSelect/types/StatusChangePayload.types.d.ts +8 -0
- package/types/modules/AgentStatusSelect/types/UseCCenterModeSwitcherParams.types.d.ts +8 -0
- package/types/modules/ObjectPermissions/headers/headers.d.ts +5 -0
- package/types/types/LookupOption.types.d.ts +4 -0
- package/types/types/index.d.ts +1 -0
|
@@ -1,34 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
agentId:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
changed: (...args: any[]) => void;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
-
agentId: {
|
|
19
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
status: {
|
|
23
|
-
default: "offline";
|
|
24
|
-
};
|
|
25
|
-
statusDuration: {
|
|
26
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
27
|
-
default: number;
|
|
28
|
-
};
|
|
29
|
-
}>> & Readonly<{
|
|
30
|
-
onChanged?: ((...args: any[]) => any) | undefined;
|
|
1
|
+
import type { LookupOption } from '../../../types';
|
|
2
|
+
import type { StatusChangePayload } from '../types/StatusChangePayload.types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
agentId: string | number;
|
|
5
|
+
status?: string;
|
|
6
|
+
statusDuration?: string | number;
|
|
7
|
+
showCallCenterSwitcher?: boolean;
|
|
8
|
+
isCallCenterOn?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"changed-call-center-mode": (payload?: LookupOption | undefined) => any;
|
|
12
|
+
changed: (payload: StatusChangePayload) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onChanged-call-center-mode"?: ((payload?: LookupOption | undefined) => any) | undefined;
|
|
15
|
+
onChanged?: ((payload: StatusChangePayload) => any) | undefined;
|
|
31
16
|
}>, {
|
|
32
|
-
status:
|
|
17
|
+
status: string;
|
|
33
18
|
statusDuration: string | number;
|
|
34
|
-
|
|
19
|
+
showCallCenterSwitcher: boolean;
|
|
20
|
+
isCallCenterOn: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { UseCCenterModeSwitcherParams } from '../types/UseCCenterModeSwitcherParams.types';
|
|
2
|
+
export declare const useCCenterModeSwitcher: ({ activityTypes, loadActivityTypes, openActivityTypePopup, emit, }: UseCCenterModeSwitcherParams) => {
|
|
3
|
+
callCenterModeChanging: import("vue").Ref<boolean, boolean>;
|
|
4
|
+
toggleCallCenterMode: (value: boolean) => Promise<void>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { LookupOption } from '../../../types';
|
|
3
|
+
export interface UseCCenterModeSwitcherParams {
|
|
4
|
+
activityTypes: Ref<LookupOption[]>;
|
|
5
|
+
loadActivityTypes: () => Promise<void>;
|
|
6
|
+
openActivityTypePopup: () => void;
|
|
7
|
+
emit: (event: 'changed-call-center-mode', payload?: LookupOption) => void;
|
|
8
|
+
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `field` is what goes into the `fields` query of `GET <object>/:id/acl`, where
|
|
3
|
+
* the three rule columns all come from one `granted` string — the store asks
|
|
4
|
+
* for it once. The rule letters (`r`, `w`, `d`) are not attributes there.
|
|
5
|
+
*/
|
|
1
6
|
export declare const headers: {
|
|
2
7
|
value: string;
|
|
3
8
|
locale: string;
|
package/types/types/index.d.ts
CHANGED