@webitel/ui-sdk 26.8.51 → 26.8.52

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.
@@ -2,7 +2,7 @@ import { a as e, t } from "./rolldown-runtime-BEcgMyyN.js";
2
2
  import { n, t as r } from "./dist-CAOIU8xq.js";
3
3
  import { n as i, t as a } from "./generateInstance-C9d7J_TX.js";
4
4
  import { i as o, r as s } from "./caseConverters-DXegZoCt.js";
5
- import { E as c } from "./components-9JJurJkY.js";
5
+ import { E as c } from "./components-C4rE9PlV.js";
6
6
  import { p as l } from "./enums-DY3jIXFF.js";
7
7
  import { f as u, t as d } from "./side-channel-8SnAuRMA.js";
8
8
  import { t as f } from "./deep-copy-CTgLtgMO.js";
@@ -92,7 +92,7 @@ var D = w.RFC3986, O = Array.isArray, k = (function() {
92
92
  }
93
93
  }, I = Array.isArray, L = Array.prototype.push, R = function(e, t) {
94
94
  L.apply(e, I(t) ? t : [t]);
95
- }, z = Date.prototype.toISOString, ee = D, B = {
95
+ }, ee = Date.prototype.toISOString, te = D, z = {
96
96
  addQueryPrefix: !1,
97
97
  allowDots: !1,
98
98
  allowEmptyArrays: !1,
@@ -104,33 +104,33 @@ var D = w.RFC3986, O = Array.isArray, k = (function() {
104
104
  encodeDotInKeys: !1,
105
105
  encoder: j,
106
106
  encodeValuesOnly: !1,
107
- format: ee,
108
- formatter: T[ee],
107
+ format: te,
108
+ formatter: T[te],
109
109
  indices: !1,
110
110
  serializeDate: function(e) {
111
- return z.call(e);
111
+ return ee.call(e);
112
112
  },
113
113
  skipNulls: !1,
114
114
  strictNullHandling: !1
115
- }, te = function(e) {
115
+ }, ne = function(e) {
116
116
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
117
- }, ne = {}, re = function(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
117
+ }, B = {}, re = function(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
118
118
  let v = e, y = _, b = 0, x = !1;
119
- for (; (y = y.get(ne)) !== void 0 && !x;) {
119
+ for (; (y = y.get(B)) !== void 0 && !x;) {
120
120
  let t = y.get(e);
121
121
  if (b += 1, t !== void 0) {
122
122
  if (t === b) throw RangeError("Cyclic object value");
123
123
  x = !0;
124
124
  }
125
- y.get(ne) === void 0 && (b = 0);
125
+ y.get(B) === void 0 && (b = 0);
126
126
  }
127
127
  if (typeof l == "function" ? v = l(t, v) : v instanceof Date ? v = f(v) : n === "comma" && I(v) && (v = N(v, function(e) {
128
128
  return e instanceof Date ? f(e) : e;
129
129
  })), v === null) {
130
- if (a) return c && !h ? c(t, B.encoder, g, "key", p) : t;
130
+ if (a) return c && !h ? c(t, z.encoder, g, "key", p) : t;
131
131
  v = "";
132
132
  }
133
- if (te(v) || M(v)) return c ? [m(h ? t : c(t, B.encoder, g, "key", p)) + "=" + m(c(v, B.encoder, g, "value", p))] : [m(t) + "=" + m(String(v))];
133
+ if (ne(v) || M(v)) return c ? [m(h ? t : c(t, z.encoder, g, "key", p)) + "=" + m(c(v, z.encoder, g, "value", p))] : [m(t) + "=" + m(String(v))];
134
134
  let S = [];
135
135
  if (v === void 0) return S;
136
136
  let C;
@@ -148,46 +148,46 @@ var D = w.RFC3986, O = Array.isArray, k = (function() {
148
148
  let w = d && s ? y.replace(/\./g, "%2E") : y, E = I(v) ? typeof n == "function" ? n(T, w) : T : T + (d ? "." + w : "[" + w + "]");
149
149
  _.set(e, b);
150
150
  let D = /* @__PURE__ */ new WeakMap();
151
- D.set(ne, _), R(S, re(x, E, n, r, i, a, o, s, n === "comma" && h && I(v) ? null : c, l, u, d, f, p, m, h, g, D));
151
+ D.set(B, _), R(S, re(x, E, n, r, i, a, o, s, n === "comma" && h && I(v) ? null : c, l, u, d, f, p, m, h, g, D));
152
152
  }
153
153
  return S;
154
154
  }, ie = function(e) {
155
- if (!e) return B;
155
+ if (!e) return z;
156
156
  if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
157
157
  if (e.encodeDotInKeys !== void 0 && typeof e.encodeDotInKeys != "boolean") throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
158
158
  if (e.encoder !== null && e.encoder !== void 0 && typeof e.encoder != "function") throw TypeError("Encoder has to be a function.");
159
- let t = e.charset || B.charset;
159
+ let t = e.charset || z.charset;
160
160
  if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
161
161
  let n = D;
162
162
  if (e.format !== void 0) {
163
163
  if (!P.call(T, e.format)) throw TypeError("Unknown format option provided.");
164
164
  n = e.format;
165
165
  }
166
- let r = T[n], i = B.filter;
166
+ let r = T[n], i = z.filter;
167
167
  (typeof e.filter == "function" || I(e.filter)) && (i = e.filter);
168
168
  let a;
169
- if (a = e.arrayFormat in F ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : B.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
170
- let o = e.allowDots === void 0 ? e.encodeDotInKeys === !0 ? !0 : B.allowDots : !!e.allowDots;
169
+ if (a = e.arrayFormat in F ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : z.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
170
+ let o = e.allowDots === void 0 ? e.encodeDotInKeys === !0 ? !0 : z.allowDots : !!e.allowDots;
171
171
  return {
172
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : B.addQueryPrefix,
172
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : z.addQueryPrefix,
173
173
  allowDots: o,
174
- allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : B.allowEmptyArrays,
174
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : z.allowEmptyArrays,
175
175
  arrayFormat: a,
176
176
  charset: t,
177
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : B.charsetSentinel,
177
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : z.charsetSentinel,
178
178
  commaRoundTrip: e.commaRoundTrip,
179
- delimiter: e.delimiter === void 0 ? B.delimiter : e.delimiter,
180
- encode: typeof e.encode == "boolean" ? e.encode : B.encode,
181
- encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : B.encodeDotInKeys,
182
- encoder: typeof e.encoder == "function" ? e.encoder : B.encoder,
183
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : B.encodeValuesOnly,
179
+ delimiter: e.delimiter === void 0 ? z.delimiter : e.delimiter,
180
+ encode: typeof e.encode == "boolean" ? e.encode : z.encode,
181
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : z.encodeDotInKeys,
182
+ encoder: typeof e.encoder == "function" ? e.encoder : z.encoder,
183
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : z.encodeValuesOnly,
184
184
  filter: i,
185
185
  format: n,
186
186
  formatter: r,
187
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : B.serializeDate,
188
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : B.skipNulls,
187
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : z.serializeDate,
188
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : z.skipNulls,
189
189
  sort: typeof e.sort == "function" ? e.sort : null,
190
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
190
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : z.strictNullHandling
191
191
  };
192
192
  };
193
193
  function ae(e, t) {
@@ -586,10 +586,10 @@ var oe = [(e) => (e.headers["X-Webitel-Access"] = localStorage.getItem("access-t
586
586
  for (var I = 0; I < M.length; ++I) {
587
587
  var L = M[I], R = typeof L == "object" && L && L.value !== void 0 ? L.value : E[L];
588
588
  if (!(d && R === null)) {
589
- var z = y && f ? String(L).replace(/\./g, "%2E") : String(L), ee = s(E) ? typeof a == "function" ? a(F, z) : F : F + (y ? "." + z : "[" + z + "]");
589
+ var ee = y && f ? String(L).replace(/\./g, "%2E") : String(L), te = s(E) ? typeof a == "function" ? a(F, ee) : F : F + (y ? "." + ee : "[" + ee + "]");
590
590
  T.set(t, O);
591
- var B = n();
592
- B.set(h, T), l(j, e(R, ee, a, o, c, u, d, f, a === "comma" && C && s(E) ? null : g, _, v, y, b, x, S, C, w, B));
591
+ var z = n();
592
+ z.set(h, T), l(j, e(R, te, a, o, c, u, d, f, a === "comma" && C && s(E) ? null : g, _, v, y, b, x, S, C, w, z));
593
593
  }
594
594
  }
595
595
  return j;
@@ -901,22 +901,22 @@ var oe = [(e) => (e.headers["X-Webitel-Access"] = localStorage.getItem("access-t
901
901
  }
902
902
  }
903
903
  this.hostname.length > l ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), k || (this.hostname = t.toASCII(this.hostname));
904
- var z = this.port ? ":" + this.port : "", ee = this.hostname || "";
905
- this.host = ee + z, this.href += this.host, k && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y[0] !== "/" && (y = "/" + y));
904
+ var ee = this.port ? ":" + this.port : "", te = this.hostname || "";
905
+ this.host = te + ee, this.href += this.host, k && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), y[0] !== "/" && (y = "/" + y));
906
906
  }
907
907
  if (!f[S]) for (var T = 0, j = o.length; T < j; T++) {
908
- var B = o[T];
909
- if (y.indexOf(B) !== -1) {
910
- var te = encodeURIComponent(B);
911
- te === B && (te = escape(B)), y = y.split(B).join(te);
908
+ var z = o[T];
909
+ if (y.indexOf(z) !== -1) {
910
+ var ne = encodeURIComponent(z);
911
+ ne === z && (ne = escape(z)), y = y.split(z).join(ne);
912
912
  }
913
913
  }
914
- var ne = y.indexOf("#");
915
- ne !== -1 && (this.hash = y.substr(ne), y = y.slice(0, ne));
914
+ var B = y.indexOf("#");
915
+ B !== -1 && (this.hash = y.substr(B), y = y.slice(0, B));
916
916
  var re = y.indexOf("?");
917
917
  if (re === -1 ? n && (this.search = "", this.query = {}) : (this.search = y.substr(re), this.query = y.substr(re + 1), n && (this.query = h.parse(this.query)), y = y.slice(0, re)), y && (this.pathname = y), m[S] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
918
- var z = this.pathname || "", ie = this.search || "";
919
- this.path = z + ie;
918
+ var ee = this.pathname || "", ie = this.search || "";
919
+ this.path = ee + ie;
920
920
  }
921
921
  return this.href = this.format(), this;
922
922
  };
@@ -17563,7 +17563,8 @@ g.array(Ne), g.object({
17563
17563
  }).describe("Email dataset."), g.object({
17564
17564
  contact_id: g.string().describe("Link contact ID."),
17565
17565
  etag: g.string().describe("Unique ID of the latest version of an existing resorce.")
17566
- }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") }), g.object({
17566
+ }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
17567
+ var Pe = g.object({
17567
17568
  email: g.string().describe("The email address."),
17568
17569
  primary: g.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
17569
17570
  type: g.object({
@@ -17572,7 +17573,8 @@ g.array(Ne), g.object({
17572
17573
  type: g.string().optional().describe("Reference Object well-known type.")
17573
17574
  }).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
17574
17575
  verified: g.boolean().optional()
17575
- }), g.object({
17576
+ });
17577
+ g.object({
17576
17578
  data: g.array(g.object({
17577
17579
  createdAt: g.string().optional().describe("The user who created this Field."),
17578
17580
  createdBy: g.object({
@@ -20452,7 +20454,7 @@ g.array(Ne), g.object({
20452
20454
  type: g.string().optional().describe("Reference Object well-known type.")
20453
20455
  }).optional().describe("The user who performed the last update.")
20454
20456
  }), g.object({ id: g.string().describe("The unique ID of the group to update.") });
20455
- var Pe = g.object({
20457
+ var Fe = g.object({
20456
20458
  description: g.string().optional().describe("The new description of the group."),
20457
20459
  enabled: g.boolean().optional().describe("The new enabled status of the group."),
20458
20460
  name: g.string().optional().describe("The new name of the group.")
@@ -20790,11 +20792,11 @@ g.object({
20790
20792
  next: g.boolean().optional(),
20791
20793
  page: g.int().optional().describe("Page number of partial result.")
20792
20794
  }).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result.") });
20793
- var Fe = g.object({
20795
+ var Ie = g.object({
20794
20796
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
20795
20797
  label: g.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.")
20796
20798
  }).describe("A Contact's associated Tag.\nOutput purpose only.");
20797
- g.array(Fe), g.object({
20799
+ g.array(Ie), g.object({
20798
20800
  data: g.array(g.object({
20799
20801
  createdAt: g.string().optional().describe("The user who created this Field."),
20800
20802
  createdBy: g.object({
@@ -20816,11 +20818,11 @@ g.array(Fe), g.object({
20816
20818
  next: g.boolean().optional(),
20817
20819
  page: g.int().optional().describe("Page number of partial result.")
20818
20820
  }).describe("LabelList dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result.") });
20819
- var Ie = g.object({
20821
+ var Le = g.object({
20820
20822
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
20821
20823
  label: g.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.")
20822
20824
  }).describe("A Contact's associated Tag.\nOutput purpose only.");
20823
- g.array(Ie), g.object({
20825
+ g.array(Le), g.object({
20824
20826
  data: g.array(g.object({
20825
20827
  createdAt: g.string().optional().describe("The user who created this Field."),
20826
20828
  createdBy: g.object({
@@ -20911,12 +20913,12 @@ g.array(Ie), g.object({
20911
20913
  next: g.boolean().optional(),
20912
20914
  page: g.int().optional().describe("Page number of partial result dataset records.")
20913
20915
  }).describe("LabelsData\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result.") });
20914
- var Le = g.object({
20916
+ var Re = g.object({
20915
20917
  etag: g.string().describe("Unique ID of the latest version of an existing association."),
20916
20918
  primary: g.boolean().optional().describe("Indicates whether this association must be default\namong others of the same type."),
20917
20919
  tag: g.string().optional()
20918
20920
  }).describe("An input of the Contact's language.");
20919
- g.array(Le), g.object({
20921
+ g.array(Re), g.object({
20920
20922
  data: g.array(g.object({
20921
20923
  code: g.string().optional(),
20922
20924
  createdAt: g.string().optional().describe("The user who created this Field."),
@@ -20944,12 +20946,12 @@ g.array(Le), g.object({
20944
20946
  next: g.boolean().optional(),
20945
20947
  page: g.int().optional().describe("Page number of partial result dataset records.")
20946
20948
  }).describe("LabelsData\nNOTE: Edge represents connection between two nodes.\nSo this ContactLabels.data are always subordinate to some contact.id."), g.object({ contact_id: g.string().describe("Contact ID associated with.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result.") });
20947
- var Re = g.object({
20949
+ var ze = g.object({
20948
20950
  etag: g.string().describe("Unique ID of the latest version of an existing association."),
20949
20951
  primary: g.boolean().optional().describe("Indicates whether this association must be default\namong others of the same type."),
20950
20952
  tag: g.string().optional()
20951
20953
  }).describe("An input of the Contact's language.");
20952
- g.array(Re), g.object({
20954
+ g.array(ze), g.object({
20953
20955
  data: g.array(g.object({
20954
20956
  code: g.string().optional(),
20955
20957
  createdAt: g.string().optional().describe("The user who created this Field."),
@@ -22743,7 +22745,7 @@ g.array(Re), g.object({
22743
22745
  fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result."),
22744
22746
  etag: g.array(g.string()).describe("Set of unique ID(s) to remove.")
22745
22747
  });
22746
- var ze = g.object({
22748
+ var Be = g.object({
22747
22749
  createdAt: g.string().optional().describe("The user who created this Field."),
22748
22750
  createdBy: g.object({
22749
22751
  id: g.string().optional().describe("Reference Object unique ID."),
@@ -22766,7 +22768,7 @@ var ze = g.object({
22766
22768
  }).optional().describe("Responsible User."),
22767
22769
  ver: g.int().optional().describe("Version of the latest update. Numeric sequence.")
22768
22770
  }).describe("Manager. The Contact's responsible User.");
22769
- g.array(ze), g.object({ contact_id: g.string().describe("Contact ID associated with.") }), g.object({
22771
+ g.array(Be), g.object({ contact_id: g.string().describe("Contact ID associated with.") }), g.object({
22770
22772
  page: g.int().optional().describe("Page number of result. offset = ((page-1)*size)"),
22771
22773
  size: g.int().optional().describe("Size of result page. limit = (size++)"),
22772
22774
  q: g.string().optional().describe("Search term: user name;\n`?` - matches any one character\n`*` - matches 0 or more characters"),
@@ -22800,7 +22802,7 @@ g.array(ze), g.object({ contact_id: g.string().describe("Contact ID associated w
22800
22802
  next: g.boolean().optional(),
22801
22803
  page: g.int().optional().describe("The page number of the partial result.")
22802
22804
  }).describe("Manager dataset."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result.") });
22803
- var Be = g.object({
22805
+ var Ve = g.object({
22804
22806
  etag: g.string().describe("Unique ID of the latest version of an existing resource."),
22805
22807
  primary: g.boolean().optional().describe("Indicates whether this association must be default among others."),
22806
22808
  user: g.object({
@@ -22809,7 +22811,7 @@ var Be = g.object({
22809
22811
  type: g.string().optional().describe("Reference Object well-known type.")
22810
22812
  }).optional().describe("Responsible User.")
22811
22813
  });
22812
- g.array(Be), g.object({
22814
+ g.array(Ve), g.object({
22813
22815
  data: g.array(g.object({
22814
22816
  createdAt: g.string().optional().describe("The user who created this Field."),
22815
22817
  createdBy: g.object({
@@ -22836,7 +22838,7 @@ g.array(Be), g.object({
22836
22838
  next: g.boolean().optional(),
22837
22839
  page: g.int().optional().describe("The page number of the partial result.")
22838
22840
  }).describe("Manager dataset."), g.object({ contact_id: g.string().describe("Contact ID associated with.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result.") });
22839
- var Ve = g.object({
22841
+ var He = g.object({
22840
22842
  etag: g.string().describe("Unique ID of the latest version of an existing resource."),
22841
22843
  primary: g.boolean().optional().describe("Indicates whether this association must be default among others."),
22842
22844
  user: g.object({
@@ -22845,7 +22847,7 @@ var Ve = g.object({
22845
22847
  type: g.string().optional().describe("Reference Object well-known type.")
22846
22848
  }).optional().describe("Responsible User.")
22847
22849
  });
22848
- g.array(Ve), g.object({
22850
+ g.array(He), g.object({
22849
22851
  data: g.array(g.object({
22850
22852
  createdAt: g.string().optional().describe("The user who created this Field."),
22851
22853
  createdBy: g.object({
@@ -24210,7 +24212,7 @@ g.array(Ve), g.object({
24210
24212
  }), g.object({ status: g.string().optional() });
24211
24213
  //#endregion
24212
24214
  //#region packages/api-services/src/gen/messages/messages.ts
24213
- var He = (e = h) => ({
24215
+ var Ue = (e = h) => ({
24214
24216
  messagesServiceBroadcastMessage: (t, n) => e.post("/chat/broadcast", t, n),
24215
24217
  catalogGetCustomers: (t, n) => e.get("/chat/customers", {
24216
24218
  ...n,
@@ -24852,7 +24854,7 @@ g.object({
24852
24854
  next: g.boolean().optional(),
24853
24855
  page: g.int().optional()
24854
24856
  });
24855
- var Ue = g.object({
24857
+ var We = g.object({
24856
24858
  authUrl: g.string().optional(),
24857
24859
  claims: g.array(g.object({
24858
24860
  type: g.string().optional(),
@@ -26099,7 +26101,7 @@ g.object({
26099
26101
  next: g.boolean().optional(),
26100
26102
  page: g.int().optional().describe("The page number of the partial result.")
26101
26103
  }).describe("PhoneNumber dataset."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
26102
- var We = g.object({
26104
+ var Ge = g.object({
26103
26105
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
26104
26106
  number: g.string().describe("The phone number."),
26105
26107
  primary: g.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
@@ -26110,7 +26112,7 @@ var We = g.object({
26110
26112
  }).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
26111
26113
  verified: g.boolean().optional()
26112
26114
  }).describe("Input of the contact phone number.");
26113
- g.array(We), g.object({
26115
+ g.array(Ge), g.object({
26114
26116
  data: g.array(g.object({
26115
26117
  createdAt: g.string().optional().describe("The user who created this Field."),
26116
26118
  createdBy: g.object({
@@ -26139,7 +26141,7 @@ g.array(We), g.object({
26139
26141
  next: g.boolean().optional(),
26140
26142
  page: g.int().optional().describe("The page number of the partial result.")
26141
26143
  }).describe("PhoneNumber dataset."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
26142
- var Ge = g.object({
26144
+ var Ke = g.object({
26143
26145
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
26144
26146
  number: g.string().describe("The phone number."),
26145
26147
  primary: g.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
@@ -26150,7 +26152,7 @@ var Ge = g.object({
26150
26152
  }).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
26151
26153
  verified: g.boolean().optional()
26152
26154
  }).describe("Input of the contact phone number.");
26153
- g.array(Ge), g.object({
26155
+ g.array(Ke), g.object({
26154
26156
  data: g.array(g.object({
26155
26157
  createdAt: g.string().optional().describe("The user who created this Field."),
26156
26158
  createdBy: g.object({
@@ -26275,7 +26277,8 @@ g.array(Ge), g.object({
26275
26277
  }).describe("PhoneNumber dataset."), g.object({
26276
26278
  contact_id: g.string().describe("The Contact ID to be associated with."),
26277
26279
  etag: g.string().describe("Unique ID of the latest version of an existing resorce.")
26278
- }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") }), g.object({
26280
+ }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
26281
+ var qe = g.object({
26279
26282
  number: g.string().describe("The phone number."),
26280
26283
  primary: g.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
26281
26284
  type: g.object({
@@ -26284,7 +26287,8 @@ g.array(Ge), g.object({
26284
26287
  type: g.string().optional().describe("Reference Object well-known type.")
26285
26288
  }).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
26286
26289
  verified: g.boolean().optional()
26287
- }), g.object({
26290
+ });
26291
+ g.object({
26288
26292
  data: g.array(g.object({
26289
26293
  createdAt: g.string().optional().describe("The user who created this Field."),
26290
26294
  createdBy: g.object({
@@ -26370,13 +26374,13 @@ g.array(Ge), g.object({
26370
26374
  next: g.boolean().optional(),
26371
26375
  page: g.int().optional().describe("The page number of the partial result.")
26372
26376
  }).describe("Photo dataset."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
26373
- var Ke = g.object({
26377
+ var Je = g.object({
26374
26378
  etag: g.string().optional().describe("Unique ID of the latest version of an existing association."),
26375
26379
  photoId: g.string().optional(),
26376
26380
  photoUrl: g.string().optional(),
26377
26381
  primary: g.boolean().optional().describe("True if the photo is a default photo; false if the photo is a user-provided photo.")
26378
26382
  }).describe("Input of the photo.");
26379
- g.array(Ke), g.object({
26383
+ g.array(Je), g.object({
26380
26384
  data: g.array(g.object({
26381
26385
  createdAt: g.string().optional().describe("The user who created this Field."),
26382
26386
  createdBy: g.object({
@@ -26400,13 +26404,13 @@ g.array(Ke), g.object({
26400
26404
  next: g.boolean().optional(),
26401
26405
  page: g.int().optional().describe("The page number of the partial result.")
26402
26406
  }).describe("Photo dataset."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
26403
- var qe = g.object({
26407
+ var Ye = g.object({
26404
26408
  etag: g.string().optional().describe("Unique ID of the latest version of an existing association."),
26405
26409
  photoId: g.string().optional(),
26406
26410
  photoUrl: g.string().optional(),
26407
26411
  primary: g.boolean().optional().describe("True if the photo is a default photo; false if the photo is a user-provided photo.")
26408
26412
  }).describe("Input of the photo.");
26409
- g.array(qe), g.object({
26413
+ g.array(Ye), g.object({
26410
26414
  data: g.array(g.object({
26411
26415
  createdAt: g.string().optional().describe("The user who created this Field."),
26412
26416
  createdBy: g.object({
@@ -30985,13 +30989,13 @@ g.array(qe), g.object({
30985
30989
  next: g.boolean().optional(),
30986
30990
  page: g.int().optional().describe("The page number of the partial result.")
30987
30991
  }), g.object({ fields: g.array(g.string()).optional().describe("Source Fields to return into result.") });
30988
- var Je = g.object({
30992
+ var Xe = g.object({
30989
30993
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
30990
30994
  homePage: g.string().optional().describe("BIO. Short description about the space.\nOPTIONAL. Multi-lined text."),
30991
30995
  name: g.string().optional().describe("Represents the name of the knowledge base space."),
30992
30996
  state: g.boolean().optional().describe("The state of the space.")
30993
30997
  }).describe("The Space principal input.");
30994
- g.array(Je), g.object({
30998
+ g.array(Xe), g.object({
30995
30999
  createdAt: g.string().optional().describe("The timestamp when the space was created (in Unix time)."),
30996
31000
  createdBy: g.object({
30997
31001
  id: g.string().optional().describe("Reference Object unique ID."),
@@ -32024,7 +32028,7 @@ g.array(Je), g.object({
32024
32028
  next: g.boolean().optional(),
32025
32029
  page: g.int().optional().describe("The page number of the partial result.")
32026
32030
  }).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result.") });
32027
- var Ye = g.object({
32031
+ var Ze = g.object({
32028
32032
  etag: g.string().describe("Unique ID of the latest version of an existing resource."),
32029
32033
  primary: g.boolean().optional().describe("Indicates whether this association must be default among others."),
32030
32034
  timezone: g.object({
@@ -32033,7 +32037,7 @@ var Ye = g.object({
32033
32037
  type: g.string().optional().describe("Reference Object well-known type.")
32034
32038
  }).optional().describe("Timezone dictionary reference value associated.")
32035
32039
  }).describe("An input of the Contact's timezones.");
32036
- g.array(Ye), g.object({
32040
+ g.array(Ze), g.object({
32037
32041
  data: g.array(g.object({
32038
32042
  createdAt: g.string().optional().describe("The user who created this Field."),
32039
32043
  createdBy: g.object({
@@ -32060,7 +32064,7 @@ g.array(Ye), g.object({
32060
32064
  next: g.boolean().optional(),
32061
32065
  page: g.int().optional().describe("The page number of the partial result.")
32062
32066
  }).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
32063
- var Xe = g.object({
32067
+ var Qe = g.object({
32064
32068
  etag: g.string().describe("Unique ID of the latest version of an existing resource."),
32065
32069
  primary: g.boolean().optional().describe("Indicates whether this association must be default among others."),
32066
32070
  timezone: g.object({
@@ -32069,7 +32073,7 @@ var Xe = g.object({
32069
32073
  type: g.string().optional().describe("Reference Object well-known type.")
32070
32074
  }).optional().describe("Timezone dictionary reference value associated.")
32071
32075
  }).describe("An input of the Contact's timezones.");
32072
- g.array(Xe), g.object({
32076
+ g.array(Qe), g.object({
32073
32077
  data: g.array(g.object({
32074
32078
  createdAt: g.string().optional().describe("The user who created this Field."),
32075
32079
  createdBy: g.object({
@@ -33306,8 +33310,8 @@ g.array(Xe), g.object({
33306
33310
  id: g.string().optional().describe("ONE /users/{id}"),
33307
33311
  permanent: g.boolean().optional()
33308
33312
  });
33309
- var Ze = g.string();
33310
- g.array(Ze), g.object({ deleted: g.array(g.object({
33313
+ var $e = g.string();
33314
+ g.array($e), g.object({ deleted: g.array(g.object({
33311
33315
  chatName: g.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."),
33312
33316
  contact: g.object({
33313
33317
  id: g.string().optional(),
@@ -34190,12 +34194,12 @@ g.array(Ze), g.object({ deleted: g.array(g.object({
34190
34194
  next: g.boolean().optional(),
34191
34195
  page: g.int().optional().describe("The page number of the partial result.")
34192
34196
  }).describe("Variable dataset."), g.object({ contact_id: g.string().describe("Link contact ID.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved as a result.") });
34193
- var Qe = g.object({
34197
+ var et = g.object({
34194
34198
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
34195
34199
  key: g.string().regex(/^\w+$/).describe("NEW Key."),
34196
34200
  value: g.unknown().optional().describe("NEW Value.")
34197
34201
  }).describe("Input of the Contact's variable.");
34198
- g.array(Qe), g.object({
34202
+ g.array(et), g.object({
34199
34203
  data: g.array(g.object({
34200
34204
  createdAt: g.string().optional().describe("The user who created this Field."),
34201
34205
  createdBy: g.object({
@@ -34218,12 +34222,12 @@ g.array(Qe), g.object({
34218
34222
  next: g.boolean().optional(),
34219
34223
  page: g.int().optional().describe("The page number of the partial result.")
34220
34224
  }).describe("Variable dataset."), g.object({ contact_id: g.string().describe("Contact ID associated with.") }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
34221
- var $e = g.object({
34225
+ var tt = g.object({
34222
34226
  etag: g.string().optional().describe("Unique ID of the latest version of an existing resorce."),
34223
34227
  key: g.string().regex(/^\w+$/).describe("NEW Key."),
34224
34228
  value: g.unknown().optional().describe("NEW Value.")
34225
34229
  }).describe("Input of the Contact's variable.");
34226
- g.array($e), g.object({
34230
+ g.array(tt), g.object({
34227
34231
  data: g.array(g.object({
34228
34232
  createdAt: g.string().optional().describe("The user who created this Field."),
34229
34233
  createdBy: g.object({
@@ -34297,10 +34301,12 @@ g.array($e), g.object({
34297
34301
  }).describe("Variable dataset."), g.object({
34298
34302
  contact_id: g.string().describe("Contact ID associated with."),
34299
34303
  etag: g.string().describe("Unique ID of the latest version of an existing resorce.")
34300
- }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") }), g.object({
34304
+ }), g.object({ fields: g.array(g.string()).optional().describe("Fields to be retrieved into result of changes.") });
34305
+ var nt = g.object({
34301
34306
  key: g.string().regex(/^\w+$/).describe("NEW Key."),
34302
34307
  value: g.unknown().optional().describe("NEW Value.")
34303
- }), g.object({
34308
+ });
34309
+ g.object({
34304
34310
  data: g.array(g.object({
34305
34311
  createdAt: g.string().optional().describe("The user who created this Field."),
34306
34312
  createdBy: g.object({
@@ -38492,10 +38498,10 @@ g.array($e), g.object({
38492
38498
  }).optional() });
38493
38499
  //#endregion
38494
38500
  //#region packages/api-services/src/api/clients/agents/agents.ts
38495
- var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38501
+ var rt = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), it = async (e) => {
38496
38502
  let t = (e) => e.map((e) => ({
38497
38503
  ...e,
38498
- statusDuration: et(e.statusDuration)
38504
+ statusDuration: rt(e.statusDuration)
38499
38505
  })), n = U(e, [
38500
38506
  W(),
38501
38507
  G(b()),
@@ -38534,7 +38540,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38534
38540
  } catch (e) {
38535
38541
  throw U(e, [K]);
38536
38542
  }
38537
- }, nt = async ({ itemId: e }) => {
38543
+ }, at = async ({ itemId: e }) => {
38538
38544
  let t = {
38539
38545
  user: {},
38540
38546
  team: {},
@@ -38553,7 +38559,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38553
38559
  } catch (e) {
38554
38560
  throw U(e, [K]);
38555
38561
  }
38556
- }, rt = [
38562
+ }, ot = [
38557
38563
  "user",
38558
38564
  "team",
38559
38565
  "supervisor",
@@ -38564,11 +38570,11 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38564
38570
  "chatCount",
38565
38571
  "taskCount",
38566
38572
  "isSupervisor"
38567
- ], it = {
38568
- getList: tt,
38569
- get: nt,
38573
+ ], st = {
38574
+ getList: it,
38575
+ get: at,
38570
38576
  add: async ({ itemInstance: e }) => {
38571
- let t = U(e, [q(rt), W()]);
38577
+ let t = U(e, [q(ot), W()]);
38572
38578
  try {
38573
38579
  return U((await Y().createAgent(t)).data, [J()]);
38574
38580
  } catch (e) {
@@ -38576,7 +38582,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38576
38582
  }
38577
38583
  },
38578
38584
  patch: async ({ changes: e, id: t }) => {
38579
- let n = U(e, [q(rt), W()]);
38585
+ let n = U(e, [q(ot), W()]);
38580
38586
  try {
38581
38587
  return U((await Y().patchAgent(String(t), n)).data, [J()]);
38582
38588
  } catch (e) {
@@ -38584,7 +38590,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38584
38590
  }
38585
38591
  },
38586
38592
  update: async ({ itemInstance: e, itemId: t }) => {
38587
- let n = U(e, [q(rt), W()]);
38593
+ let n = U(e, [q(ot), W()]);
38588
38594
  try {
38589
38595
  return U((await Y().updateAgent(String(t), n)).data, [J()]);
38590
38596
  } catch (e) {
@@ -38598,7 +38604,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38598
38604
  throw U(e, [K]);
38599
38605
  }
38600
38606
  },
38601
- getLookup: (e) => tt({
38607
+ getLookup: (e) => it({
38602
38608
  ...e,
38603
38609
  fields: e.fields || ["id", "name"]
38604
38610
  }),
@@ -38622,7 +38628,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38622
38628
  throw U(e, [K]);
38623
38629
  }
38624
38630
  },
38625
- getRegularAgentsOptions: async (e) => tt({
38631
+ getRegularAgentsOptions: async (e) => it({
38626
38632
  ...e,
38627
38633
  isNotSupervisor: !0
38628
38634
  }),
@@ -38642,7 +38648,7 @@ var et = (e) => e > 3600 * 24 ? ">24:00:00" : c(e), tt = async (e) => {
38642
38648
  throw U(e, [K]);
38643
38649
  }
38644
38650
  },
38645
- getSupervisorOptions: async (e) => tt({
38651
+ getSupervisorOptions: async (e) => it({
38646
38652
  ...e,
38647
38653
  isSupervisor: !0
38648
38654
  }),
@@ -38681,12 +38687,12 @@ V(), H(), { ...Ce("/calendars") }, V(), H(), V(), H(), V(), H(), V(), H(), Objec
38681
38687
  TELEGRAM: "telegram",
38682
38688
  MESSENGER: "messenger",
38683
38689
  EMAIL: "email"
38684
- }), V(), V(), H(), V(), H(), v(Pe), { ...Ce("/contacts/groups") }, v(Ae), v(je), V(), H(), V(), V(), H(), V(), H(), V(), H(), V(), H(), localStorage.getItem("access-token"), i.create({ headers: { "content-type": "multipart/form-data" } });
38685
- var at = {
38690
+ }), V(), V(), H(), V(), H(), v(Fe), { ...Ce("/contacts/groups") }, v(Ae), v(je), v(Me), v(Pe), V(), H(), V(), V(), H(), V(), H(), V(), H(), V(), H(), localStorage.getItem("access-token"), i.create({ headers: { "content-type": "multipart/form-data" } });
38691
+ var ct = {
38686
38692
  patch: async (e) => {
38687
38693
  let t = U(e, [W()]);
38688
38694
  try {
38689
- return U((await He().messagesServiceBroadcastMessage(t)).data, [J()]);
38695
+ return U((await Ue().messagesServiceBroadcastMessage(t)).data, [J()]);
38690
38696
  } catch (e) {
38691
38697
  throw U(e, [K]);
38692
38698
  }
@@ -38694,7 +38700,7 @@ var at = {
38694
38700
  getChatHistory: async ({ chatId: e, ...t }) => {
38695
38701
  let n = U(t, [G(x()), W()]);
38696
38702
  try {
38697
- let { messages: t, peers: r, next: i } = U((await He().catalogGetHistory(String(e), n)).data, [J(), G(b())]);
38703
+ let { messages: t, peers: r, next: i } = U((await Ue().catalogGetHistory(String(e), n)).data, [J(), G(b())]);
38698
38704
  return {
38699
38705
  messages: t,
38700
38706
  peers: r,
@@ -38705,10 +38711,10 @@ var at = {
38705
38711
  }
38706
38712
  }
38707
38713
  };
38708
- v(Ue), { ...Ce("/oauth/apps") }, V(), H();
38714
+ v(We), { ...Ce("/oauth/apps") }, V(), H(), v(Ge), v(qe);
38709
38715
  //#endregion
38710
38716
  //#region packages/api-services/src/validations/_shared/duration.validations.ts
38711
- var ot = (e = 1) => _.union([_.string().min(e), _.number().min(e)]), X = (e) => ({ params: { i18nKey: e } }), st = (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, Z = _.object({
38717
+ var lt = (e = 1) => _.union([_.string().min(e), _.number().min(e)]), X = (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, Z = _.object({
38712
38718
  id: _.string().optional(),
38713
38719
  name: _.string().optional()
38714
38720
  }), Q = _.object({
@@ -38717,7 +38723,7 @@ var ot = (e = 1) => _.union([_.string().min(e), _.number().min(e)]), X = (e) =>
38717
38723
  }), $ = _.object({
38718
38724
  id: _.union([_.string(), _.number()]).optional(),
38719
38725
  name: _.string().optional()
38720
- }), ct = $.refine((e) => st(e), X("required")), lt = _.object({
38726
+ }), dt = $.refine((e) => ut(e), X("required")), ft = _.object({
38721
38727
  key: _.string(),
38722
38728
  value: _.string()
38723
38729
  });
@@ -38733,7 +38739,7 @@ _.object({
38733
38739
  });
38734
38740
  //#endregion
38735
38741
  //#region packages/api-services/src/validations/calendar/calendar.validations.ts
38736
- var ut = "hourRange", dt = "timerangeStartLessThanEnd", ft = "timerangeNotIntersect", pt = _.number().int().refine((e) => e >= 0 && e < 1440, X(ut)), mt = (e) => {
38742
+ var pt = "hourRange", mt = "timerangeStartLessThanEnd", ht = "timerangeNotIntersect", gt = _.number().int().refine((e) => e >= 0 && e < 1440, X(pt)), _t = (e) => {
38737
38743
  let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
38738
38744
  return e.forEach((e, t) => {
38739
38745
  let r = n.get(e.day) ?? [];
@@ -38751,40 +38757,40 @@ var ut = "hourRange", dt = "timerangeStartLessThanEnd", ft = "timerangeNotInters
38751
38757
  });
38752
38758
  });
38753
38759
  }), t;
38754
- }, ht = _.object({
38760
+ }, vt = _.object({
38755
38761
  day: _.number().int().min(0).max(6),
38756
38762
  disabled: _.boolean().default(!1),
38757
- start: pt,
38758
- end: pt
38763
+ start: gt,
38764
+ end: gt
38759
38765
  }).superRefine((e, t) => {
38760
38766
  e.start >= e.end && (t.addIssue({
38761
38767
  code: "custom",
38762
38768
  path: ["start"],
38763
- ...X(dt)
38769
+ ...X(mt)
38764
38770
  }), t.addIssue({
38765
38771
  code: "custom",
38766
38772
  path: ["end"],
38767
- ...X(dt)
38773
+ ...X(mt)
38768
38774
  }));
38769
- }), gt = _.array(ht).superRefine((e, t) => {
38770
- mt(e).forEach((e) => {
38775
+ }), yt = _.array(vt).superRefine((e, t) => {
38776
+ _t(e).forEach((e) => {
38771
38777
  t.addIssue({
38772
38778
  code: "custom",
38773
38779
  path: [e, "start"],
38774
- ...X(ft)
38780
+ ...X(ht)
38775
38781
  }), t.addIssue({
38776
38782
  code: "custom",
38777
38783
  path: [e, "end"],
38778
- ...X(ft)
38784
+ ...X(ht)
38779
38785
  });
38780
38786
  });
38781
- }), _t = _.object({
38787
+ }), bt = _.object({
38782
38788
  name: _.string().optional(),
38783
38789
  date: _.union([_.number(), _.string()]).optional(),
38784
38790
  repeat: _.boolean().optional(),
38785
38791
  working: _.boolean().optional(),
38786
- workStart: pt.nullish(),
38787
- workStop: pt.nullish()
38792
+ workStart: gt.nullish(),
38793
+ workStop: gt.nullish()
38788
38794
  });
38789
38795
  _.object({
38790
38796
  name: _.string().min(1),
@@ -38793,19 +38799,19 @@ _.object({
38793
38799
  startAt: _.any().optional(),
38794
38800
  endAt: _.any().optional(),
38795
38801
  expires: _.boolean().optional().default(!1),
38796
- accepts: gt.default(() => Array.from({ length: 7 }, (e, t) => ({
38802
+ accepts: yt.default(() => Array.from({ length: 7 }, (e, t) => ({
38797
38803
  day: t,
38798
38804
  disabled: !1,
38799
38805
  start: 540,
38800
38806
  end: 1200
38801
38807
  }))),
38802
- specials: _.array(ht).default(() => Array.from({ length: 7 }, (e, t) => ({
38808
+ specials: _.array(vt).default(() => Array.from({ length: 7 }, (e, t) => ({
38803
38809
  day: t,
38804
38810
  disabled: !0,
38805
38811
  start: 540,
38806
38812
  end: 1200
38807
38813
  }))),
38808
- excepts: _.array(_t).optional().default([])
38814
+ excepts: _.array(bt).optional().default([])
38809
38815
  }), _.object({
38810
38816
  name: _.string().min(1),
38811
38817
  description: _.string().optional()
@@ -38847,25 +38853,41 @@ _.object({
38847
38853
  }), _.object({
38848
38854
  name: _.string().min(1),
38849
38855
  description: _.string().optional()
38856
+ }), _.object({
38857
+ name: _.string().optional(),
38858
+ timezones: _.array(_.any()).optional(),
38859
+ managers: _.array(_.any()).optional(),
38860
+ groups: _.array(_.any()).optional(),
38861
+ labels: _.array(_.any()).optional(),
38862
+ about: _.string().nullish(),
38863
+ user: _.any().nullish()
38864
+ }), _.object({
38865
+ email: _.string().min(1).email(),
38866
+ type: _.any(),
38867
+ primary: _.boolean().optional()
38850
38868
  });
38851
38869
  //#endregion
38852
38870
  //#region packages/api-services/src/validations/contactGroup/contactGroup.validations.ts
38853
- var vt = {
38871
+ var xt = {
38854
38872
  name: _.string().min(1),
38855
38873
  description: _.string().optional(),
38856
38874
  enabled: _.boolean().optional(),
38857
38875
  type: _.string().optional()
38858
- }, yt = _.object({
38859
- ...vt,
38876
+ }, St = _.object({
38877
+ ...xt,
38860
38878
  defaultGroup: Z.optional()
38861
- }), bt = _.object({
38862
- ...vt,
38879
+ }), Ct = _.object({
38880
+ ...xt,
38863
38881
  defaultGroup: Q
38864
38882
  });
38865
- _.discriminatedUnion("type", [yt.extend({ type: _.literal(y.Static) }), bt.extend({ type: _.literal(y.Dynamic) })]), _.object({
38883
+ _.discriminatedUnion("type", [St.extend({ type: _.literal(y.Static) }), Ct.extend({ type: _.literal(y.Dynamic) })]), _.object({
38866
38884
  expression: _.string().min(1),
38867
38885
  group: Q,
38868
38886
  assignee: Z.optional()
38887
+ }), _.object({
38888
+ number: _.string().min(1),
38889
+ type: _.any(),
38890
+ primary: _.boolean().optional()
38869
38891
  }), _.object({
38870
38892
  name: _.string().min(1),
38871
38893
  type: _.string().min(1),
@@ -38885,13 +38907,13 @@ _.discriminatedUnion("type", [yt.extend({ type: _.literal(y.Static) }), bt.exten
38885
38907
  });
38886
38908
  //#endregion
38887
38909
  //#region packages/api-services/src/validations/queue/queue.rules.ts
38888
- var xt = {
38910
+ var wt = {
38889
38911
  required: ["name"],
38890
38912
  minValue: {
38891
38913
  priority: 0,
38892
38914
  "payload.minOnlineAgents": 0
38893
38915
  }
38894
- }, St = {
38916
+ }, Tt = {
38895
38917
  [l.OFFLINE_QUEUE]: {
38896
38918
  required: [
38897
38919
  "strategy",
@@ -39016,7 +39038,7 @@ var xt = {
39016
39038
  "payload.minDuration": 0
39017
39039
  }
39018
39040
  }
39019
- }, Ct = _.object({
39041
+ }, Et = _.object({
39020
39042
  enabled: _.boolean().optional(),
39021
39043
  ai: _.boolean().optional(),
39022
39044
  positive: _.array(_.string()).optional(),
@@ -39032,7 +39054,7 @@ var xt = {
39032
39054
  afterGreetingSilence: _.number().optional(),
39033
39055
  greeting: _.number().optional(),
39034
39056
  initialSilence: _.number().optional()
39035
- }), wt = _.object({
39057
+ }), Dt = _.object({
39036
39058
  maxAttempts: _.number().optional(),
39037
39059
  minAttempts: _.number().optional(),
39038
39060
  originateTimeout: _.number().optional(),
@@ -39073,19 +39095,19 @@ var xt = {
39073
39095
  recordAll: _.boolean().optional(),
39074
39096
  allowGreetingAgent: _.boolean().optional(),
39075
39097
  autoAnswerTone: _.string().nullable().optional(),
39076
- amd: Ct.optional()
39077
- }), Tt = _.object({
39098
+ amd: Et.optional()
39099
+ }), Ot = _.object({
39078
39100
  enabled: _.boolean().optional(),
39079
39101
  isTimeoutRetry: _.boolean().optional(),
39080
39102
  prolongationTimeSec: _.number().optional(),
39081
39103
  repeatsNumber: _.number().optional()
39082
- }), Et = _.object({
39104
+ }), kt = _.object({
39083
39105
  enabled: _.boolean().optional(),
39084
39106
  formSchema: $.optional(),
39085
39107
  sec: _.number().optional(),
39086
39108
  renewalSec: _.number().optional(),
39087
- prolongationOptions: Tt.prefault({})
39088
- }), Dt = _.object({
39109
+ prolongationOptions: Ot.prefault({})
39110
+ }), At = _.object({
39089
39111
  name: _.string().min(1),
39090
39112
  description: _.string().optional(),
39091
39113
  type: _.number(),
@@ -39103,13 +39125,13 @@ var xt = {
39103
39125
  formSchema: $.optional(),
39104
39126
  strategy: _.string().optional(),
39105
39127
  stickyAgent: _.boolean().optional(),
39106
- taskProcessing: Et.optional(),
39107
- payload: wt.optional(),
39108
- variables: _.array(lt).optional()
39128
+ taskProcessing: kt.optional(),
39129
+ payload: Dt.optional(),
39130
+ variables: _.array(ft).optional()
39109
39131
  }).superRefine((e, t) => {
39110
- let n = [xt, St[Number(e.type)] ?? {}];
39132
+ let n = [wt, Tt[Number(e.type)] ?? {}];
39111
39133
  for (let r of n) {
39112
- for (let n of r.required ?? []) st(p(e, n)) || t.addIssue({
39134
+ for (let n of r.required ?? []) ut(p(e, n)) || t.addIssue({
39113
39135
  code: "custom",
39114
39136
  path: n.split("."),
39115
39137
  ...X("required")
@@ -39123,26 +39145,26 @@ var xt = {
39123
39145
  });
39124
39146
  }
39125
39147
  }
39126
- }), Ot = _.object({
39127
- bucket: ct,
39148
+ }), jt = _.object({
39149
+ bucket: dt,
39128
39150
  priority: _.number().min(0),
39129
39151
  disabled: _.boolean().optional()
39130
- }), kt = _.object({
39152
+ }), Mt = _.object({
39131
39153
  event: _.string().min(1),
39132
- schema: ct,
39154
+ schema: dt,
39133
39155
  properties: _.array(_.string()).optional(),
39134
39156
  enabled: _.boolean().optional()
39135
- }), At = _.object({
39157
+ }), Nt = _.object({
39136
39158
  destination: _.string().min(1),
39137
- type: ct,
39159
+ type: dt,
39138
39160
  dtmf: _.string().regex(/^[\d|w|W]*$/).optional(),
39139
39161
  display: _.string().optional(),
39140
39162
  priority: _.number().optional(),
39141
39163
  resource: $.optional(),
39142
39164
  description: _.string().optional()
39143
- }), jt = _.object({
39165
+ }), Pt = _.object({
39144
39166
  name: _.string().min(1),
39145
- communications: _.array(At).min(1),
39167
+ communications: _.array(Nt).min(1),
39146
39168
  priority: _.number().optional(),
39147
39169
  bucket: $.optional(),
39148
39170
  timezone: $.optional(),
@@ -39150,12 +39172,12 @@ var xt = {
39150
39172
  expireAt: _.union([_.string(), _.number()]).optional(),
39151
39173
  minOfferingAt: _.union([_.string(), _.number()]).optional(),
39152
39174
  stopCause: _.string().optional(),
39153
- variables: _.array(lt).optional()
39154
- }), Mt = _.object({
39155
- resourceGroup: ct,
39175
+ variables: _.array(ft).optional()
39176
+ }), Ft = _.object({
39177
+ resourceGroup: dt,
39156
39178
  communication: $.optional()
39157
- }), Nt = _.object({
39158
- skill: ct,
39179
+ }), It = _.object({
39180
+ skill: dt,
39159
39181
  lvl: _.number().min(0).max(1e3),
39160
39182
  minCapacity: _.number().min(0).max(100).optional(),
39161
39183
  maxCapacity: _.number().min(0).max(100).optional(),
@@ -39171,19 +39193,19 @@ var xt = {
39171
39193
  path: ["maxCapacity"],
39172
39194
  message: "Value must be greater than or equal to the minimum capacity"
39173
39195
  }));
39174
- }), Pt = 6e4;
39196
+ }), Lt = 6e4;
39175
39197
  _.object({
39176
39198
  name: _.string().min(1),
39177
39199
  description: _.string().optional(),
39178
39200
  calendar: Q,
39179
- reactionTime: ot(),
39180
- resolutionTime: ot(),
39201
+ reactionTime: lt(),
39202
+ resolutionTime: lt(),
39181
39203
  validFrom: _.union([_.string(), _.number()]).nullish(),
39182
39204
  validTo: _.union([_.string(), _.number()]).nullish()
39183
39205
  }).superRefine((e, t) => {
39184
39206
  if (!e.validFrom || !e.validTo) return;
39185
39207
  let n = Number(e.validFrom), r = Number(e.validTo);
39186
- Number.isNaN(n) || Number.isNaN(r) || n > r - Pt && t.addIssue({
39208
+ Number.isNaN(n) || Number.isNaN(r) || n > r - Lt && t.addIssue({
39187
39209
  code: "too_big",
39188
39210
  origin: "date",
39189
39211
  maximum: r,
@@ -39194,12 +39216,15 @@ _.object({
39194
39216
  }), _.object({
39195
39217
  name: _.string().min(1),
39196
39218
  priorities: _.array(Q).min(1),
39197
- reactionTime: ot(),
39198
- resolutionTime: ot()
39199
- }), [...v(Ot)], [...v(kt)], [...v(jt)], [...v(Mt)], [...v(Nt)], 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, v(Dt), { ...Ce("/call_center/queues") }, V(), H(), V(), H(), V(), H(), V(), H(), V(), { ...Ce("/users") }, V();
39219
+ reactionTime: lt(),
39220
+ resolutionTime: lt()
39221
+ }), _.object({
39222
+ key: _.string().min(1),
39223
+ value: _.string().min(1)
39224
+ }), [...v(jt)], [...v(Mt)], [...v(Pt)], [...v(Ft)], [...v(It)], 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, v(At), { ...Ce("/call_center/queues") }, V(), H(), V(), H(), V(), H(), V(), H(), V(), { ...Ce("/users") }, v(et), v(nt), V();
39200
39225
  //#endregion
39201
39226
  //#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
39202
- var Ft = V(), It = async ({ path: e, display: t, primary: n, ...r }) => {
39227
+ var Rt = V(), zt = async ({ path: e, display: t, primary: n, ...r }) => {
39203
39228
  let i = U(r, [
39204
39229
  G(x()),
39205
39230
  be("search"),
@@ -39224,7 +39249,7 @@ var Ft = V(), It = async ({ path: e, display: t, primary: n, ...r }) => {
39224
39249
  he(e)
39225
39250
  ]);
39226
39251
  try {
39227
- let { data: e, items: t, next: n } = U((await Ft.get(i)).data, [G(b())]);
39252
+ let { data: e, items: t, next: n } = U((await Rt.get(i)).data, [G(b())]);
39228
39253
  return {
39229
39254
  items: U(e || t, []) ?? [],
39230
39255
  next: n
@@ -39232,9 +39257,9 @@ var Ft = V(), It = async ({ path: e, display: t, primary: n, ...r }) => {
39232
39257
  } catch (e) {
39233
39258
  throw U(e, [K]);
39234
39259
  }
39235
- }, Lt = {
39236
- getList: It,
39237
- getLookup: (e) => It({
39260
+ }, Bt = {
39261
+ getList: zt,
39262
+ getLookup: (e) => zt({
39238
39263
  ...e,
39239
39264
  fields: e.fields || ["id", "name"]
39240
39265
  })
@@ -39247,4 +39272,4 @@ V(), H(), V(), H(), Object.freeze({
39247
39272
  DESTINATION: "destination"
39248
39273
  }), V(), H(), { ...Ce("/contacts") };
39249
39274
  //#endregion
39250
- export { at as n, it as r, Lt as t };
39275
+ export { ct as n, st as r, Bt as t };