@webitel/ui-sdk 26.8.99 → 26.8.101

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 (43) hide show
  1. package/dist/{clients-DenpsPyu.js → clients-ClR-VL_c.js} +24 -28
  2. package/dist/{components-CMBVRgca.js → components-CB2t5ag8.js} +2876 -1068
  3. package/dist/convertDuration-CGW5IDMW.js +89 -0
  4. package/dist/{enums-B_9ZBu01.js → enums-Bd-8yrmg.js} +30 -30
  5. package/dist/ui-sdk.js +15 -15
  6. package/dist/ui-sdk.umd.cjs +380 -380
  7. package/dist/{useValidation-Dmm2xos_.js → useValidation-CtEfmUkB.js} +1 -1
  8. package/dist/utils-B_8uwL9P.js +4 -0
  9. package/dist/{wt-action-bar-BpuER6TA.js → wt-action-bar-B4rcG26w.js} +2 -2
  10. package/dist/{wt-badge-tosjsmJU.js → wt-badge-lFnfK2an.js} +1 -1
  11. package/dist/{wt-button-CNQAK85M.js → wt-button-BzYDkfhK.js} +17 -17
  12. package/dist/{wt-chat-emoji-DGnuASX3.js → wt-chat-emoji-DwGl685x.js} +4 -4
  13. package/dist/{wt-datepicker-BS3przUJ.js → wt-datepicker-D_O49-Ab.js} +43 -43
  14. package/dist/{wt-display-chip-items-DVE5aPNw.js → wt-display-chip-items-_VHRHB6L.js} +2 -2
  15. package/dist/{wt-dual-panel-Cs_Yzfxt.js → wt-dual-panel-B0inNxRm.js} +1 -1
  16. package/dist/{wt-expansion-card-8YzHs8F1.js → wt-expansion-card-CJjtuFDk.js} +1 -1
  17. package/dist/{wt-expansion-panel-kZmHSvPU.js → wt-expansion-panel-tqCCM3go.js} +1 -1
  18. package/dist/{wt-icon-ClDNfV5I.js → wt-icon-DFtSR4bO.js} +1 -1
  19. package/dist/{wt-icon-action-B8vuj9cC.js → wt-icon-action-DUAnoMrj.js} +1 -1
  20. package/dist/{wt-icon-btn-DDElLZil.js → wt-icon-btn-CeGGT2PO.js} +1 -1
  21. package/dist/{wt-notifications-bar-DZidZ2VZ.js → wt-notifications-bar-DWME3pmb.js} +2 -2
  22. package/dist/{wt-player-CxMTs3eF.js → wt-player-DXCQLKch.js} +3 -3
  23. package/dist/{wt-screen-recordings-action-BTtZq2BR.js → wt-screen-recordings-action-Cx7-2gDE.js} +1 -1
  24. package/dist/{wt-search-bar-CE4WhuJ6.js → wt-search-bar-BkopW1qp.js} +1 -1
  25. package/dist/{wt-send-message-popup-DNRwANy-.js → wt-send-message-popup-Dl-FeGOx.js} +13 -12
  26. package/dist/{wt-status-select-CDt8sZr9.js → wt-status-select-DnaJ04Gw.js} +12 -12
  27. package/dist/{wt-table-DHpnLu_f.js → wt-table-xmGhfp4p.js} +3 -3
  28. package/dist/{wt-timepicker-D-tnO-gX.js → wt-timepicker-C0DHJSeR.js} +2 -2
  29. package/dist/{wt-toast-DKjRJFE2.js → wt-toast-Lge1Y6IO.js} +10 -10
  30. package/dist/{wt-tree-table-DDH6vMh7.js → wt-tree-table-BTHxl_MY.js} +1 -1
  31. package/dist/{wt-type-extension-value-input-CUx43R8o.js → wt-type-extension-value-input-Cd0towde.js} +17 -17
  32. package/dist/{wt-vidstack-player-_x_GEpy4.js → wt-vidstack-player-IfN1Nbyd.js} +5 -4
  33. package/package.json +1 -1
  34. package/src/enums/FormatDateMode/FormatDateMode.ts +1 -10
  35. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +7 -2
  36. package/src/scripts/convertDuration.js +1 -13
  37. package/src/utils/formatDate.ts +1 -37
  38. package/types/.tsbuildinfo +1 -1
  39. package/types/enums/FormatDateMode/FormatDateMode.d.ts +1 -8
  40. package/types/scripts/convertDuration.d.ts +1 -1
  41. package/types/utils/formatDate.d.ts +1 -4
  42. package/dist/convertDuration-1K7fuEpO.js +0 -8
  43. package/dist/utils-DReAiJBV.js +0 -1902
@@ -1,24 +1,20 @@
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-CMBVRgca.js";
5
- import { m as l } from "./enums-B_9ZBu01.js";
6
- import { i as u, o as d } from "./utils-DReAiJBV.js";
4
+ import { i as c, l, s as u } from "./convertDuration-CGW5IDMW.js";
5
+ import { p as d } from "./enums-Bd-8yrmg.js";
7
6
  import { t as f } from "./deep-copy-7O5ej7vT.js";
8
7
  import { get as p, set as m } from "lodash-es";
9
8
  import * as h from "zod";
10
9
  import { z as g } from "zod";
11
- //#region packages/api-services/src/utils/gen/index.ts
12
- var _ = (e) => e.keyof().options;
13
- //#endregion
14
10
  //#region node_modules/date-fns/addDays.js
15
- function v(e, t, n) {
11
+ function _(e, t, n) {
16
12
  let r = u(e, n?.in);
17
- return isNaN(t) ? d(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
13
+ return isNaN(t) ? l(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
18
14
  }
19
15
  //#endregion
20
- //#region packages/api-services/src/gen/_models/contactsGroupType.ts
21
- var y = {
16
+ //#region packages/api-services/src/utils/gen/index.ts
17
+ var v = (e) => e.keyof().options, y = {
22
18
  GroupTypeUnspecified: "GROUP_TYPE_UNSPECIFIED",
23
19
  Static: "STATIC",
24
20
  Dynamic: "DYNAMIC"
@@ -39149,13 +39145,13 @@ var Ve = "/call_center/agents", He = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
39149
39145
  },
39150
39146
  ...N(Ve)
39151
39147
  };
39152
- ({ ...N("/calendars") }), _(ie), _(R), _(R), _(Ne), _(Me), _(oe), _(ae), { ...N("/cases") }, Object.freeze({
39148
+ ({ ...N("/calendars") }), v(ie), v(R), v(R), v(Ne), v(Me), v(oe), v(ae), { ...N("/cases") }, Object.freeze({
39153
39149
  VIBER: "viber",
39154
39150
  WHATSAPP: "whatsapp",
39155
39151
  TELEGRAM: "telegram",
39156
39152
  MESSENGER: "messenger",
39157
39153
  EMAIL: "email"
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" } });
39154
+ }), i(), { ...N("/storage/cognitive_profiles") }, [...v(Fe)], v(ye), { ...N("/contacts/groups") }, { ...N("/devices") }, v(he), v(ge), v(F), v(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
39155
  var Ke = {
39160
39156
  patch: async (e) => {
39161
39157
  let t = S(e, [C()]);
@@ -39179,7 +39175,7 @@ var Ke = {
39179
39175
  }
39180
39176
  }
39181
39177
  };
39182
- _(De), { ...N("/oauth/apps") }, i(), { ...N("/call_center/resource_group") }, { ...N("/call_center/resources") }, _(L), _(ke);
39178
+ v(De), { ...N("/oauth/apps") }, i(), { ...N("/call_center/resource_group") }, { ...N("/call_center/resources") }, v(L), v(ke);
39183
39179
  //#endregion
39184
39180
  //#region packages/api-services/src/validations/_shared/clearableNumber.validations.ts
39185
39181
  var H = g.number().nullable().optional(), U = (e = 1) => g.union([g.string().min(e), g.number().min(e)]), W = (e) => ({ params: { i18nKey: e } }), G = (e) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e instanceof Date ? !Number.isNaN(e.getTime()) : typeof e == "object" ? Object.keys(e).length > 0 : String(e).length > 0, K = g.object({
@@ -39426,8 +39422,8 @@ g.object({
39426
39422
  brand: g.string().optional().default(""),
39427
39423
  model: g.string().optional().default(""),
39428
39424
  mac: ut,
39429
- hotdesk: g.boolean().optional().default(!1),
39430
- hotdesks: g.array(g.string()).optional().default([])
39425
+ hotdesk: g.boolean().optional(),
39426
+ hotdesks: g.array(g.string()).optional()
39431
39427
  }).superRefine((e, t) => {
39432
39428
  !e.id && !e.password && t.addIssue({
39433
39429
  code: "custom",
@@ -39466,18 +39462,18 @@ var dt = {
39466
39462
  "payload.minOnlineAgents": 0
39467
39463
  }
39468
39464
  }, ft = {
39469
- [l.OFFLINE_QUEUE]: {
39465
+ [d.OFFLINE_QUEUE]: {
39470
39466
  required: ["strategy", "calendar"],
39471
39467
  minValue: { "payload.originateTimeout": 0 }
39472
39468
  },
39473
- [l.INBOUND_QUEUE]: {
39469
+ [d.INBOUND_QUEUE]: {
39474
39470
  required: ["payload.timeBaseScore"],
39475
39471
  minValue: {
39476
39472
  "payload.maxWaitTime": 0,
39477
39473
  "payload.discardAbandonedAfter": 0
39478
39474
  }
39479
39475
  },
39480
- [l.OUTBOUND_IVR_QUEUE]: {
39476
+ [d.OUTBOUND_IVR_QUEUE]: {
39481
39477
  required: [
39482
39478
  "strategy",
39483
39479
  "calendar",
@@ -39490,7 +39486,7 @@ var dt = {
39490
39486
  "payload.minDuration": 0
39491
39487
  }
39492
39488
  },
39493
- [l.PREVIEW_DIALER]: {
39489
+ [d.PREVIEW_DIALER]: {
39494
39490
  required: [
39495
39491
  "strategy",
39496
39492
  "calendar",
@@ -39501,7 +39497,7 @@ var dt = {
39501
39497
  "payload.waitBetweenRetries": 0
39502
39498
  }
39503
39499
  },
39504
- [l.PROGRESSIVE_DIALER]: {
39500
+ [d.PROGRESSIVE_DIALER]: {
39505
39501
  required: [
39506
39502
  "strategy",
39507
39503
  "calendar",
@@ -39514,7 +39510,7 @@ var dt = {
39514
39510
  "payload.progressiveCount": 1
39515
39511
  }
39516
39512
  },
39517
- [l.PREDICTIVE_DIALER]: {
39513
+ [d.PREDICTIVE_DIALER]: {
39518
39514
  required: [
39519
39515
  "strategy",
39520
39516
  "calendar",
@@ -39528,25 +39524,25 @@ var dt = {
39528
39524
  "payload.progressiveCount": 1
39529
39525
  }
39530
39526
  },
39531
- [l.CHAT_INBOUND_QUEUE]: {
39527
+ [d.CHAT_INBOUND_QUEUE]: {
39532
39528
  required: ["strategy", "payload.timeBaseScore"],
39533
39529
  minValue: {
39534
39530
  "payload.maxWaitTime": 0,
39535
39531
  "payload.discardAbandonedAfter": 0
39536
39532
  }
39537
39533
  },
39538
- [l.IM_CHAT_QUEUE]: {
39534
+ [d.IM_CHAT_QUEUE]: {
39539
39535
  required: ["strategy", "payload.timeBaseScore"],
39540
39536
  minValue: {
39541
39537
  "payload.maxWaitTime": 0,
39542
39538
  "payload.discardAbandonedAfter": 0
39543
39539
  }
39544
39540
  },
39545
- [l.INBOUND_JOB_QUEUE]: {
39541
+ [d.INBOUND_JOB_QUEUE]: {
39546
39542
  required: ["strategy", "calendar"],
39547
39543
  minValue: { "payload.waitBetweenRetries": 0 }
39548
39544
  },
39549
- [l.OUTBOUND_JOB_QUEUE]: {
39545
+ [d.OUTBOUND_JOB_QUEUE]: {
39550
39546
  required: [
39551
39547
  "strategy",
39552
39548
  "calendar",
@@ -39696,7 +39692,7 @@ var xt = g.object({
39696
39692
  bucket: J.optional(),
39697
39693
  timezone: J.optional(),
39698
39694
  agent: J.optional(),
39699
- expireAt: g.union([g.string(), g.number()]).optional().default(() => v(Date.now(), 7).getTime()),
39695
+ expireAt: g.union([g.string(), g.number()]).optional().default(() => _(Date.now(), 7).getTime()),
39700
39696
  minOfferingAt: g.union([g.string(), g.number()]).optional(),
39701
39697
  stopCause: g.string().optional(),
39702
39698
  variables: g.array(X).optional()
@@ -39748,7 +39744,7 @@ g.object({
39748
39744
  }), g.object({ fields: g.array(g.any()).optional() }), g.object({
39749
39745
  key: g.string().min(1),
39750
39746
  value: g.string().min(1)
39751
- }), [..._(vt)], [..._(yt)], [..._(xt)], [..._(St)], [..._(Ct)], 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, _(_t), { ...N("/call_center/queues") }, { ...N("/call_center/teams") }, i(), { ...N("/users") }, _(z), _(Be), i();
39747
+ }), [...v(vt)], [...v(yt)], [...v(xt)], [...v(St)], [...v(Ct)], d.OFFLINE_QUEUE, d.INBOUND_QUEUE, d.OUTBOUND_IVR_QUEUE, d.PREVIEW_DIALER, d.PROGRESSIVE_DIALER, d.PREDICTIVE_DIALER, d.CHAT_INBOUND_QUEUE, d.IM_CHAT_QUEUE, d.INBOUND_JOB_QUEUE, d.OUTBOUND_JOB_QUEUE, v(_t), { ...N("/call_center/queues") }, { ...N("/call_center/teams") }, i(), { ...N("/users") }, v(z), v(Be), i();
39752
39748
  //#endregion
39753
39749
  //#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
39754
39750
  var Tt = i(), Et = async ({ path: e, display: t, primary: n, ...r }) => {
@@ -39799,6 +39795,6 @@ Object.freeze({
39799
39795
  DESTINATION: "destination"
39800
39796
  });
39801
39797
  var Ot = "/contacts";
39802
- _(ue), [..._(de)], [..._(pe)], { ...N(Ot) };
39798
+ v(ue), [...v(de)], [...v(pe)], { ...N(Ot) };
39803
39799
  //#endregion
39804
39800
  export { Ke as n, Ge as r, Dt as t };