@wisemen/wise-crm-web 0.2.1 → 0.2.2

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 (66) hide show
  1. package/README.md +1037 -0
  2. package/dist/BusinessDetailSidebarProvider-BQMRbGHQ.js +2083 -0
  3. package/dist/{BusinessDetailView-BbfUJk4T.js → BusinessDetailView-BxGxWOme.js} +5 -5
  4. package/dist/{CrmDetailHeaderCard-oRgvRuFD.js → CrmDetailHeaderCard-CCNJpMAK.js} +68 -67
  5. package/dist/{CrmDetailView-B0ZN_Fnu.js → CrmDetailView-ozCpuaX2.js} +14 -14
  6. package/dist/{DealCommunicationTabView-e7NkRy9r.js → DealCommunicationTabView-Df5EeolN.js} +2 -2
  7. package/dist/{DealDetailView-BPIatW_2.js → DealDetailView-DdWHqaBr.js} +163 -163
  8. package/dist/{DealExternalAttachment-D1PznE3V.js → DealExternalAttachment-qHdh4yMI.js} +1 -1
  9. package/dist/{DealSendMailDialog-BK_lUIx6.js → DealSendMailDialog-BaYcWZP-.js} +65 -69
  10. package/dist/Error-BArv9rNb.js +12650 -0
  11. package/dist/IndividualDetailSidebarProvider-BXZH951l.js +608 -0
  12. package/dist/{IndividualDetailView-Cdodb8Ii.js → IndividualDetailView-DfYS31-e.js} +5 -5
  13. package/dist/LinkBrokenIcon-CTlqmapl.js +17 -0
  14. package/dist/api/mutations/deal/dealCreate.mutation.d.ts +1 -1
  15. package/dist/api/mutations/deal/dealUpdate.mutation.d.ts +3 -3
  16. package/dist/api/mutations/mail-template/mailTemplateUpdate.mutation.d.ts +1 -1
  17. package/dist/client/apiErrorCode.gen.d.ts +2 -2
  18. package/dist/client/sdk.gen.d.ts +20 -17
  19. package/dist/client/types.gen.d.ts +1057 -1376
  20. package/dist/client/zod.gen.d.ts +15453 -17750
  21. package/dist/{client-BP13IBbl.js → client-pCaNxE3C.js} +748 -1047
  22. package/dist/components/crm-detail/CrmDetailHeaderCard.vue.d.ts +2 -0
  23. package/dist/deal/components/DealSendMailForm.vue.d.ts +2 -2
  24. package/dist/icons/LinkBrokenIcon.vue.d.ts +3 -0
  25. package/dist/icons/icon.d.ts +1 -0
  26. package/dist/index.d.ts +4 -0
  27. package/dist/index.js +448 -453
  28. package/dist/models/brand-colors/brandColor.model.d.ts +14 -0
  29. package/dist/models/brand-colors/brandColor.transformer.d.ts +5 -0
  30. package/dist/models/conent-locale/contentLocaleEnum.model.d.ts +3 -3
  31. package/dist/models/deal/create/dealCreateForm.model.d.ts +2 -2
  32. package/dist/models/deal/detail/dealDetail.model.d.ts +2 -2
  33. package/dist/models/deal/index/dealIndex.model.d.ts +2 -2
  34. package/dist/models/deal/update/dealUpdateForm.model.d.ts +2 -2
  35. package/dist/models/mail-template/detail/mailTemplateDetail.model.d.ts +2 -2
  36. package/dist/models/mail-template/update/mailTemplateUpdateForm.model.d.ts +3 -3
  37. package/dist/models/phone-number/phoneNumberForm.model.d.ts +3 -0
  38. package/dist/models/tenant-config/tenantConfig.model.d.ts +3 -0
  39. package/dist/plugins/i18n.plugin.d.ts +4 -0
  40. package/dist/style.css +1 -1
  41. package/dist/testing/factories/business.factory.d.ts +2 -1
  42. package/dist/testing.js +23 -2
  43. package/package.json +2 -1
  44. package/dist/BusinessDetailSidebarProvider-BrpWqjRs.js +0 -2081
  45. package/dist/Error-iBGGWZtH.js +0 -3695
  46. package/dist/IndividualDetailSidebarProvider-DUVi7XF0.js +0 -606
  47. /package/dist/{LinkExternalIcon-B9Qg55Oa.js → LinkExternalIcon-LOVtSqBT.js} +0 -0
  48. /package/dist/{LinkIcon-DCW5zjbQ.js → LinkIcon-DqBbVrvs.js} +0 -0
  49. /package/dist/{LocationPinIcon-DBc-wt2e.js → LocationPinIcon-Cp-wRgk2.js} +0 -0
  50. /package/dist/{MailIcon-Do4a7S2W.js → MailIcon-CnTrB1k3.js} +0 -0
  51. /package/dist/{MobilePhoneIcon-DSXyKwjd.js → MobilePhoneIcon-B747hmpS.js} +0 -0
  52. /package/dist/{NumberedListIcon-DUaSJSYu.js → NumberedListIcon-amJxDaaD.js} +0 -0
  53. /package/dist/{PhoneIcon-C8Cv1IiW.js → PhoneIcon-94MYVL85.js} +0 -0
  54. /package/dist/{RefreshIcon-CKZgHIZU.js → RefreshIcon-DRe3coBc.js} +0 -0
  55. /package/dist/{SendIcon-B-sQkQ3W.js → SendIcon-MYItp1xI.js} +0 -0
  56. /package/dist/{SettingsIcon-DzP-IQS5.js → SettingsIcon-C0qTAv0w.js} +0 -0
  57. /package/dist/{StarOutlineIcon-c0VfXRdQ.js → StarOutlineIcon-CiFLgepk.js} +0 -0
  58. /package/dist/{StarYellowIcon-CH0CnlSU.js → StarYellowIcon-C0v_XGwI.js} +0 -0
  59. /package/dist/{ThreeDotsIcon-C6PCFq5J.js → ThreeDotsIcon-lujOTU3G.js} +0 -0
  60. /package/dist/{TimeLineMarkerIcon-6B6SbwTN.js → TimeLineMarkerIcon-C4LfErbc.js} +0 -0
  61. /package/dist/{TrashIcon-BTPSVviz.js → TrashIcon-v4L9SEK_.js} +0 -0
  62. /package/dist/{UploadCloudIcon-1aMW5OJq.js → UploadCloudIcon-j1-1Rvqb.js} +0 -0
  63. /package/dist/{UserCircleIcon-D-19dc-2.js → UserCircleIcon-BjUt_2C4.js} +0 -0
  64. /package/dist/{UserIcon-D1H8TGlg.js → UserIcon-Cb2jFKLr.js} +0 -0
  65. /package/dist/{VerticalDotsIcon-DmPza4Jd.js → VerticalDotsIcon-Y3m6tlQ2.js} +0 -0
  66. /package/dist/{WalletIcon-BlI3D3v-.js → WalletIcon-pPsKbzmh.js} +0 -0
@@ -1,22 +1,22 @@
1
1
  import { z } from "zod";
2
- let MimeType = /* @__PURE__ */ function(u) {
3
- return u.APPLICATION_PDF = "application/pdf", u.APPLICATION_MSWORD = "application/msword", u.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", u.APPLICATION_VND_MS_POWERPOINT = "application/vnd.ms-powerpoint", u.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = "application/vnd.openxmlformats-officedocument.presentationml.presentation", u.TEXT_PLAIN = "text/plain", u.TEXT_HTML = "text/html", u.TEXT_CSV = "text/csv", u.IMAGE_JPEG = "image/jpeg", u.IMAGE_PNG = "image/png", u.IMAGE_TIFF = "image/tiff", u.IMAGE_BMP = "image/bmp", u.IMAGE_HEIC = "image/heic", u.IMAGE_WEBP = "image/webp", u.IMAGE_GIF = "image/gif", u.APPLICATION_OCTET_STREAM = "application/octet-stream", u;
4
- }({}), Locale = /* @__PURE__ */ function(u) {
2
+ let Locale = /* @__PURE__ */ function(u) {
5
3
  return u.EN_US = "en-US", u.NL_BE = "nl-BE", u.FR_BE = "fr-BE", u;
4
+ }({}), EntityColor = /* @__PURE__ */ function(u) {
5
+ return u.MOSS = "moss", u.GREEN_LIGHT = "green-light", u.GREEN = "green", u.TEAL = "teal", u.CYAN = "cyan", u.BLUE_LIGHT = "blue-light", u.BLUE = "blue", u.BLUE_DARK = "blue-dark", u.INDIGO = "indigo", u.VIOLET = "violet", u.PURPLE = "purple", u.FUCHSIA = "fuchsia", u.PINK = "pink", u.ROSE = "rose", u.ORANGE_DARK = "orange-dark", u.ORANGE = "orange", u.YELLOW = "yellow", u.ERROR = "error", u.WARNING = "warning", u.SUCCESS = "success", u;
6
+ }({}), BillingInformationRequirement = /* @__PURE__ */ function(u) {
7
+ return u.EMAIL_ONLY = "EMAIL_ONLY", u.ADDRESS_ONLY = "ADDRESS_ONLY", u.EMAIL_AND_ADDRESS = "EMAIL_AND_ADDRESS", u.EMAIL_OR_ADDRESS = "EMAIL_OR_ADDRESS", u;
8
+ }({}), EntityType = /* @__PURE__ */ function(u) {
9
+ return u.INDIVIDUAL = "individual", u.BUSINESS = "business", u;
10
+ }({}), MimeType = /* @__PURE__ */ function(u) {
11
+ return u.APPLICATION_PDF = "application/pdf", u.APPLICATION_MSWORD = "application/msword", u.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", u.APPLICATION_VND_MS_POWERPOINT = "application/vnd.ms-powerpoint", u.APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = "application/vnd.openxmlformats-officedocument.presentationml.presentation", u.TEXT_PLAIN = "text/plain", u.TEXT_HTML = "text/html", u.TEXT_CSV = "text/csv", u.IMAGE_JPEG = "image/jpeg", u.IMAGE_PNG = "image/png", u.IMAGE_TIFF = "image/tiff", u.IMAGE_BMP = "image/bmp", u.IMAGE_HEIC = "image/heic", u.IMAGE_WEBP = "image/webp", u.IMAGE_GIF = "image/gif", u.APPLICATION_OCTET_STREAM = "application/octet-stream", u;
12
+ }({}), BoardColumnTransitionTriggerType = /* @__PURE__ */ function(u) {
13
+ return u.MANUAL = "manual", u.EMAIL = "email", u;
6
14
  }({}), CountryCode = /* @__PURE__ */ function(u) {
7
15
  return u.AF = "AF", u.AL = "AL", u.DZ = "DZ", u.AD = "AD", u.AO = "AO", u.AG = "AG", u.AR = "AR", u.AM = "AM", u.AU = "AU", u.AT = "AT", u.AZ = "AZ", u.BS = "BS", u.BH = "BH", u.BD = "BD", u.BB = "BB", u.BY = "BY", u.BE = "BE", u.BZ = "BZ", u.BJ = "BJ", u.BT = "BT", u.BO = "BO", u.BA = "BA", u.BW = "BW", u.BR = "BR", u.BN = "BN", u.BG = "BG", u.BF = "BF", u.BI = "BI", u.KH = "KH", u.CM = "CM", u.CA = "CA", u.CV = "CV", u.CF = "CF", u.TD = "TD", u.CL = "CL", u.CN = "CN", u.CO = "CO", u.KM = "KM", u.CG = "CG", u.CR = "CR", u.HR = "HR", u.CU = "CU", u.CY = "CY", u.CZ = "CZ", u.DK = "DK", u.DJ = "DJ", u.DM = "DM", u.DO = "DO", u.EC = "EC", u.EG = "EG", u.SV = "SV", u.GQ = "GQ", u.ER = "ER", u.EE = "EE", u.ET = "ET", u.FJ = "FJ", u.FI = "FI", u.FR = "FR", u.GA = "GA", u.GM = "GM", u.GE = "GE", u.DE = "DE", u.GH = "GH", u.GR = "GR", u.GD = "GD", u.GT = "GT", u.GN = "GN", u.GW = "GW", u.GY = "GY", u.HT = "HT", u.HN = "HN", u.HU = "HU", u.IS = "IS", u.IN = "IN", u.ID = "ID", u.IR = "IR", u.IQ = "IQ", u.IE = "IE", u.IL = "IL", u.IT = "IT", u.JM = "JM", u.JP = "JP", u.JO = "JO", u.KZ = "KZ", u.KE = "KE", u.KI = "KI", u.KP = "KP", u.KR = "KR", u.KW = "KW", u.KG = "KG", u.LA = "LA", u.LV = "LV", u.LB = "LB", u.LS = "LS", u.LR = "LR", u.LY = "LY", u.LI = "LI", u.LT = "LT", u.LU = "LU", u.MG = "MG", u.MW = "MW", u.MY = "MY", u.MV = "MV", u.ML = "ML", u.MT = "MT", u.MH = "MH", u.MR = "MR", u.MU = "MU", u.MX = "MX", u.FM = "FM", u.MD = "MD", u.MC = "MC", u.MN = "MN", u.ME = "ME", u.MA = "MA", u.MZ = "MZ", u.MM = "MM", u.NA = "NA", u.NR = "NR", u.NP = "NP", u.NL = "NL", u.NZ = "NZ", u.NI = "NI", u.NE = "NE", u.NG = "NG", u.XI = "XI", u.MK = "MK", u.NO = "NO", u.OM = "OM", u.PK = "PK", u.PW = "PW", u.PA = "PA", u.PG = "PG", u.PY = "PY", u.PE = "PE", u.PH = "PH", u.PL = "PL", u.PT = "PT", u.QA = "QA", u.RO = "RO", u.RU = "RU", u.RW = "RW", u.KN = "KN", u.LC = "LC", u.VC = "VC", u.WS = "WS", u.SM = "SM", u.ST = "ST", u.SA = "SA", u.SN = "SN", u.RS = "RS", u.SC = "SC", u.SL = "SL", u.SG = "SG", u.SK = "SK", u.SI = "SI", u.SB = "SB", u.SO = "SO", u.ZA = "ZA", u.SS = "SS", u.ES = "ES", u.LK = "LK", u.SD = "SD", u.SR = "SR", u.SE = "SE", u.CH = "CH", u.SY = "SY", u.TW = "TW", u.TJ = "TJ", u.TZ = "TZ", u.TH = "TH", u.TL = "TL", u.TG = "TG", u.TO = "TO", u.TT = "TT", u.TN = "TN", u.TR = "TR", u.TM = "TM", u.TV = "TV", u.UG = "UG", u.UA = "UA", u.AE = "AE", u.GB = "GB", u.US = "US", u.UY = "UY", u.UZ = "UZ", u.VU = "VU", u.VA = "VA", u.VE = "VE", u.VN = "VN", u.YE = "YE", u.ZM = "ZM", u.ZW = "ZW", u;
8
- }({}), ContentLocale = /* @__PURE__ */ function(u) {
16
+ }({}), SdkContentLocale = /* @__PURE__ */ function(u) {
9
17
  return u.NL_BE = "nl-BE", u.EN_US = "en-US", u.FR_BE = "fr-BE", u.DE_DE = "de-DE", u;
10
- }({}), BoardColumnTransitionTriggerType = /* @__PURE__ */ function(u) {
11
- return u.MANUAL = "manual", u.EMAIL = "email", u;
12
18
  }({}), GlobalSearchCollectionName = /* @__PURE__ */ function(u) {
13
19
  return u.USER = "user", u.BUSINESS = "business", u.INDIVIDUAL = "individual", u;
14
- }({}), EntityType = /* @__PURE__ */ function(u) {
15
- return u.INDIVIDUAL = "individual", u.BUSINESS = "business", u;
16
- }({}), EntityColor = /* @__PURE__ */ function(u) {
17
- return u.MOSS = "moss", u.GREEN_LIGHT = "green-light", u.GREEN = "green", u.TEAL = "teal", u.CYAN = "cyan", u.BLUE_LIGHT = "blue-light", u.BLUE = "blue", u.BLUE_DARK = "blue-dark", u.INDIGO = "indigo", u.VIOLET = "violet", u.PURPLE = "purple", u.FUCHSIA = "fuchsia", u.PINK = "pink", u.ROSE = "rose", u.ORANGE_DARK = "orange-dark", u.ORANGE = "orange", u.YELLOW = "yellow", u.ERROR = "error", u.WARNING = "warning", u.SUCCESS = "success", u;
18
- }({}), BillingInformationRequirement = /* @__PURE__ */ function(u) {
19
- return u.EMAIL_ONLY = "EMAIL_ONLY", u.ADDRESS_ONLY = "ADDRESS_ONLY", u.EMAIL_AND_ADDRESS = "EMAIL_AND_ADDRESS", u.EMAIL_OR_ADDRESS = "EMAIL_OR_ADDRESS", u;
20
20
  }({}), DealSource = /* @__PURE__ */ function(u) {
21
21
  return u.MAIL = "mail", u.WEBSITE = "website", u.PHONE = "phone", u.TENDER = "tender", u;
22
22
  }({}), ClientType = /* @__PURE__ */ function(u) {
@@ -24,7 +24,231 @@ let MimeType = /* @__PURE__ */ function(u) {
24
24
  }({}), ClientStatus = /* @__PURE__ */ function(u) {
25
25
  return u.LEAD = "lead", u.CUSTOMER = "customer", u.INACTIVE = "inactive", u.ARCHIVED = "archived", u.CONTACT = "contact", u;
26
26
  }({});
27
- const zTypesenseCollectionName = z.enum([
27
+ const zPermission = z.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(",")), zViewPermissionIndexPermissionResponse = z.object({
28
+ name: z.string(),
29
+ key: zPermission,
30
+ description: z.string()
31
+ }), zViewPermissionIndexGroupResponse = z.object({
32
+ name: z.string(),
33
+ permissions: z.array(zViewPermissionIndexPermissionResponse)
34
+ });
35
+ z.object({ groups: z.array(zViewPermissionIndexGroupResponse) });
36
+ const zBrandColorsCommand = z.object({
37
+ brand25: z.string(),
38
+ brand50: z.string(),
39
+ brand100: z.string(),
40
+ brand200: z.string(),
41
+ brand300: z.string(),
42
+ brand400: z.string(),
43
+ brand500: z.string(),
44
+ brand600: z.string(),
45
+ brand700: z.string(),
46
+ brand800: z.string(),
47
+ brand900: z.string(),
48
+ brand950: z.string()
49
+ }), zLocale = z.enum([
50
+ "en-US",
51
+ "nl-BE",
52
+ "fr-BE"
53
+ ]), zLocalizedString = z.object({
54
+ language: zLocale,
55
+ value: z.string()
56
+ }), zEntityColor = z.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
+ ]), zBillingInformationRequirement = z.enum([
78
+ "EMAIL_ONLY",
79
+ "ADDRESS_ONLY",
80
+ "EMAIL_AND_ADDRESS",
81
+ "EMAIL_OR_ADDRESS"
82
+ ]), zBusinessConfigCommand = z.object({
83
+ name: z.array(zLocalizedString),
84
+ entityColor: zEntityColor,
85
+ viesValidation: z.boolean(),
86
+ requireIndividualOnCreate: z.boolean(),
87
+ billingInformationRequirement: zBillingInformationRequirement
88
+ }), zIndividualConfigCommand = z.object({
89
+ name: z.array(zLocalizedString),
90
+ entityColor: zEntityColor,
91
+ billingInformationRequirement: zBillingInformationRequirement
92
+ }), zCreateTenantCommand = z.object({
93
+ name: z.string(),
94
+ slug: z.string(),
95
+ domain: z.string(),
96
+ oidcIssuer: z.string(),
97
+ oidcClientId: z.string(),
98
+ oidcOrganizationId: z.string(),
99
+ nativeClientId: z.string(),
100
+ czOidcIssuer: z.string(),
101
+ czOidcAudience: z.string(),
102
+ czOidcOrganizationId: z.string(),
103
+ czNativeClientId: z.string(),
104
+ brandColors: zBrandColorsCommand,
105
+ businessConfig: zBusinessConfigCommand,
106
+ individualConfig: zIndividualConfigCommand
107
+ });
108
+ z.object({
109
+ uuid: z.uuid(),
110
+ name: z.string(),
111
+ slug: z.string(),
112
+ oidcIssuer: z.string(),
113
+ oidcClientId: z.string()
114
+ });
115
+ const zUpdateTenantCommand = z.object({
116
+ name: z.string(),
117
+ slug: z.string(),
118
+ domain: z.union([z.string(), z.null()]),
119
+ oidcIssuer: z.optional(z.string()),
120
+ oidcClientId: z.optional(z.string()),
121
+ oidcOrganizationId: z.optional(z.string()),
122
+ nativeClientId: z.optional(z.string()),
123
+ czOidcIssuer: z.optional(z.string()),
124
+ czOidcAudience: z.optional(z.string()),
125
+ czOidcOrganizationId: z.optional(z.string()),
126
+ czNativeClientId: z.optional(z.string()),
127
+ brandColors: zBrandColorsCommand,
128
+ businessConfig: zBusinessConfigCommand,
129
+ individualConfig: zIndividualConfigCommand
130
+ }), zEntityType = z.enum(["individual", "business"]), zTenantEntityConfigCommand = z.object({
131
+ entityType: zEntityType,
132
+ entityName: z.array(zLocalizedString),
133
+ entityColor: zEntityColor
134
+ }), zUpdateTenantEntitiesConfigCommand = z.object({ entities: z.array(zTenantEntityConfigCommand) }), zTenantCompanywebLocale = z.enum([
135
+ "NL",
136
+ "FR",
137
+ "EN"
138
+ ]), zTenantCompanywebConfigCommand = z.object({
139
+ login: z.string(),
140
+ password: z.string(),
141
+ secret: z.string(),
142
+ language: zTenantCompanywebLocale,
143
+ integrator: z.string()
144
+ }), zTenantBusinessConfigCommand = z.object({
145
+ viesValidation: z.boolean(),
146
+ requireIndividualOnCreate: z.boolean(),
147
+ companyweb: z.union([zTenantCompanywebConfigCommand, z.null()])
148
+ }), zUpdateTenantBusinessConfigCommand = z.object({ businessConfig: zTenantBusinessConfigCommand }), zTenantBillingConfigCommand = z.object({
149
+ individualBillingInformationRequirement: zBillingInformationRequirement,
150
+ businessBillingInformationRequirement: zBillingInformationRequirement
151
+ }), zUpdateTenantBillingConfigCommand = z.object({ billingConfig: zTenantBillingConfigCommand });
152
+ z.object({
153
+ uuid: z.uuid(),
154
+ createdAt: z.iso.datetime(),
155
+ updatedAt: z.iso.datetime(),
156
+ name: z.string(),
157
+ slug: z.string(),
158
+ domain: z.union([z.string(), z.null()])
159
+ });
160
+ const zPaginatedOffsetQuery = z.object({
161
+ limit: z.number().gte(1).lte(100),
162
+ offset: z.number().gte(0)
163
+ }), zTenantResponse = z.object({
164
+ uuid: z.uuid(),
165
+ createdAt: z.iso.datetime(),
166
+ updatedAt: z.iso.datetime(),
167
+ name: z.string(),
168
+ slug: z.string(),
169
+ domain: z.union([z.string(), z.null()])
170
+ }), zPaginatedOffsetResponseMeta = z.object({
171
+ total: z.number(),
172
+ offset: z.number(),
173
+ limit: z.number()
174
+ });
175
+ z.object({
176
+ items: z.array(zTenantResponse),
177
+ meta: zPaginatedOffsetResponseMeta
178
+ });
179
+ const zTenantConfigEntities = z.object({
180
+ entityType: zEntityType,
181
+ entityName: z.string(),
182
+ entityColor: zEntityColor
183
+ }), zTenantConfigBusiness = z.object({
184
+ viesValidation: z.boolean(),
185
+ requireIndividualOnCreate: z.boolean()
186
+ }), zTenantConfigBilling = z.object({
187
+ individualBillingInformationRequirement: zBillingInformationRequirement,
188
+ businessBillingInformationRequirement: zBillingInformationRequirement
189
+ }), zBusinessStatus = z.enum([
190
+ "lead",
191
+ "customer",
192
+ "inactive",
193
+ "archived"
194
+ ]), zIndividualStatus = z.enum([
195
+ "contact",
196
+ "lead",
197
+ "customer",
198
+ "inactive"
199
+ ]), zTenantDealConfigResponse = z.object({
200
+ enableBusinessDeals: z.boolean(),
201
+ enableIndividualDeals: z.boolean(),
202
+ creatableBusinessStatuses: z.array(zBusinessStatus),
203
+ creatableIndividualStatuses: z.array(zIndividualStatus)
204
+ }), zBrandColorsResponse = z.object({
205
+ brand25: z.string(),
206
+ brand50: z.string(),
207
+ brand100: z.string(),
208
+ brand200: z.string(),
209
+ brand300: z.string(),
210
+ brand400: z.string(),
211
+ brand500: z.string(),
212
+ brand600: z.string(),
213
+ brand700: z.string(),
214
+ brand800: z.string(),
215
+ brand900: z.string(),
216
+ brand950: z.string()
217
+ }), zViewTenantConfigDetailResponse = z.object({
218
+ uuid: z.uuid(),
219
+ name: z.string(),
220
+ entities: z.array(zTenantConfigEntities),
221
+ businessConfig: zTenantConfigBusiness,
222
+ billingConfig: zTenantConfigBilling,
223
+ dealConfig: zTenantDealConfigResponse,
224
+ brandColors: zBrandColorsResponse
225
+ }), zRecentEntityType = z.enum([
226
+ "individual",
227
+ "business",
228
+ "deal"
229
+ ]), zViewRecentEntitiesFilterQuery = z.object({ types: z.optional(z.array(zRecentEntityType)) }), zViewRecentEntitiesResponseItem = z.object({
230
+ type: z.enum([
231
+ "individual",
232
+ "business",
233
+ "deal"
234
+ ]),
235
+ uuid: z.uuid(),
236
+ name: z.string(),
237
+ createdAt: z.iso.datetime()
238
+ }), zViewRecentEntitiesResponse = z.object({
239
+ items: z.array(zViewRecentEntitiesResponseItem),
240
+ meta: zPaginatedOffsetResponseMeta
241
+ });
242
+ z.object({
243
+ detail: z.optional(z.string()),
244
+ status: z.enum(["409"]),
245
+ code: z.enum(["user_connected_to_other_tenant"])
246
+ }), z.object({
247
+ detail: z.optional(z.string()),
248
+ status: z.enum(["404"]),
249
+ code: z.enum(["user_not_found"])
250
+ });
251
+ const zAssignUserAsAdminCommand = z.object({ userId: z.string() }), zTypesenseCollectionName = z.enum([
28
252
  "user",
29
253
  "location",
30
254
  "individual",
@@ -40,11 +264,24 @@ z.object({ collections: z.array(z.enum([
40
264
  "cbe-enterprise",
41
265
  "cbe-establishment"
42
266
  ])) }), z.object({
43
- detail: z.optional(z.string()),
44
- status: z.enum(["404"]),
45
- code: z.enum(["user_not_found"])
267
+ baseUrl: z.string(),
268
+ clientId: z.string(),
269
+ organizationID: z.string(),
270
+ nativeClientId: z.string(),
271
+ brandColors: zBrandColorsResponse
272
+ }), z.object({
273
+ baseUrl: z.string(),
274
+ clientId: z.string(),
275
+ organizationID: z.string(),
276
+ nativeClientId: z.string(),
277
+ brandColors: zBrandColorsResponse
278
+ }), z.object({
279
+ environment: z.string(),
280
+ commit: z.string(),
281
+ version: z.string(),
282
+ timestamp: z.iso.datetime()
46
283
  });
47
- const zSetUserRolesCommand = z.object({ roleUuids: z.array(z.uuid()) }), zPermission = z.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(",")), zViewRoleDetailResponse = z.object({
284
+ const zSetUserRolesCommand = z.object({ roleUuids: z.array(z.uuid()) }), zViewRoleDetailResponse = z.object({
48
285
  uuid: z.uuid(),
49
286
  createdAt: z.iso.datetime(),
50
287
  updatedAt: z.iso.datetime(),
@@ -68,10 +305,7 @@ z.object({
68
305
  tenantUuid: z.union([z.uuid(), z.null()]),
69
306
  roles: z.array(zViewRoleDetailResponse)
70
307
  });
71
- const zPaginatedOffsetQuery = z.object({
72
- limit: z.number().gte(1).lte(100),
73
- offset: z.number().gte(0)
74
- }), zUserIndexRoleView = z.object({
308
+ const zUserIndexRoleView = z.object({
75
309
  uuid: z.uuid(),
76
310
  name: z.string()
77
311
  }), zUserIndexView = z.object({
@@ -80,55 +314,10 @@ const zPaginatedOffsetQuery = z.object({
80
314
  firstName: z.union([z.string(), z.null()]),
81
315
  lastName: z.union([z.string(), z.null()]),
82
316
  roles: z.array(zUserIndexRoleView)
83
- }), zPaginatedOffsetResponseMeta = z.object({
84
- total: z.number(),
85
- offset: z.number(),
86
- limit: z.number()
87
317
  }), zViewUserIndexResponse = z.object({
88
318
  items: z.array(zUserIndexView),
89
319
  meta: zPaginatedOffsetResponseMeta
90
- }), zViewPermissionIndexPermissionResponse = z.object({
91
- name: z.string(),
92
- key: zPermission,
93
- description: z.string()
94
- }), zViewPermissionIndexGroupResponse = z.object({
95
- name: z.string(),
96
- permissions: z.array(zViewPermissionIndexPermissionResponse)
97
- });
98
- z.object({ groups: z.array(zViewPermissionIndexGroupResponse) });
99
- const zBrandColorsResponse = z.object({
100
- brand25: z.string(),
101
- brand50: z.string(),
102
- brand100: z.string(),
103
- brand200: z.string(),
104
- brand300: z.string(),
105
- brand400: z.string(),
106
- brand500: z.string(),
107
- brand600: z.string(),
108
- brand700: z.string(),
109
- brand800: z.string(),
110
- brand900: z.string(),
111
- brand950: z.string()
112
- });
113
- z.object({
114
- baseUrl: z.string(),
115
- clientId: z.string(),
116
- organizationID: z.string(),
117
- nativeClientId: z.string(),
118
- brandColors: zBrandColorsResponse
119
- }), z.object({
120
- baseUrl: z.string(),
121
- clientId: z.string(),
122
- organizationID: z.string(),
123
- nativeClientId: z.string(),
124
- brandColors: zBrandColorsResponse
125
- }), z.object({
126
- environment: z.string(),
127
- commit: z.string(),
128
- version: z.string(),
129
- timestamp: z.iso.datetime()
130
- });
131
- const zCreateRoleCommand = z.object({ name: z.string() });
320
+ }), zCreateRoleCommand = z.object({ name: z.string() });
132
321
  z.object({ uuid: z.uuid() });
133
322
  const zClearRolePermissionsCacheCommand = z.object({ roleUuids: z.optional(z.union([z.array(z.uuid()), z.null()])) });
134
323
  z.object({
@@ -184,10 +373,6 @@ const zConfirmFileUploadCommand = z.object({ blurHash: z.union([z.string().max(1
184
373
  "light",
185
374
  "dark",
186
375
  "system"
187
- ]), zLocale = z.enum([
188
- "en-US",
189
- "nl-BE",
190
- "fr-BE"
191
376
  ]), zFontSize = z.enum([
192
377
  "smaller",
193
378
  "small",
@@ -250,71 +435,12 @@ const zTranslations = z.object({
250
435
  }), zViewDomainEventLogIndexPaginationQuery = z.object({
251
436
  limit: z.number().gte(0).lte(100),
252
437
  key: z.optional(z.union([zViewDomainEventLogIndexQueryKey, z.null()]))
253
- }), zUserCreatedEventContent = z.object({
254
- userUuid: z.uuid(),
255
- userType: z.enum([
256
- "user",
257
- "service_user",
258
- "customer"
259
- ])
260
- }), zUserCreatedDomainEventLog = z.object({
261
- uuid: z.uuid(),
262
- createdAt: z.iso.datetime(),
263
- version: z.int().gte(0),
264
- source: z.string(),
265
- userUuid: z.union([z.uuid(), z.null()]),
266
- message: z.string(),
267
- subjectType: z.union([zSubjectType, z.null()]),
268
- subjectId: z.union([z.uuid(), z.null()]),
269
- type: z.enum(["user.created"]),
270
- content: zUserCreatedEventContent
271
- }), zRoleAssignedToUserEventContent = z.object({
272
- userUuid: z.uuid(),
273
- roleUuid: z.uuid()
274
- }), zUserRoleAssignedDomainEventLog = z.object({
275
- uuid: z.uuid(),
276
- createdAt: z.iso.datetime(),
277
- version: z.int().gte(0),
278
- source: z.string(),
279
- userUuid: z.union([z.uuid(), z.null()]),
280
- message: z.string(),
281
- subjectType: z.union([zSubjectType, z.null()]),
282
- subjectId: z.union([z.uuid(), z.null()]),
283
- type: z.enum(["user.role-assigned"]),
284
- content: zRoleAssignedToUserEventContent
285
- }), zRoleCreatedEventContent = z.object({
286
- roleUuid: z.uuid(),
287
- roleName: z.string()
288
- }), zRoleCreatedDomainEventLog = z.object({
289
- uuid: z.uuid(),
290
- createdAt: z.iso.datetime(),
291
- version: z.int().gte(0),
292
- source: z.string(),
293
- userUuid: z.union([z.uuid(), z.null()]),
294
- message: z.string(),
295
- subjectType: z.union([zSubjectType, z.null()]),
296
- subjectId: z.union([z.uuid(), z.null()]),
297
- type: z.enum(["role.created"]),
298
- content: zRoleCreatedEventContent
299
- }), zRoleDeletedEventContent = z.object({
300
- roleUuid: z.uuid(),
301
- roleName: z.string()
302
- }), zRoleDeletedDomainEventLog = z.object({
303
- uuid: z.uuid(),
304
- createdAt: z.iso.datetime(),
305
- version: z.int().gte(0),
306
- source: z.string(),
307
- userUuid: z.union([z.uuid(), z.null()]),
308
- message: z.string(),
309
- subjectType: z.union([zSubjectType, z.null()]),
310
- subjectId: z.union([z.uuid(), z.null()]),
311
- type: z.enum(["role.deleted"]),
312
- content: zRoleDeletedEventContent
313
- }), zRoleRenamedEventContent = z.object({
314
- roleUuid: z.uuid(),
315
- previousName: z.string(),
316
- newName: z.string()
317
- }), zRoleRenamedDomainEventLog = z.object({
438
+ }), zBoardColumnCreatedEventContent = z.object({
439
+ boardColumnUuid: z.uuid(),
440
+ key: z.string(),
441
+ position: z.number(),
442
+ tenantUuid: z.uuid()
443
+ }), zBoardColumnCreatedDomainEventLog = z.object({
318
444
  uuid: z.uuid(),
319
445
  createdAt: z.iso.datetime(),
320
446
  version: z.int().gte(0),
@@ -323,13 +449,14 @@ const zTranslations = z.object({
323
449
  message: z.string(),
324
450
  subjectType: z.union([zSubjectType, z.null()]),
325
451
  subjectId: z.union([z.uuid(), z.null()]),
326
- type: z.enum(["role.renamed"]),
327
- content: zRoleRenamedEventContent
328
- }), zRolePermissionsUpdatedEventContent = z.object({
329
- roleUuid: z.uuid(),
330
- newPermissions: z.array(zPermission),
331
- roleName: z.string()
332
- }), zRolePermissionsUpdatedDomainEventLog = z.object({
452
+ type: z.enum(["board-column.created"]),
453
+ content: zBoardColumnCreatedEventContent
454
+ }), zBoardColumnTransitionCreatedEventContent = z.object({
455
+ boardColumnTransitionUuid: z.uuid(),
456
+ fromColumnUuid: z.uuid(),
457
+ toColumnUuid: z.uuid(),
458
+ tenantUuid: z.uuid()
459
+ }), zBoardColumnTransitionCreatedDomainEventLog = z.object({
333
460
  uuid: z.uuid(),
334
461
  createdAt: z.iso.datetime(),
335
462
  version: z.int().gte(0),
@@ -338,9 +465,14 @@ const zTranslations = z.object({
338
465
  message: z.string(),
339
466
  subjectType: z.union([zSubjectType, z.null()]),
340
467
  subjectId: z.union([z.uuid(), z.null()]),
341
- type: z.enum(["role.permissions.updated"]),
342
- content: zRolePermissionsUpdatedEventContent
343
- }), zRolePermissionsCacheClearedEventContent = z.object({ roleUuids: z.uuid() }), zRolePermissionsCacheClearedDomainEventLog = z.object({
468
+ type: z.enum(["board-column-transition.created"]),
469
+ content: zBoardColumnTransitionCreatedEventContent
470
+ }), zBoardColumnTransitionTriggerType = z.enum(["manual", "email"]), zBoardColumnTransitionTriggerCreatedEventContent = z.object({
471
+ boardColumnTransitionTriggerUuid: z.uuid(),
472
+ boardColumnTransitionUuid: z.uuid(),
473
+ triggerType: zBoardColumnTransitionTriggerType,
474
+ tenantUuid: z.uuid()
475
+ }), zBoardColumnTransitionTriggerCreatedDomainEventLog = z.object({
344
476
  uuid: z.uuid(),
345
477
  createdAt: z.iso.datetime(),
346
478
  version: z.int().gte(0),
@@ -349,13 +481,19 @@ const zTranslations = z.object({
349
481
  message: z.string(),
350
482
  subjectType: z.union([zSubjectType, z.null()]),
351
483
  subjectId: z.union([z.uuid(), z.null()]),
352
- type: z.enum(["role.permissions.cache.cleared"]),
353
- content: zRolePermissionsCacheClearedEventContent
354
- }), zUserUpdatedEventContent = z.object({
355
- userUuid: z.uuid(),
356
- firstName: z.union([z.string(), z.null()]),
357
- lastName: z.union([z.string(), z.null()])
358
- }), zUserUpdatedDomainEventLog = z.object({
484
+ type: z.enum(["board-column-transition-trigger.created"]),
485
+ content: zBoardColumnTransitionTriggerCreatedEventContent
486
+ }), zAddress = z.record(z.string(), z.unknown()), zBusinessBillingInformationUpsertedEventContent = z.object({
487
+ businessUuid: z.uuid(),
488
+ billingInformationUuid: z.uuid(),
489
+ address: z.union([zAddress, z.null()]),
490
+ invoiceEmail: z.union([z.email(), z.null()]),
491
+ invoiceCcEmails: z.array(z.email()),
492
+ reminderEmail: z.union([z.email(), z.null()]),
493
+ reminderCcEmails: z.array(z.email()),
494
+ purchaseNoteEmail: z.union([z.email(), z.null()]),
495
+ purchaseNoteCcEmails: z.array(z.email())
496
+ }), zBusinessBillingInformationUpsertedDomainEventLog = z.object({
359
497
  uuid: z.uuid(),
360
498
  createdAt: z.iso.datetime(),
361
499
  version: z.int().gte(0),
@@ -364,8 +502,8 @@ const zTranslations = z.object({
364
502
  message: z.string(),
365
503
  subjectType: z.union([zSubjectType, z.null()]),
366
504
  subjectId: z.union([z.uuid(), z.null()]),
367
- type: z.enum(["user.updated"]),
368
- content: zUserUpdatedEventContent
505
+ type: z.enum(["business.billing-information.upserted"]),
506
+ content: zBusinessBillingInformationUpsertedEventContent
369
507
  }), zLocationCreatedEventContent = z.object({ locationUuid: z.uuid() }), zLocationCreatedDomainEventLog = z.object({
370
508
  uuid: z.uuid(),
371
509
  createdAt: z.iso.datetime(),
@@ -377,164 +515,14 @@ const zTranslations = z.object({
377
515
  subjectId: z.union([z.uuid(), z.null()]),
378
516
  type: z.enum(["location.created"]),
379
517
  content: zLocationCreatedEventContent
380
- }), zLocationUpdatedEventContent = z.object({ locationUuid: z.uuid() }), zLocationUpdatedDomainEventLog = z.object({
381
- uuid: z.uuid(),
382
- createdAt: z.iso.datetime(),
383
- version: z.int().gte(0),
384
- source: z.string(),
385
- userUuid: z.union([z.uuid(), z.null()]),
386
- message: z.string(),
387
- subjectType: z.union([zSubjectType, z.null()]),
388
- subjectId: z.union([z.uuid(), z.null()]),
389
- type: z.enum(["location.updated"]),
390
- content: zLocationUpdatedEventContent
391
- }), zAddress = z.record(z.string(), z.unknown()), zIndividualCreatedDomainEventContent = z.object({
392
- individualUuid: z.uuid(),
393
- firstName: z.string(),
394
- lastName: z.string(),
395
- email: z.union([z.email(), z.null()]),
396
- phone: z.union([z.string(), z.null()]),
397
- mobilePhone: z.union([z.string(), z.null()]),
398
- address: z.union([zAddress, z.null()]),
399
- customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
400
- }), zIndividualCreatedDomainEventLog = z.object({
401
- uuid: z.uuid(),
402
- createdAt: z.iso.datetime(),
403
- version: z.int().gte(0),
404
- source: z.string(),
405
- userUuid: z.union([z.uuid(), z.null()]),
406
- message: z.string(),
407
- subjectType: z.union([zSubjectType, z.null()]),
408
- subjectId: z.union([z.uuid(), z.null()]),
409
- type: z.enum(["individual.created"]),
410
- content: zIndividualCreatedDomainEventContent
411
- }), zValueChange = z.object({
412
- key: z.string(),
413
- oldValue: z.union([
414
- z.string(),
415
- z.number(),
416
- z.boolean(),
417
- z.null()
418
- ]),
419
- newValue: z.union([
420
- z.string(),
421
- z.number(),
422
- z.boolean(),
423
- z.null()
424
- ])
425
- }), zIndividualUpdatedDomainEventContent = z.object({
426
- individualUuid: z.uuid(),
427
- firstName: z.string(),
428
- lastName: z.string(),
429
- email: z.union([z.email(), z.null()]),
430
- phone: z.union([z.string(), z.null()]),
431
- mobilePhone: z.union([z.string(), z.null()]),
432
- address: z.optional(zAddress),
433
- changes: z.array(zValueChange),
434
- customFields: z.optional(z.record(z.string(), z.unknown())),
435
- language: zLocale
436
- }), zIndividualUpdatedDomainEventLog = z.object({
437
- uuid: z.uuid(),
438
- createdAt: z.iso.datetime(),
439
- version: z.int().gte(0),
440
- source: z.string(),
441
- userUuid: z.union([z.uuid(), z.null()]),
442
- message: z.string(),
443
- subjectType: z.union([zSubjectType, z.null()]),
444
- subjectId: z.union([z.uuid(), z.null()]),
445
- type: z.enum(["individual.updated"]),
446
- content: zIndividualUpdatedDomainEventContent
447
- }), zBusinessCreatedDomainEventContent = z.object({
448
- businessUuid: z.uuid(),
449
- name: z.string(),
450
- email: z.union([z.email(), z.null()]),
451
- phone: z.union([z.string(), z.null()]),
452
- mobilePhone: z.union([z.string(), z.null()]),
453
- vatNumber: z.union([z.string(), z.null()]),
454
- companyNumber: z.union([z.string(), z.null()]),
455
- address: zAddress,
456
- customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
457
- language: zLocale
458
- }), zBusinessCreatedDomainEventLog = z.object({
459
- uuid: z.uuid(),
460
- createdAt: z.iso.datetime(),
461
- version: z.int().gte(0),
462
- source: z.string(),
463
- userUuid: z.union([z.uuid(), z.null()]),
464
- message: z.string(),
465
- subjectType: z.union([zSubjectType, z.null()]),
466
- subjectId: z.union([z.uuid(), z.null()]),
467
- type: z.enum(["business.created"]),
468
- content: zBusinessCreatedDomainEventContent
469
- }), zCountryCode = z.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(".")), zBusinessUpdatedDomainEventContent = z.object({
470
- businessUuid: z.uuid(),
471
- name: z.string(),
472
- email: z.union([z.email(), z.null()]),
473
- phone: z.union([z.string(), z.null()]),
474
- mobilePhone: z.union([z.string(), z.null()]),
475
- vatNumber: z.union([z.string(), z.null()]),
476
- vatNumberCountryCode: z.union([zCountryCode, z.null()]),
477
- companyNumber: z.union([z.string(), z.null()]),
478
- address: zAddress,
479
- changes: zValueChange,
480
- customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
481
- language: zLocale
482
- }), zBusinessUpdatedDomainEventLog = z.object({
518
+ }), zContactPersonContent = z.object({
483
519
  uuid: z.uuid(),
484
- createdAt: z.iso.datetime(),
485
- version: z.int().gte(0),
486
- source: z.string(),
487
- userUuid: z.union([z.uuid(), z.null()]),
488
- message: z.string(),
489
- subjectType: z.union([zSubjectType, z.null()]),
490
- subjectId: z.union([z.uuid(), z.null()]),
491
- type: z.enum(["business.updated"]),
492
- content: zBusinessUpdatedDomainEventContent
493
- }), zBusinessStatus = z.enum([
494
- "lead",
495
- "customer",
496
- "inactive",
497
- "archived"
498
- ]), zBusinessStatusUpdatedDomainEventContent = z.object({
520
+ name: z.string()
521
+ }), zContactPersonLinkedToBusinessEventContent = z.object({
499
522
  businessUuid: z.uuid(),
500
- previousStatus: zBusinessStatus,
501
- status: zBusinessStatus,
502
- archivedAt: z.union([z.iso.datetime(), z.null()])
503
- }), zBusinessStatusUpdatedDomainEventLog = z.object({
504
- uuid: z.uuid(),
505
- createdAt: z.iso.datetime(),
506
- version: z.int().gte(0),
507
- source: z.string(),
508
- userUuid: z.union([z.uuid(), z.null()]),
509
- message: z.string(),
510
- subjectType: z.union([zSubjectType, z.null()]),
511
- subjectId: z.union([z.uuid(), z.null()]),
512
- type: z.enum(["business.status.updated"]),
513
- content: zBusinessStatusUpdatedDomainEventContent
514
- }), zNotificationType = z.enum(["user.created", "system.test-notification"]), zNotificationCreatedEventContent = z.object({
515
- uuid: z.uuid(),
516
- type: zNotificationType
517
- }), zNotificationCreatedDomainEventLog = z.object({
518
- uuid: z.uuid(),
519
- createdAt: z.iso.datetime(),
520
- version: z.int().gte(0),
521
- source: z.string(),
522
- userUuid: z.union([z.uuid(), z.null()]),
523
- message: z.string(),
524
- subjectType: z.union([zSubjectType, z.null()]),
525
- subjectId: z.union([z.uuid(), z.null()]),
526
- type: z.enum(["notification.created"]),
527
- content: zNotificationCreatedEventContent
528
- }), zNotificationChannel = z.enum([
529
- "email",
530
- "sms",
531
- "app",
532
- "push"
533
- ]), zUserNotificationCreatedEventContent = z.object({
534
- notificationUuid: z.uuid(),
535
- channel: zNotificationChannel,
536
- userUuid: z.uuid()
537
- }), zUserNotificationCreatedDomainEventLog = z.object({
523
+ contactPerson: zContactPersonContent,
524
+ position: z.union([z.string(), z.null()])
525
+ }), zBusinessContactPersonLinkedDomainEventLog = z.object({
538
526
  uuid: z.uuid(),
539
527
  createdAt: z.iso.datetime(),
540
528
  version: z.int().gte(0),
@@ -543,9 +531,12 @@ const zTranslations = z.object({
543
531
  message: z.string(),
544
532
  subjectType: z.union([zSubjectType, z.null()]),
545
533
  subjectId: z.union([z.uuid(), z.null()]),
546
- type: z.enum(["user.notification.created"]),
547
- content: zUserNotificationCreatedEventContent
548
- }), zTenantCreatedEventContent = z.object({ tenantUuid: z.uuid() }), zTenantCreatedDomainEventLog = z.object({
534
+ type: z.enum(["business.contact-person.linked"]),
535
+ content: zContactPersonLinkedToBusinessEventContent
536
+ }), zContactPersonUnlinkedFromBusinessEventContent = z.object({
537
+ businessUuid: z.uuid(),
538
+ contactPerson: zContactPersonContent
539
+ }), zBusinessContactPersonUnlinkedDomainEventLog = z.object({
549
540
  uuid: z.uuid(),
550
541
  createdAt: z.iso.datetime(),
551
542
  version: z.int().gte(0),
@@ -554,18 +545,27 @@ const zTranslations = z.object({
554
545
  message: z.string(),
555
546
  subjectType: z.union([zSubjectType, z.null()]),
556
547
  subjectId: z.union([z.uuid(), z.null()]),
557
- type: z.enum(["tenant.created"]),
558
- content: zTenantCreatedEventContent
559
- }), zIndividualStatus = z.enum([
560
- "contact",
561
- "lead",
562
- "customer",
563
- "inactive"
564
- ]), zIndividualStatusUpdatedDomainEventContent = z.object({
565
- individualUuid: z.uuid(),
566
- previousStatus: zIndividualStatus,
567
- status: zIndividualStatus
568
- }), zIndividualStatusUpdatedDomainEventLog = z.object({
548
+ type: z.enum(["business.contact-person.unlinked"]),
549
+ content: zContactPersonUnlinkedFromBusinessEventContent
550
+ }), zValueChange = z.object({
551
+ key: z.string(),
552
+ oldValue: z.union([
553
+ z.string(),
554
+ z.number(),
555
+ z.boolean(),
556
+ z.null()
557
+ ]),
558
+ newValue: z.union([
559
+ z.string(),
560
+ z.number(),
561
+ z.boolean(),
562
+ z.null()
563
+ ])
564
+ }), zBusinessContactPersonUpdatedEventContent = z.object({
565
+ businessUuid: z.uuid(),
566
+ contactPerson: zContactPersonContent,
567
+ diff: z.array(zValueChange)
568
+ }), zBusinessContactPersonUpdatedDomainEventLog = z.object({
569
569
  uuid: z.uuid(),
570
570
  createdAt: z.iso.datetime(),
571
571
  version: z.int().gte(0),
@@ -574,15 +574,20 @@ const zTranslations = z.object({
574
574
  message: z.string(),
575
575
  subjectType: z.union([zSubjectType, z.null()]),
576
576
  subjectId: z.union([z.uuid(), z.null()]),
577
- type: z.enum(["individual.status.updated"]),
578
- content: zIndividualStatusUpdatedDomainEventContent
579
- }), zIndividualBillingInformationUpsertedEventContent = z.object({
577
+ type: z.enum(["business.contact-person.updated"]),
578
+ content: zBusinessContactPersonUpdatedEventContent
579
+ }), zIndividualUpdatedDomainEventContent = z.object({
580
580
  individualUuid: z.uuid(),
581
- billingInformationUuid: z.uuid(),
582
- address: z.union([zAddress, z.null()]),
583
- invoiceEmail: z.union([z.email(), z.null()]),
584
- invoiceCcEmails: z.array(z.email())
585
- }), zIndividualBillingInformationUpsertedDomainEventLog = z.object({
581
+ firstName: z.string(),
582
+ lastName: z.string(),
583
+ email: z.union([z.email(), z.null()]),
584
+ phone: z.union([z.string(), z.null()]),
585
+ mobilePhone: z.union([z.string(), z.null()]),
586
+ address: z.optional(zAddress),
587
+ changes: z.array(zValueChange),
588
+ customFields: z.optional(z.record(z.string(), z.unknown())),
589
+ language: zLocale
590
+ }), zIndividualUpdatedDomainEventLog = z.object({
586
591
  uuid: z.uuid(),
587
592
  createdAt: z.iso.datetime(),
588
593
  version: z.int().gte(0),
@@ -591,19 +596,12 @@ const zTranslations = z.object({
591
596
  message: z.string(),
592
597
  subjectType: z.union([zSubjectType, z.null()]),
593
598
  subjectId: z.union([z.uuid(), z.null()]),
594
- type: z.enum(["individual.billing-information.upserted"]),
595
- content: zIndividualBillingInformationUpsertedEventContent
596
- }), zBusinessBillingInformationUpsertedEventContent = z.object({
599
+ type: z.enum(["individual.updated"]),
600
+ content: zIndividualUpdatedDomainEventContent
601
+ }), zBusinessContactPersonMadePrimaryEventContent = z.object({
597
602
  businessUuid: z.uuid(),
598
- billingInformationUuid: z.uuid(),
599
- address: z.union([zAddress, z.null()]),
600
- invoiceEmail: z.union([z.email(), z.null()]),
601
- invoiceCcEmails: z.array(z.email()),
602
- reminderEmail: z.union([z.email(), z.null()]),
603
- reminderCcEmails: z.array(z.email()),
604
- purchaseNoteEmail: z.union([z.email(), z.null()]),
605
- purchaseNoteCcEmails: z.array(z.email())
606
- }), zBusinessBillingInformationUpsertedDomainEventLog = z.object({
603
+ contactPerson: zContactPersonContent
604
+ }), zBusinessContactPersonMadePrimaryDomainEventLog = z.object({
607
605
  uuid: z.uuid(),
608
606
  createdAt: z.iso.datetime(),
609
607
  version: z.int().gte(0),
@@ -612,20 +610,20 @@ const zTranslations = z.object({
612
610
  message: z.string(),
613
611
  subjectType: z.union([zSubjectType, z.null()]),
614
612
  subjectId: z.union([z.uuid(), z.null()]),
615
- type: z.enum(["business.billing-information.upserted"]),
616
- content: zBusinessBillingInformationUpsertedEventContent
617
- }), zClientId = z.record(z.string(), z.unknown()), zContentLocale = z.enum([
618
- "nl-BE",
619
- "en-US",
620
- "fr-BE",
621
- "de-DE"
622
- ]), zDealCreatedEventContent = z.object({
623
- dealUuid: z.uuid(),
613
+ type: z.enum(["business.contact-person.made-primary"]),
614
+ content: zBusinessContactPersonMadePrimaryEventContent
615
+ }), zBusinessCreatedDomainEventContent = z.object({
616
+ businessUuid: z.uuid(),
624
617
  name: z.string(),
625
- clientId: zClientId,
626
- columnKey: z.string(),
627
- language: zContentLocale
628
- }), zDealCreatedDomainEventLog = z.object({
618
+ email: z.union([z.email(), z.null()]),
619
+ phone: z.union([z.string(), z.null()]),
620
+ mobilePhone: z.union([z.string(), z.null()]),
621
+ vatNumber: z.union([z.string(), z.null()]),
622
+ companyNumber: z.union([z.string(), z.null()]),
623
+ address: zAddress,
624
+ customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
625
+ language: zLocale
626
+ }), zBusinessCreatedDomainEventLog = z.object({
629
627
  uuid: z.uuid(),
630
628
  createdAt: z.iso.datetime(),
631
629
  version: z.int().gte(0),
@@ -634,14 +632,18 @@ const zTranslations = z.object({
634
632
  message: z.string(),
635
633
  subjectType: z.union([zSubjectType, z.null()]),
636
634
  subjectId: z.union([z.uuid(), z.null()]),
637
- type: z.enum(["deal.created"]),
638
- content: zDealCreatedEventContent
639
- }), zDealUpdatedEventContent = z.object({
640
- dealUuid: z.uuid(),
641
- name: z.string(),
642
- columnKey: z.string(),
643
- language: zContentLocale
644
- }), zDealUpdatedDomainEventLog = z.object({
635
+ type: z.enum(["business.created"]),
636
+ content: zBusinessCreatedDomainEventContent
637
+ }), zIndividualCreatedDomainEventContent = z.object({
638
+ individualUuid: z.uuid(),
639
+ firstName: z.string(),
640
+ lastName: z.string(),
641
+ email: z.union([z.email(), z.null()]),
642
+ phone: z.union([z.string(), z.null()]),
643
+ mobilePhone: z.union([z.string(), z.null()]),
644
+ address: z.union([zAddress, z.null()]),
645
+ customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
646
+ }), zIndividualCreatedDomainEventLog = z.object({
645
647
  uuid: z.uuid(),
646
648
  createdAt: z.iso.datetime(),
647
649
  version: z.int().gte(0),
@@ -650,18 +652,22 @@ const zTranslations = z.object({
650
652
  message: z.string(),
651
653
  subjectType: z.union([zSubjectType, z.null()]),
652
654
  subjectId: z.union([z.uuid(), z.null()]),
653
- type: z.enum(["deal.updated"]),
654
- content: zDealUpdatedEventContent
655
- }), zMailCreatedEventContent = z.object({
656
- mailUuid: z.uuid(),
657
- to: z.array(z.string()),
658
- cc: z.array(z.string()),
659
- bcc: z.array(z.string()),
660
- subject: z.string(),
661
- mailTemplateUuid: z.union([z.uuid(), z.null()]),
662
- mailTemplateKey: z.union([z.string(), z.null()]),
663
- dealUuid: z.union([z.uuid(), z.null()])
664
- }), zMailCreatedDomainEventLog = z.object({
655
+ type: z.enum(["individual.created"]),
656
+ content: zIndividualCreatedDomainEventContent
657
+ }), zCountryCode = z.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(".")), zBusinessUpdatedDomainEventContent = z.object({
658
+ businessUuid: z.uuid(),
659
+ name: z.string(),
660
+ email: z.union([z.email(), z.null()]),
661
+ phone: z.union([z.string(), z.null()]),
662
+ mobilePhone: z.union([z.string(), z.null()]),
663
+ vatNumber: z.union([z.string(), z.null()]),
664
+ vatNumberCountryCode: z.union([zCountryCode, z.null()]),
665
+ companyNumber: z.union([z.string(), z.null()]),
666
+ address: zAddress,
667
+ changes: zValueChange,
668
+ customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
669
+ language: zLocale
670
+ }), zBusinessUpdatedDomainEventLog = z.object({
665
671
  uuid: z.uuid(),
666
672
  createdAt: z.iso.datetime(),
667
673
  version: z.int().gte(0),
@@ -670,12 +676,14 @@ const zTranslations = z.object({
670
676
  message: z.string(),
671
677
  subjectType: z.union([zSubjectType, z.null()]),
672
678
  subjectId: z.union([z.uuid(), z.null()]),
673
- type: z.enum(["mail.created"]),
674
- content: zMailCreatedEventContent
675
- }), zDealColumnTransitionedEventContent = z.object({
676
- fromBoardColumnUuid: z.uuid(),
677
- toBoardColumnUuid: z.uuid()
678
- }), zDealColumnTransitionedDomainEventLog = z.object({
679
+ type: z.enum(["business.updated"]),
680
+ content: zBusinessUpdatedDomainEventContent
681
+ }), zBusinessStatusUpdatedDomainEventContent = z.object({
682
+ businessUuid: z.uuid(),
683
+ previousStatus: zBusinessStatus,
684
+ status: zBusinessStatus,
685
+ archivedAt: z.union([z.iso.datetime(), z.null()])
686
+ }), zBusinessStatusUpdatedDomainEventLog = z.object({
679
687
  uuid: z.uuid(),
680
688
  createdAt: z.iso.datetime(),
681
689
  version: z.int().gte(0),
@@ -684,8 +692,8 @@ const zTranslations = z.object({
684
692
  message: z.string(),
685
693
  subjectType: z.union([zSubjectType, z.null()]),
686
694
  subjectId: z.union([z.uuid(), z.null()]),
687
- type: z.enum(["deal.column.transitioned"]),
688
- content: zDealColumnTransitionedEventContent
695
+ type: z.enum(["business.status.updated"]),
696
+ content: zBusinessStatusUpdatedDomainEventContent
689
697
  }), zCbeEnterpriseImportedDomainEventContent = z.object({ enterpriseNumber: z.string() }), zCbeEnterpriseImportedDomainEventLog = z.object({
690
698
  uuid: z.uuid(),
691
699
  createdAt: z.iso.datetime(),
@@ -741,16 +749,7 @@ const zTranslations = z.object({
741
749
  subjectId: z.union([z.uuid(), z.null()]),
742
750
  type: z.enum(["cbe-establishment.imported"]),
743
751
  content: zCbeEstablishmentImportedDomainEventContent
744
- }), zMailSentEventContent = z.object({
745
- mailUuid: z.uuid(),
746
- to: z.array(z.string()),
747
- cc: z.array(z.string()),
748
- bcc: z.array(z.string()),
749
- subject: z.string(),
750
- mailTemplateUuid: z.union([z.uuid(), z.null()]),
751
- mailTemplateKey: z.union([z.string(), z.null()]),
752
- dealUuid: z.union([z.uuid(), z.null()])
753
- }), zMailSentDomainEventLog = z.object({
752
+ }), zCustomFieldDefinitionCreatedEventContent = z.object({ customFieldDefinitionUuid: z.uuid() }), zCustomFieldDefinitionCreatedDomainEventLog = z.object({
754
753
  uuid: z.uuid(),
755
754
  createdAt: z.iso.datetime(),
756
755
  version: z.int().gte(0),
@@ -759,11 +758,36 @@ const zTranslations = z.object({
759
758
  message: z.string(),
760
759
  subjectType: z.union([zSubjectType, z.null()]),
761
760
  subjectId: z.union([z.uuid(), z.null()]),
762
- type: z.enum(["mail.sent"]),
763
- content: zMailSentEventContent
764
- }), zContactPersonContent = z.object({
761
+ type: z.enum(["custom-field-definition.created"]),
762
+ content: zCustomFieldDefinitionCreatedEventContent
763
+ }), zCreateUserIndividualGrantCreatedEventContent = z.object({
764
+ userUuid: z.uuid(),
765
+ customerZoneIndividualUserUuid: z.uuid()
766
+ }), zIndividualUserGrantCreatedDomainEventLog = z.object({
765
767
  uuid: z.uuid(),
766
- name: z.string()
768
+ createdAt: z.iso.datetime(),
769
+ version: z.int().gte(0),
770
+ source: z.string(),
771
+ userUuid: z.union([z.uuid(), z.null()]),
772
+ message: z.string(),
773
+ subjectType: z.union([zSubjectType, z.null()]),
774
+ subjectId: z.union([z.uuid(), z.null()]),
775
+ type: z.enum(["individual-user-grant.created"]),
776
+ content: zCreateUserIndividualGrantCreatedEventContent
777
+ }), zIndividualUserGrantEmailVerifiedEventContent = z.object({
778
+ customerZoneIndividualUserUuid: z.uuid(),
779
+ userUuid: z.uuid()
780
+ }), zIndividualUserGrantEmailVerifiedDomainEventLog = z.object({
781
+ uuid: z.uuid(),
782
+ createdAt: z.iso.datetime(),
783
+ version: z.int().gte(0),
784
+ source: z.string(),
785
+ userUuid: z.union([z.uuid(), z.null()]),
786
+ message: z.string(),
787
+ subjectType: z.union([zSubjectType, z.null()]),
788
+ subjectId: z.union([z.uuid(), z.null()]),
789
+ type: z.enum(["individual-user-grant.email-verified"]),
790
+ content: zIndividualUserGrantEmailVerifiedEventContent
767
791
  }), zContactPersonLinkedToDealEventContent = z.object({
768
792
  dealUuid: z.uuid(),
769
793
  contactPerson: zContactPersonContent
@@ -778,11 +802,10 @@ const zTranslations = z.object({
778
802
  subjectId: z.union([z.uuid(), z.null()]),
779
803
  type: z.enum(["deal.contact.person.linked"]),
780
804
  content: zContactPersonLinkedToDealEventContent
781
- }), zContactPersonLinkedToBusinessEventContent = z.object({
782
- businessUuid: z.uuid(),
783
- contactPerson: zContactPersonContent,
784
- position: z.union([z.string(), z.null()])
785
- }), zBusinessContactPersonLinkedDomainEventLog = z.object({
805
+ }), zDealContactPersonMadePrimaryEventContent = z.object({
806
+ dealUuid: z.uuid(),
807
+ contactPerson: zContactPersonContent
808
+ }), zDealContactPersonMadePrimaryDomainEventLog = z.object({
786
809
  uuid: z.uuid(),
787
810
  createdAt: z.iso.datetime(),
788
811
  version: z.int().gte(0),
@@ -791,12 +814,12 @@ const zTranslations = z.object({
791
814
  message: z.string(),
792
815
  subjectType: z.union([zSubjectType, z.null()]),
793
816
  subjectId: z.union([z.uuid(), z.null()]),
794
- type: z.enum(["business.contact-person.linked"]),
795
- content: zContactPersonLinkedToBusinessEventContent
796
- }), zFileCreatedEventContent = z.object({
797
- fileUuid: z.uuid(),
798
- fileName: z.string()
799
- }), zFileCreatedDomainEventLog = z.object({
817
+ type: z.enum(["deal.contact.person.made-primary"]),
818
+ content: zDealContactPersonMadePrimaryEventContent
819
+ }), zContactPersonUnlinkedFromDealEventContent = z.object({
820
+ dealUuid: z.uuid(),
821
+ contactPerson: zContactPersonContent
822
+ }), zDealContactPersonUnlinkedDomainEventLog = z.object({
800
823
  uuid: z.uuid(),
801
824
  createdAt: z.iso.datetime(),
802
825
  version: z.int().gte(0),
@@ -805,13 +828,13 @@ const zTranslations = z.object({
805
828
  message: z.string(),
806
829
  subjectType: z.union([zSubjectType, z.null()]),
807
830
  subjectId: z.union([z.uuid(), z.null()]),
808
- type: z.enum(["file.created"]),
809
- content: zFileCreatedEventContent
810
- }), zFileUploadedEventContent = z.object({
811
- fileUuid: z.uuid(),
812
- fileName: z.string(),
813
- blurHash: z.union([z.string(), z.null()])
814
- }), zFileUploadedDomainEventLog = z.object({
831
+ type: z.enum(["deal.contact.person.unlinked"]),
832
+ content: zContactPersonUnlinkedFromDealEventContent
833
+ }), zDealContactPersonUpdatedEventContent = z.object({
834
+ dealUuid: z.uuid(),
835
+ contactPerson: zContactPersonContent,
836
+ diff: z.array(zValueChange)
837
+ }), zDealContactPersonUpdatedDomainEventLog = z.object({
815
838
  uuid: z.uuid(),
816
839
  createdAt: z.iso.datetime(),
817
840
  version: z.int().gte(0),
@@ -820,12 +843,20 @@ const zTranslations = z.object({
820
843
  message: z.string(),
821
844
  subjectType: z.union([zSubjectType, z.null()]),
822
845
  subjectId: z.union([z.uuid(), z.null()]),
823
- type: z.enum(["file.uploaded"]),
824
- content: zFileUploadedEventContent
825
- }), zNotificationReadEventContent = z.object({
826
- notificationUuid: z.uuid(),
827
- userUuid: z.uuid()
828
- }), zNotificationReadDomainEventLog = z.object({
846
+ type: z.enum(["deal.contact.person.updated"]),
847
+ content: zDealContactPersonUpdatedEventContent
848
+ }), zClientId = z.record(z.string(), z.unknown()), zSdkContentLocale = z.enum([
849
+ "nl-BE",
850
+ "en-US",
851
+ "fr-BE",
852
+ "de-DE"
853
+ ]), zDealCreatedEventContent = z.object({
854
+ dealUuid: z.uuid(),
855
+ name: z.string(),
856
+ clientId: zClientId,
857
+ columnKey: z.string(),
858
+ language: zSdkContentLocale
859
+ }), zDealCreatedDomainEventLog = z.object({
829
860
  uuid: z.uuid(),
830
861
  createdAt: z.iso.datetime(),
831
862
  version: z.int().gte(0),
@@ -834,31 +865,29 @@ const zTranslations = z.object({
834
865
  message: z.string(),
835
866
  subjectType: z.union([zSubjectType, z.null()]),
836
867
  subjectId: z.union([z.uuid(), z.null()]),
837
- type: z.enum(["notification.read"]),
838
- content: zNotificationReadEventContent
839
- }), zNotificationUnreadEventContent = z.object({
840
- notificationUuid: z.uuid(),
841
- userUuid: z.uuid()
842
- }), zNotificationUnreadDomainEventLog = z.object({
868
+ type: z.enum(["deal.created"]),
869
+ content: zDealCreatedEventContent
870
+ }), zDealOwnerUpdatedEventContent = z.object({
871
+ dealUuid: z.uuid(),
872
+ previousOwnerUuid: z.union([z.record(z.string(), z.unknown()), z.null()]),
873
+ dealOwnerUuid: z.union([z.record(z.string(), z.unknown()), z.null()])
874
+ }), zDealOwnerUpdatedDomainEventLog = z.object({
843
875
  uuid: z.uuid(),
844
876
  createdAt: z.iso.datetime(),
845
877
  version: z.int().gte(0),
846
878
  source: z.string(),
847
879
  userUuid: z.union([z.uuid(), z.null()]),
848
880
  message: z.string(),
849
- subjectType: z.union([zSubjectType, z.null()]),
850
- subjectId: z.union([z.uuid(), z.null()]),
851
- type: z.enum(["notification.unread"]),
852
- content: zNotificationUnreadEventContent
853
- }), zNotificationPreset = z.enum([
854
- "all",
855
- "default",
856
- "custom",
857
- "none"
858
- ]), zNotificationPreferencePresetEventContent = z.object({
859
- userUuid: z.uuid(),
860
- preset: zNotificationPreset
861
- }), zNotificationPreferencePresetUpdatedDomainEventLog = z.object({
881
+ subjectType: z.union([zSubjectType, z.null()]),
882
+ subjectId: z.union([z.uuid(), z.null()]),
883
+ type: z.enum(["deal.owner.updated"]),
884
+ content: zDealOwnerUpdatedEventContent
885
+ }), zDealUpdatedEventContent = z.object({
886
+ dealUuid: z.uuid(),
887
+ name: z.string(),
888
+ columnKey: z.string(),
889
+ language: zSdkContentLocale
890
+ }), zDealUpdatedDomainEventLog = z.object({
862
891
  uuid: z.uuid(),
863
892
  createdAt: z.iso.datetime(),
864
893
  version: z.int().gte(0),
@@ -867,9 +896,12 @@ const zTranslations = z.object({
867
896
  message: z.string(),
868
897
  subjectType: z.union([zSubjectType, z.null()]),
869
898
  subjectId: z.union([z.uuid(), z.null()]),
870
- type: z.enum(["notification.preference.preset.updated"]),
871
- content: zNotificationPreferencePresetEventContent
872
- }), zNotificationTypesMigratedEventContent = z.object({ types: z.array(zNotificationType) }), zNotificationTypesMigratedDomainEventLog = z.object({
899
+ type: z.enum(["deal.updated"]),
900
+ content: zDealUpdatedEventContent
901
+ }), zDealColumnTransitionedEventContent = z.object({
902
+ fromBoardColumnUuid: z.uuid(),
903
+ toBoardColumnUuid: z.uuid()
904
+ }), zDealColumnTransitionedDomainEventLog = z.object({
873
905
  uuid: z.uuid(),
874
906
  createdAt: z.iso.datetime(),
875
907
  version: z.int().gte(0),
@@ -878,9 +910,18 @@ const zTranslations = z.object({
878
910
  message: z.string(),
879
911
  subjectType: z.union([zSubjectType, z.null()]),
880
912
  subjectId: z.union([z.uuid(), z.null()]),
881
- type: z.enum(["notification.types.migrated"]),
882
- content: zNotificationTypesMigratedEventContent
883
- }), zAllNotificationsMarkedAsReadEventContent = z.object({ userUuid: z.uuid() }), zNotificationReadAllDomainEventLog = z.object({
913
+ type: z.enum(["deal.column.transitioned"]),
914
+ content: zDealColumnTransitionedEventContent
915
+ }), zMailCreatedEventContent = z.object({
916
+ mailUuid: z.uuid(),
917
+ to: z.array(z.string()),
918
+ cc: z.array(z.string()),
919
+ bcc: z.array(z.string()),
920
+ subject: z.string(),
921
+ mailTemplateUuid: z.union([z.uuid(), z.null()]),
922
+ mailTemplateKey: z.union([z.string(), z.null()]),
923
+ dealUuid: z.union([z.uuid(), z.null()])
924
+ }), zMailCreatedDomainEventLog = z.object({
884
925
  uuid: z.uuid(),
885
926
  createdAt: z.iso.datetime(),
886
927
  version: z.int().gte(0),
@@ -889,9 +930,15 @@ const zTranslations = z.object({
889
930
  message: z.string(),
890
931
  subjectType: z.union([zSubjectType, z.null()]),
891
932
  subjectId: z.union([z.uuid(), z.null()]),
892
- type: z.enum(["notification.read.all"]),
893
- content: zAllNotificationsMarkedAsReadEventContent
894
- }), zTestNotificationSentEventContent = z.object({ message: z.string() }), zTestNotificationSentDomainEventLog = z.object({
933
+ type: z.enum(["mail.created"]),
934
+ content: zMailCreatedEventContent
935
+ }), zIndividualBillingInformationUpsertedEventContent = z.object({
936
+ individualUuid: z.uuid(),
937
+ billingInformationUuid: z.uuid(),
938
+ address: z.union([zAddress, z.null()]),
939
+ invoiceEmail: z.union([z.email(), z.null()]),
940
+ invoiceCcEmails: z.array(z.email())
941
+ }), zIndividualBillingInformationUpsertedDomainEventLog = z.object({
895
942
  uuid: z.uuid(),
896
943
  createdAt: z.iso.datetime(),
897
944
  version: z.int().gte(0),
@@ -900,8 +947,8 @@ const zTranslations = z.object({
900
947
  message: z.string(),
901
948
  subjectType: z.union([zSubjectType, z.null()]),
902
949
  subjectId: z.union([z.uuid(), z.null()]),
903
- type: z.enum(["test-notification.sent"]),
904
- content: zTestNotificationSentEventContent
950
+ type: z.enum(["individual.billing-information.upserted"]),
951
+ content: zIndividualBillingInformationUpsertedEventContent
905
952
  }), zContactPersonLinkedToIndividualEventContent = z.object({
906
953
  individualUuid: z.uuid(),
907
954
  contactPerson: zContactPersonContent,
@@ -960,25 +1007,11 @@ const zTranslations = z.object({
960
1007
  subjectId: z.union([z.uuid(), z.null()]),
961
1008
  type: z.enum(["individual.contact-person.made-primary"]),
962
1009
  content: zIndividualContactPersonMadePrimaryEventContent
963
- }), zContactPersonUnlinkedFromBusinessEventContent = z.object({
964
- businessUuid: z.uuid(),
965
- contactPerson: zContactPersonContent
966
- }), zBusinessContactPersonUnlinkedDomainEventLog = z.object({
967
- uuid: z.uuid(),
968
- createdAt: z.iso.datetime(),
969
- version: z.int().gte(0),
970
- source: z.string(),
971
- userUuid: z.union([z.uuid(), z.null()]),
972
- message: z.string(),
973
- subjectType: z.union([zSubjectType, z.null()]),
974
- subjectId: z.union([z.uuid(), z.null()]),
975
- type: z.enum(["business.contact-person.unlinked"]),
976
- content: zContactPersonUnlinkedFromBusinessEventContent
977
- }), zBusinessContactPersonUpdatedEventContent = z.object({
978
- businessUuid: z.uuid(),
979
- contactPerson: zContactPersonContent,
980
- diff: z.array(zValueChange)
981
- }), zBusinessContactPersonUpdatedDomainEventLog = z.object({
1010
+ }), zIndividualStatusUpdatedDomainEventContent = z.object({
1011
+ individualUuid: z.uuid(),
1012
+ previousStatus: zIndividualStatus,
1013
+ status: zIndividualStatus
1014
+ }), zIndividualStatusUpdatedDomainEventLog = z.object({
982
1015
  uuid: z.uuid(),
983
1016
  createdAt: z.iso.datetime(),
984
1017
  version: z.int().gte(0),
@@ -987,12 +1020,9 @@ const zTranslations = z.object({
987
1020
  message: z.string(),
988
1021
  subjectType: z.union([zSubjectType, z.null()]),
989
1022
  subjectId: z.union([z.uuid(), z.null()]),
990
- type: z.enum(["business.contact-person.updated"]),
991
- content: zBusinessContactPersonUpdatedEventContent
992
- }), zBusinessContactPersonMadePrimaryEventContent = z.object({
993
- businessUuid: z.uuid(),
994
- contactPerson: zContactPersonContent
995
- }), zBusinessContactPersonMadePrimaryDomainEventLog = z.object({
1023
+ type: z.enum(["individual.status.updated"]),
1024
+ content: zIndividualStatusUpdatedDomainEventContent
1025
+ }), zLocationUpdatedEventContent = z.object({ locationUuid: z.uuid() }), zLocationUpdatedDomainEventLog = z.object({
996
1026
  uuid: z.uuid(),
997
1027
  createdAt: z.iso.datetime(),
998
1028
  version: z.int().gte(0),
@@ -1001,9 +1031,12 @@ const zTranslations = z.object({
1001
1031
  message: z.string(),
1002
1032
  subjectType: z.union([zSubjectType, z.null()]),
1003
1033
  subjectId: z.union([z.uuid(), z.null()]),
1004
- type: z.enum(["business.contact-person.made-primary"]),
1005
- content: zBusinessContactPersonMadePrimaryEventContent
1006
- }), zTenantUpdatedEventContent = z.object({ tenantUuid: z.uuid() }), zTenantUpdatedDomainEventLog = z.object({
1034
+ type: z.enum(["location.updated"]),
1035
+ content: zLocationUpdatedEventContent
1036
+ }), zMailTemplateCreatedEventContent = z.object({
1037
+ mailTemplateUuid: z.uuid(),
1038
+ key: z.string()
1039
+ }), zMailTemplateCreatedDomainEventLog = z.object({
1007
1040
  uuid: z.uuid(),
1008
1041
  createdAt: z.iso.datetime(),
1009
1042
  version: z.int().gte(0),
@@ -1012,9 +1045,9 @@ const zTranslations = z.object({
1012
1045
  message: z.string(),
1013
1046
  subjectType: z.union([zSubjectType, z.null()]),
1014
1047
  subjectId: z.union([z.uuid(), z.null()]),
1015
- type: z.enum(["tenant.updated"]),
1016
- content: zTenantUpdatedEventContent
1017
- }), zCustomFieldDefinitionCreatedEventContent = z.object({ customFieldDefinitionUuid: z.uuid() }), zCustomFieldDefinitionCreatedDomainEventLog = z.object({
1048
+ type: z.enum(["mail.template.created"]),
1049
+ content: zMailTemplateCreatedEventContent
1050
+ }), zMailTemplateUpdatedEventContent = z.object({ mailTemplateUuid: z.uuid() }), zMailTemplateUpdatedDomainEventLog = z.object({
1018
1051
  uuid: z.uuid(),
1019
1052
  createdAt: z.iso.datetime(),
1020
1053
  version: z.int().gte(0),
@@ -1023,8 +1056,8 @@ const zTranslations = z.object({
1023
1056
  message: z.string(),
1024
1057
  subjectType: z.union([zSubjectType, z.null()]),
1025
1058
  subjectId: z.union([z.uuid(), z.null()]),
1026
- type: z.enum(["custom-field-definition.created"]),
1027
- content: zCustomFieldDefinitionCreatedEventContent
1059
+ type: z.enum(["mail.template.updated"]),
1060
+ content: zMailTemplateUpdatedEventContent
1028
1061
  }), zNoteDomainEventContent = z.object({
1029
1062
  uuid: z.uuid(),
1030
1063
  name: z.string()
@@ -1201,176 +1234,14 @@ const zTranslations = z.object({
1201
1234
  source: z.string(),
1202
1235
  userUuid: z.union([z.uuid(), z.null()]),
1203
1236
  message: z.string(),
1204
- subjectType: z.union([zSubjectType, z.null()]),
1205
- subjectId: z.union([z.uuid(), z.null()]),
1206
- type: z.enum(["deal.note.file.deleted"]),
1207
- content: zDealNoteFileDeletedDomainEventContent
1208
- }), zBusinessNoteDeletedDomainEventContent = z.object({
1209
- noteUuid: z.uuid(),
1210
- businessUuid: z.uuid()
1211
- }), zBusinessNoteDeletedDomainEventLog = z.object({
1212
- uuid: z.uuid(),
1213
- createdAt: z.iso.datetime(),
1214
- version: z.int().gte(0),
1215
- source: z.string(),
1216
- userUuid: z.union([z.uuid(), z.null()]),
1217
- message: z.string(),
1218
- subjectType: z.union([zSubjectType, z.null()]),
1219
- subjectId: z.union([z.uuid(), z.null()]),
1220
- type: z.enum(["business.note.deleted"]),
1221
- content: zBusinessNoteDeletedDomainEventContent
1222
- }), zIndividualNoteDeletedDomainEventContent = z.object({
1223
- noteUuid: z.uuid(),
1224
- individualUuid: z.uuid()
1225
- }), zIndividualNoteDeletedDomainEventLog = z.object({
1226
- uuid: z.uuid(),
1227
- createdAt: z.iso.datetime(),
1228
- version: z.int().gte(0),
1229
- source: z.string(),
1230
- userUuid: z.union([z.uuid(), z.null()]),
1231
- message: z.string(),
1232
- subjectType: z.union([zSubjectType, z.null()]),
1233
- subjectId: z.union([z.uuid(), z.null()]),
1234
- type: z.enum(["individual.note.deleted"]),
1235
- content: zIndividualNoteDeletedDomainEventContent
1236
- }), zDealNoteDeletedDomainEventContent = z.object({
1237
- note: zNoteDomainEventContent,
1238
- dealUuid: z.uuid()
1239
- }), zDealNoteDeletedDomainEventLog = z.object({
1240
- uuid: z.uuid(),
1241
- createdAt: z.iso.datetime(),
1242
- version: z.int().gte(0),
1243
- source: z.string(),
1244
- userUuid: z.union([z.uuid(), z.null()]),
1245
- message: z.string(),
1246
- subjectType: z.union([zSubjectType, z.null()]),
1247
- subjectId: z.union([z.uuid(), z.null()]),
1248
- type: z.enum(["deal.note.deleted"]),
1249
- content: zDealNoteDeletedDomainEventContent
1250
- }), zBoardColumnCreatedEventContent = z.object({
1251
- boardColumnUuid: z.uuid(),
1252
- key: z.string(),
1253
- position: z.number(),
1254
- tenantUuid: z.uuid()
1255
- }), zBoardColumnCreatedDomainEventLog = z.object({
1256
- uuid: z.uuid(),
1257
- createdAt: z.iso.datetime(),
1258
- version: z.int().gte(0),
1259
- source: z.string(),
1260
- userUuid: z.union([z.uuid(), z.null()]),
1261
- message: z.string(),
1262
- subjectType: z.union([zSubjectType, z.null()]),
1263
- subjectId: z.union([z.uuid(), z.null()]),
1264
- type: z.enum(["board-column.created"]),
1265
- content: zBoardColumnCreatedEventContent
1266
- }), zBoardColumnTransitionCreatedEventContent = z.object({
1267
- boardColumnTransitionUuid: z.uuid(),
1268
- fromColumnUuid: z.uuid(),
1269
- toColumnUuid: z.uuid(),
1270
- tenantUuid: z.uuid()
1271
- }), zBoardColumnTransitionCreatedDomainEventLog = z.object({
1272
- uuid: z.uuid(),
1273
- createdAt: z.iso.datetime(),
1274
- version: z.int().gte(0),
1275
- source: z.string(),
1276
- userUuid: z.union([z.uuid(), z.null()]),
1277
- message: z.string(),
1278
- subjectType: z.union([zSubjectType, z.null()]),
1279
- subjectId: z.union([z.uuid(), z.null()]),
1280
- type: z.enum(["board-column-transition.created"]),
1281
- content: zBoardColumnTransitionCreatedEventContent
1282
- }), zBoardColumnTransitionTriggerType = z.enum(["manual", "email"]), zBoardColumnTransitionTriggerCreatedEventContent = z.object({
1283
- boardColumnTransitionTriggerUuid: z.uuid(),
1284
- boardColumnTransitionUuid: z.uuid(),
1285
- triggerType: zBoardColumnTransitionTriggerType,
1286
- tenantUuid: z.uuid()
1287
- }), zBoardColumnTransitionTriggerCreatedDomainEventLog = z.object({
1288
- uuid: z.uuid(),
1289
- createdAt: z.iso.datetime(),
1290
- version: z.int().gte(0),
1291
- source: z.string(),
1292
- userUuid: z.union([z.uuid(), z.null()]),
1293
- message: z.string(),
1294
- subjectType: z.union([zSubjectType, z.null()]),
1295
- subjectId: z.union([z.uuid(), z.null()]),
1296
- type: z.enum(["board-column-transition-trigger.created"]),
1297
- content: zBoardColumnTransitionTriggerCreatedEventContent
1298
- }), zDealOwnerUpdatedEventContent = z.object({
1299
- dealUuid: z.uuid(),
1300
- previousOwnerUuid: z.union([z.record(z.string(), z.unknown()), z.null()]),
1301
- dealOwnerUuid: z.union([z.record(z.string(), z.unknown()), z.null()])
1302
- }), zDealOwnerUpdatedDomainEventLog = z.object({
1303
- uuid: z.uuid(),
1304
- createdAt: z.iso.datetime(),
1305
- version: z.int().gte(0),
1306
- source: z.string(),
1307
- userUuid: z.union([z.uuid(), z.null()]),
1308
- message: z.string(),
1309
- subjectType: z.union([zSubjectType, z.null()]),
1310
- subjectId: z.union([z.uuid(), z.null()]),
1311
- type: z.enum(["deal.owner.updated"]),
1312
- content: zDealOwnerUpdatedEventContent
1313
- }), zDealContactPersonMadePrimaryEventContent = z.object({
1314
- dealUuid: z.uuid(),
1315
- contactPerson: zContactPersonContent
1316
- }), zDealContactPersonMadePrimaryDomainEventLog = z.object({
1317
- uuid: z.uuid(),
1318
- createdAt: z.iso.datetime(),
1319
- version: z.int().gte(0),
1320
- source: z.string(),
1321
- userUuid: z.union([z.uuid(), z.null()]),
1322
- message: z.string(),
1323
- subjectType: z.union([zSubjectType, z.null()]),
1324
- subjectId: z.union([z.uuid(), z.null()]),
1325
- type: z.enum(["deal.contact.person.made-primary"]),
1326
- content: zDealContactPersonMadePrimaryEventContent
1327
- }), zContactPersonUnlinkedFromDealEventContent = z.object({
1328
- dealUuid: z.uuid(),
1329
- contactPerson: zContactPersonContent
1330
- }), zDealContactPersonUnlinkedDomainEventLog = z.object({
1331
- uuid: z.uuid(),
1332
- createdAt: z.iso.datetime(),
1333
- version: z.int().gte(0),
1334
- source: z.string(),
1335
- userUuid: z.union([z.uuid(), z.null()]),
1336
- message: z.string(),
1337
- subjectType: z.union([zSubjectType, z.null()]),
1338
- subjectId: z.union([z.uuid(), z.null()]),
1339
- type: z.enum(["deal.contact.person.unlinked"]),
1340
- content: zContactPersonUnlinkedFromDealEventContent
1341
- }), zDealContactPersonUpdatedEventContent = z.object({
1342
- dealUuid: z.uuid(),
1343
- contactPerson: zContactPersonContent,
1344
- diff: z.array(zValueChange)
1345
- }), zDealContactPersonUpdatedDomainEventLog = z.object({
1346
- uuid: z.uuid(),
1347
- createdAt: z.iso.datetime(),
1348
- version: z.int().gte(0),
1349
- source: z.string(),
1350
- userUuid: z.union([z.uuid(), z.null()]),
1351
- message: z.string(),
1352
- subjectType: z.union([zSubjectType, z.null()]),
1353
- subjectId: z.union([z.uuid(), z.null()]),
1354
- type: z.enum(["deal.contact.person.updated"]),
1355
- content: zDealContactPersonUpdatedEventContent
1356
- }), zCreateUserIndividualGrantCreatedEventContent = z.object({
1357
- userUuid: z.uuid(),
1358
- customerZoneIndividualUserUuid: z.uuid()
1359
- }), zIndividualUserGrantCreatedDomainEventLog = z.object({
1360
- uuid: z.uuid(),
1361
- createdAt: z.iso.datetime(),
1362
- version: z.int().gte(0),
1363
- source: z.string(),
1364
- userUuid: z.union([z.uuid(), z.null()]),
1365
- message: z.string(),
1366
- subjectType: z.union([zSubjectType, z.null()]),
1367
- subjectId: z.union([z.uuid(), z.null()]),
1368
- type: z.enum(["individual-user-grant.created"]),
1369
- content: zCreateUserIndividualGrantCreatedEventContent
1370
- }), zIndividualUserGrantEmailVerifiedEventContent = z.object({
1371
- customerZoneIndividualUserUuid: z.uuid(),
1372
- userUuid: z.uuid()
1373
- }), zIndividualUserGrantEmailVerifiedDomainEventLog = z.object({
1237
+ subjectType: z.union([zSubjectType, z.null()]),
1238
+ subjectId: z.union([z.uuid(), z.null()]),
1239
+ type: z.enum(["deal.note.file.deleted"]),
1240
+ content: zDealNoteFileDeletedDomainEventContent
1241
+ }), zBusinessNoteDeletedDomainEventContent = z.object({
1242
+ noteUuid: z.uuid(),
1243
+ businessUuid: z.uuid()
1244
+ }), zBusinessNoteDeletedDomainEventLog = z.object({
1374
1245
  uuid: z.uuid(),
1375
1246
  createdAt: z.iso.datetime(),
1376
1247
  version: z.int().gte(0),
@@ -1379,12 +1250,12 @@ const zTranslations = z.object({
1379
1250
  message: z.string(),
1380
1251
  subjectType: z.union([zSubjectType, z.null()]),
1381
1252
  subjectId: z.union([z.uuid(), z.null()]),
1382
- type: z.enum(["individual-user-grant.email-verified"]),
1383
- content: zIndividualUserGrantEmailVerifiedEventContent
1384
- }), zMailTemplateCreatedEventContent = z.object({
1385
- mailTemplateUuid: z.uuid(),
1386
- key: z.string()
1387
- }), zMailTemplateCreatedDomainEventLog = z.object({
1253
+ type: z.enum(["business.note.deleted"]),
1254
+ content: zBusinessNoteDeletedDomainEventContent
1255
+ }), zIndividualNoteDeletedDomainEventContent = z.object({
1256
+ noteUuid: z.uuid(),
1257
+ individualUuid: z.uuid()
1258
+ }), zIndividualNoteDeletedDomainEventLog = z.object({
1388
1259
  uuid: z.uuid(),
1389
1260
  createdAt: z.iso.datetime(),
1390
1261
  version: z.int().gte(0),
@@ -1393,9 +1264,12 @@ const zTranslations = z.object({
1393
1264
  message: z.string(),
1394
1265
  subjectType: z.union([zSubjectType, z.null()]),
1395
1266
  subjectId: z.union([z.uuid(), z.null()]),
1396
- type: z.enum(["mail.template.created"]),
1397
- content: zMailTemplateCreatedEventContent
1398
- }), zMailTemplateUpdatedEventContent = z.object({ mailTemplateUuid: z.uuid() }), zMailTemplateUpdatedDomainEventLog = z.object({
1267
+ type: z.enum(["individual.note.deleted"]),
1268
+ content: zIndividualNoteDeletedDomainEventContent
1269
+ }), zDealNoteDeletedDomainEventContent = z.object({
1270
+ note: zNoteDomainEventContent,
1271
+ dealUuid: z.uuid()
1272
+ }), zDealNoteDeletedDomainEventLog = z.object({
1399
1273
  uuid: z.uuid(),
1400
1274
  createdAt: z.iso.datetime(),
1401
1275
  version: z.int().gte(0),
@@ -1404,8 +1278,8 @@ const zTranslations = z.object({
1404
1278
  message: z.string(),
1405
1279
  subjectType: z.union([zSubjectType, z.null()]),
1406
1280
  subjectId: z.union([z.uuid(), z.null()]),
1407
- type: z.enum(["mail.template.updated"]),
1408
- content: zMailTemplateUpdatedEventContent
1281
+ type: z.enum(["deal.note.deleted"]),
1282
+ content: zDealNoteDeletedDomainEventContent
1409
1283
  });
1410
1284
  z.object({
1411
1285
  uuid: z.uuid(),
@@ -1420,56 +1294,46 @@ z.object({
1420
1294
  const zViewDomainEventLogIndexResponseMeta = z.object({ next: z.union([zViewDomainEventLogIndexQueryKey, z.null()]) });
1421
1295
  z.object({
1422
1296
  items: z.array(z.union([
1423
- zUserCreatedDomainEventLog,
1424
- zUserRoleAssignedDomainEventLog,
1425
- zRoleCreatedDomainEventLog,
1426
- zRoleDeletedDomainEventLog,
1427
- zRoleRenamedDomainEventLog,
1428
- zRolePermissionsUpdatedDomainEventLog,
1429
- zRolePermissionsCacheClearedDomainEventLog,
1430
- zUserUpdatedDomainEventLog,
1297
+ zBoardColumnCreatedDomainEventLog,
1298
+ zBoardColumnTransitionCreatedDomainEventLog,
1299
+ zBoardColumnTransitionTriggerCreatedDomainEventLog,
1300
+ zBusinessBillingInformationUpsertedDomainEventLog,
1431
1301
  zLocationCreatedDomainEventLog,
1432
- zLocationUpdatedDomainEventLog,
1433
- zIndividualCreatedDomainEventLog,
1302
+ zBusinessContactPersonLinkedDomainEventLog,
1303
+ zBusinessContactPersonUnlinkedDomainEventLog,
1304
+ zBusinessContactPersonUpdatedDomainEventLog,
1434
1305
  zIndividualUpdatedDomainEventLog,
1306
+ zBusinessContactPersonMadePrimaryDomainEventLog,
1435
1307
  zBusinessCreatedDomainEventLog,
1308
+ zIndividualCreatedDomainEventLog,
1436
1309
  zBusinessUpdatedDomainEventLog,
1437
1310
  zBusinessStatusUpdatedDomainEventLog,
1438
- zNotificationCreatedDomainEventLog,
1439
- zUserNotificationCreatedDomainEventLog,
1440
- zTenantCreatedDomainEventLog,
1441
- zIndividualStatusUpdatedDomainEventLog,
1442
- zIndividualBillingInformationUpsertedDomainEventLog,
1443
- zBusinessBillingInformationUpsertedDomainEventLog,
1444
- zDealCreatedDomainEventLog,
1445
- zDealUpdatedDomainEventLog,
1446
- zMailCreatedDomainEventLog,
1447
- zDealColumnTransitionedDomainEventLog,
1448
1311
  zCbeEnterpriseImportedDomainEventLog,
1449
1312
  zCbeDenominationImportedDomainEventLog,
1450
1313
  zCbeContactImportedDomainEventLog,
1451
1314
  zCbeAddressImportedDomainEventLog,
1452
1315
  zCbeEstablishmentImportedDomainEventLog,
1453
- zMailSentDomainEventLog,
1316
+ zCustomFieldDefinitionCreatedDomainEventLog,
1317
+ zIndividualUserGrantCreatedDomainEventLog,
1318
+ zIndividualUserGrantEmailVerifiedDomainEventLog,
1454
1319
  zDealContactPersonLinkedDomainEventLog,
1455
- zBusinessContactPersonLinkedDomainEventLog,
1456
- zFileCreatedDomainEventLog,
1457
- zFileUploadedDomainEventLog,
1458
- zNotificationReadDomainEventLog,
1459
- zNotificationUnreadDomainEventLog,
1460
- zNotificationPreferencePresetUpdatedDomainEventLog,
1461
- zNotificationTypesMigratedDomainEventLog,
1462
- zNotificationReadAllDomainEventLog,
1463
- zTestNotificationSentDomainEventLog,
1320
+ zDealContactPersonMadePrimaryDomainEventLog,
1321
+ zDealContactPersonUnlinkedDomainEventLog,
1322
+ zDealContactPersonUpdatedDomainEventLog,
1323
+ zDealCreatedDomainEventLog,
1324
+ zDealOwnerUpdatedDomainEventLog,
1325
+ zDealUpdatedDomainEventLog,
1326
+ zDealColumnTransitionedDomainEventLog,
1327
+ zMailCreatedDomainEventLog,
1328
+ zIndividualBillingInformationUpsertedDomainEventLog,
1464
1329
  zIndividualContactPersonLinkedDomainEventLog,
1465
1330
  zIndividualContactPersonUnlinkedDomainEventLog,
1466
1331
  zIndividualContactPersonUpdatedDomainEventLog,
1467
1332
  zIndividualContactPersonMadePrimaryDomainEventLog,
1468
- zBusinessContactPersonUnlinkedDomainEventLog,
1469
- zBusinessContactPersonUpdatedDomainEventLog,
1470
- zBusinessContactPersonMadePrimaryDomainEventLog,
1471
- zTenantUpdatedDomainEventLog,
1472
- zCustomFieldDefinitionCreatedDomainEventLog,
1333
+ zIndividualStatusUpdatedDomainEventLog,
1334
+ zLocationUpdatedDomainEventLog,
1335
+ zMailTemplateCreatedDomainEventLog,
1336
+ zMailTemplateUpdatedDomainEventLog,
1473
1337
  zBusinessNoteCreatedDomainEventLog,
1474
1338
  zIndividualNoteCreatedDomainEventLog,
1475
1339
  zDealNoteCreatedDomainEventLog,
@@ -1484,18 +1348,7 @@ z.object({
1484
1348
  zDealNoteFileDeletedDomainEventLog,
1485
1349
  zBusinessNoteDeletedDomainEventLog,
1486
1350
  zIndividualNoteDeletedDomainEventLog,
1487
- zDealNoteDeletedDomainEventLog,
1488
- zBoardColumnCreatedDomainEventLog,
1489
- zBoardColumnTransitionCreatedDomainEventLog,
1490
- zBoardColumnTransitionTriggerCreatedDomainEventLog,
1491
- zDealOwnerUpdatedDomainEventLog,
1492
- zDealContactPersonMadePrimaryDomainEventLog,
1493
- zDealContactPersonUnlinkedDomainEventLog,
1494
- zDealContactPersonUpdatedDomainEventLog,
1495
- zIndividualUserGrantCreatedDomainEventLog,
1496
- zIndividualUserGrantEmailVerifiedDomainEventLog,
1497
- zMailTemplateCreatedDomainEventLog,
1498
- zMailTemplateUpdatedDomainEventLog
1351
+ zDealNoteDeletedDomainEventLog
1499
1352
  ])),
1500
1353
  meta: zViewDomainEventLogIndexResponseMeta
1501
1354
  });
@@ -1547,7 +1400,12 @@ const zGlobalSearchCollectionName = z.enum([
1547
1400
  zSearchCollectionIndividualResponse
1548
1401
  ]),
1549
1402
  text_match: z.number()
1550
- }), zSearchCollectionsResponse = z.object({ items: z.array(zSearchCollectionsResponseItem) }), zPreferenceTypes = z.object({
1403
+ }), zSearchCollectionsResponse = z.object({ items: z.array(zSearchCollectionsResponseItem) }), zNotificationPreset = z.enum([
1404
+ "all",
1405
+ "default",
1406
+ "custom",
1407
+ "none"
1408
+ ]), zNotificationType = z.enum(["user.created", "system.test-notification"]), zPreferenceTypes = z.object({
1551
1409
  email: z.array(zNotificationType),
1552
1410
  sms: z.array(zNotificationType),
1553
1411
  app: z.array(zNotificationType),
@@ -1561,7 +1419,12 @@ z.object({
1561
1419
  pushEnabled: z.boolean(),
1562
1420
  preferences: zPreferenceTypes
1563
1421
  });
1564
- const zNotificationTypeChannelConfig = z.object({
1422
+ const zNotificationChannel = z.enum([
1423
+ "email",
1424
+ "sms",
1425
+ "app",
1426
+ "push"
1427
+ ]), zNotificationTypeChannelConfig = z.object({
1565
1428
  channel: zNotificationChannel,
1566
1429
  defaultValue: z.boolean(),
1567
1430
  isSupported: z.boolean()
@@ -1583,7 +1446,7 @@ const zUpdateMyChannelNotificationPreferenceCommand = z.object({
1583
1446
  notificationUuid: z.uuid()
1584
1447
  }), zGetMyNotificationsPaginationQuery = z.object({
1585
1448
  limit: z.number().gte(0).lte(100),
1586
- key: z.optional(zGetMyNotificationsQueryKey)
1449
+ key: z.optional(z.union([zGetMyNotificationsQueryKey, z.null()]))
1587
1450
  }), zCreatedByUserResponse = z.object({
1588
1451
  uuid: z.uuid(),
1589
1452
  name: z.string()
@@ -1621,10 +1484,7 @@ z.object({
1621
1484
  const zMigrateNotificationTypesCommand = z.object({ types: z.array(zNotificationType) }), zSendTestNotificationCommand = z.object({ message: z.string() }), zViewJobsIndexSortQueryKey = z.enum(["createdAt"]), zSortDirection = z.enum(["asc", "desc"]), zViewJobsIndexSortQuery = z.object({
1622
1485
  key: zViewJobsIndexSortQueryKey,
1623
1486
  order: zSortDirection
1624
- }), zQueueName = z.enum(["system"]), zViewJobsIndexFilterQuery = z.object({
1625
- queueNames: z.optional(z.array(zQueueName)),
1626
- archived: z.optional(z.boolean()).default(!1)
1627
- }), zViewJobsIndexQueryKey = z.object({
1487
+ }), zQueueName = z.enum(["system"]), zViewJobsIndexFilterQuery = z.object({ queueNames: z.optional(z.array(zQueueName)) }), zViewJobsIndexQueryKey = z.object({
1628
1488
  createdAt: z.optional(z.iso.datetime()),
1629
1489
  id: z.string()
1630
1490
  }), zViewJobsIndexPaginationQuery = z.object({
@@ -1803,7 +1663,7 @@ const zUpdateIndividualCommand = z.object({
1803
1663
  }), zViewIndividualActivityLogIndexPaginationQuery = z.object({
1804
1664
  limit: z.number().gte(0).lte(100),
1805
1665
  key: z.optional(z.union([zViewIndividualActivityLogIndexQueryKey, z.null()]))
1806
- }), zDomainEventType = z.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.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(",")), zIndividualActivityLogItemResponse = z.object({
1666
+ }), zDomainEventType = z.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(",")), zIndividualActivityLogItemResponse = z.object({
1807
1667
  createdAt: z.iso.datetime(),
1808
1668
  type: zDomainEventType,
1809
1669
  message: z.string(),
@@ -2056,233 +1916,74 @@ z.object({
2056
1916
  fileUuid: z.uuid()
2057
1917
  });
2058
1918
  const zLinkContactPersonToIndividualCommand = z.object({
2059
- contactPersonUuid: z.uuid(),
2060
- position: z.union([z.string(), z.null()]),
2061
- email: z.union([z.string(), z.null()]),
2062
- phone: z.union([z.string(), z.null()]),
2063
- mobilePhone: z.union([z.string(), z.null()])
2064
- }), zLinkContactPersonToIndividualResponse = z.object({
2065
- individualUuid: z.uuid(),
2066
- contactPersonUuid: z.uuid()
2067
- });
2068
- z.object({
2069
- detail: z.optional(z.string()),
2070
- status: z.enum(["404"]),
2071
- code: z.enum(["individual_contact_person_not_found"])
2072
- });
2073
- const zUnlinkContactPersonFromIndividualCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateIndividualContactPersonCommand = z.object({
2074
- firstName: z.string(),
2075
- lastName: z.string(),
2076
- email: z.union([z.string(), z.null()]),
2077
- phone: z.union([z.string(), z.null()]),
2078
- mobilePhone: z.union([z.string(), z.null()]),
2079
- position: z.union([z.string(), z.null()])
2080
- }), zViewIndividualContactPersonDetailResponse = z.object({
2081
- individualUuid: z.uuid(),
2082
- contactPersonUuid: z.uuid(),
2083
- firstName: z.string(),
2084
- lastName: z.string(),
2085
- email: z.union([z.email(), z.null()]),
2086
- phone: z.union([z.string(), z.null()]),
2087
- mobilePhone: z.union([z.string(), z.null()]),
2088
- position: z.union([z.string(), z.null()]),
2089
- isPrimary: z.boolean()
2090
- }), zLinkContactPersonToBusinessCommand = z.object({
2091
- contactPersonUuid: z.uuid(),
2092
- position: z.union([z.string(), z.null()]),
2093
- email: z.union([z.string(), z.null()]),
2094
- phone: z.union([z.string(), z.null()]),
2095
- mobilePhone: z.union([z.string(), z.null()])
2096
- }), zLinkContactPersonToBusinessResponse = z.object({
2097
- businessUuid: z.uuid(),
2098
- contactPersonUuid: z.uuid()
2099
- });
2100
- z.object({
2101
- detail: z.optional(z.string()),
2102
- status: z.enum(["400"]),
2103
- code: z.enum(["primary_contact_of_business_not_unlinkable"])
2104
- }), z.object({
2105
- detail: z.optional(z.string()),
2106
- status: z.enum(["404"]),
2107
- code: z.enum(["business_contact_person_not_found"])
2108
- });
2109
- const zUnlinkContactPersonFromBusinessCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateBusinessContactPersonCommand = z.object({
2110
- firstName: z.string(),
2111
- lastName: z.string(),
2112
- email: z.union([z.string(), z.null()]),
2113
- phone: z.union([z.string(), z.null()]),
2114
- mobilePhone: z.union([z.string(), z.null()]),
2115
- position: z.union([z.string(), z.null()])
2116
- }), zViewBusinessContactPersonDetailResponse = z.object({
2117
- businessUuid: z.uuid(),
2118
- contactPersonUuid: z.uuid(),
2119
- firstName: z.string(),
2120
- lastName: z.string(),
2121
- email: z.union([z.email(), z.null()]),
2122
- phone: z.union([z.string(), z.null()]),
2123
- mobilePhone: z.union([z.string(), z.null()]),
2124
- position: z.union([z.string(), z.null()]),
2125
- isPrimary: z.boolean()
2126
- }), zBrandColorsCommand = z.object({
2127
- brand25: z.string(),
2128
- brand50: z.string(),
2129
- brand100: z.string(),
2130
- brand200: z.string(),
2131
- brand300: z.string(),
2132
- brand400: z.string(),
2133
- brand500: z.string(),
2134
- brand600: z.string(),
2135
- brand700: z.string(),
2136
- brand800: z.string(),
2137
- brand900: z.string(),
2138
- brand950: z.string()
2139
- }), zCreateTenantCommand = z.object({
2140
- name: z.string(),
2141
- slug: z.string(),
2142
- domain: z.string(),
2143
- oidcIssuer: z.string(),
2144
- oidcAudience: z.string(),
2145
- oidcOrganizationId: z.string(),
2146
- nativeClientId: z.string(),
2147
- czOidcIssuer: z.string(),
2148
- czOidcAudience: z.string(),
2149
- czOidcOrganizationId: z.string(),
2150
- czNativeClientId: z.string(),
2151
- brandColors: zBrandColorsCommand
2152
- });
2153
- z.object({
2154
- uuid: z.uuid(),
2155
- name: z.string(),
2156
- slug: z.string(),
2157
- oidcIssuer: z.string(),
2158
- oidcAudience: z.string(),
2159
- nativeClientId: z.string(),
2160
- czOidcIssuer: z.string(),
2161
- czOidcAudience: z.string(),
2162
- czOidcOrganizationId: z.string(),
2163
- czNativeClientId: z.string()
2164
- });
2165
- const zUpdateTenantCommand = z.object({
2166
- name: z.string(),
2167
- slug: z.string(),
2168
- domain: z.string(),
2169
- oidcIssuer: z.string(),
2170
- oidcAudience: z.string()
2171
- }), zEntityType = z.enum(["individual", "business"]), zLocalizedString = z.object({
2172
- language: zLocale,
2173
- value: z.string()
2174
- }), zEntityColor = z.enum([
2175
- "moss",
2176
- "green-light",
2177
- "green",
2178
- "teal",
2179
- "cyan",
2180
- "blue-light",
2181
- "blue",
2182
- "blue-dark",
2183
- "indigo",
2184
- "violet",
2185
- "purple",
2186
- "fuchsia",
2187
- "pink",
2188
- "rose",
2189
- "orange-dark",
2190
- "orange",
2191
- "yellow",
2192
- "error",
2193
- "warning",
2194
- "success"
2195
- ]), zTenantEntityConfigCommand = z.object({
2196
- entityType: zEntityType,
2197
- entityName: z.array(zLocalizedString),
2198
- entityColor: zEntityColor
2199
- }), zUpdateTenantEntitiesConfigCommand = z.object({ entities: z.array(zTenantEntityConfigCommand) }), zTenantCompanywebLocale = z.enum([
2200
- "NL",
2201
- "FR",
2202
- "EN"
2203
- ]), zTenantCompanywebConfigCommand = z.object({
2204
- login: z.string(),
2205
- password: z.string(),
2206
- secret: z.string(),
2207
- language: zTenantCompanywebLocale,
2208
- integrator: z.string()
2209
- }), zTenantBusinessConfigCommand = z.object({
2210
- viesValidation: z.boolean(),
2211
- requireIndividualOnCreate: z.boolean(),
2212
- companyweb: z.union([zTenantCompanywebConfigCommand, z.null()])
2213
- }), zUpdateTenantBusinessConfigCommand = z.object({ businessConfig: zTenantBusinessConfigCommand }), zBillingInformationRequirement = z.enum([
2214
- "EMAIL_ONLY",
2215
- "ADDRESS_ONLY",
2216
- "EMAIL_AND_ADDRESS",
2217
- "EMAIL_OR_ADDRESS"
2218
- ]), zTenantBillingConfigCommand = z.object({
2219
- individualBillingInformationRequirement: zBillingInformationRequirement,
2220
- businessBillingInformationRequirement: zBillingInformationRequirement
2221
- }), zUpdateTenantBillingConfigCommand = z.object({ billingConfig: zTenantBillingConfigCommand });
2222
- z.object({
2223
- uuid: z.uuid(),
2224
- createdAt: z.iso.datetime(),
2225
- updatedAt: z.iso.datetime(),
2226
- name: z.string(),
2227
- slug: z.string(),
2228
- domain: z.union([z.string(), z.null()])
2229
- });
2230
- const zTenantResponse = z.object({
2231
- uuid: z.uuid(),
2232
- createdAt: z.iso.datetime(),
2233
- updatedAt: z.iso.datetime(),
2234
- name: z.string(),
2235
- slug: z.string(),
2236
- domain: z.union([z.string(), z.null()])
1919
+ contactPersonUuid: z.uuid(),
1920
+ position: z.union([z.string(), z.null()]),
1921
+ email: z.union([z.string(), z.null()]),
1922
+ phone: z.union([z.string(), z.null()]),
1923
+ mobilePhone: z.union([z.string(), z.null()])
1924
+ }), zLinkContactPersonToIndividualResponse = z.object({
1925
+ individualUuid: z.uuid(),
1926
+ contactPersonUuid: z.uuid()
2237
1927
  });
2238
1928
  z.object({
2239
- items: z.array(zTenantResponse),
2240
- meta: zPaginatedOffsetResponseMeta
1929
+ detail: z.optional(z.string()),
1930
+ status: z.enum(["404"]),
1931
+ code: z.enum(["individual_contact_person_not_found"])
2241
1932
  });
2242
- const zTenantConfigEntities = z.object({
2243
- entityType: zEntityType,
2244
- entityName: z.string(),
2245
- entityColor: zEntityColor
2246
- }), zTenantConfigBusiness = z.object({
2247
- viesValidation: z.boolean(),
2248
- requireIndividualOnCreate: z.boolean()
2249
- }), zTenantConfigBilling = z.object({
2250
- individualBillingInformationRequirement: zBillingInformationRequirement,
2251
- businessBillingInformationRequirement: zBillingInformationRequirement
2252
- }), zTenantDealConfigResponse = z.object({
2253
- enableBusinessDeals: z.boolean(),
2254
- enableIndividualDeals: z.boolean(),
2255
- creatableBusinessStatuses: z.array(zBusinessStatus),
2256
- creatableIndividualStatuses: z.array(zIndividualStatus)
2257
- }), zViewTenantConfigDetailResponse = z.object({
2258
- uuid: z.uuid(),
2259
- entities: z.array(zTenantConfigEntities),
2260
- businessConfig: zTenantConfigBusiness,
2261
- billingConfig: zTenantConfigBilling,
2262
- dealConfig: zTenantDealConfigResponse
2263
- }), zRecentEntityType = z.enum([
2264
- "individual",
2265
- "business",
2266
- "deal"
2267
- ]), zViewRecentEntitiesFilterQuery = z.object({ types: z.optional(z.array(zRecentEntityType)) }), zViewRecentEntitiesResponseItem = z.object({
2268
- type: z.enum([
2269
- "individual",
2270
- "business",
2271
- "deal"
2272
- ]),
2273
- uuid: z.uuid(),
2274
- name: z.string(),
2275
- createdAt: z.iso.datetime()
2276
- }), zViewRecentEntitiesResponse = z.object({
2277
- items: z.array(zViewRecentEntitiesResponseItem),
2278
- meta: zPaginatedOffsetResponseMeta
1933
+ const zUnlinkContactPersonFromIndividualCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateIndividualContactPersonCommand = z.object({
1934
+ firstName: z.string(),
1935
+ lastName: z.string(),
1936
+ email: z.union([z.string(), z.null()]),
1937
+ phone: z.union([z.string(), z.null()]),
1938
+ mobilePhone: z.union([z.string(), z.null()]),
1939
+ position: z.union([z.string(), z.null()])
1940
+ }), zViewIndividualContactPersonDetailResponse = z.object({
1941
+ individualUuid: z.uuid(),
1942
+ contactPersonUuid: z.uuid(),
1943
+ firstName: z.string(),
1944
+ lastName: z.string(),
1945
+ email: z.union([z.email(), z.null()]),
1946
+ phone: z.union([z.string(), z.null()]),
1947
+ mobilePhone: z.union([z.string(), z.null()]),
1948
+ position: z.union([z.string(), z.null()]),
1949
+ isPrimary: z.boolean()
1950
+ }), zLinkContactPersonToBusinessCommand = z.object({
1951
+ contactPersonUuid: z.uuid(),
1952
+ position: z.union([z.string(), z.null()]),
1953
+ email: z.union([z.string(), z.null()]),
1954
+ phone: z.union([z.string(), z.null()]),
1955
+ mobilePhone: z.union([z.string(), z.null()])
1956
+ }), zLinkContactPersonToBusinessResponse = z.object({
1957
+ businessUuid: z.uuid(),
1958
+ contactPersonUuid: z.uuid()
2279
1959
  });
2280
1960
  z.object({
2281
1961
  detail: z.optional(z.string()),
2282
- status: z.enum(["409"]),
2283
- code: z.enum(["user_connected_to_other_tenant"])
1962
+ status: z.enum(["400"]),
1963
+ code: z.enum(["primary_contact_of_business_not_unlinkable"])
1964
+ }), z.object({
1965
+ detail: z.optional(z.string()),
1966
+ status: z.enum(["404"]),
1967
+ code: z.enum(["business_contact_person_not_found"])
2284
1968
  });
2285
- const zAssignUserAsAdminCommand = z.object({ userId: z.string() }), zStringValidationRulesCommand = z.object({
1969
+ const zUnlinkContactPersonFromBusinessCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateBusinessContactPersonCommand = z.object({
1970
+ firstName: z.string(),
1971
+ lastName: z.string(),
1972
+ email: z.union([z.string(), z.null()]),
1973
+ phone: z.union([z.string(), z.null()]),
1974
+ mobilePhone: z.union([z.string(), z.null()]),
1975
+ position: z.union([z.string(), z.null()])
1976
+ }), zViewBusinessContactPersonDetailResponse = z.object({
1977
+ businessUuid: z.uuid(),
1978
+ contactPersonUuid: z.uuid(),
1979
+ firstName: z.string(),
1980
+ lastName: z.string(),
1981
+ email: z.union([z.email(), z.null()]),
1982
+ phone: z.union([z.string(), z.null()]),
1983
+ mobilePhone: z.union([z.string(), z.null()]),
1984
+ position: z.union([z.string(), z.null()]),
1985
+ isPrimary: z.boolean()
1986
+ }), zStringValidationRulesCommand = z.object({
2286
1987
  minLength: z.optional(z.number()),
2287
1988
  maxLength: z.optional(z.number()),
2288
1989
  regex: z.optional(z.string())
@@ -2292,14 +1993,14 @@ const zAssignUserAsAdminCommand = z.object({ userId: z.string() }), zStringValid
2292
1993
  }), zValidationSelectOption = z.object({
2293
1994
  key: z.string(),
2294
1995
  translations: z.array(zLocalizedString)
2295
- }), zSelectValidationRulesCommand = z.object({ options: z.optional(z.array(zValidationSelectOption)) }), zDateValidationRulesCommand = z.object({
1996
+ }), zSelectValidationRulesCommand = z.object({ options: z.array(zValidationSelectOption) }), zDateValidationRulesCommand = z.object({
2296
1997
  minDate: z.optional(z.iso.date()),
2297
1998
  maxDate: z.optional(z.iso.date())
2298
1999
  }), zMultiSelectValidationRulesCommand = z.object({
2299
- options: z.optional(z.array(zValidationSelectOption)),
2000
+ options: z.array(zValidationSelectOption),
2300
2001
  minSelections: z.optional(z.number()),
2301
2002
  maxSelections: z.optional(z.number())
2302
- }), zCheckboxValidationRulesCommand = z.object({ defaultValue: z.optional(z.boolean()) }), zRadioButtonValidationRulesCommand = z.object({ options: z.optional(z.array(zValidationSelectOption)) }), zCustomFieldEntityType = z.enum(["individual", "business"]), zCustomFieldType = z.enum([
2003
+ }), zCheckboxValidationRulesCommand = z.object({ defaultValue: z.optional(z.boolean()) }), zRadioButtonValidationRulesCommand = z.object({ options: z.array(zValidationSelectOption) }), zCustomFieldEntityType = z.enum(["individual", "business"]), zCustomFieldType = z.enum([
2303
2004
  "string",
2304
2005
  "number",
2305
2006
  "date",
@@ -2404,7 +2105,7 @@ const zViewIndividualBillingInformationDetailResponse = z.object({
2404
2105
  invoiceEmail: z.union([z.email(), z.null()]),
2405
2106
  invoiceCcEmails: z.array(z.string()),
2406
2107
  billingLocation: z.union([zLocationDetailResponse, z.null()])
2407
- }), zImportCbeCodesCommand = z.object({ fileUuid: z.string() }), zImportCbeEnterprisesCommand = z.object({ fileUuid: z.string() }), zImportCbeDenominationCommand = z.object({ fileUuid: z.union([z.string(), z.null()]) }), zImportCbeContactCommand = z.object({ fileUuid: z.union([z.string(), z.null()]) }), zImportCbeAddressCommand = z.object({ fileUuid: z.union([z.string(), z.null()]) }), zImportCbeEstablishmentsCommand = z.object({ fileUuid: z.string() }), zCbeEnterpriseStatus = z.enum(["active", "inactive"]), zSearchCbeEnterprisesView = z.object({
2108
+ }), zImportCbeCodesCommand = z.object({ fileUuid: z.string() }), zImportCbeEnterprisesCommand = z.object({ fileUuid: z.string() }), zImportCbeDenominationCommand = z.object({ fileUuid: z.string() }), zImportCbeContactCommand = z.object({ fileUuid: z.string() }), zImportCbeAddressCommand = z.object({ fileUuid: z.string() }), zImportCbeEstablishmentsCommand = z.object({ fileUuid: z.string() }), zCbeEnterpriseStatus = z.enum(["active", "inactive"]), zSearchCbeEnterprisesView = z.object({
2408
2109
  enterpriseNumber: z.string(),
2409
2110
  status: zCbeEnterpriseStatus,
2410
2111
  startDate: z.union([z.string(), z.null()]),
@@ -2418,7 +2119,7 @@ const zViewIndividualBillingInformationDetailResponse = z.object({
2418
2119
  }), zSearchCbeEnterprisesResponse = z.object({
2419
2120
  items: z.array(zSearchCbeEnterprisesView),
2420
2121
  meta: zPaginatedOffsetResponseMeta
2421
- }), zSearchCbeEstablishmentsFilterQuery = z.object({ enterpriseNumber: z.string() }), zSearchCbeEstablishmentsView = z.object({
2122
+ }), zSearchCbeEstablishmentsFilterQuery = z.object({ enterpriseNumber: z.optional(z.string()) }), zSearchCbeEstablishmentsView = z.object({
2422
2123
  establishmentNumber: z.string(),
2423
2124
  enterpriseNumber: z.string(),
2424
2125
  startDate: z.union([z.string(), z.null()]),
@@ -2443,7 +2144,7 @@ const zBoardColumnConfigCommand = z.object({
2443
2144
  displayName: z.array(zLocalizedString),
2444
2145
  position: z.number(),
2445
2146
  color: zEntityColor,
2446
- config: zBoardColumnConfigCommand
2147
+ config: z.optional(zBoardColumnConfigCommand)
2447
2148
  }), zCreateBoardTransitionTriggerEmailConfigCommand = z.object({ mailTemplateKey: z.string() }), zCreateBoardTransitionTriggerCommand = z.object({
2448
2149
  triggerType: zBoardColumnTransitionTriggerType,
2449
2150
  config: z.optional(zCreateBoardTransitionTriggerEmailConfigCommand)
@@ -2516,7 +2217,7 @@ const zDealSource = z.enum([
2516
2217
  type: zClientType
2517
2218
  }), zCreateDealCommand = z.object({
2518
2219
  name: z.string(),
2519
- dealLanguage: zContentLocale,
2220
+ dealLanguage: zSdkContentLocale,
2520
2221
  dealSource: zDealSource,
2521
2222
  clientId: zClientIdCommand,
2522
2223
  dealOwnerUuid: z.union([z.uuid(), z.null()])
@@ -2528,7 +2229,7 @@ z.object({
2528
2229
  });
2529
2230
  const zUpdateDealCommand = z.object({
2530
2231
  name: z.optional(z.string()),
2531
- dealLanguage: z.optional(zContentLocale),
2232
+ dealLanguage: z.optional(zSdkContentLocale),
2532
2233
  dealSource: z.optional(zDealSource),
2533
2234
  dealOwnerUuid: z.optional(z.union([z.uuid(), z.null()]))
2534
2235
  }), zUpdateDealOwnerCommand = z.object({ dealOwnerUuid: z.union([z.uuid(), z.null()]) }), zDealColumnTransitionNotAllowedErrorMeta = z.object({
@@ -2572,7 +2273,7 @@ const zTransitionDealColumnCommand = z.object({ boardColumnUuid: z.uuid() }), zC
2572
2273
  }), zViewDealDetailResponse = z.object({
2573
2274
  uuid: z.uuid(),
2574
2275
  name: z.string(),
2575
- dealLanguage: zContentLocale,
2276
+ dealLanguage: zSdkContentLocale,
2576
2277
  dealSource: zDealSource,
2577
2278
  client: zDealClientResponse,
2578
2279
  createdBy: zDealUserResponse,
@@ -2755,7 +2456,7 @@ const zLocalizedStringCommand = z.object({
2755
2456
  language: zLocale,
2756
2457
  value: z.string()
2757
2458
  }), zCreateMailTemplateLocaleAttachmentCommand = z.object({ fileUuid: z.uuid() }), zCreateMailTemplateLocaleCommand = z.object({
2758
- language: zContentLocale,
2459
+ language: zSdkContentLocale,
2759
2460
  replyTo: z.union([z.email(), z.null()]),
2760
2461
  subject: z.string(),
2761
2462
  message: z.string(),
@@ -2769,7 +2470,7 @@ const zLocalizedStringCommand = z.object({
2769
2470
  });
2770
2471
  z.object({ uuid: z.uuid() });
2771
2472
  const zUpdateMailTemplateLocaleCommand = z.object({
2772
- language: zContentLocale,
2473
+ language: zSdkContentLocale,
2773
2474
  replyTo: z.union([z.email(), z.null()]),
2774
2475
  subject: z.string(),
2775
2476
  message: z.string(),
@@ -2936,44 +2637,71 @@ z.object({
2936
2637
  }), z.object({
2937
2638
  body: z.optional(z.never()),
2938
2639
  path: z.optional(z.never()),
2939
- query: z.object({
2940
- fresh: z.boolean(),
2941
- collections: z.optional(z.array(zTypesenseCollectionName))
2942
- })
2640
+ query: z.optional(z.never())
2943
2641
  }), z.object({
2944
2642
  body: z.optional(z.never()),
2945
2643
  path: z.optional(z.never()),
2946
- query: z.optional(z.object({ collections: z.optional(z.array(zTypesenseCollectionName)) }))
2644
+ query: z.optional(z.object({
2645
+ pagination: z.optional(zPaginatedOffsetQuery),
2646
+ search: z.optional(z.string())
2647
+ }))
2947
2648
  }), z.object({
2948
- body: z.optional(z.never()),
2649
+ body: zCreateTenantCommand,
2949
2650
  path: z.optional(z.never()),
2950
2651
  query: z.optional(z.never())
2951
2652
  }), z.object({
2952
2653
  body: z.optional(z.never()),
2953
- path: z.optional(z.never()),
2654
+ path: z.object({ uuid: z.string() }),
2954
2655
  query: z.optional(z.never())
2955
2656
  }), z.object({
2956
- body: zSetUserRolesCommand,
2957
- path: z.object({ user: z.string() }),
2657
+ body: zUpdateTenantCommand,
2658
+ path: z.object({ uuid: z.string() }),
2958
2659
  query: z.optional(z.never())
2959
- }), z.object({
2960
- body: z.optional(z.never()),
2961
- path: z.optional(z.never()),
2660
+ }), z.void(), z.object({
2661
+ body: zUpdateTenantEntitiesConfigCommand,
2662
+ path: z.object({ uuid: z.string() }),
2962
2663
  query: z.optional(z.never())
2963
- }), z.object({
2964
- body: z.optional(z.never()),
2664
+ }), z.void(), z.object({
2665
+ body: zUpdateTenantBusinessConfigCommand,
2965
2666
  path: z.object({ uuid: z.string() }),
2966
2667
  query: z.optional(z.never())
2967
- });
2968
- const zViewUserIndexV1Data = z.object({
2668
+ }), z.void(), z.object({
2669
+ body: zUpdateTenantBillingConfigCommand,
2670
+ path: z.object({ uuid: z.string() }),
2671
+ query: z.optional(z.never())
2672
+ }), z.void();
2673
+ const zViewTenantConfigDetailV1Data = z.object({
2674
+ body: z.optional(z.never()),
2675
+ path: z.optional(z.never()),
2676
+ query: z.optional(z.never())
2677
+ }), zViewTenantConfigDetailV1Response = zViewTenantConfigDetailResponse, zViewRecentEntitiesV1Data = z.object({
2969
2678
  body: z.optional(z.never()),
2970
2679
  path: z.optional(z.never()),
2971
2680
  query: z.optional(z.object({
2972
2681
  pagination: z.optional(zPaginatedOffsetQuery),
2973
- search: z.optional(z.string())
2682
+ filter: z.optional(zViewRecentEntitiesFilterQuery)
2974
2683
  }))
2975
- }), zViewUserIndexV1Response = zViewUserIndexResponse;
2684
+ }), zViewRecentEntitiesV1Response = zViewRecentEntitiesResponse;
2976
2685
  z.object({
2686
+ body: zAssignUserAsAdminCommand,
2687
+ path: z.object({ uuid: z.string() }),
2688
+ query: z.optional(z.never())
2689
+ }), z.object({
2690
+ body: z.optional(z.never()),
2691
+ path: z.optional(z.never()),
2692
+ query: z.object({
2693
+ fresh: z.boolean(),
2694
+ collections: z.optional(z.array(zTypesenseCollectionName))
2695
+ })
2696
+ }), z.object({
2697
+ body: z.optional(z.never()),
2698
+ path: z.optional(z.never()),
2699
+ query: z.optional(z.object({ collections: z.optional(z.array(zTypesenseCollectionName)) }))
2700
+ }), z.object({
2701
+ body: z.optional(z.never()),
2702
+ path: z.optional(z.never()),
2703
+ query: z.optional(z.never())
2704
+ }), z.object({
2977
2705
  body: z.optional(z.never()),
2978
2706
  path: z.optional(z.never()),
2979
2707
  query: z.optional(z.never())
@@ -2989,11 +2717,28 @@ z.object({
2989
2717
  body: z.optional(z.never()),
2990
2718
  path: z.optional(z.never()),
2991
2719
  query: z.optional(z.never())
2720
+ }), z.object({
2721
+ body: zSetUserRolesCommand,
2722
+ path: z.object({ user: z.string() }),
2723
+ query: z.optional(z.never())
2992
2724
  }), z.object({
2993
2725
  body: z.optional(z.never()),
2994
2726
  path: z.optional(z.never()),
2995
2727
  query: z.optional(z.never())
2996
2728
  }), z.object({
2729
+ body: z.optional(z.never()),
2730
+ path: z.object({ uuid: z.string() }),
2731
+ query: z.optional(z.never())
2732
+ });
2733
+ const zViewUserIndexV1Data = z.object({
2734
+ body: z.optional(z.never()),
2735
+ path: z.optional(z.never()),
2736
+ query: z.optional(z.object({
2737
+ pagination: z.optional(zPaginatedOffsetQuery),
2738
+ search: z.optional(z.string())
2739
+ }))
2740
+ }), zViewUserIndexV1Response = zViewUserIndexResponse;
2741
+ z.object({
2997
2742
  body: z.optional(z.never()),
2998
2743
  path: z.optional(z.never()),
2999
2744
  query: z.optional(z.never())
@@ -3026,11 +2771,17 @@ const zCreateFileV1Data = z.object({
3026
2771
  body: zCreateFileCommand,
3027
2772
  path: z.optional(z.never()),
3028
2773
  query: z.optional(z.never())
3029
- }), zCreateFileV1Response = zCreateFileResponse, zConfirmFileUploadV1Data = z.object({
2774
+ }), zCreateFileV1Response = zCreateFileResponse;
2775
+ z.object({
2776
+ body: z.optional(z.never()),
2777
+ path: z.object({ file: z.string() }),
2778
+ query: z.optional(z.never())
2779
+ }), z.void();
2780
+ const zConfirmFileUploadV2Data = z.object({
3030
2781
  body: zConfirmFileUploadCommand,
3031
2782
  path: z.object({ file: z.string() }),
3032
2783
  query: z.optional(z.never())
3033
- }), zConfirmFileUploadV1Response = z.void();
2784
+ }), zConfirmFileUploadV2Response = z.void();
3034
2785
  z.object({
3035
2786
  body: z.optional(z.never()),
3036
2787
  path: z.object({ file: z.string() }),
@@ -3067,7 +2818,7 @@ const zSearchCollectionsV1Data = z.object({
3067
2818
  body: z.optional(z.never()),
3068
2819
  path: z.optional(z.never()),
3069
2820
  query: z.object({
3070
- filter: zSearchCollectionsFilterQuery,
2821
+ filter: z.optional(zSearchCollectionsFilterQuery),
3071
2822
  search: z.string()
3072
2823
  })
3073
2824
  }), zSearchCollectionsV1Response = zSearchCollectionsResponse;
@@ -3137,16 +2888,16 @@ z.object({
3137
2888
  }), z.object({
3138
2889
  body: z.optional(z.never()),
3139
2890
  path: z.object({ jobId: z.string() }),
3140
- query: z.object({ isArchived: z.boolean() })
2891
+ query: z.optional(z.never())
3141
2892
  }), z.object({
3142
2893
  body: z.optional(z.never()),
3143
2894
  path: z.optional(z.never()),
3144
- query: z.object({
2895
+ query: z.optional(z.object({
3145
2896
  pagination: z.optional(zPaginatedOffsetQuery),
3146
2897
  filter: z.optional(zViewLocationIndexFilterQuery),
3147
2898
  search: z.optional(z.string()),
3148
- sort: z.array(zViewLocationIndexSortQuery)
3149
- })
2899
+ sort: z.optional(z.array(zViewLocationIndexSortQuery))
2900
+ }))
3150
2901
  }), z.object({
3151
2902
  body: zCreateLocationCommand,
3152
2903
  path: z.optional(z.never()),
@@ -3357,57 +3108,7 @@ const zLinkContactPersonToIndividualV1Data = z.object({
3357
3108
  contactPersonUuid: z.string()
3358
3109
  }),
3359
3110
  query: z.optional(z.never())
3360
- }), zMakeBusinessContactPersonPrimaryV1Response = z.void();
3361
- z.object({
3362
- body: z.optional(z.never()),
3363
- path: z.optional(z.never()),
3364
- query: z.optional(z.object({
3365
- pagination: z.optional(zPaginatedOffsetQuery),
3366
- search: z.optional(z.string())
3367
- }))
3368
- }), z.object({
3369
- body: zCreateTenantCommand,
3370
- path: z.optional(z.never()),
3371
- query: z.optional(z.never())
3372
- }), z.object({
3373
- body: z.optional(z.never()),
3374
- path: z.object({ uuid: z.string() }),
3375
- query: z.optional(z.never())
3376
- }), z.object({
3377
- body: zUpdateTenantCommand,
3378
- path: z.object({ uuid: z.string() }),
3379
- query: z.optional(z.never())
3380
- }), z.void(), z.object({
3381
- body: zUpdateTenantEntitiesConfigCommand,
3382
- path: z.object({ uuid: z.string() }),
3383
- query: z.optional(z.never())
3384
- }), z.void(), z.object({
3385
- body: zUpdateTenantBusinessConfigCommand,
3386
- path: z.object({ uuid: z.string() }),
3387
- query: z.optional(z.never())
3388
- }), z.void(), z.object({
3389
- body: zUpdateTenantBillingConfigCommand,
3390
- path: z.object({ uuid: z.string() }),
3391
- query: z.optional(z.never())
3392
- }), z.void();
3393
- const zViewTenantConfigDetailV1Data = z.object({
3394
- body: z.optional(z.never()),
3395
- path: z.optional(z.never()),
3396
- query: z.optional(z.never())
3397
- }), zViewTenantConfigDetailV1Response = zViewTenantConfigDetailResponse, zViewRecentEntitiesV1Data = z.object({
3398
- body: z.optional(z.never()),
3399
- path: z.optional(z.never()),
3400
- query: z.optional(z.object({
3401
- pagination: z.optional(zPaginatedOffsetQuery),
3402
- filter: z.optional(zViewRecentEntitiesFilterQuery)
3403
- }))
3404
- }), zViewRecentEntitiesV1Response = zViewRecentEntitiesResponse;
3405
- z.object({
3406
- body: zAssignUserAsAdminCommand,
3407
- path: z.object({ uuid: z.string() }),
3408
- query: z.optional(z.never())
3409
- });
3410
- const zViewCustomFieldDefinitionIndexV1Data = z.object({
3111
+ }), zMakeBusinessContactPersonPrimaryV1Response = z.void(), zViewCustomFieldDefinitionIndexV1Data = z.object({
3411
3112
  body: z.optional(z.never()),
3412
3113
  path: z.optional(z.never()),
3413
3114
  query: z.object({ filter: zViewCustomFieldDefinitionIndexFilterQuery })
@@ -4061,7 +3762,17 @@ const createConfig = (u = {}) => ({
4061
3762
  },
4062
3763
  trace: G("TRACE")
4063
3764
  };
4064
- })(createConfig({ throwOnError: !0 })), viewUserIndexV1 = (u) => (u?.client ?? client).get({
3765
+ })(createConfig({ throwOnError: !0 })), viewTenantConfigDetailV1 = (u) => (u?.client ?? client).get({
3766
+ requestValidator: async (u) => await zViewTenantConfigDetailV1Data.parseAsync(u),
3767
+ responseValidator: async (u) => await zViewTenantConfigDetailV1Response.parseAsync(u),
3768
+ url: "/api/v1/tenant-configs",
3769
+ ...u
3770
+ }), viewRecentEntitiesV1 = (u) => (u?.client ?? client).get({
3771
+ requestValidator: async (u) => await zViewRecentEntitiesV1Data.parseAsync(u),
3772
+ responseValidator: async (u) => await zViewRecentEntitiesV1Response.parseAsync(u),
3773
+ url: "/api/v1/recent-entities",
3774
+ ...u
3775
+ }), viewUserIndexV1 = (u) => (u?.client ?? client).get({
4065
3776
  requestValidator: async (u) => await zViewUserIndexV1Data.parseAsync(u),
4066
3777
  responseValidator: async (u) => await zViewUserIndexV1Response.parseAsync(u),
4067
3778
  url: "/api/v1/users",
@@ -4075,10 +3786,10 @@ const createConfig = (u = {}) => ({
4075
3786
  "Content-Type": "application/json",
4076
3787
  ...u.headers
4077
3788
  }
4078
- }), confirmFileUploadV1 = (u) => (u.client ?? client).post({
4079
- requestValidator: async (u) => await zConfirmFileUploadV1Data.parseAsync(u),
4080
- responseValidator: async (u) => await zConfirmFileUploadV1Response.parseAsync(u),
4081
- url: "/api/v1/files/{file}/confirm-upload",
3789
+ }), confirmFileUploadV2 = (u) => (u.client ?? client).post({
3790
+ requestValidator: async (u) => await zConfirmFileUploadV2Data.parseAsync(u),
3791
+ responseValidator: async (u) => await zConfirmFileUploadV2Response.parseAsync(u),
3792
+ url: "/api/v2/files/{file}/confirm-upload",
4082
3793
  ...u,
4083
3794
  headers: {
4084
3795
  "Content-Type": "application/json",
@@ -4294,16 +4005,6 @@ const createConfig = (u = {}) => ({
4294
4005
  responseValidator: async (u) => await zMakeBusinessContactPersonPrimaryV1Response.parseAsync(u),
4295
4006
  url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}/primary",
4296
4007
  ...u
4297
- }), viewTenantConfigDetailV1 = (u) => (u?.client ?? client).get({
4298
- requestValidator: async (u) => await zViewTenantConfigDetailV1Data.parseAsync(u),
4299
- responseValidator: async (u) => await zViewTenantConfigDetailV1Response.parseAsync(u),
4300
- url: "/api/v1/tenant-configs",
4301
- ...u
4302
- }), viewRecentEntitiesV1 = (u) => (u?.client ?? client).get({
4303
- requestValidator: async (u) => await zViewRecentEntitiesV1Data.parseAsync(u),
4304
- responseValidator: async (u) => await zViewRecentEntitiesV1Response.parseAsync(u),
4305
- url: "/api/v1/recent-entities",
4306
- ...u
4307
4008
  }), viewCustomFieldDefinitionIndexV1 = (u) => (u.client ?? client).get({
4308
4009
  requestValidator: async (u) => await zViewCustomFieldDefinitionIndexV1Data.parseAsync(u),
4309
4010
  responseValidator: async (u) => await zViewCustomFieldDefinitionIndexV1Response.parseAsync(u),
@@ -4459,4 +4160,4 @@ const createConfig = (u = {}) => ({
4459
4160
  ...u.headers
4460
4161
  }
4461
4162
  });
4462
- export { viewIndividualStatisticsV1 as $, updateIndividualV1 as A, viewBusinessNotesIndexV1 as B, unlinkContactPersonFromDealV1 as C, updateDealContactPersonV1 as D, updateBusinessV1 as E, viewBusinessActivityLogIndexV1 as F, viewDealIndexV1 as G, viewCustomFieldDefinitionIndexV1 as H, viewBusinessBillingInformationDetailV1 as I, viewIndividualBillingInformationDetailV1 as J, viewDealNotesIndexV1 as K, viewBusinessContactPersonDetailV1 as L, updateNoteV1 as M, upsertBusinessBillingInformationV1 as N, updateDealV1 as O, upsertIndividualBillingInformationV1 as P, viewIndividualNotesIndexV1 as Q, viewBusinessDetailV1 as R, unlinkContactPersonFromBusinessV1 as S, updateBusinessContactPersonV1 as T, viewDealContactPersonDetailV1 as U, viewBusinessStatisticsV1 as V, viewDealDetailV1 as W, viewIndividualDetailV1 as X, viewIndividualContactPersonDetailV1 as Y, viewIndividualIndexV1 as Z, makeDealContactPersonPrimaryV1 as _, GlobalSearchCollectionName as _t, createIndividualV1 as a, viewTenantConfigDetailV1 as at, searchCollectionsV1 as b, createUserIndividualGrantV1 as c, BillingInformationRequirement as ct, linkContactPersonToBusinessV1 as d, ClientType as dt, viewMailIndexV1 as et, linkContactPersonToDealV1 as f, ContentLocale as ft, makeBusinessContactPersonPrimaryV1 as g, EntityType as gt, listBoardColumnsV1 as h, EntityColor as ht, createFileV1 as i, viewRecentEntitiesV1 as it, updateMailTemplateV1 as j, updateIndividualContactPersonV1 as k, deleteNoteV1 as l, BoardColumnTransitionTriggerType as lt, listBoardColumnTransitionsV1 as m, DealSource as mt, createBusinessV1 as n, viewMailTemplateDetailV1 as nt, createMailV1 as o, viewUserIndexV1 as ot, linkContactPersonToIndividualV1 as p, CountryCode as pt, viewIndividualActivityLogIndexV1 as q, createDealV1 as r, viewMailTemplateIndexV1 as rt, createNoteV1 as s, client as st, confirmFileUploadV1 as t, viewMailTemplateDetailByKeyV1 as tt, linkBusinessAsChildV1 as u, ClientStatus as ut, makeIndividualContactPersonPrimaryV1 as v, Locale as vt, unlinkContactPersonFromIndividualV1 as w, transitionDealColumnV1 as x, searchCbeEnterprisesV1 as y, MimeType as yt, viewBusinessIndexV1 as z };
4163
+ export { viewIndividualStatisticsV1 as $, updateIndividualV1 as A, viewBusinessNotesIndexV1 as B, unlinkContactPersonFromDealV1 as C, updateDealContactPersonV1 as D, updateBusinessV1 as E, viewBusinessActivityLogIndexV1 as F, viewDealIndexV1 as G, viewCustomFieldDefinitionIndexV1 as H, viewBusinessBillingInformationDetailV1 as I, viewIndividualBillingInformationDetailV1 as J, viewDealNotesIndexV1 as K, viewBusinessContactPersonDetailV1 as L, updateNoteV1 as M, upsertBusinessBillingInformationV1 as N, updateDealV1 as O, upsertIndividualBillingInformationV1 as P, viewIndividualNotesIndexV1 as Q, viewBusinessDetailV1 as R, unlinkContactPersonFromBusinessV1 as S, updateBusinessContactPersonV1 as T, viewDealContactPersonDetailV1 as U, viewBusinessStatisticsV1 as V, viewDealDetailV1 as W, viewIndividualDetailV1 as X, viewIndividualContactPersonDetailV1 as Y, viewIndividualIndexV1 as Z, makeDealContactPersonPrimaryV1 as _, Locale as _t, createIndividualV1 as a, viewTenantConfigDetailV1 as at, searchCollectionsV1 as b, createUserIndividualGrantV1 as c, BillingInformationRequirement as ct, linkContactPersonToBusinessV1 as d, ClientType as dt, viewMailIndexV1 as et, linkContactPersonToDealV1 as f, CountryCode as ft, makeBusinessContactPersonPrimaryV1 as g, GlobalSearchCollectionName as gt, listBoardColumnsV1 as h, EntityType as ht, createFileV1 as i, viewRecentEntitiesV1 as it, updateMailTemplateV1 as j, updateIndividualContactPersonV1 as k, deleteNoteV1 as l, BoardColumnTransitionTriggerType as lt, listBoardColumnTransitionsV1 as m, EntityColor as mt, createBusinessV1 as n, viewMailTemplateDetailV1 as nt, createMailV1 as o, viewUserIndexV1 as ot, linkContactPersonToIndividualV1 as p, DealSource as pt, viewIndividualActivityLogIndexV1 as q, createDealV1 as r, viewMailTemplateIndexV1 as rt, createNoteV1 as s, client as st, confirmFileUploadV2 as t, viewMailTemplateDetailByKeyV1 as tt, linkBusinessAsChildV1 as u, ClientStatus as ut, makeIndividualContactPersonPrimaryV1 as v, MimeType as vt, unlinkContactPersonFromIndividualV1 as w, transitionDealColumnV1 as x, searchCbeEnterprisesV1 as y, SdkContentLocale as yt, viewBusinessIndexV1 as z };