@wisemen/wise-crm-web 2.0.0-alpha.9 → 3.0.0-alpha.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/index.d.ts CHANGED
@@ -1,107 +1,34 @@
1
- import { BillingInformationUuid } from '#models/billing-information/billingInformationUuid.model.ts';
2
- import { BoardColumnTransitionTriggerType } from '#client/index.ts';
3
- import { BoardColumnUuid } from '#models/board/boardColumnUuid.model.ts';
4
- import { BusinessIndexQueryParams } from '#models/business/index/businessIndexQueryParams.model.ts';
5
- import { BusinessUuid } from '#models/business/businessUuid.model.ts';
6
- import { ClientType } from '#client/types.gen.ts';
7
1
  import { Component } from 'vue';
8
2
  import { ComponentOptionsMixin } from 'vue';
9
3
  import { ComponentProvideOptions } from 'vue';
10
4
  import { ComputedRef } from 'vue';
11
- import { CustomFieldDefinitionIndex } from '#models/custom-field-definition/customFieldDefinitionIndex.model.ts';
12
- import { DealIndexQueryParams } from '#models/deal/index/dealIndexQueryParams.model.ts';
13
- import { DealUuid } from '#models/deal/dealUuid.model.ts';
5
+ import { default as default_2 } from 'zod';
14
6
  import { DefineComponent } from 'vue';
15
- import { DialogContentTab } from '#types/dialog-content-tab/dialogContentTab.type.ts';
16
- import { EntityConfig } from '#models/tenant-config/tenantConfig.model.ts';
17
- import { EntityType } from '#client/index.ts';
18
- import { EntityType as EntityType_2 } from '#client/types.gen.ts';
19
- import { EntityType as EntityType_3 } from '#models/enitityType.model.ts';
20
- import { GlobalSearchCollectionName } from '#client/index.ts';
21
- import { IndividualIndexQueryParams } from '#models/individual/index/individualIndexQueryParams.model.ts';
22
- import { IndividualUuid } from '#models/individual/individualUuid.model.ts';
23
7
  import { InfiniteQueryOptions } from '@wisemen/vue-core-api-utils';
24
- import { Locale } from '#client/index.ts';
25
- import { MailIndexQueryParams } from '#models/mail/index/mailIndexQueryParams.model.ts';
26
- import { MailTemplateIndexQueryParams } from '#models/mail-template/index/mailTemplateIndexQueryParams.model.ts';
27
- import { MailTemplateUuid } from '#models/mail-template/mailTemplateUuid.model.ts';
28
- import { NoteIndexQueryParams } from '#models/notes/index/noteIndexQueryParams.model.ts';
29
- import { PublicFileReference } from '#models/file-reference/fileReference.model.ts';
8
+ import { OffsetPaginationParams } from '@wisemen/vue-core-api-utils';
9
+ import { OffsetPaginationResponse } from '@wisemen/vue-core-api-utils';
30
10
  import { PublicProps } from 'vue';
31
11
  import { Ref } from 'vue';
32
12
  import { RouteLocationNormalized } from 'vue-router';
33
13
  import { RouteRecordRaw } from 'vue-router';
34
- import { TenantConfig } from '#models/tenant-config/tenantConfig.model.ts';
35
- import { UserIndexQueryParams } from '#models/user/index/userIndexQueryParams.model.ts';
36
- import { VNode } from 'vue';
37
- import { WiseCrmBusinessUuid as WiseCrmBusinessUuid_2 } from '#index.ts';
38
- import { WiseCrmIndividualUuid as WiseCrmIndividualUuid_2 } from '#index.ts';
14
+ import { Temporal } from 'temporal-polyfill';
15
+ import { UIBadgeProps } from '@wisemen/vue-core-design-system';
16
+ import { UITableColumnSize } from '@wisemen/vue-core-design-system';
39
17
  import { z } from 'zod';
40
18
 
41
- declare const __VLS_component: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
42
20
 
43
- declare const __VLS_component_2: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
44
22
 
45
23
  declare type __VLS_Props = {
46
- businessUuid: BusinessUuid;
47
- title: string;
48
- description: string;
49
- tabs: DialogContentTab[];
50
- };
51
-
52
- declare type __VLS_Props_10 = {
53
- dealUuid: DealUuid;
54
- client: {
55
- uuid: string;
56
- type: ClientType;
57
- };
58
- defaultSenderEmails?: string[];
59
- externalAttachments?: PublicFileReference[];
60
- generatePdfFile?: Promise<PublicFileReference>;
61
- templateKey: string;
62
- };
63
-
64
- declare type __VLS_Props_11 = {
65
- entityType?: EntityType_3 | null;
66
- onCreate?: (uuid: BusinessUuid | IndividualUuid, name: string, type: EntityType_3) => void;
67
- };
68
-
69
- declare type __VLS_Props_2 = {
70
- businessUuid: BusinessUuid;
71
- };
72
-
73
- declare type __VLS_Props_3 = {
74
- businessUuid: BusinessUuid;
75
- };
76
-
77
- declare type __VLS_Props_4 = {
78
24
  isOpen: boolean;
79
25
  };
80
26
 
81
- declare type __VLS_Props_5 = {
27
+ declare type __VLS_Props_2 = {
82
28
  title: string;
83
29
  icon: Component;
84
30
  };
85
31
 
86
- declare type __VLS_Props_6 = {
87
- isAutoFocusDisabled?: boolean;
88
- };
89
-
90
- declare type __VLS_Props_7 = {
91
- individualUuid: IndividualUuid;
92
- };
93
-
94
- declare type __VLS_Props_8 = {
95
- individualUuid: IndividualUuid;
96
- };
97
-
98
- declare type __VLS_Props_9 = {
99
- individualUuid: IndividualUuid;
100
- title: string;
101
- description: string;
102
- tabs: DialogContentTab[];
103
- };
104
-
105
32
  declare function __VLS_template(): {
106
33
  attrs: Partial<{}>;
107
34
  slots: {
@@ -137,25 +64,245 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
137
64
  };
138
65
  };
139
66
 
67
+ declare interface BaseCustomFieldDefinitionIndex {
68
+ uuid: string;
69
+ isDisplayedOnCreate: boolean;
70
+ displayName: string;
71
+ key: string;
72
+ order: number;
73
+ type: CustomFieldDefinitionType;
74
+ width: CustomFieldWidth;
75
+ }
76
+
77
+ declare enum BillingInformationRequirement {
78
+ EMAIL_ONLY = "EMAIL_ONLY",
79
+ ADDRESS_ONLY = "ADDRESS_ONLY",
80
+ EMAIL_AND_ADDRESS = "EMAIL_AND_ADDRESS",
81
+ EMAIL_OR_ADDRESS = "EMAIL_OR_ADDRESS"
82
+ }
83
+
84
+ declare enum BoardColumnTransitionTriggerType {
85
+ MANUAL = "manual",
86
+ EMAIL = "email"
87
+ }
88
+
89
+ declare type BoardColumnUuid = z.infer<typeof boardColumnUuidSchema>;
90
+
91
+ declare const boardColumnUuidSchema: z.core.$ZodBranded<z.ZodString, "BoardColumnUuid", "out">;
92
+
93
+ declare interface BrandColor {
94
+ brand25: string;
95
+ brand50: string;
96
+ brand100: string;
97
+ brand200: string;
98
+ brand300: string;
99
+ brand400: string;
100
+ brand500: string;
101
+ brand600: string;
102
+ brand700: string;
103
+ brand800: string;
104
+ brand900: string;
105
+ brand950: string;
106
+ }
107
+
108
+ declare interface BusinessConfig {
109
+ requireIndividualOnCreate: boolean;
110
+ viesValidation: boolean;
111
+ }
112
+
113
+ declare interface BusinessIndexQueryParams extends WithSearchQuery {
114
+ }
115
+
116
+ declare enum BusinessStatus {
117
+ LEAD = "lead",
118
+ CUSTOMER = "customer",
119
+ INACTIVE = "inactive",
120
+ ARCHIVED = "archived"
121
+ }
122
+
140
123
  export declare const businessUuidSchema: z.core.$ZodBranded<z.ZodString, "BusinessUuid", "out">;
141
124
 
125
+ declare enum ClientType {
126
+ BUSINESS = "business",
127
+ INDIVIDUAL = "individual"
128
+ }
129
+
142
130
  declare interface CrmRouteOptions {
143
131
  label: ComputedRef<string>;
144
132
  route: RouteRecordRaw;
145
133
  }
146
134
 
147
- export declare const CrmSearchTrigger: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
148
- select: (args_0: EntityType_2, args_1: string) => any;
149
- }, string, PublicProps, Readonly<{}> & Readonly<{
150
- onSelect?: ((args_0: EntityType_2, args_1: string) => any) | undefined;
151
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
135
+ declare interface CustomFieldDefinitionCheckboxIndex extends BaseCustomFieldDefinitionIndex {
136
+ defaultValue?: boolean;
137
+ type: 'checkbox';
138
+ }
139
+
140
+ declare interface CustomFieldDefinitionDateIndex extends BaseCustomFieldDefinitionIndex {
141
+ maxDate?: Temporal.PlainDate;
142
+ minDate?: Temporal.PlainDate;
143
+ type: 'date';
144
+ }
145
+
146
+ declare type CustomFieldDefinitionIndex = CustomFieldDefinitionCheckboxIndex | CustomFieldDefinitionDateIndex | CustomFieldDefinitionMultiSelectIndex | CustomFieldDefinitionNumberIndex | CustomFieldDefinitionRadioButtonIndex | CustomFieldDefinitionSelectIndex | CustomFieldDefinitionStringIndex;
147
+
148
+ declare interface CustomFieldDefinitionMultiSelectIndex extends BaseCustomFieldDefinitionIndex {
149
+ maxSelections?: number;
150
+ minSelections?: number;
151
+ options: {
152
+ key: string;
153
+ value: string;
154
+ }[];
155
+ type: 'multiselect';
156
+ }
157
+
158
+ declare interface CustomFieldDefinitionNumberIndex extends BaseCustomFieldDefinitionIndex {
159
+ maxValue?: number;
160
+ minValue?: number;
161
+ type: 'number';
162
+ }
163
+
164
+ declare interface CustomFieldDefinitionRadioButtonIndex extends BaseCustomFieldDefinitionIndex {
165
+ options: {
166
+ key: string;
167
+ value: string;
168
+ }[];
169
+ type: 'radio';
170
+ }
171
+
172
+ declare interface CustomFieldDefinitionSelectIndex extends BaseCustomFieldDefinitionIndex {
173
+ options: {
174
+ key: string;
175
+ value: string;
176
+ }[];
177
+ type: 'select';
178
+ }
179
+
180
+ declare interface CustomFieldDefinitionStringIndex extends BaseCustomFieldDefinitionIndex {
181
+ maxLength?: number;
182
+ minLength?: number;
183
+ type: 'string';
184
+ }
185
+
186
+ declare type CustomFieldDefinitionType = 'checkbox' | 'date' | 'multiselect' | 'number' | 'radio' | 'select' | 'string';
187
+
188
+ declare type CustomFieldWidth = 'full' | 'half';
189
+
190
+ declare interface DealConfig {
191
+ creatableBusinessStatuses: BusinessStatus[];
192
+ creatableIndividualStatuses: IndividualStatus[];
193
+ enableBusinessDeals: boolean;
194
+ enableIndividualDeals: boolean;
195
+ }
196
+
197
+ declare interface DealIndexQueryParams extends WithFilterQuery<{
198
+ boardColumnUuid?: BoardColumnUuid[];
199
+ businessUuids?: WiseCrmBusinessUuid[];
200
+ dealNumber?: string;
201
+ dealOwnerUuids?: string[];
202
+ individualUuids?: WiseCrmIndividualUuid[];
203
+ }> {
204
+ }
205
+
206
+ declare const dealUuidSchema: z.core.$ZodBranded<z.ZodUUID, "DealUuid", "out">;
207
+
208
+ declare enum EntityColor {
209
+ MOSS = "moss",
210
+ GREEN_LIGHT = "green-light",
211
+ GREEN = "green",
212
+ TEAL = "teal",
213
+ CYAN = "cyan",
214
+ BLUE_LIGHT = "blue-light",
215
+ BLUE = "blue",
216
+ BLUE_DARK = "blue-dark",
217
+ INDIGO = "indigo",
218
+ VIOLET = "violet",
219
+ PURPLE = "purple",
220
+ FUCHSIA = "fuchsia",
221
+ PINK = "pink",
222
+ ROSE = "rose",
223
+ ORANGE_DARK = "orange-dark",
224
+ ORANGE = "orange",
225
+ YELLOW = "yellow",
226
+ ERROR = "error",
227
+ WARNING = "warning",
228
+ SUCCESS = "success"
229
+ }
230
+
231
+ declare interface EntityConfig {
232
+ name: string;
233
+ color: EntityColor;
234
+ type: WiseCrmEntityType;
235
+ }
236
+
237
+ declare type EntityOverviewEntity = 'business' | 'individual';
238
+
239
+ /**
240
+ * Replaces the CRM index and columns of an entity overview with the host app's.
241
+ * The package keeps the search, infinite scroll, error state and the link to the detail view.
242
+ */
243
+ declare interface EntityOverviewOptions<TRow extends EntityOverviewRow> {
244
+ /**
245
+ * Replaces the built-in columns.
246
+ */
247
+ columns: WiseCrmEntityOverviewColumn<TRow>[];
248
+ /**
249
+ * Returns one page of rows. Called instead of the CRM index, also when the search changes.
250
+ * Invalidate the `wiseCrmHostEntityOverview` query key to call it again.
251
+ */
252
+ getData: (params: {
253
+ pagination: OffsetPaginationParams;
254
+ search: string | null;
255
+ }) => Promise<OffsetPaginationResponse<TRow>>;
256
+ }
257
+
258
+ /**
259
+ * The fields the package reads from a host row; the rest is only read by the host's columns.
260
+ */
261
+ declare interface EntityOverviewRow {
262
+ uuid: string;
263
+ }
152
264
 
153
265
  declare function getConfig(): TenantConfig;
154
266
 
155
- declare function getCustomFieldDefinitionForEntity(entityType: EntityType): CustomFieldDefinitionIndex[];
267
+ declare function getCustomFieldDefinitionForEntity(entityType: WiseCrmEntityType): CustomFieldDefinitionIndex[];
156
268
 
157
269
  declare function getOptions(): InitProps['options'];
158
270
 
271
+ declare type GlobalSearchCollectionName = 'business' | 'individual' | 'user';
272
+
273
+ /**
274
+ * A consumer-provided badge rendered after the built-in badges in the
275
+ * header of a detail view.
276
+ */
277
+ declare interface HeaderBadge<TUuid extends string> extends HeaderBadgeStyle {
278
+ /**
279
+ * Returns the badge label, or the label with styles that depend on the data.
280
+ * Return `null` or an empty label to hide the badge.
281
+ * Invalidate the `wiseCrmHeaderBadge` query key to call it again.
282
+ */
283
+ getData: (context: {
284
+ uuid: TUuid;
285
+ }) => Promise<string | WiseCrmHeaderBadgeData | null>;
286
+ /**
287
+ * Unique per entity, used to cache the badge's data.
288
+ */
289
+ key: string;
290
+ }
291
+
292
+ declare type HeaderBadgeEntity = 'business' | 'deal' | 'individual';
293
+
294
+ declare type HeaderBadgeStyle = Pick<UIBadgeProps, 'color' | 'dot' | 'icon' | 'variant'>;
295
+
296
+ declare interface IndividualIndexQueryParams extends WithSearchQuery {
297
+ }
298
+
299
+ declare enum IndividualStatus {
300
+ CONTACT = "contact",
301
+ LEAD = "lead",
302
+ CUSTOMER = "customer",
303
+ INACTIVE = "inactive"
304
+ }
305
+
159
306
  export declare const individualUuidSchema: z.core.$ZodBranded<z.ZodString, "IndividualUuid", "out">;
160
307
 
161
308
  declare interface InitProps {
@@ -165,9 +312,59 @@ declare interface InitProps {
165
312
  googleMapsApiKey: string;
166
313
  locale: Locale;
167
314
  options: {
315
+ business?: {
316
+ /**
317
+ * Rendered after the built-in badges in the header of the business sidebar.
318
+ */
319
+ headerBadges?: WiseCrmBusinessHeaderBadge[];
320
+ /**
321
+ * Replaces the CRM index and columns of the business overview with the host app's.
322
+ */
323
+ overview?: WiseCrmBusinessOverviewOptions;
324
+ /**
325
+ * Rendered after the built-in sections in the Overview tab of the business sidebar.
326
+ */
327
+ sidebarSections?: WiseCrmSidebarSection<{
328
+ businessUuid: WiseCrmBusinessUuid;
329
+ }>[];
330
+ };
168
331
  deals: {
332
+ /**
333
+ * When searching a business in the deal create dialog returns no results,
334
+ * search the CBE (KBO) with the same term in the same field.
335
+ */
336
+ isCbeSearchFallbackEnabled?: boolean;
169
337
  allowedTransitionTriggerTypes: BoardColumnTransitionTriggerType[];
338
+ /**
339
+ * Rendered below the built-in badges in the header of the deal sidebar.
340
+ */
341
+ headerBadges?: WiseCrmDealHeaderBadge[];
342
+ /**
343
+ * Called after a mutation in the package successfully changed a deal,
344
+ * so the host app can invalidate its own queries for that deal.
345
+ *
346
+ * `changeType` tells whether the change publishes a `deal.updated` integration event:
347
+ * `DETAILS` and `TRANSITION` always do, `MAIL` only when the mail template triggers
348
+ * a board column transition, and `CONTACT_PERSON` never does.
349
+ */
350
+ onDealChanged?: (dealUuid: WiseCrmDealUuid, changeType: WiseCrmDealChangeType) => void;
170
351
  } | null;
352
+ individual?: {
353
+ /**
354
+ * Rendered after the built-in badges in the header of the individual sidebar.
355
+ */
356
+ headerBadges?: WiseCrmIndividualHeaderBadge[];
357
+ /**
358
+ * Replaces the CRM index and columns of the individual overview with the host app's.
359
+ */
360
+ overview?: WiseCrmIndividualOverviewOptions;
361
+ /**
362
+ * Rendered after the built-in sections in the Overview tab of the individual sidebar.
363
+ */
364
+ sidebarSections?: WiseCrmSidebarSection<{
365
+ individualUuid: WiseCrmIndividualUuid;
366
+ }>[];
367
+ };
171
368
  widgets?: {
172
369
  entityStatistics?: {
173
370
  viewAllBusinessRouteName: string;
@@ -176,29 +373,114 @@ declare interface InitProps {
176
373
  recentlyCreatedEntities?: true;
177
374
  };
178
375
  };
376
+ /**
377
+ * Called when the tenant config can't be fetched, so the host app can report it.
378
+ * The CRM components show their own error state, so the host app doesn't have to.
379
+ */
380
+ onError?: (error: unknown) => void;
381
+ }
382
+
383
+ declare enum Locale {
384
+ EN_US = "en-US",
385
+ NL_BE = "nl-BE",
386
+ FR_BE = "fr-BE"
387
+ }
388
+
389
+ declare interface MailIndexQueryParams extends WithFilterQuery<{
390
+ clientUuid?: string;
391
+ dealUuid?: WiseCrmDealUuid;
392
+ clientType?: ClientType;
393
+ }> {
394
+ }
395
+
396
+ declare interface MailTemplateIndexQueryParams {
397
+ }
398
+
399
+ declare type MailTemplateUuid = default_2.infer<typeof mailTemplateUuidSchema>;
400
+
401
+ declare const mailTemplateUuidSchema: default_2.core.$ZodBranded<default_2.ZodUUID, "MailTemplateUuid", "out">;
402
+
403
+ declare enum MimeType_2 {
404
+ APPLICATION_PDF = "application/pdf",
405
+ APPLICATION_MSWORD = "application/msword",
406
+ APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
407
+ APPLICATION_VND_MS_POWERPOINT = "application/vnd.ms-powerpoint",
408
+ APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
409
+ TEXT_PLAIN = "text/plain",
410
+ TEXT_HTML = "text/html",
411
+ TEXT_CSV = "text/csv",
412
+ IMAGE_JPEG = "image/jpeg",
413
+ IMAGE_PNG = "image/png",
414
+ IMAGE_TIFF = "image/tiff",
415
+ IMAGE_BMP = "image/bmp",
416
+ IMAGE_HEIC = "image/heic",
417
+ IMAGE_WEBP = "image/webp",
418
+ IMAGE_GIF = "image/gif",
419
+ APPLICATION_OCTET_STREAM = "application/octet-stream"
420
+ }
421
+
422
+ declare interface NoteIndexQueryParams {
423
+ }
424
+
425
+ declare function notifyDealChanged(dealUuid: WiseCrmDealUuid, changeType: WiseCrmDealChangeType): void;
426
+
427
+ declare interface PublicFileReference {
428
+ uuid: string;
429
+ name: string;
430
+ blurHash?: string | null;
431
+ downloadUrl: string;
432
+ mimeType: MimeType_2;
433
+ }
434
+
435
+ /**
436
+ * Fetches the tenant config once more. The error state stays visible while it runs,
437
+ * so the page doesn't jump between the error and a loader.
438
+ */
439
+ declare function retry(): Promise<void>;
440
+
441
+ declare interface TenantConfig {
442
+ name: string;
443
+ billingConfig: TenantConfigBilling;
444
+ brandColors: BrandColor;
445
+ businessConfig: BusinessConfig;
446
+ dealConfig: DealConfig;
447
+ entities: EntityConfig[];
448
+ logoUrl: string | null;
449
+ }
450
+
451
+ declare type TenantConfigBilling = {
452
+ individualBillingInformationRequirement: BillingInformationRequirement;
453
+ businessBillingInformationRequirement: BillingInformationRequirement;
454
+ };
455
+
456
+ declare interface UserIndexQueryParams extends WithSearchQuery {
179
457
  }
180
458
 
181
459
  export declare function useWiseCrm(): {
182
- getEntityConfig: (type: EntityType) => EntityConfig | null;
460
+ getEntityConfig: (type: WiseCrmEntityType) => EntityConfig | null;
183
461
  goToReturnRoute: () => void;
184
- openBusinessDetail: (businessUuid: BusinessUuid) => void;
185
- openIndividualDetail: (individualUuid: IndividualUuid) => void;
462
+ openBusinessDetail: (businessUuid: WiseCrmBusinessUuid) => void;
463
+ openIndividualDetail: (individualUuid: WiseCrmIndividualUuid) => void;
186
464
  storeReturnRoute: (route: RouteLocationNormalized, excludedRoutes?: (string | RegExp)[]) => void;
187
465
  };
188
466
 
189
467
  export declare function useWiseCrmConfig(): {
190
- isInitialized: Ref<boolean, boolean>;
468
+ isRetrying: Readonly<Ref<boolean, boolean>>;
469
+ error: Readonly<Ref<Readonly<unknown>, Readonly<unknown>>>;
191
470
  getConfig: typeof getConfig;
192
471
  getCustomFieldDefinitionForEntity: typeof getCustomFieldDefinitionForEntity;
193
472
  getOptions: typeof getOptions;
194
473
  init: (props: InitProps) => Promise<void>;
474
+ notifyDealChanged: typeof notifyDealChanged;
475
+ retry: typeof retry;
476
+ status: Readonly<Ref<WiseCrmConfigStatus, WiseCrmConfigStatus>>;
195
477
  };
196
478
 
197
479
  export declare function useWiseCrmContactCreateDialog(): {
198
480
  close: (value?: any) => void;
199
481
  open: (options?: {
200
- entityType?: EntityType | null;
201
- onCreate?: (uuid: BusinessUuid | IndividualUuid, name: string, type: EntityType) => void;
482
+ entityType?: WiseCrmEntityType | null;
483
+ onCreate?: (uuid: WiseCrmBusinessUuid | WiseCrmIndividualUuid, name: string, type: WiseCrmEntityType) => void;
202
484
  }) => void;
203
485
  };
204
486
 
@@ -209,79 +491,141 @@ export declare function useWiseCrmRoutes(options: {
209
491
  individualTabRoutes: CrmRouteOptions[];
210
492
  }): RouteRecordRaw;
211
493
 
212
- export declare const WiseCrmBusinessBillingInformationCard: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
494
+ export declare const WiseCrmBusinessBillingInformationCard: DefineComponent< {
495
+ businessUuid: WiseCrmBusinessUuid;
496
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
497
+ businessUuid: WiseCrmBusinessUuid;
498
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
213
499
 
214
- export declare const WiseCrmBusinessDialog: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
215
- close: () => any;
216
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
217
- onClose?: (() => any) | undefined;
218
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
500
+ export declare type WiseCrmBusinessHeaderBadge = HeaderBadge<WiseCrmBusinessUuid>;
501
+
502
+ export declare type WiseCrmBusinessOverviewOptions<TRow extends {
503
+ uuid: WiseCrmBusinessUuid;
504
+ } = any> = EntityOverviewOptions<TRow>;
505
+
506
+ export declare const WiseCrmBusinessOverviewTab: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
219
507
 
220
508
  export declare const WiseCrmBusinessTable: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
221
509
 
222
- export declare const WiseCrmBusinessUpdateCard: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
510
+ export declare const WiseCrmBusinessUpdateCard: DefineComponent< {
511
+ businessUuid: WiseCrmBusinessUuid;
512
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
223
513
  close: () => any;
224
- }, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
514
+ }, string, PublicProps, Readonly<{
515
+ businessUuid: WiseCrmBusinessUuid;
516
+ }> & Readonly<{
225
517
  onClose?: (() => any) | undefined;
226
518
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
227
519
 
228
520
  export declare type WiseCrmBusinessUuid = z.infer<typeof businessUuidSchema>;
229
521
 
230
- export declare const WiseCrmBusinessWidget: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
231
- viewAll: () => any;
232
- }, string, PublicProps, Readonly<{}> & Readonly<{
233
- onViewAll?: (() => any) | undefined;
234
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
235
-
236
522
  export declare const WiseCrmCard: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
237
523
 
238
- export declare const WiseCrmContactCreateDialog: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
239
- close: () => any;
240
- }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
241
- onClose?: (() => any) | undefined;
242
- }>, {
243
- entityType: EntityType_3 | null;
244
- onCreate: (uuid: BusinessUuid | IndividualUuid, name: string, type: EntityType_3) => void;
245
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
524
+ export declare type WiseCrmConfigStatus = 'error' | 'loading' | 'ready';
246
525
 
247
526
  export declare const WiseCrmCrmDealOverview: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLElement>;
248
527
 
249
- export declare const WiseCrmDealSendMailDialog: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
528
+ export declare enum WiseCrmDealChangeType {
529
+ CONTACT_PERSON = "contact_person",
530
+ DETAILS = "details",
531
+ MAIL = "mail",
532
+ TRANSITION = "transition"
533
+ }
534
+
535
+ export declare type WiseCrmDealHeaderBadge = HeaderBadge<WiseCrmDealUuid>;
536
+
537
+ export declare const WiseCrmDealOverviewTab: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
538
+
539
+ export declare const WiseCrmDealSendMailDialog: DefineComponent< {
540
+ dealUuid: WiseCrmDealUuid;
541
+ client: {
542
+ uuid: string;
543
+ type: ClientType;
544
+ };
545
+ externalAttachments?: PublicFileReference[];
546
+ generatePdfFile?: Promise<PublicFileReference>;
547
+ templateKey: string;
548
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
250
549
  close: () => any;
251
- }, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{
550
+ }, string, PublicProps, Readonly<{
551
+ dealUuid: WiseCrmDealUuid;
552
+ client: {
553
+ uuid: string;
554
+ type: ClientType;
555
+ };
556
+ externalAttachments?: PublicFileReference[];
557
+ generatePdfFile?: Promise<PublicFileReference>;
558
+ templateKey: string;
559
+ }> & Readonly<{
252
560
  onClose?: (() => any) | undefined;
253
561
  }>, {
254
562
  externalAttachments: PublicFileReference[];
255
563
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
256
564
 
257
- export declare interface WiseCrmDialogContentTab {
258
- content: () => VNode;
259
- label: string;
260
- value: string;
565
+ export declare type WiseCrmDealUuid = z.infer<typeof dealUuidSchema>;
566
+
567
+ /**
568
+ * The props the package passes to a table column's `component`.
569
+ */
570
+ export declare interface WiseCrmEntityOverviewCellProps<TRow> {
571
+ row: TRow;
572
+ }
573
+
574
+ /**
575
+ * A consumer-provided column of an entity overview.
576
+ */
577
+ export declare interface WiseCrmEntityOverviewColumn<TRow> {
578
+ headerLabel: ComputedRef<string>;
579
+ /**
580
+ * Unique per overview.
581
+ */
582
+ key: string;
583
+ size?: UITableColumnSize;
584
+ /**
585
+ * Rendered inside the cell of each row.
586
+ */
587
+ component: Component<WiseCrmEntityOverviewCellProps<TRow>>;
588
+ }
589
+
590
+ export declare enum WiseCrmEntityType {
591
+ INDIVIDUAL = "individual",
592
+ BUSINESS = "business"
261
593
  }
262
594
 
263
595
  export declare const WiseCrmFormCardSubmitButtonTransition: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
264
596
 
265
- export declare const WiseCrmIndividualBillingInformationCard: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
597
+ /**
598
+ * The resolved badge. Any style set here overrides the one on the badge,
599
+ * for example to pick the color from the entity's data.
600
+ */
601
+ export declare interface WiseCrmHeaderBadgeData extends HeaderBadgeStyle {
602
+ label: string;
603
+ }
266
604
 
267
- export declare const WiseCrmIndividualDialog: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
268
- close: () => any;
269
- }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
270
- onClose?: (() => any) | undefined;
271
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
605
+ export declare const WiseCrmIndividualBillingInformationCard: DefineComponent< {
606
+ individualUuid: WiseCrmIndividualUuid;
607
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
608
+ individualUuid: WiseCrmIndividualUuid;
609
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
610
+
611
+ export declare type WiseCrmIndividualHeaderBadge = HeaderBadge<WiseCrmIndividualUuid>;
612
+
613
+ export declare type WiseCrmIndividualOverviewOptions<TRow extends {
614
+ uuid: WiseCrmIndividualUuid;
615
+ } = any> = EntityOverviewOptions<TRow>;
616
+
617
+ export declare const WiseCrmIndividualOverviewTab: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
272
618
 
273
619
  export declare const WiseCrmIndividualTable: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
274
620
 
275
- export declare const WiseCrmIndividualUpdateCard: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
621
+ export declare const WiseCrmIndividualUpdateCard: DefineComponent< {
622
+ individualUuid: WiseCrmIndividualUuid;
623
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
624
+ individualUuid: WiseCrmIndividualUuid;
625
+ }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
276
626
 
277
627
  export declare type WiseCrmIndividualUuid = z.infer<typeof individualUuidSchema>;
278
628
 
279
- export declare const WiseCrmIndividualWidget: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
280
- viewAll: () => any;
281
- }, string, PublicProps, Readonly<{}> & Readonly<{
282
- onViewAll?: (() => any) | undefined;
283
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
284
-
285
629
  export declare const wiseCrmLocales: {
286
630
  'en-US': {
287
631
  "module.notification.notification_center.title": string;
@@ -296,6 +640,15 @@ export declare const wiseCrmLocales: {
296
640
  "module.settings.settings_are_hidden.label": string;
297
641
  "module.settings.settings_are_hidden.show_all.label": string;
298
642
  "wise_crm.deal.detail_view.communication_tab_label": string;
643
+ "wise_crm.detail_view.close": string;
644
+ "wise_crm.detail_view.copy_link": string;
645
+ "wise_crm.detail_view.more_actions": string;
646
+ "wise_crm.detail_view.send_email": string;
647
+ "wise_crm.detail_view.call": string;
648
+ "wise_crm.detail_view.open_address": string;
649
+ "wise_crm.detail_view.footer": string;
650
+ "wise_crm.detail_view.identifier": string;
651
+ "wise_crm.detail_view.since": string;
299
652
  "component.base_dialog.confirm_dialog.title": string;
300
653
  "component.select.search_input_placeholder": string;
301
654
  "component.error.message_prefix": string;
@@ -312,6 +665,9 @@ export declare const wiseCrmLocales: {
312
665
  "enum.api_error_code.deal_column_transition_not_allowed": string;
313
666
  "wise_crm.info_dialog.sidebar.grant_customer_zone_access": string;
314
667
  "wise_crm.deal.filters.owner.label": string;
668
+ "wise_crm.deal.filters.business.label": string;
669
+ "wise_crm.deal.filters.individual.label": string;
670
+ "wise_crm.deal.filters.deal_number.placeholder": string;
315
671
  "wise_crm.info_dialog.sidebar.grant_customer_zone_access_success": string;
316
672
  "wise_crm.info_dialog.sidebar.overview.delete_contact_person_title": string;
317
673
  "wise_crm.info_dialog.sidebar.overview.delete_contact_person_description": string;
@@ -386,9 +742,11 @@ export declare const wiseCrmLocales: {
386
742
  "enum.api_error_code.individual_contact_person_not_found": string;
387
743
  "enum.api_error_code.individual_not_found": string;
388
744
  "enum.api_error_code.internal_server_error": string;
745
+ "enum.api_error_code.invalid_business_individual": string;
389
746
  "enum.api_error_code.invalid_holiday_end_date": string;
390
747
  "enum.api_error_code.invalid_holiday_start_date": string;
391
748
  "enum.api_error_code.job_not_found": string;
749
+ "enum.api_error_code.kbo_validation_service_unavailable": string;
392
750
  "enum.api_error_code.location_not_found": string;
393
751
  "enum.api_error_code.max_time_in_vehicle_formula_not_found": string;
394
752
  "enum.api_error_code.migration_already_performed": string;
@@ -426,6 +784,7 @@ export declare const wiseCrmLocales: {
426
784
  "enum.api_error_code.shift_overlaps_with_full_day_absence": string;
427
785
  "enum.api_error_code.simulation_cannot_be_deleted": string;
428
786
  "enum.api_error_code.tenant_not_found": string;
787
+ "enum.api_error_code.tenant_with_domain_not_found": string;
429
788
  "enum.api_error_code.user_not_found": string;
430
789
  "enum.api_error_code.user_notification_not_found": string;
431
790
  "enum.api_error_code.invalid_billing_information": string;
@@ -729,6 +1088,7 @@ export declare const wiseCrmLocales: {
729
1088
  "wise_crm.widgets.individuals.since_last_month": string;
730
1089
  "wise_crm.widgets.individuals.title": string;
731
1090
  "wise_crm.widgets.individuals.value_since_last_month": string;
1091
+ "wise_crm.business.autocomplete.cbe_result_label": string;
732
1092
  "wise_crm.business.form.address": string;
733
1093
  "wise_crm.business.form.business_number": string;
734
1094
  "wise_crm.business.form.general_information": string;
@@ -791,8 +1151,11 @@ export declare const wiseCrmLocales: {
791
1151
  "wise_crm.info_dialog.customer_info_update_dialog.form.ssn_label": string;
792
1152
  "wise_crm.info_dialog.customer_info_update_dialog.title": string;
793
1153
  "wise_crm.info_dialog.info.billing_information.card.title": string;
1154
+ "wise_crm.info_dialog.info.billing_information.card.description": string;
794
1155
  "wise_crm.info_dialog.info_business_info.card.title": string;
1156
+ "wise_crm.info_dialog.info_business_info.card.description": string;
795
1157
  "wise_crm.info_dialog.info_individual_info.card.title": string;
1158
+ "wise_crm.info_dialog.info_individual_info.card.description": string;
796
1159
  "wise_crm.info_dialog.invoice_dialog.form.billing_address": string;
797
1160
  "wise_crm.info_dialog.invoice_dialog.form.billing_address_same_as": string;
798
1161
  "wise_crm.info_dialog.invoice_dialog.form.billing_information": string;
@@ -837,11 +1200,26 @@ export declare const wiseCrmLocales: {
837
1200
  "wise_crm.shared.back": string;
838
1201
  "wise_crm.shared.skip": string;
839
1202
  "wise_crm.shared.contact_info": string;
1203
+ "wise_crm.overview.custom_fields.title": string;
1204
+ "wise_crm.shared.no": string;
1205
+ "wise_crm.shared.yes": string;
1206
+ "wise_crm.overview.billing_information.empty": string;
1207
+ "wise_crm.overview.contact_persons.actions": string;
1208
+ "wise_crm.overview.contact_persons.primary": string;
1209
+ "wise_crm.overview.contact_persons.empty": string;
1210
+ "wise_crm.overview.structure.empty": string;
1211
+ "wise_crm.overview.structure.parent": string;
1212
+ "wise_crm.overview.structure.title": string;
1213
+ "wise_crm.info_dialog.contact_info.description": string;
840
1214
  "wise_crm.shared.create": string;
841
1215
  "wise_crm.shared.delete": string;
842
1216
  "wise_crm.shared.departments_amount": string;
843
1217
  "wise_crm.shared.home_address": string;
844
1218
  "wise_crm.shared.loading": string;
1219
+ "wise_crm.config_guard.compact_description": string;
1220
+ "wise_crm.config_guard.description": string;
1221
+ "wise_crm.config_guard.retry": string;
1222
+ "wise_crm.config_guard.title": string;
845
1223
  "wise_crm.shared.next": string;
846
1224
  "wise_crm.shared.notes": string;
847
1225
  "wise_crm.shared.or": string;
@@ -853,11 +1231,14 @@ export declare const wiseCrmLocales: {
853
1231
  "component.zod_error.title": string;
854
1232
  "component.zod_error.message": string;
855
1233
  "wise_crm.info_dialog.business.information.billing_information.purchase_notes_different_switch": string;
1234
+ "wise_crm.info_dialog.business.information.billing_information.exceptions.title": string;
1235
+ "wise_crm.info_dialog.business.information.billing_information.exceptions.description": string;
856
1236
  "module.crm.info_dialog.individual.tabs.info.label": string;
857
1237
  "wise_crm.deal.form.fields.name": string;
858
1238
  "wise_crm.deal.form.fields.quote": string;
859
1239
  "wise_crm.deal.overview_title": string;
860
1240
  "wise_crm.deal.overview.column.card.empty_deal_owner": string;
1241
+ "wise_crm.deal.overview.column.empty": string;
861
1242
  "wise_crm.deal.overview.create": string;
862
1243
  "wise_crm.deal.overview.settings": string;
863
1244
  "wise_crm.deal.form.fields.name_placeholder": string;
@@ -884,6 +1265,11 @@ export declare const wiseCrmLocales: {
884
1265
  "wise_crm.deal.transition.placeholder": string;
885
1266
  "wise_crm.deal.detail.sidebar.name_field.label": string;
886
1267
  "wise_crm.deal.detail.sidebar.name_field.edit_label": string;
1268
+ "wise_crm.deal.detail.sidebar.delete.label": string;
1269
+ "wise_crm.deal.detail.sidebar.delete.title": string;
1270
+ "wise_crm.deal.detail.sidebar.delete.description": string;
1271
+ "wise_crm.deal.detail.sidebar.owner_select.label": string;
1272
+ "wise_crm.deal.detail.sidebar.owner_select.placeholder": string;
887
1273
  "wise_crm.deal.settings.title": string;
888
1274
  "wise_crm.deal.settings.mail_template.title": string;
889
1275
  "wise_crm.deal.settings.mail_template.default_cc_label": string;
@@ -970,6 +1356,9 @@ export declare const wiseCrmLocales: {
970
1356
  "component.filters_dropdown_menu.clear_all_filters": string;
971
1357
  "wise_crm.deal.form.fields.quote": string;
972
1358
  "wise_crm.deal.filters.owner.label": string;
1359
+ "wise_crm.deal.filters.business.label": string;
1360
+ "wise_crm.deal.filters.individual.label": string;
1361
+ "wise_crm.deal.filters.deal_number.placeholder": string;
973
1362
  "component.filters_dropdown_menu.filter": string;
974
1363
  "component.filters_active.no_active_filters": string;
975
1364
  "component.api_error.default_title": string;
@@ -1011,10 +1400,12 @@ export declare const wiseCrmLocales: {
1011
1400
  "enum.api_error_code.individual_contact_person_not_found": string;
1012
1401
  "enum.api_error_code.individual_not_found": string;
1013
1402
  "enum.api_error_code.internal_server_error": string;
1403
+ "enum.api_error_code.invalid_business_individual": string;
1014
1404
  "enum.api_error_code.invalid_holiday_end_date": string;
1015
1405
  "enum.api_error_code.business_vat_number_already_exists": string;
1016
1406
  "enum.api_error_code.invalid_holiday_start_date": string;
1017
1407
  "enum.api_error_code.job_not_found": string;
1408
+ "enum.api_error_code.kbo_validation_service_unavailable": string;
1018
1409
  "enum.api_error_code.location_not_found": string;
1019
1410
  "enum.api_error_code.max_time_in_vehicle_formula_not_found": string;
1020
1411
  "enum.api_error_code.migration_already_performed": string;
@@ -1048,6 +1439,7 @@ export declare const wiseCrmLocales: {
1048
1439
  "enum.api_error_code.shift_overlaps_with_full_day_absence": string;
1049
1440
  "enum.api_error_code.simulation_cannot_be_deleted": string;
1050
1441
  "enum.api_error_code.tenant_not_found": string;
1442
+ "enum.api_error_code.tenant_with_domain_not_found": string;
1051
1443
  "enum.api_error_code.user_not_found": string;
1052
1444
  "enum.api_error_code.user_notification_not_found": string;
1053
1445
  "enum.api_error_code.user_connected_to_other_tenant": string;
@@ -1372,6 +1764,7 @@ export declare const wiseCrmLocales: {
1372
1764
  "wise_crm.widgets.individuals.since_last_month": string;
1373
1765
  "wise_crm.widgets.individuals.title": string;
1374
1766
  "wise_crm.widgets.individuals.value_since_last_month": string;
1767
+ "wise_crm.business.autocomplete.cbe_result_label": string;
1375
1768
  "wise_crm.business.form.address": string;
1376
1769
  "wise_crm.business.form.business_number": string;
1377
1770
  "wise_crm.business.form.general_information": string;
@@ -1433,6 +1826,7 @@ export declare const wiseCrmLocales: {
1433
1826
  "wise_crm.info_dialog.customer_info_update_dialog.form.ssn_label": string;
1434
1827
  "wise_crm.info_dialog.customer_info_update_dialog.title": string;
1435
1828
  "wise_crm.info_dialog.info_business_info.card.title": string;
1829
+ "wise_crm.info_dialog.info_business_info.card.description": string;
1436
1830
  "wise_crm.info_dialog.invoice_dialog.form.billing_address": string;
1437
1831
  "wise_crm.info_dialog.invoice_dialog.form.billing_address_same_as": string;
1438
1832
  "wise_crm.info_dialog.invoice_dialog.form.billing_information": string;
@@ -1477,19 +1871,45 @@ export declare const wiseCrmLocales: {
1477
1871
  "wise_crm.shared.back": string;
1478
1872
  "wise_crm.shared.skip": string;
1479
1873
  "wise_crm.deal.detail_view.communication_tab_label": string;
1874
+ "wise_crm.detail_view.close": string;
1875
+ "wise_crm.detail_view.copy_link": string;
1876
+ "wise_crm.detail_view.more_actions": string;
1877
+ "wise_crm.detail_view.send_email": string;
1878
+ "wise_crm.detail_view.call": string;
1879
+ "wise_crm.detail_view.open_address": string;
1880
+ "wise_crm.detail_view.footer": string;
1881
+ "wise_crm.detail_view.identifier": string;
1882
+ "wise_crm.detail_view.since": string;
1480
1883
  "wise_crm.shared.contact_info": string;
1884
+ "wise_crm.overview.custom_fields.title": string;
1885
+ "wise_crm.shared.no": string;
1886
+ "wise_crm.shared.yes": string;
1887
+ "wise_crm.overview.billing_information.empty": string;
1888
+ "wise_crm.overview.contact_persons.actions": string;
1889
+ "wise_crm.overview.contact_persons.primary": string;
1890
+ "wise_crm.overview.contact_persons.empty": string;
1891
+ "wise_crm.overview.structure.empty": string;
1892
+ "wise_crm.overview.structure.parent": string;
1893
+ "wise_crm.overview.structure.title": string;
1894
+ "wise_crm.info_dialog.contact_info.description": string;
1481
1895
  "wise_crm.shared.create": string;
1482
1896
  "wise_crm.shared.delete": string;
1483
1897
  "wise_crm.shared.departments_amount": string;
1484
1898
  "wise_crm.shared.home_address": string;
1485
1899
  "wise_crm.shared.loading": string;
1900
+ "wise_crm.config_guard.compact_description": string;
1901
+ "wise_crm.config_guard.description": string;
1902
+ "wise_crm.config_guard.retry": string;
1903
+ "wise_crm.config_guard.title": string;
1486
1904
  "wise_crm.shared.next": string;
1487
1905
  "wise_crm.shared.notes": string;
1488
1906
  "wise_crm.shared.or": string;
1489
1907
  "wise_crm.shared.overview": string;
1490
1908
  "wise_crm.shared.save_changes": string;
1491
1909
  "wise_crm.info_dialog.info.billing_information.card.title": string;
1910
+ "wise_crm.info_dialog.info.billing_information.card.description": string;
1492
1911
  "wise_crm.info_dialog.info_individual_info.card.title": string;
1912
+ "wise_crm.info_dialog.info_individual_info.card.description": string;
1493
1913
  "wise_crm.info_dialog.business.information.billing_information.reminder_different_switch": string;
1494
1914
  "component.zod_error.copy_details": string;
1495
1915
  "crm.search_trigger.footer.add_entity": string;
@@ -1497,10 +1917,13 @@ export declare const wiseCrmLocales: {
1497
1917
  "component.zod_error.title": string;
1498
1918
  "component.zod_error.message": string;
1499
1919
  "wise_crm.info_dialog.business.information.billing_information.purchase_notes_different_switch": string;
1920
+ "wise_crm.info_dialog.business.information.billing_information.exceptions.title": string;
1921
+ "wise_crm.info_dialog.business.information.billing_information.exceptions.description": string;
1500
1922
  "module.crm.info_dialog.individual.tabs.info.label": string;
1501
1923
  "wise_crm.deal.form.fields.name": string;
1502
1924
  "wise_crm.deal.overview_title": string;
1503
1925
  "wise_crm.deal.overview.column.card.empty_deal_owner": string;
1926
+ "wise_crm.deal.overview.column.empty": string;
1504
1927
  "wise_crm.deal.overview.create": string;
1505
1928
  "wise_crm.deal.overview.settings": string;
1506
1929
  "wise_crm.deal.form.fields.search_vat_number": string;
@@ -1527,6 +1950,11 @@ export declare const wiseCrmLocales: {
1527
1950
  "wise_crm.deal.transition.placeholder": string;
1528
1951
  "wise_crm.deal.detail.sidebar.name_field.label": string;
1529
1952
  "wise_crm.deal.detail.sidebar.name_field.edit_label": string;
1953
+ "wise_crm.deal.detail.sidebar.delete.label": string;
1954
+ "wise_crm.deal.detail.sidebar.delete.title": string;
1955
+ "wise_crm.deal.detail.sidebar.delete.description": string;
1956
+ "wise_crm.deal.detail.sidebar.owner_select.label": string;
1957
+ "wise_crm.deal.detail.sidebar.owner_select.placeholder": string;
1530
1958
  "wise_crm.deal.settings.title": string;
1531
1959
  "wise_crm.deal.settings.mail_template.title": string;
1532
1960
  "wise_crm.deal.settings.mail_template.default_cc_label": string;
@@ -1589,16 +2017,15 @@ export declare const wiseCrmLocales: {
1589
2017
  };
1590
2018
  };
1591
2019
 
1592
- export declare const WiseCrmOverviewContent: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
2020
+ export declare const WiseCrmOverviewContent: DefineComponent< {
2021
+ isAutoFocusDisabled?: boolean;
2022
+ }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
2023
+ isAutoFocusDisabled?: boolean;
2024
+ }> & Readonly<{}>, {
1593
2025
  isAutoFocusDisabled: boolean;
1594
2026
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1595
2027
 
1596
2028
  export declare interface WiseCrmQueryKeys {
1597
- billingInformationDetail: {
1598
- params: {
1599
- billingInformationUuid: ComputedRef<BillingInformationUuid | null>;
1600
- };
1601
- };
1602
2029
  boardColumnsIndex: void;
1603
2030
  boardColumnsTransition: {
1604
2031
  params: {
@@ -1618,23 +2045,18 @@ export declare interface WiseCrmQueryKeys {
1618
2045
  };
1619
2046
  contactPersonDetail: {
1620
2047
  params: {
1621
- contactPersonUuid: ComputedRef<WiseCrmIndividualUuid_2 | null>;
1622
- };
1623
- };
1624
- customFieldDefinitionIndex: {
1625
- params: {
1626
- entityType: EntityType;
2048
+ contactPersonUuid: ComputedRef<WiseCrmIndividualUuid | null>;
1627
2049
  };
1628
2050
  };
1629
2051
  dealContactPersonDetail: {
1630
2052
  params: {
1631
- contactPersonUuid: ComputedRef<IndividualUuid>;
1632
- dealUuid: ComputedRef<DealUuid>;
2053
+ contactPersonUuid: ComputedRef<WiseCrmIndividualUuid>;
2054
+ dealUuid: ComputedRef<WiseCrmDealUuid>;
1633
2055
  };
1634
2056
  };
1635
2057
  dealDetail: {
1636
2058
  params: {
1637
- dealUuid: ComputedRef<DealUuid>;
2059
+ dealUuid: ComputedRef<WiseCrmDealUuid>;
1638
2060
  };
1639
2061
  };
1640
2062
  dealIndex: {
@@ -1654,14 +2076,14 @@ export declare interface WiseCrmQueryKeys {
1654
2076
  queryParams?: InfiniteQueryOptions<IndividualIndexQueryParams>['params'];
1655
2077
  };
1656
2078
  };
1657
- individualSearchIndex: {
2079
+ mailIndex: {
1658
2080
  params: {
1659
- searchTerm?: ComputedRef<string | null>;
2081
+ queryParams?: InfiniteQueryOptions<MailIndexQueryParams>['params'];
1660
2082
  };
1661
2083
  };
1662
- mailIndex: {
2084
+ mailLastDealRecipients: {
1663
2085
  params: {
1664
- queryParams?: InfiniteQueryOptions<MailIndexQueryParams>['params'];
2086
+ dealUuid: ComputedRef<WiseCrmDealUuid>;
1665
2087
  };
1666
2088
  };
1667
2089
  mailTemplateDetail: {
@@ -1699,36 +2121,72 @@ export declare interface WiseCrmQueryKeys {
1699
2121
  params: InfiniteQueryOptions<UserIndexQueryParams>['params'];
1700
2122
  };
1701
2123
  };
1702
- userSearchByTerm: {
1703
- params: {
1704
- searchTerm: ComputedRef<string>;
1705
- };
1706
- };
1707
2124
  wiseCrmBusinessBillingInformation: {
1708
2125
  params: {
1709
- businessUuid: ComputedRef<WiseCrmBusinessUuid_2>;
2126
+ businessUuid: ComputedRef<WiseCrmBusinessUuid>;
1710
2127
  };
1711
2128
  };
1712
2129
  wiseCrmBusinessDetail: {
1713
2130
  params: {
1714
- businessUuid: ComputedRef<WiseCrmBusinessUuid_2 | null>;
2131
+ businessUuid: ComputedRef<WiseCrmBusinessUuid | null>;
1715
2132
  };
1716
2133
  };
1717
2134
  wiseCrmBusinessStatistics: void;
2135
+ wiseCrmHeaderBadge: {
2136
+ params: {
2137
+ uuid: ComputedRef<string>;
2138
+ badgeKey: ComputedRef<string>;
2139
+ entity: ComputedRef<HeaderBadgeEntity>;
2140
+ locale: ComputedRef<string>;
2141
+ };
2142
+ };
2143
+ wiseCrmHostEntityOverview: {
2144
+ params: {
2145
+ entity: ComputedRef<EntityOverviewEntity>;
2146
+ search: ComputedRef<string | null>;
2147
+ };
2148
+ };
1718
2149
  wiseCrmIndividualBillingInformation: {
1719
2150
  params: {
1720
- individualUuid: ComputedRef<WiseCrmIndividualUuid_2 | null>;
2151
+ individualUuid: ComputedRef<WiseCrmIndividualUuid | null>;
1721
2152
  };
1722
2153
  };
1723
2154
  wiseCrmIndividualDetail: {
1724
2155
  params: {
1725
- individualUuid: ComputedRef<WiseCrmIndividualUuid_2 | null>;
2156
+ individualUuid: ComputedRef<WiseCrmIndividualUuid | null>;
1726
2157
  };
1727
2158
  };
1728
2159
  wiseCrmIndividualStatistics: void;
1729
2160
  wiseCrmRecentEntities: void;
1730
2161
  }
1731
2162
 
1732
- export declare const WiseCrmRecentlyCreatedWidget: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
2163
+ /**
2164
+ * A consumer-provided widget rendered at the end of the side column
2165
+ * of the Overview tab in a detail view.
2166
+ *
2167
+ * `TProps` are the props the package passes to `component`.
2168
+ */
2169
+ export declare interface WiseCrmSidebarSection<TProps extends Record<string, unknown>> {
2170
+ icon: Component;
2171
+ /**
2172
+ * Unique per entity.
2173
+ */
2174
+ key: string;
2175
+ label: ComputedRef<string>;
2176
+ /**
2177
+ * Hides the section while it returns `false`. Called once in the Overview tab's setup,
2178
+ * so it may use composables such as queries. Omit to always show the section.
2179
+ */
2180
+ useIsVisible?: (props: ComputedRef<TProps>) => ComputedRef<boolean>;
2181
+ component: Component<TProps>;
2182
+ }
2183
+
2184
+ declare interface WithFilterQuery<TFilters extends Record<string, any>> {
2185
+ filters: TFilters;
2186
+ }
2187
+
2188
+ declare interface WithSearchQuery {
2189
+ search?: string;
2190
+ }
1733
2191
 
1734
2192
  export { }