@webitel/ui-sdk 26.8.131 → 26.8.133
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-CK-bThbs.js → clients-BVxipio3.js} +466 -452
- package/dist/{components-BF21ppoM.js → components-Bp-9Pd3E.js} +513 -508
- package/dist/{convertDuration-B7EyPh1B.js → convertDuration-r4cKShcD.js} +1 -1
- package/dist/{enums-Qt_FgVQw.js → enums-De3aMU0v.js} +10 -3
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +15 -15
- package/dist/ui-sdk.umd.cjs +264 -264
- package/dist/{useValidation-Doxk7u8O.js → useValidation-DVMLhp7P.js} +1 -1
- package/dist/{utils-g-eGs-rV.js → utils-DDzzeDYC.js} +1 -1
- package/dist/{wt-action-bar-CY9H27Ec.js → wt-action-bar-Bmam7PTX.js} +2 -2
- package/dist/{wt-badge-Dyvw8SJe.js → wt-badge-B2sYDOIO.js} +1 -1
- package/dist/{wt-button-qmvx3hrn.js → wt-button-CnE463wN.js} +2 -2
- package/dist/{wt-chat-emoji-Cx8k9m9H.js → wt-chat-emoji-57Q-4jDY.js} +4 -4
- package/dist/{wt-datepicker-Da7l0Gm1.js → wt-datepicker-BMD_vwhp.js} +6 -6
- package/dist/{wt-display-chip-items-AZ9DiSV4.js → wt-display-chip-items-DUKofLnh.js} +2 -2
- package/dist/{wt-dual-panel-DliLMQ_m.js → wt-dual-panel-BLvpBVYd.js} +1 -1
- package/dist/{wt-expansion-card-CcziJa7V.js → wt-expansion-card-BtjKjHn7.js} +1 -1
- package/dist/{wt-expansion-panel-Y3eYALow.js → wt-expansion-panel-B1ELycoD.js} +1 -1
- package/dist/{wt-icon-oMc-wpjH.js → wt-icon-DcUiwhds.js} +3 -3
- package/dist/{wt-icon-action-BIO8dR4s.js → wt-icon-action-D81WgIrd.js} +2 -19
- package/dist/{wt-icon-btn-D0co3nt5.js → wt-icon-btn-nXKOrltT.js} +1 -1
- package/dist/{wt-notifications-bar-CC48Ce7a.js → wt-notifications-bar-PZDG_jxU.js} +2 -2
- package/dist/{wt-player-CjAl-XrU.js → wt-player-D8dtW7Vv.js} +3 -3
- package/dist/{wt-screen-recordings-action-Dwj649Zu.js → wt-screen-recordings-action-BSVE_Bnb.js} +1 -1
- package/dist/{wt-search-bar-B9iP5zrT.js → wt-search-bar-BHKUUhH-.js} +1 -1
- package/dist/{wt-send-message-popup-BjI9PKzi.js → wt-send-message-popup-CXPAarjJ.js} +3 -3
- package/dist/{wt-status-select-C5YdvKpM.js → wt-status-select-D73ufZVN.js} +2 -2
- package/dist/{wt-table-CsGUHe1D.js → wt-table-C_MUE0EP.js} +3 -3
- package/dist/{wt-timepicker-DcoIUiO-.js → wt-timepicker-D1dciWJ0.js} +4 -4
- package/dist/{wt-toast-DGtljpcq.js → wt-toast-C8mbYaNa.js} +10 -10
- package/dist/{wt-tree-table-DnvAUSXr.js → wt-tree-table-DluG-JAm.js} +1 -1
- package/dist/{wt-type-extension-value-input-C6Mq2QeU.js → wt-type-extension-value-input-C2A0Pk2o.js} +1846 -1774
- package/dist/{wt-vidstack-player-D_N5CdUm.js → wt-vidstack-player-CQOGC3TS.js} +5 -5
- package/package.json +1 -1
- package/src/components/wt-app-header/__tests__/WtAppNavigator.spec.js +47 -0
- package/src/components/wt-app-header/assets/wfm-dark.svg +118 -0
- package/src/components/wt-app-header/assets/wfm-light.svg +118 -0
- package/src/components/wt-app-header/wt-app-navigator.vue +9 -0
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -19
- package/src/enums/WebitelApplications/WfmSections.ts +6 -1
- package/src/locale/en/en.js +7 -0
- package/src/locale/es/es.js +7 -0
- package/src/locale/kz/kz.js +7 -0
- package/src/locale/pl/pl.js +7 -0
- package/src/locale/ro/ro.js +7 -0
- package/src/locale/ru/ru.js +7 -0
- package/src/locale/uk/uk.js +7 -0
- package/src/locale/uz/uz.js +7 -0
- package/src/locale/vi/vi.js +7 -0
- package/src/modules/Userinfo/classes/ApplicationsAccess.ts +20 -0
- package/src/modules/Userinfo/classes/__tests__/ApplicationsAccess.spec.ts +54 -0
- package/src/modules/Userinfo/mappings/__tests__/mappings.spec.ts +32 -0
- package/src/modules/Userinfo/mappings/mappings.ts +8 -2
- package/src/modules/Userinfo/types/UserAccess.ts +3 -1
- package/types/.tsbuildinfo +1 -1
- package/types/enums/WebitelApplications/WfmSections.d.ts +4 -1
- package/types/locale/en/en.d.ts +6 -0
- package/types/locale/es/es.d.ts +8 -0
- package/types/locale/i18n.d.ts +54 -0
- package/types/locale/index.d.ts +54 -0
- package/types/locale/kz/kz.d.ts +8 -0
- package/types/locale/pl/pl.d.ts +8 -0
- package/types/locale/ro/ro.d.ts +8 -0
- package/types/locale/ru/ru.d.ts +8 -0
- package/types/locale/uk/uk.d.ts +8 -0
- package/types/locale/uz/uz.d.ts +8 -0
- package/types/locale/vi/vi.d.ts +8 -0
- package/types/modules/Userinfo/classes/ApplicationsAccess.d.ts +3 -1
- package/types/modules/Userinfo/mappings/mappings.d.ts +3 -2
- package/types/modules/Userinfo/types/UserAccess.d.ts +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as e, r as t } from "./dist-EXdgfpvN.js";
|
|
2
2
|
import { a as n, i as r, n as i, t as a } from "./genClient-CvWlQ0TZ.js";
|
|
3
3
|
import { i as o, r as s } from "./caseConverters-DGri4uJo.js";
|
|
4
|
-
import { T as c } from "./components-
|
|
5
|
-
import { a as l, c as u, r as d, u as f } from "./convertDuration-
|
|
6
|
-
import {
|
|
4
|
+
import { T as c } from "./components-Bp-9Pd3E.js";
|
|
5
|
+
import { a as l, c as u, r as d, u as f } from "./convertDuration-r4cKShcD.js";
|
|
6
|
+
import { S as p, T as m, v as h } from "./enums-De3aMU0v.js";
|
|
7
7
|
import { t as g } from "./deep-copy-BJdHBMNZ.js";
|
|
8
8
|
import { get as _, isPlainObject as ee, set as v } from "lodash-es";
|
|
9
9
|
import * as y from "zod";
|
|
@@ -15,28 +15,28 @@ function te(e, t, n) {
|
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region packages/api-services/src/utils/gen/index.ts
|
|
18
|
-
var x = (e) => e.keyof().options,
|
|
18
|
+
var x = (e) => e.keyof().options, ne = {
|
|
19
19
|
GroupTypeUnspecified: "GROUP_TYPE_UNSPECIFIED",
|
|
20
20
|
Static: "STATIC",
|
|
21
21
|
Dynamic: "DYNAMIC"
|
|
22
|
-
},
|
|
22
|
+
}, S = () => ({
|
|
23
23
|
items: [],
|
|
24
24
|
next: !1
|
|
25
|
-
}),
|
|
25
|
+
}), C = ({ page: e = 1, size: t = 10 } = {}) => ({
|
|
26
26
|
page: e,
|
|
27
27
|
size: t
|
|
28
|
-
}),
|
|
28
|
+
}), re = (e) => (t) => {
|
|
29
29
|
let n = t;
|
|
30
30
|
if (e && e.length > 0) {
|
|
31
31
|
if (n.includes("?")) return n += `&${e.join("&")}`, n;
|
|
32
32
|
n += `?${e.join("&")}`;
|
|
33
33
|
}
|
|
34
34
|
return n;
|
|
35
|
-
},
|
|
35
|
+
}, w = (e, t, { debug: n = !1, withContext: r = null } = {}) => t.reduce((e, t, i) => (n && console.info(`applyTransform debug on step ${i}`, e), r ? t(e, r) : t(e)), e), T = (e = []) => (t) => s(t, e), E = (e) => (t) => `${e}?${n(t, {
|
|
36
36
|
skipEmptyString: !0,
|
|
37
37
|
skipNull: !0,
|
|
38
38
|
arrayFormat: "repeat"
|
|
39
|
-
})}`,
|
|
39
|
+
})}`, ie = /* @__PURE__ */ t(((e, t) => {
|
|
40
40
|
var n = function(e) {
|
|
41
41
|
return r(e) && !i(e);
|
|
42
42
|
};
|
|
@@ -104,15 +104,15 @@ var x = (e) => e.keyof().options, S = {
|
|
|
104
104
|
return g(e, n, t);
|
|
105
105
|
}, {});
|
|
106
106
|
}, t.exports = g;
|
|
107
|
-
})),
|
|
107
|
+
})), ae = /* @__PURE__ */ e(ie(), 1), D = (...e) => (t) => ae.default.all([...e, t]), O = (...e) => (t) => t.map((t) => ae.default.all([...e, t])), oe = {
|
|
108
108
|
eventBus: null,
|
|
109
109
|
i18n: null
|
|
110
110
|
};
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region packages/api-services/src/api/transformers/notify/notify.transformer.ts
|
|
113
|
-
function
|
|
113
|
+
function k(e) {
|
|
114
114
|
if (typeof e == "function") {
|
|
115
|
-
let t = ({ type: e, text: t }) =>
|
|
115
|
+
let t = ({ type: e, text: t }) => oe.eventBus?.$emit("notification", {
|
|
116
116
|
type: e,
|
|
117
117
|
text: t
|
|
118
118
|
});
|
|
@@ -120,7 +120,7 @@ function j(e) {
|
|
|
120
120
|
}
|
|
121
121
|
if (e instanceof Error) {
|
|
122
122
|
let { response: t } = e, n = t?.data?.translation || t?.data?.detail || t?.data?.message || e;
|
|
123
|
-
|
|
123
|
+
oe.eventBus?.$emit("notification", {
|
|
124
124
|
type: "error",
|
|
125
125
|
text: n
|
|
126
126
|
});
|
|
@@ -129,14 +129,14 @@ function j(e) {
|
|
|
129
129
|
}
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region packages/api-services/src/api/transformers/sanitize/sanitize.transformer.ts
|
|
132
|
-
var
|
|
132
|
+
var A = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n[r] = t[r]), n), {}), se = (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), ce = (e) => (t) => {
|
|
133
133
|
if (!t) return t;
|
|
134
|
-
let n = new Map(e.map((e) => [
|
|
135
|
-
return Object.entries(t).reduce((e, [t, r]) => (e[n.get(
|
|
136
|
-
},
|
|
137
|
-
let n = (0,
|
|
134
|
+
let n = new Map(e.map((e) => [se(e), e]));
|
|
135
|
+
return Object.entries(t).reduce((e, [t, r]) => (e[n.get(se(t)) ?? t] = r, e), {});
|
|
136
|
+
}, j = (e) => (t) => A(e)(ce(e)(t)), M = (e = []) => (t) => o(t, e), le = /* @__PURE__ */ e(g(), 1), N = (e = "search") => (t) => {
|
|
137
|
+
let n = (0, le.default)(t), r = _(n, e);
|
|
138
138
|
return !r || r.slice(-1) === "*" ? n : v(n, e, `${r}*`);
|
|
139
|
-
},
|
|
139
|
+
}, P = "acl", ue = (e) => e.map((e) => ({
|
|
140
140
|
...e,
|
|
141
141
|
access: {
|
|
142
142
|
x: {
|
|
@@ -156,7 +156,7 @@ var M = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n
|
|
|
156
156
|
rule: "d".repeat((e.granted.match(/d/g) || []).length)
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
})),
|
|
159
|
+
})), F = (e) => {
|
|
160
160
|
let t = i();
|
|
161
161
|
return {
|
|
162
162
|
getPermissionsList: async ({ parentId: n, ...r }) => {
|
|
@@ -167,33 +167,33 @@ var M = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n
|
|
|
167
167
|
"sort",
|
|
168
168
|
"fields",
|
|
169
169
|
"id"
|
|
170
|
-
], a = { user: !1 }, o =
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
], a = { user: !1 }, o = w(r, [
|
|
171
|
+
D(C()),
|
|
172
|
+
N("search"),
|
|
173
173
|
(e) => ({
|
|
174
174
|
...e,
|
|
175
175
|
q: e.search
|
|
176
176
|
}),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
A(i),
|
|
178
|
+
T(),
|
|
179
|
+
E(`${e}/${n}/${P}`)
|
|
180
180
|
]);
|
|
181
181
|
try {
|
|
182
|
-
let { items: e, next: n } =
|
|
182
|
+
let { items: e, next: n } = w((await t.get(o)).data, [M(), D(S())]);
|
|
183
183
|
return {
|
|
184
|
-
items:
|
|
184
|
+
items: w(e, [O(a), ue]),
|
|
185
185
|
next: n
|
|
186
186
|
};
|
|
187
187
|
} catch (e) {
|
|
188
|
-
throw
|
|
188
|
+
throw w(e, [k]);
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
patchPermissions: async ({ changes: n, id: r }) => {
|
|
192
|
-
let i =
|
|
192
|
+
let i = w(n, [T()]), a = `${e}/${r}/${P}`;
|
|
193
193
|
try {
|
|
194
|
-
return
|
|
194
|
+
return w((await t.patch(a, i)).data, [M()]);
|
|
195
195
|
} catch (e) {
|
|
196
|
-
throw
|
|
196
|
+
throw w(e, [k]);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
};
|
|
@@ -296,7 +296,7 @@ y.object({
|
|
|
296
296
|
"object.name": y.string().describe("display name"),
|
|
297
297
|
"object.id": y.string().describe("identifier")
|
|
298
298
|
});
|
|
299
|
-
var
|
|
299
|
+
var de = y.object({
|
|
300
300
|
grantee: y.string().optional(),
|
|
301
301
|
grants: y.string().optional(),
|
|
302
302
|
object: y.object({
|
|
@@ -304,7 +304,7 @@ var le = y.object({
|
|
|
304
304
|
name: y.string().optional()
|
|
305
305
|
}).optional()
|
|
306
306
|
});
|
|
307
|
-
y.array(
|
|
307
|
+
y.array(de), y.object({
|
|
308
308
|
granted: y.string().optional(),
|
|
309
309
|
revoked: y.string().optional()
|
|
310
310
|
}), y.object({
|
|
@@ -847,7 +847,7 @@ y.array(le), y.object({
|
|
|
847
847
|
});
|
|
848
848
|
//#endregion
|
|
849
849
|
//#region packages/api-services/src/gen-wire/agent-service/agent-service.ts
|
|
850
|
-
var
|
|
850
|
+
var I = (e = a) => ({
|
|
851
851
|
searchAgent: (t, n) => e.get("/call_center/agents", {
|
|
852
852
|
...n,
|
|
853
853
|
params: {
|
|
@@ -958,7 +958,7 @@ var R = (e = a) => ({
|
|
|
958
958
|
...n?.params
|
|
959
959
|
}
|
|
960
960
|
})
|
|
961
|
-
}),
|
|
961
|
+
}), fe = y.object({
|
|
962
962
|
page: y.int().optional(),
|
|
963
963
|
size: y.int().optional(),
|
|
964
964
|
q: y.string().optional(),
|
|
@@ -1036,7 +1036,7 @@ y.object({
|
|
|
1036
1036
|
})).optional(),
|
|
1037
1037
|
next: y.boolean().optional()
|
|
1038
1038
|
});
|
|
1039
|
-
var
|
|
1039
|
+
var pe = y.object({
|
|
1040
1040
|
allow_channels: y.array(y.string()).optional(),
|
|
1041
1041
|
auditor: y.array(y.object({
|
|
1042
1042
|
id: y.string().optional(),
|
|
@@ -1473,7 +1473,7 @@ y.object({
|
|
|
1473
1473
|
}).optional(),
|
|
1474
1474
|
user_presence_status: y.object({ status: y.string().optional() }).optional()
|
|
1475
1475
|
}), y.object({ id: y.string() });
|
|
1476
|
-
var
|
|
1476
|
+
var me = y.object({
|
|
1477
1477
|
allow_channels: y.array(y.string()).optional(),
|
|
1478
1478
|
auditor: y.array(y.object({
|
|
1479
1479
|
id: y.string().optional(),
|
|
@@ -1560,7 +1560,7 @@ y.object({
|
|
|
1560
1560
|
}).optional(),
|
|
1561
1561
|
user_presence_status: y.object({ status: y.string().optional() }).optional()
|
|
1562
1562
|
}), y.object({ id: y.string() });
|
|
1563
|
-
var
|
|
1563
|
+
var he = y.object({
|
|
1564
1564
|
allow_channels: y.array(y.string()).optional(),
|
|
1565
1565
|
auditor: y.array(y.object({
|
|
1566
1566
|
id: y.string().optional(),
|
|
@@ -1715,7 +1715,7 @@ y.object({
|
|
|
1715
1715
|
})).optional(),
|
|
1716
1716
|
next: y.boolean().optional()
|
|
1717
1717
|
});
|
|
1718
|
-
var
|
|
1718
|
+
var ge = y.object({
|
|
1719
1719
|
page: y.int().optional(),
|
|
1720
1720
|
size: y.int().optional(),
|
|
1721
1721
|
q: y.string().optional(),
|
|
@@ -6116,7 +6116,7 @@ y.object({
|
|
|
6116
6116
|
next: y.boolean().optional(),
|
|
6117
6117
|
page: y.string().optional()
|
|
6118
6118
|
}), y.object({ case_etag: y.string().describe("new comment link") });
|
|
6119
|
-
var
|
|
6119
|
+
var _e = y.object({
|
|
6120
6120
|
fields: y.array(y.string()).optional().describe("result fields needed on the front-end for each comment"),
|
|
6121
6121
|
"input.etag": y.string().optional(),
|
|
6122
6122
|
"input.url": y.string().optional(),
|
|
@@ -6721,7 +6721,7 @@ y.object({
|
|
|
6721
6721
|
fields: y.array(y.string()).optional().describe("List of fields to include in the response."),
|
|
6722
6722
|
disableTrigger: y.boolean().optional().describe("Indicates whether to disable the trigger after the application execution.\nDefault is false (trigger **will** be executed).\nSet to true to explicitly prevent the trigger from running (e.g., when called from another trigger or internal flow).\nто\n[WTEL-7055]")
|
|
6723
6723
|
});
|
|
6724
|
-
var
|
|
6724
|
+
var ve = y.object({
|
|
6725
6725
|
assignee: y.object({
|
|
6726
6726
|
id: y.string().optional(),
|
|
6727
6727
|
name: y.string().optional()
|
|
@@ -8392,7 +8392,7 @@ y.object({
|
|
|
8392
8392
|
fields: y.array(y.string()).optional().describe("List of fields to include in the response."),
|
|
8393
8393
|
disableTrigger: y.boolean().optional().describe("Indicates whether to disable the trigger after the application execution.\nDefault is false (trigger **will** be executed).\nSet to true to explicitly prevent the trigger from running (e.g., when called from another trigger or internal flow).\n\n[WTEL-7055]")
|
|
8394
8394
|
});
|
|
8395
|
-
var
|
|
8395
|
+
var ye = y.object({
|
|
8396
8396
|
assignee: y.object({
|
|
8397
8397
|
id: y.string().optional(),
|
|
8398
8398
|
name: y.string().optional()
|
|
@@ -10568,7 +10568,7 @@ y.object({
|
|
|
10568
10568
|
contact_id: y.string().describe("Contact ID associated with."),
|
|
10569
10569
|
etag: y.array(y.string()).min(1).describe("Set of unique ID(s) to remove.")
|
|
10570
10570
|
}), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
10571
|
-
var
|
|
10571
|
+
var be = y.object({
|
|
10572
10572
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
10573
10573
|
created_by: y.object({
|
|
10574
10574
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
@@ -10597,7 +10597,7 @@ var ve = y.object({
|
|
|
10597
10597
|
}).optional().describe("The user who performed last Update."),
|
|
10598
10598
|
ver: y.int().optional().describe("Version of the latest update. Numeric sequence.")
|
|
10599
10599
|
});
|
|
10600
|
-
y.array(
|
|
10600
|
+
y.array(be), y.object({
|
|
10601
10601
|
contact_id: y.string().describe("Contact ID associated with."),
|
|
10602
10602
|
etag: y.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
10603
10603
|
}), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") }), y.object({
|
|
@@ -10982,7 +10982,7 @@ y.array(ve), y.object({
|
|
|
10982
10982
|
next: y.boolean().optional(),
|
|
10983
10983
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
10984
10984
|
}).describe("Contact groups dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactGroupList.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
10985
|
-
var
|
|
10985
|
+
var xe = y.object({
|
|
10986
10986
|
etag: y.string().describe("Unique ID of the latest version of an existing resource."),
|
|
10987
10987
|
group: y.object({
|
|
10988
10988
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
@@ -10990,7 +10990,7 @@ var ye = y.object({
|
|
|
10990
10990
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
10991
10991
|
}).optional().describe("Group of contacts associated.")
|
|
10992
10992
|
}).describe("An input of the Contact's groups.");
|
|
10993
|
-
y.array(
|
|
10993
|
+
y.array(xe), y.object({
|
|
10994
10994
|
data: y.array(y.object({
|
|
10995
10995
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
10996
10996
|
created_by: y.object({
|
|
@@ -11016,7 +11016,7 @@ y.array(ye), y.object({
|
|
|
11016
11016
|
next: y.boolean().optional(),
|
|
11017
11017
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
11018
11018
|
}).describe("Contact groups dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactGroupList.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
11019
|
-
var
|
|
11019
|
+
var Se = y.object({
|
|
11020
11020
|
etag: y.string().describe("Unique ID of the latest version of an existing resource."),
|
|
11021
11021
|
group: y.object({
|
|
11022
11022
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
@@ -11024,7 +11024,7 @@ var be = y.object({
|
|
|
11024
11024
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
11025
11025
|
}).optional().describe("Group of contacts associated.")
|
|
11026
11026
|
}).describe("An input of the Contact's groups.");
|
|
11027
|
-
y.array(
|
|
11027
|
+
y.array(Se), y.object({
|
|
11028
11028
|
data: y.array(y.object({
|
|
11029
11029
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
11030
11030
|
created_by: y.object({
|
|
@@ -11175,7 +11175,7 @@ y.array(be), y.object({
|
|
|
11175
11175
|
}), y.object({ conversation_id: y.string() }), y.object({ contact_id: y.string().optional() }), y.looseObject({});
|
|
11176
11176
|
//#endregion
|
|
11177
11177
|
//#region packages/api-services/src/gen-wire/contacts/contacts.ts
|
|
11178
|
-
var
|
|
11178
|
+
var Ce = y.object({
|
|
11179
11179
|
page: y.int().optional().describe("Page number of result records. _default(1); offset=(size*(page-1));_\n\n```javascript\nlet\n offset = 0\n , page = req.page\n;\nif (page <= 0)\n page = 1;\nif (page > 1)\n offset = ((page-1)*size);\n// . . .\n```"),
|
|
11180
11180
|
size: y.int().optional().describe("Limit of result page records count. _default(16); limit=(size<=0?-1:size+1);_\n\n```javascript\nconst\n default = 16\n , maximum = 32\n;\nlet limit = req.size;\nif (limit <= 0)\n limit = default;\nif (maximum < limit)\n limit = maximum;\n// . . .\n```"),
|
|
11181
11181
|
q: y.string().optional().describe("Search term:\n`?` - matches any character\n`*` - matches 0 or more characters\nUsed to query records within a set of `qin` fields, eg: name,emails{type},labels etc..."),
|
|
@@ -11508,7 +11508,7 @@ y.object({
|
|
|
11508
11508
|
next: y.boolean().optional(),
|
|
11509
11509
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
11510
11510
|
}).describe("Contact dataset."), y.object({ fields: y.array(y.string()).optional().describe("Source Fields to return into result.") });
|
|
11511
|
-
var
|
|
11511
|
+
var we = y.object({
|
|
11512
11512
|
about: y.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
11513
11513
|
comments: y.array(y.object({
|
|
11514
11514
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
@@ -11908,7 +11908,7 @@ y.object({
|
|
|
11908
11908
|
}).optional().describe("Arbitrary client data that is populated by clients.\nDuplicate keys and values are allowed."),
|
|
11909
11909
|
ver: y.int().optional().describe("READONLY. Operational attributes\nVersion of the latest update. Numeric sequence.")
|
|
11910
11910
|
}).describe("The Contact principal source.\nOUTPUT purpose only."), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
11911
|
-
var
|
|
11911
|
+
var Te = y.object({
|
|
11912
11912
|
about: y.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
11913
11913
|
comments: y.array(y.object({
|
|
11914
11914
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
@@ -11998,7 +11998,7 @@ var Ce = y.object({
|
|
|
11998
11998
|
value: y.unknown().optional().describe("NEW Value.")
|
|
11999
11999
|
}).describe("Input of the Contact's variable.")).optional().describe("Arbitrary client data that is populated by clients.")
|
|
12000
12000
|
}).describe("The Contact principal input.");
|
|
12001
|
-
y.array(
|
|
12001
|
+
y.array(Te), y.object({
|
|
12002
12002
|
data: y.array(y.object({
|
|
12003
12003
|
about: y.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
12004
12004
|
comments: y.object({
|
|
@@ -13039,7 +13039,7 @@ y.array(Ce), y.object({
|
|
|
13039
13039
|
}).optional().describe("Arbitrary client data that is populated by clients.\nDuplicate keys and values are allowed."),
|
|
13040
13040
|
ver: y.int().optional().describe("READONLY. Operational attributes\nVersion of the latest update. Numeric sequence.")
|
|
13041
13041
|
}).describe("The Contact principal source.\nOUTPUT purpose only."), y.object({ etag: y.string().describe("Unique ID of the latest version of an existing resorce.") }), y.object({ fields: y.array(y.string()).optional().describe("Source Fields to return into result.") });
|
|
13042
|
-
var
|
|
13042
|
+
var Ee = y.object({
|
|
13043
13043
|
about: y.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
13044
13044
|
comments: y.array(y.object({
|
|
13045
13045
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
@@ -14212,8 +14212,8 @@ y.object({
|
|
|
14212
14212
|
id: y.string().optional(),
|
|
14213
14213
|
permanent: y.boolean().optional()
|
|
14214
14214
|
});
|
|
14215
|
-
var
|
|
14216
|
-
y.array(
|
|
14215
|
+
var De = y.string();
|
|
14216
|
+
y.array(De), y.object({ deleted: y.array(y.object({
|
|
14217
14217
|
account: y.string().optional().describe("username"),
|
|
14218
14218
|
brand: y.string().optional().describe("vendor brand name"),
|
|
14219
14219
|
created_at: y.string().optional(),
|
|
@@ -16557,7 +16557,7 @@ y.array(Te), y.object({ deleted: y.array(y.object({
|
|
|
16557
16557
|
next: y.boolean().optional().describe("Have more records."),
|
|
16558
16558
|
page: y.int().optional().describe("Page number of the partial result.")
|
|
16559
16559
|
}).describe("A list of Conditions."), y.object({ group_id: y.string().describe("The ID of the group to which the condition belongs.") });
|
|
16560
|
-
var
|
|
16560
|
+
var Oe = y.object({
|
|
16561
16561
|
assignee: y.object({
|
|
16562
16562
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
16563
16563
|
name: y.string().optional().describe("Reference Object display name."),
|
|
@@ -16819,7 +16819,7 @@ y.object({
|
|
|
16819
16819
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
16820
16820
|
}).optional().describe("The user who performed the last update.")
|
|
16821
16821
|
}), y.object({ id: y.string().describe("The unique ID of the dynamic group to update.") });
|
|
16822
|
-
var
|
|
16822
|
+
var ke = y.object({
|
|
16823
16823
|
default_group: y.object({
|
|
16824
16824
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
16825
16825
|
name: y.string().optional().describe("Reference Object display name."),
|
|
@@ -17278,7 +17278,7 @@ y.object({
|
|
|
17278
17278
|
next: y.boolean().optional(),
|
|
17279
17279
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
17280
17280
|
}).describe("Email dataset."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
17281
|
-
var
|
|
17281
|
+
var L = y.object({
|
|
17282
17282
|
email: y.string().describe("The email address."),
|
|
17283
17283
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
17284
17284
|
primary: y.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -17289,7 +17289,7 @@ var Oe = y.object({
|
|
|
17289
17289
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
17290
17290
|
verified: y.boolean().optional()
|
|
17291
17291
|
}).describe("Input of the Contact's email address.");
|
|
17292
|
-
y.array(
|
|
17292
|
+
y.array(L), y.object({
|
|
17293
17293
|
data: y.array(y.object({
|
|
17294
17294
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
17295
17295
|
created_by: y.object({
|
|
@@ -17318,7 +17318,7 @@ y.array(Oe), y.object({
|
|
|
17318
17318
|
next: y.boolean().optional(),
|
|
17319
17319
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
17320
17320
|
}).describe("Email dataset."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
17321
|
-
var
|
|
17321
|
+
var Ae = y.object({
|
|
17322
17322
|
email: y.string().describe("The email address."),
|
|
17323
17323
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
17324
17324
|
primary: y.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -17329,7 +17329,7 @@ var ke = y.object({
|
|
|
17329
17329
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
17330
17330
|
verified: y.boolean().optional()
|
|
17331
17331
|
}).describe("Input of the Contact's email address.");
|
|
17332
|
-
y.array(
|
|
17332
|
+
y.array(Ae), y.object({
|
|
17333
17333
|
data: y.array(y.object({
|
|
17334
17334
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
17335
17335
|
created_by: y.object({
|
|
@@ -17455,7 +17455,7 @@ y.array(ke), y.object({
|
|
|
17455
17455
|
contact_id: y.string().describe("Link contact ID."),
|
|
17456
17456
|
etag: y.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
17457
17457
|
}), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
17458
|
-
var
|
|
17458
|
+
var je = y.object({
|
|
17459
17459
|
email: y.string().describe("The email address."),
|
|
17460
17460
|
primary: y.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
17461
17461
|
type: y.object({
|
|
@@ -20405,7 +20405,7 @@ y.object({
|
|
|
20405
20405
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
20406
20406
|
}).optional().describe("The user who performed the last update.")
|
|
20407
20407
|
}), y.object({ id: y.string().describe("The unique ID of the group to update.") });
|
|
20408
|
-
var
|
|
20408
|
+
var Me = y.object({
|
|
20409
20409
|
description: y.string().optional().describe("The new description of the group."),
|
|
20410
20410
|
enabled: y.boolean().optional().describe("The new enabled status of the group."),
|
|
20411
20411
|
name: y.string().optional().describe("The new name of the group.")
|
|
@@ -20743,11 +20743,11 @@ y.object({
|
|
|
20743
20743
|
next: y.boolean().optional(),
|
|
20744
20744
|
page: y.int().optional().describe("Page number of partial result.")
|
|
20745
20745
|
}).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result.") });
|
|
20746
|
-
var
|
|
20746
|
+
var Ne = y.object({
|
|
20747
20747
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
20748
20748
|
label: y.string().optional().describe("REQUIRED. Hashtag value;\nNOTE: Keep in mind, hashtags are not case-sensitive,\nbut adding capital letters does make them easier to read:\n#MakeAWish vs. #makeawish.")
|
|
20749
20749
|
}).describe("A Contact's associated Tag.\nOutput purpose only.");
|
|
20750
|
-
y.array(
|
|
20750
|
+
y.array(Ne), y.object({
|
|
20751
20751
|
data: y.array(y.object({
|
|
20752
20752
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
20753
20753
|
created_by: y.object({
|
|
@@ -20769,11 +20769,11 @@ y.array(Me), y.object({
|
|
|
20769
20769
|
next: y.boolean().optional(),
|
|
20770
20770
|
page: y.int().optional().describe("Page number of partial result.")
|
|
20771
20771
|
}).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result.") });
|
|
20772
|
-
var
|
|
20772
|
+
var Pe = y.object({
|
|
20773
20773
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
20774
20774
|
label: y.string().optional().describe("REQUIRED. Hashtag value;\nNOTE: Keep in mind, hashtags are not case-sensitive,\nbut adding capital letters does make them easier to read:\n#MakeAWish vs. #makeawish.")
|
|
20775
20775
|
}).describe("A Contact's associated Tag.\nOutput purpose only.");
|
|
20776
|
-
y.array(
|
|
20776
|
+
y.array(Pe), y.object({
|
|
20777
20777
|
data: y.array(y.object({
|
|
20778
20778
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
20779
20779
|
created_by: y.object({
|
|
@@ -20864,12 +20864,12 @@ y.array(Ne), y.object({
|
|
|
20864
20864
|
next: y.boolean().optional(),
|
|
20865
20865
|
page: y.int().optional().describe("Page number of partial result dataset records.")
|
|
20866
20866
|
}).describe("LabelsData\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
20867
|
-
var
|
|
20867
|
+
var Fe = y.object({
|
|
20868
20868
|
etag: y.string().describe("Unique ID of the latest version of an existing association."),
|
|
20869
20869
|
primary: y.boolean().optional().describe("Indicates whether this association must be default\namong others of the same type."),
|
|
20870
20870
|
tag: y.string().optional()
|
|
20871
20871
|
}).describe("An input of the Contact's language.");
|
|
20872
|
-
y.array(
|
|
20872
|
+
y.array(Fe), y.object({
|
|
20873
20873
|
data: y.array(y.object({
|
|
20874
20874
|
code: y.string().optional(),
|
|
20875
20875
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
@@ -20897,12 +20897,12 @@ y.array(Pe), y.object({
|
|
|
20897
20897
|
next: y.boolean().optional(),
|
|
20898
20898
|
page: y.int().optional().describe("Page number of partial result dataset records.")
|
|
20899
20899
|
}).describe("LabelsData\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Contact ID associated with.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
20900
|
-
var
|
|
20900
|
+
var Ie = y.object({
|
|
20901
20901
|
etag: y.string().describe("Unique ID of the latest version of an existing association."),
|
|
20902
20902
|
primary: y.boolean().optional().describe("Indicates whether this association must be default\namong others of the same type."),
|
|
20903
20903
|
tag: y.string().optional()
|
|
20904
20904
|
}).describe("An input of the Contact's language.");
|
|
20905
|
-
y.array(
|
|
20905
|
+
y.array(Ie), y.object({
|
|
20906
20906
|
data: y.array(y.object({
|
|
20907
20907
|
code: y.string().optional(),
|
|
20908
20908
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
@@ -22715,7 +22715,7 @@ y.array(Fe), y.object({
|
|
|
22715
22715
|
fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result."),
|
|
22716
22716
|
etag: y.array(y.string()).describe("Set of unique ID(s) to remove.")
|
|
22717
22717
|
});
|
|
22718
|
-
var
|
|
22718
|
+
var Le = y.object({
|
|
22719
22719
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
22720
22720
|
created_by: y.object({
|
|
22721
22721
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
@@ -22738,7 +22738,7 @@ var Ie = y.object({
|
|
|
22738
22738
|
}).optional().describe("Responsible User."),
|
|
22739
22739
|
ver: y.int().optional().describe("Version of the latest update. Numeric sequence.")
|
|
22740
22740
|
}).describe("Manager. The Contact's responsible User.");
|
|
22741
|
-
y.array(
|
|
22741
|
+
y.array(Le), y.object({ contact_id: y.string().describe("Contact ID associated with.") }), y.object({
|
|
22742
22742
|
page: y.int().optional().describe("Page number of result. offset = ((page-1)*size)"),
|
|
22743
22743
|
size: y.int().optional().describe("Size of result page. limit = (size++)"),
|
|
22744
22744
|
q: y.string().optional().describe("Search term: user name;\n`?` - matches any one character\n`*` - matches 0 or more characters"),
|
|
@@ -22772,7 +22772,7 @@ y.array(Ie), y.object({ contact_id: y.string().describe("Contact ID associated w
|
|
|
22772
22772
|
next: y.boolean().optional(),
|
|
22773
22773
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
22774
22774
|
}).describe("Manager dataset."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
22775
|
-
var
|
|
22775
|
+
var Re = y.object({
|
|
22776
22776
|
etag: y.string().describe("Unique ID of the latest version of an existing resource."),
|
|
22777
22777
|
primary: y.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
22778
22778
|
user: y.object({
|
|
@@ -22781,7 +22781,7 @@ var Le = y.object({
|
|
|
22781
22781
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
22782
22782
|
}).optional().describe("Responsible User.")
|
|
22783
22783
|
});
|
|
22784
|
-
y.array(
|
|
22784
|
+
y.array(Re), y.object({
|
|
22785
22785
|
data: y.array(y.object({
|
|
22786
22786
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
22787
22787
|
created_by: y.object({
|
|
@@ -22808,7 +22808,7 @@ y.array(Le), y.object({
|
|
|
22808
22808
|
next: y.boolean().optional(),
|
|
22809
22809
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
22810
22810
|
}).describe("Manager dataset."), y.object({ contact_id: y.string().describe("Contact ID associated with.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
22811
|
-
var
|
|
22811
|
+
var ze = y.object({
|
|
22812
22812
|
etag: y.string().describe("Unique ID of the latest version of an existing resource."),
|
|
22813
22813
|
primary: y.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
22814
22814
|
user: y.object({
|
|
@@ -22817,7 +22817,7 @@ var Re = y.object({
|
|
|
22817
22817
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
22818
22818
|
}).optional().describe("Responsible User.")
|
|
22819
22819
|
});
|
|
22820
|
-
y.array(
|
|
22820
|
+
y.array(ze), y.object({
|
|
22821
22821
|
data: y.array(y.object({
|
|
22822
22822
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
22823
22823
|
created_by: y.object({
|
|
@@ -24892,7 +24892,7 @@ y.array(Re), y.object({
|
|
|
24892
24892
|
next: y.boolean().optional(),
|
|
24893
24893
|
page: y.int().optional()
|
|
24894
24894
|
});
|
|
24895
|
-
var
|
|
24895
|
+
var Be = y.object({
|
|
24896
24896
|
auth_url: y.string().optional(),
|
|
24897
24897
|
claims: y.array(y.object({
|
|
24898
24898
|
type: y.string().optional(),
|
|
@@ -26177,7 +26177,7 @@ y.object({
|
|
|
26177
26177
|
next: y.boolean().optional(),
|
|
26178
26178
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
26179
26179
|
}).describe("PhoneNumber dataset."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
26180
|
-
var
|
|
26180
|
+
var R = y.object({
|
|
26181
26181
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
26182
26182
|
number: y.string().describe("The phone number."),
|
|
26183
26183
|
primary: y.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -26188,7 +26188,7 @@ var Be = y.object({
|
|
|
26188
26188
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
26189
26189
|
verified: y.boolean().optional()
|
|
26190
26190
|
}).describe("Input of the contact phone number.");
|
|
26191
|
-
y.array(
|
|
26191
|
+
y.array(R), y.object({
|
|
26192
26192
|
data: y.array(y.object({
|
|
26193
26193
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
26194
26194
|
created_by: y.object({
|
|
@@ -29861,7 +29861,7 @@ y.array(We), y.object({
|
|
|
29861
29861
|
next: y.boolean().optional(),
|
|
29862
29862
|
page: y.int().optional()
|
|
29863
29863
|
}), y.object({ fields: y.array(y.string()).optional() });
|
|
29864
|
-
var
|
|
29864
|
+
var z = y.object({
|
|
29865
29865
|
assignee: y.object({
|
|
29866
29866
|
id: y.string().optional(),
|
|
29867
29867
|
name: y.string().optional()
|
|
@@ -30038,7 +30038,7 @@ y.object({
|
|
|
30038
30038
|
name: y.string().optional()
|
|
30039
30039
|
}).optional()
|
|
30040
30040
|
}).optional() }), y.object({ id: y.string().describe("ID of the service to be updated") }), y.object({ fields: y.array(y.string()).optional() });
|
|
30041
|
-
var
|
|
30041
|
+
var Ge = y.object({
|
|
30042
30042
|
assignee: y.object({
|
|
30043
30043
|
id: y.string().optional(),
|
|
30044
30044
|
name: y.string().optional()
|
|
@@ -30113,7 +30113,7 @@ y.object({
|
|
|
30113
30113
|
name: y.string().optional()
|
|
30114
30114
|
}).optional()
|
|
30115
30115
|
}), y.object({ id: y.string().describe("ID of the service to be updated") }), y.object({ fields: y.array(y.string()).optional() });
|
|
30116
|
-
var
|
|
30116
|
+
var Ke = y.object({
|
|
30117
30117
|
assignee: y.object({
|
|
30118
30118
|
id: y.string().optional(),
|
|
30119
30119
|
name: y.string().optional()
|
|
@@ -31089,13 +31089,13 @@ y.object({
|
|
|
31089
31089
|
next: y.boolean().optional(),
|
|
31090
31090
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
31091
31091
|
}), y.object({ fields: y.array(y.string()).optional().describe("Source Fields to return into result.") });
|
|
31092
|
-
var
|
|
31092
|
+
var qe = y.object({
|
|
31093
31093
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
31094
31094
|
home_page: y.string().optional().describe("BIO. Short description about the space.\nOPTIONAL. Multi-lined text."),
|
|
31095
31095
|
name: y.string().optional().describe("Represents the name of the knowledge base space."),
|
|
31096
31096
|
state: y.boolean().optional().describe("The state of the space.")
|
|
31097
31097
|
}).describe("The Space principal input.");
|
|
31098
|
-
y.array(
|
|
31098
|
+
y.array(qe), y.object({
|
|
31099
31099
|
created_at: y.string().optional().describe("The timestamp when the space was created (in Unix time)."),
|
|
31100
31100
|
created_by: y.object({
|
|
31101
31101
|
id: y.string().optional().describe("Reference Object unique ID."),
|
|
@@ -31663,7 +31663,7 @@ y.array(Je), y.object({
|
|
|
31663
31663
|
})).optional(),
|
|
31664
31664
|
next: y.boolean().optional()
|
|
31665
31665
|
});
|
|
31666
|
-
var
|
|
31666
|
+
var Je = y.object({ name: y.enum(/* @__PURE__ */ "empty_system_settings_name.enable_omnichannel.member_chunk_size.amd_cancel_not_human.scheme_version_limit.enable_2fa.export_settings.search_number_length.chat_ai_connection.password_reg_exp.password_validation_text.autolink_call_to_contact.period_to_playback_records.is_fulltext_search_enabled.wbt_hide_contact.show_full_contact.call_end_sound_notification.call_end_push_notification.chat_end_sound_notification.chat_end_push_notification.task_end_sound_notification.task_end_push_notification.push_notification_timeout.labels_to_limit_contacts.autolink_mail_to_contact.new_message_sound_notification.new_chat_sound_notification.screenshot_interval.password_expiry_days.password_min_length.password_categories.password_contains_login.password_warning_days.default_password.expand_contact_tabs.default_workspace_tab.block_all_member_numbers_from_list.login_options.default_members_filter.self_assigned_call_sound_notification".split(".")).default("empty_system_settings_name") });
|
|
31667
31667
|
y.object({
|
|
31668
31668
|
id: y.int().optional(),
|
|
31669
31669
|
name: y.enum(/* @__PURE__ */ "empty_system_settings_name.enable_omnichannel.member_chunk_size.amd_cancel_not_human.scheme_version_limit.enable_2fa.export_settings.search_number_length.chat_ai_connection.password_reg_exp.password_validation_text.autolink_call_to_contact.period_to_playback_records.is_fulltext_search_enabled.wbt_hide_contact.show_full_contact.call_end_sound_notification.call_end_push_notification.chat_end_sound_notification.chat_end_push_notification.task_end_sound_notification.task_end_push_notification.push_notification_timeout.labels_to_limit_contacts.autolink_mail_to_contact.new_message_sound_notification.new_chat_sound_notification.screenshot_interval.password_expiry_days.password_min_length.password_categories.password_contains_login.password_warning_days.default_password.expand_contact_tabs.default_workspace_tab.block_all_member_numbers_from_list.login_options.default_members_filter.self_assigned_call_sound_notification".split(".")).default("empty_system_settings_name")
|
|
@@ -32189,7 +32189,7 @@ y.object({
|
|
|
32189
32189
|
next: y.boolean().optional(),
|
|
32190
32190
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
32191
32191
|
}).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
32192
|
-
var
|
|
32192
|
+
var Ye = y.object({
|
|
32193
32193
|
etag: y.string().describe("Unique ID of the latest version of an existing resource."),
|
|
32194
32194
|
primary: y.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
32195
32195
|
timezone: y.object({
|
|
@@ -32198,7 +32198,7 @@ var Xe = y.object({
|
|
|
32198
32198
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
32199
32199
|
}).optional().describe("Timezone dictionary reference value associated.")
|
|
32200
32200
|
}).describe("An input of the Contact's timezones.");
|
|
32201
|
-
y.array(
|
|
32201
|
+
y.array(Ye), y.object({
|
|
32202
32202
|
data: y.array(y.object({
|
|
32203
32203
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
32204
32204
|
created_by: y.object({
|
|
@@ -32225,7 +32225,7 @@ y.array(Xe), y.object({
|
|
|
32225
32225
|
next: y.boolean().optional(),
|
|
32226
32226
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
32227
32227
|
}).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
32228
|
-
var
|
|
32228
|
+
var Xe = y.object({
|
|
32229
32229
|
etag: y.string().describe("Unique ID of the latest version of an existing resource."),
|
|
32230
32230
|
primary: y.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
32231
32231
|
timezone: y.object({
|
|
@@ -32234,7 +32234,7 @@ var Ze = y.object({
|
|
|
32234
32234
|
type: y.string().optional().describe("Reference Object well-known type.")
|
|
32235
32235
|
}).optional().describe("Timezone dictionary reference value associated.")
|
|
32236
32236
|
}).describe("An input of the Contact's timezones.");
|
|
32237
|
-
y.array(
|
|
32237
|
+
y.array(Xe), y.object({
|
|
32238
32238
|
data: y.array(y.object({
|
|
32239
32239
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
32240
32240
|
created_by: y.object({
|
|
@@ -33471,8 +33471,8 @@ y.array(Ze), y.object({
|
|
|
33471
33471
|
id: y.string().optional().describe("ONE /users/{id}"),
|
|
33472
33472
|
permanent: y.boolean().optional()
|
|
33473
33473
|
});
|
|
33474
|
-
var
|
|
33475
|
-
y.array(
|
|
33474
|
+
var Ze = y.string();
|
|
33475
|
+
y.array(Ze), y.object({ deleted: y.array(y.object({
|
|
33476
33476
|
chat_name: y.string().optional().describe("The \"chat_name\" field is used to store the name displayed externally on the platform.\nFor example, \"chat_name\" is shown when an agent connects to chats with clients."),
|
|
33477
33477
|
contact: y.object({
|
|
33478
33478
|
id: y.string().optional(),
|
|
@@ -34355,12 +34355,12 @@ y.array(Qe), y.object({ deleted: y.array(y.object({
|
|
|
34355
34355
|
next: y.boolean().optional(),
|
|
34356
34356
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
34357
34357
|
}).describe("Variable dataset."), y.object({ contact_id: y.string().describe("Link contact ID.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
34358
|
-
var
|
|
34358
|
+
var Qe = y.object({
|
|
34359
34359
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
34360
34360
|
key: y.string().regex(/^\w+$/).describe("NEW Key."),
|
|
34361
34361
|
value: y.unknown().optional().describe("NEW Value.")
|
|
34362
34362
|
}).describe("Input of the Contact's variable.");
|
|
34363
|
-
y.array(
|
|
34363
|
+
y.array(Qe), y.object({
|
|
34364
34364
|
data: y.array(y.object({
|
|
34365
34365
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
34366
34366
|
created_by: y.object({
|
|
@@ -34383,12 +34383,12 @@ y.array($e), y.object({
|
|
|
34383
34383
|
next: y.boolean().optional(),
|
|
34384
34384
|
page: y.int().optional().describe("The page number of the partial result.")
|
|
34385
34385
|
}).describe("Variable dataset."), y.object({ contact_id: y.string().describe("Contact ID associated with.") }), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
34386
|
-
var
|
|
34386
|
+
var $e = y.object({
|
|
34387
34387
|
etag: y.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
34388
34388
|
key: y.string().regex(/^\w+$/).describe("NEW Key."),
|
|
34389
34389
|
value: y.unknown().optional().describe("NEW Value.")
|
|
34390
34390
|
}).describe("Input of the Contact's variable.");
|
|
34391
|
-
y.array(
|
|
34391
|
+
y.array($e), y.object({
|
|
34392
34392
|
data: y.array(y.object({
|
|
34393
34393
|
created_at: y.string().optional().describe("The user who created this Field."),
|
|
34394
34394
|
created_by: y.object({
|
|
@@ -34463,7 +34463,7 @@ y.array(et), y.object({
|
|
|
34463
34463
|
contact_id: y.string().describe("Contact ID associated with."),
|
|
34464
34464
|
etag: y.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
34465
34465
|
}), y.object({ fields: y.array(y.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
34466
|
-
var
|
|
34466
|
+
var et = y.object({
|
|
34467
34467
|
key: y.string().regex(/^\w+$/).describe("NEW Key."),
|
|
34468
34468
|
value: y.unknown().optional().describe("NEW Value.")
|
|
34469
34469
|
});
|
|
@@ -41241,7 +41241,7 @@ y.object({
|
|
|
41241
41241
|
}).optional() });
|
|
41242
41242
|
//#endregion
|
|
41243
41243
|
//#region packages/api-services/src/gen-wire/list-service/list-service.ts
|
|
41244
|
-
var
|
|
41244
|
+
var tt = (e = a) => ({
|
|
41245
41245
|
messagesServiceBroadcastMessage: (t, n) => e.post("/chat/broadcast", t, n),
|
|
41246
41246
|
catalogGetCustomers: (t, n) => e.get("/chat/customers", {
|
|
41247
41247
|
...n,
|
|
@@ -41278,7 +41278,7 @@ var nt = (e = a) => ({
|
|
|
41278
41278
|
...i?.params
|
|
41279
41279
|
}
|
|
41280
41280
|
})
|
|
41281
|
-
}),
|
|
41281
|
+
}), B = (e = a) => ({
|
|
41282
41282
|
searchTypes: (t, n) => e.get("/types", {
|
|
41283
41283
|
...n,
|
|
41284
41284
|
params: {
|
|
@@ -41287,13 +41287,13 @@ var nt = (e = a) => ({
|
|
|
41287
41287
|
}
|
|
41288
41288
|
}),
|
|
41289
41289
|
locate: (t, n) => e.get(`/types/${t}`, n)
|
|
41290
|
-
}),
|
|
41290
|
+
}), nt = "/call_center/agents", V = (e) => e > 3600 * 24 ? ">24:00:00" : l(e), H = async (e) => {
|
|
41291
41291
|
let t = (e) => e.map((e) => ({
|
|
41292
41292
|
...e,
|
|
41293
|
-
statusDuration:
|
|
41294
|
-
})), n = x(
|
|
41295
|
-
|
|
41296
|
-
|
|
41293
|
+
statusDuration: V(e.statusDuration)
|
|
41294
|
+
})), n = x(fe), r = w(e, [
|
|
41295
|
+
T(),
|
|
41296
|
+
D(C()),
|
|
41297
41297
|
(e) => ({
|
|
41298
41298
|
...e,
|
|
41299
41299
|
q: e.search,
|
|
@@ -41301,18 +41301,18 @@ var nt = (e = a) => ({
|
|
|
41301
41301
|
skill_id: e.skill_id ?? e.skill,
|
|
41302
41302
|
not_supervisor: e.not_supervisor ?? e.is_not_supervisor
|
|
41303
41303
|
}),
|
|
41304
|
-
|
|
41304
|
+
j(n)
|
|
41305
41305
|
]);
|
|
41306
41306
|
try {
|
|
41307
|
-
let { items: e, next: n } =
|
|
41307
|
+
let { items: e, next: n } = w((await I().searchAgent(r)).data, [M(), D(S())]);
|
|
41308
41308
|
return {
|
|
41309
|
-
items:
|
|
41309
|
+
items: w(e, [t]),
|
|
41310
41310
|
next: n
|
|
41311
41311
|
};
|
|
41312
41312
|
} catch (e) {
|
|
41313
|
-
throw
|
|
41313
|
+
throw w(e, [k]);
|
|
41314
41314
|
}
|
|
41315
|
-
},
|
|
41315
|
+
}, rt = {
|
|
41316
41316
|
user: {},
|
|
41317
41317
|
team: {},
|
|
41318
41318
|
supervisor: [],
|
|
@@ -41324,55 +41324,55 @@ var nt = (e = a) => ({
|
|
|
41324
41324
|
isSupervisor: !1,
|
|
41325
41325
|
description: "",
|
|
41326
41326
|
greetingMedia: {}
|
|
41327
|
-
},
|
|
41328
|
-
getList:
|
|
41329
|
-
get: async ({ itemId: e, defaultObject: t =
|
|
41327
|
+
}, it = {
|
|
41328
|
+
getList: H,
|
|
41329
|
+
get: async ({ itemId: e, defaultObject: t = rt }) => {
|
|
41330
41330
|
try {
|
|
41331
|
-
return
|
|
41331
|
+
return w((await I().readAgent(String(e))).data, [M(), D(t)]);
|
|
41332
41332
|
} catch (e) {
|
|
41333
|
-
throw
|
|
41333
|
+
throw w(e, [k]);
|
|
41334
41334
|
}
|
|
41335
41335
|
},
|
|
41336
41336
|
add: async ({ itemInstance: e }) => {
|
|
41337
|
-
let t =
|
|
41337
|
+
let t = w(e, [j(x(pe)), T()]);
|
|
41338
41338
|
try {
|
|
41339
|
-
return
|
|
41339
|
+
return w((await I().createAgent(t)).data, [M()]);
|
|
41340
41340
|
} catch (e) {
|
|
41341
|
-
throw
|
|
41341
|
+
throw w(e, [k]);
|
|
41342
41342
|
}
|
|
41343
41343
|
},
|
|
41344
41344
|
patch: async ({ changes: e, id: t }) => {
|
|
41345
|
-
let n =
|
|
41345
|
+
let n = w(e, [j(x(me)), T()]);
|
|
41346
41346
|
try {
|
|
41347
|
-
return
|
|
41347
|
+
return w((await I().patchAgent(String(t), n)).data, [M()]);
|
|
41348
41348
|
} catch (e) {
|
|
41349
|
-
throw
|
|
41349
|
+
throw w(e, [k]);
|
|
41350
41350
|
}
|
|
41351
41351
|
},
|
|
41352
41352
|
update: async ({ itemInstance: e, itemId: t }) => {
|
|
41353
|
-
let n =
|
|
41353
|
+
let n = w(e, [j(x(he)), T()]);
|
|
41354
41354
|
try {
|
|
41355
|
-
return
|
|
41355
|
+
return w((await I().updateAgent(String(t), n)).data, [M()]);
|
|
41356
41356
|
} catch (e) {
|
|
41357
|
-
throw
|
|
41357
|
+
throw w(e, [k]);
|
|
41358
41358
|
}
|
|
41359
41359
|
},
|
|
41360
41360
|
delete: async ({ id: e }) => {
|
|
41361
41361
|
try {
|
|
41362
|
-
return
|
|
41362
|
+
return w((await I().deleteAgent(String(e))).data, []);
|
|
41363
41363
|
} catch (e) {
|
|
41364
|
-
throw
|
|
41364
|
+
throw w(e, [k]);
|
|
41365
41365
|
}
|
|
41366
41366
|
},
|
|
41367
|
-
getLookup: (e) =>
|
|
41367
|
+
getLookup: (e) => H({
|
|
41368
41368
|
...e,
|
|
41369
41369
|
fields: e.fields || ["id", "name"]
|
|
41370
41370
|
}),
|
|
41371
41371
|
getAgentHistory: async (e) => {
|
|
41372
|
-
let { parentId: t, joinedAt: n, page: r, size: i, sort: a } =
|
|
41373
|
-
|
|
41374
|
-
|
|
41375
|
-
|
|
41372
|
+
let { parentId: t, joinedAt: n, page: r, size: i, sort: a } = w(e, [
|
|
41373
|
+
D(C()),
|
|
41374
|
+
D({ sort: "-joined_at" }),
|
|
41375
|
+
N("search")
|
|
41376
41376
|
]), o = d(n), s = (e) => e.map((e) => ({
|
|
41377
41377
|
...e,
|
|
41378
41378
|
from: c(+e.joinedAt, m.DATETIME),
|
|
@@ -41380,65 +41380,65 @@ var nt = (e = a) => ({
|
|
|
41380
41380
|
duration: l(e.duration)
|
|
41381
41381
|
}));
|
|
41382
41382
|
try {
|
|
41383
|
-
let { items: e, next: n } =
|
|
41383
|
+
let { items: e, next: n } = w((await I().searchAgentStateHistory({
|
|
41384
41384
|
page: r,
|
|
41385
41385
|
size: i,
|
|
41386
41386
|
agent_id: t ? [t] : void 0,
|
|
41387
41387
|
sort: a,
|
|
41388
41388
|
"joined_at.from": o?.from == null ? void 0 : String(o.from),
|
|
41389
41389
|
"joined_at.to": o?.to == null ? void 0 : String(o.to)
|
|
41390
|
-
})).data, [
|
|
41390
|
+
})).data, [M(), D(S())]);
|
|
41391
41391
|
return {
|
|
41392
|
-
items:
|
|
41392
|
+
items: w(e, [s]),
|
|
41393
41393
|
next: n
|
|
41394
41394
|
};
|
|
41395
41395
|
} catch (e) {
|
|
41396
|
-
throw
|
|
41396
|
+
throw w(e, [k]);
|
|
41397
41397
|
}
|
|
41398
41398
|
},
|
|
41399
|
-
getRegularAgentsOptions: async (e) =>
|
|
41399
|
+
getRegularAgentsOptions: async (e) => H({
|
|
41400
41400
|
...e,
|
|
41401
41401
|
isNotSupervisor: !0
|
|
41402
41402
|
}),
|
|
41403
41403
|
getAgentUsersOptions: async (e) => {
|
|
41404
|
-
let { page: t, size: n, search: r } =
|
|
41404
|
+
let { page: t, size: n, search: r } = w(e, [D(C()), N("search")]);
|
|
41405
41405
|
try {
|
|
41406
|
-
let { items: e, next: i } =
|
|
41406
|
+
let { items: e, next: i } = w((await I().searchLookupUsersAgentNotExists({
|
|
41407
41407
|
page: t,
|
|
41408
41408
|
size: n,
|
|
41409
41409
|
q: r
|
|
41410
|
-
})).data, [
|
|
41410
|
+
})).data, [M(), D(S())]);
|
|
41411
41411
|
return {
|
|
41412
41412
|
items: e,
|
|
41413
41413
|
next: i
|
|
41414
41414
|
};
|
|
41415
41415
|
} catch (e) {
|
|
41416
|
-
throw
|
|
41416
|
+
throw w(e, [k]);
|
|
41417
41417
|
}
|
|
41418
41418
|
},
|
|
41419
|
-
getSupervisorOptions: async (e) =>
|
|
41419
|
+
getSupervisorOptions: async (e) => H({
|
|
41420
41420
|
...e,
|
|
41421
41421
|
isSupervisor: !0
|
|
41422
41422
|
}),
|
|
41423
41423
|
getUsersStatus: async (e) => {
|
|
41424
|
-
let t = x(
|
|
41425
|
-
|
|
41426
|
-
|
|
41427
|
-
|
|
41424
|
+
let t = x(ge), n = w(e, [
|
|
41425
|
+
T(),
|
|
41426
|
+
D(C()),
|
|
41427
|
+
N("search"),
|
|
41428
41428
|
(e) => ({
|
|
41429
41429
|
...e,
|
|
41430
41430
|
q: e.search
|
|
41431
41431
|
}),
|
|
41432
|
-
|
|
41432
|
+
j(t)
|
|
41433
41433
|
]);
|
|
41434
41434
|
try {
|
|
41435
|
-
let { items: e, next: t } =
|
|
41435
|
+
let { items: e, next: t } = w((await I().searchUserStatus(n)).data, [M(), D(S())]);
|
|
41436
41436
|
return {
|
|
41437
41437
|
items: e,
|
|
41438
41438
|
next: t
|
|
41439
41439
|
};
|
|
41440
41440
|
} catch (e) {
|
|
41441
|
-
throw
|
|
41441
|
+
throw w(e, [k]);
|
|
41442
41442
|
}
|
|
41443
41443
|
},
|
|
41444
41444
|
getPauseCausesForAgent: async ({ agentId: e }) => {
|
|
@@ -41448,27 +41448,27 @@ var nt = (e = a) => ({
|
|
|
41448
41448
|
limitMin: 0
|
|
41449
41449
|
};
|
|
41450
41450
|
try {
|
|
41451
|
-
let { items: n, next: r } =
|
|
41451
|
+
let { items: n, next: r } = w((await I().searchPauseCauseForAgent(String(e))).data, [M(), D(S())]);
|
|
41452
41452
|
return {
|
|
41453
|
-
items:
|
|
41453
|
+
items: w(n, [O(t)]),
|
|
41454
41454
|
next: r
|
|
41455
41455
|
};
|
|
41456
41456
|
} catch (e) {
|
|
41457
|
-
throw
|
|
41457
|
+
throw w(e, [k]);
|
|
41458
41458
|
}
|
|
41459
41459
|
},
|
|
41460
41460
|
getAgentQueues: async (e) => {
|
|
41461
|
-
let { parentId: t, page: n, size: r, search: i, sort: a, fields: o } =
|
|
41461
|
+
let { parentId: t, page: n, size: r, search: i, sort: a, fields: o } = w(e, [D(C()), N("search")]);
|
|
41462
41462
|
try {
|
|
41463
|
-
let { items: e, next: s } =
|
|
41463
|
+
let { items: e, next: s } = w((await I().searchAgentInQueue(String(t), {
|
|
41464
41464
|
page: n,
|
|
41465
41465
|
size: r,
|
|
41466
41466
|
q: i,
|
|
41467
41467
|
sort: a,
|
|
41468
41468
|
fields: o
|
|
41469
|
-
})).data, [
|
|
41469
|
+
})).data, [M(), D(S())]);
|
|
41470
41470
|
return {
|
|
41471
|
-
items:
|
|
41471
|
+
items: w(e, [O({
|
|
41472
41472
|
countMembers: 0,
|
|
41473
41473
|
waitingMembers: 0,
|
|
41474
41474
|
type: 0
|
|
@@ -41476,7 +41476,7 @@ var nt = (e = a) => ({
|
|
|
41476
41476
|
next: s
|
|
41477
41477
|
};
|
|
41478
41478
|
} catch (e) {
|
|
41479
|
-
throw
|
|
41479
|
+
throw w(e, [k]);
|
|
41480
41480
|
}
|
|
41481
41481
|
},
|
|
41482
41482
|
getStatusStatistics: async (e) => {
|
|
@@ -41506,7 +41506,7 @@ var nt = (e = a) => ({
|
|
|
41506
41506
|
return {
|
|
41507
41507
|
...t,
|
|
41508
41508
|
_isSelected: !1,
|
|
41509
|
-
statusDuration:
|
|
41509
|
+
statusDuration: V(t.statusDuration),
|
|
41510
41510
|
utilization: `${t.utilization.toFixed(2)}%`,
|
|
41511
41511
|
occupancy: `${t.occupancy.toFixed(2)}%`,
|
|
41512
41512
|
online: l(t.online),
|
|
@@ -41515,9 +41515,9 @@ var nt = (e = a) => ({
|
|
|
41515
41515
|
callTime: l(t.callTime),
|
|
41516
41516
|
chatTime: l(t.chatTime)
|
|
41517
41517
|
};
|
|
41518
|
-
}), { page: i, size: a, search: o, sort: s, ids: c, fields: u, from: d, to: f, queue: p, team: m, skill: h, supervisor: g, auditor: _, region: ee, utilizationFrom: v, utilizationProgress: y, agentStatus: b, callNow: te } =
|
|
41518
|
+
}), { page: i, size: a, search: o, sort: s, ids: c, fields: u, from: d, to: f, queue: p, team: m, skill: h, supervisor: g, auditor: _, region: ee, utilizationFrom: v, utilizationProgress: y, agentStatus: b, callNow: te } = w(e, [D(t), D(C())]);
|
|
41519
41519
|
try {
|
|
41520
|
-
let { items: e, next: t } =
|
|
41520
|
+
let { items: e, next: t } = w((await I().searchAgentStatusStatistic({
|
|
41521
41521
|
page: i,
|
|
41522
41522
|
size: a,
|
|
41523
41523
|
q: o,
|
|
@@ -41536,69 +41536,69 @@ var nt = (e = a) => ({
|
|
|
41536
41536
|
region_id: ee,
|
|
41537
41537
|
supervisor_id: g,
|
|
41538
41538
|
auditor_id: _
|
|
41539
|
-
})).data, [
|
|
41539
|
+
})).data, [M(), D(S())]);
|
|
41540
41540
|
return {
|
|
41541
|
-
items:
|
|
41541
|
+
items: w(e, [r]),
|
|
41542
41542
|
next: t
|
|
41543
41543
|
};
|
|
41544
41544
|
} catch (e) {
|
|
41545
|
-
throw
|
|
41545
|
+
throw w(e, [k]);
|
|
41546
41546
|
}
|
|
41547
41547
|
},
|
|
41548
41548
|
getStatusStatisticsItem: async ({ agentId: e, from: t, to: n }) => {
|
|
41549
41549
|
try {
|
|
41550
|
-
return
|
|
41550
|
+
return w((await I().searchAgentStatusStatisticItem(String(e), {
|
|
41551
41551
|
"time.from": t,
|
|
41552
41552
|
"time.to": n
|
|
41553
|
-
})).data, [
|
|
41553
|
+
})).data, [M()]);
|
|
41554
41554
|
} catch (e) {
|
|
41555
|
-
throw
|
|
41555
|
+
throw w(e, [k]);
|
|
41556
41556
|
}
|
|
41557
41557
|
},
|
|
41558
|
-
...
|
|
41558
|
+
...F(nt)
|
|
41559
41559
|
};
|
|
41560
|
-
({ ...
|
|
41560
|
+
({ ...F("/calendars") }), x(_e), x(z), x(z), x(Ke), x(Ge), x(ye), x(ve), { ...F("/cases") }, Object.freeze({
|
|
41561
41561
|
VIBER: "viber",
|
|
41562
41562
|
WHATSAPP: "whatsapp",
|
|
41563
41563
|
TELEGRAM: "telegram",
|
|
41564
41564
|
MESSENGER: "messenger",
|
|
41565
41565
|
EMAIL: "email"
|
|
41566
|
-
}), i(), { ...
|
|
41567
|
-
var
|
|
41566
|
+
}), i(), { ...F("/storage/cognitive_profiles") }, [...x(Je)], x(Me), { ...F("/contacts/groups") }, { ...F("/devices") }, x(Oe), x(ke), x(L), x(je), i(), { ...F("/storage/import_templates") }, i(), { ...F("/call_center/list") }, i(), localStorage.getItem("access-token"), r.create({ headers: { "content-type": "multipart/form-data" } });
|
|
41567
|
+
var at = {
|
|
41568
41568
|
patch: async (e) => {
|
|
41569
|
-
let t =
|
|
41569
|
+
let t = w(e, [T()]);
|
|
41570
41570
|
try {
|
|
41571
|
-
return
|
|
41571
|
+
return w((await tt().messagesServiceBroadcastMessage(t)).data, [M()]);
|
|
41572
41572
|
} catch (e) {
|
|
41573
|
-
throw
|
|
41573
|
+
throw w(e, [k]);
|
|
41574
41574
|
}
|
|
41575
41575
|
},
|
|
41576
41576
|
getChatHistory: async ({ chatId: e, ...t }) => {
|
|
41577
|
-
let n =
|
|
41577
|
+
let n = w(t, [D(C()), T()]);
|
|
41578
41578
|
try {
|
|
41579
|
-
let { messages: t, peers: r, next: i } =
|
|
41579
|
+
let { messages: t, peers: r, next: i } = w((await tt().catalogGetHistory(String(e), n)).data, [M(), D(S())]);
|
|
41580
41580
|
return {
|
|
41581
41581
|
messages: t,
|
|
41582
41582
|
peers: r,
|
|
41583
41583
|
next: i
|
|
41584
41584
|
};
|
|
41585
41585
|
} catch (e) {
|
|
41586
|
-
throw
|
|
41586
|
+
throw w(e, [k]);
|
|
41587
41587
|
}
|
|
41588
41588
|
}
|
|
41589
41589
|
};
|
|
41590
|
-
x(
|
|
41590
|
+
x(Be), { ...F("/oauth/apps") };
|
|
41591
41591
|
//#endregion
|
|
41592
41592
|
//#region packages/api-services/src/api/clients/object/object.ts
|
|
41593
|
-
var
|
|
41594
|
-
let { page: t, size: n, fields: r, sort: i, id: a, q: o } =
|
|
41595
|
-
|
|
41596
|
-
|
|
41593
|
+
var ot = i(), st = async (e) => {
|
|
41594
|
+
let { page: t, size: n, fields: r, sort: i, id: a, q: o } = w(e, [
|
|
41595
|
+
D(C()),
|
|
41596
|
+
N("search"),
|
|
41597
41597
|
(e) => ({
|
|
41598
41598
|
...e,
|
|
41599
41599
|
q: e.search
|
|
41600
41600
|
}),
|
|
41601
|
-
|
|
41601
|
+
A([
|
|
41602
41602
|
"page",
|
|
41603
41603
|
"size",
|
|
41604
41604
|
"q",
|
|
@@ -41606,36 +41606,36 @@ var st = i(), ct = async (e) => {
|
|
|
41606
41606
|
"fields",
|
|
41607
41607
|
"id"
|
|
41608
41608
|
]),
|
|
41609
|
-
|
|
41609
|
+
T()
|
|
41610
41610
|
]);
|
|
41611
41611
|
try {
|
|
41612
|
-
let { data: e, next: s } =
|
|
41612
|
+
let { data: e, next: s } = w((await B().searchTypes({
|
|
41613
41613
|
q: o,
|
|
41614
41614
|
id: a,
|
|
41615
41615
|
size: n,
|
|
41616
41616
|
page: t,
|
|
41617
41617
|
sort: i,
|
|
41618
41618
|
fields: r
|
|
41619
|
-
})).data, [
|
|
41619
|
+
})).data, [D(S())]);
|
|
41620
41620
|
return {
|
|
41621
|
-
items:
|
|
41621
|
+
items: w(e, [M(), (e) => (e || []).map((e) => ({
|
|
41622
41622
|
...e,
|
|
41623
41623
|
id: e.repo
|
|
41624
41624
|
}))]),
|
|
41625
41625
|
next: s
|
|
41626
41626
|
};
|
|
41627
41627
|
} catch (e) {
|
|
41628
|
-
throw
|
|
41628
|
+
throw w(e, [k]);
|
|
41629
41629
|
}
|
|
41630
|
-
},
|
|
41631
|
-
let t =
|
|
41632
|
-
|
|
41630
|
+
}, ct = async ({ ...e }) => {
|
|
41631
|
+
let t = w(e, [
|
|
41632
|
+
D(C()),
|
|
41633
41633
|
(e) => ({
|
|
41634
41634
|
...e,
|
|
41635
41635
|
q: e.search,
|
|
41636
41636
|
extensions: !1
|
|
41637
41637
|
}),
|
|
41638
|
-
|
|
41638
|
+
A([
|
|
41639
41639
|
"page",
|
|
41640
41640
|
"size",
|
|
41641
41641
|
"q",
|
|
@@ -41644,51 +41644,68 @@ var st = i(), ct = async (e) => {
|
|
|
41644
41644
|
"fields",
|
|
41645
41645
|
"id"
|
|
41646
41646
|
]),
|
|
41647
|
-
|
|
41648
|
-
|
|
41647
|
+
T(),
|
|
41648
|
+
E("types")
|
|
41649
41649
|
]);
|
|
41650
41650
|
try {
|
|
41651
|
-
let { data: e, next: n } =
|
|
41651
|
+
let { data: e, next: n } = w((await ot.get(t)).data, [M(), D(S())]);
|
|
41652
41652
|
return {
|
|
41653
41653
|
items: e ?? [],
|
|
41654
41654
|
next: n
|
|
41655
41655
|
};
|
|
41656
41656
|
} catch (e) {
|
|
41657
|
-
throw
|
|
41657
|
+
throw w(e, [k]);
|
|
41658
41658
|
}
|
|
41659
|
-
},
|
|
41660
|
-
getList:
|
|
41659
|
+
}, lt = {
|
|
41660
|
+
getList: st,
|
|
41661
41661
|
get: async ({ itemId: e }) => {
|
|
41662
41662
|
try {
|
|
41663
|
-
return
|
|
41663
|
+
return w((await B().locate(String(e))).data, [M()]);
|
|
41664
41664
|
} catch (e) {
|
|
41665
|
-
throw
|
|
41665
|
+
throw w(e, [k]);
|
|
41666
41666
|
}
|
|
41667
41667
|
},
|
|
41668
|
-
getLookup: async (e) =>
|
|
41668
|
+
getLookup: async (e) => ct({
|
|
41669
41669
|
...e,
|
|
41670
41670
|
fields: e.fields || ["id", "name"]
|
|
41671
41671
|
})
|
|
41672
41672
|
};
|
|
41673
|
-
({ ...
|
|
41673
|
+
({ ...F("/call_center/resource_group") }), { ...F("/call_center/resources") }, i(), x(R), x(He);
|
|
41674
41674
|
//#endregion
|
|
41675
41675
|
//#region packages/api-services/src/validations/_shared/clearableNumber.validations.ts
|
|
41676
|
-
var
|
|
41676
|
+
var U = b.number().nullable().optional(), W = (e = 1) => b.union([b.string().min(e), b.number().min(e)]), G = (e) => ({ params: { i18nKey: e } }), ut = (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 = b.object({
|
|
41677
41677
|
id: b.string().optional(),
|
|
41678
41678
|
name: b.string().optional()
|
|
41679
|
-
}),
|
|
41679
|
+
}), q = b.object({
|
|
41680
41680
|
id: b.string().min(1),
|
|
41681
41681
|
name: b.string().optional()
|
|
41682
|
-
}),
|
|
41682
|
+
}), J = b.object({
|
|
41683
41683
|
id: b.union([b.string(), b.number()]).optional(),
|
|
41684
41684
|
name: b.string().optional()
|
|
41685
|
-
}),
|
|
41685
|
+
}), Y = J.refine((e) => ut(e), G("required")), dt = /^\+?[A-Za-z0-9\-_.!~*'()]*$/, ft = b.string().min(1).refine((e) => e === "" || dt.test(e), G("phoneNumberSymbolsValidator")), X = b.number().int().refine((e) => e >= 0 && e < 1440, G("hourRange")), pt = ["start", "end"], mt = (e, t, ...n) => {
|
|
41686
|
+
pt.forEach((r) => {
|
|
41687
|
+
e.addIssue({
|
|
41688
|
+
code: "custom",
|
|
41689
|
+
path: [...n, r],
|
|
41690
|
+
...G(t)
|
|
41691
|
+
});
|
|
41692
|
+
});
|
|
41693
|
+
}, ht = (e, t) => {
|
|
41694
|
+
e.start >= e.end && mt(t, "timerangeStartLessThanEnd");
|
|
41695
|
+
}, gt = b.object({
|
|
41696
|
+
start: X,
|
|
41697
|
+
end: X
|
|
41698
|
+
}).superRefine(ht), _t = (e, t) => e.start <= t.end && t.start <= e.end, vt = (e) => (t, n) => {
|
|
41699
|
+
t.forEach((r, i) => {
|
|
41700
|
+
t.some((t, n) => n !== i && e?.(r) === e?.(t) && _t(r, t)) && mt(n, "timerangeNotIntersect", i);
|
|
41701
|
+
});
|
|
41702
|
+
}, Z = b.object({
|
|
41686
41703
|
key: b.string(),
|
|
41687
41704
|
value: b.string()
|
|
41688
41705
|
});
|
|
41689
41706
|
b.object({
|
|
41690
41707
|
name: b.string().min(1),
|
|
41691
|
-
repo: b.string().min(1).refine((e) => /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),
|
|
41708
|
+
repo: b.string().min(1).refine((e) => /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e), G("latinWithNumber")),
|
|
41692
41709
|
about: b.string().optional(),
|
|
41693
41710
|
administered: b.boolean().optional(),
|
|
41694
41711
|
primary: b.string().optional(),
|
|
@@ -41697,12 +41714,12 @@ b.object({
|
|
|
41697
41714
|
indexes: b.any().optional()
|
|
41698
41715
|
}), b.object({
|
|
41699
41716
|
id: b.string().optional(),
|
|
41700
|
-
user:
|
|
41701
|
-
team:
|
|
41702
|
-
supervisor: b.array(
|
|
41703
|
-
auditor: b.array(
|
|
41704
|
-
region:
|
|
41705
|
-
greetingMedia:
|
|
41717
|
+
user: Y,
|
|
41718
|
+
team: Y,
|
|
41719
|
+
supervisor: b.array(J).optional().default([]),
|
|
41720
|
+
auditor: b.array(J).optional().default([]),
|
|
41721
|
+
region: J.optional().default({}),
|
|
41722
|
+
greetingMedia: J.optional().default({}),
|
|
41706
41723
|
progressiveCount: b.number().min(1).nullable().optional().default(null),
|
|
41707
41724
|
chatCount: b.number().min(1).default(1),
|
|
41708
41725
|
taskCount: b.number().min(1).default(1),
|
|
@@ -41712,20 +41729,20 @@ b.object({
|
|
|
41712
41729
|
allowSetScreenControl: b.boolean().optional()
|
|
41713
41730
|
}), b.object({
|
|
41714
41731
|
name: b.string().min(1).default(""),
|
|
41715
|
-
limitMin:
|
|
41732
|
+
limitMin: U.default(60),
|
|
41716
41733
|
description: b.string().optional().default(""),
|
|
41717
41734
|
allowAdmin: b.boolean().default(!0),
|
|
41718
41735
|
allowSupervisor: b.boolean().default(!0),
|
|
41719
41736
|
allowAgent: b.boolean().default(!0),
|
|
41720
|
-
teams: b.array(
|
|
41737
|
+
teams: b.array(J).optional().default([])
|
|
41721
41738
|
}), b.object({
|
|
41722
|
-
skill:
|
|
41739
|
+
skill: Y,
|
|
41723
41740
|
capacity: b.number().min(0).max(100).default(10),
|
|
41724
41741
|
enabled: b.boolean().default(!0)
|
|
41725
|
-
}), b.object({ agent:
|
|
41742
|
+
}), b.object({ agent: Y }), b.object({
|
|
41726
41743
|
name: b.string().min(3),
|
|
41727
41744
|
description: b.string().optional(),
|
|
41728
|
-
teams: b.array(
|
|
41745
|
+
teams: b.array(K).optional().default([]),
|
|
41729
41746
|
enabled: b.boolean().optional().default(!0),
|
|
41730
41747
|
questions: b.array(b.any()).min(1).default([])
|
|
41731
41748
|
}), b.object({
|
|
@@ -41734,115 +41751,75 @@ b.object({
|
|
|
41734
41751
|
});
|
|
41735
41752
|
//#endregion
|
|
41736
41753
|
//#region packages/api-services/src/validations/calendar/calendar.validations.ts
|
|
41737
|
-
var
|
|
41738
|
-
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
41739
|
-
return e.forEach((e, t) => {
|
|
41740
|
-
let r = n.get(e.day) ?? [];
|
|
41741
|
-
r.push(t), n.set(e.day, r);
|
|
41742
|
-
}), n.forEach((n) => {
|
|
41743
|
-
let r = [];
|
|
41744
|
-
n.forEach((n) => {
|
|
41745
|
-
let i = e[n];
|
|
41746
|
-
r.forEach((e) => {
|
|
41747
|
-
(i.start >= e.start && i.end <= e.end || i.start <= e.start && i.end >= e.start || i.start <= e.end && i.end >= e.end) && (t.add(n), t.add(e.index));
|
|
41748
|
-
}), r.push({
|
|
41749
|
-
start: i.start,
|
|
41750
|
-
end: i.end,
|
|
41751
|
-
index: n
|
|
41752
|
-
});
|
|
41753
|
-
});
|
|
41754
|
-
}), t;
|
|
41755
|
-
}, vt = b.object({
|
|
41754
|
+
var yt = b.object({
|
|
41756
41755
|
day: b.number().int().min(0).max(6),
|
|
41757
41756
|
disabled: b.boolean().default(!1),
|
|
41758
41757
|
start: X,
|
|
41759
41758
|
end: X
|
|
41760
|
-
}).superRefine(
|
|
41761
|
-
e.start >= e.end && (t.addIssue({
|
|
41762
|
-
code: "custom",
|
|
41763
|
-
path: ["start"],
|
|
41764
|
-
...W(ht)
|
|
41765
|
-
}), t.addIssue({
|
|
41766
|
-
code: "custom",
|
|
41767
|
-
path: ["end"],
|
|
41768
|
-
...W(ht)
|
|
41769
|
-
}));
|
|
41770
|
-
}), yt = b.array(vt).superRefine((e, t) => {
|
|
41771
|
-
_t(e).forEach((e) => {
|
|
41772
|
-
t.addIssue({
|
|
41773
|
-
code: "custom",
|
|
41774
|
-
path: [e, "start"],
|
|
41775
|
-
...W(gt)
|
|
41776
|
-
}), t.addIssue({
|
|
41777
|
-
code: "custom",
|
|
41778
|
-
path: [e, "end"],
|
|
41779
|
-
...W(gt)
|
|
41780
|
-
});
|
|
41781
|
-
});
|
|
41782
|
-
}), bt = b.object({
|
|
41759
|
+
}).superRefine(ht), bt = b.array(yt).superRefine(vt((e) => e.day)), xt = b.object({
|
|
41783
41760
|
name: b.string().min(1),
|
|
41784
41761
|
date: b.union([b.number(), b.string()]).optional(),
|
|
41785
41762
|
repeat: b.boolean().optional(),
|
|
41786
41763
|
working: b.boolean().optional(),
|
|
41787
41764
|
workStart: X.nullish(),
|
|
41788
41765
|
workStop: X.nullish()
|
|
41789
|
-
}),
|
|
41766
|
+
}), St = () => Array.from({ length: 7 }, (e, t) => ({
|
|
41790
41767
|
day: t,
|
|
41791
41768
|
disabled: !1,
|
|
41792
41769
|
start: 540,
|
|
41793
41770
|
end: 1200
|
|
41794
|
-
})),
|
|
41771
|
+
})), Ct = () => Array.from({ length: 7 }, (e, t) => ({
|
|
41795
41772
|
day: t,
|
|
41796
41773
|
disabled: !0,
|
|
41797
41774
|
start: 540,
|
|
41798
41775
|
end: 1200
|
|
41799
|
-
})),
|
|
41776
|
+
})), wt = () => Date.now();
|
|
41800
41777
|
b.object({
|
|
41801
41778
|
name: b.string().min(1),
|
|
41802
41779
|
description: b.string().optional().default(""),
|
|
41803
|
-
timezone:
|
|
41804
|
-
startAt: b.any().optional().default(
|
|
41805
|
-
endAt: b.any().optional().default(
|
|
41780
|
+
timezone: q,
|
|
41781
|
+
startAt: b.any().optional().default(wt),
|
|
41782
|
+
endAt: b.any().optional().default(wt),
|
|
41806
41783
|
expires: b.boolean().optional().default(!1),
|
|
41807
|
-
accepts:
|
|
41808
|
-
specials:
|
|
41809
|
-
excepts: b.array(
|
|
41784
|
+
accepts: bt.default(St),
|
|
41785
|
+
specials: bt.default(Ct),
|
|
41786
|
+
excepts: b.array(xt).optional().default([])
|
|
41810
41787
|
});
|
|
41811
41788
|
//#endregion
|
|
41812
41789
|
//#region packages/api-services/src/validations/case/case.validations.ts
|
|
41813
|
-
var
|
|
41790
|
+
var Q = () => K.passthrough().default({});
|
|
41814
41791
|
b.object({
|
|
41815
41792
|
subject: b.string().default(""),
|
|
41816
|
-
source:
|
|
41817
|
-
priority:
|
|
41818
|
-
reporter:
|
|
41819
|
-
service:
|
|
41793
|
+
source: Q(),
|
|
41794
|
+
priority: Q(),
|
|
41795
|
+
reporter: Q(),
|
|
41796
|
+
service: Q(),
|
|
41820
41797
|
statusCondition: b.object({
|
|
41821
41798
|
id: b.union([b.string(), b.number()]).optional(),
|
|
41822
41799
|
name: b.string().optional(),
|
|
41823
41800
|
final: b.boolean().optional(),
|
|
41824
41801
|
initial: b.boolean().optional()
|
|
41825
41802
|
}).passthrough().default({}),
|
|
41826
|
-
closeReason:
|
|
41803
|
+
closeReason: K.passthrough().nullish().default(null),
|
|
41827
41804
|
closeResult: b.string().default("")
|
|
41828
41805
|
});
|
|
41829
|
-
var
|
|
41806
|
+
var $ = (e, t) => b.refine((t) => !t?.statusCondition?.final || e(t), {
|
|
41830
41807
|
path: t,
|
|
41831
41808
|
when: () => !0,
|
|
41832
|
-
...
|
|
41809
|
+
...G("required")
|
|
41833
41810
|
});
|
|
41834
|
-
|
|
41811
|
+
$((e) => !!e.closeReason, ["closeReason"]), $((e) => !e.closeReason || !!e.closeReason.id, ["closeReason", "id"]), $((e) => !!e.closeResult, ["closeResult"]), b.object({
|
|
41835
41812
|
reason: b.object({ id: b.union([b.string(), b.number()]) }).passthrough().nullable(),
|
|
41836
41813
|
result: b.string().nullable()
|
|
41837
41814
|
}).superRefine((e, t) => {
|
|
41838
41815
|
e.reason?.id || t.addIssue({
|
|
41839
41816
|
code: "custom",
|
|
41840
41817
|
path: ["reason"],
|
|
41841
|
-
...
|
|
41818
|
+
...G("required")
|
|
41842
41819
|
}), e.result || t.addIssue({
|
|
41843
41820
|
code: "custom",
|
|
41844
41821
|
path: ["result"],
|
|
41845
|
-
...
|
|
41822
|
+
...G("required")
|
|
41846
41823
|
});
|
|
41847
41824
|
}), b.object({
|
|
41848
41825
|
name: b.string().min(1),
|
|
@@ -41860,24 +41837,24 @@ Q((e) => !!e.closeReason, ["closeReason"]), Q((e) => !e.closeReason || !!e.close
|
|
|
41860
41837
|
e.type || t.addIssue({
|
|
41861
41838
|
code: "custom",
|
|
41862
41839
|
path: ["type"],
|
|
41863
|
-
...
|
|
41840
|
+
...G("required")
|
|
41864
41841
|
}), e.type?.value === "csv" && !e.separator && t.addIssue({
|
|
41865
41842
|
code: "custom",
|
|
41866
41843
|
path: ["separator"],
|
|
41867
|
-
...
|
|
41844
|
+
...G("required")
|
|
41868
41845
|
});
|
|
41869
41846
|
});
|
|
41870
41847
|
//#endregion
|
|
41871
41848
|
//#region packages/api-services/src/validations/caseLink/caseLink.validations.ts
|
|
41872
|
-
var
|
|
41849
|
+
var Tt = (e) => {
|
|
41873
41850
|
try {
|
|
41874
|
-
return Object.values(
|
|
41851
|
+
return Object.values(h).includes(new URL(e).protocol);
|
|
41875
41852
|
} catch {
|
|
41876
41853
|
return !1;
|
|
41877
41854
|
}
|
|
41878
41855
|
};
|
|
41879
41856
|
b.object({
|
|
41880
|
-
url: b.string().min(1).refine((e) => !e ||
|
|
41857
|
+
url: b.string().min(1).refine((e) => !e || Tt(e), G("url")),
|
|
41881
41858
|
name: b.string().optional()
|
|
41882
41859
|
}), b.object({
|
|
41883
41860
|
name: b.string().min(1),
|
|
@@ -41885,22 +41862,22 @@ b.object({
|
|
|
41885
41862
|
description: b.string().optional()
|
|
41886
41863
|
}), b.object({
|
|
41887
41864
|
name: b.string().min(1),
|
|
41888
|
-
assignee:
|
|
41889
|
-
group:
|
|
41890
|
-
sla:
|
|
41891
|
-
defaultPriority:
|
|
41865
|
+
assignee: K.optional(),
|
|
41866
|
+
group: K.optional(),
|
|
41867
|
+
sla: K.optional(),
|
|
41868
|
+
defaultPriority: K.optional(),
|
|
41892
41869
|
code: b.string().optional(),
|
|
41893
41870
|
description: b.string().optional(),
|
|
41894
41871
|
state: b.boolean().default(!0)
|
|
41895
41872
|
}), b.object({
|
|
41896
41873
|
name: b.string().min(1),
|
|
41897
41874
|
prefix: b.string().min(1),
|
|
41898
|
-
status:
|
|
41899
|
-
closeReasonGroup:
|
|
41900
|
-
sla:
|
|
41901
|
-
defaultPriority:
|
|
41902
|
-
teams: b.array(
|
|
41903
|
-
skills: b.array(
|
|
41875
|
+
status: q,
|
|
41876
|
+
closeReasonGroup: q,
|
|
41877
|
+
sla: q,
|
|
41878
|
+
defaultPriority: q,
|
|
41879
|
+
teams: b.array(K).optional(),
|
|
41880
|
+
skills: b.array(K).optional(),
|
|
41904
41881
|
code: b.string().optional(),
|
|
41905
41882
|
description: b.string().optional(),
|
|
41906
41883
|
state: b.boolean().default(!0)
|
|
@@ -41924,58 +41901,58 @@ b.object({
|
|
|
41924
41901
|
user: b.any().nullish()
|
|
41925
41902
|
}), b.object({
|
|
41926
41903
|
email: b.string().min(1).email(),
|
|
41927
|
-
type:
|
|
41904
|
+
type: Y,
|
|
41928
41905
|
primary: b.boolean().optional()
|
|
41929
41906
|
});
|
|
41930
41907
|
//#endregion
|
|
41931
41908
|
//#region packages/api-services/src/validations/contactGroup/contactGroup.validations.ts
|
|
41932
|
-
var
|
|
41909
|
+
var Et = {
|
|
41933
41910
|
name: b.string().min(1),
|
|
41934
41911
|
description: b.string().optional(),
|
|
41935
41912
|
enabled: b.boolean().default(!0),
|
|
41936
41913
|
type: b.string().optional()
|
|
41937
|
-
},
|
|
41938
|
-
|
|
41939
|
-
defaultGroup:
|
|
41940
|
-
}),
|
|
41941
|
-
|
|
41942
|
-
defaultGroup:
|
|
41914
|
+
}, Dt = b.object({
|
|
41915
|
+
...Et,
|
|
41916
|
+
defaultGroup: K.optional()
|
|
41917
|
+
}), Ot = b.object({
|
|
41918
|
+
...Et,
|
|
41919
|
+
defaultGroup: q
|
|
41943
41920
|
});
|
|
41944
|
-
b.discriminatedUnion("type", [
|
|
41921
|
+
b.discriminatedUnion("type", [Dt.extend({ type: b.literal(ne.Static) }), Ot.extend({ type: b.literal(ne.Dynamic) })]), b.object({
|
|
41945
41922
|
expression: b.string().min(1),
|
|
41946
|
-
group:
|
|
41947
|
-
assignee:
|
|
41923
|
+
group: q,
|
|
41924
|
+
assignee: K.nullish()
|
|
41948
41925
|
}), b.object({
|
|
41949
41926
|
number: b.string().min(1),
|
|
41950
|
-
type:
|
|
41927
|
+
type: Y,
|
|
41951
41928
|
primary: b.boolean().optional()
|
|
41952
41929
|
});
|
|
41953
41930
|
//#endregion
|
|
41954
41931
|
//#region packages/api-services/src/validations/device/device.validations.ts
|
|
41955
|
-
var
|
|
41932
|
+
var kt = /^(([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])$/, At = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/, jt = b.string().optional().default("").refine((e) => e ? e === "127.0.0.1" || e === "0.0.0.0" ? !1 : kt.test(e) : !0, G("ipValidator")), Mt = b.string().optional().default("").refine((e) => !e || At.test(e), G("macValidator"));
|
|
41956
41933
|
b.object({
|
|
41957
41934
|
id: b.string().optional(),
|
|
41958
41935
|
name: b.string().min(1).default(""),
|
|
41959
41936
|
account: b.string().min(1).default(""),
|
|
41960
41937
|
password: b.string().optional().default(""),
|
|
41961
|
-
user:
|
|
41962
|
-
ip:
|
|
41938
|
+
user: J.optional().default({}),
|
|
41939
|
+
ip: jt,
|
|
41963
41940
|
brand: b.string().optional().default(""),
|
|
41964
41941
|
model: b.string().optional().default(""),
|
|
41965
|
-
mac:
|
|
41942
|
+
mac: Mt,
|
|
41966
41943
|
hotdesk: b.boolean().optional(),
|
|
41967
41944
|
hotdesks: b.array(b.string()).optional()
|
|
41968
41945
|
}).superRefine((e, t) => {
|
|
41969
41946
|
!e.id && !e.password && t.addIssue({
|
|
41970
41947
|
code: "custom",
|
|
41971
41948
|
path: ["password"],
|
|
41972
|
-
...
|
|
41949
|
+
...G("required")
|
|
41973
41950
|
});
|
|
41974
41951
|
let n = e.hotdesks;
|
|
41975
41952
|
e.hotdesk && n?.some((e) => !/\w+/.test(e)) && t.addIssue({
|
|
41976
41953
|
code: "custom",
|
|
41977
41954
|
path: ["hotdesks"],
|
|
41978
|
-
...
|
|
41955
|
+
...G("required")
|
|
41979
41956
|
});
|
|
41980
41957
|
}), b.object({ certificate: b.string().min(1).default("") }), b.object({
|
|
41981
41958
|
name: b.string().min(1),
|
|
@@ -41992,29 +41969,29 @@ b.object({
|
|
|
41992
41969
|
}), b.object({
|
|
41993
41970
|
name: b.string().min(1),
|
|
41994
41971
|
description: b.string().optional(),
|
|
41995
|
-
skills: b.array(
|
|
41972
|
+
skills: b.array(K).optional()
|
|
41996
41973
|
});
|
|
41997
41974
|
//#endregion
|
|
41998
41975
|
//#region packages/api-services/src/validations/queue/queue.rules.ts
|
|
41999
|
-
var
|
|
41976
|
+
var Nt = {
|
|
42000
41977
|
required: ["name"],
|
|
42001
41978
|
minValue: {
|
|
42002
41979
|
priority: 0,
|
|
42003
41980
|
"payload.minOnlineAgents": 0
|
|
42004
41981
|
}
|
|
42005
|
-
},
|
|
42006
|
-
[
|
|
41982
|
+
}, Pt = {
|
|
41983
|
+
[p.OFFLINE_QUEUE]: {
|
|
42007
41984
|
required: ["strategy", "calendar"],
|
|
42008
41985
|
minValue: { "payload.originateTimeout": 0 }
|
|
42009
41986
|
},
|
|
42010
|
-
[
|
|
41987
|
+
[p.INBOUND_QUEUE]: {
|
|
42011
41988
|
required: ["payload.timeBaseScore"],
|
|
42012
41989
|
minValue: {
|
|
42013
41990
|
"payload.maxWaitTime": 0,
|
|
42014
41991
|
"payload.discardAbandonedAfter": 0
|
|
42015
41992
|
}
|
|
42016
41993
|
},
|
|
42017
|
-
[
|
|
41994
|
+
[p.OUTBOUND_IVR_QUEUE]: {
|
|
42018
41995
|
required: [
|
|
42019
41996
|
"strategy",
|
|
42020
41997
|
"calendar",
|
|
@@ -42027,7 +42004,7 @@ var jt = {
|
|
|
42027
42004
|
"payload.minDuration": 0
|
|
42028
42005
|
}
|
|
42029
42006
|
},
|
|
42030
|
-
[
|
|
42007
|
+
[p.PREVIEW_DIALER]: {
|
|
42031
42008
|
required: [
|
|
42032
42009
|
"strategy",
|
|
42033
42010
|
"calendar",
|
|
@@ -42038,7 +42015,7 @@ var jt = {
|
|
|
42038
42015
|
"payload.waitBetweenRetries": 0
|
|
42039
42016
|
}
|
|
42040
42017
|
},
|
|
42041
|
-
[
|
|
42018
|
+
[p.PROGRESSIVE_DIALER]: {
|
|
42042
42019
|
required: [
|
|
42043
42020
|
"strategy",
|
|
42044
42021
|
"calendar",
|
|
@@ -42051,7 +42028,7 @@ var jt = {
|
|
|
42051
42028
|
"payload.progressiveCount": 1
|
|
42052
42029
|
}
|
|
42053
42030
|
},
|
|
42054
|
-
[
|
|
42031
|
+
[p.PREDICTIVE_DIALER]: {
|
|
42055
42032
|
required: [
|
|
42056
42033
|
"strategy",
|
|
42057
42034
|
"calendar",
|
|
@@ -42067,25 +42044,25 @@ var jt = {
|
|
|
42067
42044
|
"payload.maxAgentLine": 1
|
|
42068
42045
|
}
|
|
42069
42046
|
},
|
|
42070
|
-
[
|
|
42047
|
+
[p.CHAT_INBOUND_QUEUE]: {
|
|
42071
42048
|
required: ["strategy", "payload.timeBaseScore"],
|
|
42072
42049
|
minValue: {
|
|
42073
42050
|
"payload.maxWaitTime": 0,
|
|
42074
42051
|
"payload.discardAbandonedAfter": 0
|
|
42075
42052
|
}
|
|
42076
42053
|
},
|
|
42077
|
-
[
|
|
42054
|
+
[p.IM_CHAT_QUEUE]: {
|
|
42078
42055
|
required: ["strategy", "payload.timeBaseScore"],
|
|
42079
42056
|
minValue: {
|
|
42080
42057
|
"payload.maxWaitTime": 0,
|
|
42081
42058
|
"payload.discardAbandonedAfter": 0
|
|
42082
42059
|
}
|
|
42083
42060
|
},
|
|
42084
|
-
[
|
|
42061
|
+
[p.INBOUND_JOB_QUEUE]: {
|
|
42085
42062
|
required: ["strategy", "calendar"],
|
|
42086
42063
|
minValue: { "payload.waitBetweenRetries": 0 }
|
|
42087
42064
|
},
|
|
42088
|
-
[
|
|
42065
|
+
[p.OUTBOUND_JOB_QUEUE]: {
|
|
42089
42066
|
required: [
|
|
42090
42067
|
"strategy",
|
|
42091
42068
|
"calendar",
|
|
@@ -42097,105 +42074,105 @@ var jt = {
|
|
|
42097
42074
|
"payload.minDuration": 0
|
|
42098
42075
|
}
|
|
42099
42076
|
}
|
|
42100
|
-
},
|
|
42077
|
+
}, Ft = b.object({
|
|
42101
42078
|
enabled: b.boolean().optional(),
|
|
42102
42079
|
ai: b.boolean().optional(),
|
|
42103
42080
|
positive: b.array(b.string()).optional(),
|
|
42104
|
-
playback:
|
|
42081
|
+
playback: J.optional(),
|
|
42105
42082
|
allowNotSure: b.boolean().optional(),
|
|
42106
42083
|
silenceNotSure: b.boolean().optional(),
|
|
42107
|
-
maxWordLength:
|
|
42108
|
-
maxNumberOfWords:
|
|
42109
|
-
betweenWordsSilence:
|
|
42110
|
-
minWordLength:
|
|
42111
|
-
totalAnalysisTime:
|
|
42112
|
-
silenceThreshold:
|
|
42113
|
-
afterGreetingSilence:
|
|
42114
|
-
greeting:
|
|
42115
|
-
initialSilence:
|
|
42116
|
-
}),
|
|
42117
|
-
maxAttempts:
|
|
42118
|
-
minAttempts:
|
|
42119
|
-
originateTimeout:
|
|
42120
|
-
waitBetweenRetries:
|
|
42084
|
+
maxWordLength: U,
|
|
42085
|
+
maxNumberOfWords: U,
|
|
42086
|
+
betweenWordsSilence: U,
|
|
42087
|
+
minWordLength: U,
|
|
42088
|
+
totalAnalysisTime: U,
|
|
42089
|
+
silenceThreshold: U,
|
|
42090
|
+
afterGreetingSilence: U,
|
|
42091
|
+
greeting: U,
|
|
42092
|
+
initialSilence: U
|
|
42093
|
+
}), It = b.object({
|
|
42094
|
+
maxAttempts: U,
|
|
42095
|
+
minAttempts: U,
|
|
42096
|
+
originateTimeout: U,
|
|
42097
|
+
waitBetweenRetries: U,
|
|
42121
42098
|
waitBetweenRetriesDesc: b.boolean().optional(),
|
|
42122
|
-
minDuration:
|
|
42123
|
-
maxCalls:
|
|
42124
|
-
progressiveCount:
|
|
42125
|
-
dialingRate:
|
|
42099
|
+
minDuration: U,
|
|
42100
|
+
maxCalls: U,
|
|
42101
|
+
progressiveCount: U,
|
|
42102
|
+
dialingRate: U,
|
|
42126
42103
|
resourceStrategy: b.string().optional(),
|
|
42127
42104
|
strictCircuit: b.boolean().optional(),
|
|
42128
42105
|
perNumbers: b.boolean().optional(),
|
|
42129
42106
|
endless: b.boolean().optional(),
|
|
42130
42107
|
retryAbandoned: b.boolean().optional(),
|
|
42131
|
-
maxAgentLine:
|
|
42132
|
-
maxAgentLose:
|
|
42133
|
-
maxAbandonedRate:
|
|
42134
|
-
targetAbandonedRate:
|
|
42135
|
-
abandonRateAdjustment:
|
|
42136
|
-
loadFactor:
|
|
42137
|
-
playbackSilence:
|
|
42138
|
-
statisticTime:
|
|
42108
|
+
maxAgentLine: U,
|
|
42109
|
+
maxAgentLose: U,
|
|
42110
|
+
maxAbandonedRate: U,
|
|
42111
|
+
targetAbandonedRate: U,
|
|
42112
|
+
abandonRateAdjustment: U,
|
|
42113
|
+
loadFactor: U,
|
|
42114
|
+
playbackSilence: U,
|
|
42115
|
+
statisticTime: U,
|
|
42139
42116
|
timeBaseScore: b.string().optional(),
|
|
42140
|
-
maxWaitTime:
|
|
42141
|
-
maxWaitingSize:
|
|
42142
|
-
discardAbandonedAfter:
|
|
42117
|
+
maxWaitTime: U,
|
|
42118
|
+
maxWaitingSize: U,
|
|
42119
|
+
discardAbandonedAfter: U,
|
|
42143
42120
|
manualDistribution: b.boolean().optional(),
|
|
42144
|
-
minOnlineAgents:
|
|
42145
|
-
maxMemberLimit:
|
|
42121
|
+
minOnlineAgents: U,
|
|
42122
|
+
maxMemberLimit: U,
|
|
42146
42123
|
ignoreCalendar: b.boolean().optional(),
|
|
42147
|
-
stickyAgentSec:
|
|
42124
|
+
stickyAgentSec: U,
|
|
42148
42125
|
stickyIgnoreStatus: b.boolean().optional(),
|
|
42149
|
-
maxIdleAgent:
|
|
42150
|
-
maxIdleClient:
|
|
42151
|
-
maxIdleDialog:
|
|
42126
|
+
maxIdleAgent: U,
|
|
42127
|
+
maxIdleClient: U,
|
|
42128
|
+
maxIdleDialog: U,
|
|
42152
42129
|
lastMessageTimeout: b.boolean().optional(),
|
|
42153
42130
|
recordings: b.boolean().optional(),
|
|
42154
42131
|
recordAll: b.boolean().optional(),
|
|
42155
42132
|
allowGreetingAgent: b.boolean().optional(),
|
|
42156
42133
|
autoAnswerTone: b.string().nullable().optional(),
|
|
42157
|
-
amd:
|
|
42158
|
-
}),
|
|
42134
|
+
amd: Ft.optional()
|
|
42135
|
+
}), Lt = b.object({
|
|
42159
42136
|
enabled: b.boolean().optional(),
|
|
42160
42137
|
isTimeoutRetry: b.boolean().optional(),
|
|
42161
|
-
prolongationTimeSec:
|
|
42162
|
-
repeatsNumber:
|
|
42163
|
-
}),
|
|
42138
|
+
prolongationTimeSec: U,
|
|
42139
|
+
repeatsNumber: U
|
|
42140
|
+
}), Rt = b.object({
|
|
42164
42141
|
enabled: b.boolean().optional(),
|
|
42165
|
-
formSchema:
|
|
42166
|
-
sec:
|
|
42167
|
-
renewalSec:
|
|
42168
|
-
prolongationOptions:
|
|
42169
|
-
}),
|
|
42142
|
+
formSchema: J.optional(),
|
|
42143
|
+
sec: U,
|
|
42144
|
+
renewalSec: U,
|
|
42145
|
+
prolongationOptions: Lt.prefault({})
|
|
42146
|
+
}), zt = b.object({
|
|
42170
42147
|
name: b.string().min(1),
|
|
42171
42148
|
description: b.string().optional(),
|
|
42172
42149
|
type: b.number(),
|
|
42173
42150
|
enabled: b.boolean().optional(),
|
|
42174
|
-
priority:
|
|
42151
|
+
priority: U,
|
|
42175
42152
|
tags: b.array(b.object({ name: b.string() })).optional(),
|
|
42176
|
-
calendar:
|
|
42177
|
-
team:
|
|
42178
|
-
dncList:
|
|
42179
|
-
grantee:
|
|
42180
|
-
ringtone:
|
|
42181
|
-
schema:
|
|
42182
|
-
doSchema:
|
|
42183
|
-
afterSchema:
|
|
42184
|
-
formSchema:
|
|
42153
|
+
calendar: J.optional(),
|
|
42154
|
+
team: J.optional(),
|
|
42155
|
+
dncList: J.optional(),
|
|
42156
|
+
grantee: J.optional(),
|
|
42157
|
+
ringtone: J.optional(),
|
|
42158
|
+
schema: J.optional(),
|
|
42159
|
+
doSchema: J.optional(),
|
|
42160
|
+
afterSchema: J.optional(),
|
|
42161
|
+
formSchema: J.optional(),
|
|
42185
42162
|
strategy: b.string().optional(),
|
|
42186
42163
|
stickyAgent: b.boolean().optional(),
|
|
42187
|
-
taskProcessing:
|
|
42188
|
-
payload:
|
|
42189
|
-
variables: b.array(
|
|
42164
|
+
taskProcessing: Rt.optional(),
|
|
42165
|
+
payload: It.optional(),
|
|
42166
|
+
variables: b.array(Z).optional()
|
|
42190
42167
|
}).superRefine((e, t) => {
|
|
42191
|
-
let n = [
|
|
42168
|
+
let n = [Nt, Pt[Number(e.type)] ?? {}];
|
|
42192
42169
|
for (let r of n) {
|
|
42193
42170
|
for (let n of r.required ?? []) {
|
|
42194
42171
|
let r = _(e, n);
|
|
42195
|
-
|
|
42172
|
+
ut(r) || t.addIssue({
|
|
42196
42173
|
code: "custom",
|
|
42197
42174
|
path: ee(r) ? [...n.split("."), "id"] : n.split("."),
|
|
42198
|
-
...
|
|
42175
|
+
...G("required")
|
|
42199
42176
|
});
|
|
42200
42177
|
}
|
|
42201
42178
|
for (let [n, i] of Object.entries(r.minValue ?? {})) {
|
|
@@ -42210,47 +42187,47 @@ var jt = {
|
|
|
42210
42187
|
});
|
|
42211
42188
|
}
|
|
42212
42189
|
}
|
|
42213
|
-
}),
|
|
42214
|
-
bucket:
|
|
42190
|
+
}), Bt = b.object({
|
|
42191
|
+
bucket: Y,
|
|
42215
42192
|
priority: b.number().min(0).default(0),
|
|
42216
42193
|
disabled: b.boolean().optional()
|
|
42217
|
-
}),
|
|
42194
|
+
}), Vt = b.object({
|
|
42218
42195
|
event: b.string().min(1),
|
|
42219
|
-
schema:
|
|
42196
|
+
schema: Y,
|
|
42220
42197
|
properties: b.array(b.string()).optional(),
|
|
42221
42198
|
enabled: b.boolean().default(!0)
|
|
42222
|
-
}),
|
|
42199
|
+
}), Ht = b.object({
|
|
42223
42200
|
destination: b.string().min(1),
|
|
42224
|
-
type:
|
|
42201
|
+
type: Y,
|
|
42225
42202
|
dtmf: b.string().regex(/^[\d|w|W]*$/).optional(),
|
|
42226
42203
|
display: b.string().optional(),
|
|
42227
42204
|
priority: b.number().optional(),
|
|
42228
|
-
resource:
|
|
42205
|
+
resource: J.optional(),
|
|
42229
42206
|
description: b.string().optional()
|
|
42230
42207
|
});
|
|
42231
|
-
|
|
42208
|
+
Ht.extend({ destination: ft });
|
|
42232
42209
|
//#endregion
|
|
42233
42210
|
//#region packages/api-services/src/validations/queueMember/queueMember.validations.ts
|
|
42234
|
-
var
|
|
42211
|
+
var Ut = b.object({
|
|
42235
42212
|
name: b.string().min(1),
|
|
42236
|
-
communications: b.array(
|
|
42213
|
+
communications: b.array(Ht).min(1),
|
|
42237
42214
|
priority: b.number().optional().default(0),
|
|
42238
|
-
bucket:
|
|
42239
|
-
timezone:
|
|
42240
|
-
agent:
|
|
42215
|
+
bucket: J.optional(),
|
|
42216
|
+
timezone: J.optional(),
|
|
42217
|
+
agent: J.optional(),
|
|
42241
42218
|
expireAt: b.union([b.string(), b.number()]).optional().default(() => te(Date.now(), 7).getTime()),
|
|
42242
42219
|
minOfferingAt: b.union([b.string(), b.number()]).optional(),
|
|
42243
42220
|
stopCause: b.string().optional(),
|
|
42244
|
-
variables: b.array(
|
|
42245
|
-
}),
|
|
42246
|
-
resourceGroup:
|
|
42247
|
-
communication:
|
|
42248
|
-
}),
|
|
42249
|
-
skill:
|
|
42221
|
+
variables: b.array(Z).optional()
|
|
42222
|
+
}), Wt = b.object({
|
|
42223
|
+
resourceGroup: Y,
|
|
42224
|
+
communication: J.optional()
|
|
42225
|
+
}), Gt = b.object({
|
|
42226
|
+
skill: Y,
|
|
42250
42227
|
lvl: b.number().min(0).max(1e3).default(0),
|
|
42251
42228
|
minCapacity: b.number().min(0).max(100).optional().default(0),
|
|
42252
42229
|
maxCapacity: b.number().min(0).max(100).optional().default(10),
|
|
42253
|
-
buckets: b.array(
|
|
42230
|
+
buckets: b.array(J).optional().default([]),
|
|
42254
42231
|
enabled: b.boolean().default(!0)
|
|
42255
42232
|
}).superRefine((e, t) => {
|
|
42256
42233
|
e.minCapacity == null || e.maxCapacity == null || e.minCapacity <= e.maxCapacity || (t.addIssue({
|
|
@@ -42262,19 +42239,56 @@ var Vt = b.object({
|
|
|
42262
42239
|
path: ["maxCapacity"],
|
|
42263
42240
|
message: "Value must be greater than or equal to the minimum capacity"
|
|
42264
42241
|
}));
|
|
42265
|
-
})
|
|
42242
|
+
});
|
|
42243
|
+
b.object({
|
|
42244
|
+
name: b.string().min(1).default(""),
|
|
42245
|
+
gateway: Y,
|
|
42246
|
+
rps: b.number().min(-1).max(1e3).default(10),
|
|
42247
|
+
limit: b.number().min(-1).max(5e3).default(10),
|
|
42248
|
+
description: b.string().optional().default(""),
|
|
42249
|
+
maxSuccessivelyErrors: b.number().default(2),
|
|
42250
|
+
errorIds: b.array(b.string()).optional().default([]),
|
|
42251
|
+
patterns: b.array(b.string()).optional().default([]),
|
|
42252
|
+
failureDialDelay: U.default(0),
|
|
42253
|
+
parameters: b.object({
|
|
42254
|
+
cidType: b.string().optional().default(""),
|
|
42255
|
+
ignoreEarlyMedia: b.string().optional().default("")
|
|
42256
|
+
}).optional().default({
|
|
42257
|
+
cidType: "",
|
|
42258
|
+
ignoreEarlyMedia: ""
|
|
42259
|
+
})
|
|
42260
|
+
}), b.object({ display: ft.default("") });
|
|
42261
|
+
//#endregion
|
|
42262
|
+
//#region packages/api-services/src/validations/resourceGroup/resourceGroup.validations.ts
|
|
42263
|
+
var Kt = b.array(gt).min(1).superRefine(vt()), qt = () => ({
|
|
42264
|
+
start: 540,
|
|
42265
|
+
end: 1200
|
|
42266
|
+
});
|
|
42267
|
+
b.object({
|
|
42268
|
+
name: b.string().min(1),
|
|
42269
|
+
communication: Y,
|
|
42270
|
+
description: b.string().optional().default(""),
|
|
42271
|
+
time: Kt.default(() => [qt()])
|
|
42272
|
+
}), b.object({
|
|
42273
|
+
resource: Y,
|
|
42274
|
+
reserveResource: J.nullish().default({}),
|
|
42275
|
+
priority: U.default(0)
|
|
42276
|
+
});
|
|
42277
|
+
//#endregion
|
|
42278
|
+
//#region packages/api-services/src/validations/sla/sla.validations.ts
|
|
42279
|
+
var Jt = 6e4;
|
|
42266
42280
|
b.object({
|
|
42267
42281
|
name: b.string().min(1),
|
|
42268
42282
|
description: b.string().optional(),
|
|
42269
|
-
calendar:
|
|
42270
|
-
reactionTime:
|
|
42271
|
-
resolutionTime:
|
|
42283
|
+
calendar: q,
|
|
42284
|
+
reactionTime: W(),
|
|
42285
|
+
resolutionTime: W(),
|
|
42272
42286
|
validFrom: b.union([b.string(), b.number()]).nullish(),
|
|
42273
42287
|
validTo: b.union([b.string(), b.number()]).nullish()
|
|
42274
42288
|
}).superRefine((e, t) => {
|
|
42275
42289
|
if (!e.validFrom || !e.validTo) return;
|
|
42276
42290
|
let n = Number(e.validFrom), r = Number(e.validTo);
|
|
42277
|
-
Number.isNaN(n) || Number.isNaN(r) || n > r -
|
|
42291
|
+
Number.isNaN(n) || Number.isNaN(r) || n > r - Jt && t.addIssue({
|
|
42278
42292
|
code: "too_big",
|
|
42279
42293
|
origin: "date",
|
|
42280
42294
|
maximum: r,
|
|
@@ -42284,15 +42298,15 @@ b.object({
|
|
|
42284
42298
|
});
|
|
42285
42299
|
}), b.object({
|
|
42286
42300
|
name: b.string().min(1),
|
|
42287
|
-
priorities: b.array(
|
|
42288
|
-
reactionTime:
|
|
42289
|
-
resolutionTime:
|
|
42301
|
+
priorities: b.array(q).min(1),
|
|
42302
|
+
reactionTime: W(),
|
|
42303
|
+
resolutionTime: W()
|
|
42290
42304
|
}), b.object({
|
|
42291
42305
|
id: b.string().optional(),
|
|
42292
42306
|
name: b.string().min(1).default(""),
|
|
42293
42307
|
description: b.string().optional().default(""),
|
|
42294
42308
|
strategy: b.string().min(1).default(""),
|
|
42295
|
-
admin: b.array(
|
|
42309
|
+
admin: b.array(J).optional().default([]),
|
|
42296
42310
|
screenControl: b.boolean().optional().default(!1),
|
|
42297
42311
|
maxNoAnswer: b.number().default(3),
|
|
42298
42312
|
wrapUpTime: b.number().default(15),
|
|
@@ -42300,41 +42314,41 @@ b.object({
|
|
|
42300
42314
|
taskAcceptTimeout: b.number().default(30),
|
|
42301
42315
|
callTimeout: b.number().default(60),
|
|
42302
42316
|
inviteChatTimeout: b.number().default(30)
|
|
42303
|
-
}), b.object({ agent:
|
|
42317
|
+
}), b.object({ agent: Y }), b.object({
|
|
42304
42318
|
name: b.string().min(1),
|
|
42305
42319
|
description: b.string().optional(),
|
|
42306
|
-
schema:
|
|
42320
|
+
schema: Y,
|
|
42307
42321
|
enabled: b.boolean().default(!0)
|
|
42308
42322
|
}), b.object({
|
|
42309
42323
|
event: b.string().min(1),
|
|
42310
|
-
schema:
|
|
42324
|
+
schema: Y,
|
|
42311
42325
|
properties: b.array(b.string()).optional(),
|
|
42312
42326
|
enabled: b.boolean().default(!0)
|
|
42313
42327
|
}), b.object({ fields: b.array(b.any()).optional() });
|
|
42314
42328
|
//#endregion
|
|
42315
42329
|
//#region packages/api-services/src/validations/user/user.validations.ts
|
|
42316
|
-
var
|
|
42330
|
+
var Yt = /^[0-9]*$/;
|
|
42317
42331
|
b.object({
|
|
42318
42332
|
id: b.string().optional(),
|
|
42319
42333
|
name: b.string().min(1).default(""),
|
|
42320
42334
|
username: b.string().min(1).default(""),
|
|
42321
42335
|
password: b.string().optional().default(""),
|
|
42322
|
-
extension: b.string().optional().default("").refine((e) => !e ||
|
|
42336
|
+
extension: b.string().optional().default("").refine((e) => !e || Yt.test(e), G("numeric")),
|
|
42323
42337
|
email: b.string().optional().default(""),
|
|
42324
42338
|
chatName: b.string().optional().default(""),
|
|
42325
|
-
contact:
|
|
42326
|
-
roles: b.array(
|
|
42339
|
+
contact: J.nullish().default({}),
|
|
42340
|
+
roles: b.array(J).optional().default([]),
|
|
42327
42341
|
license: b.array(b.any()).optional().default([]),
|
|
42328
|
-
devices: b.array(
|
|
42329
|
-
device:
|
|
42342
|
+
devices: b.array(J).optional().default([]),
|
|
42343
|
+
device: J.nullish().default({}),
|
|
42330
42344
|
forcePasswordChange: b.boolean().optional().default(!1),
|
|
42331
42345
|
generateDevice: b.boolean().optional().default(!1),
|
|
42332
|
-
variables: b.array(
|
|
42346
|
+
variables: b.array(Z).optional().default([])
|
|
42333
42347
|
}).superRefine((e, t) => {
|
|
42334
42348
|
!e.id && !e.password && t.addIssue({
|
|
42335
42349
|
code: "custom",
|
|
42336
42350
|
path: ["password"],
|
|
42337
|
-
...
|
|
42351
|
+
...G("required")
|
|
42338
42352
|
}), e.variables?.forEach(({ key: e, value: n }, r) => {
|
|
42339
42353
|
n && !e && t.addIssue({
|
|
42340
42354
|
code: "custom",
|
|
@@ -42343,7 +42357,7 @@ b.object({
|
|
|
42343
42357
|
r,
|
|
42344
42358
|
"key"
|
|
42345
42359
|
],
|
|
42346
|
-
...
|
|
42360
|
+
...G("required")
|
|
42347
42361
|
}), e && !n && t.addIssue({
|
|
42348
42362
|
code: "custom",
|
|
42349
42363
|
path: [
|
|
@@ -42351,30 +42365,30 @@ b.object({
|
|
|
42351
42365
|
r,
|
|
42352
42366
|
"value"
|
|
42353
42367
|
],
|
|
42354
|
-
...
|
|
42368
|
+
...G("required")
|
|
42355
42369
|
});
|
|
42356
42370
|
});
|
|
42357
42371
|
});
|
|
42358
42372
|
//#endregion
|
|
42359
42373
|
//#region packages/api-services/src/validations/userToken/userToken.validations.ts
|
|
42360
|
-
var
|
|
42374
|
+
var Xt = b.object({ usage: b.string().default("") });
|
|
42361
42375
|
b.object({
|
|
42362
42376
|
key: b.string().min(1),
|
|
42363
42377
|
value: b.string().min(1)
|
|
42364
|
-
}), [...x(
|
|
42378
|
+
}), [...x(Bt)], [...x(Vt)], [...x(Ut)], [...x(Wt)], [...x(Gt)], p.OFFLINE_QUEUE, p.INBOUND_QUEUE, p.OUTBOUND_IVR_QUEUE, p.PREVIEW_DIALER, p.PROGRESSIVE_DIALER, p.PREDICTIVE_DIALER, p.CHAT_INBOUND_QUEUE, p.IM_CHAT_QUEUE, p.INBOUND_JOB_QUEUE, p.OUTBOUND_JOB_QUEUE, x(zt), { ...F("/call_center/queues") }, { ...F("/call_center/teams") }, i(), { ...F("/users") }, x(Xt), x(Qe), x(et), i();
|
|
42365
42379
|
//#endregion
|
|
42366
42380
|
//#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
|
|
42367
|
-
var
|
|
42368
|
-
let r =
|
|
42381
|
+
var Zt = i(), Qt = /\{([^}]+)\}/g, $t = (e, t) => t.split(".").reduce((e, t) => e?.[t], e), en = (e, t) => e.match(Qt) ? e.replace(Qt, (e, n) => {
|
|
42382
|
+
let r = $t(t, n);
|
|
42369
42383
|
return r == null ? `{${n}}` : String(r);
|
|
42370
|
-
}) :
|
|
42384
|
+
}) : $t(t, e), tn = ({ display: e, primary: t }) => (n) => n.map((n) => ({
|
|
42371
42385
|
...n,
|
|
42372
42386
|
...t && { id: n[t] },
|
|
42373
|
-
...e && { name:
|
|
42374
|
-
})),
|
|
42375
|
-
let a =
|
|
42376
|
-
|
|
42377
|
-
|
|
42387
|
+
...e && { name: en(e, n) }
|
|
42388
|
+
})), nn = async ({ path: e, display: t, primary: n, filters: r = [], ...i }) => {
|
|
42389
|
+
let a = w(i, [
|
|
42390
|
+
D(C()),
|
|
42391
|
+
N("search"),
|
|
42378
42392
|
(e) => ({
|
|
42379
42393
|
...e,
|
|
42380
42394
|
q: e.search
|
|
@@ -42383,7 +42397,7 @@ var qt = i(), Jt = /\{([^}]+)\}/g, Yt = (e, t) => t.split(".").reduce((e, t) =>
|
|
|
42383
42397
|
...e,
|
|
42384
42398
|
ids: e.id
|
|
42385
42399
|
}),
|
|
42386
|
-
|
|
42400
|
+
A([
|
|
42387
42401
|
"page",
|
|
42388
42402
|
"size",
|
|
42389
42403
|
"q",
|
|
@@ -42392,25 +42406,25 @@ var qt = i(), Jt = /\{([^}]+)\}/g, Yt = (e, t) => t.split(".").reduce((e, t) =>
|
|
|
42392
42406
|
"id",
|
|
42393
42407
|
"ids"
|
|
42394
42408
|
]),
|
|
42395
|
-
|
|
42396
|
-
|
|
42397
|
-
|
|
42409
|
+
T(),
|
|
42410
|
+
E(e),
|
|
42411
|
+
re(r)
|
|
42398
42412
|
]);
|
|
42399
42413
|
try {
|
|
42400
|
-
let { data: e, items: r, next: i } =
|
|
42414
|
+
let { data: e, items: r, next: i } = w((await Zt.get(a)).data, [D(S())]);
|
|
42401
42415
|
return {
|
|
42402
|
-
items:
|
|
42416
|
+
items: w(e || r || [], [tn({
|
|
42403
42417
|
display: t,
|
|
42404
42418
|
primary: n
|
|
42405
42419
|
})]) ?? [],
|
|
42406
42420
|
next: i
|
|
42407
42421
|
};
|
|
42408
42422
|
} catch (e) {
|
|
42409
|
-
throw
|
|
42423
|
+
throw w(e, [k]);
|
|
42410
42424
|
}
|
|
42411
|
-
},
|
|
42412
|
-
getList:
|
|
42413
|
-
getLookup: (e) =>
|
|
42425
|
+
}, rn = {
|
|
42426
|
+
getList: nn,
|
|
42427
|
+
getLookup: (e) => nn({
|
|
42414
42428
|
...e,
|
|
42415
42429
|
fields: e.fields || ["id", "name"]
|
|
42416
42430
|
})
|
|
@@ -42422,7 +42436,7 @@ Object.freeze({
|
|
|
42422
42436
|
VARIABLES: "variables",
|
|
42423
42437
|
DESTINATION: "destination"
|
|
42424
42438
|
});
|
|
42425
|
-
var
|
|
42426
|
-
x(
|
|
42439
|
+
var an = "/contacts";
|
|
42440
|
+
x(Ce), [...x(we)], [...x(Ee)], { ...F(an) };
|
|
42427
42441
|
//#endregion
|
|
42428
|
-
export {
|
|
42442
|
+
export { ie as a, it as i, lt as n, at as r, rn as t };
|