@voyantjs/crm-react 0.1.1 → 0.3.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.
@@ -0,0 +1,1345 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseActivitiesOptions } from "./hooks/use-activities.js";
3
+ import type { UseOpportunitiesOptions } from "./hooks/use-opportunities.js";
4
+ import type { UseOrganizationsOptions } from "./hooks/use-organizations.js";
5
+ import type { UsePeopleOptions } from "./hooks/use-people.js";
6
+ import type { UsePipelinesOptions } from "./hooks/use-pipelines.js";
7
+ import type { UseQuotesOptions } from "./hooks/use-quotes.js";
8
+ import type { UseStagesOptions } from "./hooks/use-stages.js";
9
+ export declare function getActivitiesQueryOptions(client: FetchWithValidationOptions, options?: UseActivitiesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
10
+ data: {
11
+ id: string;
12
+ subject: string;
13
+ type: string;
14
+ ownerId: string | null;
15
+ status: string;
16
+ dueAt: string | null;
17
+ completedAt: string | null;
18
+ location: string | null;
19
+ description: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ }[];
23
+ total: number;
24
+ limit: number;
25
+ offset: number;
26
+ }, Error, {
27
+ data: {
28
+ id: string;
29
+ subject: string;
30
+ type: string;
31
+ ownerId: string | null;
32
+ status: string;
33
+ dueAt: string | null;
34
+ completedAt: string | null;
35
+ location: string | null;
36
+ description: string | null;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ }[];
40
+ total: number;
41
+ limit: number;
42
+ offset: number;
43
+ }, readonly ["voyant", "crm", "activities", "list", import("./query-keys.js").ActivitiesListFilters]>, "queryFn"> & {
44
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
45
+ data: {
46
+ id: string;
47
+ subject: string;
48
+ type: string;
49
+ ownerId: string | null;
50
+ status: string;
51
+ dueAt: string | null;
52
+ completedAt: string | null;
53
+ location: string | null;
54
+ description: string | null;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ }[];
58
+ total: number;
59
+ limit: number;
60
+ offset: number;
61
+ }, readonly ["voyant", "crm", "activities", "list", import("./query-keys.js").ActivitiesListFilters], never> | undefined;
62
+ } & {
63
+ queryKey: readonly ["voyant", "crm", "activities", "list", import("./query-keys.js").ActivitiesListFilters] & {
64
+ [dataTagSymbol]: {
65
+ data: {
66
+ id: string;
67
+ subject: string;
68
+ type: string;
69
+ ownerId: string | null;
70
+ status: string;
71
+ dueAt: string | null;
72
+ completedAt: string | null;
73
+ location: string | null;
74
+ description: string | null;
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ }[];
78
+ total: number;
79
+ limit: number;
80
+ offset: number;
81
+ };
82
+ [dataTagErrorSymbol]: Error;
83
+ };
84
+ };
85
+ export declare function getPeopleQueryOptions(client: FetchWithValidationOptions, options?: UsePeopleOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
86
+ data: {
87
+ id: string;
88
+ organizationId: string | null;
89
+ firstName: string;
90
+ lastName: string;
91
+ jobTitle: string | null;
92
+ relation: string | null;
93
+ preferredLanguage: string | null;
94
+ preferredCurrency: string | null;
95
+ ownerId: string | null;
96
+ status: string;
97
+ source: string | null;
98
+ sourceRef: string | null;
99
+ tags: string[];
100
+ birthday: string | null;
101
+ notes: string | null;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ email: string | null;
105
+ phone: string | null;
106
+ website: string | null;
107
+ address: string | null;
108
+ city: string | null;
109
+ country: string | null;
110
+ }[];
111
+ total: number;
112
+ limit: number;
113
+ offset: number;
114
+ }, Error, {
115
+ data: {
116
+ id: string;
117
+ organizationId: string | null;
118
+ firstName: string;
119
+ lastName: string;
120
+ jobTitle: string | null;
121
+ relation: string | null;
122
+ preferredLanguage: string | null;
123
+ preferredCurrency: string | null;
124
+ ownerId: string | null;
125
+ status: string;
126
+ source: string | null;
127
+ sourceRef: string | null;
128
+ tags: string[];
129
+ birthday: string | null;
130
+ notes: string | null;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ email: string | null;
134
+ phone: string | null;
135
+ website: string | null;
136
+ address: string | null;
137
+ city: string | null;
138
+ country: string | null;
139
+ }[];
140
+ total: number;
141
+ limit: number;
142
+ offset: number;
143
+ }, readonly ["voyant", "crm", "people", "list", import("./query-keys.js").PeopleListFilters]>, "queryFn"> & {
144
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
145
+ data: {
146
+ id: string;
147
+ organizationId: string | null;
148
+ firstName: string;
149
+ lastName: string;
150
+ jobTitle: string | null;
151
+ relation: string | null;
152
+ preferredLanguage: string | null;
153
+ preferredCurrency: string | null;
154
+ ownerId: string | null;
155
+ status: string;
156
+ source: string | null;
157
+ sourceRef: string | null;
158
+ tags: string[];
159
+ birthday: string | null;
160
+ notes: string | null;
161
+ createdAt: string;
162
+ updatedAt: string;
163
+ email: string | null;
164
+ phone: string | null;
165
+ website: string | null;
166
+ address: string | null;
167
+ city: string | null;
168
+ country: string | null;
169
+ }[];
170
+ total: number;
171
+ limit: number;
172
+ offset: number;
173
+ }, readonly ["voyant", "crm", "people", "list", import("./query-keys.js").PeopleListFilters], never> | undefined;
174
+ } & {
175
+ queryKey: readonly ["voyant", "crm", "people", "list", import("./query-keys.js").PeopleListFilters] & {
176
+ [dataTagSymbol]: {
177
+ data: {
178
+ id: string;
179
+ organizationId: string | null;
180
+ firstName: string;
181
+ lastName: string;
182
+ jobTitle: string | null;
183
+ relation: string | null;
184
+ preferredLanguage: string | null;
185
+ preferredCurrency: string | null;
186
+ ownerId: string | null;
187
+ status: string;
188
+ source: string | null;
189
+ sourceRef: string | null;
190
+ tags: string[];
191
+ birthday: string | null;
192
+ notes: string | null;
193
+ createdAt: string;
194
+ updatedAt: string;
195
+ email: string | null;
196
+ phone: string | null;
197
+ website: string | null;
198
+ address: string | null;
199
+ city: string | null;
200
+ country: string | null;
201
+ }[];
202
+ total: number;
203
+ limit: number;
204
+ offset: number;
205
+ };
206
+ [dataTagErrorSymbol]: Error;
207
+ };
208
+ };
209
+ export declare function getPersonQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
210
+ id: string;
211
+ organizationId: string | null;
212
+ firstName: string;
213
+ lastName: string;
214
+ jobTitle: string | null;
215
+ relation: string | null;
216
+ preferredLanguage: string | null;
217
+ preferredCurrency: string | null;
218
+ ownerId: string | null;
219
+ status: string;
220
+ source: string | null;
221
+ sourceRef: string | null;
222
+ tags: string[];
223
+ birthday: string | null;
224
+ notes: string | null;
225
+ createdAt: string;
226
+ updatedAt: string;
227
+ email: string | null;
228
+ phone: string | null;
229
+ website: string | null;
230
+ address: string | null;
231
+ city: string | null;
232
+ country: string | null;
233
+ }, Error, {
234
+ id: string;
235
+ organizationId: string | null;
236
+ firstName: string;
237
+ lastName: string;
238
+ jobTitle: string | null;
239
+ relation: string | null;
240
+ preferredLanguage: string | null;
241
+ preferredCurrency: string | null;
242
+ ownerId: string | null;
243
+ status: string;
244
+ source: string | null;
245
+ sourceRef: string | null;
246
+ tags: string[];
247
+ birthday: string | null;
248
+ notes: string | null;
249
+ createdAt: string;
250
+ updatedAt: string;
251
+ email: string | null;
252
+ phone: string | null;
253
+ website: string | null;
254
+ address: string | null;
255
+ city: string | null;
256
+ country: string | null;
257
+ }, readonly ["voyant", "crm", "people", "detail", string]>, "queryFn"> & {
258
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
259
+ id: string;
260
+ organizationId: string | null;
261
+ firstName: string;
262
+ lastName: string;
263
+ jobTitle: string | null;
264
+ relation: string | null;
265
+ preferredLanguage: string | null;
266
+ preferredCurrency: string | null;
267
+ ownerId: string | null;
268
+ status: string;
269
+ source: string | null;
270
+ sourceRef: string | null;
271
+ tags: string[];
272
+ birthday: string | null;
273
+ notes: string | null;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ email: string | null;
277
+ phone: string | null;
278
+ website: string | null;
279
+ address: string | null;
280
+ city: string | null;
281
+ country: string | null;
282
+ }, readonly ["voyant", "crm", "people", "detail", string], never> | undefined;
283
+ } & {
284
+ queryKey: readonly ["voyant", "crm", "people", "detail", string] & {
285
+ [dataTagSymbol]: {
286
+ id: string;
287
+ organizationId: string | null;
288
+ firstName: string;
289
+ lastName: string;
290
+ jobTitle: string | null;
291
+ relation: string | null;
292
+ preferredLanguage: string | null;
293
+ preferredCurrency: string | null;
294
+ ownerId: string | null;
295
+ status: string;
296
+ source: string | null;
297
+ sourceRef: string | null;
298
+ tags: string[];
299
+ birthday: string | null;
300
+ notes: string | null;
301
+ createdAt: string;
302
+ updatedAt: string;
303
+ email: string | null;
304
+ phone: string | null;
305
+ website: string | null;
306
+ address: string | null;
307
+ city: string | null;
308
+ country: string | null;
309
+ };
310
+ [dataTagErrorSymbol]: Error;
311
+ };
312
+ };
313
+ export declare function getPersonNotesQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
314
+ data: {
315
+ id: string;
316
+ personId: string;
317
+ authorId: string;
318
+ content: string;
319
+ createdAt: string;
320
+ }[];
321
+ total: number;
322
+ limit: number;
323
+ offset: number;
324
+ }, Error, {
325
+ data: {
326
+ id: string;
327
+ personId: string;
328
+ authorId: string;
329
+ content: string;
330
+ createdAt: string;
331
+ }[];
332
+ total: number;
333
+ limit: number;
334
+ offset: number;
335
+ }, string[]>, "queryFn"> & {
336
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
337
+ data: {
338
+ id: string;
339
+ personId: string;
340
+ authorId: string;
341
+ content: string;
342
+ createdAt: string;
343
+ }[];
344
+ total: number;
345
+ limit: number;
346
+ offset: number;
347
+ }, string[], never> | undefined;
348
+ } & {
349
+ queryKey: string[] & {
350
+ [dataTagSymbol]: {
351
+ data: {
352
+ id: string;
353
+ personId: string;
354
+ authorId: string;
355
+ content: string;
356
+ createdAt: string;
357
+ }[];
358
+ total: number;
359
+ limit: number;
360
+ offset: number;
361
+ };
362
+ [dataTagErrorSymbol]: Error;
363
+ };
364
+ };
365
+ export declare function getPersonActivitiesQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
366
+ data: {
367
+ id: string;
368
+ subject: string;
369
+ type: string;
370
+ ownerId: string | null;
371
+ status: string;
372
+ dueAt: string | null;
373
+ completedAt: string | null;
374
+ location: string | null;
375
+ description: string | null;
376
+ createdAt: string;
377
+ updatedAt: string;
378
+ }[];
379
+ total: number;
380
+ limit: number;
381
+ offset: number;
382
+ }, Error, {
383
+ data: {
384
+ id: string;
385
+ subject: string;
386
+ type: string;
387
+ ownerId: string | null;
388
+ status: string;
389
+ dueAt: string | null;
390
+ completedAt: string | null;
391
+ location: string | null;
392
+ description: string | null;
393
+ createdAt: string;
394
+ updatedAt: string;
395
+ }[];
396
+ total: number;
397
+ limit: number;
398
+ offset: number;
399
+ }, string[]>, "queryFn"> & {
400
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
401
+ data: {
402
+ id: string;
403
+ subject: string;
404
+ type: string;
405
+ ownerId: string | null;
406
+ status: string;
407
+ dueAt: string | null;
408
+ completedAt: string | null;
409
+ location: string | null;
410
+ description: string | null;
411
+ createdAt: string;
412
+ updatedAt: string;
413
+ }[];
414
+ total: number;
415
+ limit: number;
416
+ offset: number;
417
+ }, string[], never> | undefined;
418
+ } & {
419
+ queryKey: string[] & {
420
+ [dataTagSymbol]: {
421
+ data: {
422
+ id: string;
423
+ subject: string;
424
+ type: string;
425
+ ownerId: string | null;
426
+ status: string;
427
+ dueAt: string | null;
428
+ completedAt: string | null;
429
+ location: string | null;
430
+ description: string | null;
431
+ createdAt: string;
432
+ updatedAt: string;
433
+ }[];
434
+ total: number;
435
+ limit: number;
436
+ offset: number;
437
+ };
438
+ [dataTagErrorSymbol]: Error;
439
+ };
440
+ };
441
+ export declare function getPersonOpportunitiesQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
442
+ data: {
443
+ id: string;
444
+ title: string;
445
+ personId: string | null;
446
+ organizationId: string | null;
447
+ pipelineId: string;
448
+ stageId: string;
449
+ ownerId: string | null;
450
+ status: string;
451
+ valueAmountCents: number | null;
452
+ valueCurrency: string | null;
453
+ expectedCloseDate: string | null;
454
+ source: string | null;
455
+ sourceRef: string | null;
456
+ lostReason: string | null;
457
+ tags: string[];
458
+ createdAt: string;
459
+ updatedAt: string;
460
+ stageChangedAt: string;
461
+ closedAt: string | null;
462
+ }[];
463
+ total: number;
464
+ limit: number;
465
+ offset: number;
466
+ }, Error, {
467
+ data: {
468
+ id: string;
469
+ title: string;
470
+ personId: string | null;
471
+ organizationId: string | null;
472
+ pipelineId: string;
473
+ stageId: string;
474
+ ownerId: string | null;
475
+ status: string;
476
+ valueAmountCents: number | null;
477
+ valueCurrency: string | null;
478
+ expectedCloseDate: string | null;
479
+ source: string | null;
480
+ sourceRef: string | null;
481
+ lostReason: string | null;
482
+ tags: string[];
483
+ createdAt: string;
484
+ updatedAt: string;
485
+ stageChangedAt: string;
486
+ closedAt: string | null;
487
+ }[];
488
+ total: number;
489
+ limit: number;
490
+ offset: number;
491
+ }, string[]>, "queryFn"> & {
492
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
493
+ data: {
494
+ id: string;
495
+ title: string;
496
+ personId: string | null;
497
+ organizationId: string | null;
498
+ pipelineId: string;
499
+ stageId: string;
500
+ ownerId: string | null;
501
+ status: string;
502
+ valueAmountCents: number | null;
503
+ valueCurrency: string | null;
504
+ expectedCloseDate: string | null;
505
+ source: string | null;
506
+ sourceRef: string | null;
507
+ lostReason: string | null;
508
+ tags: string[];
509
+ createdAt: string;
510
+ updatedAt: string;
511
+ stageChangedAt: string;
512
+ closedAt: string | null;
513
+ }[];
514
+ total: number;
515
+ limit: number;
516
+ offset: number;
517
+ }, string[], never> | undefined;
518
+ } & {
519
+ queryKey: string[] & {
520
+ [dataTagSymbol]: {
521
+ data: {
522
+ id: string;
523
+ title: string;
524
+ personId: string | null;
525
+ organizationId: string | null;
526
+ pipelineId: string;
527
+ stageId: string;
528
+ ownerId: string | null;
529
+ status: string;
530
+ valueAmountCents: number | null;
531
+ valueCurrency: string | null;
532
+ expectedCloseDate: string | null;
533
+ source: string | null;
534
+ sourceRef: string | null;
535
+ lostReason: string | null;
536
+ tags: string[];
537
+ createdAt: string;
538
+ updatedAt: string;
539
+ stageChangedAt: string;
540
+ closedAt: string | null;
541
+ }[];
542
+ total: number;
543
+ limit: number;
544
+ offset: number;
545
+ };
546
+ [dataTagErrorSymbol]: Error;
547
+ };
548
+ };
549
+ export declare function getOrganizationsQueryOptions(client: FetchWithValidationOptions, options?: UseOrganizationsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
550
+ data: {
551
+ id: string;
552
+ name: string;
553
+ legalName: string | null;
554
+ website: string | null;
555
+ industry: string | null;
556
+ relation: string | null;
557
+ ownerId: string | null;
558
+ defaultCurrency: string | null;
559
+ preferredLanguage: string | null;
560
+ paymentTerms: number | null;
561
+ status: string;
562
+ source: string | null;
563
+ sourceRef: string | null;
564
+ tags: string[];
565
+ notes: string | null;
566
+ createdAt: string;
567
+ updatedAt: string;
568
+ }[];
569
+ total: number;
570
+ limit: number;
571
+ offset: number;
572
+ }, Error, {
573
+ data: {
574
+ id: string;
575
+ name: string;
576
+ legalName: string | null;
577
+ website: string | null;
578
+ industry: string | null;
579
+ relation: string | null;
580
+ ownerId: string | null;
581
+ defaultCurrency: string | null;
582
+ preferredLanguage: string | null;
583
+ paymentTerms: number | null;
584
+ status: string;
585
+ source: string | null;
586
+ sourceRef: string | null;
587
+ tags: string[];
588
+ notes: string | null;
589
+ createdAt: string;
590
+ updatedAt: string;
591
+ }[];
592
+ total: number;
593
+ limit: number;
594
+ offset: number;
595
+ }, readonly ["voyant", "crm", "organizations", "list", import("./query-keys.js").OrganizationsListFilters]>, "queryFn"> & {
596
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
597
+ data: {
598
+ id: string;
599
+ name: string;
600
+ legalName: string | null;
601
+ website: string | null;
602
+ industry: string | null;
603
+ relation: string | null;
604
+ ownerId: string | null;
605
+ defaultCurrency: string | null;
606
+ preferredLanguage: string | null;
607
+ paymentTerms: number | null;
608
+ status: string;
609
+ source: string | null;
610
+ sourceRef: string | null;
611
+ tags: string[];
612
+ notes: string | null;
613
+ createdAt: string;
614
+ updatedAt: string;
615
+ }[];
616
+ total: number;
617
+ limit: number;
618
+ offset: number;
619
+ }, readonly ["voyant", "crm", "organizations", "list", import("./query-keys.js").OrganizationsListFilters], never> | undefined;
620
+ } & {
621
+ queryKey: readonly ["voyant", "crm", "organizations", "list", import("./query-keys.js").OrganizationsListFilters] & {
622
+ [dataTagSymbol]: {
623
+ data: {
624
+ id: string;
625
+ name: string;
626
+ legalName: string | null;
627
+ website: string | null;
628
+ industry: string | null;
629
+ relation: string | null;
630
+ ownerId: string | null;
631
+ defaultCurrency: string | null;
632
+ preferredLanguage: string | null;
633
+ paymentTerms: number | null;
634
+ status: string;
635
+ source: string | null;
636
+ sourceRef: string | null;
637
+ tags: string[];
638
+ notes: string | null;
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ }[];
642
+ total: number;
643
+ limit: number;
644
+ offset: number;
645
+ };
646
+ [dataTagErrorSymbol]: Error;
647
+ };
648
+ };
649
+ export declare function getOrganizationQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
650
+ id: string;
651
+ name: string;
652
+ legalName: string | null;
653
+ website: string | null;
654
+ industry: string | null;
655
+ relation: string | null;
656
+ ownerId: string | null;
657
+ defaultCurrency: string | null;
658
+ preferredLanguage: string | null;
659
+ paymentTerms: number | null;
660
+ status: string;
661
+ source: string | null;
662
+ sourceRef: string | null;
663
+ tags: string[];
664
+ notes: string | null;
665
+ createdAt: string;
666
+ updatedAt: string;
667
+ }, Error, {
668
+ id: string;
669
+ name: string;
670
+ legalName: string | null;
671
+ website: string | null;
672
+ industry: string | null;
673
+ relation: string | null;
674
+ ownerId: string | null;
675
+ defaultCurrency: string | null;
676
+ preferredLanguage: string | null;
677
+ paymentTerms: number | null;
678
+ status: string;
679
+ source: string | null;
680
+ sourceRef: string | null;
681
+ tags: string[];
682
+ notes: string | null;
683
+ createdAt: string;
684
+ updatedAt: string;
685
+ }, readonly ["voyant", "crm", "organizations", "detail", string]>, "queryFn"> & {
686
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
687
+ id: string;
688
+ name: string;
689
+ legalName: string | null;
690
+ website: string | null;
691
+ industry: string | null;
692
+ relation: string | null;
693
+ ownerId: string | null;
694
+ defaultCurrency: string | null;
695
+ preferredLanguage: string | null;
696
+ paymentTerms: number | null;
697
+ status: string;
698
+ source: string | null;
699
+ sourceRef: string | null;
700
+ tags: string[];
701
+ notes: string | null;
702
+ createdAt: string;
703
+ updatedAt: string;
704
+ }, readonly ["voyant", "crm", "organizations", "detail", string], never> | undefined;
705
+ } & {
706
+ queryKey: readonly ["voyant", "crm", "organizations", "detail", string] & {
707
+ [dataTagSymbol]: {
708
+ id: string;
709
+ name: string;
710
+ legalName: string | null;
711
+ website: string | null;
712
+ industry: string | null;
713
+ relation: string | null;
714
+ ownerId: string | null;
715
+ defaultCurrency: string | null;
716
+ preferredLanguage: string | null;
717
+ paymentTerms: number | null;
718
+ status: string;
719
+ source: string | null;
720
+ sourceRef: string | null;
721
+ tags: string[];
722
+ notes: string | null;
723
+ createdAt: string;
724
+ updatedAt: string;
725
+ };
726
+ [dataTagErrorSymbol]: Error;
727
+ };
728
+ };
729
+ export declare function getPipelinesQueryOptions(client: FetchWithValidationOptions, options?: UsePipelinesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
730
+ data: {
731
+ id: string;
732
+ entityType: string;
733
+ name: string;
734
+ isDefault: boolean;
735
+ sortOrder: number;
736
+ createdAt: string;
737
+ updatedAt: string;
738
+ }[];
739
+ total: number;
740
+ limit: number;
741
+ offset: number;
742
+ }, Error, {
743
+ data: {
744
+ id: string;
745
+ entityType: string;
746
+ name: string;
747
+ isDefault: boolean;
748
+ sortOrder: number;
749
+ createdAt: string;
750
+ updatedAt: string;
751
+ }[];
752
+ total: number;
753
+ limit: number;
754
+ offset: number;
755
+ }, readonly ["voyant", "crm", "pipelines", "list", import("./query-keys.js").PipelinesListFilters]>, "queryFn"> & {
756
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
757
+ data: {
758
+ id: string;
759
+ entityType: string;
760
+ name: string;
761
+ isDefault: boolean;
762
+ sortOrder: number;
763
+ createdAt: string;
764
+ updatedAt: string;
765
+ }[];
766
+ total: number;
767
+ limit: number;
768
+ offset: number;
769
+ }, readonly ["voyant", "crm", "pipelines", "list", import("./query-keys.js").PipelinesListFilters], never> | undefined;
770
+ } & {
771
+ queryKey: readonly ["voyant", "crm", "pipelines", "list", import("./query-keys.js").PipelinesListFilters] & {
772
+ [dataTagSymbol]: {
773
+ data: {
774
+ id: string;
775
+ entityType: string;
776
+ name: string;
777
+ isDefault: boolean;
778
+ sortOrder: number;
779
+ createdAt: string;
780
+ updatedAt: string;
781
+ }[];
782
+ total: number;
783
+ limit: number;
784
+ offset: number;
785
+ };
786
+ [dataTagErrorSymbol]: Error;
787
+ };
788
+ };
789
+ export declare function getPipelineQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
790
+ id: string;
791
+ entityType: string;
792
+ name: string;
793
+ isDefault: boolean;
794
+ sortOrder: number;
795
+ createdAt: string;
796
+ updatedAt: string;
797
+ }, Error, {
798
+ id: string;
799
+ entityType: string;
800
+ name: string;
801
+ isDefault: boolean;
802
+ sortOrder: number;
803
+ createdAt: string;
804
+ updatedAt: string;
805
+ }, readonly ["voyant", "crm", "pipelines", "detail", string]>, "queryFn"> & {
806
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
807
+ id: string;
808
+ entityType: string;
809
+ name: string;
810
+ isDefault: boolean;
811
+ sortOrder: number;
812
+ createdAt: string;
813
+ updatedAt: string;
814
+ }, readonly ["voyant", "crm", "pipelines", "detail", string], never> | undefined;
815
+ } & {
816
+ queryKey: readonly ["voyant", "crm", "pipelines", "detail", string] & {
817
+ [dataTagSymbol]: {
818
+ id: string;
819
+ entityType: string;
820
+ name: string;
821
+ isDefault: boolean;
822
+ sortOrder: number;
823
+ createdAt: string;
824
+ updatedAt: string;
825
+ };
826
+ [dataTagErrorSymbol]: Error;
827
+ };
828
+ };
829
+ export declare function getStagesQueryOptions(client: FetchWithValidationOptions, options?: UseStagesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
830
+ data: {
831
+ id: string;
832
+ pipelineId: string;
833
+ name: string;
834
+ sortOrder: number;
835
+ probability: number | null;
836
+ isClosed: boolean;
837
+ isWon: boolean;
838
+ isLost: boolean;
839
+ createdAt: string;
840
+ updatedAt: string;
841
+ }[];
842
+ total: number;
843
+ limit: number;
844
+ offset: number;
845
+ }, Error, {
846
+ data: {
847
+ id: string;
848
+ pipelineId: string;
849
+ name: string;
850
+ sortOrder: number;
851
+ probability: number | null;
852
+ isClosed: boolean;
853
+ isWon: boolean;
854
+ isLost: boolean;
855
+ createdAt: string;
856
+ updatedAt: string;
857
+ }[];
858
+ total: number;
859
+ limit: number;
860
+ offset: number;
861
+ }, readonly ["voyant", "crm", "stages", "list", import("./query-keys.js").StagesListFilters]>, "queryFn"> & {
862
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
863
+ data: {
864
+ id: string;
865
+ pipelineId: string;
866
+ name: string;
867
+ sortOrder: number;
868
+ probability: number | null;
869
+ isClosed: boolean;
870
+ isWon: boolean;
871
+ isLost: boolean;
872
+ createdAt: string;
873
+ updatedAt: string;
874
+ }[];
875
+ total: number;
876
+ limit: number;
877
+ offset: number;
878
+ }, readonly ["voyant", "crm", "stages", "list", import("./query-keys.js").StagesListFilters], never> | undefined;
879
+ } & {
880
+ queryKey: readonly ["voyant", "crm", "stages", "list", import("./query-keys.js").StagesListFilters] & {
881
+ [dataTagSymbol]: {
882
+ data: {
883
+ id: string;
884
+ pipelineId: string;
885
+ name: string;
886
+ sortOrder: number;
887
+ probability: number | null;
888
+ isClosed: boolean;
889
+ isWon: boolean;
890
+ isLost: boolean;
891
+ createdAt: string;
892
+ updatedAt: string;
893
+ }[];
894
+ total: number;
895
+ limit: number;
896
+ offset: number;
897
+ };
898
+ [dataTagErrorSymbol]: Error;
899
+ };
900
+ };
901
+ export declare function getStageQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
902
+ id: string;
903
+ pipelineId: string;
904
+ name: string;
905
+ sortOrder: number;
906
+ probability: number | null;
907
+ isClosed: boolean;
908
+ isWon: boolean;
909
+ isLost: boolean;
910
+ createdAt: string;
911
+ updatedAt: string;
912
+ }, Error, {
913
+ id: string;
914
+ pipelineId: string;
915
+ name: string;
916
+ sortOrder: number;
917
+ probability: number | null;
918
+ isClosed: boolean;
919
+ isWon: boolean;
920
+ isLost: boolean;
921
+ createdAt: string;
922
+ updatedAt: string;
923
+ }, readonly ["voyant", "crm", "stages", "detail", string]>, "queryFn"> & {
924
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
925
+ id: string;
926
+ pipelineId: string;
927
+ name: string;
928
+ sortOrder: number;
929
+ probability: number | null;
930
+ isClosed: boolean;
931
+ isWon: boolean;
932
+ isLost: boolean;
933
+ createdAt: string;
934
+ updatedAt: string;
935
+ }, readonly ["voyant", "crm", "stages", "detail", string], never> | undefined;
936
+ } & {
937
+ queryKey: readonly ["voyant", "crm", "stages", "detail", string] & {
938
+ [dataTagSymbol]: {
939
+ id: string;
940
+ pipelineId: string;
941
+ name: string;
942
+ sortOrder: number;
943
+ probability: number | null;
944
+ isClosed: boolean;
945
+ isWon: boolean;
946
+ isLost: boolean;
947
+ createdAt: string;
948
+ updatedAt: string;
949
+ };
950
+ [dataTagErrorSymbol]: Error;
951
+ };
952
+ };
953
+ export declare function getOpportunitiesQueryOptions(client: FetchWithValidationOptions, options?: UseOpportunitiesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
954
+ data: {
955
+ id: string;
956
+ title: string;
957
+ personId: string | null;
958
+ organizationId: string | null;
959
+ pipelineId: string;
960
+ stageId: string;
961
+ ownerId: string | null;
962
+ status: string;
963
+ valueAmountCents: number | null;
964
+ valueCurrency: string | null;
965
+ expectedCloseDate: string | null;
966
+ source: string | null;
967
+ sourceRef: string | null;
968
+ lostReason: string | null;
969
+ tags: string[];
970
+ createdAt: string;
971
+ updatedAt: string;
972
+ stageChangedAt: string;
973
+ closedAt: string | null;
974
+ }[];
975
+ total: number;
976
+ limit: number;
977
+ offset: number;
978
+ }, Error, {
979
+ data: {
980
+ id: string;
981
+ title: string;
982
+ personId: string | null;
983
+ organizationId: string | null;
984
+ pipelineId: string;
985
+ stageId: string;
986
+ ownerId: string | null;
987
+ status: string;
988
+ valueAmountCents: number | null;
989
+ valueCurrency: string | null;
990
+ expectedCloseDate: string | null;
991
+ source: string | null;
992
+ sourceRef: string | null;
993
+ lostReason: string | null;
994
+ tags: string[];
995
+ createdAt: string;
996
+ updatedAt: string;
997
+ stageChangedAt: string;
998
+ closedAt: string | null;
999
+ }[];
1000
+ total: number;
1001
+ limit: number;
1002
+ offset: number;
1003
+ }, readonly ["voyant", "crm", "opportunities", "list", import("./query-keys.js").OpportunitiesListFilters]>, "queryFn"> & {
1004
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1005
+ data: {
1006
+ id: string;
1007
+ title: string;
1008
+ personId: string | null;
1009
+ organizationId: string | null;
1010
+ pipelineId: string;
1011
+ stageId: string;
1012
+ ownerId: string | null;
1013
+ status: string;
1014
+ valueAmountCents: number | null;
1015
+ valueCurrency: string | null;
1016
+ expectedCloseDate: string | null;
1017
+ source: string | null;
1018
+ sourceRef: string | null;
1019
+ lostReason: string | null;
1020
+ tags: string[];
1021
+ createdAt: string;
1022
+ updatedAt: string;
1023
+ stageChangedAt: string;
1024
+ closedAt: string | null;
1025
+ }[];
1026
+ total: number;
1027
+ limit: number;
1028
+ offset: number;
1029
+ }, readonly ["voyant", "crm", "opportunities", "list", import("./query-keys.js").OpportunitiesListFilters], never> | undefined;
1030
+ } & {
1031
+ queryKey: readonly ["voyant", "crm", "opportunities", "list", import("./query-keys.js").OpportunitiesListFilters] & {
1032
+ [dataTagSymbol]: {
1033
+ data: {
1034
+ id: string;
1035
+ title: string;
1036
+ personId: string | null;
1037
+ organizationId: string | null;
1038
+ pipelineId: string;
1039
+ stageId: string;
1040
+ ownerId: string | null;
1041
+ status: string;
1042
+ valueAmountCents: number | null;
1043
+ valueCurrency: string | null;
1044
+ expectedCloseDate: string | null;
1045
+ source: string | null;
1046
+ sourceRef: string | null;
1047
+ lostReason: string | null;
1048
+ tags: string[];
1049
+ createdAt: string;
1050
+ updatedAt: string;
1051
+ stageChangedAt: string;
1052
+ closedAt: string | null;
1053
+ }[];
1054
+ total: number;
1055
+ limit: number;
1056
+ offset: number;
1057
+ };
1058
+ [dataTagErrorSymbol]: Error;
1059
+ };
1060
+ };
1061
+ export declare function getOpportunityQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1062
+ id: string;
1063
+ title: string;
1064
+ personId: string | null;
1065
+ organizationId: string | null;
1066
+ pipelineId: string;
1067
+ stageId: string;
1068
+ ownerId: string | null;
1069
+ status: string;
1070
+ valueAmountCents: number | null;
1071
+ valueCurrency: string | null;
1072
+ expectedCloseDate: string | null;
1073
+ source: string | null;
1074
+ sourceRef: string | null;
1075
+ lostReason: string | null;
1076
+ tags: string[];
1077
+ createdAt: string;
1078
+ updatedAt: string;
1079
+ stageChangedAt: string;
1080
+ closedAt: string | null;
1081
+ }, Error, {
1082
+ id: string;
1083
+ title: string;
1084
+ personId: string | null;
1085
+ organizationId: string | null;
1086
+ pipelineId: string;
1087
+ stageId: string;
1088
+ ownerId: string | null;
1089
+ status: string;
1090
+ valueAmountCents: number | null;
1091
+ valueCurrency: string | null;
1092
+ expectedCloseDate: string | null;
1093
+ source: string | null;
1094
+ sourceRef: string | null;
1095
+ lostReason: string | null;
1096
+ tags: string[];
1097
+ createdAt: string;
1098
+ updatedAt: string;
1099
+ stageChangedAt: string;
1100
+ closedAt: string | null;
1101
+ }, readonly ["voyant", "crm", "opportunities", "detail", string]>, "queryFn"> & {
1102
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1103
+ id: string;
1104
+ title: string;
1105
+ personId: string | null;
1106
+ organizationId: string | null;
1107
+ pipelineId: string;
1108
+ stageId: string;
1109
+ ownerId: string | null;
1110
+ status: string;
1111
+ valueAmountCents: number | null;
1112
+ valueCurrency: string | null;
1113
+ expectedCloseDate: string | null;
1114
+ source: string | null;
1115
+ sourceRef: string | null;
1116
+ lostReason: string | null;
1117
+ tags: string[];
1118
+ createdAt: string;
1119
+ updatedAt: string;
1120
+ stageChangedAt: string;
1121
+ closedAt: string | null;
1122
+ }, readonly ["voyant", "crm", "opportunities", "detail", string], never> | undefined;
1123
+ } & {
1124
+ queryKey: readonly ["voyant", "crm", "opportunities", "detail", string] & {
1125
+ [dataTagSymbol]: {
1126
+ id: string;
1127
+ title: string;
1128
+ personId: string | null;
1129
+ organizationId: string | null;
1130
+ pipelineId: string;
1131
+ stageId: string;
1132
+ ownerId: string | null;
1133
+ status: string;
1134
+ valueAmountCents: number | null;
1135
+ valueCurrency: string | null;
1136
+ expectedCloseDate: string | null;
1137
+ source: string | null;
1138
+ sourceRef: string | null;
1139
+ lostReason: string | null;
1140
+ tags: string[];
1141
+ createdAt: string;
1142
+ updatedAt: string;
1143
+ stageChangedAt: string;
1144
+ closedAt: string | null;
1145
+ };
1146
+ [dataTagErrorSymbol]: Error;
1147
+ };
1148
+ };
1149
+ export declare function getQuotesQueryOptions(client: FetchWithValidationOptions, options?: UseQuotesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1150
+ data: {
1151
+ id: string;
1152
+ opportunityId: string;
1153
+ status: string;
1154
+ validUntil: string | null;
1155
+ currency: string;
1156
+ subtotalAmountCents: number;
1157
+ taxAmountCents: number;
1158
+ totalAmountCents: number;
1159
+ notes: string | null;
1160
+ createdAt: string;
1161
+ updatedAt: string;
1162
+ archivedAt: string | null;
1163
+ }[];
1164
+ total: number;
1165
+ limit: number;
1166
+ offset: number;
1167
+ }, Error, {
1168
+ data: {
1169
+ id: string;
1170
+ opportunityId: string;
1171
+ status: string;
1172
+ validUntil: string | null;
1173
+ currency: string;
1174
+ subtotalAmountCents: number;
1175
+ taxAmountCents: number;
1176
+ totalAmountCents: number;
1177
+ notes: string | null;
1178
+ createdAt: string;
1179
+ updatedAt: string;
1180
+ archivedAt: string | null;
1181
+ }[];
1182
+ total: number;
1183
+ limit: number;
1184
+ offset: number;
1185
+ }, readonly ["voyant", "crm", "quotes", "list", import("./query-keys.js").QuotesListFilters]>, "queryFn"> & {
1186
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1187
+ data: {
1188
+ id: string;
1189
+ opportunityId: string;
1190
+ status: string;
1191
+ validUntil: string | null;
1192
+ currency: string;
1193
+ subtotalAmountCents: number;
1194
+ taxAmountCents: number;
1195
+ totalAmountCents: number;
1196
+ notes: string | null;
1197
+ createdAt: string;
1198
+ updatedAt: string;
1199
+ archivedAt: string | null;
1200
+ }[];
1201
+ total: number;
1202
+ limit: number;
1203
+ offset: number;
1204
+ }, readonly ["voyant", "crm", "quotes", "list", import("./query-keys.js").QuotesListFilters], never> | undefined;
1205
+ } & {
1206
+ queryKey: readonly ["voyant", "crm", "quotes", "list", import("./query-keys.js").QuotesListFilters] & {
1207
+ [dataTagSymbol]: {
1208
+ data: {
1209
+ id: string;
1210
+ opportunityId: string;
1211
+ status: string;
1212
+ validUntil: string | null;
1213
+ currency: string;
1214
+ subtotalAmountCents: number;
1215
+ taxAmountCents: number;
1216
+ totalAmountCents: number;
1217
+ notes: string | null;
1218
+ createdAt: string;
1219
+ updatedAt: string;
1220
+ archivedAt: string | null;
1221
+ }[];
1222
+ total: number;
1223
+ limit: number;
1224
+ offset: number;
1225
+ };
1226
+ [dataTagErrorSymbol]: Error;
1227
+ };
1228
+ };
1229
+ export declare function getQuoteQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1230
+ id: string;
1231
+ opportunityId: string;
1232
+ status: string;
1233
+ validUntil: string | null;
1234
+ currency: string;
1235
+ subtotalAmountCents: number;
1236
+ taxAmountCents: number;
1237
+ totalAmountCents: number;
1238
+ notes: string | null;
1239
+ createdAt: string;
1240
+ updatedAt: string;
1241
+ archivedAt: string | null;
1242
+ }, Error, {
1243
+ id: string;
1244
+ opportunityId: string;
1245
+ status: string;
1246
+ validUntil: string | null;
1247
+ currency: string;
1248
+ subtotalAmountCents: number;
1249
+ taxAmountCents: number;
1250
+ totalAmountCents: number;
1251
+ notes: string | null;
1252
+ createdAt: string;
1253
+ updatedAt: string;
1254
+ archivedAt: string | null;
1255
+ }, readonly ["voyant", "crm", "quotes", "detail", string]>, "queryFn"> & {
1256
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1257
+ id: string;
1258
+ opportunityId: string;
1259
+ status: string;
1260
+ validUntil: string | null;
1261
+ currency: string;
1262
+ subtotalAmountCents: number;
1263
+ taxAmountCents: number;
1264
+ totalAmountCents: number;
1265
+ notes: string | null;
1266
+ createdAt: string;
1267
+ updatedAt: string;
1268
+ archivedAt: string | null;
1269
+ }, readonly ["voyant", "crm", "quotes", "detail", string], never> | undefined;
1270
+ } & {
1271
+ queryKey: readonly ["voyant", "crm", "quotes", "detail", string] & {
1272
+ [dataTagSymbol]: {
1273
+ id: string;
1274
+ opportunityId: string;
1275
+ status: string;
1276
+ validUntil: string | null;
1277
+ currency: string;
1278
+ subtotalAmountCents: number;
1279
+ taxAmountCents: number;
1280
+ totalAmountCents: number;
1281
+ notes: string | null;
1282
+ createdAt: string;
1283
+ updatedAt: string;
1284
+ archivedAt: string | null;
1285
+ };
1286
+ [dataTagErrorSymbol]: Error;
1287
+ };
1288
+ };
1289
+ export declare function getQuoteLinesQueryOptions(client: FetchWithValidationOptions, quoteId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1290
+ id: string;
1291
+ quoteId: string;
1292
+ productId: string | null;
1293
+ supplierServiceId: string | null;
1294
+ description: string;
1295
+ quantity: number;
1296
+ unitPriceAmountCents: number;
1297
+ totalAmountCents: number;
1298
+ currency: string;
1299
+ createdAt: string;
1300
+ updatedAt: string;
1301
+ }[], Error, {
1302
+ id: string;
1303
+ quoteId: string;
1304
+ productId: string | null;
1305
+ supplierServiceId: string | null;
1306
+ description: string;
1307
+ quantity: number;
1308
+ unitPriceAmountCents: number;
1309
+ totalAmountCents: number;
1310
+ currency: string;
1311
+ createdAt: string;
1312
+ updatedAt: string;
1313
+ }[], readonly ["voyant", "crm", "quotes", "detail", string, "lines"]>, "queryFn"> & {
1314
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1315
+ id: string;
1316
+ quoteId: string;
1317
+ productId: string | null;
1318
+ supplierServiceId: string | null;
1319
+ description: string;
1320
+ quantity: number;
1321
+ unitPriceAmountCents: number;
1322
+ totalAmountCents: number;
1323
+ currency: string;
1324
+ createdAt: string;
1325
+ updatedAt: string;
1326
+ }[], readonly ["voyant", "crm", "quotes", "detail", string, "lines"], never> | undefined;
1327
+ } & {
1328
+ queryKey: readonly ["voyant", "crm", "quotes", "detail", string, "lines"] & {
1329
+ [dataTagSymbol]: {
1330
+ id: string;
1331
+ quoteId: string;
1332
+ productId: string | null;
1333
+ supplierServiceId: string | null;
1334
+ description: string;
1335
+ quantity: number;
1336
+ unitPriceAmountCents: number;
1337
+ totalAmountCents: number;
1338
+ currency: string;
1339
+ createdAt: string;
1340
+ updatedAt: string;
1341
+ }[];
1342
+ [dataTagErrorSymbol]: Error;
1343
+ };
1344
+ };
1345
+ //# sourceMappingURL=query-options.d.ts.map