@webitel/ui-sdk 26.8.87 → 26.8.88
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-BOVhef1Q.js → clients-cfVUVngv.js} +313 -285
- package/dist/{components-DhOeTGOI.js → components-BSM66otL.js} +3 -3
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +365 -365
- package/dist/{wt-chat-emoji-D6mlvxYh.js → wt-chat-emoji-zW3fKPW8.js} +1 -1
- package/dist/{wt-display-chip-items-CjoOIGEn.js → wt-display-chip-items-D-lzTp0d.js} +1 -1
- package/dist/{wt-send-message-popup-ClhnL3uM.js → wt-send-message-popup-CiswBW69.js} +2 -2
- package/dist/{wt-table-column-select-CHzqRfXf.js → wt-table-column-select-BtFhZKPT.js} +23 -16
- package/dist/{wt-type-extension-value-input-69hTFde6.js → wt-type-extension-value-input-DTjVuaQe.js} +2 -2
- package/dist/{wt-vidstack-player-BjO98yMg.js → wt-vidstack-player-BUFABzVR.js} +1 -1
- package/package.json +5 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +21 -2
- package/src/modules/TableVariableColumnSelect/components/__tests__/wt-table-variable-column-select.spec.ts +101 -0
- package/src/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue +278 -0
- package/src/modules/TableVariableColumnSelect/composable/__tests__/useTableVariableHeaders.spec.ts +129 -0
- package/src/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.ts +59 -0
- package/src/modules/TableVariableColumnSelect/index.ts +7 -0
- package/types/.tsbuildinfo +1 -1
- package/types/modules/TableVariableColumnSelect/components/wt-table-variable-column-select.vue.d.ts +17 -0
- package/types/modules/TableVariableColumnSelect/composable/useTableVariableHeaders.d.ts +14 -0
- package/types/modules/TableVariableColumnSelect/index.d.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e, s as t } from "./dist-DB8lC4KJ.js";
|
|
2
2
|
import { a as n, i as r, n as i, t as a } from "./genClient-5JkKKac8.js";
|
|
3
3
|
import { i as o, r as s } from "./caseConverters-6cy_SaV5.js";
|
|
4
|
-
import { E as c } from "./components-
|
|
4
|
+
import { E as c } from "./components-BSM66otL.js";
|
|
5
5
|
import { m as l } from "./enums-B_9ZBu01.js";
|
|
6
6
|
import { i as u, o as d } from "./utils-DReAiJBV.js";
|
|
7
7
|
import { t as f } from "./deep-copy-7O5ej7vT.js";
|
|
@@ -100,15 +100,15 @@ var y = {
|
|
|
100
100
|
return g(e, n, t);
|
|
101
101
|
}, {});
|
|
102
102
|
}, t.exports = g;
|
|
103
|
-
})))(), 1), E = (...e) => (t) => T.default.all([...e, t]), D = (...e) => (t) => t.map((t) => T.default.all([...e, t])),
|
|
103
|
+
})))(), 1), E = (...e) => (t) => T.default.all([...e, t]), D = (...e) => (t) => t.map((t) => T.default.all([...e, t])), O = {
|
|
104
104
|
eventBus: null,
|
|
105
105
|
i18n: null
|
|
106
106
|
};
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region packages/api-services/src/api/transformers/notify/notify.transformer.ts
|
|
109
|
-
function
|
|
109
|
+
function k(e) {
|
|
110
110
|
if (typeof e == "function") {
|
|
111
|
-
let t = ({ type: e, text: t }) =>
|
|
111
|
+
let t = ({ type: e, text: t }) => O.eventBus?.$emit("notification", {
|
|
112
112
|
type: e,
|
|
113
113
|
text: t
|
|
114
114
|
});
|
|
@@ -116,7 +116,7 @@ function O(e) {
|
|
|
116
116
|
}
|
|
117
117
|
if (e instanceof Error) {
|
|
118
118
|
let { response: t } = e, n = t?.data?.translation || t?.data?.detail || t?.data?.message || e;
|
|
119
|
-
|
|
119
|
+
O.eventBus?.$emit("notification", {
|
|
120
120
|
type: "error",
|
|
121
121
|
text: n
|
|
122
122
|
});
|
|
@@ -125,10 +125,10 @@ function O(e) {
|
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region packages/api-services/src/api/transformers/sanitize/sanitize.transformer.ts
|
|
128
|
-
var
|
|
129
|
-
let n = (0,
|
|
128
|
+
var A = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n[r] = t[r]), n), {}), j = (e = []) => (t) => o(t, e), ee = /* @__PURE__ */ t(f(), 1), M = (e = "search") => (t) => {
|
|
129
|
+
let n = (0, ee.default)(t), r = p(n, e);
|
|
130
130
|
return !r || r.slice(-1) === "*" ? n : m(n, e, `${r}*`);
|
|
131
|
-
},
|
|
131
|
+
}, te = "acl", ne = (e) => e.map((e) => ({
|
|
132
132
|
...e,
|
|
133
133
|
access: {
|
|
134
134
|
x: {
|
|
@@ -148,7 +148,7 @@ var k = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n
|
|
|
148
148
|
rule: "d".repeat((e.granted.match(/d/g) || []).length)
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
})),
|
|
151
|
+
})), N = (e) => {
|
|
152
152
|
let t = i();
|
|
153
153
|
return {
|
|
154
154
|
getPermissionsList: async ({ parentId: n, ...r }) => {
|
|
@@ -161,31 +161,31 @@ var k = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n
|
|
|
161
161
|
"id"
|
|
162
162
|
], a = { user: !1 }, o = S(r, [
|
|
163
163
|
E(x()),
|
|
164
|
-
|
|
164
|
+
M("search"),
|
|
165
165
|
(e) => ({
|
|
166
166
|
...e,
|
|
167
167
|
q: e.search
|
|
168
168
|
}),
|
|
169
|
-
|
|
169
|
+
A(i),
|
|
170
170
|
C(),
|
|
171
|
-
w(`${e}/${n}/${
|
|
171
|
+
w(`${e}/${n}/${te}`)
|
|
172
172
|
]);
|
|
173
173
|
try {
|
|
174
|
-
let { items: e, next: n } = S((await t.get(o)).data, [
|
|
174
|
+
let { items: e, next: n } = S((await t.get(o)).data, [j(), E(b())]);
|
|
175
175
|
return {
|
|
176
|
-
items: S(e, [D(a),
|
|
176
|
+
items: S(e, [D(a), ne]),
|
|
177
177
|
next: n
|
|
178
178
|
};
|
|
179
179
|
} catch (e) {
|
|
180
|
-
throw S(e, [
|
|
180
|
+
throw S(e, [k]);
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
patchPermissions: async ({ changes: n, id: r }) => {
|
|
184
|
-
let i = S(n, [C()]), a = `${e}/${r}/${
|
|
184
|
+
let i = S(n, [C()]), a = `${e}/${r}/${te}`;
|
|
185
185
|
try {
|
|
186
|
-
return S((await t.patch(a, i)).data, [
|
|
186
|
+
return S((await t.patch(a, i)).data, [j()]);
|
|
187
187
|
} catch (e) {
|
|
188
|
-
throw S(e, [
|
|
188
|
+
throw S(e, [k]);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
};
|
|
@@ -288,7 +288,7 @@ h.object({
|
|
|
288
288
|
"object.name": h.string().describe("display name"),
|
|
289
289
|
"object.id": h.string().describe("identifier")
|
|
290
290
|
});
|
|
291
|
-
var
|
|
291
|
+
var re = h.object({
|
|
292
292
|
grantee: h.string().optional(),
|
|
293
293
|
grants: h.string().optional(),
|
|
294
294
|
object: h.object({
|
|
@@ -296,7 +296,7 @@ var ie = h.object({
|
|
|
296
296
|
name: h.string().optional()
|
|
297
297
|
}).optional()
|
|
298
298
|
});
|
|
299
|
-
h.array(
|
|
299
|
+
h.array(re), h.object({
|
|
300
300
|
granted: h.string().optional(),
|
|
301
301
|
revoked: h.string().optional()
|
|
302
302
|
}), h.object({
|
|
@@ -816,7 +816,7 @@ h.array(ie), h.object({
|
|
|
816
816
|
});
|
|
817
817
|
//#endregion
|
|
818
818
|
//#region packages/api-services/src/gen-wire/agent-service/agent-service.ts
|
|
819
|
-
var
|
|
819
|
+
var P = (e = a) => ({
|
|
820
820
|
searchAgent: (t, n) => e.get("/call_center/agents", {
|
|
821
821
|
...n,
|
|
822
822
|
params: {
|
|
@@ -5715,7 +5715,7 @@ h.object({
|
|
|
5715
5715
|
next: h.boolean().optional(),
|
|
5716
5716
|
page: h.string().optional()
|
|
5717
5717
|
}), h.object({ case_etag: h.string().describe("new comment link") });
|
|
5718
|
-
var
|
|
5718
|
+
var ie = h.object({
|
|
5719
5719
|
fields: h.array(h.string()).optional().describe("result fields needed on the front-end for each comment"),
|
|
5720
5720
|
"input.etag": h.string().optional(),
|
|
5721
5721
|
"input.url": h.string().optional(),
|
|
@@ -6293,7 +6293,7 @@ h.object({
|
|
|
6293
6293
|
fields: h.array(h.string()).optional().describe("List of fields to include in the response."),
|
|
6294
6294
|
disableTrigger: h.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]")
|
|
6295
6295
|
});
|
|
6296
|
-
var
|
|
6296
|
+
var ae = h.object({
|
|
6297
6297
|
assignee: h.object({
|
|
6298
6298
|
id: h.string().optional(),
|
|
6299
6299
|
name: h.string().optional()
|
|
@@ -7619,7 +7619,7 @@ h.object({
|
|
|
7619
7619
|
fields: h.array(h.string()).optional().describe("List of fields to include in the response."),
|
|
7620
7620
|
disableTrigger: h.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]")
|
|
7621
7621
|
});
|
|
7622
|
-
var
|
|
7622
|
+
var oe = h.object({
|
|
7623
7623
|
assignee: h.object({
|
|
7624
7624
|
id: h.string().optional(),
|
|
7625
7625
|
name: h.string().optional()
|
|
@@ -9768,7 +9768,7 @@ h.object({
|
|
|
9768
9768
|
contact_id: h.string().describe("Contact ID associated with."),
|
|
9769
9769
|
etag: h.array(h.string()).min(1).describe("Set of unique ID(s) to remove.")
|
|
9770
9770
|
}), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
9771
|
-
var
|
|
9771
|
+
var se = h.object({
|
|
9772
9772
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
9773
9773
|
created_by: h.object({
|
|
9774
9774
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
@@ -9797,7 +9797,7 @@ var ce = h.object({
|
|
|
9797
9797
|
}).optional().describe("The user who performed last Update."),
|
|
9798
9798
|
ver: h.int().optional().describe("Version of the latest update. Numeric sequence.")
|
|
9799
9799
|
});
|
|
9800
|
-
h.array(
|
|
9800
|
+
h.array(se), h.object({
|
|
9801
9801
|
contact_id: h.string().describe("Contact ID associated with."),
|
|
9802
9802
|
etag: h.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
9803
9803
|
}), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") }), h.object({
|
|
@@ -10182,7 +10182,7 @@ h.array(ce), h.object({
|
|
|
10182
10182
|
next: h.boolean().optional(),
|
|
10183
10183
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
10184
10184
|
}).describe("Contact groups dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactGroupList.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
10185
|
-
var
|
|
10185
|
+
var ce = h.object({
|
|
10186
10186
|
etag: h.string().describe("Unique ID of the latest version of an existing resource."),
|
|
10187
10187
|
group: h.object({
|
|
10188
10188
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
@@ -10190,7 +10190,7 @@ var le = h.object({
|
|
|
10190
10190
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
10191
10191
|
}).optional().describe("Group of contacts associated.")
|
|
10192
10192
|
}).describe("An input of the Contact's groups.");
|
|
10193
|
-
h.array(
|
|
10193
|
+
h.array(ce), h.object({
|
|
10194
10194
|
data: h.array(h.object({
|
|
10195
10195
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
10196
10196
|
created_by: h.object({
|
|
@@ -10216,7 +10216,7 @@ h.array(le), h.object({
|
|
|
10216
10216
|
next: h.boolean().optional(),
|
|
10217
10217
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
10218
10218
|
}).describe("Contact groups dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactGroupList.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
10219
|
-
var
|
|
10219
|
+
var le = h.object({
|
|
10220
10220
|
etag: h.string().describe("Unique ID of the latest version of an existing resource."),
|
|
10221
10221
|
group: h.object({
|
|
10222
10222
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
@@ -10224,7 +10224,7 @@ var ue = h.object({
|
|
|
10224
10224
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
10225
10225
|
}).optional().describe("Group of contacts associated.")
|
|
10226
10226
|
}).describe("An input of the Contact's groups.");
|
|
10227
|
-
h.array(
|
|
10227
|
+
h.array(le), h.object({
|
|
10228
10228
|
data: h.array(h.object({
|
|
10229
10229
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
10230
10230
|
created_by: h.object({
|
|
@@ -10375,7 +10375,7 @@ h.array(ue), h.object({
|
|
|
10375
10375
|
}), h.object({ conversation_id: h.string() }), h.object({ contact_id: h.string().optional() }), h.looseObject({});
|
|
10376
10376
|
//#endregion
|
|
10377
10377
|
//#region packages/api-services/src/gen-wire/contacts/contacts.ts
|
|
10378
|
-
var
|
|
10378
|
+
var ue = h.object({
|
|
10379
10379
|
page: h.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```"),
|
|
10380
10380
|
size: h.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```"),
|
|
10381
10381
|
q: h.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..."),
|
|
@@ -10708,7 +10708,7 @@ h.object({
|
|
|
10708
10708
|
next: h.boolean().optional(),
|
|
10709
10709
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
10710
10710
|
}).describe("Contact dataset."), h.object({ fields: h.array(h.string()).optional().describe("Source Fields to return into result.") });
|
|
10711
|
-
var
|
|
10711
|
+
var de = h.object({
|
|
10712
10712
|
about: h.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
10713
10713
|
comments: h.array(h.object({
|
|
10714
10714
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
@@ -11108,7 +11108,7 @@ h.object({
|
|
|
11108
11108
|
}).optional().describe("Arbitrary client data that is populated by clients.\nDuplicate keys and values are allowed."),
|
|
11109
11109
|
ver: h.int().optional().describe("READONLY. Operational attributes\nVersion of the latest update. Numeric sequence.")
|
|
11110
11110
|
}).describe("The Contact principal source.\nOUTPUT purpose only."), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
11111
|
-
var
|
|
11111
|
+
var fe = h.object({
|
|
11112
11112
|
about: h.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
11113
11113
|
comments: h.array(h.object({
|
|
11114
11114
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
@@ -11198,7 +11198,7 @@ var pe = h.object({
|
|
|
11198
11198
|
value: h.unknown().optional().describe("NEW Value.")
|
|
11199
11199
|
}).describe("Input of the Contact's variable.")).optional().describe("Arbitrary client data that is populated by clients.")
|
|
11200
11200
|
}).describe("The Contact principal input.");
|
|
11201
|
-
h.array(
|
|
11201
|
+
h.array(fe), h.object({
|
|
11202
11202
|
data: h.array(h.object({
|
|
11203
11203
|
about: h.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
11204
11204
|
comments: h.object({
|
|
@@ -12239,7 +12239,7 @@ h.array(pe), h.object({
|
|
|
12239
12239
|
}).optional().describe("Arbitrary client data that is populated by clients.\nDuplicate keys and values are allowed."),
|
|
12240
12240
|
ver: h.int().optional().describe("READONLY. Operational attributes\nVersion of the latest update. Numeric sequence.")
|
|
12241
12241
|
}).describe("The Contact principal source.\nOUTPUT purpose only."), h.object({ etag: h.string().describe("Unique ID of the latest version of an existing resorce.") }), h.object({ fields: h.array(h.string()).optional().describe("Source Fields to return into result.") });
|
|
12242
|
-
var
|
|
12242
|
+
var pe = h.object({
|
|
12243
12243
|
about: h.string().optional().describe("BIO. Short description about the Contact person.\nOPTIONAL. Multi-lined text."),
|
|
12244
12244
|
comments: h.array(h.object({
|
|
12245
12245
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
@@ -13410,8 +13410,8 @@ h.object({
|
|
|
13410
13410
|
id: h.string().optional(),
|
|
13411
13411
|
permanent: h.boolean().optional()
|
|
13412
13412
|
});
|
|
13413
|
-
var
|
|
13414
|
-
h.array(
|
|
13413
|
+
var me = h.string();
|
|
13414
|
+
h.array(me), h.object({ deleted: h.array(h.object({
|
|
13415
13415
|
account: h.string().optional().describe("username"),
|
|
13416
13416
|
brand: h.string().optional().describe("vendor brand name"),
|
|
13417
13417
|
created_at: h.string().optional(),
|
|
@@ -15755,7 +15755,7 @@ h.array(he), h.object({ deleted: h.array(h.object({
|
|
|
15755
15755
|
next: h.boolean().optional().describe("Have more records."),
|
|
15756
15756
|
page: h.int().optional().describe("Page number of the partial result.")
|
|
15757
15757
|
}).describe("A list of Conditions."), h.object({ group_id: h.string().describe("The ID of the group to which the condition belongs.") });
|
|
15758
|
-
var
|
|
15758
|
+
var he = h.object({
|
|
15759
15759
|
assignee: h.object({
|
|
15760
15760
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
15761
15761
|
name: h.string().optional().describe("Reference Object display name."),
|
|
@@ -16017,7 +16017,7 @@ h.object({
|
|
|
16017
16017
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
16018
16018
|
}).optional().describe("The user who performed the last update.")
|
|
16019
16019
|
}), h.object({ id: h.string().describe("The unique ID of the dynamic group to update.") });
|
|
16020
|
-
var
|
|
16020
|
+
var ge = h.object({
|
|
16021
16021
|
default_group: h.object({
|
|
16022
16022
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
16023
16023
|
name: h.string().optional().describe("Reference Object display name."),
|
|
@@ -16476,7 +16476,7 @@ h.object({
|
|
|
16476
16476
|
next: h.boolean().optional(),
|
|
16477
16477
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
16478
16478
|
}).describe("Email dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
16479
|
-
var
|
|
16479
|
+
var F = h.object({
|
|
16480
16480
|
email: h.string().describe("The email address."),
|
|
16481
16481
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
16482
16482
|
primary: h.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -16487,7 +16487,7 @@ var P = h.object({
|
|
|
16487
16487
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
16488
16488
|
verified: h.boolean().optional()
|
|
16489
16489
|
}).describe("Input of the Contact's email address.");
|
|
16490
|
-
h.array(
|
|
16490
|
+
h.array(F), h.object({
|
|
16491
16491
|
data: h.array(h.object({
|
|
16492
16492
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
16493
16493
|
created_by: h.object({
|
|
@@ -16516,7 +16516,7 @@ h.array(P), h.object({
|
|
|
16516
16516
|
next: h.boolean().optional(),
|
|
16517
16517
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
16518
16518
|
}).describe("Email dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
16519
|
-
var
|
|
16519
|
+
var _e = h.object({
|
|
16520
16520
|
email: h.string().describe("The email address."),
|
|
16521
16521
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
16522
16522
|
primary: h.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -16527,7 +16527,7 @@ var ve = h.object({
|
|
|
16527
16527
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
16528
16528
|
verified: h.boolean().optional()
|
|
16529
16529
|
}).describe("Input of the Contact's email address.");
|
|
16530
|
-
h.array(
|
|
16530
|
+
h.array(_e), h.object({
|
|
16531
16531
|
data: h.array(h.object({
|
|
16532
16532
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
16533
16533
|
created_by: h.object({
|
|
@@ -16653,7 +16653,7 @@ h.array(ve), h.object({
|
|
|
16653
16653
|
contact_id: h.string().describe("Link contact ID."),
|
|
16654
16654
|
etag: h.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
16655
16655
|
}), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
16656
|
-
var
|
|
16656
|
+
var ve = h.object({
|
|
16657
16657
|
email: h.string().describe("The email address."),
|
|
16658
16658
|
primary: h.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
16659
16659
|
type: h.object({
|
|
@@ -19601,7 +19601,7 @@ h.object({
|
|
|
19601
19601
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
19602
19602
|
}).optional().describe("The user who performed the last update.")
|
|
19603
19603
|
}), h.object({ id: h.string().describe("The unique ID of the group to update.") });
|
|
19604
|
-
var
|
|
19604
|
+
var ye = h.object({
|
|
19605
19605
|
description: h.string().optional().describe("The new description of the group."),
|
|
19606
19606
|
enabled: h.boolean().optional().describe("The new enabled status of the group."),
|
|
19607
19607
|
name: h.string().optional().describe("The new name of the group.")
|
|
@@ -19939,11 +19939,11 @@ h.object({
|
|
|
19939
19939
|
next: h.boolean().optional(),
|
|
19940
19940
|
page: h.int().optional().describe("Page number of partial result.")
|
|
19941
19941
|
}).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result.") });
|
|
19942
|
-
var
|
|
19942
|
+
var be = h.object({
|
|
19943
19943
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
19944
19944
|
label: h.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.")
|
|
19945
19945
|
}).describe("A Contact's associated Tag.\nOutput purpose only.");
|
|
19946
|
-
h.array(
|
|
19946
|
+
h.array(be), h.object({
|
|
19947
19947
|
data: h.array(h.object({
|
|
19948
19948
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
19949
19949
|
created_by: h.object({
|
|
@@ -19965,11 +19965,11 @@ h.array(xe), h.object({
|
|
|
19965
19965
|
next: h.boolean().optional(),
|
|
19966
19966
|
page: h.int().optional().describe("Page number of partial result.")
|
|
19967
19967
|
}).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result.") });
|
|
19968
|
-
var
|
|
19968
|
+
var xe = h.object({
|
|
19969
19969
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
19970
19970
|
label: h.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.")
|
|
19971
19971
|
}).describe("A Contact's associated Tag.\nOutput purpose only.");
|
|
19972
|
-
h.array(
|
|
19972
|
+
h.array(xe), h.object({
|
|
19973
19973
|
data: h.array(h.object({
|
|
19974
19974
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
19975
19975
|
created_by: h.object({
|
|
@@ -20060,12 +20060,12 @@ h.array(Se), h.object({
|
|
|
20060
20060
|
next: h.boolean().optional(),
|
|
20061
20061
|
page: h.int().optional().describe("Page number of partial result dataset records.")
|
|
20062
20062
|
}).describe("LabelsData\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
20063
|
-
var
|
|
20063
|
+
var Se = h.object({
|
|
20064
20064
|
etag: h.string().describe("Unique ID of the latest version of an existing association."),
|
|
20065
20065
|
primary: h.boolean().optional().describe("Indicates whether this association must be default\namong others of the same type."),
|
|
20066
20066
|
tag: h.string().optional()
|
|
20067
20067
|
}).describe("An input of the Contact's language.");
|
|
20068
|
-
h.array(
|
|
20068
|
+
h.array(Se), h.object({
|
|
20069
20069
|
data: h.array(h.object({
|
|
20070
20070
|
code: h.string().optional(),
|
|
20071
20071
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
@@ -20093,12 +20093,12 @@ h.array(Ce), h.object({
|
|
|
20093
20093
|
next: h.boolean().optional(),
|
|
20094
20094
|
page: h.int().optional().describe("Page number of partial result dataset records.")
|
|
20095
20095
|
}).describe("LabelsData\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Contact ID associated with.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
20096
|
-
var
|
|
20096
|
+
var Ce = h.object({
|
|
20097
20097
|
etag: h.string().describe("Unique ID of the latest version of an existing association."),
|
|
20098
20098
|
primary: h.boolean().optional().describe("Indicates whether this association must be default\namong others of the same type."),
|
|
20099
20099
|
tag: h.string().optional()
|
|
20100
20100
|
}).describe("An input of the Contact's language.");
|
|
20101
|
-
h.array(
|
|
20101
|
+
h.array(Ce), h.object({
|
|
20102
20102
|
data: h.array(h.object({
|
|
20103
20103
|
code: h.string().optional(),
|
|
20104
20104
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
@@ -21892,7 +21892,7 @@ h.array(we), h.object({
|
|
|
21892
21892
|
fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result."),
|
|
21893
21893
|
etag: h.array(h.string()).describe("Set of unique ID(s) to remove.")
|
|
21894
21894
|
});
|
|
21895
|
-
var
|
|
21895
|
+
var we = h.object({
|
|
21896
21896
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
21897
21897
|
created_by: h.object({
|
|
21898
21898
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
@@ -21915,7 +21915,7 @@ var Te = h.object({
|
|
|
21915
21915
|
}).optional().describe("Responsible User."),
|
|
21916
21916
|
ver: h.int().optional().describe("Version of the latest update. Numeric sequence.")
|
|
21917
21917
|
}).describe("Manager. The Contact's responsible User.");
|
|
21918
|
-
h.array(
|
|
21918
|
+
h.array(we), h.object({ contact_id: h.string().describe("Contact ID associated with.") }), h.object({
|
|
21919
21919
|
page: h.int().optional().describe("Page number of result. offset = ((page-1)*size)"),
|
|
21920
21920
|
size: h.int().optional().describe("Size of result page. limit = (size++)"),
|
|
21921
21921
|
q: h.string().optional().describe("Search term: user name;\n`?` - matches any one character\n`*` - matches 0 or more characters"),
|
|
@@ -21949,7 +21949,7 @@ h.array(Te), h.object({ contact_id: h.string().describe("Contact ID associated w
|
|
|
21949
21949
|
next: h.boolean().optional(),
|
|
21950
21950
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
21951
21951
|
}).describe("Manager dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
21952
|
-
var
|
|
21952
|
+
var Te = h.object({
|
|
21953
21953
|
etag: h.string().describe("Unique ID of the latest version of an existing resource."),
|
|
21954
21954
|
primary: h.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
21955
21955
|
user: h.object({
|
|
@@ -21958,7 +21958,7 @@ var Ee = h.object({
|
|
|
21958
21958
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
21959
21959
|
}).optional().describe("Responsible User.")
|
|
21960
21960
|
});
|
|
21961
|
-
h.array(
|
|
21961
|
+
h.array(Te), h.object({
|
|
21962
21962
|
data: h.array(h.object({
|
|
21963
21963
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
21964
21964
|
created_by: h.object({
|
|
@@ -21985,7 +21985,7 @@ h.array(Ee), h.object({
|
|
|
21985
21985
|
next: h.boolean().optional(),
|
|
21986
21986
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
21987
21987
|
}).describe("Manager dataset."), h.object({ contact_id: h.string().describe("Contact ID associated with.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
21988
|
-
var
|
|
21988
|
+
var Ee = h.object({
|
|
21989
21989
|
etag: h.string().describe("Unique ID of the latest version of an existing resource."),
|
|
21990
21990
|
primary: h.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
21991
21991
|
user: h.object({
|
|
@@ -21994,7 +21994,7 @@ var De = h.object({
|
|
|
21994
21994
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
21995
21995
|
}).optional().describe("Responsible User.")
|
|
21996
21996
|
});
|
|
21997
|
-
h.array(
|
|
21997
|
+
h.array(Ee), h.object({
|
|
21998
21998
|
data: h.array(h.object({
|
|
21999
21999
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
22000
22000
|
created_by: h.object({
|
|
@@ -23386,7 +23386,7 @@ h.array(De), h.object({
|
|
|
23386
23386
|
}), h.object({ status: h.string().optional() });
|
|
23387
23387
|
//#endregion
|
|
23388
23388
|
//#region packages/api-services/src/gen-wire/messages/messages.ts
|
|
23389
|
-
var
|
|
23389
|
+
var I = (e = a) => ({
|
|
23390
23390
|
messagesServiceBroadcastMessage: (t, n) => e.post("/chat/broadcast", t, n),
|
|
23391
23391
|
catalogGetCustomers: (t, n) => e.get("/chat/customers", {
|
|
23392
23392
|
...n,
|
|
@@ -24028,7 +24028,7 @@ h.object({
|
|
|
24028
24028
|
next: h.boolean().optional(),
|
|
24029
24029
|
page: h.int().optional()
|
|
24030
24030
|
});
|
|
24031
|
-
var
|
|
24031
|
+
var De = h.object({
|
|
24032
24032
|
auth_url: h.string().optional(),
|
|
24033
24033
|
claims: h.array(h.object({
|
|
24034
24034
|
type: h.string().optional(),
|
|
@@ -25313,7 +25313,7 @@ h.object({
|
|
|
25313
25313
|
next: h.boolean().optional(),
|
|
25314
25314
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
25315
25315
|
}).describe("PhoneNumber dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25316
|
-
var
|
|
25316
|
+
var L = h.object({
|
|
25317
25317
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
25318
25318
|
number: h.string().describe("The phone number."),
|
|
25319
25319
|
primary: h.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -25324,7 +25324,7 @@ var I = h.object({
|
|
|
25324
25324
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
25325
25325
|
verified: h.boolean().optional()
|
|
25326
25326
|
}).describe("Input of the contact phone number.");
|
|
25327
|
-
h.array(
|
|
25327
|
+
h.array(L), h.object({
|
|
25328
25328
|
data: h.array(h.object({
|
|
25329
25329
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
25330
25330
|
created_by: h.object({
|
|
@@ -25353,7 +25353,7 @@ h.array(I), h.object({
|
|
|
25353
25353
|
next: h.boolean().optional(),
|
|
25354
25354
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
25355
25355
|
}).describe("PhoneNumber dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25356
|
-
var
|
|
25356
|
+
var Oe = h.object({
|
|
25357
25357
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
25358
25358
|
number: h.string().describe("The phone number."),
|
|
25359
25359
|
primary: h.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -25364,7 +25364,7 @@ var ke = h.object({
|
|
|
25364
25364
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
25365
25365
|
verified: h.boolean().optional()
|
|
25366
25366
|
}).describe("Input of the contact phone number.");
|
|
25367
|
-
h.array(
|
|
25367
|
+
h.array(Oe), h.object({
|
|
25368
25368
|
data: h.array(h.object({
|
|
25369
25369
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
25370
25370
|
created_by: h.object({
|
|
@@ -25490,7 +25490,7 @@ h.array(ke), h.object({
|
|
|
25490
25490
|
contact_id: h.string().describe("The Contact ID to be associated with."),
|
|
25491
25491
|
etag: h.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
25492
25492
|
}), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25493
|
-
var
|
|
25493
|
+
var ke = h.object({
|
|
25494
25494
|
number: h.string().describe("The phone number."),
|
|
25495
25495
|
primary: h.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
25496
25496
|
type: h.object({
|
|
@@ -25586,13 +25586,13 @@ h.object({
|
|
|
25586
25586
|
next: h.boolean().optional(),
|
|
25587
25587
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
25588
25588
|
}).describe("Photo dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25589
|
-
var
|
|
25589
|
+
var Ae = h.object({
|
|
25590
25590
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing association."),
|
|
25591
25591
|
photo_id: h.string().optional(),
|
|
25592
25592
|
photo_url: h.string().optional(),
|
|
25593
25593
|
primary: h.boolean().optional().describe("True if the photo is a default photo; false if the photo is a user-provided photo.")
|
|
25594
25594
|
}).describe("Input of the photo.");
|
|
25595
|
-
h.array(
|
|
25595
|
+
h.array(Ae), h.object({
|
|
25596
25596
|
data: h.array(h.object({
|
|
25597
25597
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
25598
25598
|
created_by: h.object({
|
|
@@ -25616,13 +25616,13 @@ h.array(je), h.object({
|
|
|
25616
25616
|
next: h.boolean().optional(),
|
|
25617
25617
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
25618
25618
|
}).describe("Photo dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25619
|
-
var
|
|
25619
|
+
var je = h.object({
|
|
25620
25620
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing association."),
|
|
25621
25621
|
photo_id: h.string().optional(),
|
|
25622
25622
|
photo_url: h.string().optional(),
|
|
25623
25623
|
primary: h.boolean().optional().describe("True if the photo is a default photo; false if the photo is a user-provided photo.")
|
|
25624
25624
|
}).describe("Input of the photo.");
|
|
25625
|
-
h.array(
|
|
25625
|
+
h.array(je), h.object({
|
|
25626
25626
|
data: h.array(h.object({
|
|
25627
25627
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
25628
25628
|
created_by: h.object({
|
|
@@ -28979,7 +28979,7 @@ h.array(Me), h.object({
|
|
|
28979
28979
|
next: h.boolean().optional(),
|
|
28980
28980
|
page: h.int().optional()
|
|
28981
28981
|
}), h.object({ fields: h.array(h.string()).optional() });
|
|
28982
|
-
var
|
|
28982
|
+
var R = h.object({
|
|
28983
28983
|
assignee: h.object({
|
|
28984
28984
|
id: h.string().optional(),
|
|
28985
28985
|
name: h.string().optional()
|
|
@@ -29156,7 +29156,7 @@ h.object({
|
|
|
29156
29156
|
name: h.string().optional()
|
|
29157
29157
|
}).optional()
|
|
29158
29158
|
}).optional() }), h.object({ id: h.string().describe("ID of the service to be updated") }), h.object({ fields: h.array(h.string()).optional() });
|
|
29159
|
-
var
|
|
29159
|
+
var Me = h.object({
|
|
29160
29160
|
assignee: h.object({
|
|
29161
29161
|
id: h.string().optional(),
|
|
29162
29162
|
name: h.string().optional()
|
|
@@ -29231,7 +29231,7 @@ h.object({
|
|
|
29231
29231
|
name: h.string().optional()
|
|
29232
29232
|
}).optional()
|
|
29233
29233
|
}), h.object({ id: h.string().describe("ID of the service to be updated") }), h.object({ fields: h.array(h.string()).optional() });
|
|
29234
|
-
var
|
|
29234
|
+
var Ne = h.object({
|
|
29235
29235
|
assignee: h.object({
|
|
29236
29236
|
id: h.string().optional(),
|
|
29237
29237
|
name: h.string().optional()
|
|
@@ -30207,13 +30207,13 @@ h.object({
|
|
|
30207
30207
|
next: h.boolean().optional(),
|
|
30208
30208
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
30209
30209
|
}), h.object({ fields: h.array(h.string()).optional().describe("Source Fields to return into result.") });
|
|
30210
|
-
var
|
|
30210
|
+
var Pe = h.object({
|
|
30211
30211
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
30212
30212
|
home_page: h.string().optional().describe("BIO. Short description about the space.\nOPTIONAL. Multi-lined text."),
|
|
30213
30213
|
name: h.string().optional().describe("Represents the name of the knowledge base space."),
|
|
30214
30214
|
state: h.boolean().optional().describe("The state of the space.")
|
|
30215
30215
|
}).describe("The Space principal input.");
|
|
30216
|
-
h.array(
|
|
30216
|
+
h.array(Pe), h.object({
|
|
30217
30217
|
created_at: h.string().optional().describe("The timestamp when the space was created (in Unix time)."),
|
|
30218
30218
|
created_by: h.object({
|
|
30219
30219
|
id: h.string().optional().describe("Reference Object unique ID."),
|
|
@@ -30781,7 +30781,7 @@ h.array(Fe), h.object({
|
|
|
30781
30781
|
})).optional(),
|
|
30782
30782
|
next: h.boolean().optional()
|
|
30783
30783
|
});
|
|
30784
|
-
var
|
|
30784
|
+
var Fe = h.object({ name: h.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") });
|
|
30785
30785
|
h.object({
|
|
30786
30786
|
id: h.int().optional(),
|
|
30787
30787
|
name: h.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")
|
|
@@ -31279,7 +31279,7 @@ h.object({
|
|
|
31279
31279
|
next: h.boolean().optional(),
|
|
31280
31280
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
31281
31281
|
}).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
31282
|
-
var
|
|
31282
|
+
var Ie = h.object({
|
|
31283
31283
|
etag: h.string().describe("Unique ID of the latest version of an existing resource."),
|
|
31284
31284
|
primary: h.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
31285
31285
|
timezone: h.object({
|
|
@@ -31288,7 +31288,7 @@ var Le = h.object({
|
|
|
31288
31288
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
31289
31289
|
}).optional().describe("Timezone dictionary reference value associated.")
|
|
31290
31290
|
}).describe("An input of the Contact's timezones.");
|
|
31291
|
-
h.array(
|
|
31291
|
+
h.array(Ie), h.object({
|
|
31292
31292
|
data: h.array(h.object({
|
|
31293
31293
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
31294
31294
|
created_by: h.object({
|
|
@@ -31315,7 +31315,7 @@ h.array(Le), h.object({
|
|
|
31315
31315
|
next: h.boolean().optional(),
|
|
31316
31316
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
31317
31317
|
}).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
31318
|
-
var
|
|
31318
|
+
var Le = h.object({
|
|
31319
31319
|
etag: h.string().describe("Unique ID of the latest version of an existing resource."),
|
|
31320
31320
|
primary: h.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
31321
31321
|
timezone: h.object({
|
|
@@ -31324,7 +31324,7 @@ var Re = h.object({
|
|
|
31324
31324
|
type: h.string().optional().describe("Reference Object well-known type.")
|
|
31325
31325
|
}).optional().describe("Timezone dictionary reference value associated.")
|
|
31326
31326
|
}).describe("An input of the Contact's timezones.");
|
|
31327
|
-
h.array(
|
|
31327
|
+
h.array(Le), h.object({
|
|
31328
31328
|
data: h.array(h.object({
|
|
31329
31329
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
31330
31330
|
created_by: h.object({
|
|
@@ -32561,8 +32561,8 @@ h.array(Re), h.object({
|
|
|
32561
32561
|
id: h.string().optional().describe("ONE /users/{id}"),
|
|
32562
32562
|
permanent: h.boolean().optional()
|
|
32563
32563
|
});
|
|
32564
|
-
var
|
|
32565
|
-
h.array(
|
|
32564
|
+
var Re = h.string();
|
|
32565
|
+
h.array(Re), h.object({ deleted: h.array(h.object({
|
|
32566
32566
|
chat_name: h.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."),
|
|
32567
32567
|
contact: h.object({
|
|
32568
32568
|
id: h.string().optional(),
|
|
@@ -33445,12 +33445,12 @@ h.array(ze), h.object({ deleted: h.array(h.object({
|
|
|
33445
33445
|
next: h.boolean().optional(),
|
|
33446
33446
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
33447
33447
|
}).describe("Variable dataset."), h.object({ contact_id: h.string().describe("Link contact ID.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
33448
|
-
var
|
|
33448
|
+
var z = h.object({
|
|
33449
33449
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
33450
33450
|
key: h.string().regex(/^\w+$/).describe("NEW Key."),
|
|
33451
33451
|
value: h.unknown().optional().describe("NEW Value.")
|
|
33452
33452
|
}).describe("Input of the Contact's variable.");
|
|
33453
|
-
h.array(
|
|
33453
|
+
h.array(z), h.object({
|
|
33454
33454
|
data: h.array(h.object({
|
|
33455
33455
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
33456
33456
|
created_by: h.object({
|
|
@@ -33473,12 +33473,12 @@ h.array(R), h.object({
|
|
|
33473
33473
|
next: h.boolean().optional(),
|
|
33474
33474
|
page: h.int().optional().describe("The page number of the partial result.")
|
|
33475
33475
|
}).describe("Variable dataset."), h.object({ contact_id: h.string().describe("Contact ID associated with.") }), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
33476
|
-
var
|
|
33476
|
+
var ze = h.object({
|
|
33477
33477
|
etag: h.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
33478
33478
|
key: h.string().regex(/^\w+$/).describe("NEW Key."),
|
|
33479
33479
|
value: h.unknown().optional().describe("NEW Value.")
|
|
33480
33480
|
}).describe("Input of the Contact's variable.");
|
|
33481
|
-
h.array(
|
|
33481
|
+
h.array(ze), h.object({
|
|
33482
33482
|
data: h.array(h.object({
|
|
33483
33483
|
created_at: h.string().optional().describe("The user who created this Field."),
|
|
33484
33484
|
created_by: h.object({
|
|
@@ -33553,7 +33553,7 @@ h.array(Be), h.object({
|
|
|
33553
33553
|
contact_id: h.string().describe("Contact ID associated with."),
|
|
33554
33554
|
etag: h.string().describe("Unique ID of the latest version of an existing resorce.")
|
|
33555
33555
|
}), h.object({ fields: h.array(h.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
33556
|
-
var
|
|
33556
|
+
var Be = h.object({
|
|
33557
33557
|
key: h.string().regex(/^\w+$/).describe("NEW Key."),
|
|
33558
33558
|
value: h.unknown().optional().describe("NEW Value.")
|
|
33559
33559
|
});
|
|
@@ -38887,10 +38887,10 @@ h.object({
|
|
|
38887
38887
|
}).optional() });
|
|
38888
38888
|
//#endregion
|
|
38889
38889
|
//#region packages/api-services/src/api/clients/agents/agents.ts
|
|
38890
|
-
var
|
|
38890
|
+
var Ve = "/call_center/agents", He = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), B = async (e) => {
|
|
38891
38891
|
let t = (e) => e.map((e) => ({
|
|
38892
38892
|
...e,
|
|
38893
|
-
statusDuration:
|
|
38893
|
+
statusDuration: He(e.statusDuration)
|
|
38894
38894
|
})), n = S(e, [
|
|
38895
38895
|
C(),
|
|
38896
38896
|
E(x()),
|
|
@@ -38901,7 +38901,7 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
38901
38901
|
skill_id: e.skill_id ?? e.skill,
|
|
38902
38902
|
not_supervisor: e.not_supervisor ?? e.is_not_supervisor
|
|
38903
38903
|
}),
|
|
38904
|
-
|
|
38904
|
+
A([
|
|
38905
38905
|
"page",
|
|
38906
38906
|
"size",
|
|
38907
38907
|
"q",
|
|
@@ -38924,15 +38924,15 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
38924
38924
|
])
|
|
38925
38925
|
]);
|
|
38926
38926
|
try {
|
|
38927
|
-
let { items: e, next: r } = S((await
|
|
38927
|
+
let { items: e, next: r } = S((await P().searchAgent(n)).data, [j(), E(b())]);
|
|
38928
38928
|
return {
|
|
38929
38929
|
items: S(e, [t]),
|
|
38930
38930
|
next: r
|
|
38931
38931
|
};
|
|
38932
38932
|
} catch (e) {
|
|
38933
|
-
throw S(e, [
|
|
38933
|
+
throw S(e, [k]);
|
|
38934
38934
|
}
|
|
38935
|
-
},
|
|
38935
|
+
}, Ue = {
|
|
38936
38936
|
user: {},
|
|
38937
38937
|
team: {},
|
|
38938
38938
|
supervisor: [],
|
|
@@ -38944,13 +38944,13 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
38944
38944
|
isSupervisor: !1,
|
|
38945
38945
|
description: "",
|
|
38946
38946
|
greetingMedia: {}
|
|
38947
|
-
},
|
|
38947
|
+
}, We = async ({ itemId: e, defaultObject: t = Ue }) => {
|
|
38948
38948
|
try {
|
|
38949
|
-
return S((await
|
|
38949
|
+
return S((await P().readAgent(String(e))).data, [j(), E(t)]);
|
|
38950
38950
|
} catch (e) {
|
|
38951
|
-
throw S(e, [
|
|
38951
|
+
throw S(e, [k]);
|
|
38952
38952
|
}
|
|
38953
|
-
},
|
|
38953
|
+
}, V = [
|
|
38954
38954
|
"user",
|
|
38955
38955
|
"team",
|
|
38956
38956
|
"supervisor",
|
|
@@ -38963,84 +38963,84 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
38963
38963
|
"isSupervisor",
|
|
38964
38964
|
"screenControl",
|
|
38965
38965
|
"extraChatCount"
|
|
38966
|
-
],
|
|
38967
|
-
getList:
|
|
38968
|
-
get:
|
|
38966
|
+
], Ge = {
|
|
38967
|
+
getList: B,
|
|
38968
|
+
get: We,
|
|
38969
38969
|
add: async ({ itemInstance: e }) => {
|
|
38970
|
-
let t = S(e, [
|
|
38970
|
+
let t = S(e, [A(V), C()]);
|
|
38971
38971
|
try {
|
|
38972
|
-
return S((await
|
|
38972
|
+
return S((await P().createAgent(t)).data, [j()]);
|
|
38973
38973
|
} catch (e) {
|
|
38974
|
-
throw S(e, [
|
|
38974
|
+
throw S(e, [k]);
|
|
38975
38975
|
}
|
|
38976
38976
|
},
|
|
38977
38977
|
patch: async ({ changes: e, id: t }) => {
|
|
38978
|
-
let n = S(e, [
|
|
38978
|
+
let n = S(e, [A(V), C()]);
|
|
38979
38979
|
try {
|
|
38980
|
-
return S((await
|
|
38980
|
+
return S((await P().patchAgent(String(t), n)).data, [j()]);
|
|
38981
38981
|
} catch (e) {
|
|
38982
|
-
throw S(e, [
|
|
38982
|
+
throw S(e, [k]);
|
|
38983
38983
|
}
|
|
38984
38984
|
},
|
|
38985
38985
|
update: async ({ itemInstance: e, itemId: t }) => {
|
|
38986
|
-
let n = S(e, [
|
|
38986
|
+
let n = S(e, [A(V), C()]);
|
|
38987
38987
|
try {
|
|
38988
|
-
return S((await
|
|
38988
|
+
return S((await P().updateAgent(String(t), n)).data, [j()]);
|
|
38989
38989
|
} catch (e) {
|
|
38990
|
-
throw S(e, [
|
|
38990
|
+
throw S(e, [k]);
|
|
38991
38991
|
}
|
|
38992
38992
|
},
|
|
38993
38993
|
delete: async ({ id: e }) => {
|
|
38994
38994
|
try {
|
|
38995
|
-
return S((await
|
|
38995
|
+
return S((await P().deleteAgent(String(e))).data, []);
|
|
38996
38996
|
} catch (e) {
|
|
38997
|
-
throw S(e, [
|
|
38997
|
+
throw S(e, [k]);
|
|
38998
38998
|
}
|
|
38999
38999
|
},
|
|
39000
|
-
getLookup: (e) =>
|
|
39000
|
+
getLookup: (e) => B({
|
|
39001
39001
|
...e,
|
|
39002
39002
|
fields: e.fields || ["id", "name"]
|
|
39003
39003
|
}),
|
|
39004
39004
|
getAgentHistory: async (e) => {
|
|
39005
|
-
let { parentId: t, from: n, to: r, page: i, size: a, sort: o = "-joined_at" } = S(e, [E(x()),
|
|
39005
|
+
let { parentId: t, from: n, to: r, page: i, size: a, sort: o = "-joined_at" } = S(e, [E(x()), M("search")]);
|
|
39006
39006
|
try {
|
|
39007
|
-
let { items: e, next: s } = S((await
|
|
39007
|
+
let { items: e, next: s } = S((await P().searchAgentStateHistory({
|
|
39008
39008
|
page: i,
|
|
39009
39009
|
size: a,
|
|
39010
39010
|
agent_id: t ? [t] : void 0,
|
|
39011
39011
|
sort: o,
|
|
39012
39012
|
"joined_at.from": n,
|
|
39013
39013
|
"joined_at.to": r
|
|
39014
|
-
})).data, [
|
|
39014
|
+
})).data, [j(), E(b())]);
|
|
39015
39015
|
return {
|
|
39016
39016
|
items: e,
|
|
39017
39017
|
next: s
|
|
39018
39018
|
};
|
|
39019
39019
|
} catch (e) {
|
|
39020
|
-
throw S(e, [
|
|
39020
|
+
throw S(e, [k]);
|
|
39021
39021
|
}
|
|
39022
39022
|
},
|
|
39023
|
-
getRegularAgentsOptions: async (e) =>
|
|
39023
|
+
getRegularAgentsOptions: async (e) => B({
|
|
39024
39024
|
...e,
|
|
39025
39025
|
isNotSupervisor: !0
|
|
39026
39026
|
}),
|
|
39027
39027
|
getAgentUsersOptions: async (e) => {
|
|
39028
|
-
let { page: t, size: n, search: r } = S(e, [E(x()),
|
|
39028
|
+
let { page: t, size: n, search: r } = S(e, [E(x()), M("search")]);
|
|
39029
39029
|
try {
|
|
39030
|
-
let { items: e, next: i } = S((await
|
|
39030
|
+
let { items: e, next: i } = S((await P().searchLookupUsersAgentNotExists({
|
|
39031
39031
|
page: t,
|
|
39032
39032
|
size: n,
|
|
39033
39033
|
q: r
|
|
39034
|
-
})).data, [
|
|
39034
|
+
})).data, [j(), E(b())]);
|
|
39035
39035
|
return {
|
|
39036
39036
|
items: e,
|
|
39037
39037
|
next: i
|
|
39038
39038
|
};
|
|
39039
39039
|
} catch (e) {
|
|
39040
|
-
throw S(e, [
|
|
39040
|
+
throw S(e, [k]);
|
|
39041
39041
|
}
|
|
39042
39042
|
},
|
|
39043
|
-
getSupervisorOptions: async (e) =>
|
|
39043
|
+
getSupervisorOptions: async (e) => B({
|
|
39044
39044
|
...e,
|
|
39045
39045
|
isSupervisor: !0
|
|
39046
39046
|
}),
|
|
@@ -39048,12 +39048,12 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
39048
39048
|
let t = S(e, [
|
|
39049
39049
|
C(),
|
|
39050
39050
|
E(x()),
|
|
39051
|
-
|
|
39051
|
+
M("search"),
|
|
39052
39052
|
(e) => ({
|
|
39053
39053
|
...e,
|
|
39054
39054
|
q: e.search
|
|
39055
39055
|
}),
|
|
39056
|
-
|
|
39056
|
+
A([
|
|
39057
39057
|
"page",
|
|
39058
39058
|
"size",
|
|
39059
39059
|
"q",
|
|
@@ -39063,13 +39063,13 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
39063
39063
|
])
|
|
39064
39064
|
]);
|
|
39065
39065
|
try {
|
|
39066
|
-
let { items: e, next: n } = S((await
|
|
39066
|
+
let { items: e, next: n } = S((await P().searchUserStatus(t)).data, [j(), E(b())]);
|
|
39067
39067
|
return {
|
|
39068
39068
|
items: e,
|
|
39069
39069
|
next: n
|
|
39070
39070
|
};
|
|
39071
39071
|
} catch (e) {
|
|
39072
|
-
throw S(e, [
|
|
39072
|
+
throw S(e, [k]);
|
|
39073
39073
|
}
|
|
39074
39074
|
},
|
|
39075
39075
|
getPauseCausesForAgent: async ({ agentId: e }) => {
|
|
@@ -39079,37 +39079,37 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
39079
39079
|
limitMin: 0
|
|
39080
39080
|
};
|
|
39081
39081
|
try {
|
|
39082
|
-
let { items: n, next: r } = S((await
|
|
39082
|
+
let { items: n, next: r } = S((await P().searchPauseCauseForAgent(String(e))).data, [j(), E(b())]);
|
|
39083
39083
|
return {
|
|
39084
39084
|
items: S(n, [D(t)]),
|
|
39085
39085
|
next: r
|
|
39086
39086
|
};
|
|
39087
39087
|
} catch (e) {
|
|
39088
|
-
throw S(e, [
|
|
39088
|
+
throw S(e, [k]);
|
|
39089
39089
|
}
|
|
39090
39090
|
},
|
|
39091
39091
|
getAgentQueues: async (e) => {
|
|
39092
|
-
let { parentId: t, page: n, size: r, search: i, sort: a, fields: o } = S(e, [E(x()),
|
|
39092
|
+
let { parentId: t, page: n, size: r, search: i, sort: a, fields: o } = S(e, [E(x()), M("search")]);
|
|
39093
39093
|
try {
|
|
39094
|
-
let { items: e, next: s } = S((await
|
|
39094
|
+
let { items: e, next: s } = S((await P().searchAgentInQueue(String(t), {
|
|
39095
39095
|
page: n,
|
|
39096
39096
|
size: r,
|
|
39097
39097
|
q: i,
|
|
39098
39098
|
sort: a,
|
|
39099
39099
|
fields: o
|
|
39100
|
-
})).data, [
|
|
39100
|
+
})).data, [j(), E(b())]);
|
|
39101
39101
|
return {
|
|
39102
39102
|
items: e,
|
|
39103
39103
|
next: s
|
|
39104
39104
|
};
|
|
39105
39105
|
} catch (e) {
|
|
39106
|
-
throw S(e, [
|
|
39106
|
+
throw S(e, [k]);
|
|
39107
39107
|
}
|
|
39108
39108
|
},
|
|
39109
39109
|
getStatusStatistics: async (e) => {
|
|
39110
39110
|
let { page: t, size: n, search: r, sort: i, ids: a, fields: o, from: s, to: c, status: l, queue: u, team: d, skill: f, supervisor: p, auditor: m, region: h, utilizationFrom: g, utilizationTo: _, callNow: v } = S(e, [E(x())]);
|
|
39111
39111
|
try {
|
|
39112
|
-
let { items: e, next: y } = S((await
|
|
39112
|
+
let { items: e, next: y } = S((await P().searchAgentStatusStatistic({
|
|
39113
39113
|
page: t,
|
|
39114
39114
|
size: n,
|
|
39115
39115
|
q: r,
|
|
@@ -39128,76 +39128,76 @@ var He = "/call_center/agents", Ue = (e) => e > 3600 * 24 ? ">24:00:00" : c(e),
|
|
|
39128
39128
|
region_id: h,
|
|
39129
39129
|
supervisor_id: p,
|
|
39130
39130
|
auditor_id: m
|
|
39131
|
-
})).data, [
|
|
39131
|
+
})).data, [j(), E(b())]);
|
|
39132
39132
|
return {
|
|
39133
39133
|
items: e,
|
|
39134
39134
|
next: y
|
|
39135
39135
|
};
|
|
39136
39136
|
} catch (e) {
|
|
39137
|
-
throw S(e, [
|
|
39137
|
+
throw S(e, [k]);
|
|
39138
39138
|
}
|
|
39139
39139
|
},
|
|
39140
39140
|
getStatusStatisticsItem: async ({ agentId: e, from: t, to: n }) => {
|
|
39141
39141
|
try {
|
|
39142
|
-
return S((await
|
|
39142
|
+
return S((await P().searchAgentStatusStatisticItem(String(e), {
|
|
39143
39143
|
"time.from": t,
|
|
39144
39144
|
"time.to": n
|
|
39145
|
-
})).data, [
|
|
39145
|
+
})).data, [j()]);
|
|
39146
39146
|
} catch (e) {
|
|
39147
|
-
throw S(e, [
|
|
39147
|
+
throw S(e, [k]);
|
|
39148
39148
|
}
|
|
39149
39149
|
},
|
|
39150
|
-
...
|
|
39150
|
+
...N(Ve)
|
|
39151
39151
|
};
|
|
39152
|
-
({ ...
|
|
39152
|
+
({ ...N("/calendars") }), _(ie), _(R), _(R), _(Ne), _(Me), _(oe), _(ae), { ...N("/cases") }, Object.freeze({
|
|
39153
39153
|
VIBER: "viber",
|
|
39154
39154
|
WHATSAPP: "whatsapp",
|
|
39155
39155
|
TELEGRAM: "telegram",
|
|
39156
39156
|
MESSENGER: "messenger",
|
|
39157
39157
|
EMAIL: "email"
|
|
39158
|
-
}), i(), { ...
|
|
39159
|
-
var
|
|
39158
|
+
}), i(), { ...N("/storage/cognitive_profiles") }, [..._(Fe)], _(ye), { ...N("/contacts/groups") }, { ...N("/devices") }, _(he), _(ge), _(F), _(ve), i(), { ...N("/storage/import_templates") }, { ...N("/call_center/list") }, i(), localStorage.getItem("access-token"), r.create({ headers: { "content-type": "multipart/form-data" } });
|
|
39159
|
+
var Ke = {
|
|
39160
39160
|
patch: async (e) => {
|
|
39161
39161
|
let t = S(e, [C()]);
|
|
39162
39162
|
try {
|
|
39163
|
-
return S((await
|
|
39163
|
+
return S((await I().messagesServiceBroadcastMessage(t)).data, [j()]);
|
|
39164
39164
|
} catch (e) {
|
|
39165
|
-
throw S(e, [
|
|
39165
|
+
throw S(e, [k]);
|
|
39166
39166
|
}
|
|
39167
39167
|
},
|
|
39168
39168
|
getChatHistory: async ({ chatId: e, ...t }) => {
|
|
39169
39169
|
let n = S(t, [E(x()), C()]);
|
|
39170
39170
|
try {
|
|
39171
|
-
let { messages: t, peers: r, next: i } = S((await
|
|
39171
|
+
let { messages: t, peers: r, next: i } = S((await I().catalogGetHistory(String(e), n)).data, [j(), E(b())]);
|
|
39172
39172
|
return {
|
|
39173
39173
|
messages: t,
|
|
39174
39174
|
peers: r,
|
|
39175
39175
|
next: i
|
|
39176
39176
|
};
|
|
39177
39177
|
} catch (e) {
|
|
39178
|
-
throw S(e, [
|
|
39178
|
+
throw S(e, [k]);
|
|
39179
39179
|
}
|
|
39180
39180
|
}
|
|
39181
39181
|
};
|
|
39182
|
-
_(
|
|
39182
|
+
_(De), { ...N("/oauth/apps") }, i(), { ...N("/call_center/resource_group") }, { ...N("/call_center/resources") }, _(L), _(ke);
|
|
39183
39183
|
//#endregion
|
|
39184
39184
|
//#region packages/api-services/src/validations/_shared/clearableNumber.validations.ts
|
|
39185
|
-
var
|
|
39185
|
+
var H = g.number().nullable().optional(), U = (e = 1) => g.union([g.string().min(e), g.number().min(e)]), W = (e) => ({ params: { i18nKey: e } }), G = (e) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e instanceof Date ? !Number.isNaN(e.getTime()) : typeof e == "object" ? Object.keys(e).length > 0 : String(e).length > 0, K = g.object({
|
|
39186
39186
|
id: g.string().optional(),
|
|
39187
39187
|
name: g.string().optional()
|
|
39188
|
-
}),
|
|
39188
|
+
}), q = g.object({
|
|
39189
39189
|
id: g.string().min(1),
|
|
39190
39190
|
name: g.string().optional()
|
|
39191
|
-
}),
|
|
39191
|
+
}), J = g.object({
|
|
39192
39192
|
id: g.union([g.string(), g.number()]).optional(),
|
|
39193
39193
|
name: g.string().optional()
|
|
39194
|
-
}),
|
|
39194
|
+
}), Y = J.refine((e) => G(e), W("required")), X = g.object({
|
|
39195
39195
|
key: g.string(),
|
|
39196
39196
|
value: g.string()
|
|
39197
39197
|
});
|
|
39198
39198
|
g.object({
|
|
39199
39199
|
name: g.string().min(1),
|
|
39200
|
-
repo: g.string().min(1).refine((e) => /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),
|
|
39200
|
+
repo: g.string().min(1).refine((e) => /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e), W("latinWithNumber")),
|
|
39201
39201
|
about: g.string().optional(),
|
|
39202
39202
|
administered: g.boolean().optional(),
|
|
39203
39203
|
primary: g.string().optional(),
|
|
@@ -39207,7 +39207,7 @@ g.object({
|
|
|
39207
39207
|
}), g.object({
|
|
39208
39208
|
name: g.string().min(3),
|
|
39209
39209
|
description: g.string().optional(),
|
|
39210
|
-
teams: g.array(
|
|
39210
|
+
teams: g.array(K).optional().default([]),
|
|
39211
39211
|
enabled: g.boolean().optional().default(!0),
|
|
39212
39212
|
questions: g.array(g.any()).min(1).default([])
|
|
39213
39213
|
}), g.object({
|
|
@@ -39216,7 +39216,7 @@ g.object({
|
|
|
39216
39216
|
});
|
|
39217
39217
|
//#endregion
|
|
39218
39218
|
//#region packages/api-services/src/validations/calendar/calendar.validations.ts
|
|
39219
|
-
var
|
|
39219
|
+
var qe = "hourRange", Z = "timerangeStartLessThanEnd", Je = "timerangeNotIntersect", Q = g.number().int().refine((e) => e >= 0 && e < 1440, W(qe)), Ye = (e) => {
|
|
39220
39220
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
39221
39221
|
return e.forEach((e, t) => {
|
|
39222
39222
|
let r = n.get(e.day) ?? [];
|
|
@@ -39243,22 +39243,22 @@ var Je = "hourRange", X = "timerangeStartLessThanEnd", Z = "timerangeNotIntersec
|
|
|
39243
39243
|
e.start >= e.end && (t.addIssue({
|
|
39244
39244
|
code: "custom",
|
|
39245
39245
|
path: ["start"],
|
|
39246
|
-
...
|
|
39246
|
+
...W(Z)
|
|
39247
39247
|
}), t.addIssue({
|
|
39248
39248
|
code: "custom",
|
|
39249
39249
|
path: ["end"],
|
|
39250
|
-
...
|
|
39250
|
+
...W(Z)
|
|
39251
39251
|
}));
|
|
39252
39252
|
}), Ze = g.array(Xe).superRefine((e, t) => {
|
|
39253
39253
|
Ye(e).forEach((e) => {
|
|
39254
39254
|
t.addIssue({
|
|
39255
39255
|
code: "custom",
|
|
39256
39256
|
path: [e, "start"],
|
|
39257
|
-
...
|
|
39257
|
+
...W(Je)
|
|
39258
39258
|
}), t.addIssue({
|
|
39259
39259
|
code: "custom",
|
|
39260
39260
|
path: [e, "end"],
|
|
39261
|
-
...
|
|
39261
|
+
...W(Je)
|
|
39262
39262
|
});
|
|
39263
39263
|
});
|
|
39264
39264
|
}), Qe = g.object({
|
|
@@ -39272,7 +39272,7 @@ var Je = "hourRange", X = "timerangeStartLessThanEnd", Z = "timerangeNotIntersec
|
|
|
39272
39272
|
g.object({
|
|
39273
39273
|
name: g.string().min(1),
|
|
39274
39274
|
description: g.string().optional().default(""),
|
|
39275
|
-
timezone:
|
|
39275
|
+
timezone: q,
|
|
39276
39276
|
startAt: g.any().optional(),
|
|
39277
39277
|
endAt: g.any().optional(),
|
|
39278
39278
|
expires: g.boolean().optional().default(!1),
|
|
@@ -39292,7 +39292,7 @@ g.object({
|
|
|
39292
39292
|
});
|
|
39293
39293
|
//#endregion
|
|
39294
39294
|
//#region packages/api-services/src/validations/case/case.validations.ts
|
|
39295
|
-
var $ = () =>
|
|
39295
|
+
var $ = () => K.passthrough().default({});
|
|
39296
39296
|
g.object({
|
|
39297
39297
|
subject: g.string().default(""),
|
|
39298
39298
|
source: $(),
|
|
@@ -39314,11 +39314,11 @@ g.object({
|
|
|
39314
39314
|
e.reason?.id || t.addIssue({
|
|
39315
39315
|
code: "custom",
|
|
39316
39316
|
path: ["reason"],
|
|
39317
|
-
...
|
|
39317
|
+
...W("required")
|
|
39318
39318
|
}), e.result || t.addIssue({
|
|
39319
39319
|
code: "custom",
|
|
39320
39320
|
path: ["result"],
|
|
39321
|
-
...
|
|
39321
|
+
...W("required")
|
|
39322
39322
|
});
|
|
39323
39323
|
}), g.object({
|
|
39324
39324
|
name: g.string().min(1),
|
|
@@ -39336,11 +39336,11 @@ g.object({
|
|
|
39336
39336
|
e.type || t.addIssue({
|
|
39337
39337
|
code: "custom",
|
|
39338
39338
|
path: ["type"],
|
|
39339
|
-
...
|
|
39339
|
+
...W("required")
|
|
39340
39340
|
}), e.type?.value === "csv" && !e.separator && t.addIssue({
|
|
39341
39341
|
code: "custom",
|
|
39342
39342
|
path: ["separator"],
|
|
39343
|
-
...
|
|
39343
|
+
...W("required")
|
|
39344
39344
|
});
|
|
39345
39345
|
}), g.object({
|
|
39346
39346
|
name: g.string().min(1),
|
|
@@ -39348,22 +39348,22 @@ g.object({
|
|
|
39348
39348
|
description: g.string().optional()
|
|
39349
39349
|
}), g.object({
|
|
39350
39350
|
name: g.string().min(1),
|
|
39351
|
-
assignee:
|
|
39352
|
-
group:
|
|
39353
|
-
sla:
|
|
39354
|
-
defaultPriority:
|
|
39351
|
+
assignee: K.optional(),
|
|
39352
|
+
group: K.optional(),
|
|
39353
|
+
sla: K.optional(),
|
|
39354
|
+
defaultPriority: K.optional(),
|
|
39355
39355
|
code: g.string().optional(),
|
|
39356
39356
|
description: g.string().optional(),
|
|
39357
39357
|
state: g.boolean().default(!0)
|
|
39358
39358
|
}), g.object({
|
|
39359
39359
|
name: g.string().min(1),
|
|
39360
39360
|
prefix: g.string().min(1),
|
|
39361
|
-
status:
|
|
39362
|
-
closeReasonGroup:
|
|
39363
|
-
sla:
|
|
39364
|
-
defaultPriority:
|
|
39365
|
-
teams: g.array(
|
|
39366
|
-
skills: g.array(
|
|
39361
|
+
status: q,
|
|
39362
|
+
closeReasonGroup: q,
|
|
39363
|
+
sla: q,
|
|
39364
|
+
defaultPriority: q,
|
|
39365
|
+
teams: g.array(K).optional(),
|
|
39366
|
+
skills: g.array(K).optional(),
|
|
39367
39367
|
code: g.string().optional(),
|
|
39368
39368
|
description: g.string().optional(),
|
|
39369
39369
|
state: g.boolean().default(!0)
|
|
@@ -39387,7 +39387,7 @@ g.object({
|
|
|
39387
39387
|
user: g.any().nullish()
|
|
39388
39388
|
}), g.object({
|
|
39389
39389
|
email: g.string().min(1).email(),
|
|
39390
|
-
type:
|
|
39390
|
+
type: Y,
|
|
39391
39391
|
primary: g.boolean().optional()
|
|
39392
39392
|
});
|
|
39393
39393
|
//#endregion
|
|
@@ -39399,19 +39399,47 @@ var $e = {
|
|
|
39399
39399
|
type: g.string().optional()
|
|
39400
39400
|
}, et = g.object({
|
|
39401
39401
|
...$e,
|
|
39402
|
-
defaultGroup:
|
|
39402
|
+
defaultGroup: K.optional()
|
|
39403
39403
|
}), tt = g.object({
|
|
39404
39404
|
...$e,
|
|
39405
|
-
defaultGroup:
|
|
39405
|
+
defaultGroup: q
|
|
39406
39406
|
});
|
|
39407
39407
|
g.discriminatedUnion("type", [et.extend({ type: g.literal(y.Static) }), tt.extend({ type: g.literal(y.Dynamic) })]), g.object({
|
|
39408
39408
|
expression: g.string().min(1),
|
|
39409
|
-
group:
|
|
39410
|
-
assignee:
|
|
39409
|
+
group: q,
|
|
39410
|
+
assignee: K.nullish()
|
|
39411
39411
|
}), g.object({
|
|
39412
39412
|
number: g.string().min(1),
|
|
39413
|
-
type:
|
|
39413
|
+
type: Y,
|
|
39414
39414
|
primary: g.boolean().optional()
|
|
39415
|
+
});
|
|
39416
|
+
//#endregion
|
|
39417
|
+
//#region packages/api-services/src/validations/device/device.validations.ts
|
|
39418
|
+
var nt = /^(([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])$/, rt = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/, it = g.string().optional().default("").refine((e) => e ? e === "127.0.0.1" || e === "0.0.0.0" ? !1 : nt.test(e) : !0, W("ipValidator")), at = g.string().optional().default("").refine((e) => !e || rt.test(e), W("macValidator"));
|
|
39419
|
+
g.object({
|
|
39420
|
+
id: g.string().optional(),
|
|
39421
|
+
name: g.string().min(1).default(""),
|
|
39422
|
+
account: g.string().min(1).default(""),
|
|
39423
|
+
password: g.string().optional().default(""),
|
|
39424
|
+
user: J.optional().default({}),
|
|
39425
|
+
ip: it,
|
|
39426
|
+
brand: g.string().optional().default(""),
|
|
39427
|
+
model: g.string().optional().default(""),
|
|
39428
|
+
mac: at,
|
|
39429
|
+
hotdesk: g.boolean().optional().default(!1),
|
|
39430
|
+
hotdesks: g.array(g.string()).optional().default([])
|
|
39431
|
+
}).superRefine((e, t) => {
|
|
39432
|
+
!e.id && !e.password && t.addIssue({
|
|
39433
|
+
code: "custom",
|
|
39434
|
+
path: ["password"],
|
|
39435
|
+
...W("required")
|
|
39436
|
+
});
|
|
39437
|
+
let n = e.hotdesks;
|
|
39438
|
+
e.hotdesk && n?.some((e) => !/\w+/.test(e)) && t.addIssue({
|
|
39439
|
+
code: "custom",
|
|
39440
|
+
path: ["hotdesks"],
|
|
39441
|
+
...W("required")
|
|
39442
|
+
});
|
|
39415
39443
|
}), g.object({
|
|
39416
39444
|
name: g.string().min(1),
|
|
39417
39445
|
type: g.string().min(1),
|
|
@@ -39427,17 +39455,17 @@ g.discriminatedUnion("type", [et.extend({ type: g.literal(y.Static) }), tt.exten
|
|
|
39427
39455
|
}), g.object({
|
|
39428
39456
|
name: g.string().min(1),
|
|
39429
39457
|
description: g.string().optional(),
|
|
39430
|
-
skills: g.array(
|
|
39458
|
+
skills: g.array(K).optional()
|
|
39431
39459
|
});
|
|
39432
39460
|
//#endregion
|
|
39433
39461
|
//#region packages/api-services/src/validations/queue/queue.rules.ts
|
|
39434
|
-
var
|
|
39462
|
+
var ot = {
|
|
39435
39463
|
required: ["name"],
|
|
39436
39464
|
minValue: {
|
|
39437
39465
|
priority: 0,
|
|
39438
39466
|
"payload.minOnlineAgents": 0
|
|
39439
39467
|
}
|
|
39440
|
-
},
|
|
39468
|
+
}, st = {
|
|
39441
39469
|
[l.OFFLINE_QUEUE]: {
|
|
39442
39470
|
required: ["strategy", "calendar"],
|
|
39443
39471
|
minValue: { "payload.originateTimeout": 0 }
|
|
@@ -39530,103 +39558,103 @@ var nt = {
|
|
|
39530
39558
|
"payload.minDuration": 0
|
|
39531
39559
|
}
|
|
39532
39560
|
}
|
|
39533
|
-
},
|
|
39561
|
+
}, ct = g.object({
|
|
39534
39562
|
enabled: g.boolean().optional(),
|
|
39535
39563
|
ai: g.boolean().optional(),
|
|
39536
39564
|
positive: g.array(g.string()).optional(),
|
|
39537
|
-
playback:
|
|
39565
|
+
playback: J.optional(),
|
|
39538
39566
|
allowNotSure: g.boolean().optional(),
|
|
39539
39567
|
silenceNotSure: g.boolean().optional(),
|
|
39540
|
-
maxWordLength:
|
|
39541
|
-
maxNumberOfWords:
|
|
39542
|
-
betweenWordsSilence:
|
|
39543
|
-
minWordLength:
|
|
39544
|
-
totalAnalysisTime:
|
|
39545
|
-
silenceThreshold:
|
|
39546
|
-
afterGreetingSilence:
|
|
39547
|
-
greeting:
|
|
39548
|
-
initialSilence:
|
|
39549
|
-
}),
|
|
39550
|
-
maxAttempts:
|
|
39551
|
-
minAttempts:
|
|
39552
|
-
originateTimeout:
|
|
39553
|
-
waitBetweenRetries:
|
|
39568
|
+
maxWordLength: H,
|
|
39569
|
+
maxNumberOfWords: H,
|
|
39570
|
+
betweenWordsSilence: H,
|
|
39571
|
+
minWordLength: H,
|
|
39572
|
+
totalAnalysisTime: H,
|
|
39573
|
+
silenceThreshold: H,
|
|
39574
|
+
afterGreetingSilence: H,
|
|
39575
|
+
greeting: H,
|
|
39576
|
+
initialSilence: H
|
|
39577
|
+
}), lt = g.object({
|
|
39578
|
+
maxAttempts: H,
|
|
39579
|
+
minAttempts: H,
|
|
39580
|
+
originateTimeout: H,
|
|
39581
|
+
waitBetweenRetries: H,
|
|
39554
39582
|
waitBetweenRetriesDesc: g.boolean().optional(),
|
|
39555
|
-
minDuration:
|
|
39556
|
-
maxCalls:
|
|
39557
|
-
progressiveCount:
|
|
39558
|
-
dialingRate:
|
|
39583
|
+
minDuration: H,
|
|
39584
|
+
maxCalls: H,
|
|
39585
|
+
progressiveCount: H,
|
|
39586
|
+
dialingRate: H,
|
|
39559
39587
|
resourceStrategy: g.string().optional(),
|
|
39560
39588
|
strictCircuit: g.boolean().optional(),
|
|
39561
39589
|
perNumbers: g.boolean().optional(),
|
|
39562
39590
|
endless: g.boolean().optional(),
|
|
39563
39591
|
retryAbandoned: g.boolean().optional(),
|
|
39564
|
-
maxAgentLine:
|
|
39565
|
-
maxAgentLose:
|
|
39566
|
-
maxAbandonedRate:
|
|
39567
|
-
targetAbandonedRate:
|
|
39568
|
-
abandonRateAdjustment:
|
|
39569
|
-
loadFactor:
|
|
39570
|
-
playbackSilence:
|
|
39571
|
-
statisticTime:
|
|
39592
|
+
maxAgentLine: H,
|
|
39593
|
+
maxAgentLose: H,
|
|
39594
|
+
maxAbandonedRate: H,
|
|
39595
|
+
targetAbandonedRate: H,
|
|
39596
|
+
abandonRateAdjustment: H,
|
|
39597
|
+
loadFactor: H,
|
|
39598
|
+
playbackSilence: H,
|
|
39599
|
+
statisticTime: H,
|
|
39572
39600
|
timeBaseScore: g.string().optional(),
|
|
39573
|
-
maxWaitTime:
|
|
39574
|
-
maxWaitingSize:
|
|
39575
|
-
discardAbandonedAfter:
|
|
39601
|
+
maxWaitTime: H,
|
|
39602
|
+
maxWaitingSize: H,
|
|
39603
|
+
discardAbandonedAfter: H,
|
|
39576
39604
|
manualDistribution: g.boolean().optional(),
|
|
39577
|
-
minOnlineAgents:
|
|
39578
|
-
maxMemberLimit:
|
|
39605
|
+
minOnlineAgents: H,
|
|
39606
|
+
maxMemberLimit: H,
|
|
39579
39607
|
ignoreCalendar: g.boolean().optional(),
|
|
39580
|
-
stickyAgentSec:
|
|
39608
|
+
stickyAgentSec: H,
|
|
39581
39609
|
stickyIgnoreStatus: g.boolean().optional(),
|
|
39582
|
-
maxIdleAgent:
|
|
39583
|
-
maxIdleClient:
|
|
39584
|
-
maxIdleDialog:
|
|
39610
|
+
maxIdleAgent: H,
|
|
39611
|
+
maxIdleClient: H,
|
|
39612
|
+
maxIdleDialog: H,
|
|
39585
39613
|
lastMessageTimeout: g.boolean().optional(),
|
|
39586
39614
|
recordings: g.boolean().optional(),
|
|
39587
39615
|
recordAll: g.boolean().optional(),
|
|
39588
39616
|
allowGreetingAgent: g.boolean().optional(),
|
|
39589
39617
|
autoAnswerTone: g.string().nullable().optional(),
|
|
39590
|
-
amd:
|
|
39591
|
-
}),
|
|
39618
|
+
amd: ct.optional()
|
|
39619
|
+
}), ut = g.object({
|
|
39592
39620
|
enabled: g.boolean().optional(),
|
|
39593
39621
|
isTimeoutRetry: g.boolean().optional(),
|
|
39594
|
-
prolongationTimeSec:
|
|
39595
|
-
repeatsNumber:
|
|
39596
|
-
}),
|
|
39622
|
+
prolongationTimeSec: H,
|
|
39623
|
+
repeatsNumber: H
|
|
39624
|
+
}), dt = g.object({
|
|
39597
39625
|
enabled: g.boolean().optional(),
|
|
39598
|
-
formSchema:
|
|
39599
|
-
sec:
|
|
39600
|
-
renewalSec:
|
|
39601
|
-
prolongationOptions:
|
|
39602
|
-
}),
|
|
39626
|
+
formSchema: J.optional(),
|
|
39627
|
+
sec: H,
|
|
39628
|
+
renewalSec: H,
|
|
39629
|
+
prolongationOptions: ut.prefault({})
|
|
39630
|
+
}), ft = g.object({
|
|
39603
39631
|
name: g.string().min(1),
|
|
39604
39632
|
description: g.string().optional(),
|
|
39605
39633
|
type: g.number(),
|
|
39606
39634
|
enabled: g.boolean().optional(),
|
|
39607
|
-
priority:
|
|
39635
|
+
priority: H,
|
|
39608
39636
|
tags: g.array(g.object({ name: g.string() })).optional(),
|
|
39609
|
-
calendar:
|
|
39610
|
-
team:
|
|
39611
|
-
dncList:
|
|
39612
|
-
grantee:
|
|
39613
|
-
ringtone:
|
|
39614
|
-
schema:
|
|
39615
|
-
doSchema:
|
|
39616
|
-
afterSchema:
|
|
39617
|
-
formSchema:
|
|
39637
|
+
calendar: J.optional(),
|
|
39638
|
+
team: J.optional(),
|
|
39639
|
+
dncList: J.optional(),
|
|
39640
|
+
grantee: J.optional(),
|
|
39641
|
+
ringtone: J.optional(),
|
|
39642
|
+
schema: J.optional(),
|
|
39643
|
+
doSchema: J.optional(),
|
|
39644
|
+
afterSchema: J.optional(),
|
|
39645
|
+
formSchema: J.optional(),
|
|
39618
39646
|
strategy: g.string().optional(),
|
|
39619
39647
|
stickyAgent: g.boolean().optional(),
|
|
39620
|
-
taskProcessing:
|
|
39621
|
-
payload:
|
|
39622
|
-
variables: g.array(
|
|
39648
|
+
taskProcessing: dt.optional(),
|
|
39649
|
+
payload: lt.optional(),
|
|
39650
|
+
variables: g.array(X).optional()
|
|
39623
39651
|
}).superRefine((e, t) => {
|
|
39624
|
-
let n = [
|
|
39652
|
+
let n = [ot, st[Number(e.type)] ?? {}];
|
|
39625
39653
|
for (let r of n) {
|
|
39626
|
-
for (let n of r.required ?? [])
|
|
39654
|
+
for (let n of r.required ?? []) G(p(e, n)) || t.addIssue({
|
|
39627
39655
|
code: "custom",
|
|
39628
39656
|
path: n.split("."),
|
|
39629
|
-
...
|
|
39657
|
+
...W("required")
|
|
39630
39658
|
});
|
|
39631
39659
|
for (let [n, i] of Object.entries(r.minValue ?? {})) {
|
|
39632
39660
|
let r = p(e, n);
|
|
@@ -39640,43 +39668,43 @@ var nt = {
|
|
|
39640
39668
|
});
|
|
39641
39669
|
}
|
|
39642
39670
|
}
|
|
39643
|
-
}),
|
|
39644
|
-
bucket:
|
|
39671
|
+
}), pt = g.object({
|
|
39672
|
+
bucket: Y,
|
|
39645
39673
|
priority: g.number().min(0).default(0),
|
|
39646
39674
|
disabled: g.boolean().optional()
|
|
39647
|
-
}),
|
|
39675
|
+
}), mt = g.object({
|
|
39648
39676
|
event: g.string().min(1),
|
|
39649
|
-
schema:
|
|
39677
|
+
schema: Y,
|
|
39650
39678
|
properties: g.array(g.string()).optional(),
|
|
39651
39679
|
enabled: g.boolean().default(!0)
|
|
39652
|
-
}),
|
|
39680
|
+
}), ht = g.object({
|
|
39653
39681
|
destination: g.string().min(1),
|
|
39654
|
-
type:
|
|
39682
|
+
type: Y,
|
|
39655
39683
|
dtmf: g.string().regex(/^[\d|w|W]*$/).optional(),
|
|
39656
39684
|
display: g.string().optional(),
|
|
39657
39685
|
priority: g.number().optional(),
|
|
39658
|
-
resource:
|
|
39686
|
+
resource: J.optional(),
|
|
39659
39687
|
description: g.string().optional()
|
|
39660
|
-
}),
|
|
39688
|
+
}), gt = g.object({
|
|
39661
39689
|
name: g.string().min(1),
|
|
39662
|
-
communications: g.array(
|
|
39690
|
+
communications: g.array(ht).min(1),
|
|
39663
39691
|
priority: g.number().optional().default(0),
|
|
39664
|
-
bucket:
|
|
39665
|
-
timezone:
|
|
39666
|
-
agent:
|
|
39692
|
+
bucket: J.optional(),
|
|
39693
|
+
timezone: J.optional(),
|
|
39694
|
+
agent: J.optional(),
|
|
39667
39695
|
expireAt: g.union([g.string(), g.number()]).optional().default(() => v(Date.now(), 7).getTime()),
|
|
39668
39696
|
minOfferingAt: g.union([g.string(), g.number()]).optional(),
|
|
39669
39697
|
stopCause: g.string().optional(),
|
|
39670
|
-
variables: g.array(
|
|
39671
|
-
}),
|
|
39672
|
-
resourceGroup:
|
|
39673
|
-
communication:
|
|
39674
|
-
}),
|
|
39675
|
-
skill:
|
|
39698
|
+
variables: g.array(X).optional()
|
|
39699
|
+
}), _t = g.object({
|
|
39700
|
+
resourceGroup: Y,
|
|
39701
|
+
communication: J.optional()
|
|
39702
|
+
}), vt = g.object({
|
|
39703
|
+
skill: Y,
|
|
39676
39704
|
lvl: g.number().min(0).max(1e3).default(0),
|
|
39677
39705
|
minCapacity: g.number().min(0).max(100).optional().default(0),
|
|
39678
39706
|
maxCapacity: g.number().min(0).max(100).optional().default(10),
|
|
39679
|
-
buckets: g.array(
|
|
39707
|
+
buckets: g.array(J).optional().default([]),
|
|
39680
39708
|
enabled: g.boolean().default(!0)
|
|
39681
39709
|
}).superRefine((e, t) => {
|
|
39682
39710
|
e.minCapacity == null || e.maxCapacity == null || e.minCapacity <= e.maxCapacity || (t.addIssue({
|
|
@@ -39688,19 +39716,19 @@ var nt = {
|
|
|
39688
39716
|
path: ["maxCapacity"],
|
|
39689
39717
|
message: "Value must be greater than or equal to the minimum capacity"
|
|
39690
39718
|
}));
|
|
39691
|
-
}),
|
|
39719
|
+
}), yt = 6e4;
|
|
39692
39720
|
g.object({
|
|
39693
39721
|
name: g.string().min(1),
|
|
39694
39722
|
description: g.string().optional(),
|
|
39695
|
-
calendar:
|
|
39696
|
-
reactionTime:
|
|
39697
|
-
resolutionTime:
|
|
39723
|
+
calendar: q,
|
|
39724
|
+
reactionTime: U(),
|
|
39725
|
+
resolutionTime: U(),
|
|
39698
39726
|
validFrom: g.union([g.string(), g.number()]).nullish(),
|
|
39699
39727
|
validTo: g.union([g.string(), g.number()]).nullish()
|
|
39700
39728
|
}).superRefine((e, t) => {
|
|
39701
39729
|
if (!e.validFrom || !e.validTo) return;
|
|
39702
39730
|
let n = Number(e.validFrom), r = Number(e.validTo);
|
|
39703
|
-
Number.isNaN(n) || Number.isNaN(r) || n > r -
|
|
39731
|
+
Number.isNaN(n) || Number.isNaN(r) || n > r - yt && t.addIssue({
|
|
39704
39732
|
code: "too_big",
|
|
39705
39733
|
origin: "date",
|
|
39706
39734
|
maximum: r,
|
|
@@ -39710,19 +39738,19 @@ g.object({
|
|
|
39710
39738
|
});
|
|
39711
39739
|
}), g.object({
|
|
39712
39740
|
name: g.string().min(1),
|
|
39713
|
-
priorities: g.array(
|
|
39714
|
-
reactionTime:
|
|
39715
|
-
resolutionTime:
|
|
39741
|
+
priorities: g.array(q).min(1),
|
|
39742
|
+
reactionTime: U(),
|
|
39743
|
+
resolutionTime: U()
|
|
39716
39744
|
}), g.object({ fields: g.array(g.any()).optional() }), g.object({
|
|
39717
39745
|
key: g.string().min(1),
|
|
39718
39746
|
value: g.string().min(1)
|
|
39719
|
-
}), [..._(
|
|
39747
|
+
}), [..._(pt)], [..._(mt)], [..._(gt)], [..._(_t)], [..._(vt)], l.OFFLINE_QUEUE, l.INBOUND_QUEUE, l.OUTBOUND_IVR_QUEUE, l.PREVIEW_DIALER, l.PROGRESSIVE_DIALER, l.PREDICTIVE_DIALER, l.CHAT_INBOUND_QUEUE, l.IM_CHAT_QUEUE, l.INBOUND_JOB_QUEUE, l.OUTBOUND_JOB_QUEUE, _(ft), { ...N("/call_center/queues") }, { ...N("/call_center/teams") }, i(), { ...N("/users") }, _(z), _(Be), i();
|
|
39720
39748
|
//#endregion
|
|
39721
39749
|
//#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
|
|
39722
|
-
var
|
|
39750
|
+
var bt = i(), xt = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
39723
39751
|
let i = S(r, [
|
|
39724
39752
|
E(x()),
|
|
39725
|
-
|
|
39753
|
+
M("search"),
|
|
39726
39754
|
(e) => ({
|
|
39727
39755
|
...e,
|
|
39728
39756
|
q: e.search
|
|
@@ -39731,7 +39759,7 @@ var gt = i(), _t = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
|
39731
39759
|
...e,
|
|
39732
39760
|
ids: e.id
|
|
39733
39761
|
}),
|
|
39734
|
-
|
|
39762
|
+
A([
|
|
39735
39763
|
"page",
|
|
39736
39764
|
"size",
|
|
39737
39765
|
"q",
|
|
@@ -39744,17 +39772,17 @@ var gt = i(), _t = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
|
39744
39772
|
w(e)
|
|
39745
39773
|
]);
|
|
39746
39774
|
try {
|
|
39747
|
-
let { data: e, items: t, next: n } = S((await
|
|
39775
|
+
let { data: e, items: t, next: n } = S((await bt.get(i)).data, [E(b())]);
|
|
39748
39776
|
return {
|
|
39749
39777
|
items: S(e || t, []) ?? [],
|
|
39750
39778
|
next: n
|
|
39751
39779
|
};
|
|
39752
39780
|
} catch (e) {
|
|
39753
|
-
throw S(e, [
|
|
39781
|
+
throw S(e, [k]);
|
|
39754
39782
|
}
|
|
39755
|
-
},
|
|
39756
|
-
getList:
|
|
39757
|
-
getLookup: (e) =>
|
|
39783
|
+
}, St = {
|
|
39784
|
+
getList: xt,
|
|
39785
|
+
getLookup: (e) => xt({
|
|
39758
39786
|
...e,
|
|
39759
39787
|
fields: e.fields || ["id", "name"]
|
|
39760
39788
|
})
|
|
@@ -39766,7 +39794,7 @@ Object.freeze({
|
|
|
39766
39794
|
VARIABLES: "variables",
|
|
39767
39795
|
DESTINATION: "destination"
|
|
39768
39796
|
});
|
|
39769
|
-
var
|
|
39770
|
-
_(
|
|
39797
|
+
var Ct = "/contacts";
|
|
39798
|
+
_(ue), [..._(de)], [..._(pe)], { ...N(Ct) };
|
|
39771
39799
|
//#endregion
|
|
39772
|
-
export {
|
|
39800
|
+
export { Ke as n, Ge as r, St as t };
|