@voyant-travel/quotes-react 0.119.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/dist/client.d.ts +31 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +71 -0
  6. package/dist/components/create-quote-dialog.d.ts +10 -0
  7. package/dist/components/create-quote-dialog.d.ts.map +1 -0
  8. package/dist/components/create-quote-dialog.js +45 -0
  9. package/dist/components/create-quote-version-dialog.d.ts +9 -0
  10. package/dist/components/create-quote-version-dialog.d.ts.map +1 -0
  11. package/dist/components/create-quote-version-dialog.js +108 -0
  12. package/dist/components/crm-format.d.ts +7 -0
  13. package/dist/components/crm-format.d.ts.map +1 -0
  14. package/dist/components/crm-format.js +40 -0
  15. package/dist/components/inline-currency-field.d.ts +12 -0
  16. package/dist/components/inline-currency-field.d.ts.map +1 -0
  17. package/dist/components/inline-currency-field.js +46 -0
  18. package/dist/components/inline-field.d.ts +16 -0
  19. package/dist/components/inline-field.d.ts.map +1 -0
  20. package/dist/components/inline-field.js +45 -0
  21. package/dist/components/inline-language-field.d.ts +12 -0
  22. package/dist/components/inline-language-field.d.ts.map +1 -0
  23. package/dist/components/inline-language-field.js +46 -0
  24. package/dist/components/inline-number-field.d.ts +15 -0
  25. package/dist/components/inline-number-field.d.ts.map +1 -0
  26. package/dist/components/inline-number-field.js +58 -0
  27. package/dist/components/inline-select-field.d.ts +19 -0
  28. package/dist/components/inline-select-field.d.ts.map +1 -0
  29. package/dist/components/inline-select-field.js +34 -0
  30. package/dist/components/quote-summary-card.d.ts +11 -0
  31. package/dist/components/quote-summary-card.d.ts.map +1 -0
  32. package/dist/components/quote-summary-card.js +11 -0
  33. package/dist/components/quote-version-detail-sections.d.ts +22 -0
  34. package/dist/components/quote-version-detail-sections.d.ts.map +1 -0
  35. package/dist/components/quote-version-detail-sections.js +87 -0
  36. package/dist/components/quote-versions-page.d.ts +8 -0
  37. package/dist/components/quote-versions-page.d.ts.map +1 -0
  38. package/dist/components/quote-versions-page.js +30 -0
  39. package/dist/components/quotes-board.d.ts +8 -0
  40. package/dist/components/quotes-board.d.ts.map +1 -0
  41. package/dist/components/quotes-board.js +24 -0
  42. package/dist/hooks/index.d.ts +10 -0
  43. package/dist/hooks/index.d.ts.map +1 -0
  44. package/dist/hooks/index.js +9 -0
  45. package/dist/hooks/use-pipeline-mutation.d.ts +76 -0
  46. package/dist/hooks/use-pipeline-mutation.d.ts.map +1 -0
  47. package/dist/hooks/use-pipeline-mutation.js +76 -0
  48. package/dist/hooks/use-pipelines.d.ts +31 -0
  49. package/dist/hooks/use-pipelines.d.ts.map +1 -0
  50. package/dist/hooks/use-pipelines.js +42 -0
  51. package/dist/hooks/use-quote-mutation.d.ts +72 -0
  52. package/dist/hooks/use-quote-mutation.d.ts.map +1 -0
  53. package/dist/hooks/use-quote-mutation.js +50 -0
  54. package/dist/hooks/use-quote-version-mutation.d.ts +272 -0
  55. package/dist/hooks/use-quote-version-mutation.d.ts.map +1 -0
  56. package/dist/hooks/use-quote-version-mutation.js +164 -0
  57. package/dist/hooks/use-quote-version.d.ts +37 -0
  58. package/dist/hooks/use-quote-version.d.ts.map +1 -0
  59. package/dist/hooks/use-quote-version.js +34 -0
  60. package/dist/hooks/use-quote-versions.d.ts +30 -0
  61. package/dist/hooks/use-quote-versions.d.ts.map +1 -0
  62. package/dist/hooks/use-quote-versions.js +27 -0
  63. package/dist/hooks/use-quote.d.ts +26 -0
  64. package/dist/hooks/use-quote.d.ts.map +1 -0
  65. package/dist/hooks/use-quote.js +23 -0
  66. package/dist/hooks/use-quotes.d.ts +36 -0
  67. package/dist/hooks/use-quotes.d.ts.map +1 -0
  68. package/dist/hooks/use-quotes.js +44 -0
  69. package/dist/hooks/use-stages.d.ts +37 -0
  70. package/dist/hooks/use-stages.d.ts.map +1 -0
  71. package/dist/hooks/use-stages.js +45 -0
  72. package/dist/i18n/en/base.d.ts +189 -0
  73. package/dist/i18n/en/base.d.ts.map +1 -0
  74. package/dist/i18n/en/base.js +188 -0
  75. package/dist/i18n/en/commerce.d.ts +133 -0
  76. package/dist/i18n/en/commerce.d.ts.map +1 -0
  77. package/dist/i18n/en/commerce.js +132 -0
  78. package/dist/i18n/en/detail.d.ts +211 -0
  79. package/dist/i18n/en/detail.d.ts.map +1 -0
  80. package/dist/i18n/en/detail.js +210 -0
  81. package/dist/i18n/en/lists.d.ts +75 -0
  82. package/dist/i18n/en/lists.d.ts.map +1 -0
  83. package/dist/i18n/en/lists.js +74 -0
  84. package/dist/i18n/en.d.ts +599 -0
  85. package/dist/i18n/en.d.ts.map +1 -0
  86. package/dist/i18n/en.js +10 -0
  87. package/dist/i18n/index.d.ts +5 -0
  88. package/dist/i18n/index.d.ts.map +1 -0
  89. package/dist/i18n/index.js +3 -0
  90. package/dist/i18n/messages.d.ts +577 -0
  91. package/dist/i18n/messages.d.ts.map +1 -0
  92. package/dist/i18n/messages.js +15 -0
  93. package/dist/i18n/provider.d.ts +1220 -0
  94. package/dist/i18n/provider.d.ts.map +1 -0
  95. package/dist/i18n/provider.js +44 -0
  96. package/dist/i18n/ro/base.d.ts +189 -0
  97. package/dist/i18n/ro/base.d.ts.map +1 -0
  98. package/dist/i18n/ro/base.js +188 -0
  99. package/dist/i18n/ro/commerce.d.ts +133 -0
  100. package/dist/i18n/ro/commerce.d.ts.map +1 -0
  101. package/dist/i18n/ro/commerce.js +132 -0
  102. package/dist/i18n/ro/detail.d.ts +211 -0
  103. package/dist/i18n/ro/detail.d.ts.map +1 -0
  104. package/dist/i18n/ro/detail.js +210 -0
  105. package/dist/i18n/ro/lists.d.ts +75 -0
  106. package/dist/i18n/ro/lists.d.ts.map +1 -0
  107. package/dist/i18n/ro/lists.js +74 -0
  108. package/dist/i18n/ro.d.ts +599 -0
  109. package/dist/i18n/ro.d.ts.map +1 -0
  110. package/dist/i18n/ro.js +10 -0
  111. package/dist/index.d.ts +22 -0
  112. package/dist/index.d.ts.map +1 -0
  113. package/dist/index.js +21 -0
  114. package/dist/provider.d.ts +2 -0
  115. package/dist/provider.d.ts.map +1 -0
  116. package/dist/provider.js +1 -0
  117. package/dist/query-keys.d.ts +44 -0
  118. package/dist/query-keys.d.ts.map +1 -0
  119. package/dist/query-keys.js +16 -0
  120. package/dist/query-options.d.ts +678 -0
  121. package/dist/query-options.d.ts.map +1 -0
  122. package/dist/query-options.js +160 -0
  123. package/dist/schemas.d.ts +348 -0
  124. package/dist/schemas.d.ts.map +1 -0
  125. package/dist/schemas.js +101 -0
  126. package/dist/ui.d.ts +8 -0
  127. package/dist/ui.d.ts.map +1 -0
  128. package/dist/ui.js +7 -0
  129. package/package.json +117 -0
  130. package/src/styles.css +11 -0
@@ -0,0 +1,678 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UsePipelinesOptions } from "./hooks/use-pipelines.js";
3
+ import type { UseQuoteVersionsOptions } from "./hooks/use-quote-versions.js";
4
+ import type { UseQuotesOptions } from "./hooks/use-quotes.js";
5
+ import type { UseStagesOptions } from "./hooks/use-stages.js";
6
+ export declare function getPipelinesQueryOptions(client: FetchWithValidationOptions, options?: UsePipelinesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
7
+ data: {
8
+ id: string;
9
+ entityType: string;
10
+ name: string;
11
+ isDefault: boolean;
12
+ sortOrder: number;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ }[];
16
+ total: number;
17
+ limit: number;
18
+ offset: number;
19
+ }, Error, {
20
+ data: {
21
+ id: string;
22
+ entityType: string;
23
+ name: string;
24
+ isDefault: boolean;
25
+ sortOrder: number;
26
+ createdAt: string;
27
+ updatedAt: string;
28
+ }[];
29
+ total: number;
30
+ limit: number;
31
+ offset: number;
32
+ }, readonly ["voyant", "quotes", "pipelines", "list", import("./query-keys.js").PipelinesListFilters]>, "queryFn"> & {
33
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
34
+ data: {
35
+ id: string;
36
+ entityType: string;
37
+ name: string;
38
+ isDefault: boolean;
39
+ sortOrder: number;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ }[];
43
+ total: number;
44
+ limit: number;
45
+ offset: number;
46
+ }, readonly ["voyant", "quotes", "pipelines", "list", import("./query-keys.js").PipelinesListFilters], never> | undefined;
47
+ } & {
48
+ queryKey: readonly ["voyant", "quotes", "pipelines", "list", import("./query-keys.js").PipelinesListFilters] & {
49
+ [dataTagSymbol]: {
50
+ data: {
51
+ id: string;
52
+ entityType: string;
53
+ name: string;
54
+ isDefault: boolean;
55
+ sortOrder: number;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ }[];
59
+ total: number;
60
+ limit: number;
61
+ offset: number;
62
+ };
63
+ [dataTagErrorSymbol]: Error;
64
+ };
65
+ };
66
+ export declare function getPipelineQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
67
+ id: string;
68
+ entityType: string;
69
+ name: string;
70
+ isDefault: boolean;
71
+ sortOrder: number;
72
+ createdAt: string;
73
+ updatedAt: string;
74
+ }, Error, {
75
+ id: string;
76
+ entityType: string;
77
+ name: string;
78
+ isDefault: boolean;
79
+ sortOrder: number;
80
+ createdAt: string;
81
+ updatedAt: string;
82
+ }, readonly ["voyant", "quotes", "pipelines", "detail", string]>, "queryFn"> & {
83
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
84
+ id: string;
85
+ entityType: string;
86
+ name: string;
87
+ isDefault: boolean;
88
+ sortOrder: number;
89
+ createdAt: string;
90
+ updatedAt: string;
91
+ }, readonly ["voyant", "quotes", "pipelines", "detail", string], never> | undefined;
92
+ } & {
93
+ queryKey: readonly ["voyant", "quotes", "pipelines", "detail", string] & {
94
+ [dataTagSymbol]: {
95
+ id: string;
96
+ entityType: string;
97
+ name: string;
98
+ isDefault: boolean;
99
+ sortOrder: number;
100
+ createdAt: string;
101
+ updatedAt: string;
102
+ };
103
+ [dataTagErrorSymbol]: Error;
104
+ };
105
+ };
106
+ export declare function getStagesQueryOptions(client: FetchWithValidationOptions, options?: UseStagesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
107
+ data: {
108
+ id: string;
109
+ pipelineId: string;
110
+ name: string;
111
+ sortOrder: number;
112
+ probability: number | null;
113
+ isClosed: boolean;
114
+ isWon: boolean;
115
+ isLost: boolean;
116
+ createdAt: string;
117
+ updatedAt: string;
118
+ }[];
119
+ total: number;
120
+ limit: number;
121
+ offset: number;
122
+ }, Error, {
123
+ data: {
124
+ id: string;
125
+ pipelineId: string;
126
+ name: string;
127
+ sortOrder: number;
128
+ probability: number | null;
129
+ isClosed: boolean;
130
+ isWon: boolean;
131
+ isLost: boolean;
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ }[];
135
+ total: number;
136
+ limit: number;
137
+ offset: number;
138
+ }, readonly ["voyant", "quotes", "stages", "list", import("./query-keys.js").StagesListFilters]>, "queryFn"> & {
139
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
140
+ data: {
141
+ id: string;
142
+ pipelineId: string;
143
+ name: string;
144
+ sortOrder: number;
145
+ probability: number | null;
146
+ isClosed: boolean;
147
+ isWon: boolean;
148
+ isLost: boolean;
149
+ createdAt: string;
150
+ updatedAt: string;
151
+ }[];
152
+ total: number;
153
+ limit: number;
154
+ offset: number;
155
+ }, readonly ["voyant", "quotes", "stages", "list", import("./query-keys.js").StagesListFilters], never> | undefined;
156
+ } & {
157
+ queryKey: readonly ["voyant", "quotes", "stages", "list", import("./query-keys.js").StagesListFilters] & {
158
+ [dataTagSymbol]: {
159
+ data: {
160
+ id: string;
161
+ pipelineId: string;
162
+ name: string;
163
+ sortOrder: number;
164
+ probability: number | null;
165
+ isClosed: boolean;
166
+ isWon: boolean;
167
+ isLost: boolean;
168
+ createdAt: string;
169
+ updatedAt: string;
170
+ }[];
171
+ total: number;
172
+ limit: number;
173
+ offset: number;
174
+ };
175
+ [dataTagErrorSymbol]: Error;
176
+ };
177
+ };
178
+ export declare function getStageQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
179
+ id: string;
180
+ pipelineId: string;
181
+ name: string;
182
+ sortOrder: number;
183
+ probability: number | null;
184
+ isClosed: boolean;
185
+ isWon: boolean;
186
+ isLost: boolean;
187
+ createdAt: string;
188
+ updatedAt: string;
189
+ }, Error, {
190
+ id: string;
191
+ pipelineId: string;
192
+ name: string;
193
+ sortOrder: number;
194
+ probability: number | null;
195
+ isClosed: boolean;
196
+ isWon: boolean;
197
+ isLost: boolean;
198
+ createdAt: string;
199
+ updatedAt: string;
200
+ }, readonly ["voyant", "quotes", "stages", "detail", string]>, "queryFn"> & {
201
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
202
+ id: string;
203
+ pipelineId: string;
204
+ name: string;
205
+ sortOrder: number;
206
+ probability: number | null;
207
+ isClosed: boolean;
208
+ isWon: boolean;
209
+ isLost: boolean;
210
+ createdAt: string;
211
+ updatedAt: string;
212
+ }, readonly ["voyant", "quotes", "stages", "detail", string], never> | undefined;
213
+ } & {
214
+ queryKey: readonly ["voyant", "quotes", "stages", "detail", string] & {
215
+ [dataTagSymbol]: {
216
+ id: string;
217
+ pipelineId: string;
218
+ name: string;
219
+ sortOrder: number;
220
+ probability: number | null;
221
+ isClosed: boolean;
222
+ isWon: boolean;
223
+ isLost: boolean;
224
+ createdAt: string;
225
+ updatedAt: string;
226
+ };
227
+ [dataTagErrorSymbol]: Error;
228
+ };
229
+ };
230
+ export declare function getQuotesQueryOptions(client: FetchWithValidationOptions, options?: UseQuotesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
231
+ data: {
232
+ id: string;
233
+ title: string;
234
+ personId: string | null;
235
+ organizationId: string | null;
236
+ pipelineId: string;
237
+ stageId: string;
238
+ ownerId: string | null;
239
+ status: string;
240
+ acceptedVersionId: string | null;
241
+ valueAmountCents: number | null;
242
+ valueCurrency: string | null;
243
+ expectedCloseDate: string | null;
244
+ source: string | null;
245
+ sourceRef: string | null;
246
+ lostReason: string | null;
247
+ tags: string[];
248
+ createdAt: string;
249
+ updatedAt: string;
250
+ stageChangedAt: string;
251
+ closedAt: string | null;
252
+ }[];
253
+ total: number;
254
+ limit: number;
255
+ offset: number;
256
+ }, Error, {
257
+ data: {
258
+ id: string;
259
+ title: string;
260
+ personId: string | null;
261
+ organizationId: string | null;
262
+ pipelineId: string;
263
+ stageId: string;
264
+ ownerId: string | null;
265
+ status: string;
266
+ acceptedVersionId: string | null;
267
+ valueAmountCents: number | null;
268
+ valueCurrency: string | null;
269
+ expectedCloseDate: string | null;
270
+ source: string | null;
271
+ sourceRef: string | null;
272
+ lostReason: string | null;
273
+ tags: string[];
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ stageChangedAt: string;
277
+ closedAt: string | null;
278
+ }[];
279
+ total: number;
280
+ limit: number;
281
+ offset: number;
282
+ }, readonly ["voyant", "quotes", "quotes", "list", import("./query-keys.js").QuotesListFilters]>, "queryFn"> & {
283
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
284
+ data: {
285
+ id: string;
286
+ title: string;
287
+ personId: string | null;
288
+ organizationId: string | null;
289
+ pipelineId: string;
290
+ stageId: string;
291
+ ownerId: string | null;
292
+ status: string;
293
+ acceptedVersionId: string | null;
294
+ valueAmountCents: number | null;
295
+ valueCurrency: string | null;
296
+ expectedCloseDate: string | null;
297
+ source: string | null;
298
+ sourceRef: string | null;
299
+ lostReason: string | null;
300
+ tags: string[];
301
+ createdAt: string;
302
+ updatedAt: string;
303
+ stageChangedAt: string;
304
+ closedAt: string | null;
305
+ }[];
306
+ total: number;
307
+ limit: number;
308
+ offset: number;
309
+ }, readonly ["voyant", "quotes", "quotes", "list", import("./query-keys.js").QuotesListFilters], never> | undefined;
310
+ } & {
311
+ queryKey: readonly ["voyant", "quotes", "quotes", "list", import("./query-keys.js").QuotesListFilters] & {
312
+ [dataTagSymbol]: {
313
+ data: {
314
+ id: string;
315
+ title: string;
316
+ personId: string | null;
317
+ organizationId: string | null;
318
+ pipelineId: string;
319
+ stageId: string;
320
+ ownerId: string | null;
321
+ status: string;
322
+ acceptedVersionId: string | null;
323
+ valueAmountCents: number | null;
324
+ valueCurrency: string | null;
325
+ expectedCloseDate: string | null;
326
+ source: string | null;
327
+ sourceRef: string | null;
328
+ lostReason: string | null;
329
+ tags: string[];
330
+ createdAt: string;
331
+ updatedAt: string;
332
+ stageChangedAt: string;
333
+ closedAt: string | null;
334
+ }[];
335
+ total: number;
336
+ limit: number;
337
+ offset: number;
338
+ };
339
+ [dataTagErrorSymbol]: Error;
340
+ };
341
+ };
342
+ export declare function getQuoteQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
343
+ id: string;
344
+ title: string;
345
+ personId: string | null;
346
+ organizationId: string | null;
347
+ pipelineId: string;
348
+ stageId: string;
349
+ ownerId: string | null;
350
+ status: string;
351
+ acceptedVersionId: string | null;
352
+ valueAmountCents: number | null;
353
+ valueCurrency: string | null;
354
+ expectedCloseDate: string | null;
355
+ source: string | null;
356
+ sourceRef: string | null;
357
+ lostReason: string | null;
358
+ tags: string[];
359
+ createdAt: string;
360
+ updatedAt: string;
361
+ stageChangedAt: string;
362
+ closedAt: string | null;
363
+ }, Error, {
364
+ id: string;
365
+ title: string;
366
+ personId: string | null;
367
+ organizationId: string | null;
368
+ pipelineId: string;
369
+ stageId: string;
370
+ ownerId: string | null;
371
+ status: string;
372
+ acceptedVersionId: string | null;
373
+ valueAmountCents: number | null;
374
+ valueCurrency: string | null;
375
+ expectedCloseDate: string | null;
376
+ source: string | null;
377
+ sourceRef: string | null;
378
+ lostReason: string | null;
379
+ tags: string[];
380
+ createdAt: string;
381
+ updatedAt: string;
382
+ stageChangedAt: string;
383
+ closedAt: string | null;
384
+ }, readonly ["voyant", "quotes", "quotes", "detail", string]>, "queryFn"> & {
385
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
386
+ id: string;
387
+ title: string;
388
+ personId: string | null;
389
+ organizationId: string | null;
390
+ pipelineId: string;
391
+ stageId: string;
392
+ ownerId: string | null;
393
+ status: string;
394
+ acceptedVersionId: string | null;
395
+ valueAmountCents: number | null;
396
+ valueCurrency: string | null;
397
+ expectedCloseDate: string | null;
398
+ source: string | null;
399
+ sourceRef: string | null;
400
+ lostReason: string | null;
401
+ tags: string[];
402
+ createdAt: string;
403
+ updatedAt: string;
404
+ stageChangedAt: string;
405
+ closedAt: string | null;
406
+ }, readonly ["voyant", "quotes", "quotes", "detail", string], never> | undefined;
407
+ } & {
408
+ queryKey: readonly ["voyant", "quotes", "quotes", "detail", string] & {
409
+ [dataTagSymbol]: {
410
+ id: string;
411
+ title: string;
412
+ personId: string | null;
413
+ organizationId: string | null;
414
+ pipelineId: string;
415
+ stageId: string;
416
+ ownerId: string | null;
417
+ status: string;
418
+ acceptedVersionId: string | null;
419
+ valueAmountCents: number | null;
420
+ valueCurrency: string | null;
421
+ expectedCloseDate: string | null;
422
+ source: string | null;
423
+ sourceRef: string | null;
424
+ lostReason: string | null;
425
+ tags: string[];
426
+ createdAt: string;
427
+ updatedAt: string;
428
+ stageChangedAt: string;
429
+ closedAt: string | null;
430
+ };
431
+ [dataTagErrorSymbol]: Error;
432
+ };
433
+ };
434
+ export declare function getQuoteVersionsQueryOptions(client: FetchWithValidationOptions, options?: UseQuoteVersionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
435
+ data: {
436
+ id: string;
437
+ quoteId: string;
438
+ label: string | null;
439
+ status: string;
440
+ supersedesId: string | null;
441
+ tripSnapshotId: string | null;
442
+ validUntil: string | null;
443
+ currency: string;
444
+ subtotalAmountCents: number;
445
+ taxAmountCents: number;
446
+ totalAmountCents: number;
447
+ notes: string | null;
448
+ sentAt: string | null;
449
+ viewedAt: string | null;
450
+ decidedAt: string | null;
451
+ createdAt: string;
452
+ updatedAt: string;
453
+ archivedAt: string | null;
454
+ }[];
455
+ total: number;
456
+ limit: number;
457
+ offset: number;
458
+ }, Error, {
459
+ data: {
460
+ id: string;
461
+ quoteId: string;
462
+ label: string | null;
463
+ status: string;
464
+ supersedesId: string | null;
465
+ tripSnapshotId: string | null;
466
+ validUntil: string | null;
467
+ currency: string;
468
+ subtotalAmountCents: number;
469
+ taxAmountCents: number;
470
+ totalAmountCents: number;
471
+ notes: string | null;
472
+ sentAt: string | null;
473
+ viewedAt: string | null;
474
+ decidedAt: string | null;
475
+ createdAt: string;
476
+ updatedAt: string;
477
+ archivedAt: string | null;
478
+ }[];
479
+ total: number;
480
+ limit: number;
481
+ offset: number;
482
+ }, readonly ["voyant", "quotes", "quote-versions", "list", import("./query-keys.js").QuoteVersionsListFilters]>, "queryFn"> & {
483
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
484
+ data: {
485
+ id: string;
486
+ quoteId: string;
487
+ label: string | null;
488
+ status: string;
489
+ supersedesId: string | null;
490
+ tripSnapshotId: string | null;
491
+ validUntil: string | null;
492
+ currency: string;
493
+ subtotalAmountCents: number;
494
+ taxAmountCents: number;
495
+ totalAmountCents: number;
496
+ notes: string | null;
497
+ sentAt: string | null;
498
+ viewedAt: string | null;
499
+ decidedAt: string | null;
500
+ createdAt: string;
501
+ updatedAt: string;
502
+ archivedAt: string | null;
503
+ }[];
504
+ total: number;
505
+ limit: number;
506
+ offset: number;
507
+ }, readonly ["voyant", "quotes", "quote-versions", "list", import("./query-keys.js").QuoteVersionsListFilters], never> | undefined;
508
+ } & {
509
+ queryKey: readonly ["voyant", "quotes", "quote-versions", "list", import("./query-keys.js").QuoteVersionsListFilters] & {
510
+ [dataTagSymbol]: {
511
+ data: {
512
+ id: string;
513
+ quoteId: string;
514
+ label: string | null;
515
+ status: string;
516
+ supersedesId: string | null;
517
+ tripSnapshotId: string | null;
518
+ validUntil: string | null;
519
+ currency: string;
520
+ subtotalAmountCents: number;
521
+ taxAmountCents: number;
522
+ totalAmountCents: number;
523
+ notes: string | null;
524
+ sentAt: string | null;
525
+ viewedAt: string | null;
526
+ decidedAt: string | null;
527
+ createdAt: string;
528
+ updatedAt: string;
529
+ archivedAt: string | null;
530
+ }[];
531
+ total: number;
532
+ limit: number;
533
+ offset: number;
534
+ };
535
+ [dataTagErrorSymbol]: Error;
536
+ };
537
+ };
538
+ export declare function getQuoteVersionQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
539
+ id: string;
540
+ quoteId: string;
541
+ label: string | null;
542
+ status: string;
543
+ supersedesId: string | null;
544
+ tripSnapshotId: string | null;
545
+ validUntil: string | null;
546
+ currency: string;
547
+ subtotalAmountCents: number;
548
+ taxAmountCents: number;
549
+ totalAmountCents: number;
550
+ notes: string | null;
551
+ sentAt: string | null;
552
+ viewedAt: string | null;
553
+ decidedAt: string | null;
554
+ createdAt: string;
555
+ updatedAt: string;
556
+ archivedAt: string | null;
557
+ }, Error, {
558
+ id: string;
559
+ quoteId: string;
560
+ label: string | null;
561
+ status: string;
562
+ supersedesId: string | null;
563
+ tripSnapshotId: string | null;
564
+ validUntil: string | null;
565
+ currency: string;
566
+ subtotalAmountCents: number;
567
+ taxAmountCents: number;
568
+ totalAmountCents: number;
569
+ notes: string | null;
570
+ sentAt: string | null;
571
+ viewedAt: string | null;
572
+ decidedAt: string | null;
573
+ createdAt: string;
574
+ updatedAt: string;
575
+ archivedAt: string | null;
576
+ }, readonly ["voyant", "quotes", "quote-versions", "detail", string]>, "queryFn"> & {
577
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
578
+ id: string;
579
+ quoteId: string;
580
+ label: string | null;
581
+ status: string;
582
+ supersedesId: string | null;
583
+ tripSnapshotId: string | null;
584
+ validUntil: string | null;
585
+ currency: string;
586
+ subtotalAmountCents: number;
587
+ taxAmountCents: number;
588
+ totalAmountCents: number;
589
+ notes: string | null;
590
+ sentAt: string | null;
591
+ viewedAt: string | null;
592
+ decidedAt: string | null;
593
+ createdAt: string;
594
+ updatedAt: string;
595
+ archivedAt: string | null;
596
+ }, readonly ["voyant", "quotes", "quote-versions", "detail", string], never> | undefined;
597
+ } & {
598
+ queryKey: readonly ["voyant", "quotes", "quote-versions", "detail", string] & {
599
+ [dataTagSymbol]: {
600
+ id: string;
601
+ quoteId: string;
602
+ label: string | null;
603
+ status: string;
604
+ supersedesId: string | null;
605
+ tripSnapshotId: string | null;
606
+ validUntil: string | null;
607
+ currency: string;
608
+ subtotalAmountCents: number;
609
+ taxAmountCents: number;
610
+ totalAmountCents: number;
611
+ notes: string | null;
612
+ sentAt: string | null;
613
+ viewedAt: string | null;
614
+ decidedAt: string | null;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ archivedAt: string | null;
618
+ };
619
+ [dataTagErrorSymbol]: Error;
620
+ };
621
+ };
622
+ export declare function getQuoteVersionLinesQueryOptions(client: FetchWithValidationOptions, quoteVersionId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
623
+ id: string;
624
+ quoteVersionId: string;
625
+ productId: string | null;
626
+ supplierServiceId: string | null;
627
+ description: string;
628
+ quantity: number;
629
+ unitPriceAmountCents: number;
630
+ totalAmountCents: number;
631
+ currency: string;
632
+ createdAt: string;
633
+ updatedAt: string;
634
+ }[], Error, {
635
+ id: string;
636
+ quoteVersionId: string;
637
+ productId: string | null;
638
+ supplierServiceId: string | null;
639
+ description: string;
640
+ quantity: number;
641
+ unitPriceAmountCents: number;
642
+ totalAmountCents: number;
643
+ currency: string;
644
+ createdAt: string;
645
+ updatedAt: string;
646
+ }[], readonly ["voyant", "quotes", "quote-versions", "detail", string, "lines"]>, "queryFn"> & {
647
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
648
+ id: string;
649
+ quoteVersionId: string;
650
+ productId: string | null;
651
+ supplierServiceId: string | null;
652
+ description: string;
653
+ quantity: number;
654
+ unitPriceAmountCents: number;
655
+ totalAmountCents: number;
656
+ currency: string;
657
+ createdAt: string;
658
+ updatedAt: string;
659
+ }[], readonly ["voyant", "quotes", "quote-versions", "detail", string, "lines"], never> | undefined;
660
+ } & {
661
+ queryKey: readonly ["voyant", "quotes", "quote-versions", "detail", string, "lines"] & {
662
+ [dataTagSymbol]: {
663
+ id: string;
664
+ quoteVersionId: string;
665
+ productId: string | null;
666
+ supplierServiceId: string | null;
667
+ description: string;
668
+ quantity: number;
669
+ unitPriceAmountCents: number;
670
+ totalAmountCents: number;
671
+ currency: string;
672
+ createdAt: string;
673
+ updatedAt: string;
674
+ }[];
675
+ [dataTagErrorSymbol]: Error;
676
+ };
677
+ };
678
+ //# sourceMappingURL=query-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAgB7D,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBlC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerF;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB/B;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlF;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyB/B;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlF;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBtC;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAezF;AAED,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,0BAA0B,EAClC,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB"}