@wisemen/wise-crm-web 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/ActivityIcon-DNdtN-M_.js +19 -0
  2. package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
  3. package/dist/{AttachmentIcon-CsucE3yf.js → AttachmentIcon-BLUd7LaN.js} +9 -7
  4. package/dist/BoldIcon-WRYUWz15.js +16 -0
  5. package/dist/{BookIcon-DgT3flV5.js → BookIcon-Bb3r5y_J.js} +9 -7
  6. package/dist/{BuildingIcon-Bm18omgW.js → BuildingIcon-DFutRg8d.js} +9 -7
  7. package/dist/{BuildingsIcon-D4X7QciL.js → BuildingsIcon-BVHy6yoa.js} +9 -7
  8. package/dist/{BulletListIcon-CNCV-cOS.js → BulletListIcon-BhOXLSBa.js} +9 -7
  9. package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
  10. package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
  11. package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
  12. package/dist/ClockIcon-BYfZAvIE.js +23 -0
  13. package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
  14. package/dist/{CopyIcon-CUomKXdn.js → CopyIcon-2eV8MRv_.js} +9 -7
  15. package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
  16. package/dist/CrmDetailView-BhZEQqUH.js +67 -0
  17. package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
  18. package/dist/DealDetailView-DWLudchX.js +1049 -0
  19. package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
  20. package/dist/{DealIcon-CpO-DkyS.js → DealIcon-BwUWYDxo.js} +9 -7
  21. package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
  22. package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
  23. package/dist/{EditWithLineIcon-C0WMD50F.js → EditWithLineIcon-BKYDPJOY.js} +9 -7
  24. package/dist/{Error-X0deDY-N.js → Error-za-wClcU.js} +2591 -2462
  25. package/dist/{FileIcon-3FebXgYQ.js → FileIcon-DL1e1tAu.js} +9 -7
  26. package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
  27. package/dist/H1Icon-B6NEsEbj.js +17 -0
  28. package/dist/{H2Icon-CuEmp9I0.js → H2Icon-CNof5Ohu.js} +9 -7
  29. package/dist/{H3Icon-wAPhdYIf.js → H3Icon-B2F2Tb6r.js} +9 -7
  30. package/dist/HashIcon-C_XttKfW.js +19 -0
  31. package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
  32. package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
  33. package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
  34. package/dist/ItalicIcon-DqBns3yy.js +17 -0
  35. package/dist/{LayersTreeIcon-Ct-owndO.js → LayersTreeIcon-DZZCSCY9.js} +10 -8
  36. package/dist/{LinkBrokenIcon-CTlqmapl.js → LinkBrokenIcon-BNBpWSi7.js} +9 -7
  37. package/dist/{LinkExternalIcon-LOVtSqBT.js → LinkExternalIcon-B7SHeB1_.js} +9 -7
  38. package/dist/LinkIcon-8bCrZEv9.js +17 -0
  39. package/dist/{LocationPinIcon-Cp-wRgk2.js → LocationPinIcon-UySRqSfG.js} +9 -7
  40. package/dist/{MailIcon-CnTrB1k3.js → MailIcon-BT7gSIZb.js} +9 -7
  41. package/dist/{MobilePhoneIcon-B747hmpS.js → MobilePhoneIcon-_KQGnCSS.js} +9 -7
  42. package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
  43. package/dist/{PhoneIcon-94MYVL85.js → PhoneIcon-DGGW_MNR.js} +9 -7
  44. package/dist/{RefreshIcon-DRe3coBc.js → RefreshIcon-D1QWfdPD.js} +9 -7
  45. package/dist/{SendIcon-MYItp1xI.js → SendIcon-BtJ-NCec.js} +9 -7
  46. package/dist/{SettingsIcon-C0qTAv0w.js → SettingsIcon-CWFwJelS.js} +10 -8
  47. package/dist/{StarOutlineIcon-CiFLgepk.js → StarOutlineIcon-C-ELTCDQ.js} +9 -7
  48. package/dist/{StarYellowIcon-C0v_XGwI.js → StarYellowIcon-7wuNWaQO.js} +9 -7
  49. package/dist/{ThreeDotsIcon-lujOTU3G.js → ThreeDotsIcon-C56RWk-0.js} +12 -10
  50. package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
  51. package/dist/{TrashIcon-v4L9SEK_.js → TrashIcon-o4PWmcYe.js} +9 -7
  52. package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
  53. package/dist/{UserCircleIcon-BjUt_2C4.js → UserCircleIcon-DiDajcIH.js} +10 -8
  54. package/dist/UserIcon-Bv1eF7ln.js +22 -0
  55. package/dist/{VerticalDotsIcon-Y3m6tlQ2.js → VerticalDotsIcon-YcD73UqY.js} +9 -7
  56. package/dist/{WalletIcon-pPsKbzmh.js → WalletIcon-CUh92U5K.js} +9 -7
  57. package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
  58. package/dist/client-9P6xe_5g.js +4188 -0
  59. package/dist/components/auto-focus/AutoFocus.vue.d.ts +13 -0
  60. package/dist/components/column-layout/ColumnLayout.vue.d.ts +1 -1
  61. package/dist/components/row-layout/RowLayout.vue.d.ts +1 -1
  62. package/dist/components/text/Text.vue.d.ts +1 -1
  63. package/dist/index.js +1881 -1693
  64. package/dist/style.css +2 -2
  65. package/dist/testing.js +102 -98
  66. package/dist/utils/color.util.d.ts +6 -0
  67. package/dist/{uuid.util-C1p-yuFc.js → uuid.util-DpiDKVoj.js} +4 -2
  68. package/package.json +30 -30
  69. package/dist/ActivityIcon-DFD9ZhO0.js +0 -17
  70. package/dist/AppSkeletonLoader-BAhoOmFD.js +0 -1106
  71. package/dist/BoldIcon-DY2FlAS0.js +0 -14
  72. package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +0 -2899
  73. package/dist/BusinessDetailView-BHVUfCpV.js +0 -24
  74. package/dist/ChevronDownIcon-CfBAAAca.js +0 -17
  75. package/dist/ClockIcon-Ckr1IQBt.js +0 -21
  76. package/dist/ClockPlusIcon-CVN69pCS.js +0 -21
  77. package/dist/CrmDetailHeaderCard-CiVLyIuw.js +0 -2516
  78. package/dist/CrmDetailView-DaAuWeiB.js +0 -65
  79. package/dist/DealCommunicationTabView-xq_zOAsr.js +0 -137
  80. package/dist/DealDetailView-C54XpYN1.js +0 -1021
  81. package/dist/DealExternalAttachment-Dp44vkgt.js +0 -177
  82. package/dist/DealSendMailDialog-D11Tgd_A.js +0 -1552
  83. package/dist/DownloadCloudIcon-VMmB9vit.js +0 -17
  84. package/dist/FilterLinesIcon-DHpRPKJB.js +0 -20
  85. package/dist/H1Icon-CPVGTTtl.js +0 -15
  86. package/dist/HashIcon-C2kfHjTC.js +0 -17
  87. package/dist/HomeFilledIcon-CxIazF0B.js +0 -14
  88. package/dist/IndividualDetailSidebarProvider-BvjhFng9.js +0 -608
  89. package/dist/IndividualDetailView-Cq8iAwQv.js +0 -24
  90. package/dist/ItalicIcon-DfV3EOdk.js +0 -15
  91. package/dist/LinkIcon-DqBbVrvs.js +0 -15
  92. package/dist/NumberedListIcon-amJxDaaD.js +0 -15
  93. package/dist/TimeLineMarkerIcon-C4LfErbc.js +0 -16
  94. package/dist/UploadCloudIcon-j1-1Rvqb.js +0 -17
  95. package/dist/UserIcon-Cb2jFKLr.js +0 -20
  96. package/dist/_plugin-vue_export-helper-BSi1g3Lh.js +0 -6
  97. package/dist/client-S6BLV3Ct.js +0 -4191
@@ -0,0 +1,4188 @@
1
+ import { z as e } from "zod";
2
+ //#region src/client/types.gen.ts
3
+ var t = /* @__PURE__ */ function(e) {
4
+ return e.EN_US = "en-US", e.NL_BE = "nl-BE", e.FR_BE = "fr-BE", e;
5
+ }({}), n = /* @__PURE__ */ function(e) {
6
+ return e.MOSS = "moss", e.GREEN_LIGHT = "green-light", e.GREEN = "green", e.TEAL = "teal", e.CYAN = "cyan", e.BLUE_LIGHT = "blue-light", e.BLUE = "blue", e.BLUE_DARK = "blue-dark", e.INDIGO = "indigo", e.VIOLET = "violet", e.PURPLE = "purple", e.FUCHSIA = "fuchsia", e.PINK = "pink", e.ROSE = "rose", e.ORANGE_DARK = "orange-dark", e.ORANGE = "orange", e.YELLOW = "yellow", e.ERROR = "error", e.WARNING = "warning", e.SUCCESS = "success", e;
7
+ }({}), r = /* @__PURE__ */ function(e) {
8
+ return e.EMAIL_ONLY = "EMAIL_ONLY", e.ADDRESS_ONLY = "ADDRESS_ONLY", e.EMAIL_AND_ADDRESS = "EMAIL_AND_ADDRESS", e.EMAIL_OR_ADDRESS = "EMAIL_OR_ADDRESS", e;
9
+ }({}), i = /* @__PURE__ */ function(e) {
10
+ return e.INDIVIDUAL = "individual", e.BUSINESS = "business", e;
11
+ }({}), a = /* @__PURE__ */ function(e) {
12
+ return e.APPLICATION_PDF = "application/pdf", e.APPLICATION_MSWORD = "application/msword", e.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", e.APPLICATION_VND_MS_POWERPOINT = "application/vnd.ms-powerpoint", e.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = "application/vnd.openxmlformats-officedocument.presentationml.presentation", e.TEXT_PLAIN = "text/plain", e.TEXT_HTML = "text/html", e.TEXT_CSV = "text/csv", e.IMAGE_JPEG = "image/jpeg", e.IMAGE_PNG = "image/png", e.IMAGE_TIFF = "image/tiff", e.IMAGE_BMP = "image/bmp", e.IMAGE_HEIC = "image/heic", e.IMAGE_WEBP = "image/webp", e.IMAGE_GIF = "image/gif", e.APPLICATION_OCTET_STREAM = "application/octet-stream", e;
13
+ }({}), o = /* @__PURE__ */ function(e) {
14
+ return e.AF = "AF", e.AL = "AL", e.DZ = "DZ", e.AD = "AD", e.AO = "AO", e.AG = "AG", e.AR = "AR", e.AM = "AM", e.AU = "AU", e.AT = "AT", e.AZ = "AZ", e.BS = "BS", e.BH = "BH", e.BD = "BD", e.BB = "BB", e.BY = "BY", e.BE = "BE", e.BZ = "BZ", e.BJ = "BJ", e.BT = "BT", e.BO = "BO", e.BA = "BA", e.BW = "BW", e.BR = "BR", e.BN = "BN", e.BG = "BG", e.BF = "BF", e.BI = "BI", e.KH = "KH", e.CM = "CM", e.CA = "CA", e.CV = "CV", e.CF = "CF", e.TD = "TD", e.CL = "CL", e.CN = "CN", e.CO = "CO", e.KM = "KM", e.CG = "CG", e.CR = "CR", e.HR = "HR", e.CU = "CU", e.CY = "CY", e.CZ = "CZ", e.DK = "DK", e.DJ = "DJ", e.DM = "DM", e.DO = "DO", e.EC = "EC", e.EG = "EG", e.SV = "SV", e.GQ = "GQ", e.ER = "ER", e.EE = "EE", e.ET = "ET", e.FJ = "FJ", e.FI = "FI", e.FR = "FR", e.GA = "GA", e.GM = "GM", e.GE = "GE", e.DE = "DE", e.GH = "GH", e.GR = "GR", e.GD = "GD", e.GT = "GT", e.GN = "GN", e.GW = "GW", e.GY = "GY", e.HT = "HT", e.HN = "HN", e.HU = "HU", e.IS = "IS", e.IN = "IN", e.ID = "ID", e.IR = "IR", e.IQ = "IQ", e.IE = "IE", e.IL = "IL", e.IT = "IT", e.JM = "JM", e.JP = "JP", e.JO = "JO", e.KZ = "KZ", e.KE = "KE", e.KI = "KI", e.KP = "KP", e.KR = "KR", e.KW = "KW", e.KG = "KG", e.LA = "LA", e.LV = "LV", e.LB = "LB", e.LS = "LS", e.LR = "LR", e.LY = "LY", e.LI = "LI", e.LT = "LT", e.LU = "LU", e.MG = "MG", e.MW = "MW", e.MY = "MY", e.MV = "MV", e.ML = "ML", e.MT = "MT", e.MH = "MH", e.MR = "MR", e.MU = "MU", e.MX = "MX", e.FM = "FM", e.MD = "MD", e.MC = "MC", e.MN = "MN", e.ME = "ME", e.MA = "MA", e.MZ = "MZ", e.MM = "MM", e.NA = "NA", e.NR = "NR", e.NP = "NP", e.NL = "NL", e.NZ = "NZ", e.NI = "NI", e.NE = "NE", e.NG = "NG", e.XI = "XI", e.MK = "MK", e.NO = "NO", e.OM = "OM", e.PK = "PK", e.PW = "PW", e.PA = "PA", e.PG = "PG", e.PY = "PY", e.PE = "PE", e.PH = "PH", e.PL = "PL", e.PT = "PT", e.QA = "QA", e.RO = "RO", e.RU = "RU", e.RW = "RW", e.KN = "KN", e.LC = "LC", e.VC = "VC", e.WS = "WS", e.SM = "SM", e.ST = "ST", e.SA = "SA", e.SN = "SN", e.RS = "RS", e.SC = "SC", e.SL = "SL", e.SG = "SG", e.SK = "SK", e.SI = "SI", e.SB = "SB", e.SO = "SO", e.ZA = "ZA", e.SS = "SS", e.ES = "ES", e.LK = "LK", e.SD = "SD", e.SR = "SR", e.SE = "SE", e.CH = "CH", e.SY = "SY", e.TW = "TW", e.TJ = "TJ", e.TZ = "TZ", e.TH = "TH", e.TL = "TL", e.TG = "TG", e.TO = "TO", e.TT = "TT", e.TN = "TN", e.TR = "TR", e.TM = "TM", e.TV = "TV", e.UG = "UG", e.UA = "UA", e.AE = "AE", e.GB = "GB", e.US = "US", e.UY = "UY", e.UZ = "UZ", e.VU = "VU", e.VA = "VA", e.VE = "VE", e.VN = "VN", e.YE = "YE", e.ZM = "ZM", e.ZW = "ZW", e;
15
+ }({}), s = /* @__PURE__ */ function(e) {
16
+ return e.NL_BE = "nl-BE", e.EN_US = "en-US", e.FR_BE = "fr-BE", e.DE_DE = "de-DE", e;
17
+ }({}), c = /* @__PURE__ */ function(e) {
18
+ return e.MANUAL = "manual", e.EMAIL = "email", e;
19
+ }({}), l = /* @__PURE__ */ function(e) {
20
+ return e.USER = "user", e.BUSINESS = "business", e.INDIVIDUAL = "individual", e;
21
+ }({}), u = /* @__PURE__ */ function(e) {
22
+ return e.MAIL = "mail", e.WEBSITE = "website", e.PHONE = "phone", e.TENDER = "tender", e;
23
+ }({}), d = /* @__PURE__ */ function(e) {
24
+ return e.BUSINESS = "business", e.INDIVIDUAL = "individual", e;
25
+ }({}), f = /* @__PURE__ */ function(e) {
26
+ return e.LEAD = "lead", e.CUSTOMER = "customer", e.INACTIVE = "inactive", e.ARCHIVED = "archived", e.CONTACT = "contact", e;
27
+ }({}), p = e.enum(/* @__PURE__ */ "all_permissions,activity-log.read,contact.create,contact.read,contact.update,contact.delete,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,location.create,location.update,location.read,contact-person.archive,contact-person.unarchive,contact-person.create,contact-person.update,contact-person.read,individual.create,individual.update,individual.status.update,individual.read,individual.read-activity-log,business.create,business.link-as-child,business.link-as-parent,business.read,business.read-activity-log,business.update,business.vat-number-existence-check,billing-information.upsert,billing-information.read,tenant.config.read,tenant.config.update,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,custom-field-definition.create,custom-field-definition.read,note.create,note.update,note.read,note.delete,note-file.create,note-file.delete,board.create,board.read,deal.create,deal.read,deal.update,deal.contact.person.update,deal.contact.person.read,vat-number-check,cbe.import,cbe.search,mail.template.read,mail.template.create,mail.template.update,mail.read,mail.create".split(",")), m = e.object({
28
+ name: e.string(),
29
+ key: p,
30
+ description: e.string()
31
+ }), h = e.object({
32
+ name: e.string(),
33
+ permissions: e.array(m)
34
+ });
35
+ e.object({ groups: e.array(h) });
36
+ var g = e.object({
37
+ brand25: e.string(),
38
+ brand50: e.string(),
39
+ brand100: e.string(),
40
+ brand200: e.string(),
41
+ brand300: e.string(),
42
+ brand400: e.string(),
43
+ brand500: e.string(),
44
+ brand600: e.string(),
45
+ brand700: e.string(),
46
+ brand800: e.string(),
47
+ brand900: e.string(),
48
+ brand950: e.string()
49
+ }), _ = e.enum([
50
+ "en-US",
51
+ "nl-BE",
52
+ "fr-BE"
53
+ ]), v = e.object({
54
+ language: _,
55
+ value: e.string()
56
+ }), y = e.enum([
57
+ "moss",
58
+ "green-light",
59
+ "green",
60
+ "teal",
61
+ "cyan",
62
+ "blue-light",
63
+ "blue",
64
+ "blue-dark",
65
+ "indigo",
66
+ "violet",
67
+ "purple",
68
+ "fuchsia",
69
+ "pink",
70
+ "rose",
71
+ "orange-dark",
72
+ "orange",
73
+ "yellow",
74
+ "error",
75
+ "warning",
76
+ "success"
77
+ ]), b = e.enum([
78
+ "EMAIL_ONLY",
79
+ "ADDRESS_ONLY",
80
+ "EMAIL_AND_ADDRESS",
81
+ "EMAIL_OR_ADDRESS"
82
+ ]), ee = e.object({
83
+ name: e.array(v),
84
+ entityColor: y,
85
+ viesValidation: e.boolean(),
86
+ requireIndividualOnCreate: e.boolean(),
87
+ billingInformationRequirement: b
88
+ }), te = e.object({
89
+ name: e.array(v),
90
+ entityColor: y,
91
+ billingInformationRequirement: b
92
+ }), ne = e.object({
93
+ name: e.string(),
94
+ slug: e.string(),
95
+ domain: e.string(),
96
+ logoUrl: e.union([e.string(), e.null()]),
97
+ oidcIssuer: e.string(),
98
+ oidcClientId: e.string(),
99
+ oidcOrganizationId: e.string(),
100
+ nativeClientId: e.string(),
101
+ czOidcIssuer: e.string(),
102
+ czOidcAudience: e.string(),
103
+ czOidcOrganizationId: e.string(),
104
+ czNativeClientId: e.string(),
105
+ brandColors: g,
106
+ businessConfig: ee,
107
+ individualConfig: te
108
+ });
109
+ e.object({
110
+ uuid: e.uuid(),
111
+ name: e.string(),
112
+ slug: e.string(),
113
+ oidcIssuer: e.string(),
114
+ oidcClientId: e.string()
115
+ });
116
+ var re = e.object({
117
+ name: e.string(),
118
+ slug: e.string(),
119
+ domain: e.union([e.string(), e.null()]),
120
+ logoUrl: e.union([e.string(), e.null()]),
121
+ oidcIssuer: e.optional(e.string()),
122
+ oidcClientId: e.optional(e.string()),
123
+ oidcOrganizationId: e.optional(e.string()),
124
+ nativeClientId: e.optional(e.string()),
125
+ czOidcIssuer: e.optional(e.string()),
126
+ czOidcAudience: e.optional(e.string()),
127
+ czOidcOrganizationId: e.optional(e.string()),
128
+ czNativeClientId: e.optional(e.string()),
129
+ brandColors: g,
130
+ businessConfig: ee,
131
+ individualConfig: te
132
+ });
133
+ e.object({
134
+ detail: e.optional(e.string()),
135
+ status: e.enum(["404"]),
136
+ code: e.enum(["tenant_not_found"])
137
+ });
138
+ var ie = e.object({ brandColors: g }), ae = e.enum(["individual", "business"]), oe = e.object({
139
+ entityType: ae,
140
+ entityName: e.array(v),
141
+ entityColor: y
142
+ }), se = e.object({ entities: e.array(oe) }), ce = e.enum([
143
+ "NL",
144
+ "FR",
145
+ "EN"
146
+ ]), le = e.object({
147
+ login: e.string(),
148
+ password: e.string(),
149
+ secret: e.string(),
150
+ language: ce,
151
+ integrator: e.string()
152
+ }), ue = e.object({
153
+ viesValidation: e.boolean(),
154
+ requireIndividualOnCreate: e.boolean(),
155
+ companyweb: e.union([le, e.null()])
156
+ }), de = e.object({ businessConfig: ue }), fe = e.object({
157
+ individualBillingInformationRequirement: b,
158
+ businessBillingInformationRequirement: b
159
+ }), pe = e.object({ billingConfig: fe });
160
+ e.object({
161
+ uuid: e.uuid(),
162
+ createdAt: e.iso.datetime(),
163
+ updatedAt: e.iso.datetime(),
164
+ name: e.string(),
165
+ slug: e.string(),
166
+ domain: e.union([e.string(), e.null()])
167
+ });
168
+ var x = e.object({
169
+ limit: e.number().gte(1).lte(100),
170
+ offset: e.number().gte(0)
171
+ }), me = e.object({
172
+ uuid: e.uuid(),
173
+ createdAt: e.iso.datetime(),
174
+ updatedAt: e.iso.datetime(),
175
+ name: e.string(),
176
+ slug: e.string(),
177
+ domain: e.union([e.string(), e.null()])
178
+ }), S = e.object({
179
+ total: e.number(),
180
+ offset: e.number(),
181
+ limit: e.number()
182
+ });
183
+ e.object({
184
+ items: e.array(me),
185
+ meta: S
186
+ });
187
+ var he = e.object({
188
+ entityType: ae,
189
+ entityName: e.string(),
190
+ entityColor: y
191
+ }), ge = e.object({
192
+ viesValidation: e.boolean(),
193
+ requireIndividualOnCreate: e.boolean()
194
+ }), _e = e.object({
195
+ individualBillingInformationRequirement: b,
196
+ businessBillingInformationRequirement: b
197
+ }), C = e.enum([
198
+ "lead",
199
+ "customer",
200
+ "inactive",
201
+ "archived"
202
+ ]), w = e.enum([
203
+ "contact",
204
+ "lead",
205
+ "customer",
206
+ "inactive"
207
+ ]), ve = e.object({
208
+ enableBusinessDeals: e.boolean(),
209
+ enableIndividualDeals: e.boolean(),
210
+ creatableBusinessStatuses: e.array(C),
211
+ creatableIndividualStatuses: e.array(w)
212
+ }), T = e.object({
213
+ brand25: e.string(),
214
+ brand50: e.string(),
215
+ brand100: e.string(),
216
+ brand200: e.string(),
217
+ brand300: e.string(),
218
+ brand400: e.string(),
219
+ brand500: e.string(),
220
+ brand600: e.string(),
221
+ brand700: e.string(),
222
+ brand800: e.string(),
223
+ brand900: e.string(),
224
+ brand950: e.string()
225
+ }), ye = e.object({
226
+ uuid: e.uuid(),
227
+ name: e.string(),
228
+ entities: e.array(he),
229
+ businessConfig: ge,
230
+ billingConfig: _e,
231
+ dealConfig: ve,
232
+ brandColors: T,
233
+ logoUrl: e.union([e.string(), e.null()])
234
+ }), be = e.enum([
235
+ "individual",
236
+ "business",
237
+ "deal"
238
+ ]), xe = e.object({ types: e.optional(e.array(be)) }), Se = e.object({
239
+ type: e.enum([
240
+ "individual",
241
+ "business",
242
+ "deal"
243
+ ]),
244
+ uuid: e.uuid(),
245
+ name: e.string(),
246
+ createdAt: e.iso.datetime()
247
+ }), Ce = e.object({
248
+ items: e.array(Se),
249
+ meta: S
250
+ });
251
+ e.object({
252
+ detail: e.optional(e.string()),
253
+ status: e.enum(["409"]),
254
+ code: e.enum(["user_connected_to_other_tenant"])
255
+ }), e.object({
256
+ detail: e.optional(e.string()),
257
+ status: e.enum(["404"]),
258
+ code: e.enum(["user_not_found"])
259
+ });
260
+ var we = e.object({ userId: e.string() }), Te = e.enum([
261
+ "user",
262
+ "location",
263
+ "individual",
264
+ "business",
265
+ "cbe-enterprise",
266
+ "cbe-establishment"
267
+ ]);
268
+ e.object({ collections: e.array(e.enum([
269
+ "user",
270
+ "location",
271
+ "individual",
272
+ "business",
273
+ "cbe-enterprise",
274
+ "cbe-establishment"
275
+ ])) }), e.object({
276
+ baseUrl: e.string(),
277
+ clientId: e.string(),
278
+ organizationID: e.string(),
279
+ nativeClientId: e.string(),
280
+ brandColors: T,
281
+ logoUrl: e.union([e.string(), e.null()])
282
+ }), e.object({
283
+ baseUrl: e.string(),
284
+ clientId: e.string(),
285
+ organizationID: e.string(),
286
+ nativeClientId: e.string(),
287
+ brandColors: T
288
+ }), e.object({
289
+ environment: e.string(),
290
+ commit: e.string(),
291
+ version: e.string(),
292
+ timestamp: e.iso.datetime()
293
+ });
294
+ var Ee = e.object({ roleUuids: e.array(e.uuid()) }), De = e.object({
295
+ uuid: e.uuid(),
296
+ createdAt: e.iso.datetime(),
297
+ updatedAt: e.iso.datetime(),
298
+ name: e.string(),
299
+ permissions: e.array(p),
300
+ isDefault: e.boolean(),
301
+ isSystemAdmin: e.boolean()
302
+ });
303
+ e.object({
304
+ uuid: e.uuid(),
305
+ email: e.union([e.email(), e.null()]),
306
+ firstName: e.union([e.string(), e.null()]),
307
+ lastName: e.union([e.string(), e.null()]),
308
+ tenantUuid: e.union([e.uuid(), e.null()]),
309
+ roles: e.array(De)
310
+ }), e.object({
311
+ uuid: e.uuid(),
312
+ email: e.union([e.email(), e.null()]),
313
+ firstName: e.union([e.string(), e.null()]),
314
+ lastName: e.union([e.string(), e.null()]),
315
+ tenantUuid: e.union([e.uuid(), e.null()]),
316
+ roles: e.array(De)
317
+ });
318
+ var Oe = e.object({
319
+ uuid: e.uuid(),
320
+ name: e.string()
321
+ }), ke = e.object({
322
+ uuid: e.uuid(),
323
+ email: e.union([e.email(), e.null()]),
324
+ firstName: e.union([e.string(), e.null()]),
325
+ lastName: e.union([e.string(), e.null()]),
326
+ roles: e.array(Oe)
327
+ }), Ae = e.object({
328
+ items: e.array(ke),
329
+ meta: S
330
+ }), je = e.object({ name: e.string() });
331
+ e.object({ uuid: e.uuid() });
332
+ var Me = e.object({ roleUuids: e.optional(e.union([e.array(e.uuid()), e.null()])) });
333
+ e.object({
334
+ detail: e.optional(e.string()),
335
+ status: e.enum(["404"]),
336
+ code: e.enum(["role_not_found"])
337
+ });
338
+ var Ne = e.object({ name: e.string() }), Pe = e.object({
339
+ uuid: e.uuid(),
340
+ createdAt: e.iso.datetime(),
341
+ updatedAt: e.iso.datetime(),
342
+ name: e.string(),
343
+ permissions: e.array(p),
344
+ isDefault: e.boolean(),
345
+ isSystemAdmin: e.boolean()
346
+ });
347
+ e.object({ items: e.array(Pe) });
348
+ var Fe = e.object({
349
+ roleUuid: e.uuid(),
350
+ permissions: e.array(p)
351
+ }), Ie = e.object({ roles: e.array(Fe) }), E = e.enum([
352
+ "application/pdf",
353
+ "application/msword",
354
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
355
+ "application/vnd.ms-powerpoint",
356
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
357
+ "text/plain",
358
+ "text/html",
359
+ "text/csv",
360
+ "image/jpeg",
361
+ "image/png",
362
+ "image/tiff",
363
+ "image/bmp",
364
+ "image/heic",
365
+ "image/webp",
366
+ "image/gif",
367
+ "application/octet-stream"
368
+ ]), Le = e.object({
369
+ name: e.string(),
370
+ mimeType: E
371
+ }), Re = e.object({
372
+ uuid: e.uuid(),
373
+ name: e.string(),
374
+ mimeType: e.union([E, e.null()]),
375
+ uploadUrl: e.string()
376
+ });
377
+ e.object({
378
+ detail: e.optional(e.string()),
379
+ status: e.enum(["404"]),
380
+ code: e.enum(["file_not_found"])
381
+ });
382
+ var ze = e.object({ blurHash: e.union([e.string().max(100), e.null()]) }), Be = e.enum([
383
+ "light",
384
+ "dark",
385
+ "system"
386
+ ]), Ve = e.enum([
387
+ "smaller",
388
+ "small",
389
+ "default",
390
+ "large",
391
+ "larger"
392
+ ]), He = e.object({
393
+ theme: e.optional(Be),
394
+ language: e.optional(_),
395
+ fontSize: e.optional(Ve),
396
+ showShortcuts: e.optional(e.boolean()),
397
+ reduceMotion: e.optional(e.boolean()),
398
+ highContrast: e.optional(e.boolean())
399
+ });
400
+ e.object({
401
+ theme: Be,
402
+ language: _,
403
+ fontSize: Ve,
404
+ showShortcuts: e.boolean(),
405
+ reduceMotion: e.boolean(),
406
+ highContrast: e.boolean()
407
+ }), e.object({
408
+ token: e.string(),
409
+ userUuid: e.uuid()
410
+ });
411
+ var Ue = e.object({
412
+ nl: e.optional(e.string()),
413
+ en: e.optional(e.string())
414
+ }), We = e.object({
415
+ name: e.string(),
416
+ title: Ue,
417
+ description: Ue,
418
+ userUuids: e.array(e.uuid())
419
+ }), D = e.enum([
420
+ "user",
421
+ "file",
422
+ "location",
423
+ "contact_person",
424
+ "individual",
425
+ "business",
426
+ "role",
427
+ "contact",
428
+ "tenant",
429
+ "custom_field_definition",
430
+ "note",
431
+ "note_file",
432
+ "cbe_enterprise",
433
+ "board_column",
434
+ "mail_template",
435
+ "deal",
436
+ "deal.contact.person",
437
+ "mail"
438
+ ]), Ge = e.object({
439
+ subjectType: e.optional(D),
440
+ subjectId: e.optional(e.uuid()),
441
+ userUuid: e.optional(e.uuid())
442
+ }), O = e.object({
443
+ createdAt: e.string(),
444
+ uuid: e.uuid()
445
+ }), Ke = e.object({
446
+ limit: e.number().gte(0).lte(100),
447
+ key: e.optional(e.union([O, e.null()]))
448
+ }), k = e.record(e.string(), e.unknown()), qe = e.object({
449
+ individualUuid: e.uuid(),
450
+ billingInformationUuid: e.uuid(),
451
+ address: e.union([k, e.null()]),
452
+ invoiceEmail: e.union([e.email(), e.null()]),
453
+ invoiceCcEmails: e.array(e.email())
454
+ }), Je = e.object({
455
+ uuid: e.uuid(),
456
+ createdAt: e.iso.datetime(),
457
+ version: e.int().gte(0),
458
+ source: e.string(),
459
+ userUuid: e.union([e.uuid(), e.null()]),
460
+ message: e.string(),
461
+ subjectType: e.union([D, e.null()]),
462
+ subjectId: e.union([e.uuid(), e.null()]),
463
+ type: e.enum(["individual.billing-information.upserted"]),
464
+ content: qe
465
+ }), Ye = e.object({
466
+ individualUuid: e.uuid(),
467
+ previousStatus: w,
468
+ status: w
469
+ }), Xe = e.object({
470
+ uuid: e.uuid(),
471
+ createdAt: e.iso.datetime(),
472
+ version: e.int().gte(0),
473
+ source: e.string(),
474
+ userUuid: e.union([e.uuid(), e.null()]),
475
+ message: e.string(),
476
+ subjectType: e.union([D, e.null()]),
477
+ subjectId: e.union([e.uuid(), e.null()]),
478
+ type: e.enum(["individual.status.updated"]),
479
+ content: Ye
480
+ }), A = e.object({
481
+ key: e.string(),
482
+ oldValue: e.union([
483
+ e.string(),
484
+ e.number(),
485
+ e.boolean(),
486
+ e.null()
487
+ ]),
488
+ newValue: e.union([
489
+ e.string(),
490
+ e.number(),
491
+ e.boolean(),
492
+ e.null()
493
+ ])
494
+ }), Ze = e.object({
495
+ individualUuid: e.uuid(),
496
+ firstName: e.string(),
497
+ lastName: e.string(),
498
+ email: e.union([e.email(), e.null()]),
499
+ phone: e.union([e.string(), e.null()]),
500
+ mobilePhone: e.union([e.string(), e.null()]),
501
+ address: e.optional(k),
502
+ changes: e.array(A),
503
+ customFields: e.optional(e.record(e.string(), e.unknown())),
504
+ language: _
505
+ }), Qe = e.object({
506
+ uuid: e.uuid(),
507
+ createdAt: e.iso.datetime(),
508
+ version: e.int().gte(0),
509
+ source: e.string(),
510
+ userUuid: e.union([e.uuid(), e.null()]),
511
+ message: e.string(),
512
+ subjectType: e.union([D, e.null()]),
513
+ subjectId: e.union([e.uuid(), e.null()]),
514
+ type: e.enum(["individual.updated"]),
515
+ content: Ze
516
+ }), $e = e.object({
517
+ individualUuid: e.uuid(),
518
+ firstName: e.string(),
519
+ lastName: e.string(),
520
+ email: e.union([e.email(), e.null()]),
521
+ phone: e.union([e.string(), e.null()]),
522
+ mobilePhone: e.union([e.string(), e.null()]),
523
+ address: e.union([k, e.null()]),
524
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()])
525
+ }), et = e.object({
526
+ uuid: e.uuid(),
527
+ createdAt: e.iso.datetime(),
528
+ version: e.int().gte(0),
529
+ source: e.string(),
530
+ userUuid: e.union([e.uuid(), e.null()]),
531
+ message: e.string(),
532
+ subjectType: e.union([D, e.null()]),
533
+ subjectId: e.union([e.uuid(), e.null()]),
534
+ type: e.enum(["individual.created"]),
535
+ content: $e
536
+ }), tt = e.object({
537
+ businessUuid: e.uuid(),
538
+ name: e.string(),
539
+ email: e.union([e.email(), e.null()]),
540
+ phone: e.union([e.string(), e.null()]),
541
+ mobilePhone: e.union([e.string(), e.null()]),
542
+ vatNumber: e.union([e.string(), e.null()]),
543
+ companyNumber: e.union([e.string(), e.null()]),
544
+ address: k,
545
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()]),
546
+ language: _
547
+ }), nt = e.object({
548
+ uuid: e.uuid(),
549
+ createdAt: e.iso.datetime(),
550
+ version: e.int().gte(0),
551
+ source: e.string(),
552
+ userUuid: e.union([e.uuid(), e.null()]),
553
+ message: e.string(),
554
+ subjectType: e.union([D, e.null()]),
555
+ subjectId: e.union([e.uuid(), e.null()]),
556
+ type: e.enum(["business.created"]),
557
+ content: tt
558
+ }), j = e.enum(/* @__PURE__ */ "AF.AL.DZ.AD.AO.AG.AR.AM.AU.AT.AZ.BS.BH.BD.BB.BY.BE.BZ.BJ.BT.BO.BA.BW.BR.BN.BG.BF.BI.KH.CM.CA.CV.CF.TD.CL.CN.CO.KM.CG.CR.HR.CU.CY.CZ.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.ET.FJ.FI.FR.GA.GM.GE.DE.GH.GR.GD.GT.GN.GW.GY.HT.HN.HU.IS.IN.ID.IR.IQ.IE.IL.IT.JM.JP.JO.KZ.KE.KI.KP.KR.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MG.MW.MY.MV.ML.MT.MH.MR.MU.MX.FM.MD.MC.MN.ME.MA.MZ.MM.NA.NR.NP.NL.NZ.NI.NE.NG.XI.MK.NO.OM.PK.PW.PA.PG.PY.PE.PH.PL.PT.QA.RO.RU.RW.KN.LC.VC.WS.SM.ST.SA.SN.RS.SC.SL.SG.SK.SI.SB.SO.ZA.SS.ES.LK.SD.SR.SE.CH.SY.TW.TJ.TZ.TH.TL.TG.TO.TT.TN.TR.TM.TV.UG.UA.AE.GB.US.UY.UZ.VU.VA.VE.VN.YE.ZM.ZW".split(".")), rt = e.object({
559
+ businessUuid: e.uuid(),
560
+ name: e.string(),
561
+ email: e.union([e.email(), e.null()]),
562
+ phone: e.union([e.string(), e.null()]),
563
+ mobilePhone: e.union([e.string(), e.null()]),
564
+ vatNumber: e.union([e.string(), e.null()]),
565
+ vatNumberCountryCode: e.union([j, e.null()]),
566
+ companyNumber: e.union([e.string(), e.null()]),
567
+ address: k,
568
+ changes: A,
569
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()]),
570
+ language: _
571
+ }), it = e.object({
572
+ uuid: e.uuid(),
573
+ createdAt: e.iso.datetime(),
574
+ version: e.int().gte(0),
575
+ source: e.string(),
576
+ userUuid: e.union([e.uuid(), e.null()]),
577
+ message: e.string(),
578
+ subjectType: e.union([D, e.null()]),
579
+ subjectId: e.union([e.uuid(), e.null()]),
580
+ type: e.enum(["business.updated"]),
581
+ content: rt
582
+ }), at = e.object({
583
+ businessUuid: e.uuid(),
584
+ billingInformationUuid: e.uuid(),
585
+ address: e.union([k, e.null()]),
586
+ invoiceEmail: e.union([e.email(), e.null()]),
587
+ invoiceCcEmails: e.array(e.email()),
588
+ reminderEmail: e.union([e.email(), e.null()]),
589
+ reminderCcEmails: e.array(e.email()),
590
+ purchaseNoteEmail: e.union([e.email(), e.null()]),
591
+ purchaseNoteCcEmails: e.array(e.email())
592
+ }), ot = e.object({
593
+ uuid: e.uuid(),
594
+ createdAt: e.iso.datetime(),
595
+ version: e.int().gte(0),
596
+ source: e.string(),
597
+ userUuid: e.union([e.uuid(), e.null()]),
598
+ message: e.string(),
599
+ subjectType: e.union([D, e.null()]),
600
+ subjectId: e.union([e.uuid(), e.null()]),
601
+ type: e.enum(["business.billing-information.upserted"]),
602
+ content: at
603
+ }), st = e.object({
604
+ businessUuid: e.uuid(),
605
+ previousStatus: C,
606
+ status: C,
607
+ archivedAt: e.union([e.iso.datetime(), e.null()])
608
+ }), ct = e.object({
609
+ uuid: e.uuid(),
610
+ createdAt: e.iso.datetime(),
611
+ version: e.int().gte(0),
612
+ source: e.string(),
613
+ userUuid: e.union([e.uuid(), e.null()]),
614
+ message: e.string(),
615
+ subjectType: e.union([D, e.null()]),
616
+ subjectId: e.union([e.uuid(), e.null()]),
617
+ type: e.enum(["business.status.updated"]),
618
+ content: st
619
+ }), lt = e.object({ enterpriseNumber: e.string() }), ut = e.object({
620
+ uuid: e.uuid(),
621
+ createdAt: e.iso.datetime(),
622
+ version: e.int().gte(0),
623
+ source: e.string(),
624
+ userUuid: e.union([e.uuid(), e.null()]),
625
+ message: e.string(),
626
+ subjectType: e.union([D, e.null()]),
627
+ subjectId: e.union([e.uuid(), e.null()]),
628
+ type: e.enum(["cbe-enterprise.imported"]),
629
+ content: lt
630
+ }), dt = e.object({ enterpriseNumber: e.string() }), ft = e.object({
631
+ uuid: e.uuid(),
632
+ createdAt: e.iso.datetime(),
633
+ version: e.int().gte(0),
634
+ source: e.string(),
635
+ userUuid: e.union([e.uuid(), e.null()]),
636
+ message: e.string(),
637
+ subjectType: e.union([D, e.null()]),
638
+ subjectId: e.union([e.uuid(), e.null()]),
639
+ type: e.enum(["cbe-denomination.imported"]),
640
+ content: dt
641
+ }), pt = e.object({ entityNumber: e.string() }), mt = e.object({
642
+ uuid: e.uuid(),
643
+ createdAt: e.iso.datetime(),
644
+ version: e.int().gte(0),
645
+ source: e.string(),
646
+ userUuid: e.union([e.uuid(), e.null()]),
647
+ message: e.string(),
648
+ subjectType: e.union([D, e.null()]),
649
+ subjectId: e.union([e.uuid(), e.null()]),
650
+ type: e.enum(["cbe-contact.imported"]),
651
+ content: pt
652
+ }), ht = e.object({ entityNumber: e.string() }), gt = e.object({
653
+ uuid: e.uuid(),
654
+ createdAt: e.iso.datetime(),
655
+ version: e.int().gte(0),
656
+ source: e.string(),
657
+ userUuid: e.union([e.uuid(), e.null()]),
658
+ message: e.string(),
659
+ subjectType: e.union([D, e.null()]),
660
+ subjectId: e.union([e.uuid(), e.null()]),
661
+ type: e.enum(["cbe-address.imported"]),
662
+ content: ht
663
+ }), M = e.object({
664
+ uuid: e.uuid(),
665
+ name: e.string()
666
+ }), _t = e.object({
667
+ businessUuid: e.uuid(),
668
+ contactPerson: M,
669
+ position: e.union([e.string(), e.null()])
670
+ }), vt = e.object({
671
+ uuid: e.uuid(),
672
+ createdAt: e.iso.datetime(),
673
+ version: e.int().gte(0),
674
+ source: e.string(),
675
+ userUuid: e.union([e.uuid(), e.null()]),
676
+ message: e.string(),
677
+ subjectType: e.union([D, e.null()]),
678
+ subjectId: e.union([e.uuid(), e.null()]),
679
+ type: e.enum(["business.contact-person.linked"]),
680
+ content: _t
681
+ }), yt = e.object({
682
+ dealUuid: e.uuid(),
683
+ contactPerson: M
684
+ }), bt = e.object({
685
+ uuid: e.uuid(),
686
+ createdAt: e.iso.datetime(),
687
+ version: e.int().gte(0),
688
+ source: e.string(),
689
+ userUuid: e.union([e.uuid(), e.null()]),
690
+ message: e.string(),
691
+ subjectType: e.union([D, e.null()]),
692
+ subjectId: e.union([e.uuid(), e.null()]),
693
+ type: e.enum(["deal.contact.person.linked"]),
694
+ content: yt
695
+ }), xt = e.object({ establishmentNumber: e.string() }), St = e.object({
696
+ uuid: e.uuid(),
697
+ createdAt: e.iso.datetime(),
698
+ version: e.int().gte(0),
699
+ source: e.string(),
700
+ userUuid: e.union([e.uuid(), e.null()]),
701
+ message: e.string(),
702
+ subjectType: e.union([D, e.null()]),
703
+ subjectId: e.union([e.uuid(), e.null()]),
704
+ type: e.enum(["cbe-establishment.imported"]),
705
+ content: xt
706
+ }), Ct = e.record(e.string(), e.unknown()), N = e.enum([
707
+ "nl-BE",
708
+ "en-US",
709
+ "fr-BE",
710
+ "de-DE"
711
+ ]), wt = e.object({
712
+ dealUuid: e.uuid(),
713
+ name: e.string(),
714
+ clientId: Ct,
715
+ columnKey: e.string(),
716
+ language: N
717
+ }), Tt = e.object({
718
+ uuid: e.uuid(),
719
+ createdAt: e.iso.datetime(),
720
+ version: e.int().gte(0),
721
+ source: e.string(),
722
+ userUuid: e.union([e.uuid(), e.null()]),
723
+ message: e.string(),
724
+ subjectType: e.union([D, e.null()]),
725
+ subjectId: e.union([e.uuid(), e.null()]),
726
+ type: e.enum(["deal.created"]),
727
+ content: wt
728
+ }), Et = e.object({
729
+ dealUuid: e.uuid(),
730
+ name: e.string(),
731
+ columnKey: e.string(),
732
+ language: N
733
+ }), Dt = e.object({
734
+ uuid: e.uuid(),
735
+ createdAt: e.iso.datetime(),
736
+ version: e.int().gte(0),
737
+ source: e.string(),
738
+ userUuid: e.union([e.uuid(), e.null()]),
739
+ message: e.string(),
740
+ subjectType: e.union([D, e.null()]),
741
+ subjectId: e.union([e.uuid(), e.null()]),
742
+ type: e.enum(["deal.updated"]),
743
+ content: Et
744
+ }), Ot = e.object({
745
+ fromBoardColumnUuid: e.uuid(),
746
+ toBoardColumnUuid: e.uuid()
747
+ }), kt = e.object({
748
+ uuid: e.uuid(),
749
+ createdAt: e.iso.datetime(),
750
+ version: e.int().gte(0),
751
+ source: e.string(),
752
+ userUuid: e.union([e.uuid(), e.null()]),
753
+ message: e.string(),
754
+ subjectType: e.union([D, e.null()]),
755
+ subjectId: e.union([e.uuid(), e.null()]),
756
+ type: e.enum(["deal.column.transitioned"]),
757
+ content: Ot
758
+ }), At = e.object({
759
+ mailUuid: e.uuid(),
760
+ to: e.array(e.string()),
761
+ cc: e.array(e.string()),
762
+ bcc: e.array(e.string()),
763
+ subject: e.string(),
764
+ mailTemplateUuid: e.union([e.uuid(), e.null()]),
765
+ mailTemplateKey: e.union([e.string(), e.null()]),
766
+ dealUuid: e.union([e.uuid(), e.null()])
767
+ }), jt = e.object({
768
+ uuid: e.uuid(),
769
+ createdAt: e.iso.datetime(),
770
+ version: e.int().gte(0),
771
+ source: e.string(),
772
+ userUuid: e.union([e.uuid(), e.null()]),
773
+ message: e.string(),
774
+ subjectType: e.union([D, e.null()]),
775
+ subjectId: e.union([e.uuid(), e.null()]),
776
+ type: e.enum(["mail.created"]),
777
+ content: At
778
+ }), Mt = e.object({ locationUuid: e.uuid() }), Nt = e.object({
779
+ uuid: e.uuid(),
780
+ createdAt: e.iso.datetime(),
781
+ version: e.int().gte(0),
782
+ source: e.string(),
783
+ userUuid: e.union([e.uuid(), e.null()]),
784
+ message: e.string(),
785
+ subjectType: e.union([D, e.null()]),
786
+ subjectId: e.union([e.uuid(), e.null()]),
787
+ type: e.enum(["location.created"]),
788
+ content: Mt
789
+ }), Pt = e.object({ locationUuid: e.uuid() }), Ft = e.object({
790
+ uuid: e.uuid(),
791
+ createdAt: e.iso.datetime(),
792
+ version: e.int().gte(0),
793
+ source: e.string(),
794
+ userUuid: e.union([e.uuid(), e.null()]),
795
+ message: e.string(),
796
+ subjectType: e.union([D, e.null()]),
797
+ subjectId: e.union([e.uuid(), e.null()]),
798
+ type: e.enum(["location.updated"]),
799
+ content: Pt
800
+ }), It = e.object({
801
+ mailUuid: e.uuid(),
802
+ to: e.array(e.string()),
803
+ cc: e.array(e.string()),
804
+ bcc: e.array(e.string()),
805
+ subject: e.string(),
806
+ mailTemplateUuid: e.union([e.uuid(), e.null()]),
807
+ mailTemplateKey: e.union([e.string(), e.null()]),
808
+ dealUuid: e.union([e.uuid(), e.null()])
809
+ }), Lt = e.object({
810
+ uuid: e.uuid(),
811
+ createdAt: e.iso.datetime(),
812
+ version: e.int().gte(0),
813
+ source: e.string(),
814
+ userUuid: e.union([e.uuid(), e.null()]),
815
+ message: e.string(),
816
+ subjectType: e.union([D, e.null()]),
817
+ subjectId: e.union([e.uuid(), e.null()]),
818
+ type: e.enum(["mail.sent"]),
819
+ content: It
820
+ }), Rt = e.object({
821
+ boardColumnUuid: e.uuid(),
822
+ key: e.string(),
823
+ position: e.number(),
824
+ tenantUuid: e.uuid()
825
+ }), zt = e.object({
826
+ uuid: e.uuid(),
827
+ createdAt: e.iso.datetime(),
828
+ version: e.int().gte(0),
829
+ source: e.string(),
830
+ userUuid: e.union([e.uuid(), e.null()]),
831
+ message: e.string(),
832
+ subjectType: e.union([D, e.null()]),
833
+ subjectId: e.union([e.uuid(), e.null()]),
834
+ type: e.enum(["board-column.created"]),
835
+ content: Rt
836
+ }), Bt = e.object({
837
+ boardColumnTransitionUuid: e.uuid(),
838
+ fromColumnUuid: e.uuid(),
839
+ toColumnUuid: e.uuid(),
840
+ tenantUuid: e.uuid()
841
+ }), Vt = e.object({
842
+ uuid: e.uuid(),
843
+ createdAt: e.iso.datetime(),
844
+ version: e.int().gte(0),
845
+ source: e.string(),
846
+ userUuid: e.union([e.uuid(), e.null()]),
847
+ message: e.string(),
848
+ subjectType: e.union([D, e.null()]),
849
+ subjectId: e.union([e.uuid(), e.null()]),
850
+ type: e.enum(["board-column-transition.created"]),
851
+ content: Bt
852
+ }), P = e.enum(["manual", "email"]), Ht = e.object({
853
+ boardColumnTransitionTriggerUuid: e.uuid(),
854
+ boardColumnTransitionUuid: e.uuid(),
855
+ triggerType: P,
856
+ tenantUuid: e.uuid()
857
+ }), Ut = e.object({
858
+ uuid: e.uuid(),
859
+ createdAt: e.iso.datetime(),
860
+ version: e.int().gte(0),
861
+ source: e.string(),
862
+ userUuid: e.union([e.uuid(), e.null()]),
863
+ message: e.string(),
864
+ subjectType: e.union([D, e.null()]),
865
+ subjectId: e.union([e.uuid(), e.null()]),
866
+ type: e.enum(["board-column-transition-trigger.created"]),
867
+ content: Ht
868
+ }), Wt = e.object({
869
+ businessUuid: e.uuid(),
870
+ contactPerson: M
871
+ }), Gt = e.object({
872
+ uuid: e.uuid(),
873
+ createdAt: e.iso.datetime(),
874
+ version: e.int().gte(0),
875
+ source: e.string(),
876
+ userUuid: e.union([e.uuid(), e.null()]),
877
+ message: e.string(),
878
+ subjectType: e.union([D, e.null()]),
879
+ subjectId: e.union([e.uuid(), e.null()]),
880
+ type: e.enum(["business.contact-person.unlinked"]),
881
+ content: Wt
882
+ }), Kt = e.object({
883
+ businessUuid: e.uuid(),
884
+ contactPerson: M,
885
+ diff: e.array(A)
886
+ }), qt = e.object({
887
+ uuid: e.uuid(),
888
+ createdAt: e.iso.datetime(),
889
+ version: e.int().gte(0),
890
+ source: e.string(),
891
+ userUuid: e.union([e.uuid(), e.null()]),
892
+ message: e.string(),
893
+ subjectType: e.union([D, e.null()]),
894
+ subjectId: e.union([e.uuid(), e.null()]),
895
+ type: e.enum(["business.contact-person.updated"]),
896
+ content: Kt
897
+ }), Jt = e.object({
898
+ businessUuid: e.uuid(),
899
+ contactPerson: M
900
+ }), Yt = e.object({
901
+ uuid: e.uuid(),
902
+ createdAt: e.iso.datetime(),
903
+ version: e.int().gte(0),
904
+ source: e.string(),
905
+ userUuid: e.union([e.uuid(), e.null()]),
906
+ message: e.string(),
907
+ subjectType: e.union([D, e.null()]),
908
+ subjectId: e.union([e.uuid(), e.null()]),
909
+ type: e.enum(["business.contact-person.made-primary"]),
910
+ content: Jt
911
+ }), Xt = e.object({ customFieldDefinitionUuid: e.uuid() }), Zt = e.object({
912
+ uuid: e.uuid(),
913
+ createdAt: e.iso.datetime(),
914
+ version: e.int().gte(0),
915
+ source: e.string(),
916
+ userUuid: e.union([e.uuid(), e.null()]),
917
+ message: e.string(),
918
+ subjectType: e.union([D, e.null()]),
919
+ subjectId: e.union([e.uuid(), e.null()]),
920
+ type: e.enum(["custom-field-definition.created"]),
921
+ content: Xt
922
+ }), Qt = e.object({
923
+ userUuid: e.uuid(),
924
+ customerZoneIndividualUserUuid: e.uuid()
925
+ }), $t = e.object({
926
+ uuid: e.uuid(),
927
+ createdAt: e.iso.datetime(),
928
+ version: e.int().gte(0),
929
+ source: e.string(),
930
+ userUuid: e.union([e.uuid(), e.null()]),
931
+ message: e.string(),
932
+ subjectType: e.union([D, e.null()]),
933
+ subjectId: e.union([e.uuid(), e.null()]),
934
+ type: e.enum(["individual-user-grant.created"]),
935
+ content: Qt
936
+ }), en = e.object({
937
+ customerZoneIndividualUserUuid: e.uuid(),
938
+ userUuid: e.uuid()
939
+ }), tn = e.object({
940
+ uuid: e.uuid(),
941
+ createdAt: e.iso.datetime(),
942
+ version: e.int().gte(0),
943
+ source: e.string(),
944
+ userUuid: e.union([e.uuid(), e.null()]),
945
+ message: e.string(),
946
+ subjectType: e.union([D, e.null()]),
947
+ subjectId: e.union([e.uuid(), e.null()]),
948
+ type: e.enum(["individual-user-grant.email-verified"]),
949
+ content: en
950
+ }), nn = e.object({
951
+ dealUuid: e.uuid(),
952
+ contactPerson: M
953
+ }), rn = e.object({
954
+ uuid: e.uuid(),
955
+ createdAt: e.iso.datetime(),
956
+ version: e.int().gte(0),
957
+ source: e.string(),
958
+ userUuid: e.union([e.uuid(), e.null()]),
959
+ message: e.string(),
960
+ subjectType: e.union([D, e.null()]),
961
+ subjectId: e.union([e.uuid(), e.null()]),
962
+ type: e.enum(["deal.contact.person.made-primary"]),
963
+ content: nn
964
+ }), an = e.object({
965
+ dealUuid: e.uuid(),
966
+ contactPerson: M
967
+ }), on = e.object({
968
+ uuid: e.uuid(),
969
+ createdAt: e.iso.datetime(),
970
+ version: e.int().gte(0),
971
+ source: e.string(),
972
+ userUuid: e.union([e.uuid(), e.null()]),
973
+ message: e.string(),
974
+ subjectType: e.union([D, e.null()]),
975
+ subjectId: e.union([e.uuid(), e.null()]),
976
+ type: e.enum(["deal.contact.person.unlinked"]),
977
+ content: an
978
+ }), sn = e.object({
979
+ dealUuid: e.uuid(),
980
+ contactPerson: M,
981
+ diff: e.array(A)
982
+ }), cn = e.object({
983
+ uuid: e.uuid(),
984
+ createdAt: e.iso.datetime(),
985
+ version: e.int().gte(0),
986
+ source: e.string(),
987
+ userUuid: e.union([e.uuid(), e.null()]),
988
+ message: e.string(),
989
+ subjectType: e.union([D, e.null()]),
990
+ subjectId: e.union([e.uuid(), e.null()]),
991
+ type: e.enum(["deal.contact.person.updated"]),
992
+ content: sn
993
+ }), ln = e.object({
994
+ dealUuid: e.uuid(),
995
+ previousOwnerUuid: e.union([e.record(e.string(), e.unknown()), e.null()]),
996
+ dealOwnerUuid: e.union([e.record(e.string(), e.unknown()), e.null()])
997
+ }), un = e.object({
998
+ uuid: e.uuid(),
999
+ createdAt: e.iso.datetime(),
1000
+ version: e.int().gte(0),
1001
+ source: e.string(),
1002
+ userUuid: e.union([e.uuid(), e.null()]),
1003
+ message: e.string(),
1004
+ subjectType: e.union([D, e.null()]),
1005
+ subjectId: e.union([e.uuid(), e.null()]),
1006
+ type: e.enum(["deal.owner.updated"]),
1007
+ content: ln
1008
+ }), dn = e.object({
1009
+ individualUuid: e.uuid(),
1010
+ contactPerson: M,
1011
+ position: e.union([e.string(), e.null()])
1012
+ }), fn = e.object({
1013
+ uuid: e.uuid(),
1014
+ createdAt: e.iso.datetime(),
1015
+ version: e.int().gte(0),
1016
+ source: e.string(),
1017
+ userUuid: e.union([e.uuid(), e.null()]),
1018
+ message: e.string(),
1019
+ subjectType: e.union([D, e.null()]),
1020
+ subjectId: e.union([e.uuid(), e.null()]),
1021
+ type: e.enum(["individual.contact-person.linked"]),
1022
+ content: dn
1023
+ }), pn = e.object({
1024
+ individualUuid: e.uuid(),
1025
+ contactPerson: M
1026
+ }), mn = e.object({
1027
+ uuid: e.uuid(),
1028
+ createdAt: e.iso.datetime(),
1029
+ version: e.int().gte(0),
1030
+ source: e.string(),
1031
+ userUuid: e.union([e.uuid(), e.null()]),
1032
+ message: e.string(),
1033
+ subjectType: e.union([D, e.null()]),
1034
+ subjectId: e.union([e.uuid(), e.null()]),
1035
+ type: e.enum(["individual.contact-person.unlinked"]),
1036
+ content: pn
1037
+ }), hn = e.object({
1038
+ individualUuid: e.uuid(),
1039
+ contactPerson: M,
1040
+ diff: e.array(A)
1041
+ }), gn = e.object({
1042
+ uuid: e.uuid(),
1043
+ createdAt: e.iso.datetime(),
1044
+ version: e.int().gte(0),
1045
+ source: e.string(),
1046
+ userUuid: e.union([e.uuid(), e.null()]),
1047
+ message: e.string(),
1048
+ subjectType: e.union([D, e.null()]),
1049
+ subjectId: e.union([e.uuid(), e.null()]),
1050
+ type: e.enum(["individual.contact-person.updated"]),
1051
+ content: hn
1052
+ }), _n = e.object({
1053
+ individualUuid: e.uuid(),
1054
+ contactPerson: M
1055
+ }), vn = e.object({
1056
+ uuid: e.uuid(),
1057
+ createdAt: e.iso.datetime(),
1058
+ version: e.int().gte(0),
1059
+ source: e.string(),
1060
+ userUuid: e.union([e.uuid(), e.null()]),
1061
+ message: e.string(),
1062
+ subjectType: e.union([D, e.null()]),
1063
+ subjectId: e.union([e.uuid(), e.null()]),
1064
+ type: e.enum(["individual.contact-person.made-primary"]),
1065
+ content: _n
1066
+ }), yn = e.object({
1067
+ mailTemplateUuid: e.uuid(),
1068
+ key: e.string()
1069
+ }), bn = e.object({
1070
+ uuid: e.uuid(),
1071
+ createdAt: e.iso.datetime(),
1072
+ version: e.int().gte(0),
1073
+ source: e.string(),
1074
+ userUuid: e.union([e.uuid(), e.null()]),
1075
+ message: e.string(),
1076
+ subjectType: e.union([D, e.null()]),
1077
+ subjectId: e.union([e.uuid(), e.null()]),
1078
+ type: e.enum(["mail.template.created"]),
1079
+ content: yn
1080
+ }), xn = e.object({ mailTemplateUuid: e.uuid() }), Sn = e.object({
1081
+ uuid: e.uuid(),
1082
+ createdAt: e.iso.datetime(),
1083
+ version: e.int().gte(0),
1084
+ source: e.string(),
1085
+ userUuid: e.union([e.uuid(), e.null()]),
1086
+ message: e.string(),
1087
+ subjectType: e.union([D, e.null()]),
1088
+ subjectId: e.union([e.uuid(), e.null()]),
1089
+ type: e.enum(["mail.template.updated"]),
1090
+ content: xn
1091
+ }), F = e.object({
1092
+ uuid: e.uuid(),
1093
+ name: e.string()
1094
+ }), Cn = e.object({
1095
+ businessUuid: e.uuid(),
1096
+ individualUuid: e.uuid(),
1097
+ note: F
1098
+ }), wn = e.object({
1099
+ uuid: e.uuid(),
1100
+ createdAt: e.iso.datetime(),
1101
+ version: e.int().gte(0),
1102
+ source: e.string(),
1103
+ userUuid: e.union([e.uuid(), e.null()]),
1104
+ message: e.string(),
1105
+ subjectType: e.union([D, e.null()]),
1106
+ subjectId: e.union([e.uuid(), e.null()]),
1107
+ type: e.enum(["business.note.created"]),
1108
+ content: Cn
1109
+ }), Tn = e.object({
1110
+ businessUuid: e.uuid(),
1111
+ individualUuid: e.uuid(),
1112
+ note: F
1113
+ }), En = e.object({
1114
+ uuid: e.uuid(),
1115
+ createdAt: e.iso.datetime(),
1116
+ version: e.int().gte(0),
1117
+ source: e.string(),
1118
+ userUuid: e.union([e.uuid(), e.null()]),
1119
+ message: e.string(),
1120
+ subjectType: e.union([D, e.null()]),
1121
+ subjectId: e.union([e.uuid(), e.null()]),
1122
+ type: e.enum(["individual.note.created"]),
1123
+ content: Tn
1124
+ }), Dn = e.object({
1125
+ dealUuid: e.uuid(),
1126
+ note: F
1127
+ }), On = e.object({
1128
+ uuid: e.uuid(),
1129
+ createdAt: e.iso.datetime(),
1130
+ version: e.int().gte(0),
1131
+ source: e.string(),
1132
+ userUuid: e.union([e.uuid(), e.null()]),
1133
+ message: e.string(),
1134
+ subjectType: e.union([D, e.null()]),
1135
+ subjectId: e.union([e.uuid(), e.null()]),
1136
+ type: e.enum(["deal.note.created"]),
1137
+ content: Dn
1138
+ }), kn = e.object({
1139
+ note: F,
1140
+ businessUuid: e.uuid(),
1141
+ changes: e.array(A)
1142
+ }), An = e.object({
1143
+ uuid: e.uuid(),
1144
+ createdAt: e.iso.datetime(),
1145
+ version: e.int().gte(0),
1146
+ source: e.string(),
1147
+ userUuid: e.union([e.uuid(), e.null()]),
1148
+ message: e.string(),
1149
+ subjectType: e.union([D, e.null()]),
1150
+ subjectId: e.union([e.uuid(), e.null()]),
1151
+ type: e.enum(["business.note.updated"]),
1152
+ content: kn
1153
+ }), jn = e.object({
1154
+ note: F,
1155
+ individualUuid: e.uuid(),
1156
+ changes: e.array(A)
1157
+ }), Mn = e.object({
1158
+ uuid: e.uuid(),
1159
+ createdAt: e.iso.datetime(),
1160
+ version: e.int().gte(0),
1161
+ source: e.string(),
1162
+ userUuid: e.union([e.uuid(), e.null()]),
1163
+ message: e.string(),
1164
+ subjectType: e.union([D, e.null()]),
1165
+ subjectId: e.union([e.uuid(), e.null()]),
1166
+ type: e.enum(["individual.note.updated"]),
1167
+ content: jn
1168
+ }), Nn = e.object({
1169
+ note: F,
1170
+ dealUuid: e.uuid(),
1171
+ changes: e.array(A)
1172
+ }), Pn = e.object({
1173
+ uuid: e.uuid(),
1174
+ createdAt: e.iso.datetime(),
1175
+ version: e.int().gte(0),
1176
+ source: e.string(),
1177
+ userUuid: e.union([e.uuid(), e.null()]),
1178
+ message: e.string(),
1179
+ subjectType: e.union([D, e.null()]),
1180
+ subjectId: e.union([e.uuid(), e.null()]),
1181
+ type: e.enum(["deal.note.updated"]),
1182
+ content: Nn
1183
+ }), Fn = e.object({
1184
+ note: F,
1185
+ fileUuid: e.uuid(),
1186
+ individualUuid: e.uuid()
1187
+ }), In = e.object({
1188
+ uuid: e.uuid(),
1189
+ createdAt: e.iso.datetime(),
1190
+ version: e.int().gte(0),
1191
+ source: e.string(),
1192
+ userUuid: e.union([e.uuid(), e.null()]),
1193
+ message: e.string(),
1194
+ subjectType: e.union([D, e.null()]),
1195
+ subjectId: e.union([e.uuid(), e.null()]),
1196
+ type: e.enum(["individual.note.file.added"]),
1197
+ content: Fn
1198
+ }), Ln = e.object({
1199
+ note: F,
1200
+ fileUuid: e.uuid(),
1201
+ businessUuid: e.uuid()
1202
+ }), Rn = e.object({
1203
+ uuid: e.uuid(),
1204
+ createdAt: e.iso.datetime(),
1205
+ version: e.int().gte(0),
1206
+ source: e.string(),
1207
+ userUuid: e.union([e.uuid(), e.null()]),
1208
+ message: e.string(),
1209
+ subjectType: e.union([D, e.null()]),
1210
+ subjectId: e.union([e.uuid(), e.null()]),
1211
+ type: e.enum(["business.note.file.added"]),
1212
+ content: Ln
1213
+ }), zn = e.object({
1214
+ note: F,
1215
+ fileUuid: e.uuid()
1216
+ }), Bn = e.object({
1217
+ uuid: e.uuid(),
1218
+ createdAt: e.iso.datetime(),
1219
+ version: e.int().gte(0),
1220
+ source: e.string(),
1221
+ userUuid: e.union([e.uuid(), e.null()]),
1222
+ message: e.string(),
1223
+ subjectType: e.union([D, e.null()]),
1224
+ subjectId: e.union([e.uuid(), e.null()]),
1225
+ type: e.enum(["deal.note.file.added"]),
1226
+ content: zn
1227
+ }), Vn = e.object({
1228
+ note: F,
1229
+ fileUuid: e.uuid(),
1230
+ businessUuid: e.uuid()
1231
+ }), Hn = e.object({
1232
+ uuid: e.uuid(),
1233
+ createdAt: e.iso.datetime(),
1234
+ version: e.int().gte(0),
1235
+ source: e.string(),
1236
+ userUuid: e.union([e.uuid(), e.null()]),
1237
+ message: e.string(),
1238
+ subjectType: e.union([D, e.null()]),
1239
+ subjectId: e.union([e.uuid(), e.null()]),
1240
+ type: e.enum(["business.note.file.deleted"]),
1241
+ content: Vn
1242
+ }), Un = e.object({
1243
+ note: F,
1244
+ fileUuid: e.uuid(),
1245
+ individualUuid: e.uuid()
1246
+ }), Wn = e.object({
1247
+ uuid: e.uuid(),
1248
+ createdAt: e.iso.datetime(),
1249
+ version: e.int().gte(0),
1250
+ source: e.string(),
1251
+ userUuid: e.union([e.uuid(), e.null()]),
1252
+ message: e.string(),
1253
+ subjectType: e.union([D, e.null()]),
1254
+ subjectId: e.union([e.uuid(), e.null()]),
1255
+ type: e.enum(["individual.note.file.deleted"]),
1256
+ content: Un
1257
+ }), Gn = e.object({
1258
+ note: F,
1259
+ fileUuid: e.uuid()
1260
+ }), Kn = e.object({
1261
+ uuid: e.uuid(),
1262
+ createdAt: e.iso.datetime(),
1263
+ version: e.int().gte(0),
1264
+ source: e.string(),
1265
+ userUuid: e.union([e.uuid(), e.null()]),
1266
+ message: e.string(),
1267
+ subjectType: e.union([D, e.null()]),
1268
+ subjectId: e.union([e.uuid(), e.null()]),
1269
+ type: e.enum(["deal.note.file.deleted"]),
1270
+ content: Gn
1271
+ }), qn = e.object({
1272
+ noteUuid: e.uuid(),
1273
+ businessUuid: e.uuid()
1274
+ }), Jn = e.object({
1275
+ uuid: e.uuid(),
1276
+ createdAt: e.iso.datetime(),
1277
+ version: e.int().gte(0),
1278
+ source: e.string(),
1279
+ userUuid: e.union([e.uuid(), e.null()]),
1280
+ message: e.string(),
1281
+ subjectType: e.union([D, e.null()]),
1282
+ subjectId: e.union([e.uuid(), e.null()]),
1283
+ type: e.enum(["business.note.deleted"]),
1284
+ content: qn
1285
+ }), Yn = e.object({
1286
+ noteUuid: e.uuid(),
1287
+ individualUuid: e.uuid()
1288
+ }), Xn = e.object({
1289
+ uuid: e.uuid(),
1290
+ createdAt: e.iso.datetime(),
1291
+ version: e.int().gte(0),
1292
+ source: e.string(),
1293
+ userUuid: e.union([e.uuid(), e.null()]),
1294
+ message: e.string(),
1295
+ subjectType: e.union([D, e.null()]),
1296
+ subjectId: e.union([e.uuid(), e.null()]),
1297
+ type: e.enum(["individual.note.deleted"]),
1298
+ content: Yn
1299
+ }), Zn = e.object({
1300
+ note: F,
1301
+ dealUuid: e.uuid()
1302
+ }), Qn = e.object({
1303
+ uuid: e.uuid(),
1304
+ createdAt: e.iso.datetime(),
1305
+ version: e.int().gte(0),
1306
+ source: e.string(),
1307
+ userUuid: e.union([e.uuid(), e.null()]),
1308
+ message: e.string(),
1309
+ subjectType: e.union([D, e.null()]),
1310
+ subjectId: e.union([e.uuid(), e.null()]),
1311
+ type: e.enum(["deal.note.deleted"]),
1312
+ content: Zn
1313
+ });
1314
+ e.object({
1315
+ uuid: e.uuid(),
1316
+ createdAt: e.iso.datetime(),
1317
+ version: e.int().gte(0),
1318
+ source: e.string(),
1319
+ userUuid: e.union([e.uuid(), e.null()]),
1320
+ message: e.string(),
1321
+ subjectType: e.union([D, e.null()]),
1322
+ subjectId: e.union([e.uuid(), e.null()])
1323
+ });
1324
+ var $n = e.object({ next: e.union([O, e.null()]) });
1325
+ e.object({
1326
+ items: e.array(e.union([
1327
+ Je,
1328
+ Xe,
1329
+ Qe,
1330
+ et,
1331
+ nt,
1332
+ it,
1333
+ ot,
1334
+ ct,
1335
+ ut,
1336
+ ft,
1337
+ mt,
1338
+ gt,
1339
+ vt,
1340
+ bt,
1341
+ St,
1342
+ Tt,
1343
+ Dt,
1344
+ kt,
1345
+ jt,
1346
+ Nt,
1347
+ Ft,
1348
+ Lt,
1349
+ zt,
1350
+ Vt,
1351
+ Ut,
1352
+ Gt,
1353
+ qt,
1354
+ Yt,
1355
+ Zt,
1356
+ $t,
1357
+ tn,
1358
+ rn,
1359
+ on,
1360
+ cn,
1361
+ un,
1362
+ fn,
1363
+ mn,
1364
+ gn,
1365
+ vn,
1366
+ bn,
1367
+ Sn,
1368
+ wn,
1369
+ En,
1370
+ On,
1371
+ An,
1372
+ Mn,
1373
+ Pn,
1374
+ In,
1375
+ Rn,
1376
+ Bn,
1377
+ Hn,
1378
+ Wn,
1379
+ Kn,
1380
+ Jn,
1381
+ Xn,
1382
+ Qn
1383
+ ])),
1384
+ meta: $n
1385
+ });
1386
+ var er = e.enum([
1387
+ "user",
1388
+ "business",
1389
+ "individual"
1390
+ ]), tr = e.object({ isActive: e.optional(e.boolean()) }), nr = e.object({
1391
+ collections: e.optional(e.array(er)),
1392
+ contact: e.optional(tr)
1393
+ }), rr = e.object({
1394
+ uuid: e.uuid(),
1395
+ name: e.string(),
1396
+ email: e.union([e.record(e.string(), e.unknown()), e.null()])
1397
+ }), I = e.object({
1398
+ countryCode: j,
1399
+ number: e.string()
1400
+ }), ir = e.object({
1401
+ longitude: e.number(),
1402
+ latitude: e.number()
1403
+ }), L = e.object({
1404
+ placeName: e.union([e.string(), e.null()]),
1405
+ placeId: e.union([e.string(), e.null()]),
1406
+ country: e.union([e.string(), e.null()]),
1407
+ city: e.union([e.string(), e.null()]),
1408
+ postalCode: e.union([e.string(), e.null()]),
1409
+ streetName: e.union([e.string(), e.null()]),
1410
+ streetNumber: e.union([e.string(), e.null()]),
1411
+ unit: e.union([e.string(), e.null()]),
1412
+ coordinates: e.union([ir, e.null()])
1413
+ }), ar = e.object({
1414
+ uuid: e.uuid(),
1415
+ name: e.string(),
1416
+ vatNumber: e.union([I, e.null()]),
1417
+ address: L,
1418
+ parentName: e.union([e.string(), e.null()])
1419
+ }), or = e.object({
1420
+ uuid: e.uuid(),
1421
+ name: e.string(),
1422
+ email: e.union([e.string(), e.null()]),
1423
+ phone: e.union([e.string(), e.null()]),
1424
+ mobilePhone: e.union([e.string(), e.null()]),
1425
+ address: e.union([L, e.null()])
1426
+ }), sr = e.object({
1427
+ collection: er,
1428
+ entity: e.union([
1429
+ rr,
1430
+ ar,
1431
+ or
1432
+ ]),
1433
+ text_match: e.number()
1434
+ }), cr = e.object({ items: e.array(sr) }), lr = e.enum([
1435
+ "all",
1436
+ "default",
1437
+ "custom",
1438
+ "none"
1439
+ ]), R = e.enum(["user.created", "system.test-notification"]), ur = e.object({
1440
+ email: e.array(R),
1441
+ sms: e.array(R),
1442
+ app: e.array(R),
1443
+ push: e.array(R)
1444
+ });
1445
+ e.object({
1446
+ preset: lr,
1447
+ emailEnabled: e.boolean(),
1448
+ smsEnabled: e.boolean(),
1449
+ appEnabled: e.boolean(),
1450
+ pushEnabled: e.boolean(),
1451
+ preferences: ur
1452
+ });
1453
+ var z = e.enum([
1454
+ "email",
1455
+ "sms",
1456
+ "app",
1457
+ "push"
1458
+ ]), dr = e.object({
1459
+ channel: z,
1460
+ defaultValue: e.boolean(),
1461
+ isSupported: e.boolean()
1462
+ }), fr = e.object({
1463
+ key: R,
1464
+ description: e.string(),
1465
+ channelConfigs: e.array(dr)
1466
+ }), pr = e.object({
1467
+ name: e.string(),
1468
+ description: e.string(),
1469
+ types: e.array(fr)
1470
+ });
1471
+ e.object({ groups: e.array(pr) });
1472
+ var mr = e.object({
1473
+ channel: z,
1474
+ isEnabled: e.boolean()
1475
+ }), hr = e.object({ onlyUnread: e.optional(e.string()) }), gr = e.object({
1476
+ createdAt: e.string(),
1477
+ notificationUuid: e.uuid()
1478
+ }), _r = e.object({
1479
+ limit: e.number().gte(0).lte(100),
1480
+ key: e.optional(e.union([gr, e.null()]))
1481
+ }), vr = e.object({
1482
+ uuid: e.uuid(),
1483
+ name: e.string()
1484
+ }), yr = e.object({ message: e.string() }), br = e.object({
1485
+ createdAt: e.iso.datetime(),
1486
+ readAt: e.union([e.iso.datetime(), e.null()]),
1487
+ notificationUuid: e.uuid(),
1488
+ createdByUser: e.union([vr, e.null()]),
1489
+ message: e.string(),
1490
+ type: e.enum(["system.test-notification"]),
1491
+ meta: yr
1492
+ }), xr = e.object({ next: e.union([gr, e.null()]) });
1493
+ e.object({
1494
+ items: e.array(br),
1495
+ meta: xr
1496
+ }), e.object({
1497
+ amount: e.number().gte(0),
1498
+ exceedsLimit: e.boolean()
1499
+ }), e.object({
1500
+ detail: e.optional(e.string()),
1501
+ status: e.enum(["404"]),
1502
+ code: e.enum(["user_notification_not_found"])
1503
+ });
1504
+ var Sr = e.object({
1505
+ channel: z,
1506
+ isEnabled: e.boolean(),
1507
+ types: e.array(R)
1508
+ }), Cr = e.object({ preset: lr }), wr = e.object({ type: e.array(R) });
1509
+ e.object({
1510
+ detail: e.optional(e.string()),
1511
+ status: e.enum(["400"]),
1512
+ code: e.enum(["migration_already_performed"]),
1513
+ meta: wr
1514
+ });
1515
+ var Tr = e.object({ types: e.array(R) }), Er = e.object({ message: e.string() }), Dr = e.enum(["createdAt"]), Or = e.enum(["asc", "desc"]), kr = e.object({
1516
+ key: Dr,
1517
+ order: Or
1518
+ }), B = e.enum(["system"]), Ar = e.object({ queueNames: e.optional(e.array(B)) }), jr = e.object({
1519
+ createdAt: e.optional(e.iso.datetime()),
1520
+ id: e.string()
1521
+ }), Mr = e.object({
1522
+ limit: e.number().gte(0).lte(100),
1523
+ key: e.optional(e.union([jr, e.null()]))
1524
+ }), V = e.enum([
1525
+ "created",
1526
+ "active",
1527
+ "completed",
1528
+ "retry",
1529
+ "failed",
1530
+ "cancelled"
1531
+ ]), Nr = e.object({
1532
+ queueName: B,
1533
+ id: e.uuid(),
1534
+ name: e.string(),
1535
+ status: V,
1536
+ createdAt: e.iso.datetime(),
1537
+ completedAt: e.union([e.iso.datetime(), e.null()])
1538
+ }), Pr = e.object({ next: e.union([jr, e.null()]) });
1539
+ e.object({
1540
+ items: e.array(Nr),
1541
+ meta: Pr
1542
+ }), e.object({
1543
+ detail: e.optional(e.string()),
1544
+ status: e.enum(["404"]),
1545
+ code: e.enum(["job_not_found"])
1546
+ }), e.object({
1547
+ id: e.uuid(),
1548
+ queueName: B,
1549
+ priority: e.number(),
1550
+ name: e.string(),
1551
+ data: e.record(e.string(), e.unknown()),
1552
+ status: V,
1553
+ retryLimit: e.number(),
1554
+ retryCount: e.number(),
1555
+ retryDelay: e.number(),
1556
+ retryBackoff: e.boolean(),
1557
+ startAfter: e.iso.datetime(),
1558
+ startedAt: e.union([e.iso.datetime(), e.null()]),
1559
+ singletonKey: e.union([e.string(), e.null()]),
1560
+ singletonOn: e.union([e.iso.datetime(), e.null()]),
1561
+ expireIn: e.record(e.string(), e.unknown()),
1562
+ createdAt: e.iso.datetime(),
1563
+ completedAt: e.union([e.iso.datetime(), e.null()]),
1564
+ keepUntil: e.iso.datetime(),
1565
+ output: e.union([e.record(e.string(), e.unknown()), e.null()]),
1566
+ deadLetter: e.union([e.string(), e.null()]),
1567
+ policy: e.union([e.string(), e.null()])
1568
+ });
1569
+ var Fr = e.object({
1570
+ longitude: e.number(),
1571
+ latitude: e.number()
1572
+ }), H = e.object({
1573
+ placeName: e.union([e.string(), e.null()]),
1574
+ placeId: e.union([e.string(), e.null()]),
1575
+ country: e.union([e.string(), e.null()]),
1576
+ city: e.union([e.string(), e.null()]),
1577
+ postalCode: e.union([e.string(), e.null()]),
1578
+ streetName: e.union([e.string(), e.null()]),
1579
+ streetNumber: e.union([e.string(), e.null()]),
1580
+ unit: e.union([e.string(), e.null()]),
1581
+ coordinates: e.union([Fr, e.null()])
1582
+ }), Ir = e.object({ address: H });
1583
+ e.object({ uuid: e.uuid() });
1584
+ var Lr = e.object({ address: H }), U = e.object({
1585
+ uuid: e.uuid(),
1586
+ createdAt: e.iso.datetime(),
1587
+ updatedAt: e.iso.datetime(),
1588
+ address: L
1589
+ });
1590
+ e.object({
1591
+ detail: e.optional(e.string()),
1592
+ status: e.enum(["400"]),
1593
+ code: e.enum(["coordinates_not_provided"])
1594
+ });
1595
+ var Rr = e.object({
1596
+ longitude: e.string(),
1597
+ latitude: e.string()
1598
+ }), zr = e.object({
1599
+ postalCodes: e.optional(e.array(e.string())),
1600
+ coordinates: e.optional(Rr),
1601
+ radiusInMeters: e.optional(e.string())
1602
+ }), Br = e.enum(["coordinates"]), Vr = e.object({
1603
+ key: Br,
1604
+ order: Or
1605
+ }), Hr = e.object({
1606
+ uuid: e.uuid(),
1607
+ address: e.union([L, e.null()])
1608
+ });
1609
+ e.object({
1610
+ items: e.array(Hr),
1611
+ meta: S
1612
+ }), e.object({
1613
+ detail: e.optional(e.string()),
1614
+ status: e.enum(["404"]),
1615
+ code: e.enum(["location_not_found"])
1616
+ });
1617
+ var Ur = e.object({
1618
+ uuid: e.optional(e.string()),
1619
+ firstName: e.string(),
1620
+ lastName: e.string(),
1621
+ email: e.union([e.string(), e.null()]),
1622
+ phone: e.union([e.string(), e.null()]),
1623
+ mobilePhone: e.union([e.string(), e.null()]),
1624
+ address: e.union([H, e.null()]),
1625
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()])
1626
+ }), Wr = e.object({ uuid: e.uuid() });
1627
+ e.object({
1628
+ detail: e.optional(e.string()),
1629
+ status: e.enum(["404"]),
1630
+ code: e.enum(["individual_not_found"])
1631
+ });
1632
+ var Gr = e.object({
1633
+ firstName: e.string(),
1634
+ lastName: e.string(),
1635
+ email: e.union([e.string(), e.null()]),
1636
+ phone: e.union([e.string(), e.null()]),
1637
+ mobilePhone: e.union([e.string(), e.null()]),
1638
+ address: e.optional(e.union([H, e.null()])),
1639
+ customFields: e.optional(e.union([e.record(e.string(), e.unknown()), e.null()])),
1640
+ language: e.optional(_)
1641
+ }), Kr = e.object({ status: w }), qr = e.object({
1642
+ total: e.number(),
1643
+ monthlyPercentageGrowth: e.union([e.number(), e.null()]),
1644
+ monthlyAdded: e.number()
1645
+ }), Jr = e.object({
1646
+ uuid: e.uuid(),
1647
+ name: e.string(),
1648
+ email: e.union([e.string(), e.null()]),
1649
+ phone: e.union([e.string(), e.null()]),
1650
+ mobilePhone: e.union([e.string(), e.null()]),
1651
+ status: w
1652
+ }), Yr = e.object({
1653
+ items: e.array(Jr),
1654
+ meta: S
1655
+ }), Xr = e.object({
1656
+ uuid: e.uuid(),
1657
+ invoiceEmail: e.union([e.string(), e.null()]),
1658
+ invoiceCcEmails: e.array(e.string()),
1659
+ location: e.union([U, e.null()])
1660
+ }), Zr = e.object({
1661
+ uuid: e.uuid(),
1662
+ firstName: e.string(),
1663
+ lastName: e.string(),
1664
+ email: e.union([e.email(), e.null()]),
1665
+ phone: e.union([e.string(), e.null()]),
1666
+ mobilePhone: e.union([e.string(), e.null()]),
1667
+ position: e.union([e.string(), e.null()]),
1668
+ isPrimary: e.boolean()
1669
+ }), Qr = e.object({
1670
+ uuid: e.uuid(),
1671
+ name: e.string(),
1672
+ position: e.union([e.string(), e.null()]),
1673
+ email: e.union([e.email(), e.null()]),
1674
+ phone: e.union([e.string(), e.null()]),
1675
+ mobilePhone: e.union([e.string(), e.null()])
1676
+ }), $r = e.object({
1677
+ uuid: e.uuid(),
1678
+ createdAt: e.iso.datetime(),
1679
+ updatedAt: e.iso.datetime(),
1680
+ firstName: e.string(),
1681
+ lastName: e.string(),
1682
+ email: e.union([e.email(), e.null()]),
1683
+ phone: e.union([e.string(), e.null()]),
1684
+ mobilePhone: e.union([e.string(), e.null()]),
1685
+ location: e.union([U, e.null()]),
1686
+ billingInformation: e.union([Xr, e.null()]),
1687
+ contactPersons: e.array(Zr),
1688
+ linkedBusinesses: e.array(Qr),
1689
+ status: w,
1690
+ language: _,
1691
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()])
1692
+ }), ei = e.object({
1693
+ createdAt: e.string(),
1694
+ uuid: e.uuid()
1695
+ }), ti = e.object({
1696
+ limit: e.number().gte(0).lte(100),
1697
+ key: e.optional(e.union([ei, e.null()]))
1698
+ }), ni = e.enum(/* @__PURE__ */ "file.created,file.uploaded,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,tenant.created,tenant.updated,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,location.created,location.updated,individual.created,individual.updated,individual.status.updated,individual-user-grant.created,individual-user-grant.email-verified,business.created,business.updated,business.status.updated,individual.contact-person.linked,individual.contact-person.unlinked,individual.contact-person.updated,individual.contact-person.made-primary,business.contact-person.linked,business.contact-person.unlinked,business.contact-person.updated,business.contact-person.made-primary,business.billing-information.upserted,individual.billing-information.upserted,custom-field-definition.created,business.note.created,business.note.updated,business.note.deleted,individual.note.created,individual.note.updated,individual.note.deleted,deal.note.created,deal.note.updated,deal.note.deleted,individual.note.file.added,individual.note.file.deleted,business.note.file.added,business.note.file.deleted,deal.note.file.added,deal.note.file.deleted,cbe-enterprise.imported,cbe-denomination.imported,cbe-contact.imported,cbe-address.imported,cbe-establishment.imported,board-column.created,board-column-transition.created,board-column-transition-trigger.created,deal.created,deal.column.transitioned,deal.updated,deal.contact.person.linked,deal.contact.person.unlinked,deal.contact.person.made-primary,deal.owner.updated,deal.contact.person.updated,mail.template.created,mail.template.updated,mail.created,mail.sent".split(",")), ri = e.object({
1699
+ createdAt: e.iso.datetime(),
1700
+ type: ni,
1701
+ message: e.string(),
1702
+ userUuid: e.union([e.string(), e.null()]),
1703
+ changes: e.array(A),
1704
+ changedBy: e.string(),
1705
+ content: e.record(e.string(), e.unknown())
1706
+ }), ii = e.object({ next: e.union([ei, e.null()]) }), ai = e.object({
1707
+ items: e.array(ri),
1708
+ meta: ii
1709
+ });
1710
+ e.object({
1711
+ detail: e.optional(e.string()),
1712
+ status: e.enum(["409"]),
1713
+ code: e.enum(["business_vat_number_already_exists"])
1714
+ }), e.object({
1715
+ detail: e.optional(e.string()),
1716
+ status: e.enum(["400"]),
1717
+ code: e.enum(["invalid_vat_number"])
1718
+ });
1719
+ var oi = e.object({
1720
+ firstName: e.string(),
1721
+ lastName: e.string(),
1722
+ email: e.union([e.string(), e.null()]),
1723
+ phone: e.union([e.string(), e.null()]),
1724
+ mobilePhone: e.union([e.string(), e.null()])
1725
+ }), W = e.object({
1726
+ countryCode: j,
1727
+ number: e.string()
1728
+ }), si = e.object({
1729
+ uuid: e.optional(e.string()),
1730
+ name: e.string(),
1731
+ individual: e.union([oi, e.null()]),
1732
+ individualUuid: e.union([e.uuid(), e.null()]),
1733
+ individualPosition: e.union([e.string(), e.null()]),
1734
+ vatNumber: e.union([W, e.null()]),
1735
+ companyNumber: e.union([e.string(), e.null()]),
1736
+ address: H,
1737
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()]),
1738
+ parentUuid: e.union([e.string(), e.null()]),
1739
+ childUuid: e.union([e.string(), e.null()])
1740
+ }), ci = e.object({ uuid: e.uuid() });
1741
+ e.object({
1742
+ detail: e.optional(e.string()),
1743
+ status: e.enum(["503"]),
1744
+ code: e.enum(["vies_service_unavailable"])
1745
+ }), e.object({
1746
+ countryCode: j,
1747
+ vatNumber: e.string(),
1748
+ requestDate: e.iso.datetime(),
1749
+ isValid: e.boolean(),
1750
+ requestIdentifier: e.union([e.string(), e.null()]),
1751
+ name: e.union([e.string(), e.null()]),
1752
+ address: e.union([e.string(), e.null()]),
1753
+ traderName: e.union([e.string(), e.null()]),
1754
+ traderStreet: e.union([e.string(), e.null()]),
1755
+ traderPostalCode: e.union([e.string(), e.null()]),
1756
+ traderCity: e.union([e.string(), e.null()]),
1757
+ traderCompanyType: e.union([e.string(), e.null()]),
1758
+ traderNameMatch: e.union([e.string(), e.null()]),
1759
+ traderStreetMatch: e.union([e.string(), e.null()]),
1760
+ traderPostalCodeMatch: e.union([e.string(), e.null()]),
1761
+ traderCityMatch: e.union([e.string(), e.null()]),
1762
+ traderCompanyTypeMatch: e.union([e.string(), e.null()])
1763
+ }), e.object({
1764
+ detail: e.optional(e.string()),
1765
+ status: e.enum(["404"]),
1766
+ code: e.enum(["business_not_found"])
1767
+ });
1768
+ var li = e.object({
1769
+ name: e.string(),
1770
+ email: e.union([e.string(), e.null()]),
1771
+ phone: e.union([e.string(), e.null()]),
1772
+ mobilePhone: e.union([e.string(), e.null()]),
1773
+ vatNumber: e.union([W, e.null()]),
1774
+ companyNumber: e.union([e.string(), e.null()]),
1775
+ address: H,
1776
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()]),
1777
+ language: _
1778
+ }), ui = e.object({ status: C }), di = e.object({
1779
+ total: e.number(),
1780
+ monthlyPercentageGrowth: e.number(),
1781
+ monthlyAdded: e.number()
1782
+ }), fi = e.object({
1783
+ uuid: e.uuid(),
1784
+ name: e.string(),
1785
+ email: e.union([e.string(), e.null()]),
1786
+ phone: e.union([e.string(), e.null()]),
1787
+ mobilePhone: e.union([e.string(), e.null()]),
1788
+ vatNumber: e.union([I, e.null()]),
1789
+ companyNumber: e.union([e.string(), e.null()]),
1790
+ parentName: e.union([e.string(), e.null()])
1791
+ }), pi = e.object({
1792
+ items: e.array(fi),
1793
+ meta: S
1794
+ }), mi = e.object({
1795
+ uuid: e.uuid(),
1796
+ invoiceEmail: e.union([e.string(), e.null()]),
1797
+ invoiceCcEmails: e.array(e.string()),
1798
+ reminderEmail: e.union([e.string(), e.null()]),
1799
+ reminderCcEmails: e.array(e.string()),
1800
+ purchaseNoteEmail: e.union([e.string(), e.null()]),
1801
+ purchaseNoteCcEmails: e.array(e.string()),
1802
+ location: e.union([U, e.null()])
1803
+ }), hi = e.object({
1804
+ uuid: e.uuid(),
1805
+ firstName: e.string(),
1806
+ lastName: e.string(),
1807
+ email: e.union([e.email(), e.null()]),
1808
+ phone: e.union([e.string(), e.null()]),
1809
+ mobilePhone: e.union([e.string(), e.null()]),
1810
+ position: e.union([e.string(), e.null()]),
1811
+ isPrimary: e.boolean()
1812
+ }), gi = e.object({
1813
+ uuid: e.uuid(),
1814
+ name: e.string(),
1815
+ createdAt: e.iso.datetime(),
1816
+ updatedAt: e.iso.datetime(),
1817
+ email: e.union([e.string(), e.null()]),
1818
+ phone: e.union([e.string(), e.null()]),
1819
+ mobilePhone: e.union([e.string(), e.null()]),
1820
+ vatNumber: e.union([I, e.null()]),
1821
+ companyNumber: e.union([e.string(), e.null()]),
1822
+ location: e.union([U, e.null()])
1823
+ }), _i = e.object({
1824
+ uuid: e.uuid(),
1825
+ createdAt: e.iso.datetime(),
1826
+ updatedAt: e.iso.datetime(),
1827
+ name: e.string(),
1828
+ email: e.union([e.email(), e.null()]),
1829
+ phone: e.union([e.string(), e.null()]),
1830
+ mobilePhone: e.union([e.string(), e.null()]),
1831
+ vatNumber: e.union([I, e.null()]),
1832
+ companyNumber: e.union([e.string(), e.null()]),
1833
+ location: e.union([U, e.null()]),
1834
+ billingInformation: e.union([mi, e.null()]),
1835
+ contactPersons: e.array(hi),
1836
+ parent: e.union([gi, e.null()]),
1837
+ children: e.array(gi),
1838
+ language: _,
1839
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()])
1840
+ });
1841
+ e.object({
1842
+ detail: e.optional(e.string()),
1843
+ status: e.enum(["400"]),
1844
+ code: e.enum(["invalid_billing_information"])
1845
+ });
1846
+ var vi = e.object({
1847
+ billingAddress: e.optional(e.union([H, e.null()])),
1848
+ invoiceEmail: e.optional(e.union([e.email(), e.null()])),
1849
+ invoiceCcEmails: e.optional(e.union([e.array(e.email()), e.null()])),
1850
+ reminderEmail: e.optional(e.union([e.email(), e.null()])),
1851
+ reminderCcEmails: e.optional(e.union([e.array(e.email()), e.null()])),
1852
+ purchaseNoteEmail: e.optional(e.union([e.email(), e.null()])),
1853
+ purchaseNoteCcEmails: e.optional(e.union([e.array(e.email()), e.null()]))
1854
+ });
1855
+ e.object({
1856
+ detail: e.optional(e.string()),
1857
+ status: e.enum(["400"]),
1858
+ code: e.enum(["business_circular_reference"])
1859
+ });
1860
+ var yi = e.object({
1861
+ createdAt: e.string(),
1862
+ uuid: e.uuid()
1863
+ }), bi = e.object({
1864
+ limit: e.number().gte(0).lte(100),
1865
+ key: e.optional(e.union([yi, e.null()]))
1866
+ }), xi = e.object({
1867
+ createdAt: e.iso.datetime(),
1868
+ type: ni,
1869
+ message: e.string(),
1870
+ userUuid: e.union([e.string(), e.null()]),
1871
+ changes: e.array(A),
1872
+ changedBy: e.string(),
1873
+ content: e.record(e.string(), e.unknown())
1874
+ }), Si = e.object({ next: e.union([yi, e.null()]) }), Ci = e.object({
1875
+ items: e.array(xi),
1876
+ meta: Si
1877
+ });
1878
+ e.object({ doesExist: e.boolean() }), e.object({
1879
+ detail: e.optional(e.string()),
1880
+ status: e.enum(["400"]),
1881
+ code: e.enum(["note_must_have_entity"])
1882
+ });
1883
+ var wi = e.object({
1884
+ content: e.string(),
1885
+ businessUuid: e.union([e.uuid(), e.null()]),
1886
+ individualUuid: e.union([e.uuid(), e.null()]),
1887
+ dealUuid: e.union([e.uuid(), e.null()])
1888
+ }), Ti = e.object({ uuid: e.uuid() }), Ei = e.object({ content: e.string() }), Di = e.object({
1889
+ createdAt: e.string(),
1890
+ uuid: e.uuid()
1891
+ }), Oi = e.object({
1892
+ limit: e.number().gte(0).lte(100),
1893
+ key: e.optional(e.union([Di, e.null()]))
1894
+ }), ki = e.object({
1895
+ label: e.string(),
1896
+ url: e.string()
1897
+ }), G = e.object({
1898
+ uuid: e.uuid(),
1899
+ name: e.string(),
1900
+ mimeType: e.union([E, e.null()]),
1901
+ url: e.string(),
1902
+ blurHash: e.union([e.string(), e.null()]),
1903
+ variants: e.array(ki)
1904
+ }), Ai = e.object({
1905
+ uuid: e.uuid(),
1906
+ updatedAt: e.iso.datetime(),
1907
+ content: e.string(),
1908
+ files: e.array(G),
1909
+ lastUpdatedByUser: e.string(),
1910
+ lastUpdatedByUserUuid: e.uuid()
1911
+ }), ji = e.object({ next: e.union([Di, e.null()]) }), Mi = e.object({
1912
+ items: e.array(Ai),
1913
+ meta: ji
1914
+ }), Ni = e.object({
1915
+ createdAt: e.string(),
1916
+ uuid: e.uuid()
1917
+ }), Pi = e.object({
1918
+ limit: e.number().gte(0).lte(100),
1919
+ key: e.optional(e.union([Ni, e.null()]))
1920
+ }), Fi = e.object({
1921
+ uuid: e.uuid(),
1922
+ updatedAt: e.iso.datetime(),
1923
+ content: e.string(),
1924
+ files: e.array(G),
1925
+ lastUpdatedByUser: e.string(),
1926
+ lastUpdatedByUserUuid: e.uuid()
1927
+ }), Ii = e.object({ next: e.union([Ni, e.null()]) }), Li = e.object({
1928
+ items: e.array(Fi),
1929
+ meta: Ii
1930
+ }), Ri = e.object({
1931
+ createdAt: e.iso.datetime(),
1932
+ uuid: e.uuid()
1933
+ }), zi = e.object({
1934
+ limit: e.number().gte(0).lte(100),
1935
+ key: e.optional(e.union([Ri, e.null()]))
1936
+ }), Bi = e.object({
1937
+ uuid: e.uuid(),
1938
+ updatedAt: e.iso.datetime(),
1939
+ content: e.string(),
1940
+ files: e.array(G),
1941
+ lastUpdatedByUser: e.string(),
1942
+ lastUpdatedByUserUuid: e.uuid()
1943
+ }), Vi = e.object({ next: e.union([Ri, e.null()]) }), Hi = e.object({
1944
+ items: e.array(Bi),
1945
+ meta: Vi
1946
+ }), Ui = e.object({ fileUuid: e.uuid() });
1947
+ e.object({
1948
+ noteUuid: e.uuid(),
1949
+ fileUuid: e.uuid()
1950
+ });
1951
+ var Wi = e.object({
1952
+ contactPersonUuid: e.uuid(),
1953
+ position: e.union([e.string(), e.null()]),
1954
+ email: e.union([e.string(), e.null()]),
1955
+ phone: e.union([e.string(), e.null()]),
1956
+ mobilePhone: e.union([e.string(), e.null()])
1957
+ }), Gi = e.object({
1958
+ individualUuid: e.uuid(),
1959
+ contactPersonUuid: e.uuid()
1960
+ });
1961
+ e.object({
1962
+ detail: e.optional(e.string()),
1963
+ status: e.enum(["404"]),
1964
+ code: e.enum(["individual_contact_person_not_found"])
1965
+ });
1966
+ var Ki = e.object({ contactPersonUuid: e.uuid() }), qi = e.object({
1967
+ firstName: e.string(),
1968
+ lastName: e.string(),
1969
+ email: e.union([e.string(), e.null()]),
1970
+ phone: e.union([e.string(), e.null()]),
1971
+ mobilePhone: e.union([e.string(), e.null()]),
1972
+ position: e.union([e.string(), e.null()])
1973
+ }), Ji = e.object({
1974
+ individualUuid: e.uuid(),
1975
+ contactPersonUuid: e.uuid(),
1976
+ firstName: e.string(),
1977
+ lastName: e.string(),
1978
+ email: e.union([e.email(), e.null()]),
1979
+ phone: e.union([e.string(), e.null()]),
1980
+ mobilePhone: e.union([e.string(), e.null()]),
1981
+ position: e.union([e.string(), e.null()]),
1982
+ isPrimary: e.boolean()
1983
+ }), Yi = e.object({
1984
+ contactPersonUuid: e.uuid(),
1985
+ position: e.union([e.string(), e.null()]),
1986
+ email: e.union([e.string(), e.null()]),
1987
+ phone: e.union([e.string(), e.null()]),
1988
+ mobilePhone: e.union([e.string(), e.null()])
1989
+ }), Xi = e.object({
1990
+ businessUuid: e.uuid(),
1991
+ contactPersonUuid: e.uuid()
1992
+ });
1993
+ e.object({
1994
+ detail: e.optional(e.string()),
1995
+ status: e.enum(["400"]),
1996
+ code: e.enum(["primary_contact_of_business_not_unlinkable"])
1997
+ }), e.object({
1998
+ detail: e.optional(e.string()),
1999
+ status: e.enum(["404"]),
2000
+ code: e.enum(["business_contact_person_not_found"])
2001
+ });
2002
+ var Zi = e.object({ contactPersonUuid: e.uuid() }), Qi = e.object({
2003
+ firstName: e.string(),
2004
+ lastName: e.string(),
2005
+ email: e.union([e.string(), e.null()]),
2006
+ phone: e.union([e.string(), e.null()]),
2007
+ mobilePhone: e.union([e.string(), e.null()]),
2008
+ position: e.union([e.string(), e.null()])
2009
+ }), $i = e.object({
2010
+ businessUuid: e.uuid(),
2011
+ contactPersonUuid: e.uuid(),
2012
+ firstName: e.string(),
2013
+ lastName: e.string(),
2014
+ email: e.union([e.email(), e.null()]),
2015
+ phone: e.union([e.string(), e.null()]),
2016
+ mobilePhone: e.union([e.string(), e.null()]),
2017
+ position: e.union([e.string(), e.null()]),
2018
+ isPrimary: e.boolean()
2019
+ }), ea = e.object({
2020
+ minLength: e.optional(e.number()),
2021
+ maxLength: e.optional(e.number()),
2022
+ regex: e.optional(e.string())
2023
+ }), ta = e.object({
2024
+ min: e.optional(e.number()),
2025
+ max: e.optional(e.number())
2026
+ }), K = e.object({
2027
+ key: e.string(),
2028
+ translations: e.array(v)
2029
+ }), na = e.object({ options: e.array(K) }), ra = e.object({
2030
+ minDate: e.optional(e.iso.date()),
2031
+ maxDate: e.optional(e.iso.date())
2032
+ }), ia = e.object({
2033
+ options: e.array(K),
2034
+ minSelections: e.optional(e.number()),
2035
+ maxSelections: e.optional(e.number())
2036
+ }), aa = e.object({ defaultValue: e.optional(e.boolean()) }), oa = e.object({ options: e.array(K) }), sa = e.enum(["individual", "business"]), ca = e.enum([
2037
+ "string",
2038
+ "number",
2039
+ "date",
2040
+ "select",
2041
+ "multiselect",
2042
+ "checkbox",
2043
+ "radio"
2044
+ ]), la = e.enum(["half", "full"]), ua = e.object({
2045
+ entityType: sa,
2046
+ key: e.string(),
2047
+ displayName: e.array(v),
2048
+ type: ca,
2049
+ validationRules: e.union([
2050
+ ea,
2051
+ ta,
2052
+ na,
2053
+ ra,
2054
+ ia,
2055
+ aa,
2056
+ oa
2057
+ ]),
2058
+ width: la,
2059
+ isDisplayedOnCreate: e.boolean(),
2060
+ isRequiredForLead: e.boolean()
2061
+ }), da = e.object({
2062
+ entityType: sa,
2063
+ onlyWithIsDisplayedOnCreate: e.optional(e.boolean())
2064
+ }), fa = e.object({
2065
+ minLength: e.optional(e.number()),
2066
+ maxLength: e.optional(e.number()),
2067
+ regex: e.optional(e.string())
2068
+ }), pa = e.object({
2069
+ min: e.optional(e.number()),
2070
+ max: e.optional(e.number())
2071
+ }), q = e.object({
2072
+ key: e.string(),
2073
+ value: e.string()
2074
+ }), ma = e.object({ options: e.array(q) }), ha = e.object({
2075
+ minDate: e.optional(e.string()),
2076
+ maxDate: e.optional(e.string())
2077
+ }), ga = e.object({
2078
+ options: e.array(q),
2079
+ minSelections: e.optional(e.number()),
2080
+ maxSelections: e.optional(e.number())
2081
+ }), _a = e.object({ defaultValue: e.optional(e.boolean()) }), va = e.object({ options: e.array(q) }), ya = e.object({
2082
+ uuid: e.uuid(),
2083
+ key: e.string(),
2084
+ displayName: e.string(),
2085
+ type: e.enum([
2086
+ "string",
2087
+ "number",
2088
+ "date",
2089
+ "select",
2090
+ "multiselect",
2091
+ "checkbox",
2092
+ "radio"
2093
+ ]),
2094
+ validationRules: e.union([
2095
+ fa,
2096
+ pa,
2097
+ ma,
2098
+ ha,
2099
+ ga,
2100
+ _a,
2101
+ va
2102
+ ]),
2103
+ order: e.number(),
2104
+ width: e.enum(["half", "full"]),
2105
+ isDisplayedOnCreate: e.boolean(),
2106
+ isRequiredForLead: e.boolean()
2107
+ });
2108
+ e.object({
2109
+ detail: e.optional(e.string()),
2110
+ status: e.enum(["404"]),
2111
+ code: e.enum(["business_billing_information_not_found"])
2112
+ });
2113
+ var ba = e.object({
2114
+ uuid: e.uuid(),
2115
+ createdAt: e.iso.datetime(),
2116
+ updatedAt: e.iso.datetime(),
2117
+ invoiceEmail: e.union([e.email(), e.null()]),
2118
+ invoiceCcEmails: e.array(e.string()),
2119
+ reminderEmail: e.union([e.email(), e.null()]),
2120
+ reminderCcEmails: e.array(e.string()),
2121
+ purchaseNoteEmail: e.union([e.email(), e.null()]),
2122
+ purchaseNoteCcEmails: e.array(e.string()),
2123
+ billingLocation: e.union([U, e.null()])
2124
+ }), xa = e.object({
2125
+ billingAddress: e.optional(e.union([H, e.null()])),
2126
+ invoiceEmail: e.optional(e.union([e.email(), e.null()])),
2127
+ invoiceCcEmails: e.optional(e.union([e.array(e.email()), e.null()]))
2128
+ });
2129
+ e.object({
2130
+ detail: e.optional(e.string()),
2131
+ status: e.enum(["404"]),
2132
+ code: e.enum(["individual_billing_information_not_found"])
2133
+ });
2134
+ var Sa = e.object({
2135
+ uuid: e.uuid(),
2136
+ createdAt: e.iso.datetime(),
2137
+ updatedAt: e.iso.datetime(),
2138
+ invoiceEmail: e.union([e.email(), e.null()]),
2139
+ invoiceCcEmails: e.array(e.string()),
2140
+ billingLocation: e.union([U, e.null()])
2141
+ }), Ca = e.object({ fileUuid: e.string() }), wa = e.object({ fileUuid: e.string() }), Ta = e.object({ fileUuid: e.string() }), Ea = e.object({ fileUuid: e.string() }), Da = e.object({ fileUuid: e.string() }), Oa = e.object({ fileUuid: e.string() }), ka = e.enum(["active", "inactive"]), Aa = e.object({
2142
+ enterpriseNumber: e.string(),
2143
+ status: ka,
2144
+ startDate: e.union([e.string(), e.null()]),
2145
+ name: e.union([e.string(), e.null()]),
2146
+ abbreviation: e.union([e.string(), e.null()]),
2147
+ phone: e.union([e.string(), e.null()]),
2148
+ fax: e.union([e.string(), e.null()]),
2149
+ email: e.union([e.string(), e.null()]),
2150
+ website: e.union([e.string(), e.null()]),
2151
+ address: e.union([L, e.null()])
2152
+ });
2153
+ e.object({
2154
+ items: e.array(Aa),
2155
+ meta: S
2156
+ });
2157
+ var ja = e.object({ enterpriseNumber: e.optional(e.string()) }), Ma = e.object({
2158
+ establishmentNumber: e.string(),
2159
+ enterpriseNumber: e.string(),
2160
+ startDate: e.union([e.string(), e.null()]),
2161
+ commercialName: e.union([e.string(), e.null()]),
2162
+ address: e.union([L, e.null()])
2163
+ });
2164
+ e.object({
2165
+ items: e.array(e.array(e.unknown())),
2166
+ meta: S,
2167
+ results: e.array(Ma)
2168
+ }), e.object({
2169
+ detail: e.optional(e.string()),
2170
+ status: e.enum(["409"]),
2171
+ code: e.enum(["board_columns_already_exist"])
2172
+ });
2173
+ var Na = e.object({
2174
+ maxDaysInColumnBeforeHighlight: e.optional(e.union([e.number(), e.null()])),
2175
+ onlyShowLeadInColumn: e.optional(e.boolean()),
2176
+ businessStatusOnEntry: e.optional(C)
2177
+ }), Pa = e.object({
2178
+ key: e.string(),
2179
+ displayName: e.array(v),
2180
+ position: e.number(),
2181
+ color: y,
2182
+ config: e.optional(Na)
2183
+ }), Fa = e.object({ mailTemplateKey: e.string() }), Ia = e.object({
2184
+ triggerType: P,
2185
+ config: e.optional(Fa)
2186
+ }), La = e.object({
2187
+ key: e.string(),
2188
+ triggers: e.array(Ia)
2189
+ }), Ra = e.object({
2190
+ fromKey: e.string(),
2191
+ to: e.array(La)
2192
+ }), za = e.object({
2193
+ columns: e.array(Pa),
2194
+ transitions: e.array(Ra)
2195
+ });
2196
+ e.object({
2197
+ columnUuids: e.array(e.uuid()),
2198
+ transitionUuids: e.array(e.uuid())
2199
+ });
2200
+ var Ba = e.object({
2201
+ maxDaysInColumnBeforeHighlight: e.union([e.number(), e.null()]),
2202
+ onlyShowLeadInColumn: e.boolean()
2203
+ }), Va = e.object({
2204
+ uuid: e.uuid(),
2205
+ key: e.string(),
2206
+ displayName: e.string(),
2207
+ position: e.number(),
2208
+ color: y,
2209
+ config: Ba
2210
+ }), Ha = e.object({ items: e.array(Va) });
2211
+ e.object({
2212
+ detail: e.optional(e.string()),
2213
+ status: e.enum(["404"]),
2214
+ code: e.enum(["board_column_not_found"])
2215
+ });
2216
+ var Ua = e.object({ mailTemplateKey: e.string() }), Wa = e.object({
2217
+ uuid: e.uuid(),
2218
+ triggerType: P,
2219
+ config: e.union([Ua, e.null()])
2220
+ }), Ga = e.object({
2221
+ uuid: e.uuid(),
2222
+ toColumnUuid: e.uuid(),
2223
+ toColumnKey: e.string(),
2224
+ toColumnDisplayName: e.string(),
2225
+ toColumnColor: y,
2226
+ triggers: e.array(Wa)
2227
+ }), Ka = e.object({ items: e.array(Ga) });
2228
+ e.object({
2229
+ detail: e.optional(e.string()),
2230
+ status: e.enum(["404"]),
2231
+ code: e.enum(["client_not_found"])
2232
+ }), e.object({
2233
+ detail: e.optional(e.string()),
2234
+ status: e.enum(["400"]),
2235
+ code: e.enum(["deal_creation_not_allowed"])
2236
+ }), e.object({
2237
+ detail: e.optional(e.string()),
2238
+ status: e.enum(["400"]),
2239
+ code: e.enum(["no_board_columns"])
2240
+ });
2241
+ var J = e.enum([
2242
+ "mail",
2243
+ "website",
2244
+ "phone",
2245
+ "tender"
2246
+ ]), Y = e.enum(["business", "individual"]), qa = e.object({
2247
+ uuid: e.uuid(),
2248
+ type: Y
2249
+ }), Ja = e.object({
2250
+ name: e.string(),
2251
+ dealLanguage: N,
2252
+ dealSource: J,
2253
+ clientId: qa,
2254
+ dealOwnerUuid: e.union([e.uuid(), e.null()])
2255
+ }), Ya = e.object({ uuid: e.uuid() });
2256
+ e.object({
2257
+ detail: e.optional(e.string()),
2258
+ status: e.enum(["404"]),
2259
+ code: e.enum(["deal_not_found"])
2260
+ });
2261
+ var Xa = e.object({
2262
+ name: e.optional(e.string()),
2263
+ dealLanguage: e.optional(N),
2264
+ dealSource: e.optional(J),
2265
+ dealOwnerUuid: e.optional(e.union([e.uuid(), e.null()]))
2266
+ }), Za = e.object({ dealOwnerUuid: e.union([e.uuid(), e.null()]) }), Qa = e.object({
2267
+ fromBoardColumnUuid: e.uuid(),
2268
+ toBoardColumnUuid: e.uuid()
2269
+ });
2270
+ e.object({
2271
+ detail: e.optional(e.string()),
2272
+ status: e.enum(["400"]),
2273
+ code: e.enum(["deal_column_transition_not_allowed"]),
2274
+ meta: Qa
2275
+ });
2276
+ var $a = e.object({ boardColumnUuid: e.uuid() }), eo = e.enum([
2277
+ "lead",
2278
+ "customer",
2279
+ "inactive",
2280
+ "archived",
2281
+ "contact"
2282
+ ]), to = e.object({
2283
+ uuid: e.uuid(),
2284
+ type: Y,
2285
+ status: eo,
2286
+ name: e.string()
2287
+ }), no = e.object({
2288
+ uuid: e.uuid(),
2289
+ firstName: e.union([e.string(), e.null()]),
2290
+ lastName: e.union([e.string(), e.null()])
2291
+ }), ro = e.object({
2292
+ uuid: e.uuid(),
2293
+ key: e.string(),
2294
+ displayName: e.string(),
2295
+ color: y
2296
+ }), io = e.object({
2297
+ uuid: e.uuid(),
2298
+ firstName: e.string(),
2299
+ lastName: e.string(),
2300
+ email: e.union([e.email(), e.null()]),
2301
+ phone: e.union([e.string(), e.null()]),
2302
+ mobilePhone: e.union([e.string(), e.null()]),
2303
+ isPrimary: e.boolean()
2304
+ }), ao = e.object({
2305
+ uuid: e.uuid(),
2306
+ name: e.string(),
2307
+ dealLanguage: N,
2308
+ dealSource: J,
2309
+ client: to,
2310
+ createdBy: no,
2311
+ owner: e.union([no, e.null()]),
2312
+ boardColumn: ro,
2313
+ contactPersons: e.array(io),
2314
+ createdAt: e.iso.datetime(),
2315
+ updatedAt: e.iso.datetime()
2316
+ }), oo = e.object({
2317
+ boardColumnUuids: e.optional(e.array(e.uuid())),
2318
+ dealOwnerUuids: e.optional(e.array(e.uuid())),
2319
+ businessUuids: e.optional(e.array(e.uuid()))
2320
+ }), so = e.object({
2321
+ uuid: e.uuid(),
2322
+ firstName: e.union([e.string(), e.null()]),
2323
+ lastName: e.union([e.string(), e.null()])
2324
+ }), co = e.object({
2325
+ uuid: e.uuid(),
2326
+ key: e.string(),
2327
+ displayName: e.string()
2328
+ }), lo = e.object({
2329
+ uuid: e.uuid(),
2330
+ name: e.string(),
2331
+ dealLanguage: e.enum([
2332
+ "nl-BE",
2333
+ "en-US",
2334
+ "fr-BE",
2335
+ "de-DE"
2336
+ ]),
2337
+ dealSource: e.enum([
2338
+ "mail",
2339
+ "website",
2340
+ "phone",
2341
+ "tender"
2342
+ ]),
2343
+ client: to,
2344
+ createdBy: so,
2345
+ owner: e.union([so, e.null()]),
2346
+ boardColumn: co,
2347
+ createdAt: e.iso.datetime(),
2348
+ updatedAt: e.iso.datetime()
2349
+ }), uo = e.object({
2350
+ items: e.array(lo),
2351
+ meta: S
2352
+ }), fo = e.object({
2353
+ contactPersonUuid: e.uuid(),
2354
+ email: e.union([e.email(), e.null()]),
2355
+ phone: e.union([e.string(), e.null()]),
2356
+ mobilePhone: e.union([e.string(), e.null()])
2357
+ }), po = e.object({
2358
+ dealUuid: e.uuid(),
2359
+ contactPersonUuid: e.uuid()
2360
+ });
2361
+ e.object({
2362
+ detail: e.optional(e.string()),
2363
+ status: e.enum(["404"]),
2364
+ code: e.enum(["deal_contact_person_not_found"])
2365
+ }), e.object({
2366
+ detail: e.optional(e.string()),
2367
+ status: e.enum(["400"]),
2368
+ code: e.enum(["primary_contact_of_deal_not_unlinkable"])
2369
+ });
2370
+ var mo = e.object({ contactPersonUuid: e.uuid() }), ho = e.object({
2371
+ firstName: e.string(),
2372
+ lastName: e.string(),
2373
+ email: e.union([e.string(), e.null()]),
2374
+ phone: e.union([e.string(), e.null()]),
2375
+ mobilePhone: e.union([e.string(), e.null()])
2376
+ }), go = e.object({
2377
+ dealUuid: e.uuid(),
2378
+ contactPersonUuid: e.uuid(),
2379
+ firstName: e.string(),
2380
+ lastName: e.string(),
2381
+ email: e.union([e.email(), e.null()]),
2382
+ phone: e.union([e.string(), e.null()]),
2383
+ mobilePhone: e.union([e.string(), e.null()]),
2384
+ isPrimary: e.boolean()
2385
+ });
2386
+ e.object({
2387
+ detail: e.optional(e.string()),
2388
+ status: e.enum(["400"]),
2389
+ code: e.enum(["customer_zone_email_verification_organization_mismatch"])
2390
+ }), e.object({
2391
+ detail: e.optional(e.string()),
2392
+ status: e.enum(["400"]),
2393
+ code: e.enum(["customer_zone_invalid_email_verification_code"])
2394
+ }), e.object({
2395
+ detail: e.optional(e.string()),
2396
+ status: e.enum(["404"]),
2397
+ code: e.enum(["customer_zone_tenant_domain_not_found"])
2398
+ }), e.object({
2399
+ detail: e.optional(e.string()),
2400
+ status: e.enum(["404"]),
2401
+ code: e.enum(["customer_zone_email_verification_user_not_found"])
2402
+ }), e.object({
2403
+ detail: e.optional(e.string()),
2404
+ status: e.enum(["404"]),
2405
+ code: e.enum(["customer_zone_individual_user_grant_not_found"])
2406
+ });
2407
+ var _o = e.object({
2408
+ userId: e.string(),
2409
+ verificationCode: e.string(),
2410
+ organizationId: e.string(),
2411
+ domain: e.string()
2412
+ }), vo = e.object({
2413
+ email: e.email(),
2414
+ firstName: e.union([e.string(), e.null()]),
2415
+ lastName: e.union([e.string(), e.null()])
2416
+ });
2417
+ e.object({
2418
+ detail: e.optional(e.string()),
2419
+ status: e.enum(["409"]),
2420
+ code: e.enum(["customer_zone_individual_already_linked"])
2421
+ }), e.object({
2422
+ uuid: e.uuid(),
2423
+ firstName: e.string(),
2424
+ lastName: e.string(),
2425
+ email: e.union([e.email(), e.null()]),
2426
+ phone: e.union([e.string(), e.null()]),
2427
+ mobilePhone: e.union([e.string(), e.null()]),
2428
+ customFields: e.union([e.record(e.string(), e.unknown()), e.null()])
2429
+ }), e.object({
2430
+ detail: e.optional(e.string()),
2431
+ status: e.enum(["404"]),
2432
+ code: e.enum(["customer_zone_individual_grant_not_found"])
2433
+ });
2434
+ var yo = e.object({
2435
+ uuid: e.uuid(),
2436
+ createdAt: e.iso.datetime(),
2437
+ updatedAt: e.iso.datetime(),
2438
+ name: e.string()
2439
+ }), bo = e.object({
2440
+ items: e.array(yo),
2441
+ meta: S
2442
+ });
2443
+ e.object({
2444
+ detail: e.optional(e.string()),
2445
+ status: e.enum(["404"]),
2446
+ code: e.enum(["mail_template_not_found"])
2447
+ });
2448
+ var xo = e.object({
2449
+ uuid: e.uuid(),
2450
+ name: e.string(),
2451
+ mimeType: E,
2452
+ blurHash: e.union([e.string(), e.null()])
2453
+ }), So = e.object({
2454
+ uuid: e.uuid(),
2455
+ language: e.enum([
2456
+ "nl-BE",
2457
+ "en-US",
2458
+ "fr-BE",
2459
+ "de-DE"
2460
+ ]),
2461
+ replyTo: e.union([e.email(), e.null()]),
2462
+ subject: e.string(),
2463
+ message: e.string(),
2464
+ createdAt: e.iso.datetime(),
2465
+ updatedAt: e.iso.datetime(),
2466
+ attachments: e.array(xo)
2467
+ }), Co = e.object({
2468
+ uuid: e.uuid(),
2469
+ createdAt: e.iso.datetime(),
2470
+ updatedAt: e.iso.datetime(),
2471
+ key: e.string(),
2472
+ displayName: e.string(),
2473
+ defaultCC: e.array(e.string()),
2474
+ defaultBCC: e.array(e.string()),
2475
+ locales: e.array(So)
2476
+ });
2477
+ e.object({
2478
+ detail: e.optional(e.string()),
2479
+ status: e.enum(["409"]),
2480
+ code: e.enum(["mail_template_key_already_in_use"])
2481
+ }), e.object({
2482
+ detail: e.optional(e.string()),
2483
+ status: e.enum(["400"]),
2484
+ code: e.enum(["mail_template_locale_language_already_provided"])
2485
+ });
2486
+ var wo = e.object({
2487
+ language: _,
2488
+ value: e.string()
2489
+ }), To = e.object({ fileUuid: e.uuid() }), Eo = e.object({
2490
+ language: N,
2491
+ replyTo: e.union([e.email(), e.null()]),
2492
+ subject: e.string(),
2493
+ message: e.string(),
2494
+ attachments: e.optional(e.array(To))
2495
+ }), Do = e.object({
2496
+ key: e.string(),
2497
+ displayName: e.array(wo),
2498
+ defaultCC: e.optional(e.array(e.string())),
2499
+ defaultBCC: e.optional(e.array(e.string())),
2500
+ locales: e.array(Eo)
2501
+ });
2502
+ e.object({ uuid: e.uuid() });
2503
+ var Oo = e.object({
2504
+ language: N,
2505
+ replyTo: e.union([e.email(), e.null()]),
2506
+ subject: e.string(),
2507
+ message: e.string(),
2508
+ attachments: e.array(e.uuid())
2509
+ }), ko = e.object({
2510
+ defaultCC: e.optional(e.array(e.string())),
2511
+ defaultBCC: e.optional(e.array(e.string())),
2512
+ locales: e.array(Oo)
2513
+ }), Ao = e.object({ key: e.string() });
2514
+ e.object({
2515
+ detail: e.optional(e.string()),
2516
+ status: e.enum(["404"]),
2517
+ code: e.enum(["mail_template_key_not_found"]),
2518
+ meta: Ao
2519
+ });
2520
+ var jo = e.object({
2521
+ uuid: e.uuid(),
2522
+ name: e.string(),
2523
+ mimeType: E,
2524
+ downloadUrl: e.string()
2525
+ }), Mo = e.object({
2526
+ to: e.array(e.string()),
2527
+ cc: e.optional(e.array(e.string())),
2528
+ bcc: e.optional(e.array(e.string())),
2529
+ from: e.optional(e.string()),
2530
+ replyTo: e.optional(e.string()),
2531
+ subject: e.string(),
2532
+ text: e.string(),
2533
+ attachments: e.optional(e.array(e.uuid())),
2534
+ clientId: qa,
2535
+ dealUuid: e.union([e.uuid(), e.null()]),
2536
+ mailTemplateUuid: e.union([e.uuid(), e.null()]),
2537
+ externalAttachments: e.optional(e.array(jo))
2538
+ }), No = e.enum([
2539
+ "sending",
2540
+ "delivered",
2541
+ "failed"
2542
+ ]), Po = e.object({
2543
+ uuid: e.uuid(),
2544
+ status: No
2545
+ }), Fo = e.object({
2546
+ clientUuid: e.optional(e.uuid()),
2547
+ clientType: e.optional(Y),
2548
+ dealUuid: e.optional(e.uuid())
2549
+ }), Io = e.object({
2550
+ uuid: e.uuid(),
2551
+ type: Y
2552
+ }), Lo = e.object({
2553
+ uuid: e.uuid(),
2554
+ name: e.string(),
2555
+ mimeType: E,
2556
+ downloadUrl: e.string()
2557
+ }), Ro = e.object({
2558
+ uuid: e.uuid(),
2559
+ name: e.string(),
2560
+ mimeType: E,
2561
+ downloadUrl: e.string()
2562
+ }), zo = e.object({
2563
+ uuid: e.uuid(),
2564
+ key: e.string(),
2565
+ displayName: e.array(e.record(e.string(), e.unknown()))
2566
+ }), Bo = e.object({
2567
+ uuid: e.uuid(),
2568
+ to: e.array(e.string()),
2569
+ cc: e.array(e.string()),
2570
+ bcc: e.array(e.string()),
2571
+ from: e.union([e.string(), e.null()]),
2572
+ replyTo: e.union([e.string(), e.null()]),
2573
+ subject: e.string(),
2574
+ text: e.string(),
2575
+ status: No,
2576
+ client: Io,
2577
+ dealUuid: e.union([e.uuid(), e.null()]),
2578
+ attachments: e.array(Lo),
2579
+ externalAttachments: e.array(Ro),
2580
+ mailTemplateDisplayName: e.union([e.string(), e.null()]),
2581
+ mailTemplateUuid: e.union([e.uuid(), e.null()]),
2582
+ mailTemplate: e.union([zo, e.null()]),
2583
+ createdAt: e.iso.datetime(),
2584
+ updatedAt: e.iso.datetime()
2585
+ }), Vo = e.object({
2586
+ items: e.array(Bo),
2587
+ meta: S
2588
+ }), Ho = e.object({
2589
+ entityUuids: e.optional(e.array(e.uuid())),
2590
+ entityTypes: e.optional(e.array(e.enum([
2591
+ "business",
2592
+ "individual",
2593
+ "file",
2594
+ "note"
2595
+ ]))),
2596
+ roles: e.optional(e.array(e.enum([
2597
+ "actor",
2598
+ "business",
2599
+ "individual",
2600
+ "file",
2601
+ "note"
2602
+ ])))
2603
+ }), Uo = e.object({
2604
+ createdAt: e.string(),
2605
+ uuid: e.uuid()
2606
+ }), Wo = e.object({
2607
+ limit: e.number().gte(0).lte(100),
2608
+ key: e.optional(e.union([Uo, e.null()]))
2609
+ }), Go = e.enum(["business-updated"]), Ko = e.enum([
2610
+ "create",
2611
+ "update",
2612
+ "delete"
2613
+ ]), qo = e.enum([
2614
+ "user",
2615
+ "service",
2616
+ "system"
2617
+ ]), Jo = e.object({
2618
+ uuid: e.uuid(),
2619
+ firstName: e.union([e.string(), e.null()]),
2620
+ lastName: e.union([e.string(), e.null()]),
2621
+ email: e.union([e.string(), e.null()])
2622
+ }), Yo = e.enum([
2623
+ "actor",
2624
+ "business",
2625
+ "individual",
2626
+ "file",
2627
+ "note"
2628
+ ]), Xo = e.enum([
2629
+ "business",
2630
+ "individual",
2631
+ "file",
2632
+ "note"
2633
+ ]), Zo = e.object({
2634
+ role: Yo,
2635
+ type: Xo,
2636
+ uuid: e.uuid(),
2637
+ label: e.union([e.string(), e.null()])
2638
+ }), Qo = e.object({
2639
+ entityRole: Yo,
2640
+ field: e.string(),
2641
+ from: e.union([
2642
+ e.string(),
2643
+ e.number(),
2644
+ e.boolean(),
2645
+ e.null()
2646
+ ]),
2647
+ to: e.union([
2648
+ e.string(),
2649
+ e.number(),
2650
+ e.boolean(),
2651
+ e.null()
2652
+ ])
2653
+ }), $o = e.object({
2654
+ action: Go,
2655
+ changeType: Ko,
2656
+ actorType: qo,
2657
+ actor: e.union([Jo, e.null()]),
2658
+ entities: e.array(Zo),
2659
+ changes: e.union([e.array(Qo), e.null()])
2660
+ });
2661
+ e.object({
2662
+ logs: e.array($o),
2663
+ nextKey: e.union([Uo, e.null()])
2664
+ }), e.object({
2665
+ detail: e.optional(e.string()),
2666
+ status: e.enum(["500"]),
2667
+ code: e.enum(["internal_server_error"])
2668
+ }), e.object({
2669
+ body: e.optional(e.never()),
2670
+ path: e.optional(e.never()),
2671
+ query: e.optional(e.never())
2672
+ }), e.object({
2673
+ body: e.optional(e.never()),
2674
+ path: e.optional(e.never()),
2675
+ query: e.optional(e.object({
2676
+ pagination: e.optional(x),
2677
+ search: e.optional(e.string())
2678
+ }))
2679
+ }), e.object({
2680
+ body: ne,
2681
+ path: e.optional(e.never()),
2682
+ query: e.optional(e.never())
2683
+ }), e.object({
2684
+ body: e.optional(e.never()),
2685
+ path: e.object({ uuid: e.string() }),
2686
+ query: e.optional(e.never())
2687
+ }), e.object({
2688
+ body: re,
2689
+ path: e.object({ uuid: e.string() }),
2690
+ query: e.optional(e.never())
2691
+ }), e.void(), e.object({
2692
+ body: ie,
2693
+ path: e.object({ uuid: e.string() }),
2694
+ query: e.optional(e.never())
2695
+ }), e.void(), e.object({
2696
+ body: se,
2697
+ path: e.object({ uuid: e.string() }),
2698
+ query: e.optional(e.never())
2699
+ }), e.void(), e.object({
2700
+ body: de,
2701
+ path: e.object({ uuid: e.string() }),
2702
+ query: e.optional(e.never())
2703
+ }), e.void(), e.object({
2704
+ body: pe,
2705
+ path: e.object({ uuid: e.string() }),
2706
+ query: e.optional(e.never())
2707
+ }), e.void();
2708
+ var es = e.object({
2709
+ body: e.optional(e.never()),
2710
+ path: e.optional(e.never()),
2711
+ query: e.optional(e.never())
2712
+ }), ts = ye, ns = e.object({
2713
+ body: e.optional(e.never()),
2714
+ path: e.optional(e.never()),
2715
+ query: e.optional(e.object({
2716
+ pagination: e.optional(x),
2717
+ filter: e.optional(xe)
2718
+ }))
2719
+ }), rs = Ce;
2720
+ e.object({
2721
+ body: we,
2722
+ path: e.object({ uuid: e.string() }),
2723
+ query: e.optional(e.never())
2724
+ }), e.object({
2725
+ body: e.optional(e.never()),
2726
+ path: e.optional(e.never()),
2727
+ query: e.object({
2728
+ fresh: e.boolean(),
2729
+ collections: e.optional(e.array(Te))
2730
+ })
2731
+ }), e.object({
2732
+ body: e.optional(e.never()),
2733
+ path: e.optional(e.never()),
2734
+ query: e.optional(e.object({ collections: e.optional(e.array(Te)) }))
2735
+ }), e.object({
2736
+ body: e.optional(e.never()),
2737
+ path: e.optional(e.never()),
2738
+ query: e.optional(e.never())
2739
+ }), e.object({
2740
+ body: e.optional(e.never()),
2741
+ path: e.optional(e.never()),
2742
+ query: e.optional(e.never())
2743
+ }), e.object({
2744
+ body: e.optional(e.never()),
2745
+ path: e.object({ domain: e.string() }),
2746
+ query: e.optional(e.never())
2747
+ }), e.object({
2748
+ body: e.optional(e.never()),
2749
+ path: e.object({ domain: e.string() }),
2750
+ query: e.optional(e.never())
2751
+ }), e.object({
2752
+ body: e.optional(e.never()),
2753
+ path: e.optional(e.never()),
2754
+ query: e.optional(e.never())
2755
+ }), e.object({
2756
+ body: Ee,
2757
+ path: e.object({ user: e.string() }),
2758
+ query: e.optional(e.never())
2759
+ }), e.object({
2760
+ body: e.optional(e.never()),
2761
+ path: e.optional(e.never()),
2762
+ query: e.optional(e.never())
2763
+ }), e.object({
2764
+ body: e.optional(e.never()),
2765
+ path: e.object({ uuid: e.string() }),
2766
+ query: e.optional(e.never())
2767
+ });
2768
+ var is = e.object({
2769
+ body: e.optional(e.never()),
2770
+ path: e.optional(e.never()),
2771
+ query: e.optional(e.object({
2772
+ pagination: e.optional(x),
2773
+ search: e.optional(e.string())
2774
+ }))
2775
+ }), as = Ae;
2776
+ e.object({
2777
+ body: e.optional(e.never()),
2778
+ path: e.optional(e.never()),
2779
+ query: e.optional(e.never())
2780
+ }), e.object({
2781
+ body: Ie,
2782
+ path: e.optional(e.never()),
2783
+ query: e.optional(e.never())
2784
+ }), e.void(), e.object({
2785
+ body: je,
2786
+ path: e.optional(e.never()),
2787
+ query: e.optional(e.never())
2788
+ }), e.object({
2789
+ body: Me,
2790
+ path: e.optional(e.never()),
2791
+ query: e.optional(e.never())
2792
+ }), e.void(), e.object({
2793
+ body: e.optional(e.never()),
2794
+ path: e.object({ role: e.string() }),
2795
+ query: e.optional(e.never())
2796
+ }), e.void(), e.object({
2797
+ body: e.optional(e.never()),
2798
+ path: e.object({ role: e.string() }),
2799
+ query: e.optional(e.never())
2800
+ }), e.object({
2801
+ body: Ne,
2802
+ path: e.object({ role: e.string() }),
2803
+ query: e.optional(e.never())
2804
+ }), e.void();
2805
+ var os = e.object({
2806
+ body: Le,
2807
+ path: e.optional(e.never()),
2808
+ query: e.optional(e.never())
2809
+ }), ss = Re;
2810
+ e.object({
2811
+ body: e.optional(e.never()),
2812
+ path: e.object({ file: e.string() }),
2813
+ query: e.optional(e.never())
2814
+ }), e.void();
2815
+ var cs = e.object({
2816
+ body: ze,
2817
+ path: e.object({ file: e.string() }),
2818
+ query: e.optional(e.never())
2819
+ }), ls = e.void();
2820
+ e.object({
2821
+ body: e.optional(e.never()),
2822
+ path: e.object({ file: e.string() }),
2823
+ query: e.optional(e.never())
2824
+ }), e.object({
2825
+ body: e.optional(e.never()),
2826
+ path: e.object({ file: e.string() }),
2827
+ query: e.object({ token: e.string() })
2828
+ }), e.object({
2829
+ body: e.optional(e.never()),
2830
+ path: e.optional(e.never()),
2831
+ query: e.optional(e.never())
2832
+ }), e.object({
2833
+ body: He,
2834
+ path: e.optional(e.never()),
2835
+ query: e.optional(e.never())
2836
+ }), e.object({
2837
+ body: e.optional(e.never()),
2838
+ path: e.optional(e.never()),
2839
+ query: e.optional(e.never())
2840
+ }), e.object({
2841
+ body: We,
2842
+ path: e.optional(e.never()),
2843
+ query: e.optional(e.never())
2844
+ }), e.object({
2845
+ body: e.optional(e.never()),
2846
+ path: e.optional(e.never()),
2847
+ query: e.optional(e.object({
2848
+ filter: e.optional(Ge),
2849
+ pagination: e.optional(Ke)
2850
+ }))
2851
+ });
2852
+ var us = e.object({
2853
+ body: e.optional(e.never()),
2854
+ path: e.optional(e.never()),
2855
+ query: e.object({
2856
+ filter: e.optional(nr),
2857
+ search: e.string()
2858
+ })
2859
+ }), ds = cr;
2860
+ e.object({
2861
+ body: e.optional(e.never()),
2862
+ path: e.optional(e.never()),
2863
+ query: e.optional(e.never())
2864
+ }), e.object({
2865
+ body: e.optional(e.never()),
2866
+ path: e.optional(e.never()),
2867
+ query: e.optional(e.never())
2868
+ }), e.object({
2869
+ body: mr,
2870
+ path: e.optional(e.never()),
2871
+ query: e.optional(e.never())
2872
+ }), e.void(), e.object({
2873
+ body: e.optional(e.never()),
2874
+ path: e.optional(e.never()),
2875
+ query: e.optional(e.object({
2876
+ filter: e.optional(hr),
2877
+ pagination: e.optional(_r)
2878
+ }))
2879
+ }), e.object({
2880
+ body: e.optional(e.never()),
2881
+ path: e.optional(e.never()),
2882
+ query: e.optional(e.never())
2883
+ }), e.object({
2884
+ body: e.optional(e.never()),
2885
+ path: e.object({ notificationUuid: e.string() }),
2886
+ query: e.optional(e.never())
2887
+ }), e.object({
2888
+ body: e.optional(e.never()),
2889
+ path: e.optional(e.never()),
2890
+ query: e.optional(e.never())
2891
+ }), e.void(), e.object({
2892
+ body: Sr,
2893
+ path: e.optional(e.never()),
2894
+ query: e.optional(e.never())
2895
+ }), e.void(), e.object({
2896
+ body: e.optional(e.never()),
2897
+ path: e.object({ notificationUuid: e.string() }),
2898
+ query: e.optional(e.never())
2899
+ }), e.void(), e.object({
2900
+ body: e.optional(e.never()),
2901
+ path: e.object({ notificationUuid: e.string() }),
2902
+ query: e.optional(e.never())
2903
+ }), e.void(), e.object({
2904
+ body: Cr,
2905
+ path: e.optional(e.never()),
2906
+ query: e.optional(e.never())
2907
+ }), e.void(), e.object({
2908
+ body: Tr,
2909
+ path: e.optional(e.never()),
2910
+ query: e.optional(e.never())
2911
+ }), e.void(), e.object({
2912
+ body: Er,
2913
+ path: e.optional(e.never()),
2914
+ query: e.optional(e.never())
2915
+ }), e.void(), e.object({
2916
+ body: e.optional(e.never()),
2917
+ path: e.optional(e.never()),
2918
+ query: e.optional(e.object({
2919
+ sort: e.optional(e.array(kr)),
2920
+ filter: e.optional(Ar),
2921
+ pagination: e.optional(Mr)
2922
+ }))
2923
+ }), e.object({
2924
+ body: e.optional(e.never()),
2925
+ path: e.object({ jobId: e.string() }),
2926
+ query: e.optional(e.never())
2927
+ }), e.object({
2928
+ body: e.optional(e.never()),
2929
+ path: e.optional(e.never()),
2930
+ query: e.optional(e.object({
2931
+ pagination: e.optional(x),
2932
+ filter: e.optional(zr),
2933
+ search: e.optional(e.string()),
2934
+ sort: e.optional(e.array(Vr))
2935
+ }))
2936
+ }), e.object({
2937
+ body: Ir,
2938
+ path: e.optional(e.never()),
2939
+ query: e.optional(e.never())
2940
+ }), e.object({
2941
+ body: e.optional(e.never()),
2942
+ path: e.object({ uuid: e.string() }),
2943
+ query: e.optional(e.never())
2944
+ }), e.object({
2945
+ body: Lr,
2946
+ path: e.object({ uuid: e.string() }),
2947
+ query: e.optional(e.never())
2948
+ });
2949
+ var fs = e.object({
2950
+ body: e.optional(e.never()),
2951
+ path: e.optional(e.never()),
2952
+ query: e.optional(e.object({
2953
+ pagination: e.optional(x),
2954
+ search: e.optional(e.string())
2955
+ }))
2956
+ }), ps = Yr, ms = e.object({
2957
+ body: Ur,
2958
+ path: e.optional(e.never()),
2959
+ query: e.optional(e.never())
2960
+ }), hs = Wr, gs = e.object({
2961
+ body: e.optional(e.never()),
2962
+ path: e.object({ individualUuid: e.string() }),
2963
+ query: e.optional(e.never())
2964
+ }), _s = $r, vs = e.object({
2965
+ body: Gr,
2966
+ path: e.object({ individualUuid: e.string() }),
2967
+ query: e.optional(e.never())
2968
+ }), ys = e.void();
2969
+ e.object({
2970
+ body: Kr,
2971
+ path: e.object({ individualUuid: e.string() }),
2972
+ query: e.optional(e.never())
2973
+ }), e.void();
2974
+ var bs = e.object({
2975
+ body: e.optional(e.never()),
2976
+ path: e.optional(e.never()),
2977
+ query: e.optional(e.never())
2978
+ }), xs = qr, Ss = e.object({
2979
+ body: e.optional(e.never()),
2980
+ path: e.object({ individualUuid: e.string() }),
2981
+ query: e.optional(e.object({ pagination: e.optional(ti) }))
2982
+ }), Cs = ai, ws = e.object({
2983
+ body: e.optional(e.never()),
2984
+ path: e.optional(e.never()),
2985
+ query: e.optional(e.object({
2986
+ pagination: e.optional(x),
2987
+ search: e.optional(e.string())
2988
+ }))
2989
+ }), Ts = pi, Es = e.object({
2990
+ body: si,
2991
+ path: e.optional(e.never()),
2992
+ query: e.optional(e.never())
2993
+ }), Ds = ci;
2994
+ e.object({
2995
+ body: W,
2996
+ path: e.optional(e.never()),
2997
+ query: e.optional(e.never())
2998
+ });
2999
+ var Os = e.object({
3000
+ body: e.optional(e.never()),
3001
+ path: e.object({ businessUuid: e.string() }),
3002
+ query: e.optional(e.never())
3003
+ }), ks = _i, As = e.object({
3004
+ body: li,
3005
+ path: e.object({ businessUuid: e.string() }),
3006
+ query: e.optional(e.never())
3007
+ }), js = e.void();
3008
+ e.object({
3009
+ body: ui,
3010
+ path: e.object({ businessUuid: e.string() }),
3011
+ query: e.optional(e.never())
3012
+ }), e.void();
3013
+ var Ms = e.object({
3014
+ body: e.optional(e.never()),
3015
+ path: e.optional(e.never()),
3016
+ query: e.optional(e.never())
3017
+ }), Ns = di, Ps = e.object({
3018
+ body: e.optional(e.never()),
3019
+ path: e.object({ businessUuid: e.string() }),
3020
+ query: e.optional(e.never())
3021
+ }), Fs = ba, Is = e.object({
3022
+ body: vi,
3023
+ path: e.object({ businessUuid: e.string() }),
3024
+ query: e.optional(e.never())
3025
+ }), Ls = e.void();
3026
+ e.object({
3027
+ body: e.optional(e.never()),
3028
+ path: e.object({
3029
+ parentUuid: e.string(),
3030
+ businessUuid: e.string()
3031
+ }),
3032
+ query: e.optional(e.never())
3033
+ }), e.void();
3034
+ var Rs = e.object({
3035
+ body: e.optional(e.never()),
3036
+ path: e.object({
3037
+ childUuid: e.string(),
3038
+ businessUuid: e.string()
3039
+ }),
3040
+ query: e.optional(e.never())
3041
+ }), zs = e.void(), Bs = e.object({
3042
+ body: e.optional(e.never()),
3043
+ path: e.object({ businessUuid: e.string() }),
3044
+ query: e.optional(e.object({ pagination: e.optional(bi) }))
3045
+ }), Vs = Ci;
3046
+ e.object({
3047
+ body: W,
3048
+ path: e.optional(e.never()),
3049
+ query: e.optional(e.never())
3050
+ });
3051
+ var Hs = e.object({
3052
+ body: wi,
3053
+ path: e.optional(e.never()),
3054
+ query: e.optional(e.never())
3055
+ }), Us = Ti, Ws = e.object({
3056
+ body: e.optional(e.never()),
3057
+ path: e.object({ uuid: e.string() }),
3058
+ query: e.optional(e.never())
3059
+ }), Gs = e.object({
3060
+ body: Ei,
3061
+ path: e.object({ uuid: e.string() }),
3062
+ query: e.optional(e.never())
3063
+ }), Ks = e.object({
3064
+ body: e.optional(e.never()),
3065
+ path: e.object({ businessUuid: e.string() }),
3066
+ query: e.optional(e.object({ pagination: e.optional(Oi) }))
3067
+ }), qs = Mi, Js = e.object({
3068
+ body: e.optional(e.never()),
3069
+ path: e.object({ individualUuid: e.string() }),
3070
+ query: e.optional(e.object({ pagination: e.optional(Pi) }))
3071
+ }), Ys = Li, Xs = e.object({
3072
+ body: e.optional(e.never()),
3073
+ path: e.object({ dealUuid: e.string() }),
3074
+ query: e.optional(e.object({ pagination: e.optional(zi) }))
3075
+ }), Zs = Hi;
3076
+ e.object({
3077
+ body: Ui,
3078
+ path: e.object({ noteUuid: e.string() }),
3079
+ query: e.optional(e.never())
3080
+ }), e.object({
3081
+ body: e.optional(e.never()),
3082
+ path: e.object({
3083
+ noteUuid: e.string(),
3084
+ fileUuid: e.string()
3085
+ }),
3086
+ query: e.optional(e.never())
3087
+ }), e.void();
3088
+ var Qs = e.object({
3089
+ body: Wi,
3090
+ path: e.object({ individualUuid: e.string() }),
3091
+ query: e.optional(e.never())
3092
+ }), $s = Gi, ec = e.object({
3093
+ body: Ki,
3094
+ path: e.object({ individualUuid: e.string() }),
3095
+ query: e.optional(e.never())
3096
+ }), tc = e.void(), nc = e.object({
3097
+ body: e.optional(e.never()),
3098
+ path: e.object({
3099
+ individualUuid: e.string(),
3100
+ contactPersonUuid: e.string()
3101
+ }),
3102
+ query: e.optional(e.never())
3103
+ }), rc = Ji, ic = e.object({
3104
+ body: qi,
3105
+ path: e.object({
3106
+ individualUuid: e.string(),
3107
+ contactPersonUuid: e.string()
3108
+ }),
3109
+ query: e.optional(e.never())
3110
+ }), ac = e.void(), oc = e.object({
3111
+ body: e.optional(e.never()),
3112
+ path: e.object({
3113
+ individualUuid: e.string(),
3114
+ contactPersonUuid: e.string()
3115
+ }),
3116
+ query: e.optional(e.never())
3117
+ }), sc = e.void(), cc = e.object({
3118
+ body: Yi,
3119
+ path: e.object({ businessUuid: e.string() }),
3120
+ query: e.optional(e.never())
3121
+ }), lc = Xi, uc = e.object({
3122
+ body: Zi,
3123
+ path: e.object({ businessUuid: e.string() }),
3124
+ query: e.optional(e.never())
3125
+ }), dc = e.void(), fc = e.object({
3126
+ body: e.optional(e.never()),
3127
+ path: e.object({
3128
+ businessUuid: e.string(),
3129
+ contactPersonUuid: e.string()
3130
+ }),
3131
+ query: e.optional(e.never())
3132
+ }), pc = $i, mc = e.object({
3133
+ body: Qi,
3134
+ path: e.object({
3135
+ businessUuid: e.string(),
3136
+ contactPersonUuid: e.string()
3137
+ }),
3138
+ query: e.optional(e.never())
3139
+ }), hc = e.void(), gc = e.object({
3140
+ body: e.optional(e.never()),
3141
+ path: e.object({
3142
+ businessUuid: e.string(),
3143
+ contactPersonUuid: e.string()
3144
+ }),
3145
+ query: e.optional(e.never())
3146
+ }), _c = e.void(), vc = e.object({
3147
+ body: e.optional(e.never()),
3148
+ path: e.optional(e.never()),
3149
+ query: e.object({ filter: da })
3150
+ }), yc = e.array(ya);
3151
+ e.object({
3152
+ body: ua,
3153
+ path: e.optional(e.never()),
3154
+ query: e.optional(e.never())
3155
+ });
3156
+ var bc = e.object({
3157
+ body: e.optional(e.never()),
3158
+ path: e.object({ individualUuid: e.string() }),
3159
+ query: e.optional(e.never())
3160
+ }), xc = Sa, Sc = e.object({
3161
+ body: xa,
3162
+ path: e.object({ individualUuid: e.string() }),
3163
+ query: e.optional(e.never())
3164
+ }), Cc = e.void();
3165
+ e.object({
3166
+ body: Ca,
3167
+ path: e.optional(e.never()),
3168
+ query: e.optional(e.never())
3169
+ }), e.object({
3170
+ body: e.optional(e.never()),
3171
+ path: e.optional(e.never()),
3172
+ query: e.object({
3173
+ pagination: e.optional(x),
3174
+ search: e.string()
3175
+ })
3176
+ }), e.object({
3177
+ body: wa,
3178
+ path: e.optional(e.never()),
3179
+ query: e.optional(e.never())
3180
+ }), e.object({
3181
+ body: Ta,
3182
+ path: e.optional(e.never()),
3183
+ query: e.optional(e.never())
3184
+ }), e.object({
3185
+ body: Ea,
3186
+ path: e.optional(e.never()),
3187
+ query: e.optional(e.never())
3188
+ }), e.object({
3189
+ body: Da,
3190
+ path: e.optional(e.never()),
3191
+ query: e.optional(e.never())
3192
+ }), e.object({
3193
+ body: e.optional(e.never()),
3194
+ path: e.optional(e.never()),
3195
+ query: e.object({
3196
+ pagination: e.optional(x),
3197
+ filter: e.optional(ja),
3198
+ search: e.string()
3199
+ })
3200
+ }), e.object({
3201
+ body: Oa,
3202
+ path: e.optional(e.never()),
3203
+ query: e.optional(e.never())
3204
+ }), e.object({
3205
+ body: za,
3206
+ path: e.object({ uuid: e.string() }),
3207
+ query: e.optional(e.never())
3208
+ });
3209
+ var wc = e.object({
3210
+ body: e.optional(e.never()),
3211
+ path: e.optional(e.never()),
3212
+ query: e.optional(e.never())
3213
+ }), Tc = Ha, Ec = e.object({
3214
+ body: e.optional(e.never()),
3215
+ path: e.object({ boardColumnUuid: e.string() }),
3216
+ query: e.optional(e.object({ triggerTypes: e.optional(e.array(P)) }))
3217
+ }), Dc = Ka, Oc = e.object({
3218
+ body: e.optional(e.never()),
3219
+ path: e.optional(e.never()),
3220
+ query: e.optional(e.object({
3221
+ pagination: e.optional(x),
3222
+ filter: e.optional(oo)
3223
+ }))
3224
+ }), kc = uo, Ac = e.object({
3225
+ body: Ja,
3226
+ path: e.optional(e.never()),
3227
+ query: e.optional(e.never())
3228
+ }), jc = Ya, Mc = e.object({
3229
+ body: e.optional(e.never()),
3230
+ path: e.object({ dealUuid: e.string() }),
3231
+ query: e.optional(e.never())
3232
+ }), Nc = ao, Pc = e.object({
3233
+ body: Xa,
3234
+ path: e.object({ dealUuid: e.string() }),
3235
+ query: e.optional(e.never())
3236
+ }), Fc = e.void();
3237
+ e.object({
3238
+ body: Za,
3239
+ path: e.object({ dealUuid: e.string() }),
3240
+ query: e.optional(e.never())
3241
+ }), e.void();
3242
+ var Ic = e.object({
3243
+ body: $a,
3244
+ path: e.object({ dealUuid: e.string() }),
3245
+ query: e.optional(e.never())
3246
+ }), Lc = e.void(), Rc = e.object({
3247
+ body: fo,
3248
+ path: e.object({ dealUuid: e.string() }),
3249
+ query: e.optional(e.never())
3250
+ }), zc = po, Bc = e.object({
3251
+ body: e.optional(e.never()),
3252
+ path: e.object({
3253
+ dealUuid: e.string(),
3254
+ contactPersonUuid: e.string()
3255
+ }),
3256
+ query: e.optional(e.never())
3257
+ }), Vc = e.void(), Hc = e.object({
3258
+ body: mo,
3259
+ path: e.object({ dealUuid: e.string() }),
3260
+ query: e.optional(e.never())
3261
+ }), Uc = e.void(), Wc = e.object({
3262
+ body: e.optional(e.never()),
3263
+ path: e.object({
3264
+ dealUuid: e.string(),
3265
+ contactPersonUuid: e.string()
3266
+ }),
3267
+ query: e.optional(e.never())
3268
+ }), Gc = go, Kc = e.object({
3269
+ body: ho,
3270
+ path: e.object({
3271
+ dealUuid: e.string(),
3272
+ contactPersonUuid: e.string()
3273
+ }),
3274
+ query: e.optional(e.never())
3275
+ }), qc = e.void();
3276
+ e.object({
3277
+ body: _o,
3278
+ path: e.optional(e.never()),
3279
+ query: e.optional(e.never())
3280
+ }), e.void();
3281
+ var Jc = e.object({
3282
+ body: vo,
3283
+ path: e.object({ individualUuid: e.string() }),
3284
+ query: e.optional(e.never())
3285
+ });
3286
+ e.object({
3287
+ body: e.optional(e.never()),
3288
+ path: e.optional(e.never()),
3289
+ query: e.optional(e.never())
3290
+ }), e.object({
3291
+ body: Gr,
3292
+ path: e.optional(e.never()),
3293
+ query: e.optional(e.never())
3294
+ }), e.void();
3295
+ var Yc = e.object({
3296
+ body: e.optional(e.never()),
3297
+ path: e.optional(e.never()),
3298
+ query: e.optional(e.object({ pagination: e.optional(x) }))
3299
+ }), Xc = bo;
3300
+ e.object({
3301
+ body: Do,
3302
+ path: e.optional(e.never()),
3303
+ query: e.optional(e.never())
3304
+ });
3305
+ var Zc = e.object({
3306
+ body: e.optional(e.never()),
3307
+ path: e.object({ mailTemplateUuid: e.string() }),
3308
+ query: e.optional(e.never())
3309
+ }), Qc = Co, $c = e.object({
3310
+ body: ko,
3311
+ path: e.object({ mailTemplateUuid: e.string() }),
3312
+ query: e.optional(e.never())
3313
+ }), el = e.void(), tl = e.object({
3314
+ body: e.optional(e.never()),
3315
+ path: e.object({ mailTemplateKey: e.string() }),
3316
+ query: e.optional(e.never())
3317
+ }), nl = Co, rl = e.object({
3318
+ body: e.optional(e.never()),
3319
+ path: e.optional(e.never()),
3320
+ query: e.optional(e.object({
3321
+ pagination: e.optional(x),
3322
+ filter: e.optional(Fo)
3323
+ }))
3324
+ }), il = Vo, al = e.object({
3325
+ body: Mo,
3326
+ path: e.optional(e.never()),
3327
+ query: e.optional(e.never())
3328
+ }), ol = Po;
3329
+ e.object({
3330
+ body: e.optional(e.never()),
3331
+ path: e.optional(e.never()),
3332
+ query: e.optional(e.object({
3333
+ filter: e.optional(Ho),
3334
+ pagination: e.optional(Wo)
3335
+ }))
3336
+ });
3337
+ //#endregion
3338
+ //#region src/client/core/bodySerializer.gen.ts
3339
+ var sl = { bodySerializer: (e) => JSON.stringify(e, (e, t) => typeof t == "bigint" ? t.toString() : t) };
3340
+ Object.entries({
3341
+ $body_: "body",
3342
+ $headers_: "headers",
3343
+ $path_: "path",
3344
+ $query_: "query"
3345
+ });
3346
+ //#endregion
3347
+ //#region src/client/core/serverSentEvents.gen.ts
3348
+ var cl = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r, responseValidator: i, sseDefaultRetryDelay: a, sseMaxRetryAttempts: o, sseMaxRetryDelay: s, sseSleepFn: c, url: l, ...u }) => {
3349
+ let d, f = c ?? ((e) => new Promise((t) => setTimeout(t, e)));
3350
+ return { stream: async function* () {
3351
+ let c = a ?? 3e3, p = 0, m = u.signal ?? new AbortController().signal;
3352
+ for (; !m.aborted;) {
3353
+ p++;
3354
+ let a = u.headers instanceof Headers ? u.headers : new Headers(u.headers);
3355
+ d !== void 0 && a.set("Last-Event-ID", d);
3356
+ try {
3357
+ let t = {
3358
+ redirect: "follow",
3359
+ ...u,
3360
+ body: u.serializedBody,
3361
+ headers: a,
3362
+ signal: m
3363
+ }, o = new Request(l, t);
3364
+ e && (o = await e(l, t));
3365
+ let s = await (u.fetch ?? globalThis.fetch)(o);
3366
+ if (!s.ok) throw Error(`SSE failed: ${s.status} ${s.statusText}`);
3367
+ if (!s.body) throw Error("No body in SSE response");
3368
+ let f = s.body.pipeThrough(new TextDecoderStream()).getReader(), p = "", h = () => {
3369
+ try {
3370
+ f.cancel();
3371
+ } catch {}
3372
+ };
3373
+ m.addEventListener("abort", h);
3374
+ try {
3375
+ for (;;) {
3376
+ let { done: e, value: t } = await f.read();
3377
+ if (e) break;
3378
+ p += t;
3379
+ let a = p.split("\n\n");
3380
+ p = a.pop() ?? "";
3381
+ for (let e of a) {
3382
+ let t = e.split("\n"), a = [], o;
3383
+ for (let e of t) if (e.startsWith("data:")) a.push(e.replace(/^data:\s*/, ""));
3384
+ else if (e.startsWith("event:")) o = e.replace(/^event:\s*/, "");
3385
+ else if (e.startsWith("id:")) d = e.replace(/^id:\s*/, "");
3386
+ else if (e.startsWith("retry:")) {
3387
+ let t = Number.parseInt(e.replace(/^retry:\s*/, ""), 10);
3388
+ Number.isNaN(t) || (c = t);
3389
+ }
3390
+ let s, l = !1;
3391
+ if (a.length) {
3392
+ let e = a.join("\n");
3393
+ try {
3394
+ s = JSON.parse(e), l = !0;
3395
+ } catch {
3396
+ s = e;
3397
+ }
3398
+ }
3399
+ l && (i && await i(s), r && (s = await r(s))), n?.({
3400
+ data: s,
3401
+ event: o,
3402
+ id: d,
3403
+ retry: c
3404
+ }), a.length && (yield s);
3405
+ }
3406
+ }
3407
+ } finally {
3408
+ m.removeEventListener("abort", h), f.releaseLock();
3409
+ }
3410
+ break;
3411
+ } catch (e) {
3412
+ if (t?.(e), o !== void 0 && p >= o) break;
3413
+ await f(Math.min(c * 2 ** (p - 1), s ?? 3e4));
3414
+ }
3415
+ }
3416
+ }() };
3417
+ }, ll = async (e, t) => {
3418
+ let n = typeof t == "function" ? await t(e) : t;
3419
+ if (n) return e.scheme === "bearer" ? `Bearer ${n}` : e.scheme === "basic" ? `Basic ${btoa(n)}` : n;
3420
+ }, ul = (e) => {
3421
+ switch (e) {
3422
+ case "label": return ".";
3423
+ case "matrix": return ";";
3424
+ case "simple": return ",";
3425
+ default: return "&";
3426
+ }
3427
+ }, dl = (e) => {
3428
+ switch (e) {
3429
+ case "form": return ",";
3430
+ case "pipeDelimited": return "|";
3431
+ case "spaceDelimited": return "%20";
3432
+ default: return ",";
3433
+ }
3434
+ }, fl = (e) => {
3435
+ switch (e) {
3436
+ case "label": return ".";
3437
+ case "matrix": return ";";
3438
+ case "simple": return ",";
3439
+ default: return "&";
3440
+ }
3441
+ }, pl = ({ allowReserved: e, explode: t, name: n, style: r, value: i }) => {
3442
+ if (!t) {
3443
+ let t = (e ? i : i.map((e) => encodeURIComponent(e))).join(dl(r));
3444
+ switch (r) {
3445
+ case "label": return `.${t}`;
3446
+ case "matrix": return `;${n}=${t}`;
3447
+ case "simple": return t;
3448
+ default: return `${n}=${t}`;
3449
+ }
3450
+ }
3451
+ let a = ul(r), o = i.map((t) => r === "label" || r === "simple" ? e ? t : encodeURIComponent(t) : X({
3452
+ allowReserved: e,
3453
+ name: n,
3454
+ value: t
3455
+ })).join(a);
3456
+ return r === "label" || r === "matrix" ? a + o : o;
3457
+ }, X = ({ allowReserved: e, name: t, value: n }) => {
3458
+ if (n == null) return "";
3459
+ if (typeof n == "object") throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");
3460
+ return `${t}=${e ? n : encodeURIComponent(n)}`;
3461
+ }, ml = ({ allowReserved: e, explode: t, name: n, style: r, value: i, valueOnly: a }) => {
3462
+ if (i instanceof Date) return a ? i.toISOString() : `${n}=${i.toISOString()}`;
3463
+ if (r !== "deepObject" && !t) {
3464
+ let t = [];
3465
+ Object.entries(i).forEach(([n, r]) => {
3466
+ t = [
3467
+ ...t,
3468
+ n,
3469
+ e ? r : encodeURIComponent(r)
3470
+ ];
3471
+ });
3472
+ let a = t.join(",");
3473
+ switch (r) {
3474
+ case "form": return `${n}=${a}`;
3475
+ case "label": return `.${a}`;
3476
+ case "matrix": return `;${n}=${a}`;
3477
+ default: return a;
3478
+ }
3479
+ }
3480
+ let o = fl(r), s = Object.entries(i).map(([t, i]) => X({
3481
+ allowReserved: e,
3482
+ name: r === "deepObject" ? `${n}[${t}]` : t,
3483
+ value: i
3484
+ })).join(o);
3485
+ return r === "label" || r === "matrix" ? o + s : s;
3486
+ }, hl = /\{[^{}]+\}/g, gl = ({ path: e, url: t }) => {
3487
+ let n = t, r = t.match(hl);
3488
+ if (r) for (let t of r) {
3489
+ let r = !1, i = t.substring(1, t.length - 1), a = "simple";
3490
+ i.endsWith("*") && (r = !0, i = i.substring(0, i.length - 1)), i.startsWith(".") ? (i = i.substring(1), a = "label") : i.startsWith(";") && (i = i.substring(1), a = "matrix");
3491
+ let o = e[i];
3492
+ if (o == null) continue;
3493
+ if (Array.isArray(o)) {
3494
+ n = n.replace(t, pl({
3495
+ explode: r,
3496
+ name: i,
3497
+ style: a,
3498
+ value: o
3499
+ }));
3500
+ continue;
3501
+ }
3502
+ if (typeof o == "object") {
3503
+ n = n.replace(t, ml({
3504
+ explode: r,
3505
+ name: i,
3506
+ style: a,
3507
+ value: o,
3508
+ valueOnly: !0
3509
+ }));
3510
+ continue;
3511
+ }
3512
+ if (a === "matrix") {
3513
+ n = n.replace(t, `;${X({
3514
+ name: i,
3515
+ value: o
3516
+ })}`);
3517
+ continue;
3518
+ }
3519
+ let s = encodeURIComponent(a === "label" ? `.${o}` : o);
3520
+ n = n.replace(t, s);
3521
+ }
3522
+ return n;
3523
+ }, _l = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
3524
+ let a = i.startsWith("/") ? i : `/${i}`, o = (e ?? "") + a;
3525
+ t && (o = gl({
3526
+ path: t,
3527
+ url: o
3528
+ }));
3529
+ let s = n ? r(n) : "";
3530
+ return s.startsWith("?") && (s = s.substring(1)), s && (o += `?${s}`), o;
3531
+ }, vl = ({ allowReserved: e, array: t, object: n } = {}) => (r) => {
3532
+ let i = [];
3533
+ if (r && typeof r == "object") for (let a in r) {
3534
+ let o = r[a];
3535
+ if (o != null) if (Array.isArray(o)) {
3536
+ let n = pl({
3537
+ allowReserved: e,
3538
+ explode: !0,
3539
+ name: a,
3540
+ style: "form",
3541
+ value: o,
3542
+ ...t
3543
+ });
3544
+ n && i.push(n);
3545
+ } else if (typeof o == "object") {
3546
+ let t = ml({
3547
+ allowReserved: e,
3548
+ explode: !0,
3549
+ name: a,
3550
+ style: "deepObject",
3551
+ value: o,
3552
+ ...n
3553
+ });
3554
+ t && i.push(t);
3555
+ } else {
3556
+ let t = X({
3557
+ allowReserved: e,
3558
+ name: a,
3559
+ value: o
3560
+ });
3561
+ t && i.push(t);
3562
+ }
3563
+ }
3564
+ return i.join("&");
3565
+ }, yl = (e) => {
3566
+ if (!e) return "stream";
3567
+ let t = e.split(";")[0]?.trim();
3568
+ if (t) {
3569
+ if (t.startsWith("application/json") || t.endsWith("+json")) return "json";
3570
+ if (t === "multipart/form-data") return "formData";
3571
+ if ([
3572
+ "application/",
3573
+ "audio/",
3574
+ "image/",
3575
+ "video/"
3576
+ ].some((e) => t.startsWith(e))) return "blob";
3577
+ if (t.startsWith("text/")) return "text";
3578
+ }
3579
+ }, bl = (e, t) => t ? !!(e.headers.has(t) || e.query?.[t] || e.headers.get("Cookie")?.includes(`${t}=`)) : !1, xl = async ({ security: e, ...t }) => {
3580
+ for (let n of e) {
3581
+ if (bl(t, n.name)) continue;
3582
+ let e = await ll(n, t.auth);
3583
+ if (!e) continue;
3584
+ let r = n.name ?? "Authorization";
3585
+ switch (n.in) {
3586
+ case "query":
3587
+ t.query ||= {}, t.query[r] = e;
3588
+ break;
3589
+ case "cookie":
3590
+ t.headers.append("Cookie", `${r}=${e}`);
3591
+ break;
3592
+ default:
3593
+ t.headers.set(r, e);
3594
+ break;
3595
+ }
3596
+ }
3597
+ }, Sl = (e) => _l({
3598
+ baseUrl: e.baseUrl,
3599
+ path: e.path,
3600
+ query: e.query,
3601
+ querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : vl(e.querySerializer),
3602
+ url: e.url
3603
+ }), Z = (e, t) => {
3604
+ let n = {
3605
+ ...e,
3606
+ ...t
3607
+ };
3608
+ return n.baseUrl?.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = Cl(e.headers, t.headers), n;
3609
+ }, Cl = (...e) => {
3610
+ let t = new Headers();
3611
+ for (let n of e) {
3612
+ if (!n || typeof n != "object") continue;
3613
+ let e = n instanceof Headers ? n.entries() : Object.entries(n);
3614
+ for (let [n, r] of e) if (r === null) t.delete(n);
3615
+ else if (Array.isArray(r)) for (let e of r) t.append(n, e);
3616
+ else r !== void 0 && t.set(n, typeof r == "object" ? JSON.stringify(r) : r);
3617
+ }
3618
+ return t;
3619
+ }, Q = class {
3620
+ _fns;
3621
+ constructor() {
3622
+ this._fns = [];
3623
+ }
3624
+ clear() {
3625
+ this._fns = [];
3626
+ }
3627
+ getInterceptorIndex(e) {
3628
+ return typeof e == "number" ? this._fns[e] ? e : -1 : this._fns.indexOf(e);
3629
+ }
3630
+ exists(e) {
3631
+ let t = this.getInterceptorIndex(e);
3632
+ return !!this._fns[t];
3633
+ }
3634
+ eject(e) {
3635
+ let t = this.getInterceptorIndex(e);
3636
+ this._fns[t] && (this._fns[t] = null);
3637
+ }
3638
+ update(e, t) {
3639
+ let n = this.getInterceptorIndex(e);
3640
+ return this._fns[n] ? (this._fns[n] = t, e) : !1;
3641
+ }
3642
+ use(e) {
3643
+ return this._fns = [...this._fns, e], this._fns.length - 1;
3644
+ }
3645
+ }, wl = () => ({
3646
+ error: new Q(),
3647
+ request: new Q(),
3648
+ response: new Q()
3649
+ }), Tl = vl({
3650
+ allowReserved: !1,
3651
+ array: {
3652
+ explode: !0,
3653
+ style: "form"
3654
+ },
3655
+ object: {
3656
+ explode: !0,
3657
+ style: "deepObject"
3658
+ }
3659
+ }), El = { "Content-Type": "application/json" }, Dl = (e = {}) => ({
3660
+ ...sl,
3661
+ headers: El,
3662
+ parseAs: "auto",
3663
+ querySerializer: Tl,
3664
+ ...e
3665
+ }), $ = ((e = {}) => {
3666
+ let t = Z(Dl(), e), n = () => ({ ...t }), r = (e) => (t = Z(t, e), n()), i = wl(), a = async (e) => {
3667
+ let n = {
3668
+ ...t,
3669
+ ...e,
3670
+ fetch: e.fetch ?? t.fetch ?? globalThis.fetch,
3671
+ headers: Cl(t.headers, e.headers),
3672
+ serializedBody: void 0
3673
+ };
3674
+ return n.security && await xl({
3675
+ ...n,
3676
+ security: n.security
3677
+ }), n.requestValidator && await n.requestValidator(n), n.body && n.bodySerializer && (n.serializedBody = n.bodySerializer(n.body)), (n.serializedBody === void 0 || n.serializedBody === "") && n.headers.delete("Content-Type"), {
3678
+ opts: n,
3679
+ url: Sl(n)
3680
+ };
3681
+ }, o = async (e) => {
3682
+ let { opts: t, url: n } = await a(e), r = {
3683
+ redirect: "follow",
3684
+ ...t,
3685
+ body: t.serializedBody
3686
+ }, o = new Request(n, r);
3687
+ for (let e of i.request._fns) e && (o = await e(o, t));
3688
+ let s = t.fetch, c = await s(o);
3689
+ for (let e of i.response._fns) e && (c = await e(c, o, t));
3690
+ let l = {
3691
+ request: o,
3692
+ response: c
3693
+ };
3694
+ if (c.ok) {
3695
+ let e = (t.parseAs === "auto" ? yl(c.headers.get("Content-Type")) : t.parseAs) ?? "json";
3696
+ if (c.status === 204 || c.headers.get("Content-Length") === "0") {
3697
+ let n;
3698
+ switch (e) {
3699
+ case "arrayBuffer":
3700
+ case "blob":
3701
+ case "text":
3702
+ n = await c[e]();
3703
+ break;
3704
+ case "formData":
3705
+ n = new FormData();
3706
+ break;
3707
+ case "stream":
3708
+ n = c.body;
3709
+ break;
3710
+ default:
3711
+ n = {};
3712
+ break;
3713
+ }
3714
+ return t.responseStyle === "data" ? n : {
3715
+ data: n,
3716
+ ...l
3717
+ };
3718
+ }
3719
+ let n;
3720
+ switch (e) {
3721
+ case "arrayBuffer":
3722
+ case "blob":
3723
+ case "formData":
3724
+ case "json":
3725
+ case "text":
3726
+ n = await c[e]();
3727
+ break;
3728
+ case "stream": return t.responseStyle === "data" ? c.body : {
3729
+ data: c.body,
3730
+ ...l
3731
+ };
3732
+ }
3733
+ return e === "json" && (t.responseValidator && await t.responseValidator(n), t.responseTransformer && (n = await t.responseTransformer(n))), t.responseStyle === "data" ? n : {
3734
+ data: n,
3735
+ ...l
3736
+ };
3737
+ }
3738
+ let u = await c.text(), d;
3739
+ try {
3740
+ d = JSON.parse(u);
3741
+ } catch {}
3742
+ let f = d ?? u, p = f;
3743
+ for (let e of i.error._fns) e && (p = await e(f, c, o, t));
3744
+ if (p ||= {}, t.throwOnError) throw p;
3745
+ return t.responseStyle === "data" ? void 0 : {
3746
+ error: p,
3747
+ ...l
3748
+ };
3749
+ }, s = (e) => (t) => o({
3750
+ ...t,
3751
+ method: e
3752
+ }), c = (e) => async (t) => {
3753
+ let { opts: n, url: r } = await a(t);
3754
+ return cl({
3755
+ ...n,
3756
+ body: n.body,
3757
+ headers: n.headers,
3758
+ method: e,
3759
+ onRequest: async (e, t) => {
3760
+ let r = new Request(e, t);
3761
+ for (let e of i.request._fns) e && (r = await e(r, n));
3762
+ return r;
3763
+ },
3764
+ url: r
3765
+ });
3766
+ };
3767
+ return {
3768
+ buildUrl: Sl,
3769
+ connect: s("CONNECT"),
3770
+ delete: s("DELETE"),
3771
+ get: s("GET"),
3772
+ getConfig: n,
3773
+ head: s("HEAD"),
3774
+ interceptors: i,
3775
+ options: s("OPTIONS"),
3776
+ patch: s("PATCH"),
3777
+ post: s("POST"),
3778
+ put: s("PUT"),
3779
+ request: o,
3780
+ setConfig: r,
3781
+ sse: {
3782
+ connect: c("CONNECT"),
3783
+ delete: c("DELETE"),
3784
+ get: c("GET"),
3785
+ head: c("HEAD"),
3786
+ options: c("OPTIONS"),
3787
+ patch: c("PATCH"),
3788
+ post: c("POST"),
3789
+ put: c("PUT"),
3790
+ trace: c("TRACE")
3791
+ },
3792
+ trace: s("TRACE")
3793
+ };
3794
+ })(Dl({ throwOnError: !0 })), Ol = (e) => (e?.client ?? $).get({
3795
+ requestValidator: async (e) => await es.parseAsync(e),
3796
+ responseValidator: async (e) => await ts.parseAsync(e),
3797
+ url: "/api/v1/tenant-configs",
3798
+ ...e
3799
+ }), kl = (e) => (e?.client ?? $).get({
3800
+ requestValidator: async (e) => await ns.parseAsync(e),
3801
+ responseValidator: async (e) => await rs.parseAsync(e),
3802
+ url: "/api/v1/recent-entities",
3803
+ ...e
3804
+ }), Al = (e) => (e?.client ?? $).get({
3805
+ requestValidator: async (e) => await is.parseAsync(e),
3806
+ responseValidator: async (e) => await as.parseAsync(e),
3807
+ url: "/api/v1/users",
3808
+ ...e
3809
+ }), jl = (e) => (e.client ?? $).post({
3810
+ requestValidator: async (e) => await os.parseAsync(e),
3811
+ responseValidator: async (e) => await ss.parseAsync(e),
3812
+ url: "/api/v1/files",
3813
+ ...e,
3814
+ headers: {
3815
+ "Content-Type": "application/json",
3816
+ ...e.headers
3817
+ }
3818
+ }), Ml = (e) => (e.client ?? $).post({
3819
+ requestValidator: async (e) => await cs.parseAsync(e),
3820
+ responseValidator: async (e) => await ls.parseAsync(e),
3821
+ url: "/api/v2/files/{file}/confirm-upload",
3822
+ ...e,
3823
+ headers: {
3824
+ "Content-Type": "application/json",
3825
+ ...e.headers
3826
+ }
3827
+ }), Nl = (e) => (e.client ?? $).get({
3828
+ requestValidator: async (e) => await us.parseAsync(e),
3829
+ responseValidator: async (e) => await ds.parseAsync(e),
3830
+ url: "/api/v1/search",
3831
+ ...e
3832
+ }), Pl = (e) => (e?.client ?? $).get({
3833
+ requestValidator: async (e) => await fs.parseAsync(e),
3834
+ responseValidator: async (e) => await ps.parseAsync(e),
3835
+ url: "/api/v1/individuals",
3836
+ ...e
3837
+ }), Fl = (e) => (e.client ?? $).post({
3838
+ requestValidator: async (e) => await ms.parseAsync(e),
3839
+ responseValidator: async (e) => await hs.parseAsync(e),
3840
+ url: "/api/v1/individuals",
3841
+ ...e,
3842
+ headers: {
3843
+ "Content-Type": "application/json",
3844
+ ...e.headers
3845
+ }
3846
+ }), Il = (e) => (e.client ?? $).get({
3847
+ requestValidator: async (e) => await gs.parseAsync(e),
3848
+ responseValidator: async (e) => await _s.parseAsync(e),
3849
+ url: "/api/v1/individuals/{individualUuid}",
3850
+ ...e
3851
+ }), Ll = (e) => (e.client ?? $).patch({
3852
+ requestValidator: async (e) => await vs.parseAsync(e),
3853
+ responseValidator: async (e) => await ys.parseAsync(e),
3854
+ url: "/api/v1/individuals/{individualUuid}",
3855
+ ...e,
3856
+ headers: {
3857
+ "Content-Type": "application/json",
3858
+ ...e.headers
3859
+ }
3860
+ }), Rl = (e) => (e?.client ?? $).get({
3861
+ requestValidator: async (e) => await bs.parseAsync(e),
3862
+ responseValidator: async (e) => await xs.parseAsync(e),
3863
+ url: "/api/v1/individuals/statistics",
3864
+ ...e
3865
+ }), zl = (e) => (e.client ?? $).get({
3866
+ requestValidator: async (e) => await Ss.parseAsync(e),
3867
+ responseValidator: async (e) => await Cs.parseAsync(e),
3868
+ url: "/api/v1/individual/{individualUuid}/activity-log",
3869
+ ...e
3870
+ }), Bl = (e) => (e?.client ?? $).get({
3871
+ requestValidator: async (e) => await ws.parseAsync(e),
3872
+ responseValidator: async (e) => await Ts.parseAsync(e),
3873
+ url: "/api/v1/businesses",
3874
+ ...e
3875
+ }), Vl = (e) => (e.client ?? $).post({
3876
+ requestValidator: async (e) => await Es.parseAsync(e),
3877
+ responseValidator: async (e) => await Ds.parseAsync(e),
3878
+ url: "/api/v1/businesses",
3879
+ ...e,
3880
+ headers: {
3881
+ "Content-Type": "application/json",
3882
+ ...e.headers
3883
+ }
3884
+ }), Hl = (e) => (e.client ?? $).get({
3885
+ requestValidator: async (e) => await Os.parseAsync(e),
3886
+ responseValidator: async (e) => await ks.parseAsync(e),
3887
+ url: "/api/v1/businesses/{businessUuid}",
3888
+ ...e
3889
+ }), Ul = (e) => (e.client ?? $).patch({
3890
+ requestValidator: async (e) => await As.parseAsync(e),
3891
+ responseValidator: async (e) => await js.parseAsync(e),
3892
+ url: "/api/v1/businesses/{businessUuid}",
3893
+ ...e,
3894
+ headers: {
3895
+ "Content-Type": "application/json",
3896
+ ...e.headers
3897
+ }
3898
+ }), Wl = (e) => (e?.client ?? $).get({
3899
+ requestValidator: async (e) => await Ms.parseAsync(e),
3900
+ responseValidator: async (e) => await Ns.parseAsync(e),
3901
+ url: "/api/v1/businesses/statistics",
3902
+ ...e
3903
+ }), Gl = (e) => (e.client ?? $).get({
3904
+ requestValidator: async (e) => await Ps.parseAsync(e),
3905
+ responseValidator: async (e) => await Fs.parseAsync(e),
3906
+ url: "/api/v1/businesses/{businessUuid}/billing-information",
3907
+ ...e
3908
+ }), Kl = (e) => (e.client ?? $).post({
3909
+ requestValidator: async (e) => await Is.parseAsync(e),
3910
+ responseValidator: async (e) => await Ls.parseAsync(e),
3911
+ url: "/api/v1/businesses/{businessUuid}/billing-information",
3912
+ ...e,
3913
+ headers: {
3914
+ "Content-Type": "application/json",
3915
+ ...e.headers
3916
+ }
3917
+ }), ql = (e) => (e.client ?? $).patch({
3918
+ requestValidator: async (e) => await Rs.parseAsync(e),
3919
+ responseValidator: async (e) => await zs.parseAsync(e),
3920
+ url: "/api/v1/businesses/{businessUuid}/link-as-child/{childUuid}",
3921
+ ...e
3922
+ }), Jl = (e) => (e.client ?? $).get({
3923
+ requestValidator: async (e) => await Bs.parseAsync(e),
3924
+ responseValidator: async (e) => await Vs.parseAsync(e),
3925
+ url: "/api/v1/business/{businessUuid}/activity-log",
3926
+ ...e
3927
+ }), Yl = (e) => (e.client ?? $).post({
3928
+ requestValidator: async (e) => await Hs.parseAsync(e),
3929
+ responseValidator: async (e) => await Us.parseAsync(e),
3930
+ url: "/api/v1/notes",
3931
+ ...e,
3932
+ headers: {
3933
+ "Content-Type": "application/json",
3934
+ ...e.headers
3935
+ }
3936
+ }), Xl = (e) => (e.client ?? $).delete({
3937
+ requestValidator: async (e) => await Ws.parseAsync(e),
3938
+ url: "/api/v1/notes/{uuid}",
3939
+ ...e
3940
+ }), Zl = (e) => (e.client ?? $).put({
3941
+ requestValidator: async (e) => await Gs.parseAsync(e),
3942
+ url: "/api/v1/notes/{uuid}",
3943
+ ...e,
3944
+ headers: {
3945
+ "Content-Type": "application/json",
3946
+ ...e.headers
3947
+ }
3948
+ }), Ql = (e) => (e.client ?? $).get({
3949
+ requestValidator: async (e) => await Ks.parseAsync(e),
3950
+ responseValidator: async (e) => await qs.parseAsync(e),
3951
+ url: "/api/v1/notes/{businessUuid}/business",
3952
+ ...e
3953
+ }), $l = (e) => (e.client ?? $).get({
3954
+ requestValidator: async (e) => await Js.parseAsync(e),
3955
+ responseValidator: async (e) => await Ys.parseAsync(e),
3956
+ url: "/api/v1/notes/{individualUuid}/individual",
3957
+ ...e
3958
+ }), eu = (e) => (e.client ?? $).get({
3959
+ requestValidator: async (e) => await Xs.parseAsync(e),
3960
+ responseValidator: async (e) => await Zs.parseAsync(e),
3961
+ url: "/api/v1/notes/{dealUuid}/deal",
3962
+ ...e
3963
+ }), tu = (e) => (e.client ?? $).post({
3964
+ requestValidator: async (e) => await Qs.parseAsync(e),
3965
+ responseValidator: async (e) => await $s.parseAsync(e),
3966
+ url: "/api/v1/individuals/{individualUuid}/contact-persons/link",
3967
+ ...e,
3968
+ headers: {
3969
+ "Content-Type": "application/json",
3970
+ ...e.headers
3971
+ }
3972
+ }), nu = (e) => (e.client ?? $).post({
3973
+ requestValidator: async (e) => await ec.parseAsync(e),
3974
+ responseValidator: async (e) => await tc.parseAsync(e),
3975
+ url: "/api/v1/individuals/{individualUuid}/contact-persons/unlink",
3976
+ ...e,
3977
+ headers: {
3978
+ "Content-Type": "application/json",
3979
+ ...e.headers
3980
+ }
3981
+ }), ru = (e) => (e.client ?? $).get({
3982
+ requestValidator: async (e) => await nc.parseAsync(e),
3983
+ responseValidator: async (e) => await rc.parseAsync(e),
3984
+ url: "/api/v1/individuals/{individualUuid}/contact-persons/{contactPersonUuid}",
3985
+ ...e
3986
+ }), iu = (e) => (e.client ?? $).patch({
3987
+ requestValidator: async (e) => await ic.parseAsync(e),
3988
+ responseValidator: async (e) => await ac.parseAsync(e),
3989
+ url: "/api/v1/individuals/{individualUuid}/contact-persons/{contactPersonUuid}",
3990
+ ...e,
3991
+ headers: {
3992
+ "Content-Type": "application/json",
3993
+ ...e.headers
3994
+ }
3995
+ }), au = (e) => (e.client ?? $).patch({
3996
+ requestValidator: async (e) => await oc.parseAsync(e),
3997
+ responseValidator: async (e) => await sc.parseAsync(e),
3998
+ url: "/api/v1/individuals/{individualUuid}/contact-persons/{contactPersonUuid}/primary",
3999
+ ...e
4000
+ }), ou = (e) => (e.client ?? $).post({
4001
+ requestValidator: async (e) => await cc.parseAsync(e),
4002
+ responseValidator: async (e) => await lc.parseAsync(e),
4003
+ url: "/api/v1/businesses/{businessUuid}/contact-persons/link",
4004
+ ...e,
4005
+ headers: {
4006
+ "Content-Type": "application/json",
4007
+ ...e.headers
4008
+ }
4009
+ }), su = (e) => (e.client ?? $).post({
4010
+ requestValidator: async (e) => await uc.parseAsync(e),
4011
+ responseValidator: async (e) => await dc.parseAsync(e),
4012
+ url: "/api/v1/businesses/{businessUuid}/contact-persons/unlink",
4013
+ ...e,
4014
+ headers: {
4015
+ "Content-Type": "application/json",
4016
+ ...e.headers
4017
+ }
4018
+ }), cu = (e) => (e.client ?? $).get({
4019
+ requestValidator: async (e) => await fc.parseAsync(e),
4020
+ responseValidator: async (e) => await pc.parseAsync(e),
4021
+ url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}",
4022
+ ...e
4023
+ }), lu = (e) => (e.client ?? $).patch({
4024
+ requestValidator: async (e) => await mc.parseAsync(e),
4025
+ responseValidator: async (e) => await hc.parseAsync(e),
4026
+ url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}",
4027
+ ...e,
4028
+ headers: {
4029
+ "Content-Type": "application/json",
4030
+ ...e.headers
4031
+ }
4032
+ }), uu = (e) => (e.client ?? $).patch({
4033
+ requestValidator: async (e) => await gc.parseAsync(e),
4034
+ responseValidator: async (e) => await _c.parseAsync(e),
4035
+ url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}/primary",
4036
+ ...e
4037
+ }), du = (e) => (e.client ?? $).get({
4038
+ requestValidator: async (e) => await vc.parseAsync(e),
4039
+ responseValidator: async (e) => await yc.parseAsync(e),
4040
+ url: "/api/v1/custom-field-definitions",
4041
+ ...e
4042
+ }), fu = (e) => (e.client ?? $).get({
4043
+ requestValidator: async (e) => await bc.parseAsync(e),
4044
+ responseValidator: async (e) => await xc.parseAsync(e),
4045
+ url: "/api/v1/individuals/{individualUuid}/billing-information",
4046
+ ...e
4047
+ }), pu = (e) => (e.client ?? $).post({
4048
+ requestValidator: async (e) => await Sc.parseAsync(e),
4049
+ responseValidator: async (e) => await Cc.parseAsync(e),
4050
+ url: "/api/v1/individuals/{individualUuid}/billing-information",
4051
+ ...e,
4052
+ headers: {
4053
+ "Content-Type": "application/json",
4054
+ ...e.headers
4055
+ }
4056
+ }), mu = (e) => (e?.client ?? $).get({
4057
+ requestValidator: async (e) => await wc.parseAsync(e),
4058
+ responseValidator: async (e) => await Tc.parseAsync(e),
4059
+ url: "/api/v1/board/columns",
4060
+ ...e
4061
+ }), hu = (e) => (e.client ?? $).get({
4062
+ requestValidator: async (e) => await Ec.parseAsync(e),
4063
+ responseValidator: async (e) => await Dc.parseAsync(e),
4064
+ url: "/api/v1/board/columns/{boardColumnUuid}/transitions",
4065
+ ...e
4066
+ }), gu = (e) => (e?.client ?? $).get({
4067
+ requestValidator: async (e) => await Oc.parseAsync(e),
4068
+ responseValidator: async (e) => await kc.parseAsync(e),
4069
+ url: "/api/v1/deals",
4070
+ ...e
4071
+ }), _u = (e) => (e.client ?? $).post({
4072
+ requestValidator: async (e) => await Ac.parseAsync(e),
4073
+ responseValidator: async (e) => await jc.parseAsync(e),
4074
+ url: "/api/v1/deals",
4075
+ ...e,
4076
+ headers: {
4077
+ "Content-Type": "application/json",
4078
+ ...e.headers
4079
+ }
4080
+ }), vu = (e) => (e.client ?? $).get({
4081
+ requestValidator: async (e) => await Mc.parseAsync(e),
4082
+ responseValidator: async (e) => await Nc.parseAsync(e),
4083
+ url: "/api/v1/deals/{dealUuid}",
4084
+ ...e
4085
+ }), yu = (e) => (e.client ?? $).patch({
4086
+ requestValidator: async (e) => await Pc.parseAsync(e),
4087
+ responseValidator: async (e) => await Fc.parseAsync(e),
4088
+ url: "/api/v1/deals/{dealUuid}",
4089
+ ...e,
4090
+ headers: {
4091
+ "Content-Type": "application/json",
4092
+ ...e.headers
4093
+ }
4094
+ }), bu = (e) => (e.client ?? $).patch({
4095
+ requestValidator: async (e) => await Ic.parseAsync(e),
4096
+ responseValidator: async (e) => await Lc.parseAsync(e),
4097
+ url: "/api/v1/deals/{dealUuid}/column",
4098
+ ...e,
4099
+ headers: {
4100
+ "Content-Type": "application/json",
4101
+ ...e.headers
4102
+ }
4103
+ }), xu = (e) => (e.client ?? $).post({
4104
+ requestValidator: async (e) => await Rc.parseAsync(e),
4105
+ responseValidator: async (e) => await zc.parseAsync(e),
4106
+ url: "/api/v1/deals/{dealUuid}/contact-persons/link",
4107
+ ...e,
4108
+ headers: {
4109
+ "Content-Type": "application/json",
4110
+ ...e.headers
4111
+ }
4112
+ }), Su = (e) => (e.client ?? $).patch({
4113
+ requestValidator: async (e) => await Bc.parseAsync(e),
4114
+ responseValidator: async (e) => await Vc.parseAsync(e),
4115
+ url: "/api/v1/deals/{dealUuid}/contact-persons/{contactPersonUuid}/primary",
4116
+ ...e
4117
+ }), Cu = (e) => (e.client ?? $).post({
4118
+ requestValidator: async (e) => await Hc.parseAsync(e),
4119
+ responseValidator: async (e) => await Uc.parseAsync(e),
4120
+ url: "/api/v1/deals/{dealUuid}/contact-persons/unlink",
4121
+ ...e,
4122
+ headers: {
4123
+ "Content-Type": "application/json",
4124
+ ...e.headers
4125
+ }
4126
+ }), wu = (e) => (e.client ?? $).get({
4127
+ requestValidator: async (e) => await Wc.parseAsync(e),
4128
+ responseValidator: async (e) => await Gc.parseAsync(e),
4129
+ url: "/api/v1/deals/{dealUuid}/contact-persons/{contactPersonUuid}",
4130
+ ...e
4131
+ }), Tu = (e) => (e.client ?? $).patch({
4132
+ requestValidator: async (e) => await Kc.parseAsync(e),
4133
+ responseValidator: async (e) => await qc.parseAsync(e),
4134
+ url: "/api/v1/deals/{dealUuid}/contact-persons/{contactPersonUuid}",
4135
+ ...e,
4136
+ headers: {
4137
+ "Content-Type": "application/json",
4138
+ ...e.headers
4139
+ }
4140
+ }), Eu = (e) => (e.client ?? $).post({
4141
+ requestValidator: async (e) => await Jc.parseAsync(e),
4142
+ url: "/api/v1/customer-zone/individuals/{individualUuid}/grant-user",
4143
+ ...e,
4144
+ headers: {
4145
+ "Content-Type": "application/json",
4146
+ ...e.headers
4147
+ }
4148
+ }), Du = (e) => (e?.client ?? $).get({
4149
+ requestValidator: async (e) => await Yc.parseAsync(e),
4150
+ responseValidator: async (e) => await Xc.parseAsync(e),
4151
+ url: "/api/v1/mail-templates",
4152
+ ...e
4153
+ }), Ou = (e) => (e.client ?? $).get({
4154
+ requestValidator: async (e) => await Zc.parseAsync(e),
4155
+ responseValidator: async (e) => await Qc.parseAsync(e),
4156
+ url: "/api/v1/mail-templates/{mailTemplateUuid}",
4157
+ ...e
4158
+ }), ku = (e) => (e.client ?? $).patch({
4159
+ requestValidator: async (e) => await $c.parseAsync(e),
4160
+ responseValidator: async (e) => await el.parseAsync(e),
4161
+ url: "/api/v1/mail-templates/{mailTemplateUuid}",
4162
+ ...e,
4163
+ headers: {
4164
+ "Content-Type": "application/json",
4165
+ ...e.headers
4166
+ }
4167
+ }), Au = (e) => (e.client ?? $).get({
4168
+ requestValidator: async (e) => await tl.parseAsync(e),
4169
+ responseValidator: async (e) => await nl.parseAsync(e),
4170
+ url: "/api/v1/mail-templates/key/{mailTemplateKey}",
4171
+ ...e
4172
+ }), ju = (e) => (e?.client ?? $).get({
4173
+ requestValidator: async (e) => await rl.parseAsync(e),
4174
+ responseValidator: async (e) => await il.parseAsync(e),
4175
+ url: "/api/v1/mail",
4176
+ ...e
4177
+ }), Mu = (e) => (e.client ?? $).post({
4178
+ requestValidator: async (e) => await al.parseAsync(e),
4179
+ responseValidator: async (e) => await ol.parseAsync(e),
4180
+ url: "/api/v1/mail",
4181
+ ...e,
4182
+ headers: {
4183
+ "Content-Type": "application/json",
4184
+ ...e.headers
4185
+ }
4186
+ });
4187
+ //#endregion
4188
+ export { ju as $, ku as A, Wl as B, nu as C, yu as D, Tu as E, Gl as F, eu as G, wu as H, cu as I, ru as J, zl as K, Hl as L, Kl as M, pu as N, iu as O, Jl as P, Rl as Q, Bl as R, Cu as S, Ul as T, vu as U, du as V, gu as W, Pl as X, Il as Y, $l as Z, Su as _, a as _t, Fl as a, Al as at, bu as b, Eu as c, c as ct, ou as d, o as dt, Au as et, xu as f, u as ft, uu as g, t as gt, mu as h, l as ht, jl as i, Ol as it, Zl as j, Ll as k, Xl as l, f as lt, hu as m, i as mt, Vl as n, Du as nt, Mu as o, $ as ot, tu as p, n as pt, fu as q, _u as r, kl as rt, Yl as s, r as st, Ml as t, Ou as tt, ql as u, d as ut, au as v, s as vt, lu as w, su as x, Nl as y, Ql as z };