@voyantjs/legal-react 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/client.d.ts +14 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/client.js +58 -0
  4. package/dist/hooks/index.d.ts +25 -0
  5. package/dist/hooks/index.d.ts.map +1 -0
  6. package/dist/hooks/index.js +24 -0
  7. package/dist/hooks/use-contract-attachment-mutation.d.ts +53 -0
  8. package/dist/hooks/use-contract-attachment-mutation.d.ts.map +1 -0
  9. package/dist/hooks/use-contract-attachment-mutation.js +41 -0
  10. package/dist/hooks/use-contract-attachments.d.ts +17 -0
  11. package/dist/hooks/use-contract-attachments.d.ts.map +1 -0
  12. package/dist/hooks/use-contract-attachments.js +12 -0
  13. package/dist/hooks/use-contract-mutation.d.ts +191 -0
  14. package/dist/hooks/use-contract-mutation.d.ts.map +1 -0
  15. package/dist/hooks/use-contract-mutation.js +82 -0
  16. package/dist/hooks/use-contract-signature-mutation.d.ts +29 -0
  17. package/dist/hooks/use-contract-signature-mutation.d.ts.map +1 -0
  18. package/dist/hooks/use-contract-signature-mutation.js +23 -0
  19. package/dist/hooks/use-contract-signatures.d.ts +22 -0
  20. package/dist/hooks/use-contract-signatures.d.ts.map +1 -0
  21. package/dist/hooks/use-contract-signatures.js +12 -0
  22. package/dist/hooks/use-contract-template-mutation.d.ts +53 -0
  23. package/dist/hooks/use-contract-template-mutation.d.ts.map +1 -0
  24. package/dist/hooks/use-contract-template-mutation.js +39 -0
  25. package/dist/hooks/use-contract-template-version-mutation.d.ts +23 -0
  26. package/dist/hooks/use-contract-template-version-mutation.d.ts.map +1 -0
  27. package/dist/hooks/use-contract-template-version-mutation.js +22 -0
  28. package/dist/hooks/use-contract-template-versions.d.ts +16 -0
  29. package/dist/hooks/use-contract-template-versions.d.ts.map +1 -0
  30. package/dist/hooks/use-contract-template-versions.js +12 -0
  31. package/dist/hooks/use-contract-template.d.ts +19 -0
  32. package/dist/hooks/use-contract-template.d.ts.map +1 -0
  33. package/dist/hooks/use-contract-template.js +12 -0
  34. package/dist/hooks/use-contract-templates.d.ts +25 -0
  35. package/dist/hooks/use-contract-templates.d.ts.map +1 -0
  36. package/dist/hooks/use-contract-templates.js +12 -0
  37. package/dist/hooks/use-contract.d.ts +31 -0
  38. package/dist/hooks/use-contract.d.ts.map +1 -0
  39. package/dist/hooks/use-contract.js +12 -0
  40. package/dist/hooks/use-contracts.d.ts +37 -0
  41. package/dist/hooks/use-contracts.d.ts.map +1 -0
  42. package/dist/hooks/use-contracts.js +12 -0
  43. package/dist/hooks/use-number-series-mutation.d.ts +52 -0
  44. package/dist/hooks/use-number-series-mutation.d.ts.map +1 -0
  45. package/dist/hooks/use-number-series-mutation.js +38 -0
  46. package/dist/hooks/use-number-series.d.ts +25 -0
  47. package/dist/hooks/use-number-series.d.ts.map +1 -0
  48. package/dist/hooks/use-number-series.js +12 -0
  49. package/dist/hooks/use-policies.d.ts +22 -0
  50. package/dist/hooks/use-policies.d.ts.map +1 -0
  51. package/dist/hooks/use-policies.js +12 -0
  52. package/dist/hooks/use-policy-acceptances.d.ts +22 -0
  53. package/dist/hooks/use-policy-acceptances.d.ts.map +1 -0
  54. package/dist/hooks/use-policy-acceptances.js +12 -0
  55. package/dist/hooks/use-policy-assignment-mutation.d.ts +63 -0
  56. package/dist/hooks/use-policy-assignment-mutation.d.ts.map +1 -0
  57. package/dist/hooks/use-policy-assignment-mutation.js +41 -0
  58. package/dist/hooks/use-policy-assignments.d.ts +23 -0
  59. package/dist/hooks/use-policy-assignments.d.ts.map +1 -0
  60. package/dist/hooks/use-policy-assignments.js +12 -0
  61. package/dist/hooks/use-policy-mutation.d.ts +44 -0
  62. package/dist/hooks/use-policy-mutation.d.ts.map +1 -0
  63. package/dist/hooks/use-policy-mutation.js +40 -0
  64. package/dist/hooks/use-policy-rule-mutation.d.ts +56 -0
  65. package/dist/hooks/use-policy-rule-mutation.d.ts.map +1 -0
  66. package/dist/hooks/use-policy-rule-mutation.js +39 -0
  67. package/dist/hooks/use-policy-rules.d.ts +22 -0
  68. package/dist/hooks/use-policy-rules.d.ts.map +1 -0
  69. package/dist/hooks/use-policy-rules.js +12 -0
  70. package/dist/hooks/use-policy-version-mutation.d.ts +73 -0
  71. package/dist/hooks/use-policy-version-mutation.d.ts.map +1 -0
  72. package/dist/hooks/use-policy-version-mutation.js +50 -0
  73. package/dist/hooks/use-policy-versions.d.ts +20 -0
  74. package/dist/hooks/use-policy-versions.d.ts.map +1 -0
  75. package/dist/hooks/use-policy-versions.js +12 -0
  76. package/dist/hooks/use-policy.d.ts +16 -0
  77. package/dist/hooks/use-policy.d.ts.map +1 -0
  78. package/dist/hooks/use-policy.js +12 -0
  79. package/dist/index.d.ts +7 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +6 -0
  82. package/dist/provider.d.ts +2 -0
  83. package/dist/provider.d.ts.map +1 -0
  84. package/dist/provider.js +1 -0
  85. package/dist/query-keys.d.ts +68 -0
  86. package/dist/query-keys.d.ts.map +1 -0
  87. package/dist/query-keys.js +22 -0
  88. package/dist/query-options.d.ts +1200 -0
  89. package/dist/query-options.d.ts.map +1 -0
  90. package/dist/query-options.js +152 -0
  91. package/dist/schemas.d.ts +779 -0
  92. package/dist/schemas.d.ts.map +1 -0
  93. package/dist/schemas.js +163 -0
  94. package/package.json +79 -0
@@ -0,0 +1,1200 @@
1
+ import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { UseLegalContractOptions } from "./hooks/use-contract.js";
3
+ import type { UseLegalContractAttachmentsOptions } from "./hooks/use-contract-attachments.js";
4
+ import type { UseLegalContractSignaturesOptions } from "./hooks/use-contract-signatures.js";
5
+ import type { UseLegalContractTemplateOptions } from "./hooks/use-contract-template.js";
6
+ import type { UseLegalContractTemplateVersionsOptions } from "./hooks/use-contract-template-versions.js";
7
+ import type { UseLegalContractTemplatesOptions } from "./hooks/use-contract-templates.js";
8
+ import type { UseLegalContractsOptions } from "./hooks/use-contracts.js";
9
+ import type { UseLegalContractNumberSeriesOptions } from "./hooks/use-number-series.js";
10
+ import type { UseLegalPoliciesOptions } from "./hooks/use-policies.js";
11
+ import type { UseLegalPolicyOptions } from "./hooks/use-policy.js";
12
+ import type { UseLegalPolicyAcceptancesOptions } from "./hooks/use-policy-acceptances.js";
13
+ import type { UseLegalPolicyAssignmentsOptions } from "./hooks/use-policy-assignments.js";
14
+ import type { UseLegalPolicyRulesOptions } from "./hooks/use-policy-rules.js";
15
+ import type { UseLegalPolicyVersionsOptions } from "./hooks/use-policy-versions.js";
16
+ export declare function getLegalContractsQueryOptions(client: FetchWithValidationOptions, options?: UseLegalContractsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
17
+ data: {
18
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
19
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
20
+ title: string;
21
+ language: string;
22
+ id: string;
23
+ contractNumber: string | null;
24
+ templateVersionId: string | null;
25
+ seriesId: string | null;
26
+ personId: string | null;
27
+ organizationId: string | null;
28
+ supplierId: string | null;
29
+ channelId: string | null;
30
+ bookingId: string | null;
31
+ orderId: string | null;
32
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
33
+ renderedBody: string | null;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ variables?: Record<string, unknown> | null | undefined;
37
+ metadata?: Record<string, unknown> | null | undefined;
38
+ issuedAt?: string | null | undefined;
39
+ sentAt?: string | null | undefined;
40
+ executedAt?: string | null | undefined;
41
+ expiresAt?: string | null | undefined;
42
+ voidedAt?: string | null | undefined;
43
+ }[];
44
+ total: number;
45
+ limit: number;
46
+ offset: number;
47
+ }, Error, {
48
+ data: {
49
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
50
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
51
+ title: string;
52
+ language: string;
53
+ id: string;
54
+ contractNumber: string | null;
55
+ templateVersionId: string | null;
56
+ seriesId: string | null;
57
+ personId: string | null;
58
+ organizationId: string | null;
59
+ supplierId: string | null;
60
+ channelId: string | null;
61
+ bookingId: string | null;
62
+ orderId: string | null;
63
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
64
+ renderedBody: string | null;
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ variables?: Record<string, unknown> | null | undefined;
68
+ metadata?: Record<string, unknown> | null | undefined;
69
+ issuedAt?: string | null | undefined;
70
+ sentAt?: string | null | undefined;
71
+ executedAt?: string | null | undefined;
72
+ expiresAt?: string | null | undefined;
73
+ voidedAt?: string | null | undefined;
74
+ }[];
75
+ total: number;
76
+ limit: number;
77
+ offset: number;
78
+ }, readonly ["legal", "contracts", import("./query-keys.js").LegalContractsListFilters]>, "queryFn"> & {
79
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
80
+ data: {
81
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
82
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
83
+ title: string;
84
+ language: string;
85
+ id: string;
86
+ contractNumber: string | null;
87
+ templateVersionId: string | null;
88
+ seriesId: string | null;
89
+ personId: string | null;
90
+ organizationId: string | null;
91
+ supplierId: string | null;
92
+ channelId: string | null;
93
+ bookingId: string | null;
94
+ orderId: string | null;
95
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
96
+ renderedBody: string | null;
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ variables?: Record<string, unknown> | null | undefined;
100
+ metadata?: Record<string, unknown> | null | undefined;
101
+ issuedAt?: string | null | undefined;
102
+ sentAt?: string | null | undefined;
103
+ executedAt?: string | null | undefined;
104
+ expiresAt?: string | null | undefined;
105
+ voidedAt?: string | null | undefined;
106
+ }[];
107
+ total: number;
108
+ limit: number;
109
+ offset: number;
110
+ }, readonly ["legal", "contracts", import("./query-keys.js").LegalContractsListFilters], never> | undefined;
111
+ } & {
112
+ queryKey: readonly ["legal", "contracts", import("./query-keys.js").LegalContractsListFilters] & {
113
+ [dataTagSymbol]: {
114
+ data: {
115
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
116
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
117
+ title: string;
118
+ language: string;
119
+ id: string;
120
+ contractNumber: string | null;
121
+ templateVersionId: string | null;
122
+ seriesId: string | null;
123
+ personId: string | null;
124
+ organizationId: string | null;
125
+ supplierId: string | null;
126
+ channelId: string | null;
127
+ bookingId: string | null;
128
+ orderId: string | null;
129
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
130
+ renderedBody: string | null;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ variables?: Record<string, unknown> | null | undefined;
134
+ metadata?: Record<string, unknown> | null | undefined;
135
+ issuedAt?: string | null | undefined;
136
+ sentAt?: string | null | undefined;
137
+ executedAt?: string | null | undefined;
138
+ expiresAt?: string | null | undefined;
139
+ voidedAt?: string | null | undefined;
140
+ }[];
141
+ total: number;
142
+ limit: number;
143
+ offset: number;
144
+ };
145
+ [dataTagErrorSymbol]: Error;
146
+ };
147
+ };
148
+ export declare function getLegalContractQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseLegalContractOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
149
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
150
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
151
+ title: string;
152
+ language: string;
153
+ id: string;
154
+ contractNumber: string | null;
155
+ templateVersionId: string | null;
156
+ seriesId: string | null;
157
+ personId: string | null;
158
+ organizationId: string | null;
159
+ supplierId: string | null;
160
+ channelId: string | null;
161
+ bookingId: string | null;
162
+ orderId: string | null;
163
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
164
+ renderedBody: string | null;
165
+ createdAt: string;
166
+ updatedAt: string;
167
+ variables?: Record<string, unknown> | null | undefined;
168
+ metadata?: Record<string, unknown> | null | undefined;
169
+ issuedAt?: string | null | undefined;
170
+ sentAt?: string | null | undefined;
171
+ executedAt?: string | null | undefined;
172
+ expiresAt?: string | null | undefined;
173
+ voidedAt?: string | null | undefined;
174
+ }, Error, {
175
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
176
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
177
+ title: string;
178
+ language: string;
179
+ id: string;
180
+ contractNumber: string | null;
181
+ templateVersionId: string | null;
182
+ seriesId: string | null;
183
+ personId: string | null;
184
+ organizationId: string | null;
185
+ supplierId: string | null;
186
+ channelId: string | null;
187
+ bookingId: string | null;
188
+ orderId: string | null;
189
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
190
+ renderedBody: string | null;
191
+ createdAt: string;
192
+ updatedAt: string;
193
+ variables?: Record<string, unknown> | null | undefined;
194
+ metadata?: Record<string, unknown> | null | undefined;
195
+ issuedAt?: string | null | undefined;
196
+ sentAt?: string | null | undefined;
197
+ executedAt?: string | null | undefined;
198
+ expiresAt?: string | null | undefined;
199
+ voidedAt?: string | null | undefined;
200
+ }, readonly ["legal", "contracts", string]>, "queryFn"> & {
201
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
202
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
203
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
204
+ title: string;
205
+ language: string;
206
+ id: string;
207
+ contractNumber: string | null;
208
+ templateVersionId: string | null;
209
+ seriesId: string | null;
210
+ personId: string | null;
211
+ organizationId: string | null;
212
+ supplierId: string | null;
213
+ channelId: string | null;
214
+ bookingId: string | null;
215
+ orderId: string | null;
216
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
217
+ renderedBody: string | null;
218
+ createdAt: string;
219
+ updatedAt: string;
220
+ variables?: Record<string, unknown> | null | undefined;
221
+ metadata?: Record<string, unknown> | null | undefined;
222
+ issuedAt?: string | null | undefined;
223
+ sentAt?: string | null | undefined;
224
+ executedAt?: string | null | undefined;
225
+ expiresAt?: string | null | undefined;
226
+ voidedAt?: string | null | undefined;
227
+ }, readonly ["legal", "contracts", string], never> | undefined;
228
+ } & {
229
+ queryKey: readonly ["legal", "contracts", string] & {
230
+ [dataTagSymbol]: {
231
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
232
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
233
+ title: string;
234
+ language: string;
235
+ id: string;
236
+ contractNumber: string | null;
237
+ templateVersionId: string | null;
238
+ seriesId: string | null;
239
+ personId: string | null;
240
+ organizationId: string | null;
241
+ supplierId: string | null;
242
+ channelId: string | null;
243
+ bookingId: string | null;
244
+ orderId: string | null;
245
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
246
+ renderedBody: string | null;
247
+ createdAt: string;
248
+ updatedAt: string;
249
+ variables?: Record<string, unknown> | null | undefined;
250
+ metadata?: Record<string, unknown> | null | undefined;
251
+ issuedAt?: string | null | undefined;
252
+ sentAt?: string | null | undefined;
253
+ executedAt?: string | null | undefined;
254
+ expiresAt?: string | null | undefined;
255
+ voidedAt?: string | null | undefined;
256
+ };
257
+ [dataTagErrorSymbol]: Error;
258
+ };
259
+ };
260
+ export declare function getLegalContractSignaturesQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractSignaturesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
261
+ signerName: string;
262
+ method: "manual" | "electronic" | "docusign" | "other";
263
+ id: string;
264
+ contractId: string;
265
+ signerEmail: string | null;
266
+ signerRole: string | null;
267
+ personId: string | null;
268
+ provider: string | null;
269
+ externalReference: string | null;
270
+ signatureData: string | null;
271
+ ipAddress: string | null;
272
+ userAgent: string | null;
273
+ signedAt: string;
274
+ createdAt: string;
275
+ metadata?: Record<string, unknown> | null | undefined;
276
+ }[], Error, {
277
+ signerName: string;
278
+ method: "manual" | "electronic" | "docusign" | "other";
279
+ id: string;
280
+ contractId: string;
281
+ signerEmail: string | null;
282
+ signerRole: string | null;
283
+ personId: string | null;
284
+ provider: string | null;
285
+ externalReference: string | null;
286
+ signatureData: string | null;
287
+ ipAddress: string | null;
288
+ userAgent: string | null;
289
+ signedAt: string;
290
+ createdAt: string;
291
+ metadata?: Record<string, unknown> | null | undefined;
292
+ }[], readonly ["legal", "contracts", string, "signatures"]>, "queryFn"> & {
293
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
294
+ signerName: string;
295
+ method: "manual" | "electronic" | "docusign" | "other";
296
+ id: string;
297
+ contractId: string;
298
+ signerEmail: string | null;
299
+ signerRole: string | null;
300
+ personId: string | null;
301
+ provider: string | null;
302
+ externalReference: string | null;
303
+ signatureData: string | null;
304
+ ipAddress: string | null;
305
+ userAgent: string | null;
306
+ signedAt: string;
307
+ createdAt: string;
308
+ metadata?: Record<string, unknown> | null | undefined;
309
+ }[], readonly ["legal", "contracts", string, "signatures"], never> | undefined;
310
+ } & {
311
+ queryKey: readonly ["legal", "contracts", string, "signatures"] & {
312
+ [dataTagSymbol]: {
313
+ signerName: string;
314
+ method: "manual" | "electronic" | "docusign" | "other";
315
+ id: string;
316
+ contractId: string;
317
+ signerEmail: string | null;
318
+ signerRole: string | null;
319
+ personId: string | null;
320
+ provider: string | null;
321
+ externalReference: string | null;
322
+ signatureData: string | null;
323
+ ipAddress: string | null;
324
+ userAgent: string | null;
325
+ signedAt: string;
326
+ createdAt: string;
327
+ metadata?: Record<string, unknown> | null | undefined;
328
+ }[];
329
+ [dataTagErrorSymbol]: Error;
330
+ };
331
+ };
332
+ export declare function getLegalContractAttachmentsQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractAttachmentsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
333
+ kind: string;
334
+ name: string;
335
+ id: string;
336
+ contractId: string;
337
+ mimeType: string | null;
338
+ fileSize: number | null;
339
+ storageKey: string | null;
340
+ checksum: string | null;
341
+ createdAt: string;
342
+ metadata?: Record<string, unknown> | null | undefined;
343
+ }[], Error, {
344
+ kind: string;
345
+ name: string;
346
+ id: string;
347
+ contractId: string;
348
+ mimeType: string | null;
349
+ fileSize: number | null;
350
+ storageKey: string | null;
351
+ checksum: string | null;
352
+ createdAt: string;
353
+ metadata?: Record<string, unknown> | null | undefined;
354
+ }[], readonly ["legal", "contracts", string, "attachments"]>, "queryFn"> & {
355
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
356
+ kind: string;
357
+ name: string;
358
+ id: string;
359
+ contractId: string;
360
+ mimeType: string | null;
361
+ fileSize: number | null;
362
+ storageKey: string | null;
363
+ checksum: string | null;
364
+ createdAt: string;
365
+ metadata?: Record<string, unknown> | null | undefined;
366
+ }[], readonly ["legal", "contracts", string, "attachments"], never> | undefined;
367
+ } & {
368
+ queryKey: readonly ["legal", "contracts", string, "attachments"] & {
369
+ [dataTagSymbol]: {
370
+ kind: string;
371
+ name: string;
372
+ id: string;
373
+ contractId: string;
374
+ mimeType: string | null;
375
+ fileSize: number | null;
376
+ storageKey: string | null;
377
+ checksum: string | null;
378
+ createdAt: string;
379
+ metadata?: Record<string, unknown> | null | undefined;
380
+ }[];
381
+ [dataTagErrorSymbol]: Error;
382
+ };
383
+ };
384
+ export declare function getLegalContractTemplatesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalContractTemplatesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
385
+ data: {
386
+ name: string;
387
+ slug: string;
388
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
389
+ language: string;
390
+ bodyFormat: "markdown" | "html" | "lexical_json";
391
+ body: string;
392
+ active: boolean;
393
+ id: string;
394
+ description: string | null;
395
+ createdAt: string;
396
+ updatedAt: string;
397
+ variableSchema?: Record<string, unknown> | null | undefined;
398
+ currentVersionId?: string | null | undefined;
399
+ }[];
400
+ total: number;
401
+ limit: number;
402
+ offset: number;
403
+ }, Error, {
404
+ data: {
405
+ name: string;
406
+ slug: string;
407
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
408
+ language: string;
409
+ bodyFormat: "markdown" | "html" | "lexical_json";
410
+ body: string;
411
+ active: boolean;
412
+ id: string;
413
+ description: string | null;
414
+ createdAt: string;
415
+ updatedAt: string;
416
+ variableSchema?: Record<string, unknown> | null | undefined;
417
+ currentVersionId?: string | null | undefined;
418
+ }[];
419
+ total: number;
420
+ limit: number;
421
+ offset: number;
422
+ }, readonly ["legal", "templates", import("./query-keys.js").LegalContractTemplatesListFilters]>, "queryFn"> & {
423
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
424
+ data: {
425
+ name: string;
426
+ slug: string;
427
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
428
+ language: string;
429
+ bodyFormat: "markdown" | "html" | "lexical_json";
430
+ body: string;
431
+ active: boolean;
432
+ id: string;
433
+ description: string | null;
434
+ createdAt: string;
435
+ updatedAt: string;
436
+ variableSchema?: Record<string, unknown> | null | undefined;
437
+ currentVersionId?: string | null | undefined;
438
+ }[];
439
+ total: number;
440
+ limit: number;
441
+ offset: number;
442
+ }, readonly ["legal", "templates", import("./query-keys.js").LegalContractTemplatesListFilters], never> | undefined;
443
+ } & {
444
+ queryKey: readonly ["legal", "templates", import("./query-keys.js").LegalContractTemplatesListFilters] & {
445
+ [dataTagSymbol]: {
446
+ data: {
447
+ name: string;
448
+ slug: string;
449
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
450
+ language: string;
451
+ bodyFormat: "markdown" | "html" | "lexical_json";
452
+ body: string;
453
+ active: boolean;
454
+ id: string;
455
+ description: string | null;
456
+ createdAt: string;
457
+ updatedAt: string;
458
+ variableSchema?: Record<string, unknown> | null | undefined;
459
+ currentVersionId?: string | null | undefined;
460
+ }[];
461
+ total: number;
462
+ limit: number;
463
+ offset: number;
464
+ };
465
+ [dataTagErrorSymbol]: Error;
466
+ };
467
+ };
468
+ export declare function getLegalContractTemplateQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseLegalContractTemplateOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
469
+ name: string;
470
+ slug: string;
471
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
472
+ language: string;
473
+ bodyFormat: "markdown" | "html" | "lexical_json";
474
+ body: string;
475
+ active: boolean;
476
+ id: string;
477
+ description: string | null;
478
+ createdAt: string;
479
+ updatedAt: string;
480
+ variableSchema?: Record<string, unknown> | null | undefined;
481
+ currentVersionId?: string | null | undefined;
482
+ }, Error, {
483
+ name: string;
484
+ slug: string;
485
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
486
+ language: string;
487
+ bodyFormat: "markdown" | "html" | "lexical_json";
488
+ body: string;
489
+ active: boolean;
490
+ id: string;
491
+ description: string | null;
492
+ createdAt: string;
493
+ updatedAt: string;
494
+ variableSchema?: Record<string, unknown> | null | undefined;
495
+ currentVersionId?: string | null | undefined;
496
+ }, readonly ["legal", "templates", string]>, "queryFn"> & {
497
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
498
+ name: string;
499
+ slug: string;
500
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
501
+ language: string;
502
+ bodyFormat: "markdown" | "html" | "lexical_json";
503
+ body: string;
504
+ active: boolean;
505
+ id: string;
506
+ description: string | null;
507
+ createdAt: string;
508
+ updatedAt: string;
509
+ variableSchema?: Record<string, unknown> | null | undefined;
510
+ currentVersionId?: string | null | undefined;
511
+ }, readonly ["legal", "templates", string], never> | undefined;
512
+ } & {
513
+ queryKey: readonly ["legal", "templates", string] & {
514
+ [dataTagSymbol]: {
515
+ name: string;
516
+ slug: string;
517
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
518
+ language: string;
519
+ bodyFormat: "markdown" | "html" | "lexical_json";
520
+ body: string;
521
+ active: boolean;
522
+ id: string;
523
+ description: string | null;
524
+ createdAt: string;
525
+ updatedAt: string;
526
+ variableSchema?: Record<string, unknown> | null | undefined;
527
+ currentVersionId?: string | null | undefined;
528
+ };
529
+ [dataTagErrorSymbol]: Error;
530
+ };
531
+ };
532
+ export declare function getLegalContractTemplateVersionsQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractTemplateVersionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
533
+ bodyFormat: "markdown" | "html" | "lexical_json";
534
+ body: string;
535
+ id: string;
536
+ templateId: string;
537
+ version: number;
538
+ changelog: string | null;
539
+ createdBy: string | null;
540
+ createdAt: string;
541
+ variableSchema?: Record<string, unknown> | null | undefined;
542
+ }[], Error, {
543
+ bodyFormat: "markdown" | "html" | "lexical_json";
544
+ body: string;
545
+ id: string;
546
+ templateId: string;
547
+ version: number;
548
+ changelog: string | null;
549
+ createdBy: string | null;
550
+ createdAt: string;
551
+ variableSchema?: Record<string, unknown> | null | undefined;
552
+ }[], readonly ["legal", "templates", string, "versions"]>, "queryFn"> & {
553
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
554
+ bodyFormat: "markdown" | "html" | "lexical_json";
555
+ body: string;
556
+ id: string;
557
+ templateId: string;
558
+ version: number;
559
+ changelog: string | null;
560
+ createdBy: string | null;
561
+ createdAt: string;
562
+ variableSchema?: Record<string, unknown> | null | undefined;
563
+ }[], readonly ["legal", "templates", string, "versions"], never> | undefined;
564
+ } & {
565
+ queryKey: readonly ["legal", "templates", string, "versions"] & {
566
+ [dataTagSymbol]: {
567
+ bodyFormat: "markdown" | "html" | "lexical_json";
568
+ body: string;
569
+ id: string;
570
+ templateId: string;
571
+ version: number;
572
+ changelog: string | null;
573
+ createdBy: string | null;
574
+ createdAt: string;
575
+ variableSchema?: Record<string, unknown> | null | undefined;
576
+ }[];
577
+ [dataTagErrorSymbol]: Error;
578
+ };
579
+ };
580
+ export declare function getLegalContractNumberSeriesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalContractNumberSeriesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
581
+ data: {
582
+ code: string;
583
+ name: string;
584
+ prefix: string;
585
+ separator: string;
586
+ padLength: number;
587
+ resetStrategy: "never" | "annual" | "monthly";
588
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
589
+ active: boolean;
590
+ id: string;
591
+ currentSequence: number;
592
+ createdAt: string;
593
+ updatedAt: string;
594
+ resetAt?: string | null | undefined;
595
+ }[];
596
+ total: number;
597
+ limit: number;
598
+ offset: number;
599
+ }, Error, {
600
+ data: {
601
+ code: string;
602
+ name: string;
603
+ prefix: string;
604
+ separator: string;
605
+ padLength: number;
606
+ resetStrategy: "never" | "annual" | "monthly";
607
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
608
+ active: boolean;
609
+ id: string;
610
+ currentSequence: number;
611
+ createdAt: string;
612
+ updatedAt: string;
613
+ resetAt?: string | null | undefined;
614
+ }[];
615
+ total: number;
616
+ limit: number;
617
+ offset: number;
618
+ }, readonly ["legal", "number-series", import("./query-keys.js").LegalContractNumberSeriesListFilters]>, "queryFn"> & {
619
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
620
+ data: {
621
+ code: string;
622
+ name: string;
623
+ prefix: string;
624
+ separator: string;
625
+ padLength: number;
626
+ resetStrategy: "never" | "annual" | "monthly";
627
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
628
+ active: boolean;
629
+ id: string;
630
+ currentSequence: number;
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ resetAt?: string | null | undefined;
634
+ }[];
635
+ total: number;
636
+ limit: number;
637
+ offset: number;
638
+ }, readonly ["legal", "number-series", import("./query-keys.js").LegalContractNumberSeriesListFilters], never> | undefined;
639
+ } & {
640
+ queryKey: readonly ["legal", "number-series", import("./query-keys.js").LegalContractNumberSeriesListFilters] & {
641
+ [dataTagSymbol]: {
642
+ data: {
643
+ code: string;
644
+ name: string;
645
+ prefix: string;
646
+ separator: string;
647
+ padLength: number;
648
+ resetStrategy: "never" | "annual" | "monthly";
649
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
650
+ active: boolean;
651
+ id: string;
652
+ currentSequence: number;
653
+ createdAt: string;
654
+ updatedAt: string;
655
+ resetAt?: string | null | undefined;
656
+ }[];
657
+ total: number;
658
+ limit: number;
659
+ offset: number;
660
+ };
661
+ [dataTagErrorSymbol]: Error;
662
+ };
663
+ };
664
+ export declare function getLegalContractNumberSeriesDetailQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
665
+ code: string;
666
+ name: string;
667
+ prefix: string;
668
+ separator: string;
669
+ padLength: number;
670
+ resetStrategy: "never" | "annual" | "monthly";
671
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
672
+ active: boolean;
673
+ id: string;
674
+ currentSequence: number;
675
+ createdAt: string;
676
+ updatedAt: string;
677
+ resetAt?: string | null | undefined;
678
+ }, Error, {
679
+ code: string;
680
+ name: string;
681
+ prefix: string;
682
+ separator: string;
683
+ padLength: number;
684
+ resetStrategy: "never" | "annual" | "monthly";
685
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
686
+ active: boolean;
687
+ id: string;
688
+ currentSequence: number;
689
+ createdAt: string;
690
+ updatedAt: string;
691
+ resetAt?: string | null | undefined;
692
+ }, readonly ["legal", "number-series", string]>, "queryFn"> & {
693
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
694
+ code: string;
695
+ name: string;
696
+ prefix: string;
697
+ separator: string;
698
+ padLength: number;
699
+ resetStrategy: "never" | "annual" | "monthly";
700
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
701
+ active: boolean;
702
+ id: string;
703
+ currentSequence: number;
704
+ createdAt: string;
705
+ updatedAt: string;
706
+ resetAt?: string | null | undefined;
707
+ }, readonly ["legal", "number-series", string], never> | undefined;
708
+ } & {
709
+ queryKey: readonly ["legal", "number-series", string] & {
710
+ [dataTagSymbol]: {
711
+ code: string;
712
+ name: string;
713
+ prefix: string;
714
+ separator: string;
715
+ padLength: number;
716
+ resetStrategy: "never" | "annual" | "monthly";
717
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
718
+ active: boolean;
719
+ id: string;
720
+ currentSequence: number;
721
+ createdAt: string;
722
+ updatedAt: string;
723
+ resetAt?: string | null | undefined;
724
+ };
725
+ [dataTagErrorSymbol]: Error;
726
+ };
727
+ };
728
+ export declare function getLegalPoliciesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalPoliciesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
729
+ data: {
730
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
731
+ name: string;
732
+ slug: string;
733
+ language: string;
734
+ id: string;
735
+ description: string | null;
736
+ createdAt: string;
737
+ updatedAt: string;
738
+ metadata?: Record<string, unknown> | null | undefined;
739
+ currentVersionId?: string | null | undefined;
740
+ }[];
741
+ total: number;
742
+ limit: number;
743
+ offset: number;
744
+ }, Error, {
745
+ data: {
746
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
747
+ name: string;
748
+ slug: string;
749
+ language: string;
750
+ id: string;
751
+ description: string | null;
752
+ createdAt: string;
753
+ updatedAt: string;
754
+ metadata?: Record<string, unknown> | null | undefined;
755
+ currentVersionId?: string | null | undefined;
756
+ }[];
757
+ total: number;
758
+ limit: number;
759
+ offset: number;
760
+ }, readonly ["legal", "policies", import("./query-keys.js").LegalPoliciesListFilters]>, "queryFn"> & {
761
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
762
+ data: {
763
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
764
+ name: string;
765
+ slug: string;
766
+ language: string;
767
+ id: string;
768
+ description: string | null;
769
+ createdAt: string;
770
+ updatedAt: string;
771
+ metadata?: Record<string, unknown> | null | undefined;
772
+ currentVersionId?: string | null | undefined;
773
+ }[];
774
+ total: number;
775
+ limit: number;
776
+ offset: number;
777
+ }, readonly ["legal", "policies", import("./query-keys.js").LegalPoliciesListFilters], never> | undefined;
778
+ } & {
779
+ queryKey: readonly ["legal", "policies", import("./query-keys.js").LegalPoliciesListFilters] & {
780
+ [dataTagSymbol]: {
781
+ data: {
782
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
783
+ name: string;
784
+ slug: string;
785
+ language: string;
786
+ id: string;
787
+ description: string | null;
788
+ createdAt: string;
789
+ updatedAt: string;
790
+ metadata?: Record<string, unknown> | null | undefined;
791
+ currentVersionId?: string | null | undefined;
792
+ }[];
793
+ total: number;
794
+ limit: number;
795
+ offset: number;
796
+ };
797
+ [dataTagErrorSymbol]: Error;
798
+ };
799
+ };
800
+ export declare function getLegalPolicyQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseLegalPolicyOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
801
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
802
+ name: string;
803
+ slug: string;
804
+ language: string;
805
+ id: string;
806
+ description: string | null;
807
+ createdAt: string;
808
+ updatedAt: string;
809
+ metadata?: Record<string, unknown> | null | undefined;
810
+ currentVersionId?: string | null | undefined;
811
+ }, Error, {
812
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
813
+ name: string;
814
+ slug: string;
815
+ language: string;
816
+ id: string;
817
+ description: string | null;
818
+ createdAt: string;
819
+ updatedAt: string;
820
+ metadata?: Record<string, unknown> | null | undefined;
821
+ currentVersionId?: string | null | undefined;
822
+ }, readonly ["legal", "policies", string]>, "queryFn"> & {
823
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
824
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
825
+ name: string;
826
+ slug: string;
827
+ language: string;
828
+ id: string;
829
+ description: string | null;
830
+ createdAt: string;
831
+ updatedAt: string;
832
+ metadata?: Record<string, unknown> | null | undefined;
833
+ currentVersionId?: string | null | undefined;
834
+ }, readonly ["legal", "policies", string], never> | undefined;
835
+ } & {
836
+ queryKey: readonly ["legal", "policies", string] & {
837
+ [dataTagSymbol]: {
838
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
839
+ name: string;
840
+ slug: string;
841
+ language: string;
842
+ id: string;
843
+ description: string | null;
844
+ createdAt: string;
845
+ updatedAt: string;
846
+ metadata?: Record<string, unknown> | null | undefined;
847
+ currentVersionId?: string | null | undefined;
848
+ };
849
+ [dataTagErrorSymbol]: Error;
850
+ };
851
+ };
852
+ export declare function getLegalPolicyVersionsQueryOptions(client: FetchWithValidationOptions, options: UseLegalPolicyVersionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
853
+ title: string;
854
+ bodyFormat: "markdown" | "html" | "plain";
855
+ id: string;
856
+ policyId: string;
857
+ version: number;
858
+ status: "draft" | "published" | "retired";
859
+ body: string | null;
860
+ publishedAt: string | null;
861
+ publishedBy: string | null;
862
+ createdAt: string;
863
+ updatedAt: string;
864
+ retiredAt?: string | null | undefined;
865
+ metadata?: Record<string, unknown> | null | undefined;
866
+ }[], Error, {
867
+ title: string;
868
+ bodyFormat: "markdown" | "html" | "plain";
869
+ id: string;
870
+ policyId: string;
871
+ version: number;
872
+ status: "draft" | "published" | "retired";
873
+ body: string | null;
874
+ publishedAt: string | null;
875
+ publishedBy: string | null;
876
+ createdAt: string;
877
+ updatedAt: string;
878
+ retiredAt?: string | null | undefined;
879
+ metadata?: Record<string, unknown> | null | undefined;
880
+ }[], readonly ["legal", "policies", string, "versions"]>, "queryFn"> & {
881
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
882
+ title: string;
883
+ bodyFormat: "markdown" | "html" | "plain";
884
+ id: string;
885
+ policyId: string;
886
+ version: number;
887
+ status: "draft" | "published" | "retired";
888
+ body: string | null;
889
+ publishedAt: string | null;
890
+ publishedBy: string | null;
891
+ createdAt: string;
892
+ updatedAt: string;
893
+ retiredAt?: string | null | undefined;
894
+ metadata?: Record<string, unknown> | null | undefined;
895
+ }[], readonly ["legal", "policies", string, "versions"], never> | undefined;
896
+ } & {
897
+ queryKey: readonly ["legal", "policies", string, "versions"] & {
898
+ [dataTagSymbol]: {
899
+ title: string;
900
+ bodyFormat: "markdown" | "html" | "plain";
901
+ id: string;
902
+ policyId: string;
903
+ version: number;
904
+ status: "draft" | "published" | "retired";
905
+ body: string | null;
906
+ publishedAt: string | null;
907
+ publishedBy: string | null;
908
+ createdAt: string;
909
+ updatedAt: string;
910
+ retiredAt?: string | null | undefined;
911
+ metadata?: Record<string, unknown> | null | undefined;
912
+ }[];
913
+ [dataTagErrorSymbol]: Error;
914
+ };
915
+ };
916
+ export declare function getLegalPolicyVersionQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
917
+ title: string;
918
+ bodyFormat: "markdown" | "html" | "plain";
919
+ id: string;
920
+ policyId: string;
921
+ version: number;
922
+ status: "draft" | "published" | "retired";
923
+ body: string | null;
924
+ publishedAt: string | null;
925
+ publishedBy: string | null;
926
+ createdAt: string;
927
+ updatedAt: string;
928
+ retiredAt?: string | null | undefined;
929
+ metadata?: Record<string, unknown> | null | undefined;
930
+ }, Error, {
931
+ title: string;
932
+ bodyFormat: "markdown" | "html" | "plain";
933
+ id: string;
934
+ policyId: string;
935
+ version: number;
936
+ status: "draft" | "published" | "retired";
937
+ body: string | null;
938
+ publishedAt: string | null;
939
+ publishedBy: string | null;
940
+ createdAt: string;
941
+ updatedAt: string;
942
+ retiredAt?: string | null | undefined;
943
+ metadata?: Record<string, unknown> | null | undefined;
944
+ }, readonly ["legal", "policies", "version", string]>, "queryFn"> & {
945
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
946
+ title: string;
947
+ bodyFormat: "markdown" | "html" | "plain";
948
+ id: string;
949
+ policyId: string;
950
+ version: number;
951
+ status: "draft" | "published" | "retired";
952
+ body: string | null;
953
+ publishedAt: string | null;
954
+ publishedBy: string | null;
955
+ createdAt: string;
956
+ updatedAt: string;
957
+ retiredAt?: string | null | undefined;
958
+ metadata?: Record<string, unknown> | null | undefined;
959
+ }, readonly ["legal", "policies", "version", string], never> | undefined;
960
+ } & {
961
+ queryKey: readonly ["legal", "policies", "version", string] & {
962
+ [dataTagSymbol]: {
963
+ title: string;
964
+ bodyFormat: "markdown" | "html" | "plain";
965
+ id: string;
966
+ policyId: string;
967
+ version: number;
968
+ status: "draft" | "published" | "retired";
969
+ body: string | null;
970
+ publishedAt: string | null;
971
+ publishedBy: string | null;
972
+ createdAt: string;
973
+ updatedAt: string;
974
+ retiredAt?: string | null | undefined;
975
+ metadata?: Record<string, unknown> | null | undefined;
976
+ };
977
+ [dataTagErrorSymbol]: Error;
978
+ };
979
+ };
980
+ export declare function getLegalPolicyRulesQueryOptions(client: FetchWithValidationOptions, options: UseLegalPolicyRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
981
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
982
+ sortOrder: number;
983
+ id: string;
984
+ policyVersionId: string;
985
+ label: string | null;
986
+ daysBeforeDeparture: number | null;
987
+ refundPercent: number | null;
988
+ flatAmountCents: number | null;
989
+ currency: string | null;
990
+ createdAt: string;
991
+ updatedAt: string;
992
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
993
+ validFrom?: string | null | undefined;
994
+ validTo?: string | null | undefined;
995
+ conditions?: Record<string, unknown> | null | undefined;
996
+ }[], Error, {
997
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
998
+ sortOrder: number;
999
+ id: string;
1000
+ policyVersionId: string;
1001
+ label: string | null;
1002
+ daysBeforeDeparture: number | null;
1003
+ refundPercent: number | null;
1004
+ flatAmountCents: number | null;
1005
+ currency: string | null;
1006
+ createdAt: string;
1007
+ updatedAt: string;
1008
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1009
+ validFrom?: string | null | undefined;
1010
+ validTo?: string | null | undefined;
1011
+ conditions?: Record<string, unknown> | null | undefined;
1012
+ }[], readonly ["legal", "policies", "rules", string]>, "queryFn"> & {
1013
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1014
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1015
+ sortOrder: number;
1016
+ id: string;
1017
+ policyVersionId: string;
1018
+ label: string | null;
1019
+ daysBeforeDeparture: number | null;
1020
+ refundPercent: number | null;
1021
+ flatAmountCents: number | null;
1022
+ currency: string | null;
1023
+ createdAt: string;
1024
+ updatedAt: string;
1025
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1026
+ validFrom?: string | null | undefined;
1027
+ validTo?: string | null | undefined;
1028
+ conditions?: Record<string, unknown> | null | undefined;
1029
+ }[], readonly ["legal", "policies", "rules", string], never> | undefined;
1030
+ } & {
1031
+ queryKey: readonly ["legal", "policies", "rules", string] & {
1032
+ [dataTagSymbol]: {
1033
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1034
+ sortOrder: number;
1035
+ id: string;
1036
+ policyVersionId: string;
1037
+ label: string | null;
1038
+ daysBeforeDeparture: number | null;
1039
+ refundPercent: number | null;
1040
+ flatAmountCents: number | null;
1041
+ currency: string | null;
1042
+ createdAt: string;
1043
+ updatedAt: string;
1044
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1045
+ validFrom?: string | null | undefined;
1046
+ validTo?: string | null | undefined;
1047
+ conditions?: Record<string, unknown> | null | undefined;
1048
+ }[];
1049
+ [dataTagErrorSymbol]: Error;
1050
+ };
1051
+ };
1052
+ export declare function getLegalPolicyAssignmentsQueryOptions(client: FetchWithValidationOptions, options?: UseLegalPolicyAssignmentsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1053
+ data: {
1054
+ policyId: string;
1055
+ scope: "supplier" | "channel" | "product" | "market" | "organization" | "global";
1056
+ priority: number;
1057
+ id: string;
1058
+ productId: string | null;
1059
+ channelId: string | null;
1060
+ supplierId: string | null;
1061
+ marketId: string | null;
1062
+ organizationId: string | null;
1063
+ createdAt: string;
1064
+ updatedAt: string;
1065
+ validFrom?: string | null | undefined;
1066
+ validTo?: string | null | undefined;
1067
+ metadata?: Record<string, unknown> | null | undefined;
1068
+ }[];
1069
+ }, Error, {
1070
+ data: {
1071
+ policyId: string;
1072
+ scope: "supplier" | "channel" | "product" | "market" | "organization" | "global";
1073
+ priority: number;
1074
+ id: string;
1075
+ productId: string | null;
1076
+ channelId: string | null;
1077
+ supplierId: string | null;
1078
+ marketId: string | null;
1079
+ organizationId: string | null;
1080
+ createdAt: string;
1081
+ updatedAt: string;
1082
+ validFrom?: string | null | undefined;
1083
+ validTo?: string | null | undefined;
1084
+ metadata?: Record<string, unknown> | null | undefined;
1085
+ }[];
1086
+ }, readonly ["legal", "policies", "assignments", import("./query-keys.js").LegalPolicyAssignmentsListFilters]>, "queryFn"> & {
1087
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1088
+ data: {
1089
+ policyId: string;
1090
+ scope: "supplier" | "channel" | "product" | "market" | "organization" | "global";
1091
+ priority: number;
1092
+ id: string;
1093
+ productId: string | null;
1094
+ channelId: string | null;
1095
+ supplierId: string | null;
1096
+ marketId: string | null;
1097
+ organizationId: string | null;
1098
+ createdAt: string;
1099
+ updatedAt: string;
1100
+ validFrom?: string | null | undefined;
1101
+ validTo?: string | null | undefined;
1102
+ metadata?: Record<string, unknown> | null | undefined;
1103
+ }[];
1104
+ }, readonly ["legal", "policies", "assignments", import("./query-keys.js").LegalPolicyAssignmentsListFilters], never> | undefined;
1105
+ } & {
1106
+ queryKey: readonly ["legal", "policies", "assignments", import("./query-keys.js").LegalPolicyAssignmentsListFilters] & {
1107
+ [dataTagSymbol]: {
1108
+ data: {
1109
+ policyId: string;
1110
+ scope: "supplier" | "channel" | "product" | "market" | "organization" | "global";
1111
+ priority: number;
1112
+ id: string;
1113
+ productId: string | null;
1114
+ channelId: string | null;
1115
+ supplierId: string | null;
1116
+ marketId: string | null;
1117
+ organizationId: string | null;
1118
+ createdAt: string;
1119
+ updatedAt: string;
1120
+ validFrom?: string | null | undefined;
1121
+ validTo?: string | null | undefined;
1122
+ metadata?: Record<string, unknown> | null | undefined;
1123
+ }[];
1124
+ };
1125
+ [dataTagErrorSymbol]: Error;
1126
+ };
1127
+ };
1128
+ export declare function getLegalPolicyAcceptancesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalPolicyAcceptancesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1129
+ data: {
1130
+ id: string;
1131
+ policyVersionId: string;
1132
+ personId: string | null;
1133
+ bookingId: string | null;
1134
+ acceptedAt: string;
1135
+ method: "implicit" | "explicit_checkbox" | "signature";
1136
+ createdAt: string;
1137
+ orderId?: string | null | undefined;
1138
+ offerId?: string | null | undefined;
1139
+ acceptedBy?: string | null | undefined;
1140
+ ipAddress?: string | null | undefined;
1141
+ userAgent?: string | null | undefined;
1142
+ metadata?: Record<string, unknown> | null | undefined;
1143
+ }[];
1144
+ }, Error, {
1145
+ data: {
1146
+ id: string;
1147
+ policyVersionId: string;
1148
+ personId: string | null;
1149
+ bookingId: string | null;
1150
+ acceptedAt: string;
1151
+ method: "implicit" | "explicit_checkbox" | "signature";
1152
+ createdAt: string;
1153
+ orderId?: string | null | undefined;
1154
+ offerId?: string | null | undefined;
1155
+ acceptedBy?: string | null | undefined;
1156
+ ipAddress?: string | null | undefined;
1157
+ userAgent?: string | null | undefined;
1158
+ metadata?: Record<string, unknown> | null | undefined;
1159
+ }[];
1160
+ }, readonly ["legal", "policies", "acceptances", import("./query-keys.js").LegalPolicyAcceptancesListFilters]>, "queryFn"> & {
1161
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1162
+ data: {
1163
+ id: string;
1164
+ policyVersionId: string;
1165
+ personId: string | null;
1166
+ bookingId: string | null;
1167
+ acceptedAt: string;
1168
+ method: "implicit" | "explicit_checkbox" | "signature";
1169
+ createdAt: string;
1170
+ orderId?: string | null | undefined;
1171
+ offerId?: string | null | undefined;
1172
+ acceptedBy?: string | null | undefined;
1173
+ ipAddress?: string | null | undefined;
1174
+ userAgent?: string | null | undefined;
1175
+ metadata?: Record<string, unknown> | null | undefined;
1176
+ }[];
1177
+ }, readonly ["legal", "policies", "acceptances", import("./query-keys.js").LegalPolicyAcceptancesListFilters], never> | undefined;
1178
+ } & {
1179
+ queryKey: readonly ["legal", "policies", "acceptances", import("./query-keys.js").LegalPolicyAcceptancesListFilters] & {
1180
+ [dataTagSymbol]: {
1181
+ data: {
1182
+ id: string;
1183
+ policyVersionId: string;
1184
+ personId: string | null;
1185
+ bookingId: string | null;
1186
+ acceptedAt: string;
1187
+ method: "implicit" | "explicit_checkbox" | "signature";
1188
+ createdAt: string;
1189
+ orderId?: string | null | undefined;
1190
+ offerId?: string | null | undefined;
1191
+ acceptedBy?: string | null | undefined;
1192
+ ipAddress?: string | null | undefined;
1193
+ userAgent?: string | null | undefined;
1194
+ metadata?: Record<string, unknown> | null | undefined;
1195
+ }[];
1196
+ };
1197
+ [dataTagErrorSymbol]: Error;
1198
+ };
1199
+ };
1200
+ //# sourceMappingURL=query-options.d.ts.map