@webitel/ui-sdk 26.8.88 → 26.8.92
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/dist/{clients-cfVUVngv.js → clients-QE08VKJu.js} +57 -57
- package/dist/{components-BSM66otL.js → components-BcZ0B_G9.js} +11 -10
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +637 -637
- package/dist/{wt-chat-emoji-zW3fKPW8.js → wt-chat-emoji-B9olftNi.js} +1 -1
- package/dist/{wt-display-chip-items-D-lzTp0d.js → wt-display-chip-items-CHyVTJr2.js} +1 -1
- package/dist/{wt-send-message-popup-CiswBW69.js → wt-send-message-popup-BLesHcTD.js} +2 -2
- package/dist/{wt-type-extension-value-input-DTjVuaQe.js → wt-type-extension-value-input-DloaddjC.js} +2 -2
- package/dist/{wt-vidstack-player-BUFABzVR.js → wt-vidstack-player-DW1lNfYh.js} +1 -1
- package/package.json +1 -1
- package/src/components/wt-chip/wt-chip.vue +5 -0
- package/src/components/wt-logo/wt-logo.vue +1 -1
- package/src/components/wt-multi-select/wt-multi-select.vue +2 -1
- package/src/modules/Appearance/components/wt-dark-mode-switcher.vue +1 -25
- package/types/.tsbuildinfo +1 -1
- package/types/modules/Appearance/components/wt-dark-mode-switcher.vue.d.ts +3 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e, s as t } from "./dist-DB8lC4KJ.js";
|
|
2
2
|
import { a as n, i as r, n as i, t as a } from "./genClient-5JkKKac8.js";
|
|
3
3
|
import { i as o, r as s } from "./caseConverters-6cy_SaV5.js";
|
|
4
|
-
import { E as c } from "./components-
|
|
4
|
+
import { E as c } from "./components-BcZ0B_G9.js";
|
|
5
5
|
import { m as l } from "./enums-B_9ZBu01.js";
|
|
6
6
|
import { i as u, o as d } from "./utils-DReAiJBV.js";
|
|
7
7
|
import { t as f } from "./deep-copy-7O5ej7vT.js";
|
|
@@ -39155,7 +39155,7 @@ var Ve = "/call_center/agents", He = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
39155
39155
|
TELEGRAM: "telegram",
|
|
39156
39156
|
MESSENGER: "messenger",
|
|
39157
39157
|
EMAIL: "email"
|
|
39158
|
-
}), i(), { ...N("/storage/cognitive_profiles") }, [..._(Fe)], _(ye), { ...N("/contacts/groups") }, { ...N("/devices") }, _(he), _(ge), _(F), _(ve), i(), { ...N("/storage/import_templates") }, { ...N("/call_center/list") }, i(), localStorage.getItem("access-token"), r.create({ headers: { "content-type": "multipart/form-data" } });
|
|
39158
|
+
}), i(), { ...N("/storage/cognitive_profiles") }, [..._(Fe)], _(ye), { ...N("/contacts/groups") }, { ...N("/devices") }, _(he), _(ge), _(F), _(ve), i(), { ...N("/storage/import_templates") }, i(), { ...N("/call_center/list") }, i(), localStorage.getItem("access-token"), r.create({ headers: { "content-type": "multipart/form-data" } });
|
|
39159
39159
|
var Ke = {
|
|
39160
39160
|
patch: async (e) => {
|
|
39161
39161
|
let t = S(e, [C()]);
|
|
@@ -39268,26 +39268,26 @@ var qe = "hourRange", Z = "timerangeStartLessThanEnd", Je = "timerangeNotInterse
|
|
|
39268
39268
|
working: g.boolean().optional(),
|
|
39269
39269
|
workStart: Q.nullish(),
|
|
39270
39270
|
workStop: Q.nullish()
|
|
39271
|
-
})
|
|
39271
|
+
}), $e = () => Array.from({ length: 7 }, (e, t) => ({
|
|
39272
|
+
day: t,
|
|
39273
|
+
disabled: !1,
|
|
39274
|
+
start: 540,
|
|
39275
|
+
end: 1200
|
|
39276
|
+
})), et = () => Array.from({ length: 7 }, (e, t) => ({
|
|
39277
|
+
day: t,
|
|
39278
|
+
disabled: !0,
|
|
39279
|
+
start: 540,
|
|
39280
|
+
end: 1200
|
|
39281
|
+
})), tt = () => Date.now();
|
|
39272
39282
|
g.object({
|
|
39273
39283
|
name: g.string().min(1),
|
|
39274
39284
|
description: g.string().optional().default(""),
|
|
39275
39285
|
timezone: q,
|
|
39276
|
-
startAt: g.any().optional(),
|
|
39277
|
-
endAt: g.any().optional(),
|
|
39286
|
+
startAt: g.any().optional().default(tt),
|
|
39287
|
+
endAt: g.any().optional().default(tt),
|
|
39278
39288
|
expires: g.boolean().optional().default(!1),
|
|
39279
|
-
accepts: Ze.default(
|
|
39280
|
-
|
|
39281
|
-
disabled: !1,
|
|
39282
|
-
start: 540,
|
|
39283
|
-
end: 1200
|
|
39284
|
-
}))),
|
|
39285
|
-
specials: Ze.default(() => Array.from({ length: 7 }, (e, t) => ({
|
|
39286
|
-
day: t,
|
|
39287
|
-
disabled: !0,
|
|
39288
|
-
start: 540,
|
|
39289
|
-
end: 1200
|
|
39290
|
-
}))),
|
|
39289
|
+
accepts: Ze.default($e),
|
|
39290
|
+
specials: Ze.default(et),
|
|
39291
39291
|
excepts: g.array(Qe).optional().default([])
|
|
39292
39292
|
});
|
|
39293
39293
|
//#endregion
|
|
@@ -39392,19 +39392,19 @@ g.object({
|
|
|
39392
39392
|
});
|
|
39393
39393
|
//#endregion
|
|
39394
39394
|
//#region packages/api-services/src/validations/contactGroup/contactGroup.validations.ts
|
|
39395
|
-
var
|
|
39395
|
+
var nt = {
|
|
39396
39396
|
name: g.string().min(1),
|
|
39397
39397
|
description: g.string().optional(),
|
|
39398
39398
|
enabled: g.boolean().default(!0),
|
|
39399
39399
|
type: g.string().optional()
|
|
39400
|
-
},
|
|
39401
|
-
|
|
39400
|
+
}, rt = g.object({
|
|
39401
|
+
...nt,
|
|
39402
39402
|
defaultGroup: K.optional()
|
|
39403
|
-
}),
|
|
39404
|
-
|
|
39403
|
+
}), it = g.object({
|
|
39404
|
+
...nt,
|
|
39405
39405
|
defaultGroup: q
|
|
39406
39406
|
});
|
|
39407
|
-
g.discriminatedUnion("type", [
|
|
39407
|
+
g.discriminatedUnion("type", [rt.extend({ type: g.literal(y.Static) }), it.extend({ type: g.literal(y.Dynamic) })]), g.object({
|
|
39408
39408
|
expression: g.string().min(1),
|
|
39409
39409
|
group: q,
|
|
39410
39410
|
assignee: K.nullish()
|
|
@@ -39415,17 +39415,17 @@ g.discriminatedUnion("type", [et.extend({ type: g.literal(y.Static) }), tt.exten
|
|
|
39415
39415
|
});
|
|
39416
39416
|
//#endregion
|
|
39417
39417
|
//#region packages/api-services/src/validations/device/device.validations.ts
|
|
39418
|
-
var
|
|
39418
|
+
var at = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/, ot = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/, st = g.string().optional().default("").refine((e) => e ? e === "127.0.0.1" || e === "0.0.0.0" ? !1 : at.test(e) : !0, W("ipValidator")), ct = g.string().optional().default("").refine((e) => !e || ot.test(e), W("macValidator"));
|
|
39419
39419
|
g.object({
|
|
39420
39420
|
id: g.string().optional(),
|
|
39421
39421
|
name: g.string().min(1).default(""),
|
|
39422
39422
|
account: g.string().min(1).default(""),
|
|
39423
39423
|
password: g.string().optional().default(""),
|
|
39424
39424
|
user: J.optional().default({}),
|
|
39425
|
-
ip:
|
|
39425
|
+
ip: st,
|
|
39426
39426
|
brand: g.string().optional().default(""),
|
|
39427
39427
|
model: g.string().optional().default(""),
|
|
39428
|
-
mac:
|
|
39428
|
+
mac: ct,
|
|
39429
39429
|
hotdesk: g.boolean().optional().default(!1),
|
|
39430
39430
|
hotdesks: g.array(g.string()).optional().default([])
|
|
39431
39431
|
}).superRefine((e, t) => {
|
|
@@ -39440,7 +39440,7 @@ g.object({
|
|
|
39440
39440
|
path: ["hotdesks"],
|
|
39441
39441
|
...W("required")
|
|
39442
39442
|
});
|
|
39443
|
-
}), g.object({
|
|
39443
|
+
}), g.object({ certificate: g.string().min(1).default("") }), g.object({
|
|
39444
39444
|
name: g.string().min(1),
|
|
39445
39445
|
type: g.string().min(1),
|
|
39446
39446
|
clientId: g.string().min(1),
|
|
@@ -39459,13 +39459,13 @@ g.object({
|
|
|
39459
39459
|
});
|
|
39460
39460
|
//#endregion
|
|
39461
39461
|
//#region packages/api-services/src/validations/queue/queue.rules.ts
|
|
39462
|
-
var
|
|
39462
|
+
var lt = {
|
|
39463
39463
|
required: ["name"],
|
|
39464
39464
|
minValue: {
|
|
39465
39465
|
priority: 0,
|
|
39466
39466
|
"payload.minOnlineAgents": 0
|
|
39467
39467
|
}
|
|
39468
|
-
},
|
|
39468
|
+
}, ut = {
|
|
39469
39469
|
[l.OFFLINE_QUEUE]: {
|
|
39470
39470
|
required: ["strategy", "calendar"],
|
|
39471
39471
|
minValue: { "payload.originateTimeout": 0 }
|
|
@@ -39558,7 +39558,7 @@ var ot = {
|
|
|
39558
39558
|
"payload.minDuration": 0
|
|
39559
39559
|
}
|
|
39560
39560
|
}
|
|
39561
|
-
},
|
|
39561
|
+
}, dt = g.object({
|
|
39562
39562
|
enabled: g.boolean().optional(),
|
|
39563
39563
|
ai: g.boolean().optional(),
|
|
39564
39564
|
positive: g.array(g.string()).optional(),
|
|
@@ -39574,7 +39574,7 @@ var ot = {
|
|
|
39574
39574
|
afterGreetingSilence: H,
|
|
39575
39575
|
greeting: H,
|
|
39576
39576
|
initialSilence: H
|
|
39577
|
-
}),
|
|
39577
|
+
}), ft = g.object({
|
|
39578
39578
|
maxAttempts: H,
|
|
39579
39579
|
minAttempts: H,
|
|
39580
39580
|
originateTimeout: H,
|
|
@@ -39615,19 +39615,19 @@ var ot = {
|
|
|
39615
39615
|
recordAll: g.boolean().optional(),
|
|
39616
39616
|
allowGreetingAgent: g.boolean().optional(),
|
|
39617
39617
|
autoAnswerTone: g.string().nullable().optional(),
|
|
39618
|
-
amd:
|
|
39619
|
-
}),
|
|
39618
|
+
amd: dt.optional()
|
|
39619
|
+
}), pt = g.object({
|
|
39620
39620
|
enabled: g.boolean().optional(),
|
|
39621
39621
|
isTimeoutRetry: g.boolean().optional(),
|
|
39622
39622
|
prolongationTimeSec: H,
|
|
39623
39623
|
repeatsNumber: H
|
|
39624
|
-
}),
|
|
39624
|
+
}), mt = g.object({
|
|
39625
39625
|
enabled: g.boolean().optional(),
|
|
39626
39626
|
formSchema: J.optional(),
|
|
39627
39627
|
sec: H,
|
|
39628
39628
|
renewalSec: H,
|
|
39629
|
-
prolongationOptions:
|
|
39630
|
-
}),
|
|
39629
|
+
prolongationOptions: pt.prefault({})
|
|
39630
|
+
}), ht = g.object({
|
|
39631
39631
|
name: g.string().min(1),
|
|
39632
39632
|
description: g.string().optional(),
|
|
39633
39633
|
type: g.number(),
|
|
@@ -39645,11 +39645,11 @@ var ot = {
|
|
|
39645
39645
|
formSchema: J.optional(),
|
|
39646
39646
|
strategy: g.string().optional(),
|
|
39647
39647
|
stickyAgent: g.boolean().optional(),
|
|
39648
|
-
taskProcessing:
|
|
39649
|
-
payload:
|
|
39648
|
+
taskProcessing: mt.optional(),
|
|
39649
|
+
payload: ft.optional(),
|
|
39650
39650
|
variables: g.array(X).optional()
|
|
39651
39651
|
}).superRefine((e, t) => {
|
|
39652
|
-
let n = [
|
|
39652
|
+
let n = [lt, ut[Number(e.type)] ?? {}];
|
|
39653
39653
|
for (let r of n) {
|
|
39654
39654
|
for (let n of r.required ?? []) G(p(e, n)) || t.addIssue({
|
|
39655
39655
|
code: "custom",
|
|
@@ -39668,16 +39668,16 @@ var ot = {
|
|
|
39668
39668
|
});
|
|
39669
39669
|
}
|
|
39670
39670
|
}
|
|
39671
|
-
}),
|
|
39671
|
+
}), gt = g.object({
|
|
39672
39672
|
bucket: Y,
|
|
39673
39673
|
priority: g.number().min(0).default(0),
|
|
39674
39674
|
disabled: g.boolean().optional()
|
|
39675
|
-
}),
|
|
39675
|
+
}), _t = g.object({
|
|
39676
39676
|
event: g.string().min(1),
|
|
39677
39677
|
schema: Y,
|
|
39678
39678
|
properties: g.array(g.string()).optional(),
|
|
39679
39679
|
enabled: g.boolean().default(!0)
|
|
39680
|
-
}),
|
|
39680
|
+
}), vt = g.object({
|
|
39681
39681
|
destination: g.string().min(1),
|
|
39682
39682
|
type: Y,
|
|
39683
39683
|
dtmf: g.string().regex(/^[\d|w|W]*$/).optional(),
|
|
@@ -39685,9 +39685,9 @@ var ot = {
|
|
|
39685
39685
|
priority: g.number().optional(),
|
|
39686
39686
|
resource: J.optional(),
|
|
39687
39687
|
description: g.string().optional()
|
|
39688
|
-
}),
|
|
39688
|
+
}), yt = g.object({
|
|
39689
39689
|
name: g.string().min(1),
|
|
39690
|
-
communications: g.array(
|
|
39690
|
+
communications: g.array(vt).min(1),
|
|
39691
39691
|
priority: g.number().optional().default(0),
|
|
39692
39692
|
bucket: J.optional(),
|
|
39693
39693
|
timezone: J.optional(),
|
|
@@ -39696,10 +39696,10 @@ var ot = {
|
|
|
39696
39696
|
minOfferingAt: g.union([g.string(), g.number()]).optional(),
|
|
39697
39697
|
stopCause: g.string().optional(),
|
|
39698
39698
|
variables: g.array(X).optional()
|
|
39699
|
-
}),
|
|
39699
|
+
}), bt = g.object({
|
|
39700
39700
|
resourceGroup: Y,
|
|
39701
39701
|
communication: J.optional()
|
|
39702
|
-
}),
|
|
39702
|
+
}), xt = g.object({
|
|
39703
39703
|
skill: Y,
|
|
39704
39704
|
lvl: g.number().min(0).max(1e3).default(0),
|
|
39705
39705
|
minCapacity: g.number().min(0).max(100).optional().default(0),
|
|
@@ -39716,7 +39716,7 @@ var ot = {
|
|
|
39716
39716
|
path: ["maxCapacity"],
|
|
39717
39717
|
message: "Value must be greater than or equal to the minimum capacity"
|
|
39718
39718
|
}));
|
|
39719
|
-
}),
|
|
39719
|
+
}), St = 6e4;
|
|
39720
39720
|
g.object({
|
|
39721
39721
|
name: g.string().min(1),
|
|
39722
39722
|
description: g.string().optional(),
|
|
@@ -39728,7 +39728,7 @@ g.object({
|
|
|
39728
39728
|
}).superRefine((e, t) => {
|
|
39729
39729
|
if (!e.validFrom || !e.validTo) return;
|
|
39730
39730
|
let n = Number(e.validFrom), r = Number(e.validTo);
|
|
39731
|
-
Number.isNaN(n) || Number.isNaN(r) || n > r -
|
|
39731
|
+
Number.isNaN(n) || Number.isNaN(r) || n > r - St && t.addIssue({
|
|
39732
39732
|
code: "too_big",
|
|
39733
39733
|
origin: "date",
|
|
39734
39734
|
maximum: r,
|
|
@@ -39744,10 +39744,10 @@ g.object({
|
|
|
39744
39744
|
}), g.object({ fields: g.array(g.any()).optional() }), g.object({
|
|
39745
39745
|
key: g.string().min(1),
|
|
39746
39746
|
value: g.string().min(1)
|
|
39747
|
-
}), [..._(
|
|
39747
|
+
}), [..._(gt)], [..._(_t)], [..._(yt)], [..._(bt)], [..._(xt)], l.OFFLINE_QUEUE, l.INBOUND_QUEUE, l.OUTBOUND_IVR_QUEUE, l.PREVIEW_DIALER, l.PROGRESSIVE_DIALER, l.PREDICTIVE_DIALER, l.CHAT_INBOUND_QUEUE, l.IM_CHAT_QUEUE, l.INBOUND_JOB_QUEUE, l.OUTBOUND_JOB_QUEUE, _(ht), { ...N("/call_center/queues") }, { ...N("/call_center/teams") }, i(), { ...N("/users") }, _(z), _(Be), i();
|
|
39748
39748
|
//#endregion
|
|
39749
39749
|
//#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
|
|
39750
|
-
var
|
|
39750
|
+
var Ct = i(), wt = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
39751
39751
|
let i = S(r, [
|
|
39752
39752
|
E(x()),
|
|
39753
39753
|
M("search"),
|
|
@@ -39772,7 +39772,7 @@ var bt = i(), xt = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
|
39772
39772
|
w(e)
|
|
39773
39773
|
]);
|
|
39774
39774
|
try {
|
|
39775
|
-
let { data: e, items: t, next: n } = S((await
|
|
39775
|
+
let { data: e, items: t, next: n } = S((await Ct.get(i)).data, [E(b())]);
|
|
39776
39776
|
return {
|
|
39777
39777
|
items: S(e || t, []) ?? [],
|
|
39778
39778
|
next: n
|
|
@@ -39780,9 +39780,9 @@ var bt = i(), xt = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
|
39780
39780
|
} catch (e) {
|
|
39781
39781
|
throw S(e, [k]);
|
|
39782
39782
|
}
|
|
39783
|
-
},
|
|
39784
|
-
getList:
|
|
39785
|
-
getLookup: (e) =>
|
|
39783
|
+
}, Tt = {
|
|
39784
|
+
getList: wt,
|
|
39785
|
+
getLookup: (e) => wt({
|
|
39786
39786
|
...e,
|
|
39787
39787
|
fields: e.fields || ["id", "name"]
|
|
39788
39788
|
})
|
|
@@ -39794,7 +39794,7 @@ Object.freeze({
|
|
|
39794
39794
|
VARIABLES: "variables",
|
|
39795
39795
|
DESTINATION: "destination"
|
|
39796
39796
|
});
|
|
39797
|
-
var
|
|
39798
|
-
_(ue), [..._(de)], [..._(pe)], { ...N(
|
|
39797
|
+
var Et = "/contacts";
|
|
39798
|
+
_(ue), [..._(de)], [..._(pe)], { ...N(Et) };
|
|
39799
39799
|
//#endregion
|
|
39800
|
-
export { Ke as n, Ge as r,
|
|
39800
|
+
export { Ke as n, Ge as r, Tt as t };
|