@wisemen/wise-crm-web 2.0.0-alpha.2 → 2.0.0-alpha.20
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/{BusinessDetailView-GmdtU7Ea.js → BusinessDetailView-Ck1eR7vc.js} +3 -3
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-BD-exgGM.js → CrmDetailView.vue_vue_type_script_setup_true_lang-BRN9QeuV.js} +12 -12
- package/dist/{DealCommunicationTabView-Lw0wucjF.js → DealCommunicationTabView-CLhq0xWw.js} +65 -65
- package/dist/DealDetailView-4oAPLkbb.js +1508 -0
- package/dist/{IndividualDetailView-hLNV_V0D.js → IndividualDetailView-B72VY4YS.js} +8 -8
- package/dist/{index-CLaJi9-Z.js → index-BAluxtb7.js} +5498 -4922
- package/dist/index.d.ts +80 -51
- package/dist/index.js +9 -9
- package/dist/style.css +1 -1
- package/dist/testing.js +6 -4
- package/dist/uuid.util-8nyk7pzI.js +3267 -0
- package/package.json +29 -19
- package/dist/DealDetailView-mlXwK6Tj.js +0 -1393
- package/dist/uuid.util-B9bkU4IX.js +0 -6560
|
@@ -0,0 +1,3267 @@
|
|
|
1
|
+
import * as e from "zod";
|
|
2
|
+
var Ce = /* @__PURE__ */ ((t) => (t.EN_US = "en-US", t.NL_BE = "nl-BE", t.FR_BE = "fr-BE", t))(Ce || {}), Xe = /* @__PURE__ */ ((t) => (t.MOSS = "moss", t.GREEN_LIGHT = "green-light", t.GREEN = "green", t.TEAL = "teal", t.CYAN = "cyan", t.BLUE_LIGHT = "blue-light", t.BLUE = "blue", t.BLUE_DARK = "blue-dark", t.INDIGO = "indigo", t.VIOLET = "violet", t.PURPLE = "purple", t.FUCHSIA = "fuchsia", t.PINK = "pink", t.ROSE = "rose", t.ORANGE_DARK = "orange-dark", t.ORANGE = "orange", t.YELLOW = "yellow", t.ERROR = "error", t.WARNING = "warning", t.SUCCESS = "success", t))(Xe || {}), et = /* @__PURE__ */ ((t) => (t.EMAIL_ONLY = "EMAIL_ONLY", t.ADDRESS_ONLY = "ADDRESS_ONLY", t.EMAIL_AND_ADDRESS = "EMAIL_AND_ADDRESS", t.EMAIL_OR_ADDRESS = "EMAIL_OR_ADDRESS", t))(et || {}), tt = /* @__PURE__ */ ((t) => (t.INDIVIDUAL = "individual", t.BUSINESS = "business", t))(tt || {}), nt = /* @__PURE__ */ ((t) => (t.APPLICATION_PDF = "application/pdf", t.APPLICATION_MSWORD = "application/msword", t.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", t.APPLICATION_VND_MS_POWERPOINT = "application/vnd.ms-powerpoint", t.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = "application/vnd.openxmlformats-officedocument.presentationml.presentation", t.TEXT_PLAIN = "text/plain", t.TEXT_HTML = "text/html", t.TEXT_CSV = "text/csv", t.IMAGE_JPEG = "image/jpeg", t.IMAGE_PNG = "image/png", t.IMAGE_TIFF = "image/tiff", t.IMAGE_BMP = "image/bmp", t.IMAGE_HEIC = "image/heic", t.IMAGE_WEBP = "image/webp", t.IMAGE_GIF = "image/gif", t.APPLICATION_OCTET_STREAM = "application/octet-stream", t))(nt || {}), it = /* @__PURE__ */ ((t) => (t.AF = "AF", t.AL = "AL", t.DZ = "DZ", t.AD = "AD", t.AO = "AO", t.AG = "AG", t.AR = "AR", t.AM = "AM", t.AU = "AU", t.AT = "AT", t.AZ = "AZ", t.BS = "BS", t.BH = "BH", t.BD = "BD", t.BB = "BB", t.BY = "BY", t.BE = "BE", t.BZ = "BZ", t.BJ = "BJ", t.BT = "BT", t.BO = "BO", t.BA = "BA", t.BW = "BW", t.BR = "BR", t.BN = "BN", t.BG = "BG", t.BF = "BF", t.BI = "BI", t.KH = "KH", t.CM = "CM", t.CA = "CA", t.CV = "CV", t.CF = "CF", t.TD = "TD", t.CL = "CL", t.CN = "CN", t.CO = "CO", t.KM = "KM", t.CG = "CG", t.CR = "CR", t.HR = "HR", t.CU = "CU", t.CY = "CY", t.CZ = "CZ", t.DK = "DK", t.DJ = "DJ", t.DM = "DM", t.DO = "DO", t.EC = "EC", t.EG = "EG", t.SV = "SV", t.GQ = "GQ", t.ER = "ER", t.EE = "EE", t.ET = "ET", t.FJ = "FJ", t.FI = "FI", t.FR = "FR", t.GA = "GA", t.GM = "GM", t.GE = "GE", t.DE = "DE", t.GH = "GH", t.GR = "GR", t.GD = "GD", t.GT = "GT", t.GN = "GN", t.GW = "GW", t.GY = "GY", t.HT = "HT", t.HN = "HN", t.HU = "HU", t.IS = "IS", t.IN = "IN", t.ID = "ID", t.IR = "IR", t.IQ = "IQ", t.IE = "IE", t.IL = "IL", t.IT = "IT", t.JM = "JM", t.JP = "JP", t.JO = "JO", t.KZ = "KZ", t.KE = "KE", t.KI = "KI", t.KP = "KP", t.KR = "KR", t.KW = "KW", t.KG = "KG", t.LA = "LA", t.LV = "LV", t.LB = "LB", t.LS = "LS", t.LR = "LR", t.LY = "LY", t.LI = "LI", t.LT = "LT", t.LU = "LU", t.MG = "MG", t.MW = "MW", t.MY = "MY", t.MV = "MV", t.ML = "ML", t.MT = "MT", t.MH = "MH", t.MR = "MR", t.MU = "MU", t.MX = "MX", t.FM = "FM", t.MD = "MD", t.MC = "MC", t.MN = "MN", t.ME = "ME", t.MA = "MA", t.MZ = "MZ", t.MM = "MM", t.NA = "NA", t.NR = "NR", t.NP = "NP", t.NL = "NL", t.NZ = "NZ", t.NI = "NI", t.NE = "NE", t.NG = "NG", t.XI = "XI", t.MK = "MK", t.NO = "NO", t.OM = "OM", t.PK = "PK", t.PW = "PW", t.PA = "PA", t.PG = "PG", t.PY = "PY", t.PE = "PE", t.PH = "PH", t.PL = "PL", t.PT = "PT", t.QA = "QA", t.RO = "RO", t.RU = "RU", t.RW = "RW", t.KN = "KN", t.LC = "LC", t.VC = "VC", t.WS = "WS", t.SM = "SM", t.ST = "ST", t.SA = "SA", t.SN = "SN", t.RS = "RS", t.SC = "SC", t.SL = "SL", t.SG = "SG", t.SK = "SK", t.SI = "SI", t.SB = "SB", t.SO = "SO", t.ZA = "ZA", t.SS = "SS", t.ES = "ES", t.LK = "LK", t.SD = "SD", t.SR = "SR", t.SE = "SE", t.CH = "CH", t.SY = "SY", t.TW = "TW", t.TJ = "TJ", t.TZ = "TZ", t.TH = "TH", t.TL = "TL", t.TG = "TG", t.TO = "TO", t.TT = "TT", t.TN = "TN", t.TR = "TR", t.TM = "TM", t.TV = "TV", t.UG = "UG", t.UA = "UA", t.AE = "AE", t.GB = "GB", t.US = "US", t.UY = "UY", t.UZ = "UZ", t.VU = "VU", t.VA = "VA", t.VE = "VE", t.VN = "VN", t.YE = "YE", t.ZM = "ZM", t.ZW = "ZW", t))(it || {}), at = /* @__PURE__ */ ((t) => (t.MANUAL = "manual", t.EMAIL = "email", t))(at || {}), st = /* @__PURE__ */ ((t) => (t.NL_BE = "nl-BE", t.EN_US = "en-US", t.FR_BE = "fr-BE", t.DE_DE = "de-DE", t))(st || {}), ot = /* @__PURE__ */ ((t) => (t.MAIL = "mail", t.WEBSITE = "website", t.PHONE = "phone", t.TENDER = "tender", t))(ot || {}), lt = /* @__PURE__ */ ((t) => (t.BUSINESS = "business", t.INDIVIDUAL = "individual", t))(lt || {}), rt = /* @__PURE__ */ ((t) => (t.LEAD = "lead", t.CUSTOMER = "customer", t.INACTIVE = "inactive", t.ARCHIVED = "archived", t.CONTACT = "contact", t))(rt || {});
|
|
3
|
+
const ut = {
|
|
4
|
+
bodySerializer: (t) => JSON.stringify(t, (n, i) => typeof i == "bigint" ? i.toString() : i)
|
|
5
|
+
};
|
|
6
|
+
function ct({
|
|
7
|
+
onRequest: t,
|
|
8
|
+
onSseError: n,
|
|
9
|
+
onSseEvent: i,
|
|
10
|
+
responseTransformer: a,
|
|
11
|
+
responseValidator: l,
|
|
12
|
+
sseDefaultRetryDelay: u,
|
|
13
|
+
sseMaxRetryAttempts: o,
|
|
14
|
+
sseMaxRetryDelay: s,
|
|
15
|
+
sseSleepFn: r,
|
|
16
|
+
url: z,
|
|
17
|
+
...d
|
|
18
|
+
}) {
|
|
19
|
+
let c;
|
|
20
|
+
const y = r ?? ((b) => new Promise((g) => setTimeout(g, b)));
|
|
21
|
+
return { stream: async function* () {
|
|
22
|
+
let b = u ?? 3e3, g = 0;
|
|
23
|
+
const h = d.signal ?? new AbortController().signal;
|
|
24
|
+
for (; !h.aborted; ) {
|
|
25
|
+
g++;
|
|
26
|
+
const M = d.headers instanceof Headers ? d.headers : new Headers(d.headers);
|
|
27
|
+
c !== void 0 && M.set("Last-Event-ID", c);
|
|
28
|
+
try {
|
|
29
|
+
const N = {
|
|
30
|
+
redirect: "follow",
|
|
31
|
+
...d,
|
|
32
|
+
body: d.serializedBody,
|
|
33
|
+
headers: M,
|
|
34
|
+
signal: h
|
|
35
|
+
};
|
|
36
|
+
let w = new Request(z, N);
|
|
37
|
+
t && (w = await t(z, N));
|
|
38
|
+
const p = await (d.fetch ?? globalThis.fetch)(w);
|
|
39
|
+
if (!p.ok) throw new Error(`SSE failed: ${p.status} ${p.statusText}`);
|
|
40
|
+
if (!p.body) throw new Error("No body in SSE response");
|
|
41
|
+
const v = p.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
42
|
+
let f = "";
|
|
43
|
+
const ae = () => {
|
|
44
|
+
try {
|
|
45
|
+
v.cancel();
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
h.addEventListener("abort", ae);
|
|
50
|
+
try {
|
|
51
|
+
for (; ; ) {
|
|
52
|
+
const { done: Je, value: Ze } = await v.read();
|
|
53
|
+
if (Je) break;
|
|
54
|
+
f += Ze, f = f.replace(/\r\n?/g, `
|
|
55
|
+
`);
|
|
56
|
+
const se = f.split(`
|
|
57
|
+
|
|
58
|
+
`);
|
|
59
|
+
f = se.pop() ?? "";
|
|
60
|
+
for (const Ye of se) {
|
|
61
|
+
const $e = Ye.split(`
|
|
62
|
+
`), L = [];
|
|
63
|
+
let oe;
|
|
64
|
+
for (const V of $e)
|
|
65
|
+
if (V.startsWith("data:"))
|
|
66
|
+
L.push(V.replace(/^data:\s*/, ""));
|
|
67
|
+
else if (V.startsWith("event:"))
|
|
68
|
+
oe = V.replace(/^event:\s*/, "");
|
|
69
|
+
else if (V.startsWith("id:"))
|
|
70
|
+
c = V.replace(/^id:\s*/, "");
|
|
71
|
+
else if (V.startsWith("retry:")) {
|
|
72
|
+
const re = Number.parseInt(V.replace(/^retry:\s*/, ""), 10);
|
|
73
|
+
Number.isNaN(re) || (b = re);
|
|
74
|
+
}
|
|
75
|
+
let T, le = !1;
|
|
76
|
+
if (L.length) {
|
|
77
|
+
const V = L.join(`
|
|
78
|
+
`);
|
|
79
|
+
try {
|
|
80
|
+
T = JSON.parse(V), le = !0;
|
|
81
|
+
} catch {
|
|
82
|
+
T = V;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
le && (l && await l(T), a && (T = await a(T))), i?.({
|
|
86
|
+
data: T,
|
|
87
|
+
event: oe,
|
|
88
|
+
id: c,
|
|
89
|
+
retry: b
|
|
90
|
+
}), L.length && (yield T);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
} finally {
|
|
94
|
+
h.removeEventListener("abort", ae), v.releaseLock();
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
} catch (N) {
|
|
98
|
+
if (n?.(N), o !== void 0 && g >= o)
|
|
99
|
+
break;
|
|
100
|
+
const w = Math.min(b * 2 ** (g - 1), s ?? 3e4);
|
|
101
|
+
await y(w);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}() };
|
|
105
|
+
}
|
|
106
|
+
const dt = (t) => {
|
|
107
|
+
switch (t) {
|
|
108
|
+
case "label":
|
|
109
|
+
return ".";
|
|
110
|
+
case "matrix":
|
|
111
|
+
return ";";
|
|
112
|
+
case "simple":
|
|
113
|
+
return ",";
|
|
114
|
+
default:
|
|
115
|
+
return "&";
|
|
116
|
+
}
|
|
117
|
+
}, bt = (t) => {
|
|
118
|
+
switch (t) {
|
|
119
|
+
case "form":
|
|
120
|
+
return ",";
|
|
121
|
+
case "pipeDelimited":
|
|
122
|
+
return "|";
|
|
123
|
+
case "spaceDelimited":
|
|
124
|
+
return "%20";
|
|
125
|
+
default:
|
|
126
|
+
return ",";
|
|
127
|
+
}
|
|
128
|
+
}, mt = (t) => {
|
|
129
|
+
switch (t) {
|
|
130
|
+
case "label":
|
|
131
|
+
return ".";
|
|
132
|
+
case "matrix":
|
|
133
|
+
return ";";
|
|
134
|
+
case "simple":
|
|
135
|
+
return ",";
|
|
136
|
+
default:
|
|
137
|
+
return "&";
|
|
138
|
+
}
|
|
139
|
+
}, fe = ({
|
|
140
|
+
allowReserved: t,
|
|
141
|
+
explode: n,
|
|
142
|
+
name: i,
|
|
143
|
+
style: a,
|
|
144
|
+
value: l
|
|
145
|
+
}) => {
|
|
146
|
+
if (!n) {
|
|
147
|
+
const s = (t ? l : l.map((r) => encodeURIComponent(r))).join(bt(a));
|
|
148
|
+
switch (a) {
|
|
149
|
+
case "label":
|
|
150
|
+
return `.${s}`;
|
|
151
|
+
case "matrix":
|
|
152
|
+
return `;${i}=${s}`;
|
|
153
|
+
case "simple":
|
|
154
|
+
return s;
|
|
155
|
+
default:
|
|
156
|
+
return `${i}=${s}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const u = dt(a), o = l.map((s) => a === "label" || a === "simple" ? t ? s : encodeURIComponent(s) : k({
|
|
160
|
+
allowReserved: t,
|
|
161
|
+
name: i,
|
|
162
|
+
value: s
|
|
163
|
+
})).join(u);
|
|
164
|
+
return a === "label" || a === "matrix" ? u + o : o;
|
|
165
|
+
}, k = ({
|
|
166
|
+
allowReserved: t,
|
|
167
|
+
name: n,
|
|
168
|
+
value: i
|
|
169
|
+
}) => {
|
|
170
|
+
if (i == null)
|
|
171
|
+
return "";
|
|
172
|
+
if (typeof i == "object")
|
|
173
|
+
throw new Error(
|
|
174
|
+
"Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these."
|
|
175
|
+
);
|
|
176
|
+
return `${n}=${t ? i : encodeURIComponent(i)}`;
|
|
177
|
+
}, je = ({
|
|
178
|
+
allowReserved: t,
|
|
179
|
+
explode: n,
|
|
180
|
+
name: i,
|
|
181
|
+
style: a,
|
|
182
|
+
value: l,
|
|
183
|
+
valueOnly: u
|
|
184
|
+
}) => {
|
|
185
|
+
if (l instanceof Date)
|
|
186
|
+
return u ? l.toISOString() : `${i}=${l.toISOString()}`;
|
|
187
|
+
if (a !== "deepObject" && !n) {
|
|
188
|
+
let r = [];
|
|
189
|
+
Object.entries(l).forEach(([d, c]) => {
|
|
190
|
+
r = [...r, d, t ? c : encodeURIComponent(c)];
|
|
191
|
+
});
|
|
192
|
+
const z = r.join(",");
|
|
193
|
+
switch (a) {
|
|
194
|
+
case "form":
|
|
195
|
+
return `${i}=${z}`;
|
|
196
|
+
case "label":
|
|
197
|
+
return `.${z}`;
|
|
198
|
+
case "matrix":
|
|
199
|
+
return `;${i}=${z}`;
|
|
200
|
+
default:
|
|
201
|
+
return z;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
const o = mt(a), s = Object.entries(l).map(
|
|
205
|
+
([r, z]) => k({
|
|
206
|
+
allowReserved: t,
|
|
207
|
+
name: a === "deepObject" ? `${i}[${r}]` : r,
|
|
208
|
+
value: z
|
|
209
|
+
})
|
|
210
|
+
).join(o);
|
|
211
|
+
return a === "label" || a === "matrix" ? o + s : s;
|
|
212
|
+
}, gt = /\{[^{}]+\}/g, pt = ({ path: t, url: n }) => {
|
|
213
|
+
let i = n;
|
|
214
|
+
const a = n.match(gt);
|
|
215
|
+
if (a)
|
|
216
|
+
for (const l of a) {
|
|
217
|
+
let u = !1, o = l.substring(1, l.length - 1), s = "simple";
|
|
218
|
+
o.endsWith("*") && (u = !0, o = o.substring(0, o.length - 1)), o.startsWith(".") ? (o = o.substring(1), s = "label") : o.startsWith(";") && (o = o.substring(1), s = "matrix");
|
|
219
|
+
const r = t[o];
|
|
220
|
+
if (r == null)
|
|
221
|
+
continue;
|
|
222
|
+
if (Array.isArray(r)) {
|
|
223
|
+
i = i.replace(l, fe({ explode: u, name: o, style: s, value: r }));
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
if (typeof r == "object") {
|
|
227
|
+
i = i.replace(
|
|
228
|
+
l,
|
|
229
|
+
je({
|
|
230
|
+
explode: u,
|
|
231
|
+
name: o,
|
|
232
|
+
style: s,
|
|
233
|
+
value: r,
|
|
234
|
+
valueOnly: !0
|
|
235
|
+
})
|
|
236
|
+
);
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
if (s === "matrix") {
|
|
240
|
+
i = i.replace(
|
|
241
|
+
l,
|
|
242
|
+
`;${k({
|
|
243
|
+
name: o,
|
|
244
|
+
value: r
|
|
245
|
+
})}`
|
|
246
|
+
);
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
const z = encodeURIComponent(
|
|
250
|
+
s === "label" ? `.${r}` : r
|
|
251
|
+
);
|
|
252
|
+
i = i.replace(l, z);
|
|
253
|
+
}
|
|
254
|
+
return i;
|
|
255
|
+
}, ft = ({
|
|
256
|
+
baseUrl: t,
|
|
257
|
+
path: n,
|
|
258
|
+
query: i,
|
|
259
|
+
querySerializer: a,
|
|
260
|
+
url: l
|
|
261
|
+
}) => {
|
|
262
|
+
const u = l.startsWith("/") ? l : `/${l}`;
|
|
263
|
+
let o = (t ?? "") + u;
|
|
264
|
+
n && (o = pt({ path: n, url: o }));
|
|
265
|
+
let s = i ? a(i) : "";
|
|
266
|
+
return s.startsWith("?") && (s = s.substring(1)), s && (o += `?${s}`), o;
|
|
267
|
+
};
|
|
268
|
+
function ue(t) {
|
|
269
|
+
const n = t.body !== void 0;
|
|
270
|
+
if (n && t.bodySerializer)
|
|
271
|
+
return "serializedBody" in t ? t.serializedBody !== void 0 && t.serializedBody !== "" ? t.serializedBody : null : t.body !== "" ? t.body : null;
|
|
272
|
+
if (n)
|
|
273
|
+
return t.body;
|
|
274
|
+
}
|
|
275
|
+
const jt = async (t, n) => {
|
|
276
|
+
const i = typeof n == "function" ? await n(t) : n;
|
|
277
|
+
if (i)
|
|
278
|
+
return t.scheme === "bearer" ? `Bearer ${i}` : t.scheme === "basic" ? `Basic ${btoa(i)}` : i;
|
|
279
|
+
}, ze = ({
|
|
280
|
+
parameters: t = {},
|
|
281
|
+
...n
|
|
282
|
+
} = {}) => (a) => {
|
|
283
|
+
const l = [];
|
|
284
|
+
if (a && typeof a == "object")
|
|
285
|
+
for (const u in a) {
|
|
286
|
+
const o = a[u];
|
|
287
|
+
if (o == null)
|
|
288
|
+
continue;
|
|
289
|
+
const s = t[u] || n;
|
|
290
|
+
if (Array.isArray(o)) {
|
|
291
|
+
const r = fe({
|
|
292
|
+
allowReserved: s.allowReserved,
|
|
293
|
+
explode: !0,
|
|
294
|
+
name: u,
|
|
295
|
+
style: "form",
|
|
296
|
+
value: o,
|
|
297
|
+
...s.array
|
|
298
|
+
});
|
|
299
|
+
r && l.push(r);
|
|
300
|
+
} else if (typeof o == "object") {
|
|
301
|
+
const r = je({
|
|
302
|
+
allowReserved: s.allowReserved,
|
|
303
|
+
explode: !0,
|
|
304
|
+
name: u,
|
|
305
|
+
style: "deepObject",
|
|
306
|
+
value: o,
|
|
307
|
+
...s.object
|
|
308
|
+
});
|
|
309
|
+
r && l.push(r);
|
|
310
|
+
} else {
|
|
311
|
+
const r = k({
|
|
312
|
+
allowReserved: s.allowReserved,
|
|
313
|
+
name: u,
|
|
314
|
+
value: o
|
|
315
|
+
});
|
|
316
|
+
r && l.push(r);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return l.join("&");
|
|
320
|
+
}, zt = (t) => {
|
|
321
|
+
if (!t)
|
|
322
|
+
return "stream";
|
|
323
|
+
const n = t.split(";")[0]?.trim();
|
|
324
|
+
if (n) {
|
|
325
|
+
if (n.startsWith("application/json") || n.endsWith("+json"))
|
|
326
|
+
return "json";
|
|
327
|
+
if (n === "multipart/form-data")
|
|
328
|
+
return "formData";
|
|
329
|
+
if (["application/", "audio/", "image/", "video/"].some((i) => n.startsWith(i)))
|
|
330
|
+
return "blob";
|
|
331
|
+
if (n.startsWith("text/"))
|
|
332
|
+
return "text";
|
|
333
|
+
}
|
|
334
|
+
}, ht = (t, n) => n ? !!(t.headers.has(n) || t.query?.[n] || t.headers.get("Cookie")?.includes(`${n}=`)) : !1;
|
|
335
|
+
async function It(t) {
|
|
336
|
+
for (const n of t.security ?? []) {
|
|
337
|
+
if (ht(t, n.name))
|
|
338
|
+
continue;
|
|
339
|
+
const i = await jt(n, t.auth);
|
|
340
|
+
if (!i)
|
|
341
|
+
continue;
|
|
342
|
+
const a = n.name ?? "Authorization";
|
|
343
|
+
switch (n.in) {
|
|
344
|
+
case "query":
|
|
345
|
+
t.query || (t.query = {}), t.query[a] = i;
|
|
346
|
+
break;
|
|
347
|
+
case "cookie":
|
|
348
|
+
t.headers.append("Cookie", `${a}=${i}`);
|
|
349
|
+
break;
|
|
350
|
+
default:
|
|
351
|
+
t.headers.set(a, i);
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
const ce = (t) => ft({
|
|
357
|
+
baseUrl: t.baseUrl,
|
|
358
|
+
path: t.path,
|
|
359
|
+
query: t.query,
|
|
360
|
+
querySerializer: typeof t.querySerializer == "function" ? t.querySerializer : ze(t.querySerializer),
|
|
361
|
+
url: t.url
|
|
362
|
+
}), de = (t, n) => {
|
|
363
|
+
const i = { ...t, ...n };
|
|
364
|
+
return i.baseUrl?.endsWith("/") && (i.baseUrl = i.baseUrl.substring(0, i.baseUrl.length - 1)), i.headers = he(t.headers, n.headers), i;
|
|
365
|
+
}, yt = (t) => {
|
|
366
|
+
const n = [];
|
|
367
|
+
return t.forEach((i, a) => {
|
|
368
|
+
n.push([a, i]);
|
|
369
|
+
}), n;
|
|
370
|
+
}, he = (...t) => {
|
|
371
|
+
const n = new Headers();
|
|
372
|
+
for (const i of t) {
|
|
373
|
+
if (!i)
|
|
374
|
+
continue;
|
|
375
|
+
const a = i instanceof Headers ? yt(i) : Object.entries(i);
|
|
376
|
+
for (const [l, u] of a)
|
|
377
|
+
if (u === null)
|
|
378
|
+
n.delete(l);
|
|
379
|
+
else if (Array.isArray(u))
|
|
380
|
+
for (const o of u)
|
|
381
|
+
n.append(l, o);
|
|
382
|
+
else u !== void 0 && n.set(
|
|
383
|
+
l,
|
|
384
|
+
typeof u == "object" ? JSON.stringify(u) : u
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
return n;
|
|
388
|
+
};
|
|
389
|
+
class q {
|
|
390
|
+
fns = [];
|
|
391
|
+
clear() {
|
|
392
|
+
this.fns = [];
|
|
393
|
+
}
|
|
394
|
+
eject(n) {
|
|
395
|
+
const i = this.getInterceptorIndex(n);
|
|
396
|
+
this.fns[i] && (this.fns[i] = null);
|
|
397
|
+
}
|
|
398
|
+
exists(n) {
|
|
399
|
+
const i = this.getInterceptorIndex(n);
|
|
400
|
+
return !!this.fns[i];
|
|
401
|
+
}
|
|
402
|
+
getInterceptorIndex(n) {
|
|
403
|
+
return typeof n == "number" ? this.fns[n] ? n : -1 : this.fns.indexOf(n);
|
|
404
|
+
}
|
|
405
|
+
update(n, i) {
|
|
406
|
+
const a = this.getInterceptorIndex(n);
|
|
407
|
+
return this.fns[a] ? (this.fns[a] = i, n) : !1;
|
|
408
|
+
}
|
|
409
|
+
use(n) {
|
|
410
|
+
return this.fns.push(n), this.fns.length - 1;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
const vt = () => ({
|
|
414
|
+
error: new q(),
|
|
415
|
+
request: new q(),
|
|
416
|
+
response: new q()
|
|
417
|
+
}), Vt = ze({
|
|
418
|
+
allowReserved: !1,
|
|
419
|
+
array: {
|
|
420
|
+
explode: !0,
|
|
421
|
+
style: "form"
|
|
422
|
+
},
|
|
423
|
+
object: {
|
|
424
|
+
explode: !0,
|
|
425
|
+
style: "deepObject"
|
|
426
|
+
}
|
|
427
|
+
}), Rt = {
|
|
428
|
+
"Content-Type": "application/json"
|
|
429
|
+
}, Ie = (t = {}) => ({
|
|
430
|
+
...ut,
|
|
431
|
+
headers: Rt,
|
|
432
|
+
parseAs: "auto",
|
|
433
|
+
querySerializer: Vt,
|
|
434
|
+
...t
|
|
435
|
+
}), Ut = (t = {}) => {
|
|
436
|
+
let n = de(Ie(), t);
|
|
437
|
+
const i = () => ({ ...n }), a = (d) => (n = de(n, d), i()), l = vt(), u = async (d) => {
|
|
438
|
+
const c = {
|
|
439
|
+
...n,
|
|
440
|
+
...d,
|
|
441
|
+
fetch: d.fetch ?? n.fetch ?? globalThis.fetch,
|
|
442
|
+
headers: he(n.headers, d.headers),
|
|
443
|
+
serializedBody: void 0
|
|
444
|
+
};
|
|
445
|
+
c.security && await It(c), c.requestValidator && await c.requestValidator(c), c.body !== void 0 && c.bodySerializer && (c.serializedBody = c.bodySerializer(c.body)), (c.body === void 0 || c.serializedBody === "") && c.headers.delete("Content-Type");
|
|
446
|
+
const y = c, j = ce(y);
|
|
447
|
+
return { opts: y, url: j };
|
|
448
|
+
}, o = async (d) => {
|
|
449
|
+
const c = d.throwOnError ?? n.throwOnError, y = d.responseStyle ?? n.responseStyle;
|
|
450
|
+
let j, m;
|
|
451
|
+
try {
|
|
452
|
+
const { opts: b, url: g } = await u(d), h = {
|
|
453
|
+
redirect: "follow",
|
|
454
|
+
...b,
|
|
455
|
+
body: ue(b)
|
|
456
|
+
};
|
|
457
|
+
j = new Request(g, h);
|
|
458
|
+
for (const p of l.request.fns)
|
|
459
|
+
p && (j = await p(j, b));
|
|
460
|
+
const M = b.fetch;
|
|
461
|
+
m = await M(j);
|
|
462
|
+
for (const p of l.response.fns)
|
|
463
|
+
p && (m = await p(m, j, b));
|
|
464
|
+
const N = {
|
|
465
|
+
request: j,
|
|
466
|
+
response: m
|
|
467
|
+
};
|
|
468
|
+
if (m.ok) {
|
|
469
|
+
const p = (b.parseAs === "auto" ? zt(m.headers.get("Content-Type")) : b.parseAs) ?? "json";
|
|
470
|
+
if (m.status === 204 || m.headers.get("Content-Length") === "0") {
|
|
471
|
+
let f;
|
|
472
|
+
switch (p) {
|
|
473
|
+
case "arrayBuffer":
|
|
474
|
+
case "blob":
|
|
475
|
+
case "text":
|
|
476
|
+
f = await m[p]();
|
|
477
|
+
break;
|
|
478
|
+
case "formData":
|
|
479
|
+
f = new FormData();
|
|
480
|
+
break;
|
|
481
|
+
case "stream":
|
|
482
|
+
f = m.body;
|
|
483
|
+
break;
|
|
484
|
+
default:
|
|
485
|
+
f = {};
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
return b.responseStyle === "data" ? f : {
|
|
489
|
+
data: f,
|
|
490
|
+
...N
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
let v;
|
|
494
|
+
switch (p) {
|
|
495
|
+
case "arrayBuffer":
|
|
496
|
+
case "blob":
|
|
497
|
+
case "formData":
|
|
498
|
+
case "text":
|
|
499
|
+
v = await m[p]();
|
|
500
|
+
break;
|
|
501
|
+
case "json": {
|
|
502
|
+
const f = await m.text();
|
|
503
|
+
v = f ? JSON.parse(f) : {};
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
case "stream":
|
|
507
|
+
return b.responseStyle === "data" ? m.body : {
|
|
508
|
+
data: m.body,
|
|
509
|
+
...N
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
return p === "json" && (b.responseValidator && await b.responseValidator(v), b.responseTransformer && (v = await b.responseTransformer(v))), b.responseStyle === "data" ? v : {
|
|
513
|
+
data: v,
|
|
514
|
+
...N
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
const w = await m.text();
|
|
518
|
+
let W;
|
|
519
|
+
try {
|
|
520
|
+
W = JSON.parse(w);
|
|
521
|
+
} catch {
|
|
522
|
+
}
|
|
523
|
+
throw W ?? w;
|
|
524
|
+
} catch (b) {
|
|
525
|
+
let g = b;
|
|
526
|
+
for (const h of l.error.fns)
|
|
527
|
+
h && (g = await h(g, m, j, d));
|
|
528
|
+
if (g = g || {}, c)
|
|
529
|
+
throw g;
|
|
530
|
+
return y === "data" ? void 0 : {
|
|
531
|
+
error: g,
|
|
532
|
+
request: j,
|
|
533
|
+
response: m
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
}, s = (d) => (c) => o({ ...c, method: d }), r = (d) => async (c) => {
|
|
537
|
+
const { opts: y, url: j } = await u(c);
|
|
538
|
+
return ct({
|
|
539
|
+
...y,
|
|
540
|
+
body: y.body,
|
|
541
|
+
method: d,
|
|
542
|
+
onRequest: async (m, b) => {
|
|
543
|
+
let g = new Request(m, b);
|
|
544
|
+
for (const h of l.request.fns)
|
|
545
|
+
h && (g = await h(g, y));
|
|
546
|
+
return g;
|
|
547
|
+
},
|
|
548
|
+
serializedBody: ue(y),
|
|
549
|
+
url: j
|
|
550
|
+
});
|
|
551
|
+
};
|
|
552
|
+
return {
|
|
553
|
+
buildUrl: (d) => ce({ ...n, ...d }),
|
|
554
|
+
connect: s("CONNECT"),
|
|
555
|
+
delete: s("DELETE"),
|
|
556
|
+
get: s("GET"),
|
|
557
|
+
getConfig: i,
|
|
558
|
+
head: s("HEAD"),
|
|
559
|
+
interceptors: l,
|
|
560
|
+
options: s("OPTIONS"),
|
|
561
|
+
patch: s("PATCH"),
|
|
562
|
+
post: s("POST"),
|
|
563
|
+
put: s("PUT"),
|
|
564
|
+
request: o,
|
|
565
|
+
setConfig: a,
|
|
566
|
+
sse: {
|
|
567
|
+
connect: r("CONNECT"),
|
|
568
|
+
delete: r("DELETE"),
|
|
569
|
+
get: r("GET"),
|
|
570
|
+
head: r("HEAD"),
|
|
571
|
+
options: r("OPTIONS"),
|
|
572
|
+
patch: r("PATCH"),
|
|
573
|
+
post: r("POST"),
|
|
574
|
+
put: r("PUT"),
|
|
575
|
+
trace: r("TRACE")
|
|
576
|
+
},
|
|
577
|
+
trace: s("TRACE")
|
|
578
|
+
};
|
|
579
|
+
}, ts = Ut(Ie({ throwOnError: !0 })), O = e.enum([
|
|
580
|
+
"all_permissions",
|
|
581
|
+
"activity-log.read",
|
|
582
|
+
"contact.create",
|
|
583
|
+
"contact.read",
|
|
584
|
+
"contact.update",
|
|
585
|
+
"contact.delete",
|
|
586
|
+
"event-log.read",
|
|
587
|
+
"file.read",
|
|
588
|
+
"file.create",
|
|
589
|
+
"file.delete",
|
|
590
|
+
"jobs.read.index",
|
|
591
|
+
"jobs.read.detail",
|
|
592
|
+
"notification.read.own",
|
|
593
|
+
"notification.read.config",
|
|
594
|
+
"notification.update.read",
|
|
595
|
+
"notification.update.unread",
|
|
596
|
+
"notification.preferences.update.channel",
|
|
597
|
+
"notification.preferences.update.preset",
|
|
598
|
+
"notification.preferences.update.types",
|
|
599
|
+
"notification.preferences.read.own",
|
|
600
|
+
"notification.migrate-type",
|
|
601
|
+
"notification.send-test",
|
|
602
|
+
"role.read",
|
|
603
|
+
"role.create",
|
|
604
|
+
"role.update",
|
|
605
|
+
"role.delete",
|
|
606
|
+
"role.cache.clear",
|
|
607
|
+
"send_push_notification",
|
|
608
|
+
"typesense",
|
|
609
|
+
"user.read",
|
|
610
|
+
"user.create",
|
|
611
|
+
"user.update",
|
|
612
|
+
"user.delete",
|
|
613
|
+
"location.create",
|
|
614
|
+
"location.update",
|
|
615
|
+
"location.read",
|
|
616
|
+
"contact-person.archive",
|
|
617
|
+
"contact-person.unarchive",
|
|
618
|
+
"contact-person.create",
|
|
619
|
+
"contact-person.update",
|
|
620
|
+
"contact-person.read",
|
|
621
|
+
"individual.create",
|
|
622
|
+
"individual.update",
|
|
623
|
+
"individual.status.update",
|
|
624
|
+
"individual.read",
|
|
625
|
+
"individual.read-activity-log",
|
|
626
|
+
"business.create",
|
|
627
|
+
"business.link-as-child",
|
|
628
|
+
"business.link-as-parent",
|
|
629
|
+
"business.read",
|
|
630
|
+
"business.read-activity-log",
|
|
631
|
+
"business.update",
|
|
632
|
+
"business.vat-number-existence-check",
|
|
633
|
+
"billing-information.upsert",
|
|
634
|
+
"billing-information.read",
|
|
635
|
+
"tenant.config.read",
|
|
636
|
+
"tenant.config.update",
|
|
637
|
+
"tenant.create",
|
|
638
|
+
"tenant.read_index",
|
|
639
|
+
"tenant.read_detail",
|
|
640
|
+
"tenant.resync-users-from-zitadel",
|
|
641
|
+
"tenant.update",
|
|
642
|
+
"note.create",
|
|
643
|
+
"note.update",
|
|
644
|
+
"note.read",
|
|
645
|
+
"note.delete",
|
|
646
|
+
"note-file.create",
|
|
647
|
+
"note-file.delete",
|
|
648
|
+
"board.create",
|
|
649
|
+
"board.read",
|
|
650
|
+
"deal.create",
|
|
651
|
+
"deal.read",
|
|
652
|
+
"deal.update",
|
|
653
|
+
"deal.delete",
|
|
654
|
+
"deal.contact.person.update",
|
|
655
|
+
"deal.contact.person.read",
|
|
656
|
+
"vat-number-check",
|
|
657
|
+
"mail.template.read",
|
|
658
|
+
"mail.template.create",
|
|
659
|
+
"mail.template.update",
|
|
660
|
+
"mail.read",
|
|
661
|
+
"mail.create"
|
|
662
|
+
]), Nt = e.object({
|
|
663
|
+
name: e.string(),
|
|
664
|
+
key: O,
|
|
665
|
+
description: e.string()
|
|
666
|
+
}), Bt = e.object({
|
|
667
|
+
name: e.string(),
|
|
668
|
+
permissions: e.array(Nt)
|
|
669
|
+
});
|
|
670
|
+
e.object({
|
|
671
|
+
groups: e.array(Bt)
|
|
672
|
+
});
|
|
673
|
+
const J = e.object({
|
|
674
|
+
brand25: e.string(),
|
|
675
|
+
brand50: e.string(),
|
|
676
|
+
brand100: e.string(),
|
|
677
|
+
brand200: e.string(),
|
|
678
|
+
brand300: e.string(),
|
|
679
|
+
brand400: e.string(),
|
|
680
|
+
brand500: e.string(),
|
|
681
|
+
brand600: e.string(),
|
|
682
|
+
brand700: e.string(),
|
|
683
|
+
brand800: e.string(),
|
|
684
|
+
brand900: e.string(),
|
|
685
|
+
brand950: e.string()
|
|
686
|
+
}), I = e.enum([
|
|
687
|
+
"en-US",
|
|
688
|
+
"nl-BE",
|
|
689
|
+
"fr-BE"
|
|
690
|
+
]), G = e.object({
|
|
691
|
+
language: I,
|
|
692
|
+
value: e.string()
|
|
693
|
+
}), P = e.enum([
|
|
694
|
+
"moss",
|
|
695
|
+
"green-light",
|
|
696
|
+
"green",
|
|
697
|
+
"teal",
|
|
698
|
+
"cyan",
|
|
699
|
+
"blue-light",
|
|
700
|
+
"blue",
|
|
701
|
+
"blue-dark",
|
|
702
|
+
"indigo",
|
|
703
|
+
"violet",
|
|
704
|
+
"purple",
|
|
705
|
+
"fuchsia",
|
|
706
|
+
"pink",
|
|
707
|
+
"rose",
|
|
708
|
+
"orange-dark",
|
|
709
|
+
"orange",
|
|
710
|
+
"yellow",
|
|
711
|
+
"error",
|
|
712
|
+
"warning",
|
|
713
|
+
"success"
|
|
714
|
+
]), S = e.enum([
|
|
715
|
+
"EMAIL_ONLY",
|
|
716
|
+
"ADDRESS_ONLY",
|
|
717
|
+
"EMAIL_AND_ADDRESS",
|
|
718
|
+
"EMAIL_OR_ADDRESS"
|
|
719
|
+
]), ye = e.object({
|
|
720
|
+
name: e.array(G),
|
|
721
|
+
entityColor: P,
|
|
722
|
+
viesValidation: e.boolean(),
|
|
723
|
+
requireIndividualOnCreate: e.boolean(),
|
|
724
|
+
billingInformationRequirement: S
|
|
725
|
+
}), ve = e.object({
|
|
726
|
+
name: e.array(G),
|
|
727
|
+
entityColor: P,
|
|
728
|
+
billingInformationRequirement: S
|
|
729
|
+
});
|
|
730
|
+
e.object({
|
|
731
|
+
name: e.string(),
|
|
732
|
+
slug: e.string(),
|
|
733
|
+
domain: e.string(),
|
|
734
|
+
logoUrl: e.string().nullable(),
|
|
735
|
+
oidcIssuer: e.string(),
|
|
736
|
+
oidcClientId: e.string(),
|
|
737
|
+
oidcOrganizationId: e.string(),
|
|
738
|
+
nativeClientId: e.string(),
|
|
739
|
+
czOidcIssuer: e.string(),
|
|
740
|
+
czOidcAudience: e.string(),
|
|
741
|
+
czOidcOrganizationId: e.string(),
|
|
742
|
+
zitadelApiToken: e.string().nullable(),
|
|
743
|
+
czNativeClientId: e.string(),
|
|
744
|
+
brandColors: J,
|
|
745
|
+
businessConfig: ye,
|
|
746
|
+
individualConfig: ve
|
|
747
|
+
});
|
|
748
|
+
e.object({
|
|
749
|
+
uuid: e.uuid(),
|
|
750
|
+
name: e.string(),
|
|
751
|
+
slug: e.string(),
|
|
752
|
+
oidcIssuer: e.string(),
|
|
753
|
+
oidcClientId: e.string()
|
|
754
|
+
});
|
|
755
|
+
e.object({
|
|
756
|
+
detail: e.string().optional(),
|
|
757
|
+
status: e.enum(["404"]),
|
|
758
|
+
code: e.enum(["tenant_not_found"])
|
|
759
|
+
});
|
|
760
|
+
e.object({
|
|
761
|
+
brandColors: J
|
|
762
|
+
});
|
|
763
|
+
e.object({
|
|
764
|
+
name: e.string(),
|
|
765
|
+
slug: e.string(),
|
|
766
|
+
domain: e.string().nullable(),
|
|
767
|
+
logoUrl: e.string().nullable(),
|
|
768
|
+
oidcIssuer: e.string().optional(),
|
|
769
|
+
oidcClientId: e.string().optional(),
|
|
770
|
+
oidcOrganizationId: e.string().optional(),
|
|
771
|
+
nativeClientId: e.string().optional(),
|
|
772
|
+
czOidcIssuer: e.string().optional(),
|
|
773
|
+
czOidcAudience: e.string().optional(),
|
|
774
|
+
czOidcOrganizationId: e.string().optional(),
|
|
775
|
+
czNativeClientId: e.string().optional(),
|
|
776
|
+
brandColors: J,
|
|
777
|
+
businessConfig: ye,
|
|
778
|
+
individualConfig: ve
|
|
779
|
+
});
|
|
780
|
+
const Ve = e.enum(["individual", "business"]), Pt = e.object({
|
|
781
|
+
entityType: Ve,
|
|
782
|
+
entityName: e.array(G),
|
|
783
|
+
entityColor: P
|
|
784
|
+
});
|
|
785
|
+
e.object({
|
|
786
|
+
entities: e.array(Pt)
|
|
787
|
+
});
|
|
788
|
+
const At = e.enum([
|
|
789
|
+
"NL",
|
|
790
|
+
"FR",
|
|
791
|
+
"EN"
|
|
792
|
+
]), wt = e.object({
|
|
793
|
+
login: e.string(),
|
|
794
|
+
password: e.string(),
|
|
795
|
+
secret: e.string(),
|
|
796
|
+
language: At,
|
|
797
|
+
integrator: e.string()
|
|
798
|
+
}), Tt = e.object({
|
|
799
|
+
viesValidation: e.boolean(),
|
|
800
|
+
requireIndividualOnCreate: e.boolean(),
|
|
801
|
+
companyweb: wt.nullable()
|
|
802
|
+
});
|
|
803
|
+
e.object({
|
|
804
|
+
businessConfig: Tt
|
|
805
|
+
});
|
|
806
|
+
const Et = e.object({
|
|
807
|
+
individualBillingInformationRequirement: S,
|
|
808
|
+
businessBillingInformationRequirement: S
|
|
809
|
+
});
|
|
810
|
+
e.object({
|
|
811
|
+
billingConfig: Et
|
|
812
|
+
});
|
|
813
|
+
const _t = e.object({
|
|
814
|
+
entityType: Ve,
|
|
815
|
+
entityName: e.string(),
|
|
816
|
+
entityColor: P
|
|
817
|
+
}), St = e.object({
|
|
818
|
+
viesValidation: e.boolean(),
|
|
819
|
+
requireIndividualOnCreate: e.boolean()
|
|
820
|
+
}), Dt = e.object({
|
|
821
|
+
individualBillingInformationRequirement: S,
|
|
822
|
+
businessBillingInformationRequirement: S
|
|
823
|
+
}), Z = e.enum([
|
|
824
|
+
"lead",
|
|
825
|
+
"customer",
|
|
826
|
+
"inactive",
|
|
827
|
+
"archived"
|
|
828
|
+
]), F = e.enum([
|
|
829
|
+
"contact",
|
|
830
|
+
"lead",
|
|
831
|
+
"customer",
|
|
832
|
+
"inactive"
|
|
833
|
+
]), xt = e.object({
|
|
834
|
+
enableBusinessDeals: e.boolean(),
|
|
835
|
+
enableIndividualDeals: e.boolean(),
|
|
836
|
+
creatableBusinessStatuses: e.array(Z),
|
|
837
|
+
creatableIndividualStatuses: e.array(F)
|
|
838
|
+
}), Y = e.object({
|
|
839
|
+
brand25: e.string(),
|
|
840
|
+
brand50: e.string(),
|
|
841
|
+
brand100: e.string(),
|
|
842
|
+
brand200: e.string(),
|
|
843
|
+
brand300: e.string(),
|
|
844
|
+
brand400: e.string(),
|
|
845
|
+
brand500: e.string(),
|
|
846
|
+
brand600: e.string(),
|
|
847
|
+
brand700: e.string(),
|
|
848
|
+
brand800: e.string(),
|
|
849
|
+
brand900: e.string(),
|
|
850
|
+
brand950: e.string()
|
|
851
|
+
}), Mt = e.object({
|
|
852
|
+
uuid: e.uuid(),
|
|
853
|
+
name: e.string(),
|
|
854
|
+
entities: e.array(_t),
|
|
855
|
+
businessConfig: St,
|
|
856
|
+
billingConfig: Dt,
|
|
857
|
+
dealConfig: xt,
|
|
858
|
+
brandColors: Y,
|
|
859
|
+
logoUrl: e.string().nullable()
|
|
860
|
+
});
|
|
861
|
+
e.object({
|
|
862
|
+
uuid: e.uuid(),
|
|
863
|
+
createdAt: e.iso.datetime(),
|
|
864
|
+
updatedAt: e.iso.datetime(),
|
|
865
|
+
name: e.string(),
|
|
866
|
+
slug: e.string(),
|
|
867
|
+
domain: e.string().nullable()
|
|
868
|
+
});
|
|
869
|
+
const R = e.object({
|
|
870
|
+
limit: e.number().gte(1).lte(100),
|
|
871
|
+
offset: e.number().gte(0)
|
|
872
|
+
}), Lt = e.object({
|
|
873
|
+
uuid: e.uuid(),
|
|
874
|
+
createdAt: e.iso.datetime(),
|
|
875
|
+
updatedAt: e.iso.datetime(),
|
|
876
|
+
name: e.string(),
|
|
877
|
+
slug: e.string(),
|
|
878
|
+
domain: e.string().nullable()
|
|
879
|
+
}), U = e.object({
|
|
880
|
+
total: e.number(),
|
|
881
|
+
offset: e.number(),
|
|
882
|
+
limit: e.number()
|
|
883
|
+
});
|
|
884
|
+
e.object({
|
|
885
|
+
items: e.array(Lt),
|
|
886
|
+
meta: U
|
|
887
|
+
});
|
|
888
|
+
e.object({
|
|
889
|
+
detail: e.string().optional(),
|
|
890
|
+
status: e.enum(["404"]),
|
|
891
|
+
code: e.enum(["user_not_found"])
|
|
892
|
+
});
|
|
893
|
+
e.object({
|
|
894
|
+
detail: e.string().optional(),
|
|
895
|
+
status: e.enum(["409"]),
|
|
896
|
+
code: e.enum(["user_connected_to_other_tenant"])
|
|
897
|
+
});
|
|
898
|
+
e.object({
|
|
899
|
+
userId: e.string()
|
|
900
|
+
});
|
|
901
|
+
const Re = e.enum([
|
|
902
|
+
"user",
|
|
903
|
+
"location",
|
|
904
|
+
"individual",
|
|
905
|
+
"business"
|
|
906
|
+
]);
|
|
907
|
+
e.object({
|
|
908
|
+
collections: e.array(e.enum([
|
|
909
|
+
"user",
|
|
910
|
+
"location",
|
|
911
|
+
"individual",
|
|
912
|
+
"business"
|
|
913
|
+
]))
|
|
914
|
+
});
|
|
915
|
+
const kt = e.enum([
|
|
916
|
+
"individual",
|
|
917
|
+
"business",
|
|
918
|
+
"deal"
|
|
919
|
+
]), Ot = e.object({
|
|
920
|
+
types: e.array(kt).optional()
|
|
921
|
+
}), Gt = e.object({
|
|
922
|
+
type: e.enum([
|
|
923
|
+
"individual",
|
|
924
|
+
"business",
|
|
925
|
+
"deal"
|
|
926
|
+
]),
|
|
927
|
+
uuid: e.uuid(),
|
|
928
|
+
name: e.string(),
|
|
929
|
+
createdAt: e.iso.datetime()
|
|
930
|
+
}), Ft = e.object({
|
|
931
|
+
items: e.array(Gt),
|
|
932
|
+
meta: U
|
|
933
|
+
});
|
|
934
|
+
e.object({
|
|
935
|
+
detail: e.string().optional(),
|
|
936
|
+
status: e.enum(["404"]),
|
|
937
|
+
code: e.enum(["tenant_with_domain_not_found"])
|
|
938
|
+
});
|
|
939
|
+
e.object({
|
|
940
|
+
baseUrl: e.string(),
|
|
941
|
+
clientId: e.string(),
|
|
942
|
+
organizationID: e.string(),
|
|
943
|
+
nativeClientId: e.string(),
|
|
944
|
+
brandColors: Y,
|
|
945
|
+
logoUrl: e.string().nullable()
|
|
946
|
+
});
|
|
947
|
+
e.object({
|
|
948
|
+
baseUrl: e.string(),
|
|
949
|
+
clientId: e.string(),
|
|
950
|
+
organizationID: e.string(),
|
|
951
|
+
nativeClientId: e.string(),
|
|
952
|
+
brandColors: Y
|
|
953
|
+
});
|
|
954
|
+
e.object({
|
|
955
|
+
environment: e.string(),
|
|
956
|
+
commit: e.string(),
|
|
957
|
+
version: e.string(),
|
|
958
|
+
timestamp: e.iso.datetime()
|
|
959
|
+
});
|
|
960
|
+
e.object({
|
|
961
|
+
roleUuids: e.array(e.uuid())
|
|
962
|
+
});
|
|
963
|
+
const Ue = e.object({
|
|
964
|
+
uuid: e.uuid(),
|
|
965
|
+
createdAt: e.iso.datetime(),
|
|
966
|
+
updatedAt: e.iso.datetime(),
|
|
967
|
+
name: e.string(),
|
|
968
|
+
permissions: e.array(O),
|
|
969
|
+
isDefault: e.boolean(),
|
|
970
|
+
isSystemAdmin: e.boolean()
|
|
971
|
+
});
|
|
972
|
+
e.object({
|
|
973
|
+
uuid: e.uuid(),
|
|
974
|
+
email: e.email().nullable(),
|
|
975
|
+
firstName: e.string().nullable(),
|
|
976
|
+
lastName: e.string().nullable(),
|
|
977
|
+
tenantUuid: e.uuid().nullable(),
|
|
978
|
+
roles: e.array(Ue)
|
|
979
|
+
});
|
|
980
|
+
e.object({
|
|
981
|
+
uuid: e.uuid(),
|
|
982
|
+
email: e.email().nullable(),
|
|
983
|
+
firstName: e.string().nullable(),
|
|
984
|
+
lastName: e.string().nullable(),
|
|
985
|
+
tenantUuid: e.uuid().nullable(),
|
|
986
|
+
roles: e.array(Ue)
|
|
987
|
+
});
|
|
988
|
+
const Kt = e.object({
|
|
989
|
+
uuid: e.uuid(),
|
|
990
|
+
name: e.string()
|
|
991
|
+
}), Qt = e.object({
|
|
992
|
+
uuid: e.uuid(),
|
|
993
|
+
email: e.email().nullable(),
|
|
994
|
+
firstName: e.string().nullable(),
|
|
995
|
+
lastName: e.string().nullable(),
|
|
996
|
+
roles: e.array(Kt)
|
|
997
|
+
}), Ht = e.object({
|
|
998
|
+
items: e.array(Qt),
|
|
999
|
+
meta: U
|
|
1000
|
+
});
|
|
1001
|
+
e.object({
|
|
1002
|
+
name: e.string()
|
|
1003
|
+
});
|
|
1004
|
+
e.object({
|
|
1005
|
+
uuid: e.uuid()
|
|
1006
|
+
});
|
|
1007
|
+
e.object({
|
|
1008
|
+
roleUuids: e.array(e.uuid()).nullish()
|
|
1009
|
+
});
|
|
1010
|
+
e.object({
|
|
1011
|
+
detail: e.string().optional(),
|
|
1012
|
+
status: e.enum(["404"]),
|
|
1013
|
+
code: e.enum(["role_not_found"])
|
|
1014
|
+
});
|
|
1015
|
+
e.object({
|
|
1016
|
+
name: e.string()
|
|
1017
|
+
});
|
|
1018
|
+
const Wt = e.object({
|
|
1019
|
+
uuid: e.uuid(),
|
|
1020
|
+
createdAt: e.iso.datetime(),
|
|
1021
|
+
updatedAt: e.iso.datetime(),
|
|
1022
|
+
name: e.string(),
|
|
1023
|
+
permissions: e.array(O),
|
|
1024
|
+
isDefault: e.boolean(),
|
|
1025
|
+
isSystemAdmin: e.boolean()
|
|
1026
|
+
});
|
|
1027
|
+
e.object({
|
|
1028
|
+
items: e.array(Wt)
|
|
1029
|
+
});
|
|
1030
|
+
const qt = e.object({
|
|
1031
|
+
roleUuid: e.uuid(),
|
|
1032
|
+
permissions: e.array(O)
|
|
1033
|
+
});
|
|
1034
|
+
e.object({
|
|
1035
|
+
roles: e.array(qt)
|
|
1036
|
+
});
|
|
1037
|
+
const E = e.enum([
|
|
1038
|
+
"application/pdf",
|
|
1039
|
+
"application/msword",
|
|
1040
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
1041
|
+
"application/vnd.ms-powerpoint",
|
|
1042
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
1043
|
+
"text/plain",
|
|
1044
|
+
"text/html",
|
|
1045
|
+
"text/csv",
|
|
1046
|
+
"image/jpeg",
|
|
1047
|
+
"image/png",
|
|
1048
|
+
"image/tiff",
|
|
1049
|
+
"image/bmp",
|
|
1050
|
+
"image/heic",
|
|
1051
|
+
"image/webp",
|
|
1052
|
+
"image/gif",
|
|
1053
|
+
"application/octet-stream"
|
|
1054
|
+
]), Jt = e.object({
|
|
1055
|
+
name: e.string(),
|
|
1056
|
+
mimeType: E,
|
|
1057
|
+
isPublic: e.boolean().optional().default(!1)
|
|
1058
|
+
}), Zt = e.object({
|
|
1059
|
+
uuid: e.uuid(),
|
|
1060
|
+
name: e.string(),
|
|
1061
|
+
mimeType: E.nullable(),
|
|
1062
|
+
uploadUrl: e.string()
|
|
1063
|
+
});
|
|
1064
|
+
e.object({
|
|
1065
|
+
detail: e.string().optional(),
|
|
1066
|
+
status: e.enum(["404"]),
|
|
1067
|
+
code: e.enum(["file_not_found"])
|
|
1068
|
+
});
|
|
1069
|
+
const Yt = e.object({
|
|
1070
|
+
blurHash: e.string().max(100).nullable()
|
|
1071
|
+
}), Ne = e.enum([
|
|
1072
|
+
"light",
|
|
1073
|
+
"dark",
|
|
1074
|
+
"system"
|
|
1075
|
+
]), Be = e.enum([
|
|
1076
|
+
"smaller",
|
|
1077
|
+
"small",
|
|
1078
|
+
"default",
|
|
1079
|
+
"large",
|
|
1080
|
+
"larger"
|
|
1081
|
+
]);
|
|
1082
|
+
e.object({
|
|
1083
|
+
theme: Ne.optional(),
|
|
1084
|
+
language: I.optional(),
|
|
1085
|
+
fontSize: Be.optional(),
|
|
1086
|
+
showShortcuts: e.boolean().optional(),
|
|
1087
|
+
reduceMotion: e.boolean().optional(),
|
|
1088
|
+
highContrast: e.boolean().optional()
|
|
1089
|
+
});
|
|
1090
|
+
e.object({
|
|
1091
|
+
theme: Ne,
|
|
1092
|
+
language: I,
|
|
1093
|
+
fontSize: Be,
|
|
1094
|
+
showShortcuts: e.boolean(),
|
|
1095
|
+
reduceMotion: e.boolean(),
|
|
1096
|
+
highContrast: e.boolean()
|
|
1097
|
+
});
|
|
1098
|
+
e.object({
|
|
1099
|
+
token: e.string(),
|
|
1100
|
+
userUuid: e.uuid()
|
|
1101
|
+
});
|
|
1102
|
+
const be = e.object({
|
|
1103
|
+
nl: e.string().optional(),
|
|
1104
|
+
en: e.string().optional()
|
|
1105
|
+
});
|
|
1106
|
+
e.object({
|
|
1107
|
+
name: e.string(),
|
|
1108
|
+
title: be,
|
|
1109
|
+
description: be,
|
|
1110
|
+
userUuids: e.array(e.uuid())
|
|
1111
|
+
});
|
|
1112
|
+
const Pe = e.enum([
|
|
1113
|
+
"user",
|
|
1114
|
+
"file",
|
|
1115
|
+
"location",
|
|
1116
|
+
"contact_person",
|
|
1117
|
+
"individual",
|
|
1118
|
+
"business",
|
|
1119
|
+
"role",
|
|
1120
|
+
"contact",
|
|
1121
|
+
"tenant",
|
|
1122
|
+
"note",
|
|
1123
|
+
"note_file",
|
|
1124
|
+
"board_column",
|
|
1125
|
+
"mail_template",
|
|
1126
|
+
"deal",
|
|
1127
|
+
"deal.contact.person",
|
|
1128
|
+
"mail"
|
|
1129
|
+
]), $t = e.object({
|
|
1130
|
+
subjectTypes: e.array(Pe).optional(),
|
|
1131
|
+
subjectId: e.uuid().optional(),
|
|
1132
|
+
userUuid: e.uuid().optional()
|
|
1133
|
+
}), Ae = e.object({
|
|
1134
|
+
createdAt: e.string(),
|
|
1135
|
+
uuid: e.uuid()
|
|
1136
|
+
}), Ct = e.object({
|
|
1137
|
+
limit: e.number().gte(0).lte(100),
|
|
1138
|
+
key: Ae.nullish()
|
|
1139
|
+
}), $ = e.enum([
|
|
1140
|
+
"file.created",
|
|
1141
|
+
"file.uploaded",
|
|
1142
|
+
"notification.created",
|
|
1143
|
+
"notification.read",
|
|
1144
|
+
"notification.read.all",
|
|
1145
|
+
"notification.unread",
|
|
1146
|
+
"notification.types.migrated",
|
|
1147
|
+
"notification.preference.preset.updated",
|
|
1148
|
+
"role.created",
|
|
1149
|
+
"role.deleted",
|
|
1150
|
+
"role.renamed",
|
|
1151
|
+
"role.permissions.updated",
|
|
1152
|
+
"role.permissions.cache.cleared",
|
|
1153
|
+
"test-notification.sent",
|
|
1154
|
+
"tenant.created",
|
|
1155
|
+
"tenant.updated",
|
|
1156
|
+
"user.created",
|
|
1157
|
+
"user.updated",
|
|
1158
|
+
"user.assigned-as-admin",
|
|
1159
|
+
"user.role-assigned",
|
|
1160
|
+
"user.roles-set",
|
|
1161
|
+
"user.notification.created",
|
|
1162
|
+
"user.default-notification-preferences.assigned",
|
|
1163
|
+
"location.created",
|
|
1164
|
+
"location.updated",
|
|
1165
|
+
"individual.created",
|
|
1166
|
+
"individual.updated",
|
|
1167
|
+
"individual.status.updated",
|
|
1168
|
+
"individual-user-grant.created",
|
|
1169
|
+
"individual-user-grant.email-verified",
|
|
1170
|
+
"business.created",
|
|
1171
|
+
"business.updated",
|
|
1172
|
+
"business.status.updated",
|
|
1173
|
+
"individual.contact-person.linked",
|
|
1174
|
+
"individual.contact-person.unlinked",
|
|
1175
|
+
"individual.contact-person.updated",
|
|
1176
|
+
"individual.contact-person.made-primary",
|
|
1177
|
+
"business.contact-person.linked",
|
|
1178
|
+
"business.contact-person.unlinked",
|
|
1179
|
+
"business.contact-person.updated",
|
|
1180
|
+
"business.contact-person.made-primary",
|
|
1181
|
+
"business.billing-information.upserted",
|
|
1182
|
+
"individual.billing-information.upserted",
|
|
1183
|
+
"business.note.created",
|
|
1184
|
+
"business.note.updated",
|
|
1185
|
+
"business.note.deleted",
|
|
1186
|
+
"individual.note.created",
|
|
1187
|
+
"individual.note.updated",
|
|
1188
|
+
"individual.note.deleted",
|
|
1189
|
+
"deal.note.created",
|
|
1190
|
+
"deal.note.updated",
|
|
1191
|
+
"deal.note.deleted",
|
|
1192
|
+
"individual.note.file.added",
|
|
1193
|
+
"individual.note.file.deleted",
|
|
1194
|
+
"business.note.file.added",
|
|
1195
|
+
"business.note.file.deleted",
|
|
1196
|
+
"deal.note.file.added",
|
|
1197
|
+
"deal.note.file.deleted",
|
|
1198
|
+
"board-column.created",
|
|
1199
|
+
"board-column-transition.created",
|
|
1200
|
+
"board-column-transition-trigger.created",
|
|
1201
|
+
"deal.created",
|
|
1202
|
+
"deal.column.transitioned",
|
|
1203
|
+
"deal.updated",
|
|
1204
|
+
"deal.deleted",
|
|
1205
|
+
"deal.contact.person.linked",
|
|
1206
|
+
"deal.contact.person.unlinked",
|
|
1207
|
+
"deal.contact.person.made-primary",
|
|
1208
|
+
"deal.owner.updated",
|
|
1209
|
+
"deal.contact.person.updated",
|
|
1210
|
+
"mail.template.created",
|
|
1211
|
+
"mail.template.updated",
|
|
1212
|
+
"mail.created",
|
|
1213
|
+
"mail.sent"
|
|
1214
|
+
]), Xt = e.object({
|
|
1215
|
+
uuid: e.uuid(),
|
|
1216
|
+
createdAt: e.iso.datetime(),
|
|
1217
|
+
version: e.int().gte(0),
|
|
1218
|
+
source: e.string(),
|
|
1219
|
+
userUuid: e.uuid().nullable(),
|
|
1220
|
+
message: e.string(),
|
|
1221
|
+
type: $,
|
|
1222
|
+
subjectType: Pe.nullable(),
|
|
1223
|
+
subjectId: e.uuid().nullable(),
|
|
1224
|
+
content: e.record(e.string(), e.unknown())
|
|
1225
|
+
}), en = e.object({
|
|
1226
|
+
next: Ae.nullable()
|
|
1227
|
+
});
|
|
1228
|
+
e.object({
|
|
1229
|
+
items: e.array(Xt),
|
|
1230
|
+
meta: en
|
|
1231
|
+
});
|
|
1232
|
+
const tn = e.object({
|
|
1233
|
+
isActive: e.boolean().optional()
|
|
1234
|
+
}), nn = e.object({
|
|
1235
|
+
collections: e.array(e.enum([
|
|
1236
|
+
"user",
|
|
1237
|
+
"business",
|
|
1238
|
+
"individual"
|
|
1239
|
+
])).optional(),
|
|
1240
|
+
contact: tn.optional()
|
|
1241
|
+
}), we = e.object({
|
|
1242
|
+
offset: e.int()
|
|
1243
|
+
}), an = e.object({
|
|
1244
|
+
key: we.optional(),
|
|
1245
|
+
maxResultsPerCollection: e.number().gte(1).lte(20).optional()
|
|
1246
|
+
}), sn = e.object({
|
|
1247
|
+
uuid: e.uuid(),
|
|
1248
|
+
name: e.string(),
|
|
1249
|
+
email: e.email().nullable()
|
|
1250
|
+
}), on = e.object({
|
|
1251
|
+
textMatch: e.number(),
|
|
1252
|
+
collection: e.enum(["user"]),
|
|
1253
|
+
entity: sn
|
|
1254
|
+
}), C = e.enum([
|
|
1255
|
+
"AF",
|
|
1256
|
+
"AL",
|
|
1257
|
+
"DZ",
|
|
1258
|
+
"AD",
|
|
1259
|
+
"AO",
|
|
1260
|
+
"AG",
|
|
1261
|
+
"AR",
|
|
1262
|
+
"AM",
|
|
1263
|
+
"AU",
|
|
1264
|
+
"AT",
|
|
1265
|
+
"AZ",
|
|
1266
|
+
"BS",
|
|
1267
|
+
"BH",
|
|
1268
|
+
"BD",
|
|
1269
|
+
"BB",
|
|
1270
|
+
"BY",
|
|
1271
|
+
"BE",
|
|
1272
|
+
"BZ",
|
|
1273
|
+
"BJ",
|
|
1274
|
+
"BT",
|
|
1275
|
+
"BO",
|
|
1276
|
+
"BA",
|
|
1277
|
+
"BW",
|
|
1278
|
+
"BR",
|
|
1279
|
+
"BN",
|
|
1280
|
+
"BG",
|
|
1281
|
+
"BF",
|
|
1282
|
+
"BI",
|
|
1283
|
+
"KH",
|
|
1284
|
+
"CM",
|
|
1285
|
+
"CA",
|
|
1286
|
+
"CV",
|
|
1287
|
+
"CF",
|
|
1288
|
+
"TD",
|
|
1289
|
+
"CL",
|
|
1290
|
+
"CN",
|
|
1291
|
+
"CO",
|
|
1292
|
+
"KM",
|
|
1293
|
+
"CG",
|
|
1294
|
+
"CR",
|
|
1295
|
+
"HR",
|
|
1296
|
+
"CU",
|
|
1297
|
+
"CY",
|
|
1298
|
+
"CZ",
|
|
1299
|
+
"DK",
|
|
1300
|
+
"DJ",
|
|
1301
|
+
"DM",
|
|
1302
|
+
"DO",
|
|
1303
|
+
"EC",
|
|
1304
|
+
"EG",
|
|
1305
|
+
"SV",
|
|
1306
|
+
"GQ",
|
|
1307
|
+
"ER",
|
|
1308
|
+
"EE",
|
|
1309
|
+
"ET",
|
|
1310
|
+
"FJ",
|
|
1311
|
+
"FI",
|
|
1312
|
+
"FR",
|
|
1313
|
+
"GA",
|
|
1314
|
+
"GM",
|
|
1315
|
+
"GE",
|
|
1316
|
+
"DE",
|
|
1317
|
+
"GH",
|
|
1318
|
+
"GR",
|
|
1319
|
+
"GD",
|
|
1320
|
+
"GT",
|
|
1321
|
+
"GN",
|
|
1322
|
+
"GW",
|
|
1323
|
+
"GY",
|
|
1324
|
+
"HT",
|
|
1325
|
+
"HN",
|
|
1326
|
+
"HU",
|
|
1327
|
+
"IS",
|
|
1328
|
+
"IN",
|
|
1329
|
+
"ID",
|
|
1330
|
+
"IR",
|
|
1331
|
+
"IQ",
|
|
1332
|
+
"IE",
|
|
1333
|
+
"IL",
|
|
1334
|
+
"IT",
|
|
1335
|
+
"JM",
|
|
1336
|
+
"JP",
|
|
1337
|
+
"JO",
|
|
1338
|
+
"KZ",
|
|
1339
|
+
"KE",
|
|
1340
|
+
"KI",
|
|
1341
|
+
"KP",
|
|
1342
|
+
"KR",
|
|
1343
|
+
"KW",
|
|
1344
|
+
"KG",
|
|
1345
|
+
"LA",
|
|
1346
|
+
"LV",
|
|
1347
|
+
"LB",
|
|
1348
|
+
"LS",
|
|
1349
|
+
"LR",
|
|
1350
|
+
"LY",
|
|
1351
|
+
"LI",
|
|
1352
|
+
"LT",
|
|
1353
|
+
"LU",
|
|
1354
|
+
"MG",
|
|
1355
|
+
"MW",
|
|
1356
|
+
"MY",
|
|
1357
|
+
"MV",
|
|
1358
|
+
"ML",
|
|
1359
|
+
"MT",
|
|
1360
|
+
"MH",
|
|
1361
|
+
"MR",
|
|
1362
|
+
"MU",
|
|
1363
|
+
"MX",
|
|
1364
|
+
"FM",
|
|
1365
|
+
"MD",
|
|
1366
|
+
"MC",
|
|
1367
|
+
"MN",
|
|
1368
|
+
"ME",
|
|
1369
|
+
"MA",
|
|
1370
|
+
"MZ",
|
|
1371
|
+
"MM",
|
|
1372
|
+
"NA",
|
|
1373
|
+
"NR",
|
|
1374
|
+
"NP",
|
|
1375
|
+
"NL",
|
|
1376
|
+
"NZ",
|
|
1377
|
+
"NI",
|
|
1378
|
+
"NE",
|
|
1379
|
+
"NG",
|
|
1380
|
+
"XI",
|
|
1381
|
+
"MK",
|
|
1382
|
+
"NO",
|
|
1383
|
+
"OM",
|
|
1384
|
+
"PK",
|
|
1385
|
+
"PW",
|
|
1386
|
+
"PA",
|
|
1387
|
+
"PG",
|
|
1388
|
+
"PY",
|
|
1389
|
+
"PE",
|
|
1390
|
+
"PH",
|
|
1391
|
+
"PL",
|
|
1392
|
+
"PT",
|
|
1393
|
+
"QA",
|
|
1394
|
+
"RO",
|
|
1395
|
+
"RU",
|
|
1396
|
+
"RW",
|
|
1397
|
+
"KN",
|
|
1398
|
+
"LC",
|
|
1399
|
+
"VC",
|
|
1400
|
+
"WS",
|
|
1401
|
+
"SM",
|
|
1402
|
+
"ST",
|
|
1403
|
+
"SA",
|
|
1404
|
+
"SN",
|
|
1405
|
+
"RS",
|
|
1406
|
+
"SC",
|
|
1407
|
+
"SL",
|
|
1408
|
+
"SG",
|
|
1409
|
+
"SK",
|
|
1410
|
+
"SI",
|
|
1411
|
+
"SB",
|
|
1412
|
+
"SO",
|
|
1413
|
+
"ZA",
|
|
1414
|
+
"SS",
|
|
1415
|
+
"ES",
|
|
1416
|
+
"LK",
|
|
1417
|
+
"SD",
|
|
1418
|
+
"SR",
|
|
1419
|
+
"SE",
|
|
1420
|
+
"CH",
|
|
1421
|
+
"SY",
|
|
1422
|
+
"TW",
|
|
1423
|
+
"TJ",
|
|
1424
|
+
"TZ",
|
|
1425
|
+
"TH",
|
|
1426
|
+
"TL",
|
|
1427
|
+
"TG",
|
|
1428
|
+
"TO",
|
|
1429
|
+
"TT",
|
|
1430
|
+
"TN",
|
|
1431
|
+
"TR",
|
|
1432
|
+
"TM",
|
|
1433
|
+
"TV",
|
|
1434
|
+
"UG",
|
|
1435
|
+
"UA",
|
|
1436
|
+
"AE",
|
|
1437
|
+
"GB",
|
|
1438
|
+
"US",
|
|
1439
|
+
"UY",
|
|
1440
|
+
"UZ",
|
|
1441
|
+
"VU",
|
|
1442
|
+
"VA",
|
|
1443
|
+
"VE",
|
|
1444
|
+
"VN",
|
|
1445
|
+
"YE",
|
|
1446
|
+
"ZM",
|
|
1447
|
+
"ZW"
|
|
1448
|
+
]), K = e.object({
|
|
1449
|
+
countryCode: C,
|
|
1450
|
+
number: e.string()
|
|
1451
|
+
}), ln = e.object({
|
|
1452
|
+
longitude: e.number(),
|
|
1453
|
+
latitude: e.number()
|
|
1454
|
+
}), D = e.object({
|
|
1455
|
+
placeName: e.string().nullable(),
|
|
1456
|
+
placeId: e.string().nullable(),
|
|
1457
|
+
country: e.string().nullable(),
|
|
1458
|
+
countryCode: e.string().nullable(),
|
|
1459
|
+
city: e.string().nullable(),
|
|
1460
|
+
postalCode: e.string().nullable(),
|
|
1461
|
+
streetName: e.string().nullable(),
|
|
1462
|
+
streetNumber: e.string().nullable(),
|
|
1463
|
+
unit: e.string().nullable(),
|
|
1464
|
+
coordinates: ln.nullable()
|
|
1465
|
+
}), rn = e.object({
|
|
1466
|
+
uuid: e.uuid(),
|
|
1467
|
+
name: e.string(),
|
|
1468
|
+
vatNumber: K.nullable(),
|
|
1469
|
+
address: D,
|
|
1470
|
+
parentName: e.string().nullable()
|
|
1471
|
+
}), un = e.object({
|
|
1472
|
+
textMatch: e.number(),
|
|
1473
|
+
collection: e.enum(["business"]),
|
|
1474
|
+
entity: rn
|
|
1475
|
+
}), cn = e.object({
|
|
1476
|
+
uuid: e.uuid(),
|
|
1477
|
+
name: e.string(),
|
|
1478
|
+
email: e.string().nullable(),
|
|
1479
|
+
phone: e.string().nullable(),
|
|
1480
|
+
mobilePhone: e.string().nullable(),
|
|
1481
|
+
address: D.nullable()
|
|
1482
|
+
}), dn = e.object({
|
|
1483
|
+
textMatch: e.number(),
|
|
1484
|
+
collection: e.enum(["individual"]),
|
|
1485
|
+
entity: cn
|
|
1486
|
+
}), bn = e.object({
|
|
1487
|
+
next: we.nullable()
|
|
1488
|
+
}), mn = e.object({
|
|
1489
|
+
items: e.array(e.union([
|
|
1490
|
+
on,
|
|
1491
|
+
un,
|
|
1492
|
+
dn
|
|
1493
|
+
])),
|
|
1494
|
+
meta: bn
|
|
1495
|
+
}), Te = e.enum([
|
|
1496
|
+
"all",
|
|
1497
|
+
"default",
|
|
1498
|
+
"custom",
|
|
1499
|
+
"none"
|
|
1500
|
+
]), B = e.enum(["user.created", "system.test-notification"]), gn = e.object({
|
|
1501
|
+
email: e.array(B),
|
|
1502
|
+
sms: e.array(B),
|
|
1503
|
+
app: e.array(B),
|
|
1504
|
+
push: e.array(B)
|
|
1505
|
+
});
|
|
1506
|
+
e.object({
|
|
1507
|
+
preset: Te,
|
|
1508
|
+
emailEnabled: e.boolean(),
|
|
1509
|
+
smsEnabled: e.boolean(),
|
|
1510
|
+
appEnabled: e.boolean(),
|
|
1511
|
+
pushEnabled: e.boolean(),
|
|
1512
|
+
preferences: gn
|
|
1513
|
+
});
|
|
1514
|
+
const X = e.enum([
|
|
1515
|
+
"email",
|
|
1516
|
+
"sms",
|
|
1517
|
+
"app",
|
|
1518
|
+
"push"
|
|
1519
|
+
]), pn = e.object({
|
|
1520
|
+
channel: X,
|
|
1521
|
+
defaultValue: e.boolean(),
|
|
1522
|
+
isSupported: e.boolean()
|
|
1523
|
+
}), fn = e.object({
|
|
1524
|
+
key: B,
|
|
1525
|
+
description: e.string(),
|
|
1526
|
+
channelConfigs: e.array(pn)
|
|
1527
|
+
}), jn = e.object({
|
|
1528
|
+
name: e.string(),
|
|
1529
|
+
description: e.string(),
|
|
1530
|
+
types: e.array(fn)
|
|
1531
|
+
});
|
|
1532
|
+
e.object({
|
|
1533
|
+
groups: e.array(jn)
|
|
1534
|
+
});
|
|
1535
|
+
e.object({
|
|
1536
|
+
channel: X,
|
|
1537
|
+
isEnabled: e.boolean()
|
|
1538
|
+
});
|
|
1539
|
+
const zn = e.object({
|
|
1540
|
+
onlyUnread: e.string().optional()
|
|
1541
|
+
}), Ee = e.object({
|
|
1542
|
+
createdAt: e.string(),
|
|
1543
|
+
notificationUuid: e.uuid()
|
|
1544
|
+
}), hn = e.object({
|
|
1545
|
+
limit: e.number().gte(0).lte(100),
|
|
1546
|
+
key: Ee.nullish()
|
|
1547
|
+
}), In = e.object({
|
|
1548
|
+
uuid: e.uuid(),
|
|
1549
|
+
name: e.string()
|
|
1550
|
+
}), yn = e.object({
|
|
1551
|
+
message: e.string()
|
|
1552
|
+
}), vn = e.object({
|
|
1553
|
+
createdAt: e.iso.datetime(),
|
|
1554
|
+
readAt: e.iso.datetime().nullable(),
|
|
1555
|
+
notificationUuid: e.uuid(),
|
|
1556
|
+
createdByUser: In.nullable(),
|
|
1557
|
+
message: e.string(),
|
|
1558
|
+
type: e.enum(["system.test-notification"]),
|
|
1559
|
+
meta: yn
|
|
1560
|
+
}), Vn = e.object({
|
|
1561
|
+
next: Ee.nullable()
|
|
1562
|
+
});
|
|
1563
|
+
e.object({
|
|
1564
|
+
items: e.array(vn),
|
|
1565
|
+
meta: Vn
|
|
1566
|
+
});
|
|
1567
|
+
e.object({
|
|
1568
|
+
amount: e.number().gte(0),
|
|
1569
|
+
exceedsLimit: e.boolean()
|
|
1570
|
+
});
|
|
1571
|
+
e.object({
|
|
1572
|
+
detail: e.string().optional(),
|
|
1573
|
+
status: e.enum(["404"]),
|
|
1574
|
+
code: e.enum(["user_notification_not_found"])
|
|
1575
|
+
});
|
|
1576
|
+
e.object({
|
|
1577
|
+
channel: X,
|
|
1578
|
+
isEnabled: e.boolean(),
|
|
1579
|
+
types: e.array(B)
|
|
1580
|
+
});
|
|
1581
|
+
e.object({
|
|
1582
|
+
preset: Te
|
|
1583
|
+
});
|
|
1584
|
+
const Rn = e.object({
|
|
1585
|
+
type: e.array(B)
|
|
1586
|
+
});
|
|
1587
|
+
e.object({
|
|
1588
|
+
detail: e.string().optional(),
|
|
1589
|
+
status: e.enum(["400"]),
|
|
1590
|
+
code: e.enum(["migration_already_performed"]),
|
|
1591
|
+
meta: Rn
|
|
1592
|
+
});
|
|
1593
|
+
e.object({
|
|
1594
|
+
types: e.array(B)
|
|
1595
|
+
});
|
|
1596
|
+
e.object({
|
|
1597
|
+
message: e.string()
|
|
1598
|
+
});
|
|
1599
|
+
const Un = e.enum(["createdAt"]), _e = e.enum(["asc", "desc"]), Nn = e.object({
|
|
1600
|
+
key: Un,
|
|
1601
|
+
order: _e
|
|
1602
|
+
}), ee = e.enum(["system"]), Bn = e.object({
|
|
1603
|
+
queueNames: e.array(ee).optional()
|
|
1604
|
+
}), Se = e.object({
|
|
1605
|
+
createdAt: e.iso.datetime().optional(),
|
|
1606
|
+
id: e.string()
|
|
1607
|
+
}), Pn = e.object({
|
|
1608
|
+
limit: e.number().gte(0).lte(100),
|
|
1609
|
+
key: Se.nullish()
|
|
1610
|
+
}), De = e.enum([
|
|
1611
|
+
"created",
|
|
1612
|
+
"active",
|
|
1613
|
+
"completed",
|
|
1614
|
+
"retry",
|
|
1615
|
+
"failed",
|
|
1616
|
+
"cancelled"
|
|
1617
|
+
]), An = e.object({
|
|
1618
|
+
queueName: ee,
|
|
1619
|
+
id: e.uuid(),
|
|
1620
|
+
name: e.string(),
|
|
1621
|
+
status: De,
|
|
1622
|
+
createdAt: e.iso.datetime(),
|
|
1623
|
+
completedAt: e.iso.datetime().nullable()
|
|
1624
|
+
}), wn = e.object({
|
|
1625
|
+
next: Se.nullable()
|
|
1626
|
+
});
|
|
1627
|
+
e.object({
|
|
1628
|
+
items: e.array(An),
|
|
1629
|
+
meta: wn
|
|
1630
|
+
});
|
|
1631
|
+
e.object({
|
|
1632
|
+
detail: e.string().optional(),
|
|
1633
|
+
status: e.enum(["404"]),
|
|
1634
|
+
code: e.enum(["job_not_found"])
|
|
1635
|
+
});
|
|
1636
|
+
e.object({
|
|
1637
|
+
id: e.uuid(),
|
|
1638
|
+
queueName: ee,
|
|
1639
|
+
priority: e.number(),
|
|
1640
|
+
name: e.string(),
|
|
1641
|
+
data: e.record(e.string(), e.unknown()),
|
|
1642
|
+
status: De,
|
|
1643
|
+
retryLimit: e.number(),
|
|
1644
|
+
retryCount: e.number(),
|
|
1645
|
+
retryDelay: e.number(),
|
|
1646
|
+
retryBackoff: e.boolean(),
|
|
1647
|
+
startAfter: e.iso.datetime(),
|
|
1648
|
+
startedAt: e.iso.datetime().nullable(),
|
|
1649
|
+
singletonKey: e.string().nullable(),
|
|
1650
|
+
singletonOn: e.iso.datetime().nullable(),
|
|
1651
|
+
expireIn: e.record(e.string(), e.unknown()),
|
|
1652
|
+
createdAt: e.iso.datetime(),
|
|
1653
|
+
completedAt: e.iso.datetime().nullable(),
|
|
1654
|
+
keepUntil: e.iso.datetime(),
|
|
1655
|
+
output: e.record(e.string(), e.unknown()).nullable(),
|
|
1656
|
+
deadLetter: e.string().nullable(),
|
|
1657
|
+
policy: e.string().nullable()
|
|
1658
|
+
});
|
|
1659
|
+
const Tn = e.object({
|
|
1660
|
+
longitude: e.number(),
|
|
1661
|
+
latitude: e.number()
|
|
1662
|
+
}), A = e.object({
|
|
1663
|
+
placeName: e.string().nullable(),
|
|
1664
|
+
placeId: e.string().nullable(),
|
|
1665
|
+
country: e.string().nullable(),
|
|
1666
|
+
countryCode: e.string().nullish(),
|
|
1667
|
+
city: e.string().nullable(),
|
|
1668
|
+
postalCode: e.string().nullable(),
|
|
1669
|
+
streetName: e.string().nullable(),
|
|
1670
|
+
streetNumber: e.string().nullable(),
|
|
1671
|
+
unit: e.string().nullable(),
|
|
1672
|
+
coordinates: Tn.nullable()
|
|
1673
|
+
});
|
|
1674
|
+
e.object({
|
|
1675
|
+
address: A
|
|
1676
|
+
});
|
|
1677
|
+
e.object({
|
|
1678
|
+
uuid: e.uuid()
|
|
1679
|
+
});
|
|
1680
|
+
e.object({
|
|
1681
|
+
address: A
|
|
1682
|
+
});
|
|
1683
|
+
const _ = e.object({
|
|
1684
|
+
uuid: e.uuid(),
|
|
1685
|
+
createdAt: e.iso.datetime(),
|
|
1686
|
+
updatedAt: e.iso.datetime(),
|
|
1687
|
+
address: D
|
|
1688
|
+
});
|
|
1689
|
+
e.object({
|
|
1690
|
+
detail: e.string().optional(),
|
|
1691
|
+
status: e.enum(["400"]),
|
|
1692
|
+
code: e.enum(["coordinates_not_provided"])
|
|
1693
|
+
});
|
|
1694
|
+
const En = e.object({
|
|
1695
|
+
longitude: e.string(),
|
|
1696
|
+
latitude: e.string()
|
|
1697
|
+
}), _n = e.object({
|
|
1698
|
+
postalCodes: e.array(e.string()).optional(),
|
|
1699
|
+
coordinates: En.optional(),
|
|
1700
|
+
radiusInMeters: e.string().optional()
|
|
1701
|
+
}), Sn = e.enum(["coordinates"]), Dn = e.object({
|
|
1702
|
+
key: Sn,
|
|
1703
|
+
order: _e
|
|
1704
|
+
}), xn = e.object({
|
|
1705
|
+
uuid: e.uuid(),
|
|
1706
|
+
address: D.nullable()
|
|
1707
|
+
});
|
|
1708
|
+
e.object({
|
|
1709
|
+
items: e.array(xn),
|
|
1710
|
+
meta: U
|
|
1711
|
+
});
|
|
1712
|
+
e.object({
|
|
1713
|
+
detail: e.string().optional(),
|
|
1714
|
+
status: e.enum(["404"]),
|
|
1715
|
+
code: e.enum(["location_not_found"])
|
|
1716
|
+
});
|
|
1717
|
+
const Mn = e.object({
|
|
1718
|
+
uuid: e.string().optional(),
|
|
1719
|
+
firstName: e.string(),
|
|
1720
|
+
lastName: e.string(),
|
|
1721
|
+
email: e.string().nullable(),
|
|
1722
|
+
phone: e.string().nullable(),
|
|
1723
|
+
mobilePhone: e.string().nullable(),
|
|
1724
|
+
address: A.nullable(),
|
|
1725
|
+
customFields: e.record(e.string(), e.unknown()).nullable(),
|
|
1726
|
+
language: I.optional()
|
|
1727
|
+
}), Ln = e.object({
|
|
1728
|
+
uuid: e.uuid()
|
|
1729
|
+
});
|
|
1730
|
+
e.object({
|
|
1731
|
+
detail: e.string().optional(),
|
|
1732
|
+
status: e.enum(["404"]),
|
|
1733
|
+
code: e.enum(["individual_not_found"])
|
|
1734
|
+
});
|
|
1735
|
+
const kn = e.object({
|
|
1736
|
+
firstName: e.string(),
|
|
1737
|
+
lastName: e.string(),
|
|
1738
|
+
email: e.string().nullable(),
|
|
1739
|
+
phone: e.string().nullable(),
|
|
1740
|
+
mobilePhone: e.string().nullable(),
|
|
1741
|
+
address: A.nullish(),
|
|
1742
|
+
customFields: e.record(e.string(), e.unknown()).nullish(),
|
|
1743
|
+
language: I.optional()
|
|
1744
|
+
});
|
|
1745
|
+
e.object({
|
|
1746
|
+
status: F
|
|
1747
|
+
});
|
|
1748
|
+
const On = e.object({
|
|
1749
|
+
total: e.number(),
|
|
1750
|
+
monthlyPercentageGrowth: e.number().nullable(),
|
|
1751
|
+
monthlyAdded: e.number()
|
|
1752
|
+
}), Gn = e.object({
|
|
1753
|
+
uuid: e.uuid(),
|
|
1754
|
+
name: e.string(),
|
|
1755
|
+
language: I,
|
|
1756
|
+
email: e.string().nullable(),
|
|
1757
|
+
phone: e.string().nullable(),
|
|
1758
|
+
mobilePhone: e.string().nullable(),
|
|
1759
|
+
status: F,
|
|
1760
|
+
country: e.string().nullable(),
|
|
1761
|
+
city: e.string().nullable(),
|
|
1762
|
+
postalCode: e.string().nullable(),
|
|
1763
|
+
streetName: e.string().nullable(),
|
|
1764
|
+
streetNumber: e.string().nullable(),
|
|
1765
|
+
unit: e.string().nullable()
|
|
1766
|
+
}), Fn = e.object({
|
|
1767
|
+
items: e.array(Gn),
|
|
1768
|
+
meta: U
|
|
1769
|
+
}), Kn = e.object({
|
|
1770
|
+
uuid: e.uuid(),
|
|
1771
|
+
invoiceEmail: e.string().nullable(),
|
|
1772
|
+
invoiceCcEmails: e.array(e.string()),
|
|
1773
|
+
location: _.nullable()
|
|
1774
|
+
}), Qn = e.object({
|
|
1775
|
+
uuid: e.uuid(),
|
|
1776
|
+
firstName: e.string(),
|
|
1777
|
+
lastName: e.string(),
|
|
1778
|
+
email: e.email().nullable(),
|
|
1779
|
+
phone: e.string().nullable(),
|
|
1780
|
+
mobilePhone: e.string().nullable(),
|
|
1781
|
+
position: e.string().nullable(),
|
|
1782
|
+
isPrimary: e.boolean()
|
|
1783
|
+
}), Hn = e.object({
|
|
1784
|
+
uuid: e.uuid(),
|
|
1785
|
+
name: e.string(),
|
|
1786
|
+
position: e.string().nullable(),
|
|
1787
|
+
email: e.email().nullable(),
|
|
1788
|
+
phone: e.string().nullable(),
|
|
1789
|
+
mobilePhone: e.string().nullable()
|
|
1790
|
+
}), Wn = e.object({
|
|
1791
|
+
uuid: e.uuid(),
|
|
1792
|
+
createdAt: e.iso.datetime(),
|
|
1793
|
+
updatedAt: e.iso.datetime(),
|
|
1794
|
+
firstName: e.string(),
|
|
1795
|
+
lastName: e.string(),
|
|
1796
|
+
email: e.email().nullable(),
|
|
1797
|
+
phone: e.string().nullable(),
|
|
1798
|
+
mobilePhone: e.string().nullable(),
|
|
1799
|
+
location: _.nullable(),
|
|
1800
|
+
billingInformation: Kn.nullable(),
|
|
1801
|
+
contactPersons: e.array(Qn),
|
|
1802
|
+
linkedBusinesses: e.array(Hn),
|
|
1803
|
+
status: F,
|
|
1804
|
+
language: I,
|
|
1805
|
+
customFields: e.record(e.string(), e.unknown()).nullable()
|
|
1806
|
+
}), xe = e.object({
|
|
1807
|
+
createdAt: e.string(),
|
|
1808
|
+
uuid: e.uuid()
|
|
1809
|
+
}), qn = e.object({
|
|
1810
|
+
limit: e.number().gte(0).lte(100),
|
|
1811
|
+
key: xe.nullish()
|
|
1812
|
+
}), Me = e.object({
|
|
1813
|
+
key: e.string(),
|
|
1814
|
+
oldValue: e.union([
|
|
1815
|
+
e.string(),
|
|
1816
|
+
e.number(),
|
|
1817
|
+
e.boolean()
|
|
1818
|
+
]).nullable(),
|
|
1819
|
+
newValue: e.union([
|
|
1820
|
+
e.string(),
|
|
1821
|
+
e.number(),
|
|
1822
|
+
e.boolean()
|
|
1823
|
+
]).nullable()
|
|
1824
|
+
}), Jn = e.object({
|
|
1825
|
+
createdAt: e.iso.datetime(),
|
|
1826
|
+
type: $,
|
|
1827
|
+
message: e.string(),
|
|
1828
|
+
userUuid: e.string().nullable(),
|
|
1829
|
+
changes: e.array(Me),
|
|
1830
|
+
changedBy: e.string(),
|
|
1831
|
+
content: e.record(e.string(), e.unknown())
|
|
1832
|
+
}), Zn = e.object({
|
|
1833
|
+
next: xe.nullable()
|
|
1834
|
+
}), Yn = e.object({
|
|
1835
|
+
items: e.array(Jn),
|
|
1836
|
+
meta: Zn
|
|
1837
|
+
});
|
|
1838
|
+
e.object({
|
|
1839
|
+
detail: e.string().optional(),
|
|
1840
|
+
status: e.enum(["400"]),
|
|
1841
|
+
code: e.enum(["invalid_vat_number"])
|
|
1842
|
+
});
|
|
1843
|
+
e.object({
|
|
1844
|
+
detail: e.string().optional(),
|
|
1845
|
+
status: e.enum(["400"]),
|
|
1846
|
+
code: e.enum(["invalid_business_individual"])
|
|
1847
|
+
});
|
|
1848
|
+
e.object({
|
|
1849
|
+
detail: e.string().optional(),
|
|
1850
|
+
status: e.enum(["409"]),
|
|
1851
|
+
code: e.enum(["business_vat_number_already_exists"])
|
|
1852
|
+
});
|
|
1853
|
+
const $n = e.object({
|
|
1854
|
+
firstName: e.string(),
|
|
1855
|
+
lastName: e.string(),
|
|
1856
|
+
email: e.string().nullable(),
|
|
1857
|
+
phone: e.string().nullable(),
|
|
1858
|
+
mobilePhone: e.string().nullable()
|
|
1859
|
+
}), Q = e.object({
|
|
1860
|
+
countryCode: C,
|
|
1861
|
+
number: e.string()
|
|
1862
|
+
}), Cn = e.object({
|
|
1863
|
+
uuid: e.string().optional(),
|
|
1864
|
+
name: e.string(),
|
|
1865
|
+
email: e.string().nullish(),
|
|
1866
|
+
phone: e.string().nullish(),
|
|
1867
|
+
mobilePhone: e.string().nullish(),
|
|
1868
|
+
individual: $n.nullable(),
|
|
1869
|
+
individualUuid: e.uuid().nullable(),
|
|
1870
|
+
individualPosition: e.string().nullable(),
|
|
1871
|
+
vatNumber: Q.nullable(),
|
|
1872
|
+
companyNumber: e.string().nullable(),
|
|
1873
|
+
address: A,
|
|
1874
|
+
customFields: e.record(e.string(), e.unknown()).nullable(),
|
|
1875
|
+
language: I.optional(),
|
|
1876
|
+
parentUuid: e.string().nullable(),
|
|
1877
|
+
childUuid: e.string().nullable()
|
|
1878
|
+
}), Xn = e.object({
|
|
1879
|
+
uuid: e.uuid()
|
|
1880
|
+
});
|
|
1881
|
+
e.object({
|
|
1882
|
+
detail: e.string().optional(),
|
|
1883
|
+
status: e.enum(["503"]),
|
|
1884
|
+
code: e.enum(["kbo_validation_service_unavailable"])
|
|
1885
|
+
});
|
|
1886
|
+
e.object({
|
|
1887
|
+
detail: e.string().optional(),
|
|
1888
|
+
status: e.enum(["503"]),
|
|
1889
|
+
code: e.enum(["vies_service_unavailable"])
|
|
1890
|
+
});
|
|
1891
|
+
const ei = e.object({
|
|
1892
|
+
countryCode: C,
|
|
1893
|
+
vatNumber: e.string(),
|
|
1894
|
+
requestDate: e.iso.datetime(),
|
|
1895
|
+
isValid: e.boolean(),
|
|
1896
|
+
requestIdentifier: e.string().nullable(),
|
|
1897
|
+
name: e.string().nullable(),
|
|
1898
|
+
address: e.string().nullable(),
|
|
1899
|
+
traderName: e.string().nullable(),
|
|
1900
|
+
traderStreet: e.string().nullable(),
|
|
1901
|
+
traderPostalCode: e.string().nullable(),
|
|
1902
|
+
traderCity: e.string().nullable(),
|
|
1903
|
+
traderCompanyType: e.string().nullable(),
|
|
1904
|
+
traderNameMatch: e.string().nullable(),
|
|
1905
|
+
traderStreetMatch: e.string().nullable(),
|
|
1906
|
+
traderPostalCodeMatch: e.string().nullable(),
|
|
1907
|
+
traderCityMatch: e.string().nullable(),
|
|
1908
|
+
traderCompanyTypeMatch: e.string().nullable()
|
|
1909
|
+
});
|
|
1910
|
+
e.object({
|
|
1911
|
+
detail: e.string().optional(),
|
|
1912
|
+
status: e.enum(["404"]),
|
|
1913
|
+
code: e.enum(["business_not_found"])
|
|
1914
|
+
});
|
|
1915
|
+
const ti = e.object({
|
|
1916
|
+
name: e.string(),
|
|
1917
|
+
email: e.string().nullable(),
|
|
1918
|
+
phone: e.string().nullable(),
|
|
1919
|
+
mobilePhone: e.string().nullable(),
|
|
1920
|
+
vatNumber: Q.nullable(),
|
|
1921
|
+
companyNumber: e.string().nullable(),
|
|
1922
|
+
address: A,
|
|
1923
|
+
customFields: e.record(e.string(), e.unknown()).nullable(),
|
|
1924
|
+
language: I
|
|
1925
|
+
});
|
|
1926
|
+
e.object({
|
|
1927
|
+
status: Z
|
|
1928
|
+
});
|
|
1929
|
+
const ni = e.object({
|
|
1930
|
+
total: e.number(),
|
|
1931
|
+
monthlyPercentageGrowth: e.number(),
|
|
1932
|
+
monthlyAdded: e.number()
|
|
1933
|
+
}), ii = e.object({
|
|
1934
|
+
uuid: e.uuid(),
|
|
1935
|
+
name: e.string(),
|
|
1936
|
+
language: I,
|
|
1937
|
+
email: e.string().nullable(),
|
|
1938
|
+
phone: e.string().nullable(),
|
|
1939
|
+
mobilePhone: e.string().nullable(),
|
|
1940
|
+
vatNumber: K.nullable(),
|
|
1941
|
+
companyNumber: e.string().nullable(),
|
|
1942
|
+
parentName: e.string().nullable(),
|
|
1943
|
+
country: e.string().nullable(),
|
|
1944
|
+
city: e.string().nullable(),
|
|
1945
|
+
postalCode: e.string().nullable(),
|
|
1946
|
+
streetName: e.string().nullable(),
|
|
1947
|
+
streetNumber: e.string().nullable(),
|
|
1948
|
+
unit: e.string().nullable()
|
|
1949
|
+
}), ai = e.object({
|
|
1950
|
+
items: e.array(ii),
|
|
1951
|
+
meta: U
|
|
1952
|
+
}), si = e.object({
|
|
1953
|
+
uuid: e.uuid(),
|
|
1954
|
+
invoiceEmail: e.string().nullable(),
|
|
1955
|
+
invoiceCcEmails: e.array(e.string()),
|
|
1956
|
+
reminderEmail: e.string().nullable(),
|
|
1957
|
+
reminderCcEmails: e.array(e.string()),
|
|
1958
|
+
purchaseNoteEmail: e.string().nullable(),
|
|
1959
|
+
purchaseNoteCcEmails: e.array(e.string()),
|
|
1960
|
+
location: _.nullable()
|
|
1961
|
+
}), oi = e.object({
|
|
1962
|
+
uuid: e.uuid(),
|
|
1963
|
+
firstName: e.string(),
|
|
1964
|
+
lastName: e.string(),
|
|
1965
|
+
email: e.email().nullable(),
|
|
1966
|
+
phone: e.string().nullable(),
|
|
1967
|
+
mobilePhone: e.string().nullable(),
|
|
1968
|
+
position: e.string().nullable(),
|
|
1969
|
+
isPrimary: e.boolean()
|
|
1970
|
+
}), me = e.object({
|
|
1971
|
+
uuid: e.uuid(),
|
|
1972
|
+
name: e.string(),
|
|
1973
|
+
createdAt: e.iso.datetime(),
|
|
1974
|
+
updatedAt: e.iso.datetime(),
|
|
1975
|
+
email: e.string().nullable(),
|
|
1976
|
+
phone: e.string().nullable(),
|
|
1977
|
+
mobilePhone: e.string().nullable(),
|
|
1978
|
+
vatNumber: K.nullable(),
|
|
1979
|
+
companyNumber: e.string().nullable(),
|
|
1980
|
+
location: _.nullable()
|
|
1981
|
+
}), li = e.object({
|
|
1982
|
+
uuid: e.uuid(),
|
|
1983
|
+
createdAt: e.iso.datetime(),
|
|
1984
|
+
updatedAt: e.iso.datetime(),
|
|
1985
|
+
name: e.string(),
|
|
1986
|
+
email: e.email().nullable(),
|
|
1987
|
+
phone: e.string().nullable(),
|
|
1988
|
+
mobilePhone: e.string().nullable(),
|
|
1989
|
+
vatNumber: K.nullable(),
|
|
1990
|
+
companyNumber: e.string().nullable(),
|
|
1991
|
+
location: _.nullable(),
|
|
1992
|
+
billingInformation: si.nullable(),
|
|
1993
|
+
contactPersons: e.array(oi),
|
|
1994
|
+
parent: me.nullable(),
|
|
1995
|
+
children: e.array(me),
|
|
1996
|
+
language: I,
|
|
1997
|
+
customFields: e.record(e.string(), e.unknown()).nullable()
|
|
1998
|
+
});
|
|
1999
|
+
e.object({
|
|
2000
|
+
detail: e.string().optional(),
|
|
2001
|
+
status: e.enum(["400"]),
|
|
2002
|
+
code: e.enum(["invalid_billing_information"])
|
|
2003
|
+
});
|
|
2004
|
+
const ri = e.object({
|
|
2005
|
+
billingAddress: A.nullish(),
|
|
2006
|
+
invoiceEmail: e.email().nullish(),
|
|
2007
|
+
invoiceCcEmails: e.array(e.email()).nullish(),
|
|
2008
|
+
reminderEmail: e.email().nullish(),
|
|
2009
|
+
reminderCcEmails: e.array(e.email()).nullish(),
|
|
2010
|
+
purchaseNoteEmail: e.email().nullish(),
|
|
2011
|
+
purchaseNoteCcEmails: e.array(e.email()).nullish()
|
|
2012
|
+
});
|
|
2013
|
+
e.object({
|
|
2014
|
+
detail: e.string().optional(),
|
|
2015
|
+
status: e.enum(["400"]),
|
|
2016
|
+
code: e.enum(["business_circular_reference"])
|
|
2017
|
+
});
|
|
2018
|
+
const Le = e.object({
|
|
2019
|
+
createdAt: e.string(),
|
|
2020
|
+
uuid: e.uuid()
|
|
2021
|
+
}), ui = e.object({
|
|
2022
|
+
limit: e.number().gte(0).lte(100),
|
|
2023
|
+
key: Le.nullish()
|
|
2024
|
+
}), ci = e.object({
|
|
2025
|
+
createdAt: e.iso.datetime(),
|
|
2026
|
+
type: $,
|
|
2027
|
+
message: e.string(),
|
|
2028
|
+
userUuid: e.string().nullable(),
|
|
2029
|
+
changes: e.array(Me),
|
|
2030
|
+
changedBy: e.string(),
|
|
2031
|
+
content: e.record(e.string(), e.unknown())
|
|
2032
|
+
}), di = e.object({
|
|
2033
|
+
next: Le.nullable()
|
|
2034
|
+
}), bi = e.object({
|
|
2035
|
+
items: e.array(ci),
|
|
2036
|
+
meta: di
|
|
2037
|
+
}), mi = e.object({
|
|
2038
|
+
uuid: e.uuid(),
|
|
2039
|
+
name: e.string(),
|
|
2040
|
+
address: D.nullable()
|
|
2041
|
+
}), gi = e.object({
|
|
2042
|
+
business: mi.nullable()
|
|
2043
|
+
});
|
|
2044
|
+
e.object({
|
|
2045
|
+
detail: e.string().optional(),
|
|
2046
|
+
status: e.enum(["400"]),
|
|
2047
|
+
code: e.enum(["note_must_have_entity"])
|
|
2048
|
+
});
|
|
2049
|
+
const pi = e.object({
|
|
2050
|
+
content: e.string(),
|
|
2051
|
+
businessUuid: e.uuid().nullable(),
|
|
2052
|
+
individualUuid: e.uuid().nullable(),
|
|
2053
|
+
dealUuid: e.uuid().nullable()
|
|
2054
|
+
}), fi = e.object({
|
|
2055
|
+
uuid: e.uuid()
|
|
2056
|
+
}), ji = e.object({
|
|
2057
|
+
content: e.string()
|
|
2058
|
+
}), ke = e.object({
|
|
2059
|
+
createdAt: e.string(),
|
|
2060
|
+
uuid: e.uuid()
|
|
2061
|
+
}), zi = e.object({
|
|
2062
|
+
limit: e.number().gte(0).lte(100),
|
|
2063
|
+
key: ke.nullish()
|
|
2064
|
+
}), hi = e.object({
|
|
2065
|
+
label: e.string(),
|
|
2066
|
+
url: e.string()
|
|
2067
|
+
}), te = e.object({
|
|
2068
|
+
uuid: e.uuid(),
|
|
2069
|
+
name: e.string(),
|
|
2070
|
+
mimeType: E.nullable(),
|
|
2071
|
+
url: e.string(),
|
|
2072
|
+
blurHash: e.string().nullable(),
|
|
2073
|
+
variants: e.array(hi)
|
|
2074
|
+
}), Ii = e.object({
|
|
2075
|
+
uuid: e.uuid(),
|
|
2076
|
+
updatedAt: e.iso.datetime(),
|
|
2077
|
+
content: e.string(),
|
|
2078
|
+
files: e.array(te),
|
|
2079
|
+
lastUpdatedByUser: e.string(),
|
|
2080
|
+
lastUpdatedByUserUuid: e.uuid()
|
|
2081
|
+
}), yi = e.object({
|
|
2082
|
+
next: ke.nullable()
|
|
2083
|
+
}), vi = e.object({
|
|
2084
|
+
items: e.array(Ii),
|
|
2085
|
+
meta: yi
|
|
2086
|
+
}), Oe = e.object({
|
|
2087
|
+
createdAt: e.string(),
|
|
2088
|
+
uuid: e.uuid()
|
|
2089
|
+
}), Vi = e.object({
|
|
2090
|
+
limit: e.number().gte(0).lte(100),
|
|
2091
|
+
key: Oe.nullish()
|
|
2092
|
+
}), Ri = e.object({
|
|
2093
|
+
uuid: e.uuid(),
|
|
2094
|
+
updatedAt: e.iso.datetime(),
|
|
2095
|
+
content: e.string(),
|
|
2096
|
+
files: e.array(te),
|
|
2097
|
+
lastUpdatedByUser: e.string(),
|
|
2098
|
+
lastUpdatedByUserUuid: e.uuid()
|
|
2099
|
+
}), Ui = e.object({
|
|
2100
|
+
next: Oe.nullable()
|
|
2101
|
+
}), Ni = e.object({
|
|
2102
|
+
items: e.array(Ri),
|
|
2103
|
+
meta: Ui
|
|
2104
|
+
}), Ge = e.object({
|
|
2105
|
+
createdAt: e.iso.datetime(),
|
|
2106
|
+
uuid: e.uuid()
|
|
2107
|
+
}), Bi = e.object({
|
|
2108
|
+
limit: e.number().gte(0).lte(100),
|
|
2109
|
+
key: Ge.nullish()
|
|
2110
|
+
}), Pi = e.object({
|
|
2111
|
+
uuid: e.uuid(),
|
|
2112
|
+
updatedAt: e.iso.datetime(),
|
|
2113
|
+
content: e.string(),
|
|
2114
|
+
files: e.array(te),
|
|
2115
|
+
lastUpdatedByUser: e.string(),
|
|
2116
|
+
lastUpdatedByUserUuid: e.uuid()
|
|
2117
|
+
}), Ai = e.object({
|
|
2118
|
+
next: Ge.nullable()
|
|
2119
|
+
}), wi = e.object({
|
|
2120
|
+
items: e.array(Pi),
|
|
2121
|
+
meta: Ai
|
|
2122
|
+
});
|
|
2123
|
+
e.object({
|
|
2124
|
+
fileUuid: e.uuid()
|
|
2125
|
+
});
|
|
2126
|
+
e.object({
|
|
2127
|
+
noteUuid: e.uuid(),
|
|
2128
|
+
fileUuid: e.uuid()
|
|
2129
|
+
});
|
|
2130
|
+
const Ti = e.object({
|
|
2131
|
+
contactPersonUuid: e.uuid(),
|
|
2132
|
+
position: e.string().nullable(),
|
|
2133
|
+
email: e.string().nullable(),
|
|
2134
|
+
phone: e.string().nullable(),
|
|
2135
|
+
mobilePhone: e.string().nullable()
|
|
2136
|
+
}), Ei = e.object({
|
|
2137
|
+
individualUuid: e.uuid(),
|
|
2138
|
+
contactPersonUuid: e.uuid()
|
|
2139
|
+
});
|
|
2140
|
+
e.object({
|
|
2141
|
+
detail: e.string().optional(),
|
|
2142
|
+
status: e.enum(["404"]),
|
|
2143
|
+
code: e.enum(["individual_contact_person_not_found"])
|
|
2144
|
+
});
|
|
2145
|
+
const _i = e.object({
|
|
2146
|
+
contactPersonUuid: e.uuid()
|
|
2147
|
+
}), Si = e.object({
|
|
2148
|
+
firstName: e.string(),
|
|
2149
|
+
lastName: e.string(),
|
|
2150
|
+
email: e.string().nullable(),
|
|
2151
|
+
phone: e.string().nullable(),
|
|
2152
|
+
mobilePhone: e.string().nullable(),
|
|
2153
|
+
position: e.string().nullable()
|
|
2154
|
+
}), Di = e.object({
|
|
2155
|
+
individualUuid: e.uuid(),
|
|
2156
|
+
contactPersonUuid: e.uuid(),
|
|
2157
|
+
firstName: e.string(),
|
|
2158
|
+
lastName: e.string(),
|
|
2159
|
+
email: e.email().nullable(),
|
|
2160
|
+
phone: e.string().nullable(),
|
|
2161
|
+
mobilePhone: e.string().nullable(),
|
|
2162
|
+
position: e.string().nullable(),
|
|
2163
|
+
isPrimary: e.boolean()
|
|
2164
|
+
}), xi = e.object({
|
|
2165
|
+
contactPersonUuid: e.uuid(),
|
|
2166
|
+
position: e.string().nullable(),
|
|
2167
|
+
email: e.string().nullable(),
|
|
2168
|
+
phone: e.string().nullable(),
|
|
2169
|
+
mobilePhone: e.string().nullable()
|
|
2170
|
+
}), Mi = e.object({
|
|
2171
|
+
businessUuid: e.uuid(),
|
|
2172
|
+
contactPersonUuid: e.uuid()
|
|
2173
|
+
});
|
|
2174
|
+
e.object({
|
|
2175
|
+
detail: e.string().optional(),
|
|
2176
|
+
status: e.enum(["400"]),
|
|
2177
|
+
code: e.enum(["primary_contact_of_business_not_unlinkable"])
|
|
2178
|
+
});
|
|
2179
|
+
e.object({
|
|
2180
|
+
detail: e.string().optional(),
|
|
2181
|
+
status: e.enum(["404"]),
|
|
2182
|
+
code: e.enum(["business_contact_person_not_found"])
|
|
2183
|
+
});
|
|
2184
|
+
const Li = e.object({
|
|
2185
|
+
contactPersonUuid: e.uuid()
|
|
2186
|
+
}), ki = e.object({
|
|
2187
|
+
firstName: e.string(),
|
|
2188
|
+
lastName: e.string(),
|
|
2189
|
+
email: e.string().nullable(),
|
|
2190
|
+
phone: e.string().nullable(),
|
|
2191
|
+
mobilePhone: e.string().nullable(),
|
|
2192
|
+
position: e.string().nullable()
|
|
2193
|
+
}), Oi = e.object({
|
|
2194
|
+
businessUuid: e.uuid(),
|
|
2195
|
+
contactPersonUuid: e.uuid(),
|
|
2196
|
+
firstName: e.string(),
|
|
2197
|
+
lastName: e.string(),
|
|
2198
|
+
email: e.email().nullable(),
|
|
2199
|
+
phone: e.string().nullable(),
|
|
2200
|
+
mobilePhone: e.string().nullable(),
|
|
2201
|
+
position: e.string().nullable(),
|
|
2202
|
+
isPrimary: e.boolean()
|
|
2203
|
+
});
|
|
2204
|
+
e.object({
|
|
2205
|
+
detail: e.string().optional(),
|
|
2206
|
+
status: e.enum(["404"]),
|
|
2207
|
+
code: e.enum(["business_billing_information_not_found"])
|
|
2208
|
+
});
|
|
2209
|
+
const Gi = e.object({
|
|
2210
|
+
uuid: e.uuid(),
|
|
2211
|
+
createdAt: e.iso.datetime(),
|
|
2212
|
+
updatedAt: e.iso.datetime(),
|
|
2213
|
+
invoiceEmail: e.email().nullable(),
|
|
2214
|
+
invoiceCcEmails: e.array(e.string()),
|
|
2215
|
+
reminderEmail: e.email().nullable(),
|
|
2216
|
+
reminderCcEmails: e.array(e.string()),
|
|
2217
|
+
purchaseNoteEmail: e.email().nullable(),
|
|
2218
|
+
purchaseNoteCcEmails: e.array(e.string()),
|
|
2219
|
+
billingLocation: _.nullable()
|
|
2220
|
+
}), Fi = e.object({
|
|
2221
|
+
billingAddress: A.nullish(),
|
|
2222
|
+
invoiceEmail: e.email().nullish(),
|
|
2223
|
+
invoiceCcEmails: e.array(e.email()).nullish()
|
|
2224
|
+
});
|
|
2225
|
+
e.object({
|
|
2226
|
+
detail: e.string().optional(),
|
|
2227
|
+
status: e.enum(["404"]),
|
|
2228
|
+
code: e.enum(["individual_billing_information_not_found"])
|
|
2229
|
+
});
|
|
2230
|
+
const Ki = e.object({
|
|
2231
|
+
uuid: e.uuid(),
|
|
2232
|
+
createdAt: e.iso.datetime(),
|
|
2233
|
+
updatedAt: e.iso.datetime(),
|
|
2234
|
+
invoiceEmail: e.email().nullable(),
|
|
2235
|
+
invoiceCcEmails: e.array(e.string()),
|
|
2236
|
+
billingLocation: _.nullable()
|
|
2237
|
+
});
|
|
2238
|
+
e.object({
|
|
2239
|
+
detail: e.string().optional(),
|
|
2240
|
+
status: e.enum(["409"]),
|
|
2241
|
+
code: e.enum(["board_columns_already_exist"])
|
|
2242
|
+
});
|
|
2243
|
+
const Qi = e.object({
|
|
2244
|
+
maxDaysInColumnBeforeHighlight: e.number().nullish(),
|
|
2245
|
+
onlyShowLeadInColumn: e.boolean().optional(),
|
|
2246
|
+
businessStatusOnEntry: Z.optional()
|
|
2247
|
+
}), Hi = e.object({
|
|
2248
|
+
key: e.string(),
|
|
2249
|
+
displayName: e.array(G),
|
|
2250
|
+
position: e.number(),
|
|
2251
|
+
color: P,
|
|
2252
|
+
config: Qi.optional()
|
|
2253
|
+
}), ne = e.enum(["manual", "email"]), Wi = e.object({
|
|
2254
|
+
mailTemplateKey: e.string()
|
|
2255
|
+
}), qi = e.object({
|
|
2256
|
+
triggerType: ne,
|
|
2257
|
+
config: Wi.optional()
|
|
2258
|
+
}), Ji = e.object({
|
|
2259
|
+
key: e.string(),
|
|
2260
|
+
triggers: e.array(qi)
|
|
2261
|
+
}), Zi = e.object({
|
|
2262
|
+
fromKey: e.string(),
|
|
2263
|
+
to: e.array(Ji)
|
|
2264
|
+
});
|
|
2265
|
+
e.object({
|
|
2266
|
+
columns: e.array(Hi),
|
|
2267
|
+
transitions: e.array(Zi)
|
|
2268
|
+
});
|
|
2269
|
+
e.object({
|
|
2270
|
+
columnUuids: e.array(e.uuid()),
|
|
2271
|
+
transitionUuids: e.array(e.uuid())
|
|
2272
|
+
});
|
|
2273
|
+
const Yi = e.object({
|
|
2274
|
+
maxDaysInColumnBeforeHighlight: e.number().nullable(),
|
|
2275
|
+
onlyShowLeadInColumn: e.boolean()
|
|
2276
|
+
}), $i = e.object({
|
|
2277
|
+
uuid: e.uuid(),
|
|
2278
|
+
key: e.string(),
|
|
2279
|
+
displayName: e.string(),
|
|
2280
|
+
position: e.number(),
|
|
2281
|
+
color: P,
|
|
2282
|
+
config: Yi
|
|
2283
|
+
}), Ci = e.object({
|
|
2284
|
+
items: e.array($i)
|
|
2285
|
+
});
|
|
2286
|
+
e.object({
|
|
2287
|
+
detail: e.string().optional(),
|
|
2288
|
+
status: e.enum(["404"]),
|
|
2289
|
+
code: e.enum(["board_column_not_found"])
|
|
2290
|
+
});
|
|
2291
|
+
const Xi = e.object({
|
|
2292
|
+
mailTemplateKey: e.string()
|
|
2293
|
+
}), ea = e.object({
|
|
2294
|
+
uuid: e.uuid(),
|
|
2295
|
+
triggerType: ne,
|
|
2296
|
+
config: Xi.nullable()
|
|
2297
|
+
}), ta = e.object({
|
|
2298
|
+
uuid: e.uuid(),
|
|
2299
|
+
toColumnUuid: e.uuid(),
|
|
2300
|
+
toColumnKey: e.string(),
|
|
2301
|
+
toColumnDisplayName: e.string(),
|
|
2302
|
+
toColumnColor: P,
|
|
2303
|
+
triggers: e.array(ea)
|
|
2304
|
+
}), na = e.object({
|
|
2305
|
+
items: e.array(ta)
|
|
2306
|
+
});
|
|
2307
|
+
e.object({
|
|
2308
|
+
detail: e.string().optional(),
|
|
2309
|
+
status: e.enum(["404"]),
|
|
2310
|
+
code: e.enum(["client_not_found"])
|
|
2311
|
+
});
|
|
2312
|
+
e.object({
|
|
2313
|
+
detail: e.string().optional(),
|
|
2314
|
+
status: e.enum(["400"]),
|
|
2315
|
+
code: e.enum(["deal_creation_not_allowed"])
|
|
2316
|
+
});
|
|
2317
|
+
e.object({
|
|
2318
|
+
detail: e.string().optional(),
|
|
2319
|
+
status: e.enum(["400"]),
|
|
2320
|
+
code: e.enum(["no_board_columns"])
|
|
2321
|
+
});
|
|
2322
|
+
const x = e.enum([
|
|
2323
|
+
"nl-BE",
|
|
2324
|
+
"en-US",
|
|
2325
|
+
"fr-BE",
|
|
2326
|
+
"de-DE"
|
|
2327
|
+
]), ie = e.enum([
|
|
2328
|
+
"mail",
|
|
2329
|
+
"website",
|
|
2330
|
+
"phone",
|
|
2331
|
+
"tender"
|
|
2332
|
+
]), H = e.enum(["business", "individual"]), Fe = e.object({
|
|
2333
|
+
uuid: e.uuid(),
|
|
2334
|
+
type: H
|
|
2335
|
+
}), ia = e.object({
|
|
2336
|
+
name: e.string(),
|
|
2337
|
+
dealLanguage: x,
|
|
2338
|
+
dealSource: ie,
|
|
2339
|
+
clientId: Fe,
|
|
2340
|
+
dealOwnerUuid: e.uuid().nullable()
|
|
2341
|
+
}), aa = e.object({
|
|
2342
|
+
uuid: e.uuid(),
|
|
2343
|
+
dealNumber: e.int()
|
|
2344
|
+
});
|
|
2345
|
+
e.object({
|
|
2346
|
+
detail: e.string().optional(),
|
|
2347
|
+
status: e.enum(["404"]),
|
|
2348
|
+
code: e.enum(["deal_not_found"])
|
|
2349
|
+
});
|
|
2350
|
+
const sa = e.object({
|
|
2351
|
+
name: e.string().optional(),
|
|
2352
|
+
dealLanguage: x.optional(),
|
|
2353
|
+
dealSource: ie.optional(),
|
|
2354
|
+
dealOwnerUuid: e.uuid().nullish()
|
|
2355
|
+
});
|
|
2356
|
+
e.object({
|
|
2357
|
+
dealOwnerUuid: e.uuid().nullable()
|
|
2358
|
+
});
|
|
2359
|
+
const oa = e.object({
|
|
2360
|
+
fromBoardColumnUuid: e.uuid(),
|
|
2361
|
+
toBoardColumnUuid: e.uuid()
|
|
2362
|
+
});
|
|
2363
|
+
e.object({
|
|
2364
|
+
detail: e.string().optional(),
|
|
2365
|
+
status: e.enum(["400"]),
|
|
2366
|
+
code: e.enum(["deal_column_transition_not_allowed"]),
|
|
2367
|
+
meta: oa
|
|
2368
|
+
});
|
|
2369
|
+
const la = e.object({
|
|
2370
|
+
boardColumnUuid: e.uuid()
|
|
2371
|
+
}), ra = e.enum([
|
|
2372
|
+
"lead",
|
|
2373
|
+
"customer",
|
|
2374
|
+
"inactive",
|
|
2375
|
+
"archived",
|
|
2376
|
+
"contact"
|
|
2377
|
+
]), Ke = e.object({
|
|
2378
|
+
uuid: e.uuid(),
|
|
2379
|
+
type: H,
|
|
2380
|
+
status: ra,
|
|
2381
|
+
name: e.string()
|
|
2382
|
+
}), ge = e.object({
|
|
2383
|
+
uuid: e.uuid(),
|
|
2384
|
+
firstName: e.string().nullable(),
|
|
2385
|
+
lastName: e.string().nullable()
|
|
2386
|
+
}), ua = e.object({
|
|
2387
|
+
uuid: e.uuid(),
|
|
2388
|
+
key: e.string(),
|
|
2389
|
+
displayName: e.string(),
|
|
2390
|
+
color: P
|
|
2391
|
+
}), ca = e.object({
|
|
2392
|
+
uuid: e.uuid(),
|
|
2393
|
+
firstName: e.string(),
|
|
2394
|
+
lastName: e.string(),
|
|
2395
|
+
email: e.email().nullable(),
|
|
2396
|
+
phone: e.string().nullable(),
|
|
2397
|
+
mobilePhone: e.string().nullable(),
|
|
2398
|
+
isPrimary: e.boolean()
|
|
2399
|
+
}), da = e.object({
|
|
2400
|
+
uuid: e.uuid(),
|
|
2401
|
+
name: e.string(),
|
|
2402
|
+
dealNumber: e.int(),
|
|
2403
|
+
dealLanguage: x,
|
|
2404
|
+
dealSource: ie,
|
|
2405
|
+
client: Ke,
|
|
2406
|
+
createdBy: ge,
|
|
2407
|
+
owner: ge.nullable(),
|
|
2408
|
+
boardColumn: ua,
|
|
2409
|
+
contactPersons: e.array(ca),
|
|
2410
|
+
createdAt: e.iso.datetime(),
|
|
2411
|
+
updatedAt: e.iso.datetime()
|
|
2412
|
+
}), ba = e.object({
|
|
2413
|
+
boardColumnUuids: e.array(e.uuid()).optional(),
|
|
2414
|
+
dealOwnerUuids: e.array(e.uuid()).optional(),
|
|
2415
|
+
businessUuids: e.array(e.uuid()).optional(),
|
|
2416
|
+
individualUuids: e.array(e.uuid()).optional()
|
|
2417
|
+
}), pe = e.object({
|
|
2418
|
+
uuid: e.uuid(),
|
|
2419
|
+
firstName: e.string().nullable(),
|
|
2420
|
+
lastName: e.string().nullable()
|
|
2421
|
+
}), ma = e.object({
|
|
2422
|
+
uuid: e.uuid(),
|
|
2423
|
+
key: e.string(),
|
|
2424
|
+
displayName: e.string()
|
|
2425
|
+
}), ga = e.object({
|
|
2426
|
+
uuid: e.uuid(),
|
|
2427
|
+
name: e.string(),
|
|
2428
|
+
dealNumber: e.int(),
|
|
2429
|
+
dealLanguage: e.enum([
|
|
2430
|
+
"nl-BE",
|
|
2431
|
+
"en-US",
|
|
2432
|
+
"fr-BE",
|
|
2433
|
+
"de-DE"
|
|
2434
|
+
]),
|
|
2435
|
+
dealSource: e.enum([
|
|
2436
|
+
"mail",
|
|
2437
|
+
"website",
|
|
2438
|
+
"phone",
|
|
2439
|
+
"tender"
|
|
2440
|
+
]),
|
|
2441
|
+
client: Ke,
|
|
2442
|
+
createdBy: pe,
|
|
2443
|
+
owner: pe.nullable(),
|
|
2444
|
+
boardColumn: ma,
|
|
2445
|
+
createdAt: e.iso.datetime(),
|
|
2446
|
+
updatedAt: e.iso.datetime()
|
|
2447
|
+
}), pa = e.object({
|
|
2448
|
+
items: e.array(ga),
|
|
2449
|
+
meta: U
|
|
2450
|
+
}), fa = e.object({
|
|
2451
|
+
contactPersonUuid: e.uuid(),
|
|
2452
|
+
email: e.email().nullable(),
|
|
2453
|
+
phone: e.string().nullable(),
|
|
2454
|
+
mobilePhone: e.string().nullable()
|
|
2455
|
+
}), ja = e.object({
|
|
2456
|
+
dealUuid: e.uuid(),
|
|
2457
|
+
contactPersonUuid: e.uuid()
|
|
2458
|
+
});
|
|
2459
|
+
e.object({
|
|
2460
|
+
detail: e.string().optional(),
|
|
2461
|
+
status: e.enum(["404"]),
|
|
2462
|
+
code: e.enum(["deal_contact_person_not_found"])
|
|
2463
|
+
});
|
|
2464
|
+
e.object({
|
|
2465
|
+
detail: e.string().optional(),
|
|
2466
|
+
status: e.enum(["400"]),
|
|
2467
|
+
code: e.enum(["primary_contact_of_deal_not_unlinkable"])
|
|
2468
|
+
});
|
|
2469
|
+
const za = e.object({
|
|
2470
|
+
contactPersonUuid: e.uuid()
|
|
2471
|
+
}), ha = e.object({
|
|
2472
|
+
firstName: e.string(),
|
|
2473
|
+
lastName: e.string(),
|
|
2474
|
+
email: e.string().nullable(),
|
|
2475
|
+
phone: e.string().nullable(),
|
|
2476
|
+
mobilePhone: e.string().nullable()
|
|
2477
|
+
}), Ia = e.object({
|
|
2478
|
+
dealUuid: e.uuid(),
|
|
2479
|
+
contactPersonUuid: e.uuid(),
|
|
2480
|
+
firstName: e.string(),
|
|
2481
|
+
lastName: e.string(),
|
|
2482
|
+
email: e.email().nullable(),
|
|
2483
|
+
phone: e.string().nullable(),
|
|
2484
|
+
mobilePhone: e.string().nullable(),
|
|
2485
|
+
isPrimary: e.boolean()
|
|
2486
|
+
});
|
|
2487
|
+
e.object({
|
|
2488
|
+
detail: e.string().optional(),
|
|
2489
|
+
status: e.enum(["400"]),
|
|
2490
|
+
code: e.enum(["customer_zone_email_verification_organization_mismatch"])
|
|
2491
|
+
});
|
|
2492
|
+
e.object({
|
|
2493
|
+
detail: e.string().optional(),
|
|
2494
|
+
status: e.enum(["400"]),
|
|
2495
|
+
code: e.enum(["customer_zone_invalid_email_verification_code"])
|
|
2496
|
+
});
|
|
2497
|
+
e.object({
|
|
2498
|
+
detail: e.string().optional(),
|
|
2499
|
+
status: e.enum(["404"]),
|
|
2500
|
+
code: e.enum(["customer_zone_tenant_domain_not_found"])
|
|
2501
|
+
});
|
|
2502
|
+
e.object({
|
|
2503
|
+
detail: e.string().optional(),
|
|
2504
|
+
status: e.enum(["404"]),
|
|
2505
|
+
code: e.enum(["customer_zone_email_verification_user_not_found"])
|
|
2506
|
+
});
|
|
2507
|
+
e.object({
|
|
2508
|
+
detail: e.string().optional(),
|
|
2509
|
+
status: e.enum(["404"]),
|
|
2510
|
+
code: e.enum(["customer_zone_individual_user_grant_not_found"])
|
|
2511
|
+
});
|
|
2512
|
+
e.object({
|
|
2513
|
+
userId: e.string(),
|
|
2514
|
+
verificationCode: e.string(),
|
|
2515
|
+
organizationId: e.string(),
|
|
2516
|
+
domain: e.string()
|
|
2517
|
+
});
|
|
2518
|
+
const ya = e.object({
|
|
2519
|
+
email: e.email(),
|
|
2520
|
+
firstName: e.string().nullable(),
|
|
2521
|
+
lastName: e.string().nullable()
|
|
2522
|
+
});
|
|
2523
|
+
e.object({
|
|
2524
|
+
detail: e.string().optional(),
|
|
2525
|
+
status: e.enum(["409"]),
|
|
2526
|
+
code: e.enum(["customer_zone_individual_already_linked"])
|
|
2527
|
+
});
|
|
2528
|
+
e.object({
|
|
2529
|
+
uuid: e.uuid(),
|
|
2530
|
+
firstName: e.string(),
|
|
2531
|
+
lastName: e.string(),
|
|
2532
|
+
email: e.email().nullable(),
|
|
2533
|
+
phone: e.string().nullable(),
|
|
2534
|
+
mobilePhone: e.string().nullable(),
|
|
2535
|
+
customFields: e.record(e.string(), e.unknown()).nullable()
|
|
2536
|
+
});
|
|
2537
|
+
e.object({
|
|
2538
|
+
detail: e.string().optional(),
|
|
2539
|
+
status: e.enum(["404"]),
|
|
2540
|
+
code: e.enum(["customer_zone_individual_grant_not_found"])
|
|
2541
|
+
});
|
|
2542
|
+
const va = e.object({
|
|
2543
|
+
uuid: e.uuid(),
|
|
2544
|
+
name: e.string(),
|
|
2545
|
+
email: e.email().nullable(),
|
|
2546
|
+
phone: e.string().nullable(),
|
|
2547
|
+
mobilePhone: e.string().nullable(),
|
|
2548
|
+
companyNumber: e.string().nullable()
|
|
2549
|
+
});
|
|
2550
|
+
e.object({
|
|
2551
|
+
items: e.array(va)
|
|
2552
|
+
});
|
|
2553
|
+
const Va = e.object({
|
|
2554
|
+
uuid: e.uuid(),
|
|
2555
|
+
createdAt: e.iso.datetime(),
|
|
2556
|
+
updatedAt: e.iso.datetime(),
|
|
2557
|
+
name: e.string()
|
|
2558
|
+
}), Ra = e.object({
|
|
2559
|
+
items: e.array(Va),
|
|
2560
|
+
meta: U
|
|
2561
|
+
});
|
|
2562
|
+
e.object({
|
|
2563
|
+
detail: e.string().optional(),
|
|
2564
|
+
status: e.enum(["404"]),
|
|
2565
|
+
code: e.enum(["mail_template_not_found"])
|
|
2566
|
+
});
|
|
2567
|
+
const Ua = e.object({
|
|
2568
|
+
uuid: e.uuid(),
|
|
2569
|
+
name: e.string(),
|
|
2570
|
+
mimeType: E,
|
|
2571
|
+
blurHash: e.string().nullable()
|
|
2572
|
+
}), Na = e.object({
|
|
2573
|
+
uuid: e.uuid(),
|
|
2574
|
+
language: e.enum([
|
|
2575
|
+
"nl-BE",
|
|
2576
|
+
"en-US",
|
|
2577
|
+
"fr-BE",
|
|
2578
|
+
"de-DE"
|
|
2579
|
+
]),
|
|
2580
|
+
replyTo: e.email().nullable(),
|
|
2581
|
+
subject: e.string(),
|
|
2582
|
+
message: e.string(),
|
|
2583
|
+
createdAt: e.iso.datetime(),
|
|
2584
|
+
updatedAt: e.iso.datetime(),
|
|
2585
|
+
attachments: e.array(Ua)
|
|
2586
|
+
}), Qe = e.object({
|
|
2587
|
+
uuid: e.uuid(),
|
|
2588
|
+
createdAt: e.iso.datetime(),
|
|
2589
|
+
updatedAt: e.iso.datetime(),
|
|
2590
|
+
key: e.string(),
|
|
2591
|
+
displayName: e.string(),
|
|
2592
|
+
defaultCC: e.array(e.string()),
|
|
2593
|
+
defaultBCC: e.array(e.string()),
|
|
2594
|
+
locales: e.array(Na)
|
|
2595
|
+
});
|
|
2596
|
+
e.object({
|
|
2597
|
+
detail: e.string().optional(),
|
|
2598
|
+
status: e.enum(["409"]),
|
|
2599
|
+
code: e.enum(["mail_template_key_already_in_use"])
|
|
2600
|
+
});
|
|
2601
|
+
e.object({
|
|
2602
|
+
detail: e.string().optional(),
|
|
2603
|
+
status: e.enum(["400"]),
|
|
2604
|
+
code: e.enum(["mail_template_locale_language_already_provided"])
|
|
2605
|
+
});
|
|
2606
|
+
const Ba = e.object({
|
|
2607
|
+
language: I,
|
|
2608
|
+
value: e.string()
|
|
2609
|
+
}), Pa = e.object({
|
|
2610
|
+
fileUuid: e.uuid()
|
|
2611
|
+
}), Aa = e.object({
|
|
2612
|
+
language: x,
|
|
2613
|
+
replyTo: e.email().nullable(),
|
|
2614
|
+
subject: e.string(),
|
|
2615
|
+
message: e.string(),
|
|
2616
|
+
attachments: e.array(Pa).optional()
|
|
2617
|
+
});
|
|
2618
|
+
e.object({
|
|
2619
|
+
key: e.string(),
|
|
2620
|
+
displayName: e.array(Ba),
|
|
2621
|
+
defaultCC: e.array(e.string()).optional(),
|
|
2622
|
+
defaultBCC: e.array(e.string()).optional(),
|
|
2623
|
+
locales: e.array(Aa)
|
|
2624
|
+
});
|
|
2625
|
+
e.object({
|
|
2626
|
+
uuid: e.uuid()
|
|
2627
|
+
});
|
|
2628
|
+
const wa = e.object({
|
|
2629
|
+
language: x,
|
|
2630
|
+
replyTo: e.email().nullable(),
|
|
2631
|
+
subject: e.string(),
|
|
2632
|
+
message: e.string(),
|
|
2633
|
+
attachments: e.array(e.uuid())
|
|
2634
|
+
}), Ta = e.object({
|
|
2635
|
+
defaultCC: e.array(e.string()).optional(),
|
|
2636
|
+
defaultBCC: e.array(e.string()).optional(),
|
|
2637
|
+
locales: e.array(wa)
|
|
2638
|
+
}), Ea = e.object({
|
|
2639
|
+
key: e.string()
|
|
2640
|
+
});
|
|
2641
|
+
e.object({
|
|
2642
|
+
detail: e.string().optional(),
|
|
2643
|
+
status: e.enum(["404"]),
|
|
2644
|
+
code: e.enum(["mail_template_key_not_found"]),
|
|
2645
|
+
meta: Ea
|
|
2646
|
+
});
|
|
2647
|
+
const _a = e.object({
|
|
2648
|
+
uuid: e.uuid(),
|
|
2649
|
+
name: e.string(),
|
|
2650
|
+
mimeType: E,
|
|
2651
|
+
downloadUrl: e.string()
|
|
2652
|
+
}), Sa = e.object({
|
|
2653
|
+
to: e.array(e.string()),
|
|
2654
|
+
cc: e.array(e.string()).optional(),
|
|
2655
|
+
bcc: e.array(e.string()).optional(),
|
|
2656
|
+
from: e.string().optional(),
|
|
2657
|
+
replyTo: e.string().optional(),
|
|
2658
|
+
subject: e.string(),
|
|
2659
|
+
text: e.string(),
|
|
2660
|
+
attachments: e.array(e.uuid()).optional(),
|
|
2661
|
+
clientId: Fe,
|
|
2662
|
+
dealUuid: e.uuid().nullable(),
|
|
2663
|
+
mailTemplateUuid: e.uuid().nullable(),
|
|
2664
|
+
externalAttachments: e.array(_a).optional()
|
|
2665
|
+
}), He = e.enum([
|
|
2666
|
+
"sending",
|
|
2667
|
+
"delivered",
|
|
2668
|
+
"failed"
|
|
2669
|
+
]), Da = e.object({
|
|
2670
|
+
uuid: e.uuid(),
|
|
2671
|
+
status: He
|
|
2672
|
+
}), xa = e.object({
|
|
2673
|
+
clientUuid: e.uuid().optional(),
|
|
2674
|
+
clientType: H.optional(),
|
|
2675
|
+
dealUuid: e.uuid().optional()
|
|
2676
|
+
}), Ma = e.object({
|
|
2677
|
+
uuid: e.uuid(),
|
|
2678
|
+
type: H
|
|
2679
|
+
}), La = e.object({
|
|
2680
|
+
uuid: e.uuid(),
|
|
2681
|
+
name: e.string(),
|
|
2682
|
+
mimeType: E,
|
|
2683
|
+
downloadUrl: e.string()
|
|
2684
|
+
}), ka = e.object({
|
|
2685
|
+
uuid: e.uuid(),
|
|
2686
|
+
name: e.string(),
|
|
2687
|
+
mimeType: E,
|
|
2688
|
+
downloadUrl: e.string()
|
|
2689
|
+
}), Oa = e.object({
|
|
2690
|
+
uuid: e.uuid(),
|
|
2691
|
+
key: e.string(),
|
|
2692
|
+
displayName: e.array(e.record(e.string(), e.unknown()))
|
|
2693
|
+
}), Ga = e.object({
|
|
2694
|
+
uuid: e.uuid(),
|
|
2695
|
+
to: e.array(e.string()),
|
|
2696
|
+
cc: e.array(e.string()),
|
|
2697
|
+
bcc: e.array(e.string()),
|
|
2698
|
+
from: e.string().nullable(),
|
|
2699
|
+
replyTo: e.string().nullable(),
|
|
2700
|
+
subject: e.string(),
|
|
2701
|
+
text: e.string(),
|
|
2702
|
+
status: He,
|
|
2703
|
+
client: Ma,
|
|
2704
|
+
dealUuid: e.uuid().nullable(),
|
|
2705
|
+
attachments: e.array(La),
|
|
2706
|
+
externalAttachments: e.array(ka),
|
|
2707
|
+
mailTemplateDisplayName: e.string().nullable(),
|
|
2708
|
+
mailTemplateUuid: e.uuid().nullable(),
|
|
2709
|
+
mailTemplate: Oa.nullable(),
|
|
2710
|
+
createdAt: e.iso.datetime(),
|
|
2711
|
+
updatedAt: e.iso.datetime()
|
|
2712
|
+
}), Fa = e.object({
|
|
2713
|
+
items: e.array(Ga),
|
|
2714
|
+
meta: U
|
|
2715
|
+
}), Ka = e.object({
|
|
2716
|
+
to: e.array(e.string()),
|
|
2717
|
+
cc: e.array(e.string()),
|
|
2718
|
+
bcc: e.array(e.string())
|
|
2719
|
+
}), Qa = e.object({
|
|
2720
|
+
entityUuids: e.array(e.uuid()).optional(),
|
|
2721
|
+
entityTypes: e.array(e.enum([
|
|
2722
|
+
"business",
|
|
2723
|
+
"individual",
|
|
2724
|
+
"file",
|
|
2725
|
+
"note"
|
|
2726
|
+
])).optional(),
|
|
2727
|
+
roles: e.array(e.enum([
|
|
2728
|
+
"actor",
|
|
2729
|
+
"business",
|
|
2730
|
+
"individual",
|
|
2731
|
+
"file",
|
|
2732
|
+
"note"
|
|
2733
|
+
])).optional()
|
|
2734
|
+
}), We = e.object({
|
|
2735
|
+
createdAt: e.string(),
|
|
2736
|
+
uuid: e.record(e.string(), e.unknown())
|
|
2737
|
+
}), Ha = e.object({
|
|
2738
|
+
limit: e.number().gte(0).lte(100),
|
|
2739
|
+
key: We.nullish()
|
|
2740
|
+
}), Wa = e.enum(["business-updated"]), qa = e.enum([
|
|
2741
|
+
"create",
|
|
2742
|
+
"update",
|
|
2743
|
+
"delete"
|
|
2744
|
+
]), Ja = e.enum([
|
|
2745
|
+
"user",
|
|
2746
|
+
"service",
|
|
2747
|
+
"system"
|
|
2748
|
+
]), Za = e.object({
|
|
2749
|
+
uuid: e.uuid(),
|
|
2750
|
+
firstName: e.string().nullable(),
|
|
2751
|
+
lastName: e.string().nullable(),
|
|
2752
|
+
email: e.string().nullable()
|
|
2753
|
+
}), qe = e.enum([
|
|
2754
|
+
"actor",
|
|
2755
|
+
"business",
|
|
2756
|
+
"individual",
|
|
2757
|
+
"file",
|
|
2758
|
+
"note"
|
|
2759
|
+
]), Ya = e.enum([
|
|
2760
|
+
"business",
|
|
2761
|
+
"individual",
|
|
2762
|
+
"file",
|
|
2763
|
+
"note"
|
|
2764
|
+
]), $a = e.object({
|
|
2765
|
+
role: qe,
|
|
2766
|
+
type: Ya,
|
|
2767
|
+
uuid: e.uuid(),
|
|
2768
|
+
label: e.string().nullable()
|
|
2769
|
+
}), Ca = e.object({
|
|
2770
|
+
entityRole: qe,
|
|
2771
|
+
field: e.string(),
|
|
2772
|
+
from: e.union([
|
|
2773
|
+
e.string(),
|
|
2774
|
+
e.number(),
|
|
2775
|
+
e.boolean()
|
|
2776
|
+
]).nullable(),
|
|
2777
|
+
to: e.union([
|
|
2778
|
+
e.string(),
|
|
2779
|
+
e.number(),
|
|
2780
|
+
e.boolean()
|
|
2781
|
+
]).nullable()
|
|
2782
|
+
}), Xa = e.object({
|
|
2783
|
+
action: Wa,
|
|
2784
|
+
changeType: qa,
|
|
2785
|
+
actorType: Ja,
|
|
2786
|
+
actor: Za.nullable(),
|
|
2787
|
+
entities: e.array($a),
|
|
2788
|
+
changes: e.array(Ca).nullable()
|
|
2789
|
+
});
|
|
2790
|
+
e.object({
|
|
2791
|
+
logs: e.array(Xa),
|
|
2792
|
+
nextKey: We.nullable()
|
|
2793
|
+
});
|
|
2794
|
+
e.object({
|
|
2795
|
+
detail: e.string().optional(),
|
|
2796
|
+
status: e.enum(["500"]),
|
|
2797
|
+
code: e.enum(["internal_server_error"])
|
|
2798
|
+
});
|
|
2799
|
+
e.object({
|
|
2800
|
+
pagination: R.optional(),
|
|
2801
|
+
search: e.string().optional()
|
|
2802
|
+
});
|
|
2803
|
+
e.object({
|
|
2804
|
+
uuid: e.uuid()
|
|
2805
|
+
});
|
|
2806
|
+
e.void();
|
|
2807
|
+
e.object({
|
|
2808
|
+
uuid: e.uuid()
|
|
2809
|
+
});
|
|
2810
|
+
e.object({
|
|
2811
|
+
uuid: e.uuid()
|
|
2812
|
+
});
|
|
2813
|
+
e.void();
|
|
2814
|
+
e.object({
|
|
2815
|
+
uuid: e.uuid()
|
|
2816
|
+
});
|
|
2817
|
+
e.void();
|
|
2818
|
+
e.object({
|
|
2819
|
+
uuid: e.uuid()
|
|
2820
|
+
});
|
|
2821
|
+
e.void();
|
|
2822
|
+
e.object({
|
|
2823
|
+
uuid: e.uuid()
|
|
2824
|
+
});
|
|
2825
|
+
e.void();
|
|
2826
|
+
const ns = Mt;
|
|
2827
|
+
e.object({
|
|
2828
|
+
uuid: e.uuid()
|
|
2829
|
+
});
|
|
2830
|
+
e.void();
|
|
2831
|
+
e.object({
|
|
2832
|
+
uuid: e.uuid()
|
|
2833
|
+
});
|
|
2834
|
+
e.object({
|
|
2835
|
+
fresh: e.boolean(),
|
|
2836
|
+
collections: e.array(Re).optional()
|
|
2837
|
+
});
|
|
2838
|
+
e.object({
|
|
2839
|
+
collections: e.array(Re).optional()
|
|
2840
|
+
});
|
|
2841
|
+
const is = e.object({
|
|
2842
|
+
pagination: R.optional(),
|
|
2843
|
+
filter: Ot.optional()
|
|
2844
|
+
}), as = Ft;
|
|
2845
|
+
e.object({
|
|
2846
|
+
domain: e.string()
|
|
2847
|
+
});
|
|
2848
|
+
e.object({
|
|
2849
|
+
domain: e.string()
|
|
2850
|
+
});
|
|
2851
|
+
e.object({
|
|
2852
|
+
user: e.uuid()
|
|
2853
|
+
});
|
|
2854
|
+
e.object({
|
|
2855
|
+
uuid: e.uuid()
|
|
2856
|
+
});
|
|
2857
|
+
const ss = e.object({
|
|
2858
|
+
pagination: R.optional(),
|
|
2859
|
+
search: e.string().optional()
|
|
2860
|
+
}), os = Ht;
|
|
2861
|
+
e.void();
|
|
2862
|
+
e.void();
|
|
2863
|
+
e.object({
|
|
2864
|
+
role: e.uuid()
|
|
2865
|
+
});
|
|
2866
|
+
e.void();
|
|
2867
|
+
e.object({
|
|
2868
|
+
role: e.uuid()
|
|
2869
|
+
});
|
|
2870
|
+
e.object({
|
|
2871
|
+
role: e.uuid()
|
|
2872
|
+
});
|
|
2873
|
+
e.void();
|
|
2874
|
+
const ls = Jt, rs = Zt;
|
|
2875
|
+
e.object({
|
|
2876
|
+
file: e.uuid()
|
|
2877
|
+
});
|
|
2878
|
+
e.void();
|
|
2879
|
+
const us = Yt, cs = e.object({
|
|
2880
|
+
file: e.uuid()
|
|
2881
|
+
}), ds = e.void();
|
|
2882
|
+
e.object({
|
|
2883
|
+
file: e.uuid()
|
|
2884
|
+
});
|
|
2885
|
+
e.object({
|
|
2886
|
+
file: e.uuid()
|
|
2887
|
+
});
|
|
2888
|
+
e.object({
|
|
2889
|
+
token: e.string()
|
|
2890
|
+
});
|
|
2891
|
+
e.object({
|
|
2892
|
+
filter: $t.optional(),
|
|
2893
|
+
pagination: Ct.optional()
|
|
2894
|
+
});
|
|
2895
|
+
const bs = e.object({
|
|
2896
|
+
filter: nn.optional(),
|
|
2897
|
+
search: e.string(),
|
|
2898
|
+
pagination: an.optional()
|
|
2899
|
+
}), ms = mn;
|
|
2900
|
+
e.void();
|
|
2901
|
+
e.object({
|
|
2902
|
+
filter: zn.optional(),
|
|
2903
|
+
pagination: hn.optional()
|
|
2904
|
+
});
|
|
2905
|
+
e.object({
|
|
2906
|
+
notificationUuid: e.uuid()
|
|
2907
|
+
});
|
|
2908
|
+
e.void();
|
|
2909
|
+
e.void();
|
|
2910
|
+
e.object({
|
|
2911
|
+
notificationUuid: e.uuid()
|
|
2912
|
+
});
|
|
2913
|
+
e.void();
|
|
2914
|
+
e.object({
|
|
2915
|
+
notificationUuid: e.uuid()
|
|
2916
|
+
});
|
|
2917
|
+
e.void();
|
|
2918
|
+
e.void();
|
|
2919
|
+
e.void();
|
|
2920
|
+
e.void();
|
|
2921
|
+
e.object({
|
|
2922
|
+
sort: e.array(Nn).optional(),
|
|
2923
|
+
filter: Bn.optional(),
|
|
2924
|
+
pagination: Pn.optional()
|
|
2925
|
+
});
|
|
2926
|
+
e.object({
|
|
2927
|
+
jobId: e.uuid()
|
|
2928
|
+
});
|
|
2929
|
+
e.object({
|
|
2930
|
+
pagination: R.optional(),
|
|
2931
|
+
filter: _n.optional(),
|
|
2932
|
+
search: e.string().optional(),
|
|
2933
|
+
sort: e.array(Dn).optional()
|
|
2934
|
+
});
|
|
2935
|
+
e.object({
|
|
2936
|
+
uuid: e.uuid()
|
|
2937
|
+
});
|
|
2938
|
+
e.object({
|
|
2939
|
+
uuid: e.uuid()
|
|
2940
|
+
});
|
|
2941
|
+
const gs = e.object({
|
|
2942
|
+
pagination: R.optional(),
|
|
2943
|
+
search: e.string().optional()
|
|
2944
|
+
}), ps = Fn, fs = Mn, js = Ln, zs = e.object({
|
|
2945
|
+
individualUuid: e.uuid()
|
|
2946
|
+
}), hs = Wn, Is = kn, ys = e.object({
|
|
2947
|
+
individualUuid: e.uuid()
|
|
2948
|
+
}), vs = e.void();
|
|
2949
|
+
e.object({
|
|
2950
|
+
individualUuid: e.uuid()
|
|
2951
|
+
});
|
|
2952
|
+
e.void();
|
|
2953
|
+
const Vs = On, Rs = e.object({
|
|
2954
|
+
individualUuid: e.uuid()
|
|
2955
|
+
}), Us = e.object({
|
|
2956
|
+
pagination: qn.optional()
|
|
2957
|
+
}), Ns = Yn, Bs = e.object({
|
|
2958
|
+
pagination: R.optional(),
|
|
2959
|
+
search: e.string().optional()
|
|
2960
|
+
}), Ps = ai, As = Cn, ws = Xn, Ts = Q, Es = ei, _s = e.object({
|
|
2961
|
+
businessUuid: e.uuid()
|
|
2962
|
+
}), Ss = li, Ds = ti, xs = e.object({
|
|
2963
|
+
businessUuid: e.uuid()
|
|
2964
|
+
}), Ms = e.void();
|
|
2965
|
+
e.object({
|
|
2966
|
+
businessUuid: e.uuid()
|
|
2967
|
+
});
|
|
2968
|
+
e.void();
|
|
2969
|
+
const Ls = ni, ks = e.object({
|
|
2970
|
+
businessUuid: e.uuid()
|
|
2971
|
+
}), Os = Gi, Gs = ri, Fs = e.object({
|
|
2972
|
+
businessUuid: e.uuid()
|
|
2973
|
+
}), Ks = e.void();
|
|
2974
|
+
e.object({
|
|
2975
|
+
businessUuid: e.uuid(),
|
|
2976
|
+
parentUuid: e.uuid()
|
|
2977
|
+
});
|
|
2978
|
+
e.void();
|
|
2979
|
+
const Qs = e.object({
|
|
2980
|
+
businessUuid: e.uuid(),
|
|
2981
|
+
childUuid: e.uuid()
|
|
2982
|
+
}), Hs = e.void(), Ws = e.object({
|
|
2983
|
+
businessUuid: e.uuid()
|
|
2984
|
+
}), qs = e.object({
|
|
2985
|
+
pagination: ui.optional()
|
|
2986
|
+
}), Js = bi, Zs = Q, Ys = gi, $s = pi, Cs = fi, Xs = e.object({
|
|
2987
|
+
uuid: e.uuid()
|
|
2988
|
+
}), eo = ji, to = e.object({
|
|
2989
|
+
uuid: e.uuid()
|
|
2990
|
+
}), no = e.object({
|
|
2991
|
+
businessUuid: e.uuid()
|
|
2992
|
+
}), io = e.object({
|
|
2993
|
+
pagination: zi.optional()
|
|
2994
|
+
}), ao = vi, so = e.object({
|
|
2995
|
+
individualUuid: e.uuid()
|
|
2996
|
+
}), oo = e.object({
|
|
2997
|
+
pagination: Vi.optional()
|
|
2998
|
+
}), lo = Ni, ro = e.object({
|
|
2999
|
+
dealUuid: e.uuid()
|
|
3000
|
+
}), uo = e.object({
|
|
3001
|
+
pagination: Bi.optional()
|
|
3002
|
+
}), co = wi;
|
|
3003
|
+
e.object({
|
|
3004
|
+
noteUuid: e.uuid()
|
|
3005
|
+
});
|
|
3006
|
+
e.object({
|
|
3007
|
+
fileUuid: e.uuid(),
|
|
3008
|
+
noteUuid: e.uuid()
|
|
3009
|
+
});
|
|
3010
|
+
e.void();
|
|
3011
|
+
const bo = Ti, mo = e.object({
|
|
3012
|
+
individualUuid: e.uuid()
|
|
3013
|
+
}), go = Ei, po = _i, fo = e.object({
|
|
3014
|
+
individualUuid: e.uuid()
|
|
3015
|
+
}), jo = e.void(), zo = e.object({
|
|
3016
|
+
contactPersonUuid: e.uuid(),
|
|
3017
|
+
individualUuid: e.uuid()
|
|
3018
|
+
}), ho = Di, Io = Si, yo = e.object({
|
|
3019
|
+
contactPersonUuid: e.uuid(),
|
|
3020
|
+
individualUuid: e.uuid()
|
|
3021
|
+
}), vo = e.void(), Vo = e.object({
|
|
3022
|
+
contactPersonUuid: e.uuid(),
|
|
3023
|
+
individualUuid: e.uuid()
|
|
3024
|
+
}), Ro = e.void(), Uo = xi, No = e.object({
|
|
3025
|
+
businessUuid: e.uuid()
|
|
3026
|
+
}), Bo = Mi, Po = Li, Ao = e.object({
|
|
3027
|
+
businessUuid: e.uuid()
|
|
3028
|
+
}), wo = e.void(), To = e.object({
|
|
3029
|
+
contactPersonUuid: e.uuid(),
|
|
3030
|
+
businessUuid: e.uuid()
|
|
3031
|
+
}), Eo = Oi, _o = ki, So = e.object({
|
|
3032
|
+
contactPersonUuid: e.uuid(),
|
|
3033
|
+
businessUuid: e.uuid()
|
|
3034
|
+
}), Do = e.void(), xo = e.object({
|
|
3035
|
+
contactPersonUuid: e.uuid(),
|
|
3036
|
+
businessUuid: e.uuid()
|
|
3037
|
+
}), Mo = e.void(), Lo = e.object({
|
|
3038
|
+
individualUuid: e.uuid()
|
|
3039
|
+
}), ko = Ki, Oo = Fi, Go = e.object({
|
|
3040
|
+
individualUuid: e.uuid()
|
|
3041
|
+
}), Fo = e.void();
|
|
3042
|
+
e.object({
|
|
3043
|
+
uuid: e.uuid()
|
|
3044
|
+
});
|
|
3045
|
+
const Ko = Ci, Qo = e.object({
|
|
3046
|
+
boardColumnUuid: e.uuid()
|
|
3047
|
+
}), Ho = e.object({
|
|
3048
|
+
triggerTypes: e.array(ne).optional()
|
|
3049
|
+
}), Wo = na, qo = e.object({
|
|
3050
|
+
pagination: R.optional(),
|
|
3051
|
+
filter: ba.optional()
|
|
3052
|
+
}), Jo = pa, Zo = ia, Yo = aa, $o = e.object({
|
|
3053
|
+
dealUuid: e.uuid()
|
|
3054
|
+
}), Co = e.void(), Xo = e.object({
|
|
3055
|
+
dealUuid: e.uuid()
|
|
3056
|
+
}), el = da, tl = sa, nl = e.object({
|
|
3057
|
+
dealUuid: e.uuid()
|
|
3058
|
+
}), il = e.void();
|
|
3059
|
+
e.object({
|
|
3060
|
+
dealUuid: e.uuid()
|
|
3061
|
+
});
|
|
3062
|
+
e.void();
|
|
3063
|
+
const al = la, sl = e.object({
|
|
3064
|
+
dealUuid: e.uuid()
|
|
3065
|
+
}), ol = e.void(), ll = fa, rl = e.object({
|
|
3066
|
+
dealUuid: e.uuid()
|
|
3067
|
+
}), ul = ja, cl = e.object({
|
|
3068
|
+
contactPersonUuid: e.uuid(),
|
|
3069
|
+
dealUuid: e.uuid()
|
|
3070
|
+
}), dl = e.void(), bl = za, ml = e.object({
|
|
3071
|
+
dealUuid: e.uuid()
|
|
3072
|
+
}), gl = e.void(), pl = e.object({
|
|
3073
|
+
contactPersonUuid: e.uuid(),
|
|
3074
|
+
dealUuid: e.uuid()
|
|
3075
|
+
}), fl = Ia, jl = ha, zl = e.object({
|
|
3076
|
+
contactPersonUuid: e.uuid(),
|
|
3077
|
+
dealUuid: e.uuid()
|
|
3078
|
+
}), hl = e.void();
|
|
3079
|
+
e.void();
|
|
3080
|
+
const Il = ya, yl = e.object({
|
|
3081
|
+
individualUuid: e.uuid()
|
|
3082
|
+
});
|
|
3083
|
+
e.void();
|
|
3084
|
+
const vl = e.object({
|
|
3085
|
+
pagination: R.optional()
|
|
3086
|
+
}), Vl = Ra, Rl = e.object({
|
|
3087
|
+
mailTemplateUuid: e.uuid()
|
|
3088
|
+
}), Ul = Qe, Nl = Ta, Bl = e.object({
|
|
3089
|
+
mailTemplateUuid: e.uuid()
|
|
3090
|
+
}), Pl = e.void(), Al = e.object({
|
|
3091
|
+
mailTemplateKey: e.string()
|
|
3092
|
+
}), wl = Qe, Tl = e.object({
|
|
3093
|
+
pagination: R.optional(),
|
|
3094
|
+
filter: xa.optional()
|
|
3095
|
+
}), El = Fa, _l = Sa, Sl = Da, Dl = e.object({
|
|
3096
|
+
dealUuid: e.uuid()
|
|
3097
|
+
}), xl = Ka;
|
|
3098
|
+
e.object({
|
|
3099
|
+
filter: Qa.optional(),
|
|
3100
|
+
pagination: Ha.optional()
|
|
3101
|
+
});
|
|
3102
|
+
const es = /[xy]/g;
|
|
3103
|
+
class Ml {
|
|
3104
|
+
static getRandom() {
|
|
3105
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(es, (i) => {
|
|
3106
|
+
const a = Math.random() * 16 | 0;
|
|
3107
|
+
return (i === "x" ? a : a & 3 | 8).toString(16);
|
|
3108
|
+
});
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
export {
|
|
3112
|
+
Js as $,
|
|
3113
|
+
bo as A,
|
|
3114
|
+
Ro as B,
|
|
3115
|
+
Vo as C,
|
|
3116
|
+
jo as D,
|
|
3117
|
+
fo as E,
|
|
3118
|
+
po as F,
|
|
3119
|
+
vs as G,
|
|
3120
|
+
ys as H,
|
|
3121
|
+
Is as I,
|
|
3122
|
+
vo as J,
|
|
3123
|
+
yo as K,
|
|
3124
|
+
Io as L,
|
|
3125
|
+
Fo as M,
|
|
3126
|
+
Go as N,
|
|
3127
|
+
Oo as O,
|
|
3128
|
+
ms as P,
|
|
3129
|
+
bs as Q,
|
|
3130
|
+
Hs as R,
|
|
3131
|
+
Qs as S,
|
|
3132
|
+
Es as T,
|
|
3133
|
+
Ts as U,
|
|
3134
|
+
Ys as V,
|
|
3135
|
+
Zs as W,
|
|
3136
|
+
ws as X,
|
|
3137
|
+
As as Y,
|
|
3138
|
+
Ps as Z,
|
|
3139
|
+
Bs as _,
|
|
3140
|
+
ss as a,
|
|
3141
|
+
ul as a$,
|
|
3142
|
+
Ws as a0,
|
|
3143
|
+
qs as a1,
|
|
3144
|
+
Os as a2,
|
|
3145
|
+
ks as a3,
|
|
3146
|
+
Ss as a4,
|
|
3147
|
+
_s as a5,
|
|
3148
|
+
Eo as a6,
|
|
3149
|
+
To as a7,
|
|
3150
|
+
Ls as a8,
|
|
3151
|
+
Bo as a9,
|
|
3152
|
+
so as aA,
|
|
3153
|
+
oo as aB,
|
|
3154
|
+
to as aC,
|
|
3155
|
+
eo as aD,
|
|
3156
|
+
Ko as aE,
|
|
3157
|
+
Wo as aF,
|
|
3158
|
+
Qo as aG,
|
|
3159
|
+
Ho as aH,
|
|
3160
|
+
Vl as aI,
|
|
3161
|
+
vl as aJ,
|
|
3162
|
+
wl as aK,
|
|
3163
|
+
Al as aL,
|
|
3164
|
+
Ul as aM,
|
|
3165
|
+
Rl as aN,
|
|
3166
|
+
Pl as aO,
|
|
3167
|
+
Bl as aP,
|
|
3168
|
+
Nl as aQ,
|
|
3169
|
+
Yo as aR,
|
|
3170
|
+
Zo as aS,
|
|
3171
|
+
Co as aT,
|
|
3172
|
+
$o as aU,
|
|
3173
|
+
Jo as aV,
|
|
3174
|
+
qo as aW,
|
|
3175
|
+
el as aX,
|
|
3176
|
+
Xo as aY,
|
|
3177
|
+
fl as aZ,
|
|
3178
|
+
pl as a_,
|
|
3179
|
+
No as aa,
|
|
3180
|
+
Uo as ab,
|
|
3181
|
+
Mo as ac,
|
|
3182
|
+
xo as ad,
|
|
3183
|
+
wo as ae,
|
|
3184
|
+
Ao as af,
|
|
3185
|
+
Po as ag,
|
|
3186
|
+
Ms as ah,
|
|
3187
|
+
xs as ai,
|
|
3188
|
+
Ds as aj,
|
|
3189
|
+
Do as ak,
|
|
3190
|
+
So as al,
|
|
3191
|
+
_o as am,
|
|
3192
|
+
Ks as an,
|
|
3193
|
+
Fs as ao,
|
|
3194
|
+
Gs as ap,
|
|
3195
|
+
Cs as aq,
|
|
3196
|
+
$s as ar,
|
|
3197
|
+
Xs as as,
|
|
3198
|
+
ao as at,
|
|
3199
|
+
no as au,
|
|
3200
|
+
io as av,
|
|
3201
|
+
co as aw,
|
|
3202
|
+
ro as ax,
|
|
3203
|
+
uo as ay,
|
|
3204
|
+
lo as az,
|
|
3205
|
+
ds as b,
|
|
3206
|
+
rl as b0,
|
|
3207
|
+
ll as b1,
|
|
3208
|
+
dl as b2,
|
|
3209
|
+
cl as b3,
|
|
3210
|
+
ol as b4,
|
|
3211
|
+
sl as b5,
|
|
3212
|
+
al as b6,
|
|
3213
|
+
gl as b7,
|
|
3214
|
+
ml as b8,
|
|
3215
|
+
bl as b9,
|
|
3216
|
+
at as bA,
|
|
3217
|
+
il as ba,
|
|
3218
|
+
nl as bb,
|
|
3219
|
+
tl as bc,
|
|
3220
|
+
hl as bd,
|
|
3221
|
+
zl as be,
|
|
3222
|
+
jl as bf,
|
|
3223
|
+
Sl as bg,
|
|
3224
|
+
_l as bh,
|
|
3225
|
+
El as bi,
|
|
3226
|
+
Tl as bj,
|
|
3227
|
+
xl as bk,
|
|
3228
|
+
Dl as bl,
|
|
3229
|
+
as as bm,
|
|
3230
|
+
is as bn,
|
|
3231
|
+
ns as bo,
|
|
3232
|
+
Xe as bp,
|
|
3233
|
+
tt as bq,
|
|
3234
|
+
Ce as br,
|
|
3235
|
+
it as bs,
|
|
3236
|
+
et as bt,
|
|
3237
|
+
Ml as bu,
|
|
3238
|
+
st as bv,
|
|
3239
|
+
lt as bw,
|
|
3240
|
+
ot as bx,
|
|
3241
|
+
nt as by,
|
|
3242
|
+
rt as bz,
|
|
3243
|
+
ts as c,
|
|
3244
|
+
cs as d,
|
|
3245
|
+
us as e,
|
|
3246
|
+
rs as f,
|
|
3247
|
+
ls as g,
|
|
3248
|
+
js as h,
|
|
3249
|
+
fs as i,
|
|
3250
|
+
Ns as j,
|
|
3251
|
+
Rs as k,
|
|
3252
|
+
Us as l,
|
|
3253
|
+
ps as m,
|
|
3254
|
+
gs as n,
|
|
3255
|
+
ko as o,
|
|
3256
|
+
Lo as p,
|
|
3257
|
+
hs as q,
|
|
3258
|
+
zs as r,
|
|
3259
|
+
ho as s,
|
|
3260
|
+
zo as t,
|
|
3261
|
+
Vs as u,
|
|
3262
|
+
yl as v,
|
|
3263
|
+
Il as w,
|
|
3264
|
+
go as x,
|
|
3265
|
+
mo as y,
|
|
3266
|
+
os as z
|
|
3267
|
+
};
|