@wisemen/wise-crm-web 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActivityIcon-DNdtN-M_.js +19 -0
- package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
- package/dist/{AttachmentIcon-CsucE3yf.js → AttachmentIcon-BLUd7LaN.js} +9 -7
- package/dist/BoldIcon-WRYUWz15.js +16 -0
- package/dist/{BookIcon-DgT3flV5.js → BookIcon-Bb3r5y_J.js} +9 -7
- package/dist/{BuildingIcon-Bm18omgW.js → BuildingIcon-DFutRg8d.js} +9 -7
- package/dist/{BuildingsIcon-D4X7QciL.js → BuildingsIcon-BVHy6yoa.js} +9 -7
- package/dist/{BulletListIcon-CNCV-cOS.js → BulletListIcon-BhOXLSBa.js} +9 -7
- package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
- package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
- package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
- package/dist/ClockIcon-BYfZAvIE.js +23 -0
- package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
- package/dist/{CopyIcon-CUomKXdn.js → CopyIcon-2eV8MRv_.js} +9 -7
- package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
- package/dist/CrmDetailView-BhZEQqUH.js +67 -0
- package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
- package/dist/DealDetailView-DWLudchX.js +1049 -0
- package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
- package/dist/{DealIcon-CpO-DkyS.js → DealIcon-BwUWYDxo.js} +9 -7
- package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
- package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
- package/dist/{EditWithLineIcon-C0WMD50F.js → EditWithLineIcon-BKYDPJOY.js} +9 -7
- package/dist/{Error-X0deDY-N.js → Error-za-wClcU.js} +2591 -2462
- package/dist/{FileIcon-3FebXgYQ.js → FileIcon-DL1e1tAu.js} +9 -7
- package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
- package/dist/H1Icon-B6NEsEbj.js +17 -0
- package/dist/{H2Icon-CuEmp9I0.js → H2Icon-CNof5Ohu.js} +9 -7
- package/dist/{H3Icon-wAPhdYIf.js → H3Icon-B2F2Tb6r.js} +9 -7
- package/dist/HashIcon-C_XttKfW.js +19 -0
- package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
- package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
- package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
- package/dist/ItalicIcon-DqBns3yy.js +17 -0
- package/dist/{LayersTreeIcon-Ct-owndO.js → LayersTreeIcon-DZZCSCY9.js} +10 -8
- package/dist/{LinkBrokenIcon-CTlqmapl.js → LinkBrokenIcon-BNBpWSi7.js} +9 -7
- package/dist/{LinkExternalIcon-LOVtSqBT.js → LinkExternalIcon-B7SHeB1_.js} +9 -7
- package/dist/LinkIcon-8bCrZEv9.js +17 -0
- package/dist/{LocationPinIcon-Cp-wRgk2.js → LocationPinIcon-UySRqSfG.js} +9 -7
- package/dist/{MailIcon-CnTrB1k3.js → MailIcon-BT7gSIZb.js} +9 -7
- package/dist/{MobilePhoneIcon-B747hmpS.js → MobilePhoneIcon-_KQGnCSS.js} +9 -7
- package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
- package/dist/{PhoneIcon-94MYVL85.js → PhoneIcon-DGGW_MNR.js} +9 -7
- package/dist/{RefreshIcon-DRe3coBc.js → RefreshIcon-D1QWfdPD.js} +9 -7
- package/dist/{SendIcon-MYItp1xI.js → SendIcon-BtJ-NCec.js} +9 -7
- package/dist/{SettingsIcon-C0qTAv0w.js → SettingsIcon-CWFwJelS.js} +10 -8
- package/dist/{StarOutlineIcon-CiFLgepk.js → StarOutlineIcon-C-ELTCDQ.js} +9 -7
- package/dist/{StarYellowIcon-C0v_XGwI.js → StarYellowIcon-7wuNWaQO.js} +9 -7
- package/dist/{ThreeDotsIcon-lujOTU3G.js → ThreeDotsIcon-C56RWk-0.js} +12 -10
- package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
- package/dist/{TrashIcon-v4L9SEK_.js → TrashIcon-o4PWmcYe.js} +9 -7
- package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
- package/dist/{UserCircleIcon-BjUt_2C4.js → UserCircleIcon-DiDajcIH.js} +10 -8
- package/dist/UserIcon-Bv1eF7ln.js +22 -0
- package/dist/{VerticalDotsIcon-Y3m6tlQ2.js → VerticalDotsIcon-YcD73UqY.js} +9 -7
- package/dist/{WalletIcon-pPsKbzmh.js → WalletIcon-CUh92U5K.js} +9 -7
- package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
- package/dist/client-9P6xe_5g.js +4188 -0
- package/dist/components/auto-focus/AutoFocus.vue.d.ts +13 -0
- package/dist/components/column-layout/ColumnLayout.vue.d.ts +1 -1
- package/dist/components/row-layout/RowLayout.vue.d.ts +1 -1
- package/dist/components/text/Text.vue.d.ts +1 -1
- package/dist/index.js +1881 -1693
- package/dist/style.css +2 -2
- package/dist/testing.js +102 -98
- package/dist/utils/color.util.d.ts +6 -0
- package/dist/{uuid.util-C1p-yuFc.js → uuid.util-DpiDKVoj.js} +4 -2
- package/package.json +30 -30
- package/dist/ActivityIcon-DFD9ZhO0.js +0 -17
- package/dist/AppSkeletonLoader-BAhoOmFD.js +0 -1106
- package/dist/BoldIcon-DY2FlAS0.js +0 -14
- package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +0 -2899
- package/dist/BusinessDetailView-BHVUfCpV.js +0 -24
- package/dist/ChevronDownIcon-CfBAAAca.js +0 -17
- package/dist/ClockIcon-Ckr1IQBt.js +0 -21
- package/dist/ClockPlusIcon-CVN69pCS.js +0 -21
- package/dist/CrmDetailHeaderCard-CiVLyIuw.js +0 -2516
- package/dist/CrmDetailView-DaAuWeiB.js +0 -65
- package/dist/DealCommunicationTabView-xq_zOAsr.js +0 -137
- package/dist/DealDetailView-C54XpYN1.js +0 -1021
- package/dist/DealExternalAttachment-Dp44vkgt.js +0 -177
- package/dist/DealSendMailDialog-D11Tgd_A.js +0 -1552
- package/dist/DownloadCloudIcon-VMmB9vit.js +0 -17
- package/dist/FilterLinesIcon-DHpRPKJB.js +0 -20
- package/dist/H1Icon-CPVGTTtl.js +0 -15
- package/dist/HashIcon-C2kfHjTC.js +0 -17
- package/dist/HomeFilledIcon-CxIazF0B.js +0 -14
- package/dist/IndividualDetailSidebarProvider-BvjhFng9.js +0 -608
- package/dist/IndividualDetailView-Cq8iAwQv.js +0 -24
- package/dist/ItalicIcon-DfV3EOdk.js +0 -15
- package/dist/LinkIcon-DqBbVrvs.js +0 -15
- package/dist/NumberedListIcon-amJxDaaD.js +0 -15
- package/dist/TimeLineMarkerIcon-C4LfErbc.js +0 -16
- package/dist/UploadCloudIcon-j1-1Rvqb.js +0 -17
- package/dist/UserIcon-Cb2jFKLr.js +0 -20
- package/dist/_plugin-vue_export-helper-BSi1g3Lh.js +0 -6
- package/dist/client-S6BLV3Ct.js +0 -4191
package/dist/client-S6BLV3Ct.js
DELETED
|
@@ -1,4191 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
let Locale = /* @__PURE__ */ function(u) {
|
|
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
|
-
}({}), CountryCode = /* @__PURE__ */ function(u) {
|
|
13
|
-
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;
|
|
14
|
-
}({}), SdkContentLocale = /* @__PURE__ */ function(u) {
|
|
15
|
-
return u.NL_BE = "nl-BE", u.EN_US = "en-US", u.FR_BE = "fr-BE", u.DE_DE = "de-DE", u;
|
|
16
|
-
}({}), BoardColumnTransitionTriggerType = /* @__PURE__ */ function(u) {
|
|
17
|
-
return u.MANUAL = "manual", u.EMAIL = "email", u;
|
|
18
|
-
}({}), GlobalSearchCollectionName = /* @__PURE__ */ function(u) {
|
|
19
|
-
return u.USER = "user", u.BUSINESS = "business", u.INDIVIDUAL = "individual", u;
|
|
20
|
-
}({}), DealSource = /* @__PURE__ */ function(u) {
|
|
21
|
-
return u.MAIL = "mail", u.WEBSITE = "website", u.PHONE = "phone", u.TENDER = "tender", u;
|
|
22
|
-
}({}), ClientType = /* @__PURE__ */ function(u) {
|
|
23
|
-
return u.BUSINESS = "business", u.INDIVIDUAL = "individual", u;
|
|
24
|
-
}({}), ClientStatus = /* @__PURE__ */ function(u) {
|
|
25
|
-
return u.LEAD = "lead", u.CUSTOMER = "customer", u.INACTIVE = "inactive", u.ARCHIVED = "archived", u.CONTACT = "contact", u;
|
|
26
|
-
}({});
|
|
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
|
-
logoUrl: z.union([z.string(), z.null()]),
|
|
97
|
-
oidcIssuer: z.string(),
|
|
98
|
-
oidcClientId: z.string(),
|
|
99
|
-
oidcOrganizationId: z.string(),
|
|
100
|
-
nativeClientId: z.string(),
|
|
101
|
-
czOidcIssuer: z.string(),
|
|
102
|
-
czOidcAudience: z.string(),
|
|
103
|
-
czOidcOrganizationId: z.string(),
|
|
104
|
-
czNativeClientId: z.string(),
|
|
105
|
-
brandColors: zBrandColorsCommand,
|
|
106
|
-
businessConfig: zBusinessConfigCommand,
|
|
107
|
-
individualConfig: zIndividualConfigCommand
|
|
108
|
-
});
|
|
109
|
-
z.object({
|
|
110
|
-
uuid: z.uuid(),
|
|
111
|
-
name: z.string(),
|
|
112
|
-
slug: z.string(),
|
|
113
|
-
oidcIssuer: z.string(),
|
|
114
|
-
oidcClientId: z.string()
|
|
115
|
-
});
|
|
116
|
-
const zUpdateTenantCommand = z.object({
|
|
117
|
-
name: z.string(),
|
|
118
|
-
slug: z.string(),
|
|
119
|
-
domain: z.union([z.string(), z.null()]),
|
|
120
|
-
logoUrl: z.union([z.string(), z.null()]),
|
|
121
|
-
oidcIssuer: z.optional(z.string()),
|
|
122
|
-
oidcClientId: z.optional(z.string()),
|
|
123
|
-
oidcOrganizationId: z.optional(z.string()),
|
|
124
|
-
nativeClientId: z.optional(z.string()),
|
|
125
|
-
czOidcIssuer: z.optional(z.string()),
|
|
126
|
-
czOidcAudience: z.optional(z.string()),
|
|
127
|
-
czOidcOrganizationId: z.optional(z.string()),
|
|
128
|
-
czNativeClientId: z.optional(z.string()),
|
|
129
|
-
brandColors: zBrandColorsCommand,
|
|
130
|
-
businessConfig: zBusinessConfigCommand,
|
|
131
|
-
individualConfig: zIndividualConfigCommand
|
|
132
|
-
});
|
|
133
|
-
z.object({
|
|
134
|
-
detail: z.optional(z.string()),
|
|
135
|
-
status: z.enum(["404"]),
|
|
136
|
-
code: z.enum(["tenant_not_found"])
|
|
137
|
-
});
|
|
138
|
-
const zUpdateTenantBrandColorsCommand = z.object({ brandColors: zBrandColorsCommand }), zEntityType = z.enum(["individual", "business"]), zTenantEntityConfigCommand = z.object({
|
|
139
|
-
entityType: zEntityType,
|
|
140
|
-
entityName: z.array(zLocalizedString),
|
|
141
|
-
entityColor: zEntityColor
|
|
142
|
-
}), zUpdateTenantEntitiesConfigCommand = z.object({ entities: z.array(zTenantEntityConfigCommand) }), zTenantCompanywebLocale = z.enum([
|
|
143
|
-
"NL",
|
|
144
|
-
"FR",
|
|
145
|
-
"EN"
|
|
146
|
-
]), zTenantCompanywebConfigCommand = z.object({
|
|
147
|
-
login: z.string(),
|
|
148
|
-
password: z.string(),
|
|
149
|
-
secret: z.string(),
|
|
150
|
-
language: zTenantCompanywebLocale,
|
|
151
|
-
integrator: z.string()
|
|
152
|
-
}), zTenantBusinessConfigCommand = z.object({
|
|
153
|
-
viesValidation: z.boolean(),
|
|
154
|
-
requireIndividualOnCreate: z.boolean(),
|
|
155
|
-
companyweb: z.union([zTenantCompanywebConfigCommand, z.null()])
|
|
156
|
-
}), zUpdateTenantBusinessConfigCommand = z.object({ businessConfig: zTenantBusinessConfigCommand }), zTenantBillingConfigCommand = z.object({
|
|
157
|
-
individualBillingInformationRequirement: zBillingInformationRequirement,
|
|
158
|
-
businessBillingInformationRequirement: zBillingInformationRequirement
|
|
159
|
-
}), zUpdateTenantBillingConfigCommand = z.object({ billingConfig: zTenantBillingConfigCommand });
|
|
160
|
-
z.object({
|
|
161
|
-
uuid: z.uuid(),
|
|
162
|
-
createdAt: z.iso.datetime(),
|
|
163
|
-
updatedAt: z.iso.datetime(),
|
|
164
|
-
name: z.string(),
|
|
165
|
-
slug: z.string(),
|
|
166
|
-
domain: z.union([z.string(), z.null()])
|
|
167
|
-
});
|
|
168
|
-
const zPaginatedOffsetQuery = z.object({
|
|
169
|
-
limit: z.number().gte(1).lte(100),
|
|
170
|
-
offset: z.number().gte(0)
|
|
171
|
-
}), zTenantResponse = z.object({
|
|
172
|
-
uuid: z.uuid(),
|
|
173
|
-
createdAt: z.iso.datetime(),
|
|
174
|
-
updatedAt: z.iso.datetime(),
|
|
175
|
-
name: z.string(),
|
|
176
|
-
slug: z.string(),
|
|
177
|
-
domain: z.union([z.string(), z.null()])
|
|
178
|
-
}), zPaginatedOffsetResponseMeta = z.object({
|
|
179
|
-
total: z.number(),
|
|
180
|
-
offset: z.number(),
|
|
181
|
-
limit: z.number()
|
|
182
|
-
});
|
|
183
|
-
z.object({
|
|
184
|
-
items: z.array(zTenantResponse),
|
|
185
|
-
meta: zPaginatedOffsetResponseMeta
|
|
186
|
-
});
|
|
187
|
-
const zTenantConfigEntities = z.object({
|
|
188
|
-
entityType: zEntityType,
|
|
189
|
-
entityName: z.string(),
|
|
190
|
-
entityColor: zEntityColor
|
|
191
|
-
}), zTenantConfigBusiness = z.object({
|
|
192
|
-
viesValidation: z.boolean(),
|
|
193
|
-
requireIndividualOnCreate: z.boolean()
|
|
194
|
-
}), zTenantConfigBilling = z.object({
|
|
195
|
-
individualBillingInformationRequirement: zBillingInformationRequirement,
|
|
196
|
-
businessBillingInformationRequirement: zBillingInformationRequirement
|
|
197
|
-
}), zBusinessStatus = z.enum([
|
|
198
|
-
"lead",
|
|
199
|
-
"customer",
|
|
200
|
-
"inactive",
|
|
201
|
-
"archived"
|
|
202
|
-
]), zIndividualStatus = z.enum([
|
|
203
|
-
"contact",
|
|
204
|
-
"lead",
|
|
205
|
-
"customer",
|
|
206
|
-
"inactive"
|
|
207
|
-
]), zTenantDealConfigResponse = z.object({
|
|
208
|
-
enableBusinessDeals: z.boolean(),
|
|
209
|
-
enableIndividualDeals: z.boolean(),
|
|
210
|
-
creatableBusinessStatuses: z.array(zBusinessStatus),
|
|
211
|
-
creatableIndividualStatuses: z.array(zIndividualStatus)
|
|
212
|
-
}), zBrandColorsResponse = z.object({
|
|
213
|
-
brand25: z.string(),
|
|
214
|
-
brand50: z.string(),
|
|
215
|
-
brand100: z.string(),
|
|
216
|
-
brand200: z.string(),
|
|
217
|
-
brand300: z.string(),
|
|
218
|
-
brand400: z.string(),
|
|
219
|
-
brand500: z.string(),
|
|
220
|
-
brand600: z.string(),
|
|
221
|
-
brand700: z.string(),
|
|
222
|
-
brand800: z.string(),
|
|
223
|
-
brand900: z.string(),
|
|
224
|
-
brand950: z.string()
|
|
225
|
-
}), zViewTenantConfigDetailResponse = z.object({
|
|
226
|
-
uuid: z.uuid(),
|
|
227
|
-
name: z.string(),
|
|
228
|
-
entities: z.array(zTenantConfigEntities),
|
|
229
|
-
businessConfig: zTenantConfigBusiness,
|
|
230
|
-
billingConfig: zTenantConfigBilling,
|
|
231
|
-
dealConfig: zTenantDealConfigResponse,
|
|
232
|
-
brandColors: zBrandColorsResponse,
|
|
233
|
-
logoUrl: z.union([z.string(), z.null()])
|
|
234
|
-
}), zRecentEntityType = z.enum([
|
|
235
|
-
"individual",
|
|
236
|
-
"business",
|
|
237
|
-
"deal"
|
|
238
|
-
]), zViewRecentEntitiesFilterQuery = z.object({ types: z.optional(z.array(zRecentEntityType)) }), zViewRecentEntitiesResponseItem = z.object({
|
|
239
|
-
type: z.enum([
|
|
240
|
-
"individual",
|
|
241
|
-
"business",
|
|
242
|
-
"deal"
|
|
243
|
-
]),
|
|
244
|
-
uuid: z.uuid(),
|
|
245
|
-
name: z.string(),
|
|
246
|
-
createdAt: z.iso.datetime()
|
|
247
|
-
}), zViewRecentEntitiesResponse = z.object({
|
|
248
|
-
items: z.array(zViewRecentEntitiesResponseItem),
|
|
249
|
-
meta: zPaginatedOffsetResponseMeta
|
|
250
|
-
});
|
|
251
|
-
z.object({
|
|
252
|
-
detail: z.optional(z.string()),
|
|
253
|
-
status: z.enum(["409"]),
|
|
254
|
-
code: z.enum(["user_connected_to_other_tenant"])
|
|
255
|
-
}), z.object({
|
|
256
|
-
detail: z.optional(z.string()),
|
|
257
|
-
status: z.enum(["404"]),
|
|
258
|
-
code: z.enum(["user_not_found"])
|
|
259
|
-
});
|
|
260
|
-
const zAssignUserAsAdminCommand = z.object({ userId: z.string() }), zTypesenseCollectionName = z.enum([
|
|
261
|
-
"user",
|
|
262
|
-
"location",
|
|
263
|
-
"individual",
|
|
264
|
-
"business",
|
|
265
|
-
"cbe-enterprise",
|
|
266
|
-
"cbe-establishment"
|
|
267
|
-
]);
|
|
268
|
-
z.object({ collections: z.array(z.enum([
|
|
269
|
-
"user",
|
|
270
|
-
"location",
|
|
271
|
-
"individual",
|
|
272
|
-
"business",
|
|
273
|
-
"cbe-enterprise",
|
|
274
|
-
"cbe-establishment"
|
|
275
|
-
])) }), z.object({
|
|
276
|
-
baseUrl: z.string(),
|
|
277
|
-
clientId: z.string(),
|
|
278
|
-
organizationID: z.string(),
|
|
279
|
-
nativeClientId: z.string(),
|
|
280
|
-
brandColors: zBrandColorsResponse,
|
|
281
|
-
logoUrl: z.union([z.string(), z.null()])
|
|
282
|
-
}), z.object({
|
|
283
|
-
baseUrl: z.string(),
|
|
284
|
-
clientId: z.string(),
|
|
285
|
-
organizationID: z.string(),
|
|
286
|
-
nativeClientId: z.string(),
|
|
287
|
-
brandColors: zBrandColorsResponse
|
|
288
|
-
}), z.object({
|
|
289
|
-
environment: z.string(),
|
|
290
|
-
commit: z.string(),
|
|
291
|
-
version: z.string(),
|
|
292
|
-
timestamp: z.iso.datetime()
|
|
293
|
-
});
|
|
294
|
-
const zSetUserRolesCommand = z.object({ roleUuids: z.array(z.uuid()) }), zViewRoleDetailResponse = z.object({
|
|
295
|
-
uuid: z.uuid(),
|
|
296
|
-
createdAt: z.iso.datetime(),
|
|
297
|
-
updatedAt: z.iso.datetime(),
|
|
298
|
-
name: z.string(),
|
|
299
|
-
permissions: z.array(zPermission),
|
|
300
|
-
isDefault: z.boolean(),
|
|
301
|
-
isSystemAdmin: z.boolean()
|
|
302
|
-
});
|
|
303
|
-
z.object({
|
|
304
|
-
uuid: z.uuid(),
|
|
305
|
-
email: z.union([z.email(), z.null()]),
|
|
306
|
-
firstName: z.union([z.string(), z.null()]),
|
|
307
|
-
lastName: z.union([z.string(), z.null()]),
|
|
308
|
-
tenantUuid: z.union([z.uuid(), z.null()]),
|
|
309
|
-
roles: z.array(zViewRoleDetailResponse)
|
|
310
|
-
}), z.object({
|
|
311
|
-
uuid: z.uuid(),
|
|
312
|
-
email: z.union([z.email(), z.null()]),
|
|
313
|
-
firstName: z.union([z.string(), z.null()]),
|
|
314
|
-
lastName: z.union([z.string(), z.null()]),
|
|
315
|
-
tenantUuid: z.union([z.uuid(), z.null()]),
|
|
316
|
-
roles: z.array(zViewRoleDetailResponse)
|
|
317
|
-
});
|
|
318
|
-
const zUserIndexRoleView = z.object({
|
|
319
|
-
uuid: z.uuid(),
|
|
320
|
-
name: z.string()
|
|
321
|
-
}), zUserIndexView = z.object({
|
|
322
|
-
uuid: z.uuid(),
|
|
323
|
-
email: z.union([z.email(), z.null()]),
|
|
324
|
-
firstName: z.union([z.string(), z.null()]),
|
|
325
|
-
lastName: z.union([z.string(), z.null()]),
|
|
326
|
-
roles: z.array(zUserIndexRoleView)
|
|
327
|
-
}), zViewUserIndexResponse = z.object({
|
|
328
|
-
items: z.array(zUserIndexView),
|
|
329
|
-
meta: zPaginatedOffsetResponseMeta
|
|
330
|
-
}), zCreateRoleCommand = z.object({ name: z.string() });
|
|
331
|
-
z.object({ uuid: z.uuid() });
|
|
332
|
-
const zClearRolePermissionsCacheCommand = z.object({ roleUuids: z.optional(z.union([z.array(z.uuid()), z.null()])) });
|
|
333
|
-
z.object({
|
|
334
|
-
detail: z.optional(z.string()),
|
|
335
|
-
status: z.enum(["404"]),
|
|
336
|
-
code: z.enum(["role_not_found"])
|
|
337
|
-
});
|
|
338
|
-
const zUpdateRoleCommand = z.object({ name: z.string() }), zRoleResponse = z.object({
|
|
339
|
-
uuid: z.uuid(),
|
|
340
|
-
createdAt: z.iso.datetime(),
|
|
341
|
-
updatedAt: z.iso.datetime(),
|
|
342
|
-
name: z.string(),
|
|
343
|
-
permissions: z.array(zPermission),
|
|
344
|
-
isDefault: z.boolean(),
|
|
345
|
-
isSystemAdmin: z.boolean()
|
|
346
|
-
});
|
|
347
|
-
z.object({ items: z.array(zRoleResponse) });
|
|
348
|
-
const zUpdateRolesPermissionsCommandItem = z.object({
|
|
349
|
-
roleUuid: z.uuid(),
|
|
350
|
-
permissions: z.array(zPermission)
|
|
351
|
-
}), zUpdateRolesPermissionsCommand = z.object({ roles: z.array(zUpdateRolesPermissionsCommandItem) }), zMimeType = z.enum([
|
|
352
|
-
"application/pdf",
|
|
353
|
-
"application/msword",
|
|
354
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
355
|
-
"application/vnd.ms-powerpoint",
|
|
356
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
357
|
-
"text/plain",
|
|
358
|
-
"text/html",
|
|
359
|
-
"text/csv",
|
|
360
|
-
"image/jpeg",
|
|
361
|
-
"image/png",
|
|
362
|
-
"image/tiff",
|
|
363
|
-
"image/bmp",
|
|
364
|
-
"image/heic",
|
|
365
|
-
"image/webp",
|
|
366
|
-
"image/gif",
|
|
367
|
-
"application/octet-stream"
|
|
368
|
-
]), zCreateFileCommand = z.object({
|
|
369
|
-
name: z.string(),
|
|
370
|
-
mimeType: zMimeType
|
|
371
|
-
}), zCreateFileResponse = z.object({
|
|
372
|
-
uuid: z.uuid(),
|
|
373
|
-
name: z.string(),
|
|
374
|
-
mimeType: z.union([zMimeType, z.null()]),
|
|
375
|
-
uploadUrl: z.string()
|
|
376
|
-
});
|
|
377
|
-
z.object({
|
|
378
|
-
detail: z.optional(z.string()),
|
|
379
|
-
status: z.enum(["404"]),
|
|
380
|
-
code: z.enum(["file_not_found"])
|
|
381
|
-
});
|
|
382
|
-
const zConfirmFileUploadCommand = z.object({ blurHash: z.union([z.string().max(100), z.null()]) }), zUiTheme = z.enum([
|
|
383
|
-
"light",
|
|
384
|
-
"dark",
|
|
385
|
-
"system"
|
|
386
|
-
]), zFontSize = z.enum([
|
|
387
|
-
"smaller",
|
|
388
|
-
"small",
|
|
389
|
-
"default",
|
|
390
|
-
"large",
|
|
391
|
-
"larger"
|
|
392
|
-
]), zUpdateUiPreferencesCommand = z.object({
|
|
393
|
-
theme: z.optional(zUiTheme),
|
|
394
|
-
language: z.optional(zLocale),
|
|
395
|
-
fontSize: z.optional(zFontSize),
|
|
396
|
-
showShortcuts: z.optional(z.boolean()),
|
|
397
|
-
reduceMotion: z.optional(z.boolean()),
|
|
398
|
-
highContrast: z.optional(z.boolean())
|
|
399
|
-
});
|
|
400
|
-
z.object({
|
|
401
|
-
theme: zUiTheme,
|
|
402
|
-
language: zLocale,
|
|
403
|
-
fontSize: zFontSize,
|
|
404
|
-
showShortcuts: z.boolean(),
|
|
405
|
-
reduceMotion: z.boolean(),
|
|
406
|
-
highContrast: z.boolean()
|
|
407
|
-
}), z.object({
|
|
408
|
-
token: z.string(),
|
|
409
|
-
userUuid: z.uuid()
|
|
410
|
-
});
|
|
411
|
-
const zTranslations = z.object({
|
|
412
|
-
nl: z.optional(z.string()),
|
|
413
|
-
en: z.optional(z.string())
|
|
414
|
-
}), zSendPushNotificationCommand = z.object({
|
|
415
|
-
name: z.string(),
|
|
416
|
-
title: zTranslations,
|
|
417
|
-
description: zTranslations,
|
|
418
|
-
userUuids: z.array(z.uuid())
|
|
419
|
-
}), zSubjectType = z.enum([
|
|
420
|
-
"user",
|
|
421
|
-
"file",
|
|
422
|
-
"location",
|
|
423
|
-
"contact_person",
|
|
424
|
-
"individual",
|
|
425
|
-
"business",
|
|
426
|
-
"role",
|
|
427
|
-
"contact",
|
|
428
|
-
"tenant",
|
|
429
|
-
"custom_field_definition",
|
|
430
|
-
"note",
|
|
431
|
-
"note_file",
|
|
432
|
-
"cbe_enterprise",
|
|
433
|
-
"board_column",
|
|
434
|
-
"mail_template",
|
|
435
|
-
"deal",
|
|
436
|
-
"deal.contact.person",
|
|
437
|
-
"mail"
|
|
438
|
-
]), zViewDomainEventLogIndexFilterQuery = z.object({
|
|
439
|
-
subjectType: z.optional(zSubjectType),
|
|
440
|
-
subjectId: z.optional(z.uuid()),
|
|
441
|
-
userUuid: z.optional(z.uuid())
|
|
442
|
-
}), zViewDomainEventLogIndexQueryKey = z.object({
|
|
443
|
-
createdAt: z.string(),
|
|
444
|
-
uuid: z.uuid()
|
|
445
|
-
}), zViewDomainEventLogIndexPaginationQuery = z.object({
|
|
446
|
-
limit: z.number().gte(0).lte(100),
|
|
447
|
-
key: z.optional(z.union([zViewDomainEventLogIndexQueryKey, z.null()]))
|
|
448
|
-
}), zAddress = z.record(z.string(), z.unknown()), zIndividualBillingInformationUpsertedEventContent = z.object({
|
|
449
|
-
individualUuid: z.uuid(),
|
|
450
|
-
billingInformationUuid: z.uuid(),
|
|
451
|
-
address: z.union([zAddress, z.null()]),
|
|
452
|
-
invoiceEmail: z.union([z.email(), z.null()]),
|
|
453
|
-
invoiceCcEmails: z.array(z.email())
|
|
454
|
-
}), zIndividualBillingInformationUpsertedDomainEventLog = z.object({
|
|
455
|
-
uuid: z.uuid(),
|
|
456
|
-
createdAt: z.iso.datetime(),
|
|
457
|
-
version: z.int().gte(0),
|
|
458
|
-
source: z.string(),
|
|
459
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
460
|
-
message: z.string(),
|
|
461
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
462
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
463
|
-
type: z.enum(["individual.billing-information.upserted"]),
|
|
464
|
-
content: zIndividualBillingInformationUpsertedEventContent
|
|
465
|
-
}), zIndividualStatusUpdatedDomainEventContent = z.object({
|
|
466
|
-
individualUuid: z.uuid(),
|
|
467
|
-
previousStatus: zIndividualStatus,
|
|
468
|
-
status: zIndividualStatus
|
|
469
|
-
}), zIndividualStatusUpdatedDomainEventLog = z.object({
|
|
470
|
-
uuid: z.uuid(),
|
|
471
|
-
createdAt: z.iso.datetime(),
|
|
472
|
-
version: z.int().gte(0),
|
|
473
|
-
source: z.string(),
|
|
474
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
475
|
-
message: z.string(),
|
|
476
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
477
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
478
|
-
type: z.enum(["individual.status.updated"]),
|
|
479
|
-
content: zIndividualStatusUpdatedDomainEventContent
|
|
480
|
-
}), zValueChange = z.object({
|
|
481
|
-
key: z.string(),
|
|
482
|
-
oldValue: z.union([
|
|
483
|
-
z.string(),
|
|
484
|
-
z.number(),
|
|
485
|
-
z.boolean(),
|
|
486
|
-
z.null()
|
|
487
|
-
]),
|
|
488
|
-
newValue: z.union([
|
|
489
|
-
z.string(),
|
|
490
|
-
z.number(),
|
|
491
|
-
z.boolean(),
|
|
492
|
-
z.null()
|
|
493
|
-
])
|
|
494
|
-
}), zIndividualUpdatedDomainEventContent = z.object({
|
|
495
|
-
individualUuid: z.uuid(),
|
|
496
|
-
firstName: z.string(),
|
|
497
|
-
lastName: z.string(),
|
|
498
|
-
email: z.union([z.email(), z.null()]),
|
|
499
|
-
phone: z.union([z.string(), z.null()]),
|
|
500
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
501
|
-
address: z.optional(zAddress),
|
|
502
|
-
changes: z.array(zValueChange),
|
|
503
|
-
customFields: z.optional(z.record(z.string(), z.unknown())),
|
|
504
|
-
language: zLocale
|
|
505
|
-
}), zIndividualUpdatedDomainEventLog = z.object({
|
|
506
|
-
uuid: z.uuid(),
|
|
507
|
-
createdAt: z.iso.datetime(),
|
|
508
|
-
version: z.int().gte(0),
|
|
509
|
-
source: z.string(),
|
|
510
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
511
|
-
message: z.string(),
|
|
512
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
513
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
514
|
-
type: z.enum(["individual.updated"]),
|
|
515
|
-
content: zIndividualUpdatedDomainEventContent
|
|
516
|
-
}), zIndividualCreatedDomainEventContent = z.object({
|
|
517
|
-
individualUuid: z.uuid(),
|
|
518
|
-
firstName: z.string(),
|
|
519
|
-
lastName: z.string(),
|
|
520
|
-
email: z.union([z.email(), z.null()]),
|
|
521
|
-
phone: z.union([z.string(), z.null()]),
|
|
522
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
523
|
-
address: z.union([zAddress, z.null()]),
|
|
524
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
525
|
-
}), zIndividualCreatedDomainEventLog = z.object({
|
|
526
|
-
uuid: z.uuid(),
|
|
527
|
-
createdAt: z.iso.datetime(),
|
|
528
|
-
version: z.int().gte(0),
|
|
529
|
-
source: z.string(),
|
|
530
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
531
|
-
message: z.string(),
|
|
532
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
533
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
534
|
-
type: z.enum(["individual.created"]),
|
|
535
|
-
content: zIndividualCreatedDomainEventContent
|
|
536
|
-
}), zBusinessCreatedDomainEventContent = z.object({
|
|
537
|
-
businessUuid: z.uuid(),
|
|
538
|
-
name: z.string(),
|
|
539
|
-
email: z.union([z.email(), z.null()]),
|
|
540
|
-
phone: z.union([z.string(), z.null()]),
|
|
541
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
542
|
-
vatNumber: z.union([z.string(), z.null()]),
|
|
543
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
544
|
-
address: zAddress,
|
|
545
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
|
|
546
|
-
language: zLocale
|
|
547
|
-
}), zBusinessCreatedDomainEventLog = z.object({
|
|
548
|
-
uuid: z.uuid(),
|
|
549
|
-
createdAt: z.iso.datetime(),
|
|
550
|
-
version: z.int().gte(0),
|
|
551
|
-
source: z.string(),
|
|
552
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
553
|
-
message: z.string(),
|
|
554
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
555
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
556
|
-
type: z.enum(["business.created"]),
|
|
557
|
-
content: zBusinessCreatedDomainEventContent
|
|
558
|
-
}), 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({
|
|
559
|
-
businessUuid: z.uuid(),
|
|
560
|
-
name: z.string(),
|
|
561
|
-
email: z.union([z.email(), z.null()]),
|
|
562
|
-
phone: z.union([z.string(), z.null()]),
|
|
563
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
564
|
-
vatNumber: z.union([z.string(), z.null()]),
|
|
565
|
-
vatNumberCountryCode: z.union([zCountryCode, z.null()]),
|
|
566
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
567
|
-
address: zAddress,
|
|
568
|
-
changes: zValueChange,
|
|
569
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
|
|
570
|
-
language: zLocale
|
|
571
|
-
}), zBusinessUpdatedDomainEventLog = z.object({
|
|
572
|
-
uuid: z.uuid(),
|
|
573
|
-
createdAt: z.iso.datetime(),
|
|
574
|
-
version: z.int().gte(0),
|
|
575
|
-
source: z.string(),
|
|
576
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
577
|
-
message: z.string(),
|
|
578
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
579
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
580
|
-
type: z.enum(["business.updated"]),
|
|
581
|
-
content: zBusinessUpdatedDomainEventContent
|
|
582
|
-
}), zBusinessBillingInformationUpsertedEventContent = z.object({
|
|
583
|
-
businessUuid: z.uuid(),
|
|
584
|
-
billingInformationUuid: z.uuid(),
|
|
585
|
-
address: z.union([zAddress, z.null()]),
|
|
586
|
-
invoiceEmail: z.union([z.email(), z.null()]),
|
|
587
|
-
invoiceCcEmails: z.array(z.email()),
|
|
588
|
-
reminderEmail: z.union([z.email(), z.null()]),
|
|
589
|
-
reminderCcEmails: z.array(z.email()),
|
|
590
|
-
purchaseNoteEmail: z.union([z.email(), z.null()]),
|
|
591
|
-
purchaseNoteCcEmails: z.array(z.email())
|
|
592
|
-
}), zBusinessBillingInformationUpsertedDomainEventLog = z.object({
|
|
593
|
-
uuid: z.uuid(),
|
|
594
|
-
createdAt: z.iso.datetime(),
|
|
595
|
-
version: z.int().gte(0),
|
|
596
|
-
source: z.string(),
|
|
597
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
598
|
-
message: z.string(),
|
|
599
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
600
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
601
|
-
type: z.enum(["business.billing-information.upserted"]),
|
|
602
|
-
content: zBusinessBillingInformationUpsertedEventContent
|
|
603
|
-
}), zBusinessStatusUpdatedDomainEventContent = z.object({
|
|
604
|
-
businessUuid: z.uuid(),
|
|
605
|
-
previousStatus: zBusinessStatus,
|
|
606
|
-
status: zBusinessStatus,
|
|
607
|
-
archivedAt: z.union([z.iso.datetime(), z.null()])
|
|
608
|
-
}), zBusinessStatusUpdatedDomainEventLog = z.object({
|
|
609
|
-
uuid: z.uuid(),
|
|
610
|
-
createdAt: z.iso.datetime(),
|
|
611
|
-
version: z.int().gte(0),
|
|
612
|
-
source: z.string(),
|
|
613
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
614
|
-
message: z.string(),
|
|
615
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
616
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
617
|
-
type: z.enum(["business.status.updated"]),
|
|
618
|
-
content: zBusinessStatusUpdatedDomainEventContent
|
|
619
|
-
}), zCbeEnterpriseImportedDomainEventContent = z.object({ enterpriseNumber: z.string() }), zCbeEnterpriseImportedDomainEventLog = z.object({
|
|
620
|
-
uuid: z.uuid(),
|
|
621
|
-
createdAt: z.iso.datetime(),
|
|
622
|
-
version: z.int().gte(0),
|
|
623
|
-
source: z.string(),
|
|
624
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
625
|
-
message: z.string(),
|
|
626
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
627
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
628
|
-
type: z.enum(["cbe-enterprise.imported"]),
|
|
629
|
-
content: zCbeEnterpriseImportedDomainEventContent
|
|
630
|
-
}), zCbeDenominationImportedDomainEventContent = z.object({ enterpriseNumber: z.string() }), zCbeDenominationImportedDomainEventLog = z.object({
|
|
631
|
-
uuid: z.uuid(),
|
|
632
|
-
createdAt: z.iso.datetime(),
|
|
633
|
-
version: z.int().gte(0),
|
|
634
|
-
source: z.string(),
|
|
635
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
636
|
-
message: z.string(),
|
|
637
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
638
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
639
|
-
type: z.enum(["cbe-denomination.imported"]),
|
|
640
|
-
content: zCbeDenominationImportedDomainEventContent
|
|
641
|
-
}), zCbeContactImportedDomainEventContent = z.object({ entityNumber: z.string() }), zCbeContactImportedDomainEventLog = z.object({
|
|
642
|
-
uuid: z.uuid(),
|
|
643
|
-
createdAt: z.iso.datetime(),
|
|
644
|
-
version: z.int().gte(0),
|
|
645
|
-
source: z.string(),
|
|
646
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
647
|
-
message: z.string(),
|
|
648
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
649
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
650
|
-
type: z.enum(["cbe-contact.imported"]),
|
|
651
|
-
content: zCbeContactImportedDomainEventContent
|
|
652
|
-
}), zCbeAddressImportedDomainEventContent = z.object({ entityNumber: z.string() }), zCbeAddressImportedDomainEventLog = z.object({
|
|
653
|
-
uuid: z.uuid(),
|
|
654
|
-
createdAt: z.iso.datetime(),
|
|
655
|
-
version: z.int().gte(0),
|
|
656
|
-
source: z.string(),
|
|
657
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
658
|
-
message: z.string(),
|
|
659
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
660
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
661
|
-
type: z.enum(["cbe-address.imported"]),
|
|
662
|
-
content: zCbeAddressImportedDomainEventContent
|
|
663
|
-
}), zContactPersonContent = z.object({
|
|
664
|
-
uuid: z.uuid(),
|
|
665
|
-
name: z.string()
|
|
666
|
-
}), zContactPersonLinkedToBusinessEventContent = z.object({
|
|
667
|
-
businessUuid: z.uuid(),
|
|
668
|
-
contactPerson: zContactPersonContent,
|
|
669
|
-
position: z.union([z.string(), z.null()])
|
|
670
|
-
}), zBusinessContactPersonLinkedDomainEventLog = z.object({
|
|
671
|
-
uuid: z.uuid(),
|
|
672
|
-
createdAt: z.iso.datetime(),
|
|
673
|
-
version: z.int().gte(0),
|
|
674
|
-
source: z.string(),
|
|
675
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
676
|
-
message: z.string(),
|
|
677
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
678
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
679
|
-
type: z.enum(["business.contact-person.linked"]),
|
|
680
|
-
content: zContactPersonLinkedToBusinessEventContent
|
|
681
|
-
}), zContactPersonLinkedToDealEventContent = z.object({
|
|
682
|
-
dealUuid: z.uuid(),
|
|
683
|
-
contactPerson: zContactPersonContent
|
|
684
|
-
}), zDealContactPersonLinkedDomainEventLog = z.object({
|
|
685
|
-
uuid: z.uuid(),
|
|
686
|
-
createdAt: z.iso.datetime(),
|
|
687
|
-
version: z.int().gte(0),
|
|
688
|
-
source: z.string(),
|
|
689
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
690
|
-
message: z.string(),
|
|
691
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
692
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
693
|
-
type: z.enum(["deal.contact.person.linked"]),
|
|
694
|
-
content: zContactPersonLinkedToDealEventContent
|
|
695
|
-
}), zCbeEstablishmentImportedDomainEventContent = z.object({ establishmentNumber: z.string() }), zCbeEstablishmentImportedDomainEventLog = z.object({
|
|
696
|
-
uuid: z.uuid(),
|
|
697
|
-
createdAt: z.iso.datetime(),
|
|
698
|
-
version: z.int().gte(0),
|
|
699
|
-
source: z.string(),
|
|
700
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
701
|
-
message: z.string(),
|
|
702
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
703
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
704
|
-
type: z.enum(["cbe-establishment.imported"]),
|
|
705
|
-
content: zCbeEstablishmentImportedDomainEventContent
|
|
706
|
-
}), zClientId = z.record(z.string(), z.unknown()), zSdkContentLocale = z.enum([
|
|
707
|
-
"nl-BE",
|
|
708
|
-
"en-US",
|
|
709
|
-
"fr-BE",
|
|
710
|
-
"de-DE"
|
|
711
|
-
]), zDealCreatedEventContent = z.object({
|
|
712
|
-
dealUuid: z.uuid(),
|
|
713
|
-
name: z.string(),
|
|
714
|
-
clientId: zClientId,
|
|
715
|
-
columnKey: z.string(),
|
|
716
|
-
language: zSdkContentLocale
|
|
717
|
-
}), zDealCreatedDomainEventLog = z.object({
|
|
718
|
-
uuid: z.uuid(),
|
|
719
|
-
createdAt: z.iso.datetime(),
|
|
720
|
-
version: z.int().gte(0),
|
|
721
|
-
source: z.string(),
|
|
722
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
723
|
-
message: z.string(),
|
|
724
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
725
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
726
|
-
type: z.enum(["deal.created"]),
|
|
727
|
-
content: zDealCreatedEventContent
|
|
728
|
-
}), zDealUpdatedEventContent = z.object({
|
|
729
|
-
dealUuid: z.uuid(),
|
|
730
|
-
name: z.string(),
|
|
731
|
-
columnKey: z.string(),
|
|
732
|
-
language: zSdkContentLocale
|
|
733
|
-
}), zDealUpdatedDomainEventLog = z.object({
|
|
734
|
-
uuid: z.uuid(),
|
|
735
|
-
createdAt: z.iso.datetime(),
|
|
736
|
-
version: z.int().gte(0),
|
|
737
|
-
source: z.string(),
|
|
738
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
739
|
-
message: z.string(),
|
|
740
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
741
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
742
|
-
type: z.enum(["deal.updated"]),
|
|
743
|
-
content: zDealUpdatedEventContent
|
|
744
|
-
}), zDealColumnTransitionedEventContent = z.object({
|
|
745
|
-
fromBoardColumnUuid: z.uuid(),
|
|
746
|
-
toBoardColumnUuid: z.uuid()
|
|
747
|
-
}), zDealColumnTransitionedDomainEventLog = z.object({
|
|
748
|
-
uuid: z.uuid(),
|
|
749
|
-
createdAt: z.iso.datetime(),
|
|
750
|
-
version: z.int().gte(0),
|
|
751
|
-
source: z.string(),
|
|
752
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
753
|
-
message: z.string(),
|
|
754
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
755
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
756
|
-
type: z.enum(["deal.column.transitioned"]),
|
|
757
|
-
content: zDealColumnTransitionedEventContent
|
|
758
|
-
}), zMailCreatedEventContent = z.object({
|
|
759
|
-
mailUuid: z.uuid(),
|
|
760
|
-
to: z.array(z.string()),
|
|
761
|
-
cc: z.array(z.string()),
|
|
762
|
-
bcc: z.array(z.string()),
|
|
763
|
-
subject: z.string(),
|
|
764
|
-
mailTemplateUuid: z.union([z.uuid(), z.null()]),
|
|
765
|
-
mailTemplateKey: z.union([z.string(), z.null()]),
|
|
766
|
-
dealUuid: z.union([z.uuid(), z.null()])
|
|
767
|
-
}), zMailCreatedDomainEventLog = z.object({
|
|
768
|
-
uuid: z.uuid(),
|
|
769
|
-
createdAt: z.iso.datetime(),
|
|
770
|
-
version: z.int().gte(0),
|
|
771
|
-
source: z.string(),
|
|
772
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
773
|
-
message: z.string(),
|
|
774
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
775
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
776
|
-
type: z.enum(["mail.created"]),
|
|
777
|
-
content: zMailCreatedEventContent
|
|
778
|
-
}), zLocationCreatedEventContent = z.object({ locationUuid: z.uuid() }), zLocationCreatedDomainEventLog = z.object({
|
|
779
|
-
uuid: z.uuid(),
|
|
780
|
-
createdAt: z.iso.datetime(),
|
|
781
|
-
version: z.int().gte(0),
|
|
782
|
-
source: z.string(),
|
|
783
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
784
|
-
message: z.string(),
|
|
785
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
786
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
787
|
-
type: z.enum(["location.created"]),
|
|
788
|
-
content: zLocationCreatedEventContent
|
|
789
|
-
}), zLocationUpdatedEventContent = z.object({ locationUuid: z.uuid() }), zLocationUpdatedDomainEventLog = z.object({
|
|
790
|
-
uuid: z.uuid(),
|
|
791
|
-
createdAt: z.iso.datetime(),
|
|
792
|
-
version: z.int().gte(0),
|
|
793
|
-
source: z.string(),
|
|
794
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
795
|
-
message: z.string(),
|
|
796
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
797
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
798
|
-
type: z.enum(["location.updated"]),
|
|
799
|
-
content: zLocationUpdatedEventContent
|
|
800
|
-
}), zMailSentEventContent = z.object({
|
|
801
|
-
mailUuid: z.uuid(),
|
|
802
|
-
to: z.array(z.string()),
|
|
803
|
-
cc: z.array(z.string()),
|
|
804
|
-
bcc: z.array(z.string()),
|
|
805
|
-
subject: z.string(),
|
|
806
|
-
mailTemplateUuid: z.union([z.uuid(), z.null()]),
|
|
807
|
-
mailTemplateKey: z.union([z.string(), z.null()]),
|
|
808
|
-
dealUuid: z.union([z.uuid(), z.null()])
|
|
809
|
-
}), zMailSentDomainEventLog = z.object({
|
|
810
|
-
uuid: z.uuid(),
|
|
811
|
-
createdAt: z.iso.datetime(),
|
|
812
|
-
version: z.int().gte(0),
|
|
813
|
-
source: z.string(),
|
|
814
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
815
|
-
message: z.string(),
|
|
816
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
817
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
818
|
-
type: z.enum(["mail.sent"]),
|
|
819
|
-
content: zMailSentEventContent
|
|
820
|
-
}), zBoardColumnCreatedEventContent = z.object({
|
|
821
|
-
boardColumnUuid: z.uuid(),
|
|
822
|
-
key: z.string(),
|
|
823
|
-
position: z.number(),
|
|
824
|
-
tenantUuid: z.uuid()
|
|
825
|
-
}), zBoardColumnCreatedDomainEventLog = z.object({
|
|
826
|
-
uuid: z.uuid(),
|
|
827
|
-
createdAt: z.iso.datetime(),
|
|
828
|
-
version: z.int().gte(0),
|
|
829
|
-
source: z.string(),
|
|
830
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
831
|
-
message: z.string(),
|
|
832
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
833
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
834
|
-
type: z.enum(["board-column.created"]),
|
|
835
|
-
content: zBoardColumnCreatedEventContent
|
|
836
|
-
}), zBoardColumnTransitionCreatedEventContent = z.object({
|
|
837
|
-
boardColumnTransitionUuid: z.uuid(),
|
|
838
|
-
fromColumnUuid: z.uuid(),
|
|
839
|
-
toColumnUuid: z.uuid(),
|
|
840
|
-
tenantUuid: z.uuid()
|
|
841
|
-
}), zBoardColumnTransitionCreatedDomainEventLog = z.object({
|
|
842
|
-
uuid: z.uuid(),
|
|
843
|
-
createdAt: z.iso.datetime(),
|
|
844
|
-
version: z.int().gte(0),
|
|
845
|
-
source: z.string(),
|
|
846
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
847
|
-
message: z.string(),
|
|
848
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
849
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
850
|
-
type: z.enum(["board-column-transition.created"]),
|
|
851
|
-
content: zBoardColumnTransitionCreatedEventContent
|
|
852
|
-
}), zBoardColumnTransitionTriggerType = z.enum(["manual", "email"]), zBoardColumnTransitionTriggerCreatedEventContent = z.object({
|
|
853
|
-
boardColumnTransitionTriggerUuid: z.uuid(),
|
|
854
|
-
boardColumnTransitionUuid: z.uuid(),
|
|
855
|
-
triggerType: zBoardColumnTransitionTriggerType,
|
|
856
|
-
tenantUuid: z.uuid()
|
|
857
|
-
}), zBoardColumnTransitionTriggerCreatedDomainEventLog = z.object({
|
|
858
|
-
uuid: z.uuid(),
|
|
859
|
-
createdAt: z.iso.datetime(),
|
|
860
|
-
version: z.int().gte(0),
|
|
861
|
-
source: z.string(),
|
|
862
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
863
|
-
message: z.string(),
|
|
864
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
865
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
866
|
-
type: z.enum(["board-column-transition-trigger.created"]),
|
|
867
|
-
content: zBoardColumnTransitionTriggerCreatedEventContent
|
|
868
|
-
}), zContactPersonUnlinkedFromBusinessEventContent = z.object({
|
|
869
|
-
businessUuid: z.uuid(),
|
|
870
|
-
contactPerson: zContactPersonContent
|
|
871
|
-
}), zBusinessContactPersonUnlinkedDomainEventLog = z.object({
|
|
872
|
-
uuid: z.uuid(),
|
|
873
|
-
createdAt: z.iso.datetime(),
|
|
874
|
-
version: z.int().gte(0),
|
|
875
|
-
source: z.string(),
|
|
876
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
877
|
-
message: z.string(),
|
|
878
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
879
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
880
|
-
type: z.enum(["business.contact-person.unlinked"]),
|
|
881
|
-
content: zContactPersonUnlinkedFromBusinessEventContent
|
|
882
|
-
}), zBusinessContactPersonUpdatedEventContent = z.object({
|
|
883
|
-
businessUuid: z.uuid(),
|
|
884
|
-
contactPerson: zContactPersonContent,
|
|
885
|
-
diff: z.array(zValueChange)
|
|
886
|
-
}), zBusinessContactPersonUpdatedDomainEventLog = z.object({
|
|
887
|
-
uuid: z.uuid(),
|
|
888
|
-
createdAt: z.iso.datetime(),
|
|
889
|
-
version: z.int().gte(0),
|
|
890
|
-
source: z.string(),
|
|
891
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
892
|
-
message: z.string(),
|
|
893
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
894
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
895
|
-
type: z.enum(["business.contact-person.updated"]),
|
|
896
|
-
content: zBusinessContactPersonUpdatedEventContent
|
|
897
|
-
}), zBusinessContactPersonMadePrimaryEventContent = z.object({
|
|
898
|
-
businessUuid: z.uuid(),
|
|
899
|
-
contactPerson: zContactPersonContent
|
|
900
|
-
}), zBusinessContactPersonMadePrimaryDomainEventLog = z.object({
|
|
901
|
-
uuid: z.uuid(),
|
|
902
|
-
createdAt: z.iso.datetime(),
|
|
903
|
-
version: z.int().gte(0),
|
|
904
|
-
source: z.string(),
|
|
905
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
906
|
-
message: z.string(),
|
|
907
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
908
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
909
|
-
type: z.enum(["business.contact-person.made-primary"]),
|
|
910
|
-
content: zBusinessContactPersonMadePrimaryEventContent
|
|
911
|
-
}), zCustomFieldDefinitionCreatedEventContent = z.object({ customFieldDefinitionUuid: z.uuid() }), zCustomFieldDefinitionCreatedDomainEventLog = z.object({
|
|
912
|
-
uuid: z.uuid(),
|
|
913
|
-
createdAt: z.iso.datetime(),
|
|
914
|
-
version: z.int().gte(0),
|
|
915
|
-
source: z.string(),
|
|
916
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
917
|
-
message: z.string(),
|
|
918
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
919
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
920
|
-
type: z.enum(["custom-field-definition.created"]),
|
|
921
|
-
content: zCustomFieldDefinitionCreatedEventContent
|
|
922
|
-
}), zCreateUserIndividualGrantCreatedEventContent = z.object({
|
|
923
|
-
userUuid: z.uuid(),
|
|
924
|
-
customerZoneIndividualUserUuid: z.uuid()
|
|
925
|
-
}), zIndividualUserGrantCreatedDomainEventLog = z.object({
|
|
926
|
-
uuid: z.uuid(),
|
|
927
|
-
createdAt: z.iso.datetime(),
|
|
928
|
-
version: z.int().gte(0),
|
|
929
|
-
source: z.string(),
|
|
930
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
931
|
-
message: z.string(),
|
|
932
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
933
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
934
|
-
type: z.enum(["individual-user-grant.created"]),
|
|
935
|
-
content: zCreateUserIndividualGrantCreatedEventContent
|
|
936
|
-
}), zIndividualUserGrantEmailVerifiedEventContent = z.object({
|
|
937
|
-
customerZoneIndividualUserUuid: z.uuid(),
|
|
938
|
-
userUuid: z.uuid()
|
|
939
|
-
}), zIndividualUserGrantEmailVerifiedDomainEventLog = z.object({
|
|
940
|
-
uuid: z.uuid(),
|
|
941
|
-
createdAt: z.iso.datetime(),
|
|
942
|
-
version: z.int().gte(0),
|
|
943
|
-
source: z.string(),
|
|
944
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
945
|
-
message: z.string(),
|
|
946
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
947
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
948
|
-
type: z.enum(["individual-user-grant.email-verified"]),
|
|
949
|
-
content: zIndividualUserGrantEmailVerifiedEventContent
|
|
950
|
-
}), zDealContactPersonMadePrimaryEventContent = z.object({
|
|
951
|
-
dealUuid: z.uuid(),
|
|
952
|
-
contactPerson: zContactPersonContent
|
|
953
|
-
}), zDealContactPersonMadePrimaryDomainEventLog = z.object({
|
|
954
|
-
uuid: z.uuid(),
|
|
955
|
-
createdAt: z.iso.datetime(),
|
|
956
|
-
version: z.int().gte(0),
|
|
957
|
-
source: z.string(),
|
|
958
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
959
|
-
message: z.string(),
|
|
960
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
961
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
962
|
-
type: z.enum(["deal.contact.person.made-primary"]),
|
|
963
|
-
content: zDealContactPersonMadePrimaryEventContent
|
|
964
|
-
}), zContactPersonUnlinkedFromDealEventContent = z.object({
|
|
965
|
-
dealUuid: z.uuid(),
|
|
966
|
-
contactPerson: zContactPersonContent
|
|
967
|
-
}), zDealContactPersonUnlinkedDomainEventLog = z.object({
|
|
968
|
-
uuid: z.uuid(),
|
|
969
|
-
createdAt: z.iso.datetime(),
|
|
970
|
-
version: z.int().gte(0),
|
|
971
|
-
source: z.string(),
|
|
972
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
973
|
-
message: z.string(),
|
|
974
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
975
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
976
|
-
type: z.enum(["deal.contact.person.unlinked"]),
|
|
977
|
-
content: zContactPersonUnlinkedFromDealEventContent
|
|
978
|
-
}), zDealContactPersonUpdatedEventContent = z.object({
|
|
979
|
-
dealUuid: z.uuid(),
|
|
980
|
-
contactPerson: zContactPersonContent,
|
|
981
|
-
diff: z.array(zValueChange)
|
|
982
|
-
}), zDealContactPersonUpdatedDomainEventLog = z.object({
|
|
983
|
-
uuid: z.uuid(),
|
|
984
|
-
createdAt: z.iso.datetime(),
|
|
985
|
-
version: z.int().gte(0),
|
|
986
|
-
source: z.string(),
|
|
987
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
988
|
-
message: z.string(),
|
|
989
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
990
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
991
|
-
type: z.enum(["deal.contact.person.updated"]),
|
|
992
|
-
content: zDealContactPersonUpdatedEventContent
|
|
993
|
-
}), zDealOwnerUpdatedEventContent = z.object({
|
|
994
|
-
dealUuid: z.uuid(),
|
|
995
|
-
previousOwnerUuid: z.union([z.record(z.string(), z.unknown()), z.null()]),
|
|
996
|
-
dealOwnerUuid: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
997
|
-
}), zDealOwnerUpdatedDomainEventLog = z.object({
|
|
998
|
-
uuid: z.uuid(),
|
|
999
|
-
createdAt: z.iso.datetime(),
|
|
1000
|
-
version: z.int().gte(0),
|
|
1001
|
-
source: z.string(),
|
|
1002
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1003
|
-
message: z.string(),
|
|
1004
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1005
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1006
|
-
type: z.enum(["deal.owner.updated"]),
|
|
1007
|
-
content: zDealOwnerUpdatedEventContent
|
|
1008
|
-
}), zContactPersonLinkedToIndividualEventContent = z.object({
|
|
1009
|
-
individualUuid: z.uuid(),
|
|
1010
|
-
contactPerson: zContactPersonContent,
|
|
1011
|
-
position: z.union([z.string(), z.null()])
|
|
1012
|
-
}), zIndividualContactPersonLinkedDomainEventLog = z.object({
|
|
1013
|
-
uuid: z.uuid(),
|
|
1014
|
-
createdAt: z.iso.datetime(),
|
|
1015
|
-
version: z.int().gte(0),
|
|
1016
|
-
source: z.string(),
|
|
1017
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1018
|
-
message: z.string(),
|
|
1019
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1020
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1021
|
-
type: z.enum(["individual.contact-person.linked"]),
|
|
1022
|
-
content: zContactPersonLinkedToIndividualEventContent
|
|
1023
|
-
}), zContactPersonUnlinkedFromIndividualEventContent = z.object({
|
|
1024
|
-
individualUuid: z.uuid(),
|
|
1025
|
-
contactPerson: zContactPersonContent
|
|
1026
|
-
}), zIndividualContactPersonUnlinkedDomainEventLog = z.object({
|
|
1027
|
-
uuid: z.uuid(),
|
|
1028
|
-
createdAt: z.iso.datetime(),
|
|
1029
|
-
version: z.int().gte(0),
|
|
1030
|
-
source: z.string(),
|
|
1031
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1032
|
-
message: z.string(),
|
|
1033
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1034
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1035
|
-
type: z.enum(["individual.contact-person.unlinked"]),
|
|
1036
|
-
content: zContactPersonUnlinkedFromIndividualEventContent
|
|
1037
|
-
}), zIndividualContactPersonUpdatedEventContent = z.object({
|
|
1038
|
-
individualUuid: z.uuid(),
|
|
1039
|
-
contactPerson: zContactPersonContent,
|
|
1040
|
-
diff: z.array(zValueChange)
|
|
1041
|
-
}), zIndividualContactPersonUpdatedDomainEventLog = z.object({
|
|
1042
|
-
uuid: z.uuid(),
|
|
1043
|
-
createdAt: z.iso.datetime(),
|
|
1044
|
-
version: z.int().gte(0),
|
|
1045
|
-
source: z.string(),
|
|
1046
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1047
|
-
message: z.string(),
|
|
1048
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1049
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1050
|
-
type: z.enum(["individual.contact-person.updated"]),
|
|
1051
|
-
content: zIndividualContactPersonUpdatedEventContent
|
|
1052
|
-
}), zIndividualContactPersonMadePrimaryEventContent = z.object({
|
|
1053
|
-
individualUuid: z.uuid(),
|
|
1054
|
-
contactPerson: zContactPersonContent
|
|
1055
|
-
}), zIndividualContactPersonMadePrimaryDomainEventLog = z.object({
|
|
1056
|
-
uuid: z.uuid(),
|
|
1057
|
-
createdAt: z.iso.datetime(),
|
|
1058
|
-
version: z.int().gte(0),
|
|
1059
|
-
source: z.string(),
|
|
1060
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1061
|
-
message: z.string(),
|
|
1062
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1063
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1064
|
-
type: z.enum(["individual.contact-person.made-primary"]),
|
|
1065
|
-
content: zIndividualContactPersonMadePrimaryEventContent
|
|
1066
|
-
}), zMailTemplateCreatedEventContent = z.object({
|
|
1067
|
-
mailTemplateUuid: z.uuid(),
|
|
1068
|
-
key: z.string()
|
|
1069
|
-
}), zMailTemplateCreatedDomainEventLog = z.object({
|
|
1070
|
-
uuid: z.uuid(),
|
|
1071
|
-
createdAt: z.iso.datetime(),
|
|
1072
|
-
version: z.int().gte(0),
|
|
1073
|
-
source: z.string(),
|
|
1074
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1075
|
-
message: z.string(),
|
|
1076
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1077
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1078
|
-
type: z.enum(["mail.template.created"]),
|
|
1079
|
-
content: zMailTemplateCreatedEventContent
|
|
1080
|
-
}), zMailTemplateUpdatedEventContent = z.object({ mailTemplateUuid: z.uuid() }), zMailTemplateUpdatedDomainEventLog = z.object({
|
|
1081
|
-
uuid: z.uuid(),
|
|
1082
|
-
createdAt: z.iso.datetime(),
|
|
1083
|
-
version: z.int().gte(0),
|
|
1084
|
-
source: z.string(),
|
|
1085
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1086
|
-
message: z.string(),
|
|
1087
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1088
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1089
|
-
type: z.enum(["mail.template.updated"]),
|
|
1090
|
-
content: zMailTemplateUpdatedEventContent
|
|
1091
|
-
}), zNoteDomainEventContent = z.object({
|
|
1092
|
-
uuid: z.uuid(),
|
|
1093
|
-
name: z.string()
|
|
1094
|
-
}), zBusinessNoteCreatedDomainEventContent = z.object({
|
|
1095
|
-
businessUuid: z.uuid(),
|
|
1096
|
-
individualUuid: z.uuid(),
|
|
1097
|
-
note: zNoteDomainEventContent
|
|
1098
|
-
}), zBusinessNoteCreatedDomainEventLog = z.object({
|
|
1099
|
-
uuid: z.uuid(),
|
|
1100
|
-
createdAt: z.iso.datetime(),
|
|
1101
|
-
version: z.int().gte(0),
|
|
1102
|
-
source: z.string(),
|
|
1103
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1104
|
-
message: z.string(),
|
|
1105
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1106
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1107
|
-
type: z.enum(["business.note.created"]),
|
|
1108
|
-
content: zBusinessNoteCreatedDomainEventContent
|
|
1109
|
-
}), zIndividualNoteCreatedDomainEventContent = z.object({
|
|
1110
|
-
businessUuid: z.uuid(),
|
|
1111
|
-
individualUuid: z.uuid(),
|
|
1112
|
-
note: zNoteDomainEventContent
|
|
1113
|
-
}), zIndividualNoteCreatedDomainEventLog = z.object({
|
|
1114
|
-
uuid: z.uuid(),
|
|
1115
|
-
createdAt: z.iso.datetime(),
|
|
1116
|
-
version: z.int().gte(0),
|
|
1117
|
-
source: z.string(),
|
|
1118
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1119
|
-
message: z.string(),
|
|
1120
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1121
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1122
|
-
type: z.enum(["individual.note.created"]),
|
|
1123
|
-
content: zIndividualNoteCreatedDomainEventContent
|
|
1124
|
-
}), zDealNoteCreatedDomainEventContent = z.object({
|
|
1125
|
-
dealUuid: z.uuid(),
|
|
1126
|
-
note: zNoteDomainEventContent
|
|
1127
|
-
}), zDealNoteCreatedDomainEventLog = z.object({
|
|
1128
|
-
uuid: z.uuid(),
|
|
1129
|
-
createdAt: z.iso.datetime(),
|
|
1130
|
-
version: z.int().gte(0),
|
|
1131
|
-
source: z.string(),
|
|
1132
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1133
|
-
message: z.string(),
|
|
1134
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1135
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1136
|
-
type: z.enum(["deal.note.created"]),
|
|
1137
|
-
content: zDealNoteCreatedDomainEventContent
|
|
1138
|
-
}), zBusinessNoteUpdatedDomainEventContent = z.object({
|
|
1139
|
-
note: zNoteDomainEventContent,
|
|
1140
|
-
businessUuid: z.uuid(),
|
|
1141
|
-
changes: z.array(zValueChange)
|
|
1142
|
-
}), zBusinessNoteUpdatedDomainEventLog = z.object({
|
|
1143
|
-
uuid: z.uuid(),
|
|
1144
|
-
createdAt: z.iso.datetime(),
|
|
1145
|
-
version: z.int().gte(0),
|
|
1146
|
-
source: z.string(),
|
|
1147
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1148
|
-
message: z.string(),
|
|
1149
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1150
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1151
|
-
type: z.enum(["business.note.updated"]),
|
|
1152
|
-
content: zBusinessNoteUpdatedDomainEventContent
|
|
1153
|
-
}), zIndividualNoteUpdatedDomainEventContent = z.object({
|
|
1154
|
-
note: zNoteDomainEventContent,
|
|
1155
|
-
individualUuid: z.uuid(),
|
|
1156
|
-
changes: z.array(zValueChange)
|
|
1157
|
-
}), zIndividualNoteUpdatedDomainEventLog = z.object({
|
|
1158
|
-
uuid: z.uuid(),
|
|
1159
|
-
createdAt: z.iso.datetime(),
|
|
1160
|
-
version: z.int().gte(0),
|
|
1161
|
-
source: z.string(),
|
|
1162
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1163
|
-
message: z.string(),
|
|
1164
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1165
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1166
|
-
type: z.enum(["individual.note.updated"]),
|
|
1167
|
-
content: zIndividualNoteUpdatedDomainEventContent
|
|
1168
|
-
}), zDealNoteUpdatedDomainEventContent = z.object({
|
|
1169
|
-
note: zNoteDomainEventContent,
|
|
1170
|
-
dealUuid: z.uuid(),
|
|
1171
|
-
changes: z.array(zValueChange)
|
|
1172
|
-
}), zDealNoteUpdatedDomainEventLog = z.object({
|
|
1173
|
-
uuid: z.uuid(),
|
|
1174
|
-
createdAt: z.iso.datetime(),
|
|
1175
|
-
version: z.int().gte(0),
|
|
1176
|
-
source: z.string(),
|
|
1177
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1178
|
-
message: z.string(),
|
|
1179
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1180
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1181
|
-
type: z.enum(["deal.note.updated"]),
|
|
1182
|
-
content: zDealNoteUpdatedDomainEventContent
|
|
1183
|
-
}), zIndividualNoteFileAddedDomainEventContent = z.object({
|
|
1184
|
-
note: zNoteDomainEventContent,
|
|
1185
|
-
fileUuid: z.uuid(),
|
|
1186
|
-
individualUuid: z.uuid()
|
|
1187
|
-
}), zIndividualNoteFileAddedDomainEventLog = z.object({
|
|
1188
|
-
uuid: z.uuid(),
|
|
1189
|
-
createdAt: z.iso.datetime(),
|
|
1190
|
-
version: z.int().gte(0),
|
|
1191
|
-
source: z.string(),
|
|
1192
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1193
|
-
message: z.string(),
|
|
1194
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1195
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1196
|
-
type: z.enum(["individual.note.file.added"]),
|
|
1197
|
-
content: zIndividualNoteFileAddedDomainEventContent
|
|
1198
|
-
}), zBusinessNoteFileAddedDomainEventContent = z.object({
|
|
1199
|
-
note: zNoteDomainEventContent,
|
|
1200
|
-
fileUuid: z.uuid(),
|
|
1201
|
-
businessUuid: z.uuid()
|
|
1202
|
-
}), zBusinessNoteFileAddedDomainEventLog = z.object({
|
|
1203
|
-
uuid: z.uuid(),
|
|
1204
|
-
createdAt: z.iso.datetime(),
|
|
1205
|
-
version: z.int().gte(0),
|
|
1206
|
-
source: z.string(),
|
|
1207
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1208
|
-
message: z.string(),
|
|
1209
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1210
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1211
|
-
type: z.enum(["business.note.file.added"]),
|
|
1212
|
-
content: zBusinessNoteFileAddedDomainEventContent
|
|
1213
|
-
}), zDealNoteFileAddedDomainEventContent = z.object({
|
|
1214
|
-
note: zNoteDomainEventContent,
|
|
1215
|
-
fileUuid: z.uuid()
|
|
1216
|
-
}), zDealNoteFileAddedDomainEventLog = z.object({
|
|
1217
|
-
uuid: z.uuid(),
|
|
1218
|
-
createdAt: z.iso.datetime(),
|
|
1219
|
-
version: z.int().gte(0),
|
|
1220
|
-
source: z.string(),
|
|
1221
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1222
|
-
message: z.string(),
|
|
1223
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1224
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1225
|
-
type: z.enum(["deal.note.file.added"]),
|
|
1226
|
-
content: zDealNoteFileAddedDomainEventContent
|
|
1227
|
-
}), zBusinessNoteFileDeletedDomainEventContent = z.object({
|
|
1228
|
-
note: zNoteDomainEventContent,
|
|
1229
|
-
fileUuid: z.uuid(),
|
|
1230
|
-
businessUuid: z.uuid()
|
|
1231
|
-
}), zBusinessNoteFileDeletedDomainEventLog = z.object({
|
|
1232
|
-
uuid: z.uuid(),
|
|
1233
|
-
createdAt: z.iso.datetime(),
|
|
1234
|
-
version: z.int().gte(0),
|
|
1235
|
-
source: z.string(),
|
|
1236
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1237
|
-
message: z.string(),
|
|
1238
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1239
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1240
|
-
type: z.enum(["business.note.file.deleted"]),
|
|
1241
|
-
content: zBusinessNoteFileDeletedDomainEventContent
|
|
1242
|
-
}), zIndividualNoteFileDeletedDomainEventContent = z.object({
|
|
1243
|
-
note: zNoteDomainEventContent,
|
|
1244
|
-
fileUuid: z.uuid(),
|
|
1245
|
-
individualUuid: z.uuid()
|
|
1246
|
-
}), zIndividualNoteFileDeletedDomainEventLog = z.object({
|
|
1247
|
-
uuid: z.uuid(),
|
|
1248
|
-
createdAt: z.iso.datetime(),
|
|
1249
|
-
version: z.int().gte(0),
|
|
1250
|
-
source: z.string(),
|
|
1251
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1252
|
-
message: z.string(),
|
|
1253
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1254
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1255
|
-
type: z.enum(["individual.note.file.deleted"]),
|
|
1256
|
-
content: zIndividualNoteFileDeletedDomainEventContent
|
|
1257
|
-
}), zDealNoteFileDeletedDomainEventContent = z.object({
|
|
1258
|
-
note: zNoteDomainEventContent,
|
|
1259
|
-
fileUuid: z.uuid()
|
|
1260
|
-
}), zDealNoteFileDeletedDomainEventLog = z.object({
|
|
1261
|
-
uuid: z.uuid(),
|
|
1262
|
-
createdAt: z.iso.datetime(),
|
|
1263
|
-
version: z.int().gte(0),
|
|
1264
|
-
source: z.string(),
|
|
1265
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1266
|
-
message: z.string(),
|
|
1267
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1268
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1269
|
-
type: z.enum(["deal.note.file.deleted"]),
|
|
1270
|
-
content: zDealNoteFileDeletedDomainEventContent
|
|
1271
|
-
}), zBusinessNoteDeletedDomainEventContent = z.object({
|
|
1272
|
-
noteUuid: z.uuid(),
|
|
1273
|
-
businessUuid: z.uuid()
|
|
1274
|
-
}), zBusinessNoteDeletedDomainEventLog = z.object({
|
|
1275
|
-
uuid: z.uuid(),
|
|
1276
|
-
createdAt: z.iso.datetime(),
|
|
1277
|
-
version: z.int().gte(0),
|
|
1278
|
-
source: z.string(),
|
|
1279
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1280
|
-
message: z.string(),
|
|
1281
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1282
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1283
|
-
type: z.enum(["business.note.deleted"]),
|
|
1284
|
-
content: zBusinessNoteDeletedDomainEventContent
|
|
1285
|
-
}), zIndividualNoteDeletedDomainEventContent = z.object({
|
|
1286
|
-
noteUuid: z.uuid(),
|
|
1287
|
-
individualUuid: z.uuid()
|
|
1288
|
-
}), zIndividualNoteDeletedDomainEventLog = z.object({
|
|
1289
|
-
uuid: z.uuid(),
|
|
1290
|
-
createdAt: z.iso.datetime(),
|
|
1291
|
-
version: z.int().gte(0),
|
|
1292
|
-
source: z.string(),
|
|
1293
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1294
|
-
message: z.string(),
|
|
1295
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1296
|
-
subjectId: z.union([z.uuid(), z.null()]),
|
|
1297
|
-
type: z.enum(["individual.note.deleted"]),
|
|
1298
|
-
content: zIndividualNoteDeletedDomainEventContent
|
|
1299
|
-
}), zDealNoteDeletedDomainEventContent = z.object({
|
|
1300
|
-
note: zNoteDomainEventContent,
|
|
1301
|
-
dealUuid: z.uuid()
|
|
1302
|
-
}), zDealNoteDeletedDomainEventLog = 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.note.deleted"]),
|
|
1312
|
-
content: zDealNoteDeletedDomainEventContent
|
|
1313
|
-
});
|
|
1314
|
-
z.object({
|
|
1315
|
-
uuid: z.uuid(),
|
|
1316
|
-
createdAt: z.iso.datetime(),
|
|
1317
|
-
version: z.int().gte(0),
|
|
1318
|
-
source: z.string(),
|
|
1319
|
-
userUuid: z.union([z.uuid(), z.null()]),
|
|
1320
|
-
message: z.string(),
|
|
1321
|
-
subjectType: z.union([zSubjectType, z.null()]),
|
|
1322
|
-
subjectId: z.union([z.uuid(), z.null()])
|
|
1323
|
-
});
|
|
1324
|
-
const zViewDomainEventLogIndexResponseMeta = z.object({ next: z.union([zViewDomainEventLogIndexQueryKey, z.null()]) });
|
|
1325
|
-
z.object({
|
|
1326
|
-
items: z.array(z.union([
|
|
1327
|
-
zIndividualBillingInformationUpsertedDomainEventLog,
|
|
1328
|
-
zIndividualStatusUpdatedDomainEventLog,
|
|
1329
|
-
zIndividualUpdatedDomainEventLog,
|
|
1330
|
-
zIndividualCreatedDomainEventLog,
|
|
1331
|
-
zBusinessCreatedDomainEventLog,
|
|
1332
|
-
zBusinessUpdatedDomainEventLog,
|
|
1333
|
-
zBusinessBillingInformationUpsertedDomainEventLog,
|
|
1334
|
-
zBusinessStatusUpdatedDomainEventLog,
|
|
1335
|
-
zCbeEnterpriseImportedDomainEventLog,
|
|
1336
|
-
zCbeDenominationImportedDomainEventLog,
|
|
1337
|
-
zCbeContactImportedDomainEventLog,
|
|
1338
|
-
zCbeAddressImportedDomainEventLog,
|
|
1339
|
-
zBusinessContactPersonLinkedDomainEventLog,
|
|
1340
|
-
zDealContactPersonLinkedDomainEventLog,
|
|
1341
|
-
zCbeEstablishmentImportedDomainEventLog,
|
|
1342
|
-
zDealCreatedDomainEventLog,
|
|
1343
|
-
zDealUpdatedDomainEventLog,
|
|
1344
|
-
zDealColumnTransitionedDomainEventLog,
|
|
1345
|
-
zMailCreatedDomainEventLog,
|
|
1346
|
-
zLocationCreatedDomainEventLog,
|
|
1347
|
-
zLocationUpdatedDomainEventLog,
|
|
1348
|
-
zMailSentDomainEventLog,
|
|
1349
|
-
zBoardColumnCreatedDomainEventLog,
|
|
1350
|
-
zBoardColumnTransitionCreatedDomainEventLog,
|
|
1351
|
-
zBoardColumnTransitionTriggerCreatedDomainEventLog,
|
|
1352
|
-
zBusinessContactPersonUnlinkedDomainEventLog,
|
|
1353
|
-
zBusinessContactPersonUpdatedDomainEventLog,
|
|
1354
|
-
zBusinessContactPersonMadePrimaryDomainEventLog,
|
|
1355
|
-
zCustomFieldDefinitionCreatedDomainEventLog,
|
|
1356
|
-
zIndividualUserGrantCreatedDomainEventLog,
|
|
1357
|
-
zIndividualUserGrantEmailVerifiedDomainEventLog,
|
|
1358
|
-
zDealContactPersonMadePrimaryDomainEventLog,
|
|
1359
|
-
zDealContactPersonUnlinkedDomainEventLog,
|
|
1360
|
-
zDealContactPersonUpdatedDomainEventLog,
|
|
1361
|
-
zDealOwnerUpdatedDomainEventLog,
|
|
1362
|
-
zIndividualContactPersonLinkedDomainEventLog,
|
|
1363
|
-
zIndividualContactPersonUnlinkedDomainEventLog,
|
|
1364
|
-
zIndividualContactPersonUpdatedDomainEventLog,
|
|
1365
|
-
zIndividualContactPersonMadePrimaryDomainEventLog,
|
|
1366
|
-
zMailTemplateCreatedDomainEventLog,
|
|
1367
|
-
zMailTemplateUpdatedDomainEventLog,
|
|
1368
|
-
zBusinessNoteCreatedDomainEventLog,
|
|
1369
|
-
zIndividualNoteCreatedDomainEventLog,
|
|
1370
|
-
zDealNoteCreatedDomainEventLog,
|
|
1371
|
-
zBusinessNoteUpdatedDomainEventLog,
|
|
1372
|
-
zIndividualNoteUpdatedDomainEventLog,
|
|
1373
|
-
zDealNoteUpdatedDomainEventLog,
|
|
1374
|
-
zIndividualNoteFileAddedDomainEventLog,
|
|
1375
|
-
zBusinessNoteFileAddedDomainEventLog,
|
|
1376
|
-
zDealNoteFileAddedDomainEventLog,
|
|
1377
|
-
zBusinessNoteFileDeletedDomainEventLog,
|
|
1378
|
-
zIndividualNoteFileDeletedDomainEventLog,
|
|
1379
|
-
zDealNoteFileDeletedDomainEventLog,
|
|
1380
|
-
zBusinessNoteDeletedDomainEventLog,
|
|
1381
|
-
zIndividualNoteDeletedDomainEventLog,
|
|
1382
|
-
zDealNoteDeletedDomainEventLog
|
|
1383
|
-
])),
|
|
1384
|
-
meta: zViewDomainEventLogIndexResponseMeta
|
|
1385
|
-
});
|
|
1386
|
-
const zGlobalSearchCollectionName = z.enum([
|
|
1387
|
-
"user",
|
|
1388
|
-
"business",
|
|
1389
|
-
"individual"
|
|
1390
|
-
]), zSearchCollectionsFilterContactQuery = z.object({ isActive: z.optional(z.boolean()) }), zSearchCollectionsFilterQuery = z.object({
|
|
1391
|
-
collections: z.optional(z.array(zGlobalSearchCollectionName)),
|
|
1392
|
-
contact: z.optional(zSearchCollectionsFilterContactQuery)
|
|
1393
|
-
}), zSearchCollectionUserResponse = z.object({
|
|
1394
|
-
uuid: z.uuid(),
|
|
1395
|
-
name: z.string(),
|
|
1396
|
-
email: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
1397
|
-
}), zVatNumberResponse = z.object({
|
|
1398
|
-
countryCode: zCountryCode,
|
|
1399
|
-
number: z.string()
|
|
1400
|
-
}), zCoordinatesResponse = z.object({
|
|
1401
|
-
longitude: z.number(),
|
|
1402
|
-
latitude: z.number()
|
|
1403
|
-
}), zAddressResponse = z.object({
|
|
1404
|
-
placeName: z.union([z.string(), z.null()]),
|
|
1405
|
-
placeId: z.union([z.string(), z.null()]),
|
|
1406
|
-
country: z.union([z.string(), z.null()]),
|
|
1407
|
-
city: z.union([z.string(), z.null()]),
|
|
1408
|
-
postalCode: z.union([z.string(), z.null()]),
|
|
1409
|
-
streetName: z.union([z.string(), z.null()]),
|
|
1410
|
-
streetNumber: z.union([z.string(), z.null()]),
|
|
1411
|
-
unit: z.union([z.string(), z.null()]),
|
|
1412
|
-
coordinates: z.union([zCoordinatesResponse, z.null()])
|
|
1413
|
-
}), zSearchCollectionBusinessResponse = z.object({
|
|
1414
|
-
uuid: z.uuid(),
|
|
1415
|
-
name: z.string(),
|
|
1416
|
-
vatNumber: z.union([zVatNumberResponse, z.null()]),
|
|
1417
|
-
address: zAddressResponse,
|
|
1418
|
-
parentName: z.union([z.string(), z.null()])
|
|
1419
|
-
}), zSearchCollectionIndividualResponse = z.object({
|
|
1420
|
-
uuid: z.uuid(),
|
|
1421
|
-
name: z.string(),
|
|
1422
|
-
email: z.union([z.string(), z.null()]),
|
|
1423
|
-
phone: z.union([z.string(), z.null()]),
|
|
1424
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1425
|
-
address: z.union([zAddressResponse, z.null()])
|
|
1426
|
-
}), zSearchCollectionsResponseItem = z.object({
|
|
1427
|
-
collection: zGlobalSearchCollectionName,
|
|
1428
|
-
entity: z.union([
|
|
1429
|
-
zSearchCollectionUserResponse,
|
|
1430
|
-
zSearchCollectionBusinessResponse,
|
|
1431
|
-
zSearchCollectionIndividualResponse
|
|
1432
|
-
]),
|
|
1433
|
-
text_match: z.number()
|
|
1434
|
-
}), zSearchCollectionsResponse = z.object({ items: z.array(zSearchCollectionsResponseItem) }), zNotificationPreset = z.enum([
|
|
1435
|
-
"all",
|
|
1436
|
-
"default",
|
|
1437
|
-
"custom",
|
|
1438
|
-
"none"
|
|
1439
|
-
]), zNotificationType = z.enum(["user.created", "system.test-notification"]), zPreferenceTypes = z.object({
|
|
1440
|
-
email: z.array(zNotificationType),
|
|
1441
|
-
sms: z.array(zNotificationType),
|
|
1442
|
-
app: z.array(zNotificationType),
|
|
1443
|
-
push: z.array(zNotificationType)
|
|
1444
|
-
});
|
|
1445
|
-
z.object({
|
|
1446
|
-
preset: zNotificationPreset,
|
|
1447
|
-
emailEnabled: z.boolean(),
|
|
1448
|
-
smsEnabled: z.boolean(),
|
|
1449
|
-
appEnabled: z.boolean(),
|
|
1450
|
-
pushEnabled: z.boolean(),
|
|
1451
|
-
preferences: zPreferenceTypes
|
|
1452
|
-
});
|
|
1453
|
-
const zNotificationChannel = z.enum([
|
|
1454
|
-
"email",
|
|
1455
|
-
"sms",
|
|
1456
|
-
"app",
|
|
1457
|
-
"push"
|
|
1458
|
-
]), zNotificationTypeChannelConfig = z.object({
|
|
1459
|
-
channel: zNotificationChannel,
|
|
1460
|
-
defaultValue: z.boolean(),
|
|
1461
|
-
isSupported: z.boolean()
|
|
1462
|
-
}), zViewNotificationTypeConfigTypeResponse = z.object({
|
|
1463
|
-
key: zNotificationType,
|
|
1464
|
-
description: z.string(),
|
|
1465
|
-
channelConfigs: z.array(zNotificationTypeChannelConfig)
|
|
1466
|
-
}), zViewNotificationTypesConfigGroupResponse = z.object({
|
|
1467
|
-
name: z.string(),
|
|
1468
|
-
description: z.string(),
|
|
1469
|
-
types: z.array(zViewNotificationTypeConfigTypeResponse)
|
|
1470
|
-
});
|
|
1471
|
-
z.object({ groups: z.array(zViewNotificationTypesConfigGroupResponse) });
|
|
1472
|
-
const zUpdateMyChannelNotificationPreferenceCommand = z.object({
|
|
1473
|
-
channel: zNotificationChannel,
|
|
1474
|
-
isEnabled: z.boolean()
|
|
1475
|
-
}), zGetMyNotificationsFilterQuery = z.object({ onlyUnread: z.optional(z.string()) }), zGetMyNotificationsQueryKey = z.object({
|
|
1476
|
-
createdAt: z.string(),
|
|
1477
|
-
notificationUuid: z.uuid()
|
|
1478
|
-
}), zGetMyNotificationsPaginationQuery = z.object({
|
|
1479
|
-
limit: z.number().gte(0).lte(100),
|
|
1480
|
-
key: z.optional(z.union([zGetMyNotificationsQueryKey, z.null()]))
|
|
1481
|
-
}), zCreatedByUserResponse = z.object({
|
|
1482
|
-
uuid: z.uuid(),
|
|
1483
|
-
name: z.string()
|
|
1484
|
-
}), zTestNotificationContent = z.object({ message: z.string() }), zSystemTestNotificationNotification = z.object({
|
|
1485
|
-
createdAt: z.iso.datetime(),
|
|
1486
|
-
readAt: z.union([z.iso.datetime(), z.null()]),
|
|
1487
|
-
notificationUuid: z.uuid(),
|
|
1488
|
-
createdByUser: z.union([zCreatedByUserResponse, z.null()]),
|
|
1489
|
-
message: z.string(),
|
|
1490
|
-
type: z.enum(["system.test-notification"]),
|
|
1491
|
-
meta: zTestNotificationContent
|
|
1492
|
-
}), zGetMyNotificationsResponseMeta = z.object({ next: z.union([zGetMyNotificationsQueryKey, z.null()]) });
|
|
1493
|
-
z.object({
|
|
1494
|
-
items: z.array(zSystemTestNotificationNotification),
|
|
1495
|
-
meta: zGetMyNotificationsResponseMeta
|
|
1496
|
-
}), z.object({
|
|
1497
|
-
amount: z.number().gte(0),
|
|
1498
|
-
exceedsLimit: z.boolean()
|
|
1499
|
-
}), z.object({
|
|
1500
|
-
detail: z.optional(z.string()),
|
|
1501
|
-
status: z.enum(["404"]),
|
|
1502
|
-
code: z.enum(["user_notification_not_found"])
|
|
1503
|
-
});
|
|
1504
|
-
const zUpdateMyNotificationTypePreferenceCommand = z.object({
|
|
1505
|
-
channel: zNotificationChannel,
|
|
1506
|
-
isEnabled: z.boolean(),
|
|
1507
|
-
types: z.array(zNotificationType)
|
|
1508
|
-
}), zUpdateMyNotificationPreferencePresetCommand = z.object({ preset: zNotificationPreset }), zMigrationAlreadyPerformedErrorMeta = z.object({ type: z.array(zNotificationType) });
|
|
1509
|
-
z.object({
|
|
1510
|
-
detail: z.optional(z.string()),
|
|
1511
|
-
status: z.enum(["400"]),
|
|
1512
|
-
code: z.enum(["migration_already_performed"]),
|
|
1513
|
-
meta: zMigrationAlreadyPerformedErrorMeta
|
|
1514
|
-
});
|
|
1515
|
-
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({
|
|
1516
|
-
key: zViewJobsIndexSortQueryKey,
|
|
1517
|
-
order: zSortDirection
|
|
1518
|
-
}), zQueueName = z.enum(["system"]), zViewJobsIndexFilterQuery = z.object({ queueNames: z.optional(z.array(zQueueName)) }), zViewJobsIndexQueryKey = z.object({
|
|
1519
|
-
createdAt: z.optional(z.iso.datetime()),
|
|
1520
|
-
id: z.string()
|
|
1521
|
-
}), zViewJobsIndexPaginationQuery = z.object({
|
|
1522
|
-
limit: z.number().gte(0).lte(100),
|
|
1523
|
-
key: z.optional(z.union([zViewJobsIndexQueryKey, z.null()]))
|
|
1524
|
-
}), zJobStatus = z.enum([
|
|
1525
|
-
"created",
|
|
1526
|
-
"active",
|
|
1527
|
-
"completed",
|
|
1528
|
-
"retry",
|
|
1529
|
-
"failed",
|
|
1530
|
-
"cancelled"
|
|
1531
|
-
]), zViewJobsIndexItemResponse = z.object({
|
|
1532
|
-
queueName: zQueueName,
|
|
1533
|
-
id: z.uuid(),
|
|
1534
|
-
name: z.string(),
|
|
1535
|
-
status: zJobStatus,
|
|
1536
|
-
createdAt: z.iso.datetime(),
|
|
1537
|
-
completedAt: z.union([z.iso.datetime(), z.null()])
|
|
1538
|
-
}), zViewJobsIndexResponseMeta = z.object({ next: z.union([zViewJobsIndexQueryKey, z.null()]) });
|
|
1539
|
-
z.object({
|
|
1540
|
-
items: z.array(zViewJobsIndexItemResponse),
|
|
1541
|
-
meta: zViewJobsIndexResponseMeta
|
|
1542
|
-
}), z.object({
|
|
1543
|
-
detail: z.optional(z.string()),
|
|
1544
|
-
status: z.enum(["404"]),
|
|
1545
|
-
code: z.enum(["job_not_found"])
|
|
1546
|
-
}), z.object({
|
|
1547
|
-
id: z.uuid(),
|
|
1548
|
-
queueName: zQueueName,
|
|
1549
|
-
priority: z.number(),
|
|
1550
|
-
name: z.string(),
|
|
1551
|
-
data: z.record(z.string(), z.unknown()),
|
|
1552
|
-
status: zJobStatus,
|
|
1553
|
-
retryLimit: z.number(),
|
|
1554
|
-
retryCount: z.number(),
|
|
1555
|
-
retryDelay: z.number(),
|
|
1556
|
-
retryBackoff: z.boolean(),
|
|
1557
|
-
startAfter: z.iso.datetime(),
|
|
1558
|
-
startedAt: z.union([z.iso.datetime(), z.null()]),
|
|
1559
|
-
singletonKey: z.union([z.string(), z.null()]),
|
|
1560
|
-
singletonOn: z.union([z.iso.datetime(), z.null()]),
|
|
1561
|
-
expireIn: z.record(z.string(), z.unknown()),
|
|
1562
|
-
createdAt: z.iso.datetime(),
|
|
1563
|
-
completedAt: z.union([z.iso.datetime(), z.null()]),
|
|
1564
|
-
keepUntil: z.iso.datetime(),
|
|
1565
|
-
output: z.union([z.record(z.string(), z.unknown()), z.null()]),
|
|
1566
|
-
deadLetter: z.union([z.string(), z.null()]),
|
|
1567
|
-
policy: z.union([z.string(), z.null()])
|
|
1568
|
-
});
|
|
1569
|
-
const zCoordinatesCommand = z.object({
|
|
1570
|
-
longitude: z.number(),
|
|
1571
|
-
latitude: z.number()
|
|
1572
|
-
}), zAddressCommand = z.object({
|
|
1573
|
-
placeName: z.union([z.string(), z.null()]),
|
|
1574
|
-
placeId: z.union([z.string(), z.null()]),
|
|
1575
|
-
country: z.union([z.string(), z.null()]),
|
|
1576
|
-
city: z.union([z.string(), z.null()]),
|
|
1577
|
-
postalCode: z.union([z.string(), z.null()]),
|
|
1578
|
-
streetName: z.union([z.string(), z.null()]),
|
|
1579
|
-
streetNumber: z.union([z.string(), z.null()]),
|
|
1580
|
-
unit: z.union([z.string(), z.null()]),
|
|
1581
|
-
coordinates: z.union([zCoordinatesCommand, z.null()])
|
|
1582
|
-
}), zCreateLocationCommand = z.object({ address: zAddressCommand });
|
|
1583
|
-
z.object({ uuid: z.uuid() });
|
|
1584
|
-
const zUpdateLocationCommand = z.object({ address: zAddressCommand }), zLocationDetailResponse = z.object({
|
|
1585
|
-
uuid: z.uuid(),
|
|
1586
|
-
createdAt: z.iso.datetime(),
|
|
1587
|
-
updatedAt: z.iso.datetime(),
|
|
1588
|
-
address: zAddressResponse
|
|
1589
|
-
});
|
|
1590
|
-
z.object({
|
|
1591
|
-
detail: z.optional(z.string()),
|
|
1592
|
-
status: z.enum(["400"]),
|
|
1593
|
-
code: z.enum(["coordinates_not_provided"])
|
|
1594
|
-
});
|
|
1595
|
-
const zCoordinatesQuery = z.object({
|
|
1596
|
-
longitude: z.string(),
|
|
1597
|
-
latitude: z.string()
|
|
1598
|
-
}), zViewLocationIndexFilterQuery = z.object({
|
|
1599
|
-
postalCodes: z.optional(z.array(z.string())),
|
|
1600
|
-
coordinates: z.optional(zCoordinatesQuery),
|
|
1601
|
-
radiusInMeters: z.optional(z.string())
|
|
1602
|
-
}), zViewLocationIndexSortQueryKey = z.enum(["coordinates"]), zViewLocationIndexSortQuery = z.object({
|
|
1603
|
-
key: zViewLocationIndexSortQueryKey,
|
|
1604
|
-
order: zSortDirection
|
|
1605
|
-
}), zLocationResponse = z.object({
|
|
1606
|
-
uuid: z.uuid(),
|
|
1607
|
-
address: z.union([zAddressResponse, z.null()])
|
|
1608
|
-
});
|
|
1609
|
-
z.object({
|
|
1610
|
-
items: z.array(zLocationResponse),
|
|
1611
|
-
meta: zPaginatedOffsetResponseMeta
|
|
1612
|
-
}), z.object({
|
|
1613
|
-
detail: z.optional(z.string()),
|
|
1614
|
-
status: z.enum(["404"]),
|
|
1615
|
-
code: z.enum(["location_not_found"])
|
|
1616
|
-
});
|
|
1617
|
-
const zCreateIndividualCommand = z.object({
|
|
1618
|
-
uuid: z.optional(z.string()),
|
|
1619
|
-
firstName: z.string(),
|
|
1620
|
-
lastName: z.string(),
|
|
1621
|
-
email: z.union([z.string(), z.null()]),
|
|
1622
|
-
phone: z.union([z.string(), z.null()]),
|
|
1623
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1624
|
-
address: z.union([zAddressCommand, z.null()]),
|
|
1625
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
1626
|
-
}), zCreateIndividualResponse = z.object({ uuid: z.uuid() });
|
|
1627
|
-
z.object({
|
|
1628
|
-
detail: z.optional(z.string()),
|
|
1629
|
-
status: z.enum(["404"]),
|
|
1630
|
-
code: z.enum(["individual_not_found"])
|
|
1631
|
-
});
|
|
1632
|
-
const zUpdateIndividualCommand = z.object({
|
|
1633
|
-
firstName: z.string(),
|
|
1634
|
-
lastName: z.string(),
|
|
1635
|
-
email: z.union([z.string(), z.null()]),
|
|
1636
|
-
phone: z.union([z.string(), z.null()]),
|
|
1637
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1638
|
-
address: z.optional(z.union([zAddressCommand, z.null()])),
|
|
1639
|
-
customFields: z.optional(z.union([z.record(z.string(), z.unknown()), z.null()])),
|
|
1640
|
-
language: z.optional(zLocale)
|
|
1641
|
-
}), zUpdateIndividualStatusCommand = z.object({ status: zIndividualStatus }), zViewIndividualStatisticsResponse = z.object({
|
|
1642
|
-
total: z.number(),
|
|
1643
|
-
monthlyPercentageGrowth: z.union([z.number(), z.null()]),
|
|
1644
|
-
monthlyAdded: z.number()
|
|
1645
|
-
}), zViewIndividualIndexResponseItem = z.object({
|
|
1646
|
-
uuid: z.uuid(),
|
|
1647
|
-
name: z.string(),
|
|
1648
|
-
email: z.union([z.string(), z.null()]),
|
|
1649
|
-
phone: z.union([z.string(), z.null()]),
|
|
1650
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1651
|
-
status: zIndividualStatus
|
|
1652
|
-
}), zViewIndividualIndexResponse = z.object({
|
|
1653
|
-
items: z.array(zViewIndividualIndexResponseItem),
|
|
1654
|
-
meta: zPaginatedOffsetResponseMeta
|
|
1655
|
-
}), zIndividualBillingInformationResponse = z.object({
|
|
1656
|
-
uuid: z.uuid(),
|
|
1657
|
-
invoiceEmail: z.union([z.string(), z.null()]),
|
|
1658
|
-
invoiceCcEmails: z.array(z.string()),
|
|
1659
|
-
location: z.union([zLocationDetailResponse, z.null()])
|
|
1660
|
-
}), zIndividualContactPersonResponse = z.object({
|
|
1661
|
-
uuid: z.uuid(),
|
|
1662
|
-
firstName: z.string(),
|
|
1663
|
-
lastName: z.string(),
|
|
1664
|
-
email: z.union([z.email(), z.null()]),
|
|
1665
|
-
phone: z.union([z.string(), z.null()]),
|
|
1666
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1667
|
-
position: z.union([z.string(), z.null()]),
|
|
1668
|
-
isPrimary: z.boolean()
|
|
1669
|
-
}), zLinkedBusinessResponse = z.object({
|
|
1670
|
-
uuid: z.uuid(),
|
|
1671
|
-
name: z.string(),
|
|
1672
|
-
position: z.union([z.string(), z.null()]),
|
|
1673
|
-
email: z.union([z.email(), z.null()]),
|
|
1674
|
-
phone: z.union([z.string(), z.null()]),
|
|
1675
|
-
mobilePhone: z.union([z.string(), z.null()])
|
|
1676
|
-
}), zViewIndividualDetailResponse = z.object({
|
|
1677
|
-
uuid: z.uuid(),
|
|
1678
|
-
createdAt: z.iso.datetime(),
|
|
1679
|
-
updatedAt: z.iso.datetime(),
|
|
1680
|
-
firstName: z.string(),
|
|
1681
|
-
lastName: z.string(),
|
|
1682
|
-
email: z.union([z.email(), z.null()]),
|
|
1683
|
-
phone: z.union([z.string(), z.null()]),
|
|
1684
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1685
|
-
location: z.union([zLocationDetailResponse, z.null()]),
|
|
1686
|
-
billingInformation: z.union([zIndividualBillingInformationResponse, z.null()]),
|
|
1687
|
-
contactPersons: z.array(zIndividualContactPersonResponse),
|
|
1688
|
-
linkedBusinesses: z.array(zLinkedBusinessResponse),
|
|
1689
|
-
status: zIndividualStatus,
|
|
1690
|
-
language: zLocale,
|
|
1691
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
1692
|
-
}), zViewIndividualActivityLogIndexQueryKey = z.object({
|
|
1693
|
-
createdAt: z.string(),
|
|
1694
|
-
uuid: z.uuid()
|
|
1695
|
-
}), zViewIndividualActivityLogIndexPaginationQuery = z.object({
|
|
1696
|
-
limit: z.number().gte(0).lte(100),
|
|
1697
|
-
key: z.optional(z.union([zViewIndividualActivityLogIndexQueryKey, z.null()]))
|
|
1698
|
-
}), 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({
|
|
1699
|
-
createdAt: z.iso.datetime(),
|
|
1700
|
-
type: zDomainEventType,
|
|
1701
|
-
message: z.string(),
|
|
1702
|
-
userUuid: z.union([z.string(), z.null()]),
|
|
1703
|
-
changes: z.array(zValueChange),
|
|
1704
|
-
changedBy: z.string(),
|
|
1705
|
-
content: z.record(z.string(), z.unknown())
|
|
1706
|
-
}), zViewIndividualActivityLogIndexResponseMeta = z.object({ next: z.union([zViewIndividualActivityLogIndexQueryKey, z.null()]) }), zViewIndividualActivityLogIndexResponse = z.object({
|
|
1707
|
-
items: z.array(zIndividualActivityLogItemResponse),
|
|
1708
|
-
meta: zViewIndividualActivityLogIndexResponseMeta
|
|
1709
|
-
});
|
|
1710
|
-
z.object({
|
|
1711
|
-
detail: z.optional(z.string()),
|
|
1712
|
-
status: z.enum(["409"]),
|
|
1713
|
-
code: z.enum(["business_vat_number_already_exists"])
|
|
1714
|
-
}), z.object({
|
|
1715
|
-
detail: z.optional(z.string()),
|
|
1716
|
-
status: z.enum(["400"]),
|
|
1717
|
-
code: z.enum(["invalid_vat_number"])
|
|
1718
|
-
});
|
|
1719
|
-
const zCreateBusinessIndividualCommand = z.object({
|
|
1720
|
-
firstName: z.string(),
|
|
1721
|
-
lastName: z.string(),
|
|
1722
|
-
email: z.union([z.string(), z.null()]),
|
|
1723
|
-
phone: z.union([z.string(), z.null()]),
|
|
1724
|
-
mobilePhone: z.union([z.string(), z.null()])
|
|
1725
|
-
}), zVatNumberCommand = z.object({
|
|
1726
|
-
countryCode: zCountryCode,
|
|
1727
|
-
number: z.string()
|
|
1728
|
-
}), zCreateBusinessCommand = z.object({
|
|
1729
|
-
uuid: z.optional(z.string()),
|
|
1730
|
-
name: z.string(),
|
|
1731
|
-
individual: z.union([zCreateBusinessIndividualCommand, z.null()]),
|
|
1732
|
-
individualUuid: z.union([z.uuid(), z.null()]),
|
|
1733
|
-
individualPosition: z.union([z.string(), z.null()]),
|
|
1734
|
-
vatNumber: z.union([zVatNumberCommand, z.null()]),
|
|
1735
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
1736
|
-
address: zAddressCommand,
|
|
1737
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
|
|
1738
|
-
parentUuid: z.union([z.string(), z.null()]),
|
|
1739
|
-
childUuid: z.union([z.string(), z.null()])
|
|
1740
|
-
}), zCreateBusinessResponse = z.object({ uuid: z.uuid() });
|
|
1741
|
-
z.object({
|
|
1742
|
-
detail: z.optional(z.string()),
|
|
1743
|
-
status: z.enum(["503"]),
|
|
1744
|
-
code: z.enum(["vies_service_unavailable"])
|
|
1745
|
-
}), z.object({
|
|
1746
|
-
countryCode: zCountryCode,
|
|
1747
|
-
vatNumber: z.string(),
|
|
1748
|
-
requestDate: z.iso.datetime(),
|
|
1749
|
-
isValid: z.boolean(),
|
|
1750
|
-
requestIdentifier: z.union([z.string(), z.null()]),
|
|
1751
|
-
name: z.union([z.string(), z.null()]),
|
|
1752
|
-
address: z.union([z.string(), z.null()]),
|
|
1753
|
-
traderName: z.union([z.string(), z.null()]),
|
|
1754
|
-
traderStreet: z.union([z.string(), z.null()]),
|
|
1755
|
-
traderPostalCode: z.union([z.string(), z.null()]),
|
|
1756
|
-
traderCity: z.union([z.string(), z.null()]),
|
|
1757
|
-
traderCompanyType: z.union([z.string(), z.null()]),
|
|
1758
|
-
traderNameMatch: z.union([z.string(), z.null()]),
|
|
1759
|
-
traderStreetMatch: z.union([z.string(), z.null()]),
|
|
1760
|
-
traderPostalCodeMatch: z.union([z.string(), z.null()]),
|
|
1761
|
-
traderCityMatch: z.union([z.string(), z.null()]),
|
|
1762
|
-
traderCompanyTypeMatch: z.union([z.string(), z.null()])
|
|
1763
|
-
}), z.object({
|
|
1764
|
-
detail: z.optional(z.string()),
|
|
1765
|
-
status: z.enum(["404"]),
|
|
1766
|
-
code: z.enum(["business_not_found"])
|
|
1767
|
-
});
|
|
1768
|
-
const zUpdateBusinessCommand = z.object({
|
|
1769
|
-
name: z.string(),
|
|
1770
|
-
email: z.union([z.string(), z.null()]),
|
|
1771
|
-
phone: z.union([z.string(), z.null()]),
|
|
1772
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1773
|
-
vatNumber: z.union([zVatNumberCommand, z.null()]),
|
|
1774
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
1775
|
-
address: zAddressCommand,
|
|
1776
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()]),
|
|
1777
|
-
language: zLocale
|
|
1778
|
-
}), zUpdateBusinessStatusCommand = z.object({ status: zBusinessStatus }), zViewBusinessStatisticsResponse = z.object({
|
|
1779
|
-
total: z.number(),
|
|
1780
|
-
monthlyPercentageGrowth: z.number(),
|
|
1781
|
-
monthlyAdded: z.number()
|
|
1782
|
-
}), zViewBusinessIndexResponseItem = z.object({
|
|
1783
|
-
uuid: z.uuid(),
|
|
1784
|
-
name: z.string(),
|
|
1785
|
-
email: z.union([z.string(), z.null()]),
|
|
1786
|
-
phone: z.union([z.string(), z.null()]),
|
|
1787
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1788
|
-
vatNumber: z.union([zVatNumberResponse, z.null()]),
|
|
1789
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
1790
|
-
parentName: z.union([z.string(), z.null()])
|
|
1791
|
-
}), zViewBusinessIndexResponse = z.object({
|
|
1792
|
-
items: z.array(zViewBusinessIndexResponseItem),
|
|
1793
|
-
meta: zPaginatedOffsetResponseMeta
|
|
1794
|
-
}), zBusinessBillingInformationResponse = z.object({
|
|
1795
|
-
uuid: z.uuid(),
|
|
1796
|
-
invoiceEmail: z.union([z.string(), z.null()]),
|
|
1797
|
-
invoiceCcEmails: z.array(z.string()),
|
|
1798
|
-
reminderEmail: z.union([z.string(), z.null()]),
|
|
1799
|
-
reminderCcEmails: z.array(z.string()),
|
|
1800
|
-
purchaseNoteEmail: z.union([z.string(), z.null()]),
|
|
1801
|
-
purchaseNoteCcEmails: z.array(z.string()),
|
|
1802
|
-
location: z.union([zLocationDetailResponse, z.null()])
|
|
1803
|
-
}), zBusinessContactPersonResponse = z.object({
|
|
1804
|
-
uuid: z.uuid(),
|
|
1805
|
-
firstName: z.string(),
|
|
1806
|
-
lastName: z.string(),
|
|
1807
|
-
email: z.union([z.email(), z.null()]),
|
|
1808
|
-
phone: z.union([z.string(), z.null()]),
|
|
1809
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1810
|
-
position: z.union([z.string(), z.null()]),
|
|
1811
|
-
isPrimary: z.boolean()
|
|
1812
|
-
}), zChildParentBusinessResponse = z.object({
|
|
1813
|
-
uuid: z.uuid(),
|
|
1814
|
-
name: z.string(),
|
|
1815
|
-
createdAt: z.iso.datetime(),
|
|
1816
|
-
updatedAt: z.iso.datetime(),
|
|
1817
|
-
email: z.union([z.string(), z.null()]),
|
|
1818
|
-
phone: z.union([z.string(), z.null()]),
|
|
1819
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1820
|
-
vatNumber: z.union([zVatNumberResponse, z.null()]),
|
|
1821
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
1822
|
-
location: z.union([zLocationDetailResponse, z.null()])
|
|
1823
|
-
}), zViewBusinessDetailResponse = z.object({
|
|
1824
|
-
uuid: z.uuid(),
|
|
1825
|
-
createdAt: z.iso.datetime(),
|
|
1826
|
-
updatedAt: z.iso.datetime(),
|
|
1827
|
-
name: z.string(),
|
|
1828
|
-
email: z.union([z.email(), z.null()]),
|
|
1829
|
-
phone: z.union([z.string(), z.null()]),
|
|
1830
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1831
|
-
vatNumber: z.union([zVatNumberResponse, z.null()]),
|
|
1832
|
-
companyNumber: z.union([z.string(), z.null()]),
|
|
1833
|
-
location: z.union([zLocationDetailResponse, z.null()]),
|
|
1834
|
-
billingInformation: z.union([zBusinessBillingInformationResponse, z.null()]),
|
|
1835
|
-
contactPersons: z.array(zBusinessContactPersonResponse),
|
|
1836
|
-
parent: z.union([zChildParentBusinessResponse, z.null()]),
|
|
1837
|
-
children: z.array(zChildParentBusinessResponse),
|
|
1838
|
-
language: zLocale,
|
|
1839
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
1840
|
-
});
|
|
1841
|
-
z.object({
|
|
1842
|
-
detail: z.optional(z.string()),
|
|
1843
|
-
status: z.enum(["400"]),
|
|
1844
|
-
code: z.enum(["invalid_billing_information"])
|
|
1845
|
-
});
|
|
1846
|
-
const zUpsertBusinessBillingInformationCommand = z.object({
|
|
1847
|
-
billingAddress: z.optional(z.union([zAddressCommand, z.null()])),
|
|
1848
|
-
invoiceEmail: z.optional(z.union([z.email(), z.null()])),
|
|
1849
|
-
invoiceCcEmails: z.optional(z.union([z.array(z.email()), z.null()])),
|
|
1850
|
-
reminderEmail: z.optional(z.union([z.email(), z.null()])),
|
|
1851
|
-
reminderCcEmails: z.optional(z.union([z.array(z.email()), z.null()])),
|
|
1852
|
-
purchaseNoteEmail: z.optional(z.union([z.email(), z.null()])),
|
|
1853
|
-
purchaseNoteCcEmails: z.optional(z.union([z.array(z.email()), z.null()]))
|
|
1854
|
-
});
|
|
1855
|
-
z.object({
|
|
1856
|
-
detail: z.optional(z.string()),
|
|
1857
|
-
status: z.enum(["400"]),
|
|
1858
|
-
code: z.enum(["business_circular_reference"])
|
|
1859
|
-
});
|
|
1860
|
-
const zViewBusinessActivityLogIndexQueryKey = z.object({
|
|
1861
|
-
createdAt: z.string(),
|
|
1862
|
-
uuid: z.uuid()
|
|
1863
|
-
}), zViewBusinessActivityLogIndexPaginationQuery = z.object({
|
|
1864
|
-
limit: z.number().gte(0).lte(100),
|
|
1865
|
-
key: z.optional(z.union([zViewBusinessActivityLogIndexQueryKey, z.null()]))
|
|
1866
|
-
}), zBusinessActivityLogItemResponse = z.object({
|
|
1867
|
-
createdAt: z.iso.datetime(),
|
|
1868
|
-
type: zDomainEventType,
|
|
1869
|
-
message: z.string(),
|
|
1870
|
-
userUuid: z.union([z.string(), z.null()]),
|
|
1871
|
-
changes: z.array(zValueChange),
|
|
1872
|
-
changedBy: z.string(),
|
|
1873
|
-
content: z.record(z.string(), z.unknown())
|
|
1874
|
-
}), zViewBusinessActivityLogIndexResponseMeta = z.object({ next: z.union([zViewBusinessActivityLogIndexQueryKey, z.null()]) }), zViewBusinessActivityLogIndexResponse = z.object({
|
|
1875
|
-
items: z.array(zBusinessActivityLogItemResponse),
|
|
1876
|
-
meta: zViewBusinessActivityLogIndexResponseMeta
|
|
1877
|
-
});
|
|
1878
|
-
z.object({ doesExist: z.boolean() }), z.object({
|
|
1879
|
-
detail: z.optional(z.string()),
|
|
1880
|
-
status: z.enum(["400"]),
|
|
1881
|
-
code: z.enum(["note_must_have_entity"])
|
|
1882
|
-
});
|
|
1883
|
-
const zCreateNoteCommand = z.object({
|
|
1884
|
-
content: z.string(),
|
|
1885
|
-
businessUuid: z.union([z.uuid(), z.null()]),
|
|
1886
|
-
individualUuid: z.union([z.uuid(), z.null()]),
|
|
1887
|
-
dealUuid: z.union([z.uuid(), z.null()])
|
|
1888
|
-
}), zCreateNoteResponse = z.object({ uuid: z.uuid() }), zUpdateNoteCommand = z.object({ content: z.string() }), zViewBusinessNotesIndexQueryKey = z.object({
|
|
1889
|
-
createdAt: z.string(),
|
|
1890
|
-
uuid: z.uuid()
|
|
1891
|
-
}), zViewBusinessNotesIndexPaginationQuery = z.object({
|
|
1892
|
-
limit: z.number().gte(0).lte(100),
|
|
1893
|
-
key: z.optional(z.union([zViewBusinessNotesIndexQueryKey, z.null()]))
|
|
1894
|
-
}), zPresignedFileVariantResponse = z.object({
|
|
1895
|
-
label: z.string(),
|
|
1896
|
-
url: z.string()
|
|
1897
|
-
}), zPresignedFileResponse = z.object({
|
|
1898
|
-
uuid: z.uuid(),
|
|
1899
|
-
name: z.string(),
|
|
1900
|
-
mimeType: z.union([zMimeType, z.null()]),
|
|
1901
|
-
url: z.string(),
|
|
1902
|
-
blurHash: z.union([z.string(), z.null()]),
|
|
1903
|
-
variants: z.array(zPresignedFileVariantResponse)
|
|
1904
|
-
}), zBusinessNotesResponse = z.object({
|
|
1905
|
-
uuid: z.uuid(),
|
|
1906
|
-
updatedAt: z.iso.datetime(),
|
|
1907
|
-
content: z.string(),
|
|
1908
|
-
files: z.array(zPresignedFileResponse),
|
|
1909
|
-
lastUpdatedByUser: z.string(),
|
|
1910
|
-
lastUpdatedByUserUuid: z.uuid()
|
|
1911
|
-
}), zViewBusinessNotesIndexResponseMeta = z.object({ next: z.union([zViewBusinessNotesIndexQueryKey, z.null()]) }), zViewBusinessNotesIndexResponse = z.object({
|
|
1912
|
-
items: z.array(zBusinessNotesResponse),
|
|
1913
|
-
meta: zViewBusinessNotesIndexResponseMeta
|
|
1914
|
-
}), zViewIndividualNotesIndexQueryKey = z.object({
|
|
1915
|
-
createdAt: z.string(),
|
|
1916
|
-
uuid: z.uuid()
|
|
1917
|
-
}), zViewIndividualNotesIndexPaginationQuery = z.object({
|
|
1918
|
-
limit: z.number().gte(0).lte(100),
|
|
1919
|
-
key: z.optional(z.union([zViewIndividualNotesIndexQueryKey, z.null()]))
|
|
1920
|
-
}), zIndividualNotesResponse = z.object({
|
|
1921
|
-
uuid: z.uuid(),
|
|
1922
|
-
updatedAt: z.iso.datetime(),
|
|
1923
|
-
content: z.string(),
|
|
1924
|
-
files: z.array(zPresignedFileResponse),
|
|
1925
|
-
lastUpdatedByUser: z.string(),
|
|
1926
|
-
lastUpdatedByUserUuid: z.uuid()
|
|
1927
|
-
}), zViewIndividualNotesIndexResponseMeta = z.object({ next: z.union([zViewIndividualNotesIndexQueryKey, z.null()]) }), zViewIndividualNotesIndexResponse = z.object({
|
|
1928
|
-
items: z.array(zIndividualNotesResponse),
|
|
1929
|
-
meta: zViewIndividualNotesIndexResponseMeta
|
|
1930
|
-
}), zViewDealNotesIndexQueryKey = z.object({
|
|
1931
|
-
createdAt: z.iso.datetime(),
|
|
1932
|
-
uuid: z.uuid()
|
|
1933
|
-
}), zViewDealNotesIndexPaginationQuery = z.object({
|
|
1934
|
-
limit: z.number().gte(0).lte(100),
|
|
1935
|
-
key: z.optional(z.union([zViewDealNotesIndexQueryKey, z.null()]))
|
|
1936
|
-
}), zDealNotesResponse = z.object({
|
|
1937
|
-
uuid: z.uuid(),
|
|
1938
|
-
updatedAt: z.iso.datetime(),
|
|
1939
|
-
content: z.string(),
|
|
1940
|
-
files: z.array(zPresignedFileResponse),
|
|
1941
|
-
lastUpdatedByUser: z.string(),
|
|
1942
|
-
lastUpdatedByUserUuid: z.uuid()
|
|
1943
|
-
}), zViewDealNotesIndexResponseMeta = z.object({ next: z.union([zViewDealNotesIndexQueryKey, z.null()]) }), zViewDealNotesIndexResponse = z.object({
|
|
1944
|
-
items: z.array(zDealNotesResponse),
|
|
1945
|
-
meta: zViewDealNotesIndexResponseMeta
|
|
1946
|
-
}), zAddNoteFileCommand = z.object({ fileUuid: z.uuid() });
|
|
1947
|
-
z.object({
|
|
1948
|
-
noteUuid: z.uuid(),
|
|
1949
|
-
fileUuid: z.uuid()
|
|
1950
|
-
});
|
|
1951
|
-
const zLinkContactPersonToIndividualCommand = z.object({
|
|
1952
|
-
contactPersonUuid: z.uuid(),
|
|
1953
|
-
position: z.union([z.string(), z.null()]),
|
|
1954
|
-
email: z.union([z.string(), z.null()]),
|
|
1955
|
-
phone: z.union([z.string(), z.null()]),
|
|
1956
|
-
mobilePhone: z.union([z.string(), z.null()])
|
|
1957
|
-
}), zLinkContactPersonToIndividualResponse = z.object({
|
|
1958
|
-
individualUuid: z.uuid(),
|
|
1959
|
-
contactPersonUuid: z.uuid()
|
|
1960
|
-
});
|
|
1961
|
-
z.object({
|
|
1962
|
-
detail: z.optional(z.string()),
|
|
1963
|
-
status: z.enum(["404"]),
|
|
1964
|
-
code: z.enum(["individual_contact_person_not_found"])
|
|
1965
|
-
});
|
|
1966
|
-
const zUnlinkContactPersonFromIndividualCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateIndividualContactPersonCommand = z.object({
|
|
1967
|
-
firstName: z.string(),
|
|
1968
|
-
lastName: z.string(),
|
|
1969
|
-
email: z.union([z.string(), z.null()]),
|
|
1970
|
-
phone: z.union([z.string(), z.null()]),
|
|
1971
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1972
|
-
position: z.union([z.string(), z.null()])
|
|
1973
|
-
}), zViewIndividualContactPersonDetailResponse = z.object({
|
|
1974
|
-
individualUuid: z.uuid(),
|
|
1975
|
-
contactPersonUuid: z.uuid(),
|
|
1976
|
-
firstName: z.string(),
|
|
1977
|
-
lastName: z.string(),
|
|
1978
|
-
email: z.union([z.email(), z.null()]),
|
|
1979
|
-
phone: z.union([z.string(), z.null()]),
|
|
1980
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
1981
|
-
position: z.union([z.string(), z.null()]),
|
|
1982
|
-
isPrimary: z.boolean()
|
|
1983
|
-
}), zLinkContactPersonToBusinessCommand = z.object({
|
|
1984
|
-
contactPersonUuid: z.uuid(),
|
|
1985
|
-
position: z.union([z.string(), z.null()]),
|
|
1986
|
-
email: z.union([z.string(), z.null()]),
|
|
1987
|
-
phone: z.union([z.string(), z.null()]),
|
|
1988
|
-
mobilePhone: z.union([z.string(), z.null()])
|
|
1989
|
-
}), zLinkContactPersonToBusinessResponse = z.object({
|
|
1990
|
-
businessUuid: z.uuid(),
|
|
1991
|
-
contactPersonUuid: z.uuid()
|
|
1992
|
-
});
|
|
1993
|
-
z.object({
|
|
1994
|
-
detail: z.optional(z.string()),
|
|
1995
|
-
status: z.enum(["400"]),
|
|
1996
|
-
code: z.enum(["primary_contact_of_business_not_unlinkable"])
|
|
1997
|
-
}), z.object({
|
|
1998
|
-
detail: z.optional(z.string()),
|
|
1999
|
-
status: z.enum(["404"]),
|
|
2000
|
-
code: z.enum(["business_contact_person_not_found"])
|
|
2001
|
-
});
|
|
2002
|
-
const zUnlinkContactPersonFromBusinessCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateBusinessContactPersonCommand = z.object({
|
|
2003
|
-
firstName: z.string(),
|
|
2004
|
-
lastName: z.string(),
|
|
2005
|
-
email: z.union([z.string(), z.null()]),
|
|
2006
|
-
phone: z.union([z.string(), z.null()]),
|
|
2007
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
2008
|
-
position: z.union([z.string(), z.null()])
|
|
2009
|
-
}), zViewBusinessContactPersonDetailResponse = z.object({
|
|
2010
|
-
businessUuid: z.uuid(),
|
|
2011
|
-
contactPersonUuid: z.uuid(),
|
|
2012
|
-
firstName: z.string(),
|
|
2013
|
-
lastName: z.string(),
|
|
2014
|
-
email: z.union([z.email(), z.null()]),
|
|
2015
|
-
phone: z.union([z.string(), z.null()]),
|
|
2016
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
2017
|
-
position: z.union([z.string(), z.null()]),
|
|
2018
|
-
isPrimary: z.boolean()
|
|
2019
|
-
}), zStringValidationRulesCommand = z.object({
|
|
2020
|
-
minLength: z.optional(z.number()),
|
|
2021
|
-
maxLength: z.optional(z.number()),
|
|
2022
|
-
regex: z.optional(z.string())
|
|
2023
|
-
}), zNumberValidationRulesCommand = z.object({
|
|
2024
|
-
min: z.optional(z.number()),
|
|
2025
|
-
max: z.optional(z.number())
|
|
2026
|
-
}), zValidationSelectOption = z.object({
|
|
2027
|
-
key: z.string(),
|
|
2028
|
-
translations: z.array(zLocalizedString)
|
|
2029
|
-
}), zSelectValidationRulesCommand = z.object({ options: z.array(zValidationSelectOption) }), zDateValidationRulesCommand = z.object({
|
|
2030
|
-
minDate: z.optional(z.iso.date()),
|
|
2031
|
-
maxDate: z.optional(z.iso.date())
|
|
2032
|
-
}), zMultiSelectValidationRulesCommand = z.object({
|
|
2033
|
-
options: z.array(zValidationSelectOption),
|
|
2034
|
-
minSelections: z.optional(z.number()),
|
|
2035
|
-
maxSelections: z.optional(z.number())
|
|
2036
|
-
}), zCheckboxValidationRulesCommand = z.object({ defaultValue: z.optional(z.boolean()) }), zRadioButtonValidationRulesCommand = z.object({ options: z.array(zValidationSelectOption) }), zCustomFieldEntityType = z.enum(["individual", "business"]), zCustomFieldType = z.enum([
|
|
2037
|
-
"string",
|
|
2038
|
-
"number",
|
|
2039
|
-
"date",
|
|
2040
|
-
"select",
|
|
2041
|
-
"multiselect",
|
|
2042
|
-
"checkbox",
|
|
2043
|
-
"radio"
|
|
2044
|
-
]), zCustomFieldWidth = z.enum(["half", "full"]), zCreateCustomFieldDefinitionCommand = z.object({
|
|
2045
|
-
entityType: zCustomFieldEntityType,
|
|
2046
|
-
key: z.string(),
|
|
2047
|
-
displayName: z.array(zLocalizedString),
|
|
2048
|
-
type: zCustomFieldType,
|
|
2049
|
-
validationRules: z.union([
|
|
2050
|
-
zStringValidationRulesCommand,
|
|
2051
|
-
zNumberValidationRulesCommand,
|
|
2052
|
-
zSelectValidationRulesCommand,
|
|
2053
|
-
zDateValidationRulesCommand,
|
|
2054
|
-
zMultiSelectValidationRulesCommand,
|
|
2055
|
-
zCheckboxValidationRulesCommand,
|
|
2056
|
-
zRadioButtonValidationRulesCommand
|
|
2057
|
-
]),
|
|
2058
|
-
width: zCustomFieldWidth,
|
|
2059
|
-
isDisplayedOnCreate: z.boolean(),
|
|
2060
|
-
isRequiredForLead: z.boolean()
|
|
2061
|
-
}), zViewCustomFieldDefinitionIndexFilterQuery = z.object({
|
|
2062
|
-
entityType: zCustomFieldEntityType,
|
|
2063
|
-
onlyWithIsDisplayedOnCreate: z.optional(z.boolean())
|
|
2064
|
-
}), zStringValidationResponse = z.object({
|
|
2065
|
-
minLength: z.optional(z.number()),
|
|
2066
|
-
maxLength: z.optional(z.number()),
|
|
2067
|
-
regex: z.optional(z.string())
|
|
2068
|
-
}), zNumberValidationResponse = z.object({
|
|
2069
|
-
min: z.optional(z.number()),
|
|
2070
|
-
max: z.optional(z.number())
|
|
2071
|
-
}), zValidationSelectOptionResponse = z.object({
|
|
2072
|
-
key: z.string(),
|
|
2073
|
-
value: z.string()
|
|
2074
|
-
}), zSelectValidationResponse = z.object({ options: z.array(zValidationSelectOptionResponse) }), zDateValidationResponse = z.object({
|
|
2075
|
-
minDate: z.optional(z.string()),
|
|
2076
|
-
maxDate: z.optional(z.string())
|
|
2077
|
-
}), zMultiSelectValidationResponse = z.object({
|
|
2078
|
-
options: z.array(zValidationSelectOptionResponse),
|
|
2079
|
-
minSelections: z.optional(z.number()),
|
|
2080
|
-
maxSelections: z.optional(z.number())
|
|
2081
|
-
}), zCheckboxValidationResponse = z.object({ defaultValue: z.optional(z.boolean()) }), zRadioButtonValidationResponse = z.object({ options: z.array(zValidationSelectOptionResponse) }), zViewCustomFieldDefinitionIndexResponseItem = z.object({
|
|
2082
|
-
uuid: z.uuid(),
|
|
2083
|
-
key: z.string(),
|
|
2084
|
-
displayName: z.string(),
|
|
2085
|
-
type: z.enum([
|
|
2086
|
-
"string",
|
|
2087
|
-
"number",
|
|
2088
|
-
"date",
|
|
2089
|
-
"select",
|
|
2090
|
-
"multiselect",
|
|
2091
|
-
"checkbox",
|
|
2092
|
-
"radio"
|
|
2093
|
-
]),
|
|
2094
|
-
validationRules: z.union([
|
|
2095
|
-
zStringValidationResponse,
|
|
2096
|
-
zNumberValidationResponse,
|
|
2097
|
-
zSelectValidationResponse,
|
|
2098
|
-
zDateValidationResponse,
|
|
2099
|
-
zMultiSelectValidationResponse,
|
|
2100
|
-
zCheckboxValidationResponse,
|
|
2101
|
-
zRadioButtonValidationResponse
|
|
2102
|
-
]),
|
|
2103
|
-
order: z.number(),
|
|
2104
|
-
width: z.enum(["half", "full"]),
|
|
2105
|
-
isDisplayedOnCreate: z.boolean(),
|
|
2106
|
-
isRequiredForLead: z.boolean()
|
|
2107
|
-
});
|
|
2108
|
-
z.object({
|
|
2109
|
-
detail: z.optional(z.string()),
|
|
2110
|
-
status: z.enum(["404"]),
|
|
2111
|
-
code: z.enum(["business_billing_information_not_found"])
|
|
2112
|
-
});
|
|
2113
|
-
const zViewBusinessBillingInformationDetailResponse = z.object({
|
|
2114
|
-
uuid: z.uuid(),
|
|
2115
|
-
createdAt: z.iso.datetime(),
|
|
2116
|
-
updatedAt: z.iso.datetime(),
|
|
2117
|
-
invoiceEmail: z.union([z.email(), z.null()]),
|
|
2118
|
-
invoiceCcEmails: z.array(z.string()),
|
|
2119
|
-
reminderEmail: z.union([z.email(), z.null()]),
|
|
2120
|
-
reminderCcEmails: z.array(z.string()),
|
|
2121
|
-
purchaseNoteEmail: z.union([z.email(), z.null()]),
|
|
2122
|
-
purchaseNoteCcEmails: z.array(z.string()),
|
|
2123
|
-
billingLocation: z.union([zLocationDetailResponse, z.null()])
|
|
2124
|
-
}), zUpsertIndividualBillingInformationCommand = z.object({
|
|
2125
|
-
billingAddress: z.optional(z.union([zAddressCommand, z.null()])),
|
|
2126
|
-
invoiceEmail: z.optional(z.union([z.email(), z.null()])),
|
|
2127
|
-
invoiceCcEmails: z.optional(z.union([z.array(z.email()), z.null()]))
|
|
2128
|
-
});
|
|
2129
|
-
z.object({
|
|
2130
|
-
detail: z.optional(z.string()),
|
|
2131
|
-
status: z.enum(["404"]),
|
|
2132
|
-
code: z.enum(["individual_billing_information_not_found"])
|
|
2133
|
-
});
|
|
2134
|
-
const zViewIndividualBillingInformationDetailResponse = z.object({
|
|
2135
|
-
uuid: z.uuid(),
|
|
2136
|
-
createdAt: z.iso.datetime(),
|
|
2137
|
-
updatedAt: z.iso.datetime(),
|
|
2138
|
-
invoiceEmail: z.union([z.email(), z.null()]),
|
|
2139
|
-
invoiceCcEmails: z.array(z.string()),
|
|
2140
|
-
billingLocation: z.union([zLocationDetailResponse, z.null()])
|
|
2141
|
-
}), 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({
|
|
2142
|
-
enterpriseNumber: z.string(),
|
|
2143
|
-
status: zCbeEnterpriseStatus,
|
|
2144
|
-
startDate: z.union([z.string(), z.null()]),
|
|
2145
|
-
name: z.union([z.string(), z.null()]),
|
|
2146
|
-
abbreviation: z.union([z.string(), z.null()]),
|
|
2147
|
-
phone: z.union([z.string(), z.null()]),
|
|
2148
|
-
fax: z.union([z.string(), z.null()]),
|
|
2149
|
-
email: z.union([z.string(), z.null()]),
|
|
2150
|
-
website: z.union([z.string(), z.null()]),
|
|
2151
|
-
address: z.union([zAddressResponse, z.null()])
|
|
2152
|
-
});
|
|
2153
|
-
z.object({
|
|
2154
|
-
items: z.array(zSearchCbeEnterprisesView),
|
|
2155
|
-
meta: zPaginatedOffsetResponseMeta
|
|
2156
|
-
});
|
|
2157
|
-
const zSearchCbeEstablishmentsFilterQuery = z.object({ enterpriseNumber: z.optional(z.string()) }), zSearchCbeEstablishmentsView = z.object({
|
|
2158
|
-
establishmentNumber: z.string(),
|
|
2159
|
-
enterpriseNumber: z.string(),
|
|
2160
|
-
startDate: z.union([z.string(), z.null()]),
|
|
2161
|
-
commercialName: z.union([z.string(), z.null()]),
|
|
2162
|
-
address: z.union([zAddressResponse, z.null()])
|
|
2163
|
-
});
|
|
2164
|
-
z.object({
|
|
2165
|
-
items: z.array(z.array(z.unknown())),
|
|
2166
|
-
meta: zPaginatedOffsetResponseMeta,
|
|
2167
|
-
results: z.array(zSearchCbeEstablishmentsView)
|
|
2168
|
-
}), z.object({
|
|
2169
|
-
detail: z.optional(z.string()),
|
|
2170
|
-
status: z.enum(["409"]),
|
|
2171
|
-
code: z.enum(["board_columns_already_exist"])
|
|
2172
|
-
});
|
|
2173
|
-
const zBoardColumnConfigCommand = z.object({
|
|
2174
|
-
maxDaysInColumnBeforeHighlight: z.optional(z.union([z.number(), z.null()])),
|
|
2175
|
-
onlyShowLeadInColumn: z.optional(z.boolean()),
|
|
2176
|
-
businessStatusOnEntry: z.optional(zBusinessStatus)
|
|
2177
|
-
}), zCreateBoardColumnCommand = z.object({
|
|
2178
|
-
key: z.string(),
|
|
2179
|
-
displayName: z.array(zLocalizedString),
|
|
2180
|
-
position: z.number(),
|
|
2181
|
-
color: zEntityColor,
|
|
2182
|
-
config: z.optional(zBoardColumnConfigCommand)
|
|
2183
|
-
}), zCreateBoardTransitionTriggerEmailConfigCommand = z.object({ mailTemplateKey: z.string() }), zCreateBoardTransitionTriggerCommand = z.object({
|
|
2184
|
-
triggerType: zBoardColumnTransitionTriggerType,
|
|
2185
|
-
config: z.optional(zCreateBoardTransitionTriggerEmailConfigCommand)
|
|
2186
|
-
}), zCreateBoardColumnTransitionCommand = z.object({
|
|
2187
|
-
key: z.string(),
|
|
2188
|
-
triggers: z.array(zCreateBoardTransitionTriggerCommand)
|
|
2189
|
-
}), zCreateBoardTransitionCommand = z.object({
|
|
2190
|
-
fromKey: z.string(),
|
|
2191
|
-
to: z.array(zCreateBoardColumnTransitionCommand)
|
|
2192
|
-
}), zCreateBoardCommand = z.object({
|
|
2193
|
-
columns: z.array(zCreateBoardColumnCommand),
|
|
2194
|
-
transitions: z.array(zCreateBoardTransitionCommand)
|
|
2195
|
-
});
|
|
2196
|
-
z.object({
|
|
2197
|
-
columnUuids: z.array(z.uuid()),
|
|
2198
|
-
transitionUuids: z.array(z.uuid())
|
|
2199
|
-
});
|
|
2200
|
-
const zBoardColumnConfigResponse = z.object({
|
|
2201
|
-
maxDaysInColumnBeforeHighlight: z.union([z.number(), z.null()]),
|
|
2202
|
-
onlyShowLeadInColumn: z.boolean()
|
|
2203
|
-
}), zListBoardColumnsResponseItem = z.object({
|
|
2204
|
-
uuid: z.uuid(),
|
|
2205
|
-
key: z.string(),
|
|
2206
|
-
displayName: z.string(),
|
|
2207
|
-
position: z.number(),
|
|
2208
|
-
color: zEntityColor,
|
|
2209
|
-
config: zBoardColumnConfigResponse
|
|
2210
|
-
}), zListBoardColumnsResponse = z.object({ items: z.array(zListBoardColumnsResponseItem) });
|
|
2211
|
-
z.object({
|
|
2212
|
-
detail: z.optional(z.string()),
|
|
2213
|
-
status: z.enum(["404"]),
|
|
2214
|
-
code: z.enum(["board_column_not_found"])
|
|
2215
|
-
});
|
|
2216
|
-
const zBoardColumnTransitionTriggerEmailConfigResponse = z.object({ mailTemplateKey: z.string() }), zBoardColumnTransitionTriggerResponse = z.object({
|
|
2217
|
-
uuid: z.uuid(),
|
|
2218
|
-
triggerType: zBoardColumnTransitionTriggerType,
|
|
2219
|
-
config: z.union([zBoardColumnTransitionTriggerEmailConfigResponse, z.null()])
|
|
2220
|
-
}), zBoardColumnTransitionResponse = z.object({
|
|
2221
|
-
uuid: z.uuid(),
|
|
2222
|
-
toColumnUuid: z.uuid(),
|
|
2223
|
-
toColumnKey: z.string(),
|
|
2224
|
-
toColumnDisplayName: z.string(),
|
|
2225
|
-
toColumnColor: zEntityColor,
|
|
2226
|
-
triggers: z.array(zBoardColumnTransitionTriggerResponse)
|
|
2227
|
-
}), zListBoardColumnTransitionsResponse = z.object({ items: z.array(zBoardColumnTransitionResponse) });
|
|
2228
|
-
z.object({
|
|
2229
|
-
detail: z.optional(z.string()),
|
|
2230
|
-
status: z.enum(["404"]),
|
|
2231
|
-
code: z.enum(["client_not_found"])
|
|
2232
|
-
}), z.object({
|
|
2233
|
-
detail: z.optional(z.string()),
|
|
2234
|
-
status: z.enum(["400"]),
|
|
2235
|
-
code: z.enum(["deal_creation_not_allowed"])
|
|
2236
|
-
}), z.object({
|
|
2237
|
-
detail: z.optional(z.string()),
|
|
2238
|
-
status: z.enum(["400"]),
|
|
2239
|
-
code: z.enum(["no_board_columns"])
|
|
2240
|
-
});
|
|
2241
|
-
const zDealSource = z.enum([
|
|
2242
|
-
"mail",
|
|
2243
|
-
"website",
|
|
2244
|
-
"phone",
|
|
2245
|
-
"tender"
|
|
2246
|
-
]), zClientType = z.enum(["business", "individual"]), zClientIdCommand = z.object({
|
|
2247
|
-
uuid: z.uuid(),
|
|
2248
|
-
type: zClientType
|
|
2249
|
-
}), zCreateDealCommand = z.object({
|
|
2250
|
-
name: z.string(),
|
|
2251
|
-
dealLanguage: zSdkContentLocale,
|
|
2252
|
-
dealSource: zDealSource,
|
|
2253
|
-
clientId: zClientIdCommand,
|
|
2254
|
-
dealOwnerUuid: z.union([z.uuid(), z.null()])
|
|
2255
|
-
}), zCreateDealResponse = z.object({ uuid: z.uuid() });
|
|
2256
|
-
z.object({
|
|
2257
|
-
detail: z.optional(z.string()),
|
|
2258
|
-
status: z.enum(["404"]),
|
|
2259
|
-
code: z.enum(["deal_not_found"])
|
|
2260
|
-
});
|
|
2261
|
-
const zUpdateDealCommand = z.object({
|
|
2262
|
-
name: z.optional(z.string()),
|
|
2263
|
-
dealLanguage: z.optional(zSdkContentLocale),
|
|
2264
|
-
dealSource: z.optional(zDealSource),
|
|
2265
|
-
dealOwnerUuid: z.optional(z.union([z.uuid(), z.null()]))
|
|
2266
|
-
}), zUpdateDealOwnerCommand = z.object({ dealOwnerUuid: z.union([z.uuid(), z.null()]) }), zDealColumnTransitionNotAllowedErrorMeta = z.object({
|
|
2267
|
-
fromBoardColumnUuid: z.uuid(),
|
|
2268
|
-
toBoardColumnUuid: z.uuid()
|
|
2269
|
-
});
|
|
2270
|
-
z.object({
|
|
2271
|
-
detail: z.optional(z.string()),
|
|
2272
|
-
status: z.enum(["400"]),
|
|
2273
|
-
code: z.enum(["deal_column_transition_not_allowed"]),
|
|
2274
|
-
meta: zDealColumnTransitionNotAllowedErrorMeta
|
|
2275
|
-
});
|
|
2276
|
-
const zTransitionDealColumnCommand = z.object({ boardColumnUuid: z.uuid() }), zClientStatus = z.enum([
|
|
2277
|
-
"lead",
|
|
2278
|
-
"customer",
|
|
2279
|
-
"inactive",
|
|
2280
|
-
"archived",
|
|
2281
|
-
"contact"
|
|
2282
|
-
]), zDealClientResponse = z.object({
|
|
2283
|
-
uuid: z.uuid(),
|
|
2284
|
-
type: zClientType,
|
|
2285
|
-
status: zClientStatus,
|
|
2286
|
-
name: z.string()
|
|
2287
|
-
}), zDealUserResponse = z.object({
|
|
2288
|
-
uuid: z.uuid(),
|
|
2289
|
-
firstName: z.union([z.string(), z.null()]),
|
|
2290
|
-
lastName: z.union([z.string(), z.null()])
|
|
2291
|
-
}), zDealBoardColumnResponse = z.object({
|
|
2292
|
-
uuid: z.uuid(),
|
|
2293
|
-
key: z.string(),
|
|
2294
|
-
displayName: z.string(),
|
|
2295
|
-
color: zEntityColor
|
|
2296
|
-
}), zDealContactPersonResponse = z.object({
|
|
2297
|
-
uuid: z.uuid(),
|
|
2298
|
-
firstName: z.string(),
|
|
2299
|
-
lastName: z.string(),
|
|
2300
|
-
email: z.union([z.email(), z.null()]),
|
|
2301
|
-
phone: z.union([z.string(), z.null()]),
|
|
2302
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
2303
|
-
isPrimary: z.boolean()
|
|
2304
|
-
}), zViewDealDetailResponse = z.object({
|
|
2305
|
-
uuid: z.uuid(),
|
|
2306
|
-
name: z.string(),
|
|
2307
|
-
dealLanguage: zSdkContentLocale,
|
|
2308
|
-
dealSource: zDealSource,
|
|
2309
|
-
client: zDealClientResponse,
|
|
2310
|
-
createdBy: zDealUserResponse,
|
|
2311
|
-
owner: z.union([zDealUserResponse, z.null()]),
|
|
2312
|
-
boardColumn: zDealBoardColumnResponse,
|
|
2313
|
-
contactPersons: z.array(zDealContactPersonResponse),
|
|
2314
|
-
createdAt: z.iso.datetime(),
|
|
2315
|
-
updatedAt: z.iso.datetime()
|
|
2316
|
-
}), zViewDealIndexFilterQuery = z.object({
|
|
2317
|
-
boardColumnUuids: z.optional(z.array(z.uuid())),
|
|
2318
|
-
dealOwnerUuids: z.optional(z.array(z.uuid())),
|
|
2319
|
-
businessUuids: z.optional(z.array(z.uuid()))
|
|
2320
|
-
}), zDealIndexUserResponse = z.object({
|
|
2321
|
-
uuid: z.uuid(),
|
|
2322
|
-
firstName: z.union([z.string(), z.null()]),
|
|
2323
|
-
lastName: z.union([z.string(), z.null()])
|
|
2324
|
-
}), zDealIndexBoardColumnResponse = z.object({
|
|
2325
|
-
uuid: z.uuid(),
|
|
2326
|
-
key: z.string(),
|
|
2327
|
-
displayName: z.string()
|
|
2328
|
-
}), zViewDealIndexResponseItem = z.object({
|
|
2329
|
-
uuid: z.uuid(),
|
|
2330
|
-
name: z.string(),
|
|
2331
|
-
dealLanguage: z.enum([
|
|
2332
|
-
"nl-BE",
|
|
2333
|
-
"en-US",
|
|
2334
|
-
"fr-BE",
|
|
2335
|
-
"de-DE"
|
|
2336
|
-
]),
|
|
2337
|
-
dealSource: z.enum([
|
|
2338
|
-
"mail",
|
|
2339
|
-
"website",
|
|
2340
|
-
"phone",
|
|
2341
|
-
"tender"
|
|
2342
|
-
]),
|
|
2343
|
-
client: zDealClientResponse,
|
|
2344
|
-
createdBy: zDealIndexUserResponse,
|
|
2345
|
-
owner: z.union([zDealIndexUserResponse, z.null()]),
|
|
2346
|
-
boardColumn: zDealIndexBoardColumnResponse,
|
|
2347
|
-
createdAt: z.iso.datetime(),
|
|
2348
|
-
updatedAt: z.iso.datetime()
|
|
2349
|
-
}), zViewDealIndexResponse = z.object({
|
|
2350
|
-
items: z.array(zViewDealIndexResponseItem),
|
|
2351
|
-
meta: zPaginatedOffsetResponseMeta
|
|
2352
|
-
}), zLinkContactPersonToDealCommand = z.object({
|
|
2353
|
-
contactPersonUuid: z.uuid(),
|
|
2354
|
-
email: z.union([z.email(), z.null()]),
|
|
2355
|
-
phone: z.union([z.string(), z.null()]),
|
|
2356
|
-
mobilePhone: z.union([z.string(), z.null()])
|
|
2357
|
-
}), zLinkContactPersonToDealResponse = z.object({
|
|
2358
|
-
dealUuid: z.uuid(),
|
|
2359
|
-
contactPersonUuid: z.uuid()
|
|
2360
|
-
});
|
|
2361
|
-
z.object({
|
|
2362
|
-
detail: z.optional(z.string()),
|
|
2363
|
-
status: z.enum(["404"]),
|
|
2364
|
-
code: z.enum(["deal_contact_person_not_found"])
|
|
2365
|
-
}), z.object({
|
|
2366
|
-
detail: z.optional(z.string()),
|
|
2367
|
-
status: z.enum(["400"]),
|
|
2368
|
-
code: z.enum(["primary_contact_of_deal_not_unlinkable"])
|
|
2369
|
-
});
|
|
2370
|
-
const zUnlinkContactPersonFromDealCommand = z.object({ contactPersonUuid: z.uuid() }), zUpdateDealContactPersonCommand = z.object({
|
|
2371
|
-
firstName: z.string(),
|
|
2372
|
-
lastName: z.string(),
|
|
2373
|
-
email: z.union([z.string(), z.null()]),
|
|
2374
|
-
phone: z.union([z.string(), z.null()]),
|
|
2375
|
-
mobilePhone: z.union([z.string(), z.null()])
|
|
2376
|
-
}), zViewDealContactPersonDetailResponse = z.object({
|
|
2377
|
-
dealUuid: z.uuid(),
|
|
2378
|
-
contactPersonUuid: z.uuid(),
|
|
2379
|
-
firstName: z.string(),
|
|
2380
|
-
lastName: z.string(),
|
|
2381
|
-
email: z.union([z.email(), z.null()]),
|
|
2382
|
-
phone: z.union([z.string(), z.null()]),
|
|
2383
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
2384
|
-
isPrimary: z.boolean()
|
|
2385
|
-
});
|
|
2386
|
-
z.object({
|
|
2387
|
-
detail: z.optional(z.string()),
|
|
2388
|
-
status: z.enum(["400"]),
|
|
2389
|
-
code: z.enum(["customer_zone_email_verification_organization_mismatch"])
|
|
2390
|
-
}), z.object({
|
|
2391
|
-
detail: z.optional(z.string()),
|
|
2392
|
-
status: z.enum(["400"]),
|
|
2393
|
-
code: z.enum(["customer_zone_invalid_email_verification_code"])
|
|
2394
|
-
}), z.object({
|
|
2395
|
-
detail: z.optional(z.string()),
|
|
2396
|
-
status: z.enum(["404"]),
|
|
2397
|
-
code: z.enum(["customer_zone_tenant_domain_not_found"])
|
|
2398
|
-
}), z.object({
|
|
2399
|
-
detail: z.optional(z.string()),
|
|
2400
|
-
status: z.enum(["404"]),
|
|
2401
|
-
code: z.enum(["customer_zone_email_verification_user_not_found"])
|
|
2402
|
-
}), z.object({
|
|
2403
|
-
detail: z.optional(z.string()),
|
|
2404
|
-
status: z.enum(["404"]),
|
|
2405
|
-
code: z.enum(["customer_zone_individual_user_grant_not_found"])
|
|
2406
|
-
});
|
|
2407
|
-
const zVerifyIndividualUserEmailCommand = z.object({
|
|
2408
|
-
userId: z.string(),
|
|
2409
|
-
verificationCode: z.string(),
|
|
2410
|
-
organizationId: z.string(),
|
|
2411
|
-
domain: z.string()
|
|
2412
|
-
}), zCreateUserIndividualGrantCommand = z.object({
|
|
2413
|
-
email: z.email(),
|
|
2414
|
-
firstName: z.union([z.string(), z.null()]),
|
|
2415
|
-
lastName: z.union([z.string(), z.null()])
|
|
2416
|
-
});
|
|
2417
|
-
z.object({
|
|
2418
|
-
detail: z.optional(z.string()),
|
|
2419
|
-
status: z.enum(["409"]),
|
|
2420
|
-
code: z.enum(["customer_zone_individual_already_linked"])
|
|
2421
|
-
}), z.object({
|
|
2422
|
-
uuid: z.uuid(),
|
|
2423
|
-
firstName: z.string(),
|
|
2424
|
-
lastName: z.string(),
|
|
2425
|
-
email: z.union([z.email(), z.null()]),
|
|
2426
|
-
phone: z.union([z.string(), z.null()]),
|
|
2427
|
-
mobilePhone: z.union([z.string(), z.null()]),
|
|
2428
|
-
customFields: z.union([z.record(z.string(), z.unknown()), z.null()])
|
|
2429
|
-
}), z.object({
|
|
2430
|
-
detail: z.optional(z.string()),
|
|
2431
|
-
status: z.enum(["404"]),
|
|
2432
|
-
code: z.enum(["customer_zone_individual_grant_not_found"])
|
|
2433
|
-
});
|
|
2434
|
-
const zMailTemplateResponse = z.object({
|
|
2435
|
-
uuid: z.uuid(),
|
|
2436
|
-
createdAt: z.iso.datetime(),
|
|
2437
|
-
updatedAt: z.iso.datetime(),
|
|
2438
|
-
name: z.string()
|
|
2439
|
-
}), zViewMailTemplateIndexResponse = z.object({
|
|
2440
|
-
items: z.array(zMailTemplateResponse),
|
|
2441
|
-
meta: zPaginatedOffsetResponseMeta
|
|
2442
|
-
});
|
|
2443
|
-
z.object({
|
|
2444
|
-
detail: z.optional(z.string()),
|
|
2445
|
-
status: z.enum(["404"]),
|
|
2446
|
-
code: z.enum(["mail_template_not_found"])
|
|
2447
|
-
});
|
|
2448
|
-
const zFileResponse = z.object({
|
|
2449
|
-
uuid: z.uuid(),
|
|
2450
|
-
name: z.string(),
|
|
2451
|
-
mimeType: zMimeType,
|
|
2452
|
-
blurHash: z.union([z.string(), z.null()])
|
|
2453
|
-
}), zMailTemplateLocaleResponse = z.object({
|
|
2454
|
-
uuid: z.uuid(),
|
|
2455
|
-
language: z.enum([
|
|
2456
|
-
"nl-BE",
|
|
2457
|
-
"en-US",
|
|
2458
|
-
"fr-BE",
|
|
2459
|
-
"de-DE"
|
|
2460
|
-
]),
|
|
2461
|
-
replyTo: z.union([z.email(), z.null()]),
|
|
2462
|
-
subject: z.string(),
|
|
2463
|
-
message: z.string(),
|
|
2464
|
-
createdAt: z.iso.datetime(),
|
|
2465
|
-
updatedAt: z.iso.datetime(),
|
|
2466
|
-
attachments: z.array(zFileResponse)
|
|
2467
|
-
}), zViewMailTemplateDetailResponse = z.object({
|
|
2468
|
-
uuid: z.uuid(),
|
|
2469
|
-
createdAt: z.iso.datetime(),
|
|
2470
|
-
updatedAt: z.iso.datetime(),
|
|
2471
|
-
key: z.string(),
|
|
2472
|
-
displayName: z.string(),
|
|
2473
|
-
defaultCC: z.array(z.string()),
|
|
2474
|
-
defaultBCC: z.array(z.string()),
|
|
2475
|
-
locales: z.array(zMailTemplateLocaleResponse)
|
|
2476
|
-
});
|
|
2477
|
-
z.object({
|
|
2478
|
-
detail: z.optional(z.string()),
|
|
2479
|
-
status: z.enum(["409"]),
|
|
2480
|
-
code: z.enum(["mail_template_key_already_in_use"])
|
|
2481
|
-
}), z.object({
|
|
2482
|
-
detail: z.optional(z.string()),
|
|
2483
|
-
status: z.enum(["400"]),
|
|
2484
|
-
code: z.enum(["mail_template_locale_language_already_provided"])
|
|
2485
|
-
});
|
|
2486
|
-
const zLocalizedStringCommand = z.object({
|
|
2487
|
-
language: zLocale,
|
|
2488
|
-
value: z.string()
|
|
2489
|
-
}), zCreateMailTemplateLocaleAttachmentCommand = z.object({ fileUuid: z.uuid() }), zCreateMailTemplateLocaleCommand = z.object({
|
|
2490
|
-
language: zSdkContentLocale,
|
|
2491
|
-
replyTo: z.union([z.email(), z.null()]),
|
|
2492
|
-
subject: z.string(),
|
|
2493
|
-
message: z.string(),
|
|
2494
|
-
attachments: z.optional(z.array(zCreateMailTemplateLocaleAttachmentCommand))
|
|
2495
|
-
}), zCreateMailTemplateCommand = z.object({
|
|
2496
|
-
key: z.string(),
|
|
2497
|
-
displayName: z.array(zLocalizedStringCommand),
|
|
2498
|
-
defaultCC: z.optional(z.array(z.string())),
|
|
2499
|
-
defaultBCC: z.optional(z.array(z.string())),
|
|
2500
|
-
locales: z.array(zCreateMailTemplateLocaleCommand)
|
|
2501
|
-
});
|
|
2502
|
-
z.object({ uuid: z.uuid() });
|
|
2503
|
-
const zUpdateMailTemplateLocaleCommand = z.object({
|
|
2504
|
-
language: zSdkContentLocale,
|
|
2505
|
-
replyTo: z.union([z.email(), z.null()]),
|
|
2506
|
-
subject: z.string(),
|
|
2507
|
-
message: z.string(),
|
|
2508
|
-
attachments: z.array(z.uuid())
|
|
2509
|
-
}), zUpdateMailTemplateCommand = z.object({
|
|
2510
|
-
defaultCC: z.optional(z.array(z.string())),
|
|
2511
|
-
defaultBCC: z.optional(z.array(z.string())),
|
|
2512
|
-
locales: z.array(zUpdateMailTemplateLocaleCommand)
|
|
2513
|
-
}), zMailTemplateKeyNotFoundErrorMeta = z.object({ key: z.string() });
|
|
2514
|
-
z.object({
|
|
2515
|
-
detail: z.optional(z.string()),
|
|
2516
|
-
status: z.enum(["404"]),
|
|
2517
|
-
code: z.enum(["mail_template_key_not_found"]),
|
|
2518
|
-
meta: zMailTemplateKeyNotFoundErrorMeta
|
|
2519
|
-
});
|
|
2520
|
-
const zCreateMailExternalAttachmentCommand = z.object({
|
|
2521
|
-
uuid: z.uuid(),
|
|
2522
|
-
name: z.string(),
|
|
2523
|
-
mimeType: zMimeType,
|
|
2524
|
-
downloadUrl: z.string()
|
|
2525
|
-
}), zCreateMailCommand = z.object({
|
|
2526
|
-
to: z.array(z.string()),
|
|
2527
|
-
cc: z.optional(z.array(z.string())),
|
|
2528
|
-
bcc: z.optional(z.array(z.string())),
|
|
2529
|
-
from: z.optional(z.string()),
|
|
2530
|
-
replyTo: z.optional(z.string()),
|
|
2531
|
-
subject: z.string(),
|
|
2532
|
-
text: z.string(),
|
|
2533
|
-
attachments: z.optional(z.array(z.uuid())),
|
|
2534
|
-
clientId: zClientIdCommand,
|
|
2535
|
-
dealUuid: z.union([z.uuid(), z.null()]),
|
|
2536
|
-
mailTemplateUuid: z.union([z.uuid(), z.null()]),
|
|
2537
|
-
externalAttachments: z.optional(z.array(zCreateMailExternalAttachmentCommand))
|
|
2538
|
-
}), zMailStatus = z.enum([
|
|
2539
|
-
"sending",
|
|
2540
|
-
"delivered",
|
|
2541
|
-
"failed"
|
|
2542
|
-
]), zCreateMailResponse = z.object({
|
|
2543
|
-
uuid: z.uuid(),
|
|
2544
|
-
status: zMailStatus
|
|
2545
|
-
}), zViewMailIndexFilterQuery = z.object({
|
|
2546
|
-
clientUuid: z.optional(z.uuid()),
|
|
2547
|
-
clientType: z.optional(zClientType),
|
|
2548
|
-
dealUuid: z.optional(z.uuid())
|
|
2549
|
-
}), zViewMailIndexClientResponse = z.object({
|
|
2550
|
-
uuid: z.uuid(),
|
|
2551
|
-
type: zClientType
|
|
2552
|
-
}), zViewMailAttachmentResponse = z.object({
|
|
2553
|
-
uuid: z.uuid(),
|
|
2554
|
-
name: z.string(),
|
|
2555
|
-
mimeType: zMimeType,
|
|
2556
|
-
downloadUrl: z.string()
|
|
2557
|
-
}), zViewMailExternalAttachmentResponse = z.object({
|
|
2558
|
-
uuid: z.uuid(),
|
|
2559
|
-
name: z.string(),
|
|
2560
|
-
mimeType: zMimeType,
|
|
2561
|
-
downloadUrl: z.string()
|
|
2562
|
-
}), zViewMailIndexMailTemplateResponse = z.object({
|
|
2563
|
-
uuid: z.uuid(),
|
|
2564
|
-
key: z.string(),
|
|
2565
|
-
displayName: z.array(z.record(z.string(), z.unknown()))
|
|
2566
|
-
}), zViewMailIndexResponseItem = z.object({
|
|
2567
|
-
uuid: z.uuid(),
|
|
2568
|
-
to: z.array(z.string()),
|
|
2569
|
-
cc: z.array(z.string()),
|
|
2570
|
-
bcc: z.array(z.string()),
|
|
2571
|
-
from: z.union([z.string(), z.null()]),
|
|
2572
|
-
replyTo: z.union([z.string(), z.null()]),
|
|
2573
|
-
subject: z.string(),
|
|
2574
|
-
text: z.string(),
|
|
2575
|
-
status: zMailStatus,
|
|
2576
|
-
client: zViewMailIndexClientResponse,
|
|
2577
|
-
dealUuid: z.union([z.uuid(), z.null()]),
|
|
2578
|
-
attachments: z.array(zViewMailAttachmentResponse),
|
|
2579
|
-
externalAttachments: z.array(zViewMailExternalAttachmentResponse),
|
|
2580
|
-
mailTemplateDisplayName: z.union([z.string(), z.null()]),
|
|
2581
|
-
mailTemplateUuid: z.union([z.uuid(), z.null()]),
|
|
2582
|
-
mailTemplate: z.union([zViewMailIndexMailTemplateResponse, z.null()]),
|
|
2583
|
-
createdAt: z.iso.datetime(),
|
|
2584
|
-
updatedAt: z.iso.datetime()
|
|
2585
|
-
}), zViewMailIndexResponse = z.object({
|
|
2586
|
-
items: z.array(zViewMailIndexResponseItem),
|
|
2587
|
-
meta: zPaginatedOffsetResponseMeta
|
|
2588
|
-
}), zViewActivityLogIndexFilterQuery = z.object({
|
|
2589
|
-
entityUuids: z.optional(z.array(z.uuid())),
|
|
2590
|
-
entityTypes: z.optional(z.array(z.enum([
|
|
2591
|
-
"business",
|
|
2592
|
-
"individual",
|
|
2593
|
-
"file",
|
|
2594
|
-
"note"
|
|
2595
|
-
]))),
|
|
2596
|
-
roles: z.optional(z.array(z.enum([
|
|
2597
|
-
"actor",
|
|
2598
|
-
"business",
|
|
2599
|
-
"individual",
|
|
2600
|
-
"file",
|
|
2601
|
-
"note"
|
|
2602
|
-
])))
|
|
2603
|
-
}), zViewActivityLogIndexQueryKey = z.object({
|
|
2604
|
-
createdAt: z.string(),
|
|
2605
|
-
uuid: z.uuid()
|
|
2606
|
-
}), zViewActivityLogIndexPaginationQuery = z.object({
|
|
2607
|
-
limit: z.number().gte(0).lte(100),
|
|
2608
|
-
key: z.optional(z.union([zViewActivityLogIndexQueryKey, z.null()]))
|
|
2609
|
-
}), zActivityType = z.enum(["business-updated"]), zActivityChangeType = z.enum([
|
|
2610
|
-
"create",
|
|
2611
|
-
"update",
|
|
2612
|
-
"delete"
|
|
2613
|
-
]), zActivityActorType = z.enum([
|
|
2614
|
-
"user",
|
|
2615
|
-
"service",
|
|
2616
|
-
"system"
|
|
2617
|
-
]), zActivityActorResponse = z.object({
|
|
2618
|
-
uuid: z.uuid(),
|
|
2619
|
-
firstName: z.union([z.string(), z.null()]),
|
|
2620
|
-
lastName: z.union([z.string(), z.null()]),
|
|
2621
|
-
email: z.union([z.string(), z.null()])
|
|
2622
|
-
}), zActivityEntityRole = z.enum([
|
|
2623
|
-
"actor",
|
|
2624
|
-
"business",
|
|
2625
|
-
"individual",
|
|
2626
|
-
"file",
|
|
2627
|
-
"note"
|
|
2628
|
-
]), zActivityEntityType = z.enum([
|
|
2629
|
-
"business",
|
|
2630
|
-
"individual",
|
|
2631
|
-
"file",
|
|
2632
|
-
"note"
|
|
2633
|
-
]), zActivityEntityResponse = z.object({
|
|
2634
|
-
role: zActivityEntityRole,
|
|
2635
|
-
type: zActivityEntityType,
|
|
2636
|
-
uuid: z.uuid(),
|
|
2637
|
-
label: z.union([z.string(), z.null()])
|
|
2638
|
-
}), zActivityChange = z.object({
|
|
2639
|
-
entityRole: zActivityEntityRole,
|
|
2640
|
-
field: z.string(),
|
|
2641
|
-
from: z.union([
|
|
2642
|
-
z.string(),
|
|
2643
|
-
z.number(),
|
|
2644
|
-
z.boolean(),
|
|
2645
|
-
z.null()
|
|
2646
|
-
]),
|
|
2647
|
-
to: z.union([
|
|
2648
|
-
z.string(),
|
|
2649
|
-
z.number(),
|
|
2650
|
-
z.boolean(),
|
|
2651
|
-
z.null()
|
|
2652
|
-
])
|
|
2653
|
-
}), zActivityLogItemResponse = z.object({
|
|
2654
|
-
action: zActivityType,
|
|
2655
|
-
changeType: zActivityChangeType,
|
|
2656
|
-
actorType: zActivityActorType,
|
|
2657
|
-
actor: z.union([zActivityActorResponse, z.null()]),
|
|
2658
|
-
entities: z.array(zActivityEntityResponse),
|
|
2659
|
-
changes: z.union([z.array(zActivityChange), z.null()])
|
|
2660
|
-
});
|
|
2661
|
-
z.object({
|
|
2662
|
-
logs: z.array(zActivityLogItemResponse),
|
|
2663
|
-
nextKey: z.union([zViewActivityLogIndexQueryKey, z.null()])
|
|
2664
|
-
}), z.object({
|
|
2665
|
-
detail: z.optional(z.string()),
|
|
2666
|
-
status: z.enum(["500"]),
|
|
2667
|
-
code: z.enum(["internal_server_error"])
|
|
2668
|
-
}), z.object({
|
|
2669
|
-
body: z.optional(z.never()),
|
|
2670
|
-
path: z.optional(z.never()),
|
|
2671
|
-
query: z.optional(z.never())
|
|
2672
|
-
}), z.object({
|
|
2673
|
-
body: z.optional(z.never()),
|
|
2674
|
-
path: z.optional(z.never()),
|
|
2675
|
-
query: z.optional(z.object({
|
|
2676
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
2677
|
-
search: z.optional(z.string())
|
|
2678
|
-
}))
|
|
2679
|
-
}), z.object({
|
|
2680
|
-
body: zCreateTenantCommand,
|
|
2681
|
-
path: z.optional(z.never()),
|
|
2682
|
-
query: z.optional(z.never())
|
|
2683
|
-
}), z.object({
|
|
2684
|
-
body: z.optional(z.never()),
|
|
2685
|
-
path: z.object({ uuid: z.string() }),
|
|
2686
|
-
query: z.optional(z.never())
|
|
2687
|
-
}), z.object({
|
|
2688
|
-
body: zUpdateTenantCommand,
|
|
2689
|
-
path: z.object({ uuid: z.string() }),
|
|
2690
|
-
query: z.optional(z.never())
|
|
2691
|
-
}), z.void(), z.object({
|
|
2692
|
-
body: zUpdateTenantBrandColorsCommand,
|
|
2693
|
-
path: z.object({ uuid: z.string() }),
|
|
2694
|
-
query: z.optional(z.never())
|
|
2695
|
-
}), z.void(), z.object({
|
|
2696
|
-
body: zUpdateTenantEntitiesConfigCommand,
|
|
2697
|
-
path: z.object({ uuid: z.string() }),
|
|
2698
|
-
query: z.optional(z.never())
|
|
2699
|
-
}), z.void(), z.object({
|
|
2700
|
-
body: zUpdateTenantBusinessConfigCommand,
|
|
2701
|
-
path: z.object({ uuid: z.string() }),
|
|
2702
|
-
query: z.optional(z.never())
|
|
2703
|
-
}), z.void(), z.object({
|
|
2704
|
-
body: zUpdateTenantBillingConfigCommand,
|
|
2705
|
-
path: z.object({ uuid: z.string() }),
|
|
2706
|
-
query: z.optional(z.never())
|
|
2707
|
-
}), z.void();
|
|
2708
|
-
const zViewTenantConfigDetailV1Data = z.object({
|
|
2709
|
-
body: z.optional(z.never()),
|
|
2710
|
-
path: z.optional(z.never()),
|
|
2711
|
-
query: z.optional(z.never())
|
|
2712
|
-
}), zViewTenantConfigDetailV1Response = zViewTenantConfigDetailResponse, zViewRecentEntitiesV1Data = z.object({
|
|
2713
|
-
body: z.optional(z.never()),
|
|
2714
|
-
path: z.optional(z.never()),
|
|
2715
|
-
query: z.optional(z.object({
|
|
2716
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
2717
|
-
filter: z.optional(zViewRecentEntitiesFilterQuery)
|
|
2718
|
-
}))
|
|
2719
|
-
}), zViewRecentEntitiesV1Response = zViewRecentEntitiesResponse;
|
|
2720
|
-
z.object({
|
|
2721
|
-
body: zAssignUserAsAdminCommand,
|
|
2722
|
-
path: z.object({ uuid: z.string() }),
|
|
2723
|
-
query: z.optional(z.never())
|
|
2724
|
-
}), z.object({
|
|
2725
|
-
body: z.optional(z.never()),
|
|
2726
|
-
path: z.optional(z.never()),
|
|
2727
|
-
query: z.object({
|
|
2728
|
-
fresh: z.boolean(),
|
|
2729
|
-
collections: z.optional(z.array(zTypesenseCollectionName))
|
|
2730
|
-
})
|
|
2731
|
-
}), z.object({
|
|
2732
|
-
body: z.optional(z.never()),
|
|
2733
|
-
path: z.optional(z.never()),
|
|
2734
|
-
query: z.optional(z.object({ collections: z.optional(z.array(zTypesenseCollectionName)) }))
|
|
2735
|
-
}), z.object({
|
|
2736
|
-
body: z.optional(z.never()),
|
|
2737
|
-
path: z.optional(z.never()),
|
|
2738
|
-
query: z.optional(z.never())
|
|
2739
|
-
}), z.object({
|
|
2740
|
-
body: z.optional(z.never()),
|
|
2741
|
-
path: z.optional(z.never()),
|
|
2742
|
-
query: z.optional(z.never())
|
|
2743
|
-
}), z.object({
|
|
2744
|
-
body: z.optional(z.never()),
|
|
2745
|
-
path: z.object({ domain: z.string() }),
|
|
2746
|
-
query: z.optional(z.never())
|
|
2747
|
-
}), z.object({
|
|
2748
|
-
body: z.optional(z.never()),
|
|
2749
|
-
path: z.object({ domain: z.string() }),
|
|
2750
|
-
query: z.optional(z.never())
|
|
2751
|
-
}), z.object({
|
|
2752
|
-
body: z.optional(z.never()),
|
|
2753
|
-
path: z.optional(z.never()),
|
|
2754
|
-
query: z.optional(z.never())
|
|
2755
|
-
}), z.object({
|
|
2756
|
-
body: zSetUserRolesCommand,
|
|
2757
|
-
path: z.object({ user: z.string() }),
|
|
2758
|
-
query: z.optional(z.never())
|
|
2759
|
-
}), z.object({
|
|
2760
|
-
body: z.optional(z.never()),
|
|
2761
|
-
path: z.optional(z.never()),
|
|
2762
|
-
query: z.optional(z.never())
|
|
2763
|
-
}), z.object({
|
|
2764
|
-
body: z.optional(z.never()),
|
|
2765
|
-
path: z.object({ uuid: z.string() }),
|
|
2766
|
-
query: z.optional(z.never())
|
|
2767
|
-
});
|
|
2768
|
-
const zViewUserIndexV1Data = z.object({
|
|
2769
|
-
body: z.optional(z.never()),
|
|
2770
|
-
path: z.optional(z.never()),
|
|
2771
|
-
query: z.optional(z.object({
|
|
2772
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
2773
|
-
search: z.optional(z.string())
|
|
2774
|
-
}))
|
|
2775
|
-
}), zViewUserIndexV1Response = zViewUserIndexResponse;
|
|
2776
|
-
z.object({
|
|
2777
|
-
body: z.optional(z.never()),
|
|
2778
|
-
path: z.optional(z.never()),
|
|
2779
|
-
query: z.optional(z.never())
|
|
2780
|
-
}), z.object({
|
|
2781
|
-
body: zUpdateRolesPermissionsCommand,
|
|
2782
|
-
path: z.optional(z.never()),
|
|
2783
|
-
query: z.optional(z.never())
|
|
2784
|
-
}), z.void(), z.object({
|
|
2785
|
-
body: zCreateRoleCommand,
|
|
2786
|
-
path: z.optional(z.never()),
|
|
2787
|
-
query: z.optional(z.never())
|
|
2788
|
-
}), z.object({
|
|
2789
|
-
body: zClearRolePermissionsCacheCommand,
|
|
2790
|
-
path: z.optional(z.never()),
|
|
2791
|
-
query: z.optional(z.never())
|
|
2792
|
-
}), z.void(), z.object({
|
|
2793
|
-
body: z.optional(z.never()),
|
|
2794
|
-
path: z.object({ role: z.string() }),
|
|
2795
|
-
query: z.optional(z.never())
|
|
2796
|
-
}), z.void(), z.object({
|
|
2797
|
-
body: z.optional(z.never()),
|
|
2798
|
-
path: z.object({ role: z.string() }),
|
|
2799
|
-
query: z.optional(z.never())
|
|
2800
|
-
}), z.object({
|
|
2801
|
-
body: zUpdateRoleCommand,
|
|
2802
|
-
path: z.object({ role: z.string() }),
|
|
2803
|
-
query: z.optional(z.never())
|
|
2804
|
-
}), z.void();
|
|
2805
|
-
const zCreateFileV1Data = z.object({
|
|
2806
|
-
body: zCreateFileCommand,
|
|
2807
|
-
path: z.optional(z.never()),
|
|
2808
|
-
query: z.optional(z.never())
|
|
2809
|
-
}), zCreateFileV1Response = zCreateFileResponse;
|
|
2810
|
-
z.object({
|
|
2811
|
-
body: z.optional(z.never()),
|
|
2812
|
-
path: z.object({ file: z.string() }),
|
|
2813
|
-
query: z.optional(z.never())
|
|
2814
|
-
}), z.void();
|
|
2815
|
-
const zConfirmFileUploadV2Data = z.object({
|
|
2816
|
-
body: zConfirmFileUploadCommand,
|
|
2817
|
-
path: z.object({ file: z.string() }),
|
|
2818
|
-
query: z.optional(z.never())
|
|
2819
|
-
}), zConfirmFileUploadV2Response = z.void();
|
|
2820
|
-
z.object({
|
|
2821
|
-
body: z.optional(z.never()),
|
|
2822
|
-
path: z.object({ file: z.string() }),
|
|
2823
|
-
query: z.optional(z.never())
|
|
2824
|
-
}), z.object({
|
|
2825
|
-
body: z.optional(z.never()),
|
|
2826
|
-
path: z.object({ file: z.string() }),
|
|
2827
|
-
query: z.object({ token: z.string() })
|
|
2828
|
-
}), z.object({
|
|
2829
|
-
body: z.optional(z.never()),
|
|
2830
|
-
path: z.optional(z.never()),
|
|
2831
|
-
query: z.optional(z.never())
|
|
2832
|
-
}), z.object({
|
|
2833
|
-
body: zUpdateUiPreferencesCommand,
|
|
2834
|
-
path: z.optional(z.never()),
|
|
2835
|
-
query: z.optional(z.never())
|
|
2836
|
-
}), z.object({
|
|
2837
|
-
body: z.optional(z.never()),
|
|
2838
|
-
path: z.optional(z.never()),
|
|
2839
|
-
query: z.optional(z.never())
|
|
2840
|
-
}), z.object({
|
|
2841
|
-
body: zSendPushNotificationCommand,
|
|
2842
|
-
path: z.optional(z.never()),
|
|
2843
|
-
query: z.optional(z.never())
|
|
2844
|
-
}), z.object({
|
|
2845
|
-
body: z.optional(z.never()),
|
|
2846
|
-
path: z.optional(z.never()),
|
|
2847
|
-
query: z.optional(z.object({
|
|
2848
|
-
filter: z.optional(zViewDomainEventLogIndexFilterQuery),
|
|
2849
|
-
pagination: z.optional(zViewDomainEventLogIndexPaginationQuery)
|
|
2850
|
-
}))
|
|
2851
|
-
});
|
|
2852
|
-
const zSearchCollectionsV1Data = z.object({
|
|
2853
|
-
body: z.optional(z.never()),
|
|
2854
|
-
path: z.optional(z.never()),
|
|
2855
|
-
query: z.object({
|
|
2856
|
-
filter: z.optional(zSearchCollectionsFilterQuery),
|
|
2857
|
-
search: z.string()
|
|
2858
|
-
})
|
|
2859
|
-
}), zSearchCollectionsV1Response = zSearchCollectionsResponse;
|
|
2860
|
-
z.object({
|
|
2861
|
-
body: z.optional(z.never()),
|
|
2862
|
-
path: z.optional(z.never()),
|
|
2863
|
-
query: z.optional(z.never())
|
|
2864
|
-
}), z.object({
|
|
2865
|
-
body: z.optional(z.never()),
|
|
2866
|
-
path: z.optional(z.never()),
|
|
2867
|
-
query: z.optional(z.never())
|
|
2868
|
-
}), z.object({
|
|
2869
|
-
body: zUpdateMyChannelNotificationPreferenceCommand,
|
|
2870
|
-
path: z.optional(z.never()),
|
|
2871
|
-
query: z.optional(z.never())
|
|
2872
|
-
}), z.void(), z.object({
|
|
2873
|
-
body: z.optional(z.never()),
|
|
2874
|
-
path: z.optional(z.never()),
|
|
2875
|
-
query: z.optional(z.object({
|
|
2876
|
-
filter: z.optional(zGetMyNotificationsFilterQuery),
|
|
2877
|
-
pagination: z.optional(zGetMyNotificationsPaginationQuery)
|
|
2878
|
-
}))
|
|
2879
|
-
}), z.object({
|
|
2880
|
-
body: z.optional(z.never()),
|
|
2881
|
-
path: z.optional(z.never()),
|
|
2882
|
-
query: z.optional(z.never())
|
|
2883
|
-
}), z.object({
|
|
2884
|
-
body: z.optional(z.never()),
|
|
2885
|
-
path: z.object({ notificationUuid: z.string() }),
|
|
2886
|
-
query: z.optional(z.never())
|
|
2887
|
-
}), z.object({
|
|
2888
|
-
body: z.optional(z.never()),
|
|
2889
|
-
path: z.optional(z.never()),
|
|
2890
|
-
query: z.optional(z.never())
|
|
2891
|
-
}), z.void(), z.object({
|
|
2892
|
-
body: zUpdateMyNotificationTypePreferenceCommand,
|
|
2893
|
-
path: z.optional(z.never()),
|
|
2894
|
-
query: z.optional(z.never())
|
|
2895
|
-
}), z.void(), z.object({
|
|
2896
|
-
body: z.optional(z.never()),
|
|
2897
|
-
path: z.object({ notificationUuid: z.string() }),
|
|
2898
|
-
query: z.optional(z.never())
|
|
2899
|
-
}), z.void(), z.object({
|
|
2900
|
-
body: z.optional(z.never()),
|
|
2901
|
-
path: z.object({ notificationUuid: z.string() }),
|
|
2902
|
-
query: z.optional(z.never())
|
|
2903
|
-
}), z.void(), z.object({
|
|
2904
|
-
body: zUpdateMyNotificationPreferencePresetCommand,
|
|
2905
|
-
path: z.optional(z.never()),
|
|
2906
|
-
query: z.optional(z.never())
|
|
2907
|
-
}), z.void(), z.object({
|
|
2908
|
-
body: zMigrateNotificationTypesCommand,
|
|
2909
|
-
path: z.optional(z.never()),
|
|
2910
|
-
query: z.optional(z.never())
|
|
2911
|
-
}), z.void(), z.object({
|
|
2912
|
-
body: zSendTestNotificationCommand,
|
|
2913
|
-
path: z.optional(z.never()),
|
|
2914
|
-
query: z.optional(z.never())
|
|
2915
|
-
}), z.void(), z.object({
|
|
2916
|
-
body: z.optional(z.never()),
|
|
2917
|
-
path: z.optional(z.never()),
|
|
2918
|
-
query: z.optional(z.object({
|
|
2919
|
-
sort: z.optional(z.array(zViewJobsIndexSortQuery)),
|
|
2920
|
-
filter: z.optional(zViewJobsIndexFilterQuery),
|
|
2921
|
-
pagination: z.optional(zViewJobsIndexPaginationQuery)
|
|
2922
|
-
}))
|
|
2923
|
-
}), z.object({
|
|
2924
|
-
body: z.optional(z.never()),
|
|
2925
|
-
path: z.object({ jobId: z.string() }),
|
|
2926
|
-
query: z.optional(z.never())
|
|
2927
|
-
}), z.object({
|
|
2928
|
-
body: z.optional(z.never()),
|
|
2929
|
-
path: z.optional(z.never()),
|
|
2930
|
-
query: z.optional(z.object({
|
|
2931
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
2932
|
-
filter: z.optional(zViewLocationIndexFilterQuery),
|
|
2933
|
-
search: z.optional(z.string()),
|
|
2934
|
-
sort: z.optional(z.array(zViewLocationIndexSortQuery))
|
|
2935
|
-
}))
|
|
2936
|
-
}), z.object({
|
|
2937
|
-
body: zCreateLocationCommand,
|
|
2938
|
-
path: z.optional(z.never()),
|
|
2939
|
-
query: z.optional(z.never())
|
|
2940
|
-
}), z.object({
|
|
2941
|
-
body: z.optional(z.never()),
|
|
2942
|
-
path: z.object({ uuid: z.string() }),
|
|
2943
|
-
query: z.optional(z.never())
|
|
2944
|
-
}), z.object({
|
|
2945
|
-
body: zUpdateLocationCommand,
|
|
2946
|
-
path: z.object({ uuid: z.string() }),
|
|
2947
|
-
query: z.optional(z.never())
|
|
2948
|
-
});
|
|
2949
|
-
const zViewIndividualIndexV1Data = z.object({
|
|
2950
|
-
body: z.optional(z.never()),
|
|
2951
|
-
path: z.optional(z.never()),
|
|
2952
|
-
query: z.optional(z.object({
|
|
2953
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
2954
|
-
search: z.optional(z.string())
|
|
2955
|
-
}))
|
|
2956
|
-
}), zViewIndividualIndexV1Response = zViewIndividualIndexResponse, zCreateIndividualV1Data = z.object({
|
|
2957
|
-
body: zCreateIndividualCommand,
|
|
2958
|
-
path: z.optional(z.never()),
|
|
2959
|
-
query: z.optional(z.never())
|
|
2960
|
-
}), zCreateIndividualV1Response = zCreateIndividualResponse, zViewIndividualDetailV1Data = z.object({
|
|
2961
|
-
body: z.optional(z.never()),
|
|
2962
|
-
path: z.object({ individualUuid: z.string() }),
|
|
2963
|
-
query: z.optional(z.never())
|
|
2964
|
-
}), zViewIndividualDetailV1Response = zViewIndividualDetailResponse, zUpdateIndividualV1Data = z.object({
|
|
2965
|
-
body: zUpdateIndividualCommand,
|
|
2966
|
-
path: z.object({ individualUuid: z.string() }),
|
|
2967
|
-
query: z.optional(z.never())
|
|
2968
|
-
}), zUpdateIndividualV1Response = z.void();
|
|
2969
|
-
z.object({
|
|
2970
|
-
body: zUpdateIndividualStatusCommand,
|
|
2971
|
-
path: z.object({ individualUuid: z.string() }),
|
|
2972
|
-
query: z.optional(z.never())
|
|
2973
|
-
}), z.void();
|
|
2974
|
-
const zViewIndividualStatisticsV1Data = z.object({
|
|
2975
|
-
body: z.optional(z.never()),
|
|
2976
|
-
path: z.optional(z.never()),
|
|
2977
|
-
query: z.optional(z.never())
|
|
2978
|
-
}), zViewIndividualStatisticsV1Response = zViewIndividualStatisticsResponse, zViewIndividualActivityLogIndexV1Data = z.object({
|
|
2979
|
-
body: z.optional(z.never()),
|
|
2980
|
-
path: z.object({ individualUuid: z.string() }),
|
|
2981
|
-
query: z.optional(z.object({ pagination: z.optional(zViewIndividualActivityLogIndexPaginationQuery) }))
|
|
2982
|
-
}), zViewIndividualActivityLogIndexV1Response = zViewIndividualActivityLogIndexResponse, zViewBusinessIndexV1Data = z.object({
|
|
2983
|
-
body: z.optional(z.never()),
|
|
2984
|
-
path: z.optional(z.never()),
|
|
2985
|
-
query: z.optional(z.object({
|
|
2986
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
2987
|
-
search: z.optional(z.string())
|
|
2988
|
-
}))
|
|
2989
|
-
}), zViewBusinessIndexV1Response = zViewBusinessIndexResponse, zCreateBusinessV1Data = z.object({
|
|
2990
|
-
body: zCreateBusinessCommand,
|
|
2991
|
-
path: z.optional(z.never()),
|
|
2992
|
-
query: z.optional(z.never())
|
|
2993
|
-
}), zCreateBusinessV1Response = zCreateBusinessResponse;
|
|
2994
|
-
z.object({
|
|
2995
|
-
body: zVatNumberCommand,
|
|
2996
|
-
path: z.optional(z.never()),
|
|
2997
|
-
query: z.optional(z.never())
|
|
2998
|
-
});
|
|
2999
|
-
const zViewBusinessDetailV1Data = z.object({
|
|
3000
|
-
body: z.optional(z.never()),
|
|
3001
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3002
|
-
query: z.optional(z.never())
|
|
3003
|
-
}), zViewBusinessDetailV1Response = zViewBusinessDetailResponse, zUpdateBusinessV1Data = z.object({
|
|
3004
|
-
body: zUpdateBusinessCommand,
|
|
3005
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3006
|
-
query: z.optional(z.never())
|
|
3007
|
-
}), zUpdateBusinessV1Response = z.void();
|
|
3008
|
-
z.object({
|
|
3009
|
-
body: zUpdateBusinessStatusCommand,
|
|
3010
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3011
|
-
query: z.optional(z.never())
|
|
3012
|
-
}), z.void();
|
|
3013
|
-
const zViewBusinessStatisticsV1Data = z.object({
|
|
3014
|
-
body: z.optional(z.never()),
|
|
3015
|
-
path: z.optional(z.never()),
|
|
3016
|
-
query: z.optional(z.never())
|
|
3017
|
-
}), zViewBusinessStatisticsV1Response = zViewBusinessStatisticsResponse, zViewBusinessBillingInformationDetailV1Data = z.object({
|
|
3018
|
-
body: z.optional(z.never()),
|
|
3019
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3020
|
-
query: z.optional(z.never())
|
|
3021
|
-
}), zViewBusinessBillingInformationDetailV1Response = zViewBusinessBillingInformationDetailResponse, zUpsertBusinessBillingInformationV1Data = z.object({
|
|
3022
|
-
body: zUpsertBusinessBillingInformationCommand,
|
|
3023
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3024
|
-
query: z.optional(z.never())
|
|
3025
|
-
}), zUpsertBusinessBillingInformationV1Response = z.void();
|
|
3026
|
-
z.object({
|
|
3027
|
-
body: z.optional(z.never()),
|
|
3028
|
-
path: z.object({
|
|
3029
|
-
parentUuid: z.string(),
|
|
3030
|
-
businessUuid: z.string()
|
|
3031
|
-
}),
|
|
3032
|
-
query: z.optional(z.never())
|
|
3033
|
-
}), z.void();
|
|
3034
|
-
const zLinkBusinessAsChildV1Data = z.object({
|
|
3035
|
-
body: z.optional(z.never()),
|
|
3036
|
-
path: z.object({
|
|
3037
|
-
childUuid: z.string(),
|
|
3038
|
-
businessUuid: z.string()
|
|
3039
|
-
}),
|
|
3040
|
-
query: z.optional(z.never())
|
|
3041
|
-
}), zLinkBusinessAsChildV1Response = z.void(), zViewBusinessActivityLogIndexV1Data = z.object({
|
|
3042
|
-
body: z.optional(z.never()),
|
|
3043
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3044
|
-
query: z.optional(z.object({ pagination: z.optional(zViewBusinessActivityLogIndexPaginationQuery) }))
|
|
3045
|
-
}), zViewBusinessActivityLogIndexV1Response = zViewBusinessActivityLogIndexResponse;
|
|
3046
|
-
z.object({
|
|
3047
|
-
body: zVatNumberCommand,
|
|
3048
|
-
path: z.optional(z.never()),
|
|
3049
|
-
query: z.optional(z.never())
|
|
3050
|
-
});
|
|
3051
|
-
const zCreateNoteV1Data = z.object({
|
|
3052
|
-
body: zCreateNoteCommand,
|
|
3053
|
-
path: z.optional(z.never()),
|
|
3054
|
-
query: z.optional(z.never())
|
|
3055
|
-
}), zCreateNoteV1Response = zCreateNoteResponse, zDeleteNoteV1Data = z.object({
|
|
3056
|
-
body: z.optional(z.never()),
|
|
3057
|
-
path: z.object({ uuid: z.string() }),
|
|
3058
|
-
query: z.optional(z.never())
|
|
3059
|
-
}), zUpdateNoteV1Data = z.object({
|
|
3060
|
-
body: zUpdateNoteCommand,
|
|
3061
|
-
path: z.object({ uuid: z.string() }),
|
|
3062
|
-
query: z.optional(z.never())
|
|
3063
|
-
}), zViewBusinessNotesIndexV1Data = z.object({
|
|
3064
|
-
body: z.optional(z.never()),
|
|
3065
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3066
|
-
query: z.optional(z.object({ pagination: z.optional(zViewBusinessNotesIndexPaginationQuery) }))
|
|
3067
|
-
}), zViewBusinessNotesIndexV1Response = zViewBusinessNotesIndexResponse, zViewIndividualNotesIndexV1Data = z.object({
|
|
3068
|
-
body: z.optional(z.never()),
|
|
3069
|
-
path: z.object({ individualUuid: z.string() }),
|
|
3070
|
-
query: z.optional(z.object({ pagination: z.optional(zViewIndividualNotesIndexPaginationQuery) }))
|
|
3071
|
-
}), zViewIndividualNotesIndexV1Response = zViewIndividualNotesIndexResponse, zViewDealNotesIndexV1Data = z.object({
|
|
3072
|
-
body: z.optional(z.never()),
|
|
3073
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3074
|
-
query: z.optional(z.object({ pagination: z.optional(zViewDealNotesIndexPaginationQuery) }))
|
|
3075
|
-
}), zViewDealNotesIndexV1Response = zViewDealNotesIndexResponse;
|
|
3076
|
-
z.object({
|
|
3077
|
-
body: zAddNoteFileCommand,
|
|
3078
|
-
path: z.object({ noteUuid: z.string() }),
|
|
3079
|
-
query: z.optional(z.never())
|
|
3080
|
-
}), z.object({
|
|
3081
|
-
body: z.optional(z.never()),
|
|
3082
|
-
path: z.object({
|
|
3083
|
-
noteUuid: z.string(),
|
|
3084
|
-
fileUuid: z.string()
|
|
3085
|
-
}),
|
|
3086
|
-
query: z.optional(z.never())
|
|
3087
|
-
}), z.void();
|
|
3088
|
-
const zLinkContactPersonToIndividualV1Data = z.object({
|
|
3089
|
-
body: zLinkContactPersonToIndividualCommand,
|
|
3090
|
-
path: z.object({ individualUuid: z.string() }),
|
|
3091
|
-
query: z.optional(z.never())
|
|
3092
|
-
}), zLinkContactPersonToIndividualV1Response = zLinkContactPersonToIndividualResponse, zUnlinkContactPersonFromIndividualV1Data = z.object({
|
|
3093
|
-
body: zUnlinkContactPersonFromIndividualCommand,
|
|
3094
|
-
path: z.object({ individualUuid: z.string() }),
|
|
3095
|
-
query: z.optional(z.never())
|
|
3096
|
-
}), zUnlinkContactPersonFromIndividualV1Response = z.void(), zViewIndividualContactPersonDetailV1Data = z.object({
|
|
3097
|
-
body: z.optional(z.never()),
|
|
3098
|
-
path: z.object({
|
|
3099
|
-
individualUuid: z.string(),
|
|
3100
|
-
contactPersonUuid: z.string()
|
|
3101
|
-
}),
|
|
3102
|
-
query: z.optional(z.never())
|
|
3103
|
-
}), zViewIndividualContactPersonDetailV1Response = zViewIndividualContactPersonDetailResponse, zUpdateIndividualContactPersonV1Data = z.object({
|
|
3104
|
-
body: zUpdateIndividualContactPersonCommand,
|
|
3105
|
-
path: z.object({
|
|
3106
|
-
individualUuid: z.string(),
|
|
3107
|
-
contactPersonUuid: z.string()
|
|
3108
|
-
}),
|
|
3109
|
-
query: z.optional(z.never())
|
|
3110
|
-
}), zUpdateIndividualContactPersonV1Response = z.void(), zMakeIndividualContactPersonPrimaryV1Data = z.object({
|
|
3111
|
-
body: z.optional(z.never()),
|
|
3112
|
-
path: z.object({
|
|
3113
|
-
individualUuid: z.string(),
|
|
3114
|
-
contactPersonUuid: z.string()
|
|
3115
|
-
}),
|
|
3116
|
-
query: z.optional(z.never())
|
|
3117
|
-
}), zMakeIndividualContactPersonPrimaryV1Response = z.void(), zLinkContactPersonToBusinessV1Data = z.object({
|
|
3118
|
-
body: zLinkContactPersonToBusinessCommand,
|
|
3119
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3120
|
-
query: z.optional(z.never())
|
|
3121
|
-
}), zLinkContactPersonToBusinessV1Response = zLinkContactPersonToBusinessResponse, zUnlinkContactPersonFromBusinessV1Data = z.object({
|
|
3122
|
-
body: zUnlinkContactPersonFromBusinessCommand,
|
|
3123
|
-
path: z.object({ businessUuid: z.string() }),
|
|
3124
|
-
query: z.optional(z.never())
|
|
3125
|
-
}), zUnlinkContactPersonFromBusinessV1Response = z.void(), zViewBusinessContactPersonDetailV1Data = z.object({
|
|
3126
|
-
body: z.optional(z.never()),
|
|
3127
|
-
path: z.object({
|
|
3128
|
-
businessUuid: z.string(),
|
|
3129
|
-
contactPersonUuid: z.string()
|
|
3130
|
-
}),
|
|
3131
|
-
query: z.optional(z.never())
|
|
3132
|
-
}), zViewBusinessContactPersonDetailV1Response = zViewBusinessContactPersonDetailResponse, zUpdateBusinessContactPersonV1Data = z.object({
|
|
3133
|
-
body: zUpdateBusinessContactPersonCommand,
|
|
3134
|
-
path: z.object({
|
|
3135
|
-
businessUuid: z.string(),
|
|
3136
|
-
contactPersonUuid: z.string()
|
|
3137
|
-
}),
|
|
3138
|
-
query: z.optional(z.never())
|
|
3139
|
-
}), zUpdateBusinessContactPersonV1Response = z.void(), zMakeBusinessContactPersonPrimaryV1Data = z.object({
|
|
3140
|
-
body: z.optional(z.never()),
|
|
3141
|
-
path: z.object({
|
|
3142
|
-
businessUuid: z.string(),
|
|
3143
|
-
contactPersonUuid: z.string()
|
|
3144
|
-
}),
|
|
3145
|
-
query: z.optional(z.never())
|
|
3146
|
-
}), zMakeBusinessContactPersonPrimaryV1Response = z.void(), zViewCustomFieldDefinitionIndexV1Data = z.object({
|
|
3147
|
-
body: z.optional(z.never()),
|
|
3148
|
-
path: z.optional(z.never()),
|
|
3149
|
-
query: z.object({ filter: zViewCustomFieldDefinitionIndexFilterQuery })
|
|
3150
|
-
}), zViewCustomFieldDefinitionIndexV1Response = z.array(zViewCustomFieldDefinitionIndexResponseItem);
|
|
3151
|
-
z.object({
|
|
3152
|
-
body: zCreateCustomFieldDefinitionCommand,
|
|
3153
|
-
path: z.optional(z.never()),
|
|
3154
|
-
query: z.optional(z.never())
|
|
3155
|
-
});
|
|
3156
|
-
const zViewIndividualBillingInformationDetailV1Data = z.object({
|
|
3157
|
-
body: z.optional(z.never()),
|
|
3158
|
-
path: z.object({ individualUuid: z.string() }),
|
|
3159
|
-
query: z.optional(z.never())
|
|
3160
|
-
}), zViewIndividualBillingInformationDetailV1Response = zViewIndividualBillingInformationDetailResponse, zUpsertIndividualBillingInformationV1Data = z.object({
|
|
3161
|
-
body: zUpsertIndividualBillingInformationCommand,
|
|
3162
|
-
path: z.object({ individualUuid: z.string() }),
|
|
3163
|
-
query: z.optional(z.never())
|
|
3164
|
-
}), zUpsertIndividualBillingInformationV1Response = z.void();
|
|
3165
|
-
z.object({
|
|
3166
|
-
body: zImportCbeCodesCommand,
|
|
3167
|
-
path: z.optional(z.never()),
|
|
3168
|
-
query: z.optional(z.never())
|
|
3169
|
-
}), z.object({
|
|
3170
|
-
body: z.optional(z.never()),
|
|
3171
|
-
path: z.optional(z.never()),
|
|
3172
|
-
query: z.object({
|
|
3173
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
3174
|
-
search: z.string()
|
|
3175
|
-
})
|
|
3176
|
-
}), z.object({
|
|
3177
|
-
body: zImportCbeEnterprisesCommand,
|
|
3178
|
-
path: z.optional(z.never()),
|
|
3179
|
-
query: z.optional(z.never())
|
|
3180
|
-
}), z.object({
|
|
3181
|
-
body: zImportCbeDenominationCommand,
|
|
3182
|
-
path: z.optional(z.never()),
|
|
3183
|
-
query: z.optional(z.never())
|
|
3184
|
-
}), z.object({
|
|
3185
|
-
body: zImportCbeContactCommand,
|
|
3186
|
-
path: z.optional(z.never()),
|
|
3187
|
-
query: z.optional(z.never())
|
|
3188
|
-
}), z.object({
|
|
3189
|
-
body: zImportCbeAddressCommand,
|
|
3190
|
-
path: z.optional(z.never()),
|
|
3191
|
-
query: z.optional(z.never())
|
|
3192
|
-
}), z.object({
|
|
3193
|
-
body: z.optional(z.never()),
|
|
3194
|
-
path: z.optional(z.never()),
|
|
3195
|
-
query: z.object({
|
|
3196
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
3197
|
-
filter: z.optional(zSearchCbeEstablishmentsFilterQuery),
|
|
3198
|
-
search: z.string()
|
|
3199
|
-
})
|
|
3200
|
-
}), z.object({
|
|
3201
|
-
body: zImportCbeEstablishmentsCommand,
|
|
3202
|
-
path: z.optional(z.never()),
|
|
3203
|
-
query: z.optional(z.never())
|
|
3204
|
-
}), z.object({
|
|
3205
|
-
body: zCreateBoardCommand,
|
|
3206
|
-
path: z.object({ uuid: z.string() }),
|
|
3207
|
-
query: z.optional(z.never())
|
|
3208
|
-
});
|
|
3209
|
-
const zListBoardColumnsV1Data = z.object({
|
|
3210
|
-
body: z.optional(z.never()),
|
|
3211
|
-
path: z.optional(z.never()),
|
|
3212
|
-
query: z.optional(z.never())
|
|
3213
|
-
}), zListBoardColumnsV1Response = zListBoardColumnsResponse, zListBoardColumnTransitionsV1Data = z.object({
|
|
3214
|
-
body: z.optional(z.never()),
|
|
3215
|
-
path: z.object({ boardColumnUuid: z.string() }),
|
|
3216
|
-
query: z.optional(z.object({ triggerTypes: z.optional(z.array(zBoardColumnTransitionTriggerType)) }))
|
|
3217
|
-
}), zListBoardColumnTransitionsV1Response = zListBoardColumnTransitionsResponse, zViewDealIndexV1Data = z.object({
|
|
3218
|
-
body: z.optional(z.never()),
|
|
3219
|
-
path: z.optional(z.never()),
|
|
3220
|
-
query: z.optional(z.object({
|
|
3221
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
3222
|
-
filter: z.optional(zViewDealIndexFilterQuery)
|
|
3223
|
-
}))
|
|
3224
|
-
}), zViewDealIndexV1Response = zViewDealIndexResponse, zCreateDealV1Data = z.object({
|
|
3225
|
-
body: zCreateDealCommand,
|
|
3226
|
-
path: z.optional(z.never()),
|
|
3227
|
-
query: z.optional(z.never())
|
|
3228
|
-
}), zCreateDealV1Response = zCreateDealResponse, zViewDealDetailV1Data = z.object({
|
|
3229
|
-
body: z.optional(z.never()),
|
|
3230
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3231
|
-
query: z.optional(z.never())
|
|
3232
|
-
}), zViewDealDetailV1Response = zViewDealDetailResponse, zUpdateDealV1Data = z.object({
|
|
3233
|
-
body: zUpdateDealCommand,
|
|
3234
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3235
|
-
query: z.optional(z.never())
|
|
3236
|
-
}), zUpdateDealV1Response = z.void();
|
|
3237
|
-
z.object({
|
|
3238
|
-
body: zUpdateDealOwnerCommand,
|
|
3239
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3240
|
-
query: z.optional(z.never())
|
|
3241
|
-
}), z.void();
|
|
3242
|
-
const zTransitionDealColumnV1Data = z.object({
|
|
3243
|
-
body: zTransitionDealColumnCommand,
|
|
3244
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3245
|
-
query: z.optional(z.never())
|
|
3246
|
-
}), zTransitionDealColumnV1Response = z.void(), zLinkContactPersonToDealV1Data = z.object({
|
|
3247
|
-
body: zLinkContactPersonToDealCommand,
|
|
3248
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3249
|
-
query: z.optional(z.never())
|
|
3250
|
-
}), zLinkContactPersonToDealV1Response = zLinkContactPersonToDealResponse, zMakeDealContactPersonPrimaryV1Data = z.object({
|
|
3251
|
-
body: z.optional(z.never()),
|
|
3252
|
-
path: z.object({
|
|
3253
|
-
dealUuid: z.string(),
|
|
3254
|
-
contactPersonUuid: z.string()
|
|
3255
|
-
}),
|
|
3256
|
-
query: z.optional(z.never())
|
|
3257
|
-
}), zMakeDealContactPersonPrimaryV1Response = z.void(), zUnlinkContactPersonFromDealV1Data = z.object({
|
|
3258
|
-
body: zUnlinkContactPersonFromDealCommand,
|
|
3259
|
-
path: z.object({ dealUuid: z.string() }),
|
|
3260
|
-
query: z.optional(z.never())
|
|
3261
|
-
}), zUnlinkContactPersonFromDealV1Response = z.void(), zViewDealContactPersonDetailV1Data = z.object({
|
|
3262
|
-
body: z.optional(z.never()),
|
|
3263
|
-
path: z.object({
|
|
3264
|
-
dealUuid: z.string(),
|
|
3265
|
-
contactPersonUuid: z.string()
|
|
3266
|
-
}),
|
|
3267
|
-
query: z.optional(z.never())
|
|
3268
|
-
}), zViewDealContactPersonDetailV1Response = zViewDealContactPersonDetailResponse, zUpdateDealContactPersonV1Data = z.object({
|
|
3269
|
-
body: zUpdateDealContactPersonCommand,
|
|
3270
|
-
path: z.object({
|
|
3271
|
-
dealUuid: z.string(),
|
|
3272
|
-
contactPersonUuid: z.string()
|
|
3273
|
-
}),
|
|
3274
|
-
query: z.optional(z.never())
|
|
3275
|
-
}), zUpdateDealContactPersonV1Response = z.void();
|
|
3276
|
-
z.object({
|
|
3277
|
-
body: zVerifyIndividualUserEmailCommand,
|
|
3278
|
-
path: z.optional(z.never()),
|
|
3279
|
-
query: z.optional(z.never())
|
|
3280
|
-
}), z.void();
|
|
3281
|
-
const zCreateUserIndividualGrantV1Data = z.object({
|
|
3282
|
-
body: zCreateUserIndividualGrantCommand,
|
|
3283
|
-
path: z.object({ individualUuid: z.string() }),
|
|
3284
|
-
query: z.optional(z.never())
|
|
3285
|
-
});
|
|
3286
|
-
z.object({
|
|
3287
|
-
body: z.optional(z.never()),
|
|
3288
|
-
path: z.optional(z.never()),
|
|
3289
|
-
query: z.optional(z.never())
|
|
3290
|
-
}), z.object({
|
|
3291
|
-
body: zUpdateIndividualCommand,
|
|
3292
|
-
path: z.optional(z.never()),
|
|
3293
|
-
query: z.optional(z.never())
|
|
3294
|
-
}), z.void();
|
|
3295
|
-
const zViewMailTemplateIndexV1Data = z.object({
|
|
3296
|
-
body: z.optional(z.never()),
|
|
3297
|
-
path: z.optional(z.never()),
|
|
3298
|
-
query: z.optional(z.object({ pagination: z.optional(zPaginatedOffsetQuery) }))
|
|
3299
|
-
}), zViewMailTemplateIndexV1Response = zViewMailTemplateIndexResponse;
|
|
3300
|
-
z.object({
|
|
3301
|
-
body: zCreateMailTemplateCommand,
|
|
3302
|
-
path: z.optional(z.never()),
|
|
3303
|
-
query: z.optional(z.never())
|
|
3304
|
-
});
|
|
3305
|
-
const zViewMailTemplateDetailV1Data = z.object({
|
|
3306
|
-
body: z.optional(z.never()),
|
|
3307
|
-
path: z.object({ mailTemplateUuid: z.string() }),
|
|
3308
|
-
query: z.optional(z.never())
|
|
3309
|
-
}), zViewMailTemplateDetailV1Response = zViewMailTemplateDetailResponse, zUpdateMailTemplateV1Data = z.object({
|
|
3310
|
-
body: zUpdateMailTemplateCommand,
|
|
3311
|
-
path: z.object({ mailTemplateUuid: z.string() }),
|
|
3312
|
-
query: z.optional(z.never())
|
|
3313
|
-
}), zUpdateMailTemplateV1Response = z.void(), zViewMailTemplateDetailByKeyV1Data = z.object({
|
|
3314
|
-
body: z.optional(z.never()),
|
|
3315
|
-
path: z.object({ mailTemplateKey: z.string() }),
|
|
3316
|
-
query: z.optional(z.never())
|
|
3317
|
-
}), zViewMailTemplateDetailByKeyV1Response = zViewMailTemplateDetailResponse, zViewMailIndexV1Data = z.object({
|
|
3318
|
-
body: z.optional(z.never()),
|
|
3319
|
-
path: z.optional(z.never()),
|
|
3320
|
-
query: z.optional(z.object({
|
|
3321
|
-
pagination: z.optional(zPaginatedOffsetQuery),
|
|
3322
|
-
filter: z.optional(zViewMailIndexFilterQuery)
|
|
3323
|
-
}))
|
|
3324
|
-
}), zViewMailIndexV1Response = zViewMailIndexResponse, zCreateMailV1Data = z.object({
|
|
3325
|
-
body: zCreateMailCommand,
|
|
3326
|
-
path: z.optional(z.never()),
|
|
3327
|
-
query: z.optional(z.never())
|
|
3328
|
-
}), zCreateMailV1Response = zCreateMailResponse;
|
|
3329
|
-
z.object({
|
|
3330
|
-
body: z.optional(z.never()),
|
|
3331
|
-
path: z.optional(z.never()),
|
|
3332
|
-
query: z.optional(z.object({
|
|
3333
|
-
filter: z.optional(zViewActivityLogIndexFilterQuery),
|
|
3334
|
-
pagination: z.optional(zViewActivityLogIndexPaginationQuery)
|
|
3335
|
-
}))
|
|
3336
|
-
});
|
|
3337
|
-
const jsonBodySerializer = { bodySerializer: (u) => JSON.stringify(u, (u, R) => typeof R == "bigint" ? R.toString() : R) };
|
|
3338
|
-
Object.entries({
|
|
3339
|
-
$body_: "body",
|
|
3340
|
-
$headers_: "headers",
|
|
3341
|
-
$path_: "path",
|
|
3342
|
-
$query_: "query"
|
|
3343
|
-
});
|
|
3344
|
-
const createSseClient = ({ onRequest: u, onSseError: R, onSseEvent: B, responseTransformer: V, responseValidator: H, sseDefaultRetryDelay: U, sseMaxRetryAttempts: W, sseMaxRetryDelay: G, sseSleepFn: K, url: q, ...J }) => {
|
|
3345
|
-
let Y, X = K ?? ((u) => new Promise((R) => setTimeout(R, u)));
|
|
3346
|
-
return { stream: async function* () {
|
|
3347
|
-
let K = U ?? 3e3, Z = 0, Q = J.signal ?? new AbortController().signal;
|
|
3348
|
-
for (; !Q.aborted;) {
|
|
3349
|
-
Z++;
|
|
3350
|
-
let U = J.headers instanceof Headers ? J.headers : new Headers(J.headers);
|
|
3351
|
-
Y !== void 0 && U.set("Last-Event-ID", Y);
|
|
3352
|
-
try {
|
|
3353
|
-
let R = {
|
|
3354
|
-
redirect: "follow",
|
|
3355
|
-
...J,
|
|
3356
|
-
body: J.serializedBody,
|
|
3357
|
-
headers: U,
|
|
3358
|
-
signal: Q
|
|
3359
|
-
}, W = new Request(q, R);
|
|
3360
|
-
u && (W = await u(q, R));
|
|
3361
|
-
let G = await (J.fetch ?? globalThis.fetch)(W);
|
|
3362
|
-
if (!G.ok) throw Error(`SSE failed: ${G.status} ${G.statusText}`);
|
|
3363
|
-
if (!G.body) throw Error("No body in SSE response");
|
|
3364
|
-
let X = G.body.pipeThrough(new TextDecoderStream()).getReader(), Z = "", $ = () => {
|
|
3365
|
-
try {
|
|
3366
|
-
X.cancel();
|
|
3367
|
-
} catch {}
|
|
3368
|
-
};
|
|
3369
|
-
Q.addEventListener("abort", $);
|
|
3370
|
-
try {
|
|
3371
|
-
for (;;) {
|
|
3372
|
-
let { done: u, value: R } = await X.read();
|
|
3373
|
-
if (u) break;
|
|
3374
|
-
Z += R;
|
|
3375
|
-
let U = Z.split("\n\n");
|
|
3376
|
-
Z = U.pop() ?? "";
|
|
3377
|
-
for (let u of U) {
|
|
3378
|
-
let R = u.split("\n"), U = [], W;
|
|
3379
|
-
for (let u of R) if (u.startsWith("data:")) U.push(u.replace(/^data:\s*/, ""));
|
|
3380
|
-
else if (u.startsWith("event:")) W = u.replace(/^event:\s*/, "");
|
|
3381
|
-
else if (u.startsWith("id:")) Y = u.replace(/^id:\s*/, "");
|
|
3382
|
-
else if (u.startsWith("retry:")) {
|
|
3383
|
-
let R = Number.parseInt(u.replace(/^retry:\s*/, ""), 10);
|
|
3384
|
-
Number.isNaN(R) || (K = R);
|
|
3385
|
-
}
|
|
3386
|
-
let G, q = !1;
|
|
3387
|
-
if (U.length) {
|
|
3388
|
-
let u = U.join("\n");
|
|
3389
|
-
try {
|
|
3390
|
-
G = JSON.parse(u), q = !0;
|
|
3391
|
-
} catch {
|
|
3392
|
-
G = u;
|
|
3393
|
-
}
|
|
3394
|
-
}
|
|
3395
|
-
q && (H && await H(G), V && (G = await V(G))), B?.({
|
|
3396
|
-
data: G,
|
|
3397
|
-
event: W,
|
|
3398
|
-
id: Y,
|
|
3399
|
-
retry: K
|
|
3400
|
-
}), U.length && (yield G);
|
|
3401
|
-
}
|
|
3402
|
-
}
|
|
3403
|
-
} finally {
|
|
3404
|
-
Q.removeEventListener("abort", $), X.releaseLock();
|
|
3405
|
-
}
|
|
3406
|
-
break;
|
|
3407
|
-
} catch (u) {
|
|
3408
|
-
if (R?.(u), W !== void 0 && Z >= W) break;
|
|
3409
|
-
await X(Math.min(K * 2 ** (Z - 1), G ?? 3e4));
|
|
3410
|
-
}
|
|
3411
|
-
}
|
|
3412
|
-
}() };
|
|
3413
|
-
}, getAuthToken = async (u, R) => {
|
|
3414
|
-
let B = typeof R == "function" ? await R(u) : R;
|
|
3415
|
-
if (B) return u.scheme === "bearer" ? `Bearer ${B}` : u.scheme === "basic" ? `Basic ${btoa(B)}` : B;
|
|
3416
|
-
}, separatorArrayExplode = (u) => {
|
|
3417
|
-
switch (u) {
|
|
3418
|
-
case "label": return ".";
|
|
3419
|
-
case "matrix": return ";";
|
|
3420
|
-
case "simple": return ",";
|
|
3421
|
-
default: return "&";
|
|
3422
|
-
}
|
|
3423
|
-
}, separatorArrayNoExplode = (u) => {
|
|
3424
|
-
switch (u) {
|
|
3425
|
-
case "form": return ",";
|
|
3426
|
-
case "pipeDelimited": return "|";
|
|
3427
|
-
case "spaceDelimited": return "%20";
|
|
3428
|
-
default: return ",";
|
|
3429
|
-
}
|
|
3430
|
-
}, separatorObjectExplode = (u) => {
|
|
3431
|
-
switch (u) {
|
|
3432
|
-
case "label": return ".";
|
|
3433
|
-
case "matrix": return ";";
|
|
3434
|
-
case "simple": return ",";
|
|
3435
|
-
default: return "&";
|
|
3436
|
-
}
|
|
3437
|
-
}, serializeArrayParam = ({ allowReserved: u, explode: R, name: B, style: V, value: H }) => {
|
|
3438
|
-
if (!R) {
|
|
3439
|
-
let R = (u ? H : H.map((u) => encodeURIComponent(u))).join(separatorArrayNoExplode(V));
|
|
3440
|
-
switch (V) {
|
|
3441
|
-
case "label": return `.${R}`;
|
|
3442
|
-
case "matrix": return `;${B}=${R}`;
|
|
3443
|
-
case "simple": return R;
|
|
3444
|
-
default: return `${B}=${R}`;
|
|
3445
|
-
}
|
|
3446
|
-
}
|
|
3447
|
-
let U = separatorArrayExplode(V), W = H.map((R) => V === "label" || V === "simple" ? u ? R : encodeURIComponent(R) : serializePrimitiveParam({
|
|
3448
|
-
allowReserved: u,
|
|
3449
|
-
name: B,
|
|
3450
|
-
value: R
|
|
3451
|
-
})).join(U);
|
|
3452
|
-
return V === "label" || V === "matrix" ? U + W : W;
|
|
3453
|
-
}, serializePrimitiveParam = ({ allowReserved: u, name: R, value: B }) => {
|
|
3454
|
-
if (B == null) return "";
|
|
3455
|
-
if (typeof B == "object") throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");
|
|
3456
|
-
return `${R}=${u ? B : encodeURIComponent(B)}`;
|
|
3457
|
-
}, serializeObjectParam = ({ allowReserved: u, explode: R, name: B, style: V, value: H, valueOnly: U }) => {
|
|
3458
|
-
if (H instanceof Date) return U ? H.toISOString() : `${B}=${H.toISOString()}`;
|
|
3459
|
-
if (V !== "deepObject" && !R) {
|
|
3460
|
-
let R = [];
|
|
3461
|
-
Object.entries(H).forEach(([B, V]) => {
|
|
3462
|
-
R = [
|
|
3463
|
-
...R,
|
|
3464
|
-
B,
|
|
3465
|
-
u ? V : encodeURIComponent(V)
|
|
3466
|
-
];
|
|
3467
|
-
});
|
|
3468
|
-
let U = R.join(",");
|
|
3469
|
-
switch (V) {
|
|
3470
|
-
case "form": return `${B}=${U}`;
|
|
3471
|
-
case "label": return `.${U}`;
|
|
3472
|
-
case "matrix": return `;${B}=${U}`;
|
|
3473
|
-
default: return U;
|
|
3474
|
-
}
|
|
3475
|
-
}
|
|
3476
|
-
let W = separatorObjectExplode(V), G = Object.entries(H).map(([R, H]) => serializePrimitiveParam({
|
|
3477
|
-
allowReserved: u,
|
|
3478
|
-
name: V === "deepObject" ? `${B}[${R}]` : R,
|
|
3479
|
-
value: H
|
|
3480
|
-
})).join(W);
|
|
3481
|
-
return V === "label" || V === "matrix" ? W + G : G;
|
|
3482
|
-
}, PATH_PARAM_RE = /\{[^{}]+\}/g, defaultPathSerializer = ({ path: u, url: R }) => {
|
|
3483
|
-
let B = R, V = R.match(PATH_PARAM_RE);
|
|
3484
|
-
if (V) for (let R of V) {
|
|
3485
|
-
let V = !1, H = R.substring(1, R.length - 1), U = "simple";
|
|
3486
|
-
H.endsWith("*") && (V = !0, H = H.substring(0, H.length - 1)), H.startsWith(".") ? (H = H.substring(1), U = "label") : H.startsWith(";") && (H = H.substring(1), U = "matrix");
|
|
3487
|
-
let W = u[H];
|
|
3488
|
-
if (W == null) continue;
|
|
3489
|
-
if (Array.isArray(W)) {
|
|
3490
|
-
B = B.replace(R, serializeArrayParam({
|
|
3491
|
-
explode: V,
|
|
3492
|
-
name: H,
|
|
3493
|
-
style: U,
|
|
3494
|
-
value: W
|
|
3495
|
-
}));
|
|
3496
|
-
continue;
|
|
3497
|
-
}
|
|
3498
|
-
if (typeof W == "object") {
|
|
3499
|
-
B = B.replace(R, serializeObjectParam({
|
|
3500
|
-
explode: V,
|
|
3501
|
-
name: H,
|
|
3502
|
-
style: U,
|
|
3503
|
-
value: W,
|
|
3504
|
-
valueOnly: !0
|
|
3505
|
-
}));
|
|
3506
|
-
continue;
|
|
3507
|
-
}
|
|
3508
|
-
if (U === "matrix") {
|
|
3509
|
-
B = B.replace(R, `;${serializePrimitiveParam({
|
|
3510
|
-
name: H,
|
|
3511
|
-
value: W
|
|
3512
|
-
})}`);
|
|
3513
|
-
continue;
|
|
3514
|
-
}
|
|
3515
|
-
let G = encodeURIComponent(U === "label" ? `.${W}` : W);
|
|
3516
|
-
B = B.replace(R, G);
|
|
3517
|
-
}
|
|
3518
|
-
return B;
|
|
3519
|
-
}, getUrl = ({ baseUrl: u, path: R, query: B, querySerializer: V, url: H }) => {
|
|
3520
|
-
let U = H.startsWith("/") ? H : `/${H}`, W = (u ?? "") + U;
|
|
3521
|
-
R && (W = defaultPathSerializer({
|
|
3522
|
-
path: R,
|
|
3523
|
-
url: W
|
|
3524
|
-
}));
|
|
3525
|
-
let G = B ? V(B) : "";
|
|
3526
|
-
return G.startsWith("?") && (G = G.substring(1)), G && (W += `?${G}`), W;
|
|
3527
|
-
}, createQuerySerializer = ({ allowReserved: u, array: R, object: B } = {}) => (V) => {
|
|
3528
|
-
let H = [];
|
|
3529
|
-
if (V && typeof V == "object") for (let U in V) {
|
|
3530
|
-
let W = V[U];
|
|
3531
|
-
if (W != null) if (Array.isArray(W)) {
|
|
3532
|
-
let B = serializeArrayParam({
|
|
3533
|
-
allowReserved: u,
|
|
3534
|
-
explode: !0,
|
|
3535
|
-
name: U,
|
|
3536
|
-
style: "form",
|
|
3537
|
-
value: W,
|
|
3538
|
-
...R
|
|
3539
|
-
});
|
|
3540
|
-
B && H.push(B);
|
|
3541
|
-
} else if (typeof W == "object") {
|
|
3542
|
-
let R = serializeObjectParam({
|
|
3543
|
-
allowReserved: u,
|
|
3544
|
-
explode: !0,
|
|
3545
|
-
name: U,
|
|
3546
|
-
style: "deepObject",
|
|
3547
|
-
value: W,
|
|
3548
|
-
...B
|
|
3549
|
-
});
|
|
3550
|
-
R && H.push(R);
|
|
3551
|
-
} else {
|
|
3552
|
-
let R = serializePrimitiveParam({
|
|
3553
|
-
allowReserved: u,
|
|
3554
|
-
name: U,
|
|
3555
|
-
value: W
|
|
3556
|
-
});
|
|
3557
|
-
R && H.push(R);
|
|
3558
|
-
}
|
|
3559
|
-
}
|
|
3560
|
-
return H.join("&");
|
|
3561
|
-
}, getParseAs = (u) => {
|
|
3562
|
-
if (!u) return "stream";
|
|
3563
|
-
let R = u.split(";")[0]?.trim();
|
|
3564
|
-
if (R) {
|
|
3565
|
-
if (R.startsWith("application/json") || R.endsWith("+json")) return "json";
|
|
3566
|
-
if (R === "multipart/form-data") return "formData";
|
|
3567
|
-
if ([
|
|
3568
|
-
"application/",
|
|
3569
|
-
"audio/",
|
|
3570
|
-
"image/",
|
|
3571
|
-
"video/"
|
|
3572
|
-
].some((u) => R.startsWith(u))) return "blob";
|
|
3573
|
-
if (R.startsWith("text/")) return "text";
|
|
3574
|
-
}
|
|
3575
|
-
};
|
|
3576
|
-
var checkForExistence = (u, R) => R ? !!(u.headers.has(R) || u.query?.[R] || u.headers.get("Cookie")?.includes(`${R}=`)) : !1;
|
|
3577
|
-
const setAuthParams = async ({ security: u, ...R }) => {
|
|
3578
|
-
for (let B of u) {
|
|
3579
|
-
if (checkForExistence(R, B.name)) continue;
|
|
3580
|
-
let u = await getAuthToken(B, R.auth);
|
|
3581
|
-
if (!u) continue;
|
|
3582
|
-
let V = B.name ?? "Authorization";
|
|
3583
|
-
switch (B.in) {
|
|
3584
|
-
case "query":
|
|
3585
|
-
R.query ||= {}, R.query[V] = u;
|
|
3586
|
-
break;
|
|
3587
|
-
case "cookie":
|
|
3588
|
-
R.headers.append("Cookie", `${V}=${u}`);
|
|
3589
|
-
break;
|
|
3590
|
-
case "header":
|
|
3591
|
-
default:
|
|
3592
|
-
R.headers.set(V, u);
|
|
3593
|
-
break;
|
|
3594
|
-
}
|
|
3595
|
-
}
|
|
3596
|
-
}, buildUrl = (u) => getUrl({
|
|
3597
|
-
baseUrl: u.baseUrl,
|
|
3598
|
-
path: u.path,
|
|
3599
|
-
query: u.query,
|
|
3600
|
-
querySerializer: typeof u.querySerializer == "function" ? u.querySerializer : createQuerySerializer(u.querySerializer),
|
|
3601
|
-
url: u.url
|
|
3602
|
-
}), mergeConfigs = (u, R) => {
|
|
3603
|
-
let B = {
|
|
3604
|
-
...u,
|
|
3605
|
-
...R
|
|
3606
|
-
};
|
|
3607
|
-
return B.baseUrl?.endsWith("/") && (B.baseUrl = B.baseUrl.substring(0, B.baseUrl.length - 1)), B.headers = mergeHeaders(u.headers, R.headers), B;
|
|
3608
|
-
}, mergeHeaders = (...u) => {
|
|
3609
|
-
let R = new Headers();
|
|
3610
|
-
for (let B of u) {
|
|
3611
|
-
if (!B || typeof B != "object") continue;
|
|
3612
|
-
let u = B instanceof Headers ? B.entries() : Object.entries(B);
|
|
3613
|
-
for (let [B, V] of u) if (V === null) R.delete(B);
|
|
3614
|
-
else if (Array.isArray(V)) for (let u of V) R.append(B, u);
|
|
3615
|
-
else V !== void 0 && R.set(B, typeof V == "object" ? JSON.stringify(V) : V);
|
|
3616
|
-
}
|
|
3617
|
-
return R;
|
|
3618
|
-
};
|
|
3619
|
-
var Interceptors = class {
|
|
3620
|
-
_fns;
|
|
3621
|
-
constructor() {
|
|
3622
|
-
this._fns = [];
|
|
3623
|
-
}
|
|
3624
|
-
clear() {
|
|
3625
|
-
this._fns = [];
|
|
3626
|
-
}
|
|
3627
|
-
getInterceptorIndex(u) {
|
|
3628
|
-
return typeof u == "number" ? this._fns[u] ? u : -1 : this._fns.indexOf(u);
|
|
3629
|
-
}
|
|
3630
|
-
exists(u) {
|
|
3631
|
-
let R = this.getInterceptorIndex(u);
|
|
3632
|
-
return !!this._fns[R];
|
|
3633
|
-
}
|
|
3634
|
-
eject(u) {
|
|
3635
|
-
let R = this.getInterceptorIndex(u);
|
|
3636
|
-
this._fns[R] && (this._fns[R] = null);
|
|
3637
|
-
}
|
|
3638
|
-
update(u, R) {
|
|
3639
|
-
let B = this.getInterceptorIndex(u);
|
|
3640
|
-
return this._fns[B] ? (this._fns[B] = R, u) : !1;
|
|
3641
|
-
}
|
|
3642
|
-
use(u) {
|
|
3643
|
-
return this._fns = [...this._fns, u], this._fns.length - 1;
|
|
3644
|
-
}
|
|
3645
|
-
};
|
|
3646
|
-
const createInterceptors = () => ({
|
|
3647
|
-
error: new Interceptors(),
|
|
3648
|
-
request: new Interceptors(),
|
|
3649
|
-
response: new Interceptors()
|
|
3650
|
-
});
|
|
3651
|
-
var defaultQuerySerializer = createQuerySerializer({
|
|
3652
|
-
allowReserved: !1,
|
|
3653
|
-
array: {
|
|
3654
|
-
explode: !0,
|
|
3655
|
-
style: "form"
|
|
3656
|
-
},
|
|
3657
|
-
object: {
|
|
3658
|
-
explode: !0,
|
|
3659
|
-
style: "deepObject"
|
|
3660
|
-
}
|
|
3661
|
-
}), defaultHeaders = { "Content-Type": "application/json" };
|
|
3662
|
-
const createConfig = (u = {}) => ({
|
|
3663
|
-
...jsonBodySerializer,
|
|
3664
|
-
headers: defaultHeaders,
|
|
3665
|
-
parseAs: "auto",
|
|
3666
|
-
querySerializer: defaultQuerySerializer,
|
|
3667
|
-
...u
|
|
3668
|
-
}), client = ((u = {}) => {
|
|
3669
|
-
let R = mergeConfigs(createConfig(), u), B = () => ({ ...R }), V = (u) => (R = mergeConfigs(R, u), B()), H = createInterceptors(), U = async (u) => {
|
|
3670
|
-
let B = {
|
|
3671
|
-
...R,
|
|
3672
|
-
...u,
|
|
3673
|
-
fetch: u.fetch ?? R.fetch ?? globalThis.fetch,
|
|
3674
|
-
headers: mergeHeaders(R.headers, u.headers),
|
|
3675
|
-
serializedBody: void 0
|
|
3676
|
-
};
|
|
3677
|
-
return B.security && await setAuthParams({
|
|
3678
|
-
...B,
|
|
3679
|
-
security: B.security
|
|
3680
|
-
}), B.requestValidator && await B.requestValidator(B), B.body && B.bodySerializer && (B.serializedBody = B.bodySerializer(B.body)), (B.serializedBody === void 0 || B.serializedBody === "") && B.headers.delete("Content-Type"), {
|
|
3681
|
-
opts: B,
|
|
3682
|
-
url: buildUrl(B)
|
|
3683
|
-
};
|
|
3684
|
-
}, W = async (u) => {
|
|
3685
|
-
let { opts: R, url: B } = await U(u), V = {
|
|
3686
|
-
redirect: "follow",
|
|
3687
|
-
...R,
|
|
3688
|
-
body: R.serializedBody
|
|
3689
|
-
}, W = new Request(B, V);
|
|
3690
|
-
for (let u of H.request._fns) u && (W = await u(W, R));
|
|
3691
|
-
let G = R.fetch, K = await G(W);
|
|
3692
|
-
for (let u of H.response._fns) u && (K = await u(K, W, R));
|
|
3693
|
-
let q = {
|
|
3694
|
-
request: W,
|
|
3695
|
-
response: K
|
|
3696
|
-
};
|
|
3697
|
-
if (K.ok) {
|
|
3698
|
-
let u = (R.parseAs === "auto" ? getParseAs(K.headers.get("Content-Type")) : R.parseAs) ?? "json";
|
|
3699
|
-
if (K.status === 204 || K.headers.get("Content-Length") === "0") {
|
|
3700
|
-
let B;
|
|
3701
|
-
switch (u) {
|
|
3702
|
-
case "arrayBuffer":
|
|
3703
|
-
case "blob":
|
|
3704
|
-
case "text":
|
|
3705
|
-
B = await K[u]();
|
|
3706
|
-
break;
|
|
3707
|
-
case "formData":
|
|
3708
|
-
B = new FormData();
|
|
3709
|
-
break;
|
|
3710
|
-
case "stream":
|
|
3711
|
-
B = K.body;
|
|
3712
|
-
break;
|
|
3713
|
-
case "json":
|
|
3714
|
-
default:
|
|
3715
|
-
B = {};
|
|
3716
|
-
break;
|
|
3717
|
-
}
|
|
3718
|
-
return R.responseStyle === "data" ? B : {
|
|
3719
|
-
data: B,
|
|
3720
|
-
...q
|
|
3721
|
-
};
|
|
3722
|
-
}
|
|
3723
|
-
let B;
|
|
3724
|
-
switch (u) {
|
|
3725
|
-
case "arrayBuffer":
|
|
3726
|
-
case "blob":
|
|
3727
|
-
case "formData":
|
|
3728
|
-
case "json":
|
|
3729
|
-
case "text":
|
|
3730
|
-
B = await K[u]();
|
|
3731
|
-
break;
|
|
3732
|
-
case "stream": return R.responseStyle === "data" ? K.body : {
|
|
3733
|
-
data: K.body,
|
|
3734
|
-
...q
|
|
3735
|
-
};
|
|
3736
|
-
}
|
|
3737
|
-
return u === "json" && (R.responseValidator && await R.responseValidator(B), R.responseTransformer && (B = await R.responseTransformer(B))), R.responseStyle === "data" ? B : {
|
|
3738
|
-
data: B,
|
|
3739
|
-
...q
|
|
3740
|
-
};
|
|
3741
|
-
}
|
|
3742
|
-
let J = await K.text(), Y;
|
|
3743
|
-
try {
|
|
3744
|
-
Y = JSON.parse(J);
|
|
3745
|
-
} catch {}
|
|
3746
|
-
let X = Y ?? J, Z = X;
|
|
3747
|
-
for (let u of H.error._fns) u && (Z = await u(X, K, W, R));
|
|
3748
|
-
if (Z ||= {}, R.throwOnError) throw Z;
|
|
3749
|
-
return R.responseStyle === "data" ? void 0 : {
|
|
3750
|
-
error: Z,
|
|
3751
|
-
...q
|
|
3752
|
-
};
|
|
3753
|
-
}, G = (u) => (R) => W({
|
|
3754
|
-
...R,
|
|
3755
|
-
method: u
|
|
3756
|
-
}), K = (u) => async (R) => {
|
|
3757
|
-
let { opts: B, url: V } = await U(R);
|
|
3758
|
-
return createSseClient({
|
|
3759
|
-
...B,
|
|
3760
|
-
body: B.body,
|
|
3761
|
-
headers: B.headers,
|
|
3762
|
-
method: u,
|
|
3763
|
-
onRequest: async (u, R) => {
|
|
3764
|
-
let V = new Request(u, R);
|
|
3765
|
-
for (let u of H.request._fns) u && (V = await u(V, B));
|
|
3766
|
-
return V;
|
|
3767
|
-
},
|
|
3768
|
-
url: V
|
|
3769
|
-
});
|
|
3770
|
-
};
|
|
3771
|
-
return {
|
|
3772
|
-
buildUrl,
|
|
3773
|
-
connect: G("CONNECT"),
|
|
3774
|
-
delete: G("DELETE"),
|
|
3775
|
-
get: G("GET"),
|
|
3776
|
-
getConfig: B,
|
|
3777
|
-
head: G("HEAD"),
|
|
3778
|
-
interceptors: H,
|
|
3779
|
-
options: G("OPTIONS"),
|
|
3780
|
-
patch: G("PATCH"),
|
|
3781
|
-
post: G("POST"),
|
|
3782
|
-
put: G("PUT"),
|
|
3783
|
-
request: W,
|
|
3784
|
-
setConfig: V,
|
|
3785
|
-
sse: {
|
|
3786
|
-
connect: K("CONNECT"),
|
|
3787
|
-
delete: K("DELETE"),
|
|
3788
|
-
get: K("GET"),
|
|
3789
|
-
head: K("HEAD"),
|
|
3790
|
-
options: K("OPTIONS"),
|
|
3791
|
-
patch: K("PATCH"),
|
|
3792
|
-
post: K("POST"),
|
|
3793
|
-
put: K("PUT"),
|
|
3794
|
-
trace: K("TRACE")
|
|
3795
|
-
},
|
|
3796
|
-
trace: G("TRACE")
|
|
3797
|
-
};
|
|
3798
|
-
})(createConfig({ throwOnError: !0 })), viewTenantConfigDetailV1 = (u) => (u?.client ?? client).get({
|
|
3799
|
-
requestValidator: async (u) => await zViewTenantConfigDetailV1Data.parseAsync(u),
|
|
3800
|
-
responseValidator: async (u) => await zViewTenantConfigDetailV1Response.parseAsync(u),
|
|
3801
|
-
url: "/api/v1/tenant-configs",
|
|
3802
|
-
...u
|
|
3803
|
-
}), viewRecentEntitiesV1 = (u) => (u?.client ?? client).get({
|
|
3804
|
-
requestValidator: async (u) => await zViewRecentEntitiesV1Data.parseAsync(u),
|
|
3805
|
-
responseValidator: async (u) => await zViewRecentEntitiesV1Response.parseAsync(u),
|
|
3806
|
-
url: "/api/v1/recent-entities",
|
|
3807
|
-
...u
|
|
3808
|
-
}), viewUserIndexV1 = (u) => (u?.client ?? client).get({
|
|
3809
|
-
requestValidator: async (u) => await zViewUserIndexV1Data.parseAsync(u),
|
|
3810
|
-
responseValidator: async (u) => await zViewUserIndexV1Response.parseAsync(u),
|
|
3811
|
-
url: "/api/v1/users",
|
|
3812
|
-
...u
|
|
3813
|
-
}), createFileV1 = (u) => (u.client ?? client).post({
|
|
3814
|
-
requestValidator: async (u) => await zCreateFileV1Data.parseAsync(u),
|
|
3815
|
-
responseValidator: async (u) => await zCreateFileV1Response.parseAsync(u),
|
|
3816
|
-
url: "/api/v1/files",
|
|
3817
|
-
...u,
|
|
3818
|
-
headers: {
|
|
3819
|
-
"Content-Type": "application/json",
|
|
3820
|
-
...u.headers
|
|
3821
|
-
}
|
|
3822
|
-
}), confirmFileUploadV2 = (u) => (u.client ?? client).post({
|
|
3823
|
-
requestValidator: async (u) => await zConfirmFileUploadV2Data.parseAsync(u),
|
|
3824
|
-
responseValidator: async (u) => await zConfirmFileUploadV2Response.parseAsync(u),
|
|
3825
|
-
url: "/api/v2/files/{file}/confirm-upload",
|
|
3826
|
-
...u,
|
|
3827
|
-
headers: {
|
|
3828
|
-
"Content-Type": "application/json",
|
|
3829
|
-
...u.headers
|
|
3830
|
-
}
|
|
3831
|
-
}), searchCollectionsV1 = (u) => (u.client ?? client).get({
|
|
3832
|
-
requestValidator: async (u) => await zSearchCollectionsV1Data.parseAsync(u),
|
|
3833
|
-
responseValidator: async (u) => await zSearchCollectionsV1Response.parseAsync(u),
|
|
3834
|
-
url: "/api/v1/search",
|
|
3835
|
-
...u
|
|
3836
|
-
}), viewIndividualIndexV1 = (u) => (u?.client ?? client).get({
|
|
3837
|
-
requestValidator: async (u) => await zViewIndividualIndexV1Data.parseAsync(u),
|
|
3838
|
-
responseValidator: async (u) => await zViewIndividualIndexV1Response.parseAsync(u),
|
|
3839
|
-
url: "/api/v1/individuals",
|
|
3840
|
-
...u
|
|
3841
|
-
}), createIndividualV1 = (u) => (u.client ?? client).post({
|
|
3842
|
-
requestValidator: async (u) => await zCreateIndividualV1Data.parseAsync(u),
|
|
3843
|
-
responseValidator: async (u) => await zCreateIndividualV1Response.parseAsync(u),
|
|
3844
|
-
url: "/api/v1/individuals",
|
|
3845
|
-
...u,
|
|
3846
|
-
headers: {
|
|
3847
|
-
"Content-Type": "application/json",
|
|
3848
|
-
...u.headers
|
|
3849
|
-
}
|
|
3850
|
-
}), viewIndividualDetailV1 = (u) => (u.client ?? client).get({
|
|
3851
|
-
requestValidator: async (u) => await zViewIndividualDetailV1Data.parseAsync(u),
|
|
3852
|
-
responseValidator: async (u) => await zViewIndividualDetailV1Response.parseAsync(u),
|
|
3853
|
-
url: "/api/v1/individuals/{individualUuid}",
|
|
3854
|
-
...u
|
|
3855
|
-
}), updateIndividualV1 = (u) => (u.client ?? client).patch({
|
|
3856
|
-
requestValidator: async (u) => await zUpdateIndividualV1Data.parseAsync(u),
|
|
3857
|
-
responseValidator: async (u) => await zUpdateIndividualV1Response.parseAsync(u),
|
|
3858
|
-
url: "/api/v1/individuals/{individualUuid}",
|
|
3859
|
-
...u,
|
|
3860
|
-
headers: {
|
|
3861
|
-
"Content-Type": "application/json",
|
|
3862
|
-
...u.headers
|
|
3863
|
-
}
|
|
3864
|
-
}), viewIndividualStatisticsV1 = (u) => (u?.client ?? client).get({
|
|
3865
|
-
requestValidator: async (u) => await zViewIndividualStatisticsV1Data.parseAsync(u),
|
|
3866
|
-
responseValidator: async (u) => await zViewIndividualStatisticsV1Response.parseAsync(u),
|
|
3867
|
-
url: "/api/v1/individuals/statistics",
|
|
3868
|
-
...u
|
|
3869
|
-
}), viewIndividualActivityLogIndexV1 = (u) => (u.client ?? client).get({
|
|
3870
|
-
requestValidator: async (u) => await zViewIndividualActivityLogIndexV1Data.parseAsync(u),
|
|
3871
|
-
responseValidator: async (u) => await zViewIndividualActivityLogIndexV1Response.parseAsync(u),
|
|
3872
|
-
url: "/api/v1/individual/{individualUuid}/activity-log",
|
|
3873
|
-
...u
|
|
3874
|
-
}), viewBusinessIndexV1 = (u) => (u?.client ?? client).get({
|
|
3875
|
-
requestValidator: async (u) => await zViewBusinessIndexV1Data.parseAsync(u),
|
|
3876
|
-
responseValidator: async (u) => await zViewBusinessIndexV1Response.parseAsync(u),
|
|
3877
|
-
url: "/api/v1/businesses",
|
|
3878
|
-
...u
|
|
3879
|
-
}), createBusinessV1 = (u) => (u.client ?? client).post({
|
|
3880
|
-
requestValidator: async (u) => await zCreateBusinessV1Data.parseAsync(u),
|
|
3881
|
-
responseValidator: async (u) => await zCreateBusinessV1Response.parseAsync(u),
|
|
3882
|
-
url: "/api/v1/businesses",
|
|
3883
|
-
...u,
|
|
3884
|
-
headers: {
|
|
3885
|
-
"Content-Type": "application/json",
|
|
3886
|
-
...u.headers
|
|
3887
|
-
}
|
|
3888
|
-
}), viewBusinessDetailV1 = (u) => (u.client ?? client).get({
|
|
3889
|
-
requestValidator: async (u) => await zViewBusinessDetailV1Data.parseAsync(u),
|
|
3890
|
-
responseValidator: async (u) => await zViewBusinessDetailV1Response.parseAsync(u),
|
|
3891
|
-
url: "/api/v1/businesses/{businessUuid}",
|
|
3892
|
-
...u
|
|
3893
|
-
}), updateBusinessV1 = (u) => (u.client ?? client).patch({
|
|
3894
|
-
requestValidator: async (u) => await zUpdateBusinessV1Data.parseAsync(u),
|
|
3895
|
-
responseValidator: async (u) => await zUpdateBusinessV1Response.parseAsync(u),
|
|
3896
|
-
url: "/api/v1/businesses/{businessUuid}",
|
|
3897
|
-
...u,
|
|
3898
|
-
headers: {
|
|
3899
|
-
"Content-Type": "application/json",
|
|
3900
|
-
...u.headers
|
|
3901
|
-
}
|
|
3902
|
-
}), viewBusinessStatisticsV1 = (u) => (u?.client ?? client).get({
|
|
3903
|
-
requestValidator: async (u) => await zViewBusinessStatisticsV1Data.parseAsync(u),
|
|
3904
|
-
responseValidator: async (u) => await zViewBusinessStatisticsV1Response.parseAsync(u),
|
|
3905
|
-
url: "/api/v1/businesses/statistics",
|
|
3906
|
-
...u
|
|
3907
|
-
}), viewBusinessBillingInformationDetailV1 = (u) => (u.client ?? client).get({
|
|
3908
|
-
requestValidator: async (u) => await zViewBusinessBillingInformationDetailV1Data.parseAsync(u),
|
|
3909
|
-
responseValidator: async (u) => await zViewBusinessBillingInformationDetailV1Response.parseAsync(u),
|
|
3910
|
-
url: "/api/v1/businesses/{businessUuid}/billing-information",
|
|
3911
|
-
...u
|
|
3912
|
-
}), upsertBusinessBillingInformationV1 = (u) => (u.client ?? client).post({
|
|
3913
|
-
requestValidator: async (u) => await zUpsertBusinessBillingInformationV1Data.parseAsync(u),
|
|
3914
|
-
responseValidator: async (u) => await zUpsertBusinessBillingInformationV1Response.parseAsync(u),
|
|
3915
|
-
url: "/api/v1/businesses/{businessUuid}/billing-information",
|
|
3916
|
-
...u,
|
|
3917
|
-
headers: {
|
|
3918
|
-
"Content-Type": "application/json",
|
|
3919
|
-
...u.headers
|
|
3920
|
-
}
|
|
3921
|
-
}), linkBusinessAsChildV1 = (u) => (u.client ?? client).patch({
|
|
3922
|
-
requestValidator: async (u) => await zLinkBusinessAsChildV1Data.parseAsync(u),
|
|
3923
|
-
responseValidator: async (u) => await zLinkBusinessAsChildV1Response.parseAsync(u),
|
|
3924
|
-
url: "/api/v1/businesses/{businessUuid}/link-as-child/{childUuid}",
|
|
3925
|
-
...u
|
|
3926
|
-
}), viewBusinessActivityLogIndexV1 = (u) => (u.client ?? client).get({
|
|
3927
|
-
requestValidator: async (u) => await zViewBusinessActivityLogIndexV1Data.parseAsync(u),
|
|
3928
|
-
responseValidator: async (u) => await zViewBusinessActivityLogIndexV1Response.parseAsync(u),
|
|
3929
|
-
url: "/api/v1/business/{businessUuid}/activity-log",
|
|
3930
|
-
...u
|
|
3931
|
-
}), createNoteV1 = (u) => (u.client ?? client).post({
|
|
3932
|
-
requestValidator: async (u) => await zCreateNoteV1Data.parseAsync(u),
|
|
3933
|
-
responseValidator: async (u) => await zCreateNoteV1Response.parseAsync(u),
|
|
3934
|
-
url: "/api/v1/notes",
|
|
3935
|
-
...u,
|
|
3936
|
-
headers: {
|
|
3937
|
-
"Content-Type": "application/json",
|
|
3938
|
-
...u.headers
|
|
3939
|
-
}
|
|
3940
|
-
}), deleteNoteV1 = (u) => (u.client ?? client).delete({
|
|
3941
|
-
requestValidator: async (u) => await zDeleteNoteV1Data.parseAsync(u),
|
|
3942
|
-
url: "/api/v1/notes/{uuid}",
|
|
3943
|
-
...u
|
|
3944
|
-
}), updateNoteV1 = (u) => (u.client ?? client).put({
|
|
3945
|
-
requestValidator: async (u) => await zUpdateNoteV1Data.parseAsync(u),
|
|
3946
|
-
url: "/api/v1/notes/{uuid}",
|
|
3947
|
-
...u,
|
|
3948
|
-
headers: {
|
|
3949
|
-
"Content-Type": "application/json",
|
|
3950
|
-
...u.headers
|
|
3951
|
-
}
|
|
3952
|
-
}), viewBusinessNotesIndexV1 = (u) => (u.client ?? client).get({
|
|
3953
|
-
requestValidator: async (u) => await zViewBusinessNotesIndexV1Data.parseAsync(u),
|
|
3954
|
-
responseValidator: async (u) => await zViewBusinessNotesIndexV1Response.parseAsync(u),
|
|
3955
|
-
url: "/api/v1/notes/{businessUuid}/business",
|
|
3956
|
-
...u
|
|
3957
|
-
}), viewIndividualNotesIndexV1 = (u) => (u.client ?? client).get({
|
|
3958
|
-
requestValidator: async (u) => await zViewIndividualNotesIndexV1Data.parseAsync(u),
|
|
3959
|
-
responseValidator: async (u) => await zViewIndividualNotesIndexV1Response.parseAsync(u),
|
|
3960
|
-
url: "/api/v1/notes/{individualUuid}/individual",
|
|
3961
|
-
...u
|
|
3962
|
-
}), viewDealNotesIndexV1 = (u) => (u.client ?? client).get({
|
|
3963
|
-
requestValidator: async (u) => await zViewDealNotesIndexV1Data.parseAsync(u),
|
|
3964
|
-
responseValidator: async (u) => await zViewDealNotesIndexV1Response.parseAsync(u),
|
|
3965
|
-
url: "/api/v1/notes/{dealUuid}/deal",
|
|
3966
|
-
...u
|
|
3967
|
-
}), linkContactPersonToIndividualV1 = (u) => (u.client ?? client).post({
|
|
3968
|
-
requestValidator: async (u) => await zLinkContactPersonToIndividualV1Data.parseAsync(u),
|
|
3969
|
-
responseValidator: async (u) => await zLinkContactPersonToIndividualV1Response.parseAsync(u),
|
|
3970
|
-
url: "/api/v1/individuals/{individualUuid}/contact-persons/link",
|
|
3971
|
-
...u,
|
|
3972
|
-
headers: {
|
|
3973
|
-
"Content-Type": "application/json",
|
|
3974
|
-
...u.headers
|
|
3975
|
-
}
|
|
3976
|
-
}), unlinkContactPersonFromIndividualV1 = (u) => (u.client ?? client).post({
|
|
3977
|
-
requestValidator: async (u) => await zUnlinkContactPersonFromIndividualV1Data.parseAsync(u),
|
|
3978
|
-
responseValidator: async (u) => await zUnlinkContactPersonFromIndividualV1Response.parseAsync(u),
|
|
3979
|
-
url: "/api/v1/individuals/{individualUuid}/contact-persons/unlink",
|
|
3980
|
-
...u,
|
|
3981
|
-
headers: {
|
|
3982
|
-
"Content-Type": "application/json",
|
|
3983
|
-
...u.headers
|
|
3984
|
-
}
|
|
3985
|
-
}), viewIndividualContactPersonDetailV1 = (u) => (u.client ?? client).get({
|
|
3986
|
-
requestValidator: async (u) => await zViewIndividualContactPersonDetailV1Data.parseAsync(u),
|
|
3987
|
-
responseValidator: async (u) => await zViewIndividualContactPersonDetailV1Response.parseAsync(u),
|
|
3988
|
-
url: "/api/v1/individuals/{individualUuid}/contact-persons/{contactPersonUuid}",
|
|
3989
|
-
...u
|
|
3990
|
-
}), updateIndividualContactPersonV1 = (u) => (u.client ?? client).patch({
|
|
3991
|
-
requestValidator: async (u) => await zUpdateIndividualContactPersonV1Data.parseAsync(u),
|
|
3992
|
-
responseValidator: async (u) => await zUpdateIndividualContactPersonV1Response.parseAsync(u),
|
|
3993
|
-
url: "/api/v1/individuals/{individualUuid}/contact-persons/{contactPersonUuid}",
|
|
3994
|
-
...u,
|
|
3995
|
-
headers: {
|
|
3996
|
-
"Content-Type": "application/json",
|
|
3997
|
-
...u.headers
|
|
3998
|
-
}
|
|
3999
|
-
}), makeIndividualContactPersonPrimaryV1 = (u) => (u.client ?? client).patch({
|
|
4000
|
-
requestValidator: async (u) => await zMakeIndividualContactPersonPrimaryV1Data.parseAsync(u),
|
|
4001
|
-
responseValidator: async (u) => await zMakeIndividualContactPersonPrimaryV1Response.parseAsync(u),
|
|
4002
|
-
url: "/api/v1/individuals/{individualUuid}/contact-persons/{contactPersonUuid}/primary",
|
|
4003
|
-
...u
|
|
4004
|
-
}), linkContactPersonToBusinessV1 = (u) => (u.client ?? client).post({
|
|
4005
|
-
requestValidator: async (u) => await zLinkContactPersonToBusinessV1Data.parseAsync(u),
|
|
4006
|
-
responseValidator: async (u) => await zLinkContactPersonToBusinessV1Response.parseAsync(u),
|
|
4007
|
-
url: "/api/v1/businesses/{businessUuid}/contact-persons/link",
|
|
4008
|
-
...u,
|
|
4009
|
-
headers: {
|
|
4010
|
-
"Content-Type": "application/json",
|
|
4011
|
-
...u.headers
|
|
4012
|
-
}
|
|
4013
|
-
}), unlinkContactPersonFromBusinessV1 = (u) => (u.client ?? client).post({
|
|
4014
|
-
requestValidator: async (u) => await zUnlinkContactPersonFromBusinessV1Data.parseAsync(u),
|
|
4015
|
-
responseValidator: async (u) => await zUnlinkContactPersonFromBusinessV1Response.parseAsync(u),
|
|
4016
|
-
url: "/api/v1/businesses/{businessUuid}/contact-persons/unlink",
|
|
4017
|
-
...u,
|
|
4018
|
-
headers: {
|
|
4019
|
-
"Content-Type": "application/json",
|
|
4020
|
-
...u.headers
|
|
4021
|
-
}
|
|
4022
|
-
}), viewBusinessContactPersonDetailV1 = (u) => (u.client ?? client).get({
|
|
4023
|
-
requestValidator: async (u) => await zViewBusinessContactPersonDetailV1Data.parseAsync(u),
|
|
4024
|
-
responseValidator: async (u) => await zViewBusinessContactPersonDetailV1Response.parseAsync(u),
|
|
4025
|
-
url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}",
|
|
4026
|
-
...u
|
|
4027
|
-
}), updateBusinessContactPersonV1 = (u) => (u.client ?? client).patch({
|
|
4028
|
-
requestValidator: async (u) => await zUpdateBusinessContactPersonV1Data.parseAsync(u),
|
|
4029
|
-
responseValidator: async (u) => await zUpdateBusinessContactPersonV1Response.parseAsync(u),
|
|
4030
|
-
url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}",
|
|
4031
|
-
...u,
|
|
4032
|
-
headers: {
|
|
4033
|
-
"Content-Type": "application/json",
|
|
4034
|
-
...u.headers
|
|
4035
|
-
}
|
|
4036
|
-
}), makeBusinessContactPersonPrimaryV1 = (u) => (u.client ?? client).patch({
|
|
4037
|
-
requestValidator: async (u) => await zMakeBusinessContactPersonPrimaryV1Data.parseAsync(u),
|
|
4038
|
-
responseValidator: async (u) => await zMakeBusinessContactPersonPrimaryV1Response.parseAsync(u),
|
|
4039
|
-
url: "/api/v1/businesses/{businessUuid}/contact-persons/{contactPersonUuid}/primary",
|
|
4040
|
-
...u
|
|
4041
|
-
}), viewCustomFieldDefinitionIndexV1 = (u) => (u.client ?? client).get({
|
|
4042
|
-
requestValidator: async (u) => await zViewCustomFieldDefinitionIndexV1Data.parseAsync(u),
|
|
4043
|
-
responseValidator: async (u) => await zViewCustomFieldDefinitionIndexV1Response.parseAsync(u),
|
|
4044
|
-
url: "/api/v1/custom-field-definitions",
|
|
4045
|
-
...u
|
|
4046
|
-
}), viewIndividualBillingInformationDetailV1 = (u) => (u.client ?? client).get({
|
|
4047
|
-
requestValidator: async (u) => await zViewIndividualBillingInformationDetailV1Data.parseAsync(u),
|
|
4048
|
-
responseValidator: async (u) => await zViewIndividualBillingInformationDetailV1Response.parseAsync(u),
|
|
4049
|
-
url: "/api/v1/individuals/{individualUuid}/billing-information",
|
|
4050
|
-
...u
|
|
4051
|
-
}), upsertIndividualBillingInformationV1 = (u) => (u.client ?? client).post({
|
|
4052
|
-
requestValidator: async (u) => await zUpsertIndividualBillingInformationV1Data.parseAsync(u),
|
|
4053
|
-
responseValidator: async (u) => await zUpsertIndividualBillingInformationV1Response.parseAsync(u),
|
|
4054
|
-
url: "/api/v1/individuals/{individualUuid}/billing-information",
|
|
4055
|
-
...u,
|
|
4056
|
-
headers: {
|
|
4057
|
-
"Content-Type": "application/json",
|
|
4058
|
-
...u.headers
|
|
4059
|
-
}
|
|
4060
|
-
}), listBoardColumnsV1 = (u) => (u?.client ?? client).get({
|
|
4061
|
-
requestValidator: async (u) => await zListBoardColumnsV1Data.parseAsync(u),
|
|
4062
|
-
responseValidator: async (u) => await zListBoardColumnsV1Response.parseAsync(u),
|
|
4063
|
-
url: "/api/v1/board/columns",
|
|
4064
|
-
...u
|
|
4065
|
-
}), listBoardColumnTransitionsV1 = (u) => (u.client ?? client).get({
|
|
4066
|
-
requestValidator: async (u) => await zListBoardColumnTransitionsV1Data.parseAsync(u),
|
|
4067
|
-
responseValidator: async (u) => await zListBoardColumnTransitionsV1Response.parseAsync(u),
|
|
4068
|
-
url: "/api/v1/board/columns/{boardColumnUuid}/transitions",
|
|
4069
|
-
...u
|
|
4070
|
-
}), viewDealIndexV1 = (u) => (u?.client ?? client).get({
|
|
4071
|
-
requestValidator: async (u) => await zViewDealIndexV1Data.parseAsync(u),
|
|
4072
|
-
responseValidator: async (u) => await zViewDealIndexV1Response.parseAsync(u),
|
|
4073
|
-
url: "/api/v1/deals",
|
|
4074
|
-
...u
|
|
4075
|
-
}), createDealV1 = (u) => (u.client ?? client).post({
|
|
4076
|
-
requestValidator: async (u) => await zCreateDealV1Data.parseAsync(u),
|
|
4077
|
-
responseValidator: async (u) => await zCreateDealV1Response.parseAsync(u),
|
|
4078
|
-
url: "/api/v1/deals",
|
|
4079
|
-
...u,
|
|
4080
|
-
headers: {
|
|
4081
|
-
"Content-Type": "application/json",
|
|
4082
|
-
...u.headers
|
|
4083
|
-
}
|
|
4084
|
-
}), viewDealDetailV1 = (u) => (u.client ?? client).get({
|
|
4085
|
-
requestValidator: async (u) => await zViewDealDetailV1Data.parseAsync(u),
|
|
4086
|
-
responseValidator: async (u) => await zViewDealDetailV1Response.parseAsync(u),
|
|
4087
|
-
url: "/api/v1/deals/{dealUuid}",
|
|
4088
|
-
...u
|
|
4089
|
-
}), updateDealV1 = (u) => (u.client ?? client).patch({
|
|
4090
|
-
requestValidator: async (u) => await zUpdateDealV1Data.parseAsync(u),
|
|
4091
|
-
responseValidator: async (u) => await zUpdateDealV1Response.parseAsync(u),
|
|
4092
|
-
url: "/api/v1/deals/{dealUuid}",
|
|
4093
|
-
...u,
|
|
4094
|
-
headers: {
|
|
4095
|
-
"Content-Type": "application/json",
|
|
4096
|
-
...u.headers
|
|
4097
|
-
}
|
|
4098
|
-
}), transitionDealColumnV1 = (u) => (u.client ?? client).patch({
|
|
4099
|
-
requestValidator: async (u) => await zTransitionDealColumnV1Data.parseAsync(u),
|
|
4100
|
-
responseValidator: async (u) => await zTransitionDealColumnV1Response.parseAsync(u),
|
|
4101
|
-
url: "/api/v1/deals/{dealUuid}/column",
|
|
4102
|
-
...u,
|
|
4103
|
-
headers: {
|
|
4104
|
-
"Content-Type": "application/json",
|
|
4105
|
-
...u.headers
|
|
4106
|
-
}
|
|
4107
|
-
}), linkContactPersonToDealV1 = (u) => (u.client ?? client).post({
|
|
4108
|
-
requestValidator: async (u) => await zLinkContactPersonToDealV1Data.parseAsync(u),
|
|
4109
|
-
responseValidator: async (u) => await zLinkContactPersonToDealV1Response.parseAsync(u),
|
|
4110
|
-
url: "/api/v1/deals/{dealUuid}/contact-persons/link",
|
|
4111
|
-
...u,
|
|
4112
|
-
headers: {
|
|
4113
|
-
"Content-Type": "application/json",
|
|
4114
|
-
...u.headers
|
|
4115
|
-
}
|
|
4116
|
-
}), makeDealContactPersonPrimaryV1 = (u) => (u.client ?? client).patch({
|
|
4117
|
-
requestValidator: async (u) => await zMakeDealContactPersonPrimaryV1Data.parseAsync(u),
|
|
4118
|
-
responseValidator: async (u) => await zMakeDealContactPersonPrimaryV1Response.parseAsync(u),
|
|
4119
|
-
url: "/api/v1/deals/{dealUuid}/contact-persons/{contactPersonUuid}/primary",
|
|
4120
|
-
...u
|
|
4121
|
-
}), unlinkContactPersonFromDealV1 = (u) => (u.client ?? client).post({
|
|
4122
|
-
requestValidator: async (u) => await zUnlinkContactPersonFromDealV1Data.parseAsync(u),
|
|
4123
|
-
responseValidator: async (u) => await zUnlinkContactPersonFromDealV1Response.parseAsync(u),
|
|
4124
|
-
url: "/api/v1/deals/{dealUuid}/contact-persons/unlink",
|
|
4125
|
-
...u,
|
|
4126
|
-
headers: {
|
|
4127
|
-
"Content-Type": "application/json",
|
|
4128
|
-
...u.headers
|
|
4129
|
-
}
|
|
4130
|
-
}), viewDealContactPersonDetailV1 = (u) => (u.client ?? client).get({
|
|
4131
|
-
requestValidator: async (u) => await zViewDealContactPersonDetailV1Data.parseAsync(u),
|
|
4132
|
-
responseValidator: async (u) => await zViewDealContactPersonDetailV1Response.parseAsync(u),
|
|
4133
|
-
url: "/api/v1/deals/{dealUuid}/contact-persons/{contactPersonUuid}",
|
|
4134
|
-
...u
|
|
4135
|
-
}), updateDealContactPersonV1 = (u) => (u.client ?? client).patch({
|
|
4136
|
-
requestValidator: async (u) => await zUpdateDealContactPersonV1Data.parseAsync(u),
|
|
4137
|
-
responseValidator: async (u) => await zUpdateDealContactPersonV1Response.parseAsync(u),
|
|
4138
|
-
url: "/api/v1/deals/{dealUuid}/contact-persons/{contactPersonUuid}",
|
|
4139
|
-
...u,
|
|
4140
|
-
headers: {
|
|
4141
|
-
"Content-Type": "application/json",
|
|
4142
|
-
...u.headers
|
|
4143
|
-
}
|
|
4144
|
-
}), createUserIndividualGrantV1 = (u) => (u.client ?? client).post({
|
|
4145
|
-
requestValidator: async (u) => await zCreateUserIndividualGrantV1Data.parseAsync(u),
|
|
4146
|
-
url: "/api/v1/customer-zone/individuals/{individualUuid}/grant-user",
|
|
4147
|
-
...u,
|
|
4148
|
-
headers: {
|
|
4149
|
-
"Content-Type": "application/json",
|
|
4150
|
-
...u.headers
|
|
4151
|
-
}
|
|
4152
|
-
}), viewMailTemplateIndexV1 = (u) => (u?.client ?? client).get({
|
|
4153
|
-
requestValidator: async (u) => await zViewMailTemplateIndexV1Data.parseAsync(u),
|
|
4154
|
-
responseValidator: async (u) => await zViewMailTemplateIndexV1Response.parseAsync(u),
|
|
4155
|
-
url: "/api/v1/mail-templates",
|
|
4156
|
-
...u
|
|
4157
|
-
}), viewMailTemplateDetailV1 = (u) => (u.client ?? client).get({
|
|
4158
|
-
requestValidator: async (u) => await zViewMailTemplateDetailV1Data.parseAsync(u),
|
|
4159
|
-
responseValidator: async (u) => await zViewMailTemplateDetailV1Response.parseAsync(u),
|
|
4160
|
-
url: "/api/v1/mail-templates/{mailTemplateUuid}",
|
|
4161
|
-
...u
|
|
4162
|
-
}), updateMailTemplateV1 = (u) => (u.client ?? client).patch({
|
|
4163
|
-
requestValidator: async (u) => await zUpdateMailTemplateV1Data.parseAsync(u),
|
|
4164
|
-
responseValidator: async (u) => await zUpdateMailTemplateV1Response.parseAsync(u),
|
|
4165
|
-
url: "/api/v1/mail-templates/{mailTemplateUuid}",
|
|
4166
|
-
...u,
|
|
4167
|
-
headers: {
|
|
4168
|
-
"Content-Type": "application/json",
|
|
4169
|
-
...u.headers
|
|
4170
|
-
}
|
|
4171
|
-
}), viewMailTemplateDetailByKeyV1 = (u) => (u.client ?? client).get({
|
|
4172
|
-
requestValidator: async (u) => await zViewMailTemplateDetailByKeyV1Data.parseAsync(u),
|
|
4173
|
-
responseValidator: async (u) => await zViewMailTemplateDetailByKeyV1Response.parseAsync(u),
|
|
4174
|
-
url: "/api/v1/mail-templates/key/{mailTemplateKey}",
|
|
4175
|
-
...u
|
|
4176
|
-
}), viewMailIndexV1 = (u) => (u?.client ?? client).get({
|
|
4177
|
-
requestValidator: async (u) => await zViewMailIndexV1Data.parseAsync(u),
|
|
4178
|
-
responseValidator: async (u) => await zViewMailIndexV1Response.parseAsync(u),
|
|
4179
|
-
url: "/api/v1/mail",
|
|
4180
|
-
...u
|
|
4181
|
-
}), createMailV1 = (u) => (u.client ?? client).post({
|
|
4182
|
-
requestValidator: async (u) => await zCreateMailV1Data.parseAsync(u),
|
|
4183
|
-
responseValidator: async (u) => await zCreateMailV1Response.parseAsync(u),
|
|
4184
|
-
url: "/api/v1/mail",
|
|
4185
|
-
...u,
|
|
4186
|
-
headers: {
|
|
4187
|
-
"Content-Type": "application/json",
|
|
4188
|
-
...u.headers
|
|
4189
|
-
}
|
|
4190
|
-
});
|
|
4191
|
-
export { viewMailIndexV1 as $, updateMailTemplateV1 as A, viewBusinessStatisticsV1 as B, unlinkContactPersonFromIndividualV1 as C, updateDealV1 as D, updateDealContactPersonV1 as E, viewBusinessBillingInformationDetailV1 as F, viewDealNotesIndexV1 as G, viewDealContactPersonDetailV1 as H, viewBusinessContactPersonDetailV1 as I, viewIndividualContactPersonDetailV1 as J, viewIndividualActivityLogIndexV1 as K, viewBusinessDetailV1 as L, upsertBusinessBillingInformationV1 as M, upsertIndividualBillingInformationV1 as N, updateIndividualContactPersonV1 as O, viewBusinessActivityLogIndexV1 as P, viewIndividualStatisticsV1 as Q, viewBusinessIndexV1 as R, unlinkContactPersonFromDealV1 as S, updateBusinessV1 as T, viewDealDetailV1 as U, viewCustomFieldDefinitionIndexV1 as V, viewDealIndexV1 as W, viewIndividualIndexV1 as X, viewIndividualDetailV1 as Y, viewIndividualNotesIndexV1 as Z, makeDealContactPersonPrimaryV1 as _, MimeType as _t, createIndividualV1 as a, viewUserIndexV1 as at, transitionDealColumnV1 as b, createUserIndividualGrantV1 as c, BoardColumnTransitionTriggerType as ct, linkContactPersonToBusinessV1 as d, CountryCode as dt, viewMailTemplateDetailByKeyV1 as et, linkContactPersonToDealV1 as f, DealSource as ft, makeBusinessContactPersonPrimaryV1 as g, Locale as gt, listBoardColumnsV1 as h, GlobalSearchCollectionName as ht, createFileV1 as i, viewTenantConfigDetailV1 as it, updateNoteV1 as j, updateIndividualV1 as k, deleteNoteV1 as l, ClientStatus as lt, listBoardColumnTransitionsV1 as m, EntityType as mt, createBusinessV1 as n, viewMailTemplateIndexV1 as nt, createMailV1 as o, client as ot, linkContactPersonToIndividualV1 as p, EntityColor as pt, viewIndividualBillingInformationDetailV1 as q, createDealV1 as r, viewRecentEntitiesV1 as rt, createNoteV1 as s, BillingInformationRequirement as st, confirmFileUploadV2 as t, viewMailTemplateDetailV1 as tt, linkBusinessAsChildV1 as u, ClientType as ut, makeIndividualContactPersonPrimaryV1 as v, SdkContentLocale as vt, updateBusinessContactPersonV1 as w, unlinkContactPersonFromBusinessV1 as x, searchCollectionsV1 as y, viewBusinessNotesIndexV1 as z };
|