@voyant-travel/legal-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 (238) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +66 -0
  3. package/dist/admin/contract-detail-host.d.ts +21 -0
  4. package/dist/admin/contract-detail-host.d.ts.map +1 -0
  5. package/dist/admin/contract-detail-host.js +118 -0
  6. package/dist/admin/contract-dialog-fields.d.ts +79 -0
  7. package/dist/admin/contract-dialog-fields.d.ts.map +1 -0
  8. package/dist/admin/contract-dialog-fields.js +178 -0
  9. package/dist/admin/contract-dialog.d.ts +4 -0
  10. package/dist/admin/contract-dialog.d.ts.map +1 -0
  11. package/dist/admin/contract-dialog.js +479 -0
  12. package/dist/admin/contract-upload-field.d.ts +12 -0
  13. package/dist/admin/contract-upload-field.d.ts.map +1 -0
  14. package/dist/admin/contract-upload-field.js +31 -0
  15. package/dist/admin/contracts-host.d.ts +10 -0
  16. package/dist/admin/contracts-host.d.ts.map +1 -0
  17. package/dist/admin/contracts-host.js +32 -0
  18. package/dist/admin/index.d.ts +78 -0
  19. package/dist/admin/index.d.ts.map +1 -0
  20. package/dist/admin/index.js +193 -0
  21. package/dist/admin/legal-admin-shared.d.ts +31 -0
  22. package/dist/admin/legal-admin-shared.d.ts.map +1 -0
  23. package/dist/admin/legal-admin-shared.js +48 -0
  24. package/dist/admin/number-series-dialog.d.ts +11 -0
  25. package/dist/admin/number-series-dialog.d.ts.map +1 -0
  26. package/dist/admin/number-series-dialog.js +110 -0
  27. package/dist/admin/number-series-host.d.ts +7 -0
  28. package/dist/admin/number-series-host.d.ts.map +1 -0
  29. package/dist/admin/number-series-host.js +12 -0
  30. package/dist/admin/pages/contract-detail-page.d.ts +7 -0
  31. package/dist/admin/pages/contract-detail-page.d.ts.map +1 -0
  32. package/dist/admin/pages/contract-detail-page.js +9 -0
  33. package/dist/admin/pages/policy-detail-page.d.ts +7 -0
  34. package/dist/admin/pages/policy-detail-page.d.ts.map +1 -0
  35. package/dist/admin/pages/policy-detail-page.js +9 -0
  36. package/dist/admin/pages/template-detail-page.d.ts +7 -0
  37. package/dist/admin/pages/template-detail-page.d.ts.map +1 -0
  38. package/dist/admin/pages/template-detail-page.js +9 -0
  39. package/dist/admin/policies-host.d.ts +9 -0
  40. package/dist/admin/policies-host.d.ts.map +1 -0
  41. package/dist/admin/policies-host.js +16 -0
  42. package/dist/admin/policy-assignment-dialog.d.ts +11 -0
  43. package/dist/admin/policy-assignment-dialog.d.ts.map +1 -0
  44. package/dist/admin/policy-assignment-dialog.js +234 -0
  45. package/dist/admin/policy-detail-host.d.ts +12 -0
  46. package/dist/admin/policy-detail-host.d.ts.map +1 -0
  47. package/dist/admin/policy-detail-host.js +17 -0
  48. package/dist/admin/policy-dialog.d.ts +10 -0
  49. package/dist/admin/policy-dialog.d.ts.map +1 -0
  50. package/dist/admin/policy-dialog.js +81 -0
  51. package/dist/admin/template-detail-host.d.ts +11 -0
  52. package/dist/admin/template-detail-host.d.ts.map +1 -0
  53. package/dist/admin/template-detail-host.js +20 -0
  54. package/dist/admin/template-dialog.d.ts +10 -0
  55. package/dist/admin/template-dialog.d.ts.map +1 -0
  56. package/dist/admin/template-dialog.js +117 -0
  57. package/dist/admin/template-version-dialog.d.ts +9 -0
  58. package/dist/admin/template-version-dialog.d.ts.map +1 -0
  59. package/dist/admin/template-version-dialog.js +67 -0
  60. package/dist/admin/templates-host.d.ts +9 -0
  61. package/dist/admin/templates-host.d.ts.map +1 -0
  62. package/dist/admin/templates-host.js +20 -0
  63. package/dist/client.d.ts +14 -0
  64. package/dist/client.d.ts.map +1 -0
  65. package/dist/client.js +69 -0
  66. package/dist/components/attachment-dialog.d.ts +11 -0
  67. package/dist/components/attachment-dialog.d.ts.map +1 -0
  68. package/dist/components/attachment-dialog.js +154 -0
  69. package/dist/components/booking-contract-card.d.ts +37 -0
  70. package/dist/components/booking-contract-card.d.ts.map +1 -0
  71. package/dist/components/booking-contract-card.js +101 -0
  72. package/dist/components/contract-detail-page.d.ts +36 -0
  73. package/dist/components/contract-detail-page.d.ts.map +1 -0
  74. package/dist/components/contract-detail-page.js +156 -0
  75. package/dist/components/contract-dialog-fields.d.ts +114 -0
  76. package/dist/components/contract-dialog-fields.d.ts.map +1 -0
  77. package/dist/components/contract-dialog-fields.js +233 -0
  78. package/dist/components/contract-dialog.d.ts +5 -0
  79. package/dist/components/contract-dialog.d.ts.map +1 -0
  80. package/dist/components/contract-dialog.js +345 -0
  81. package/dist/components/contract-send-dialog.d.ts +37 -0
  82. package/dist/components/contract-send-dialog.d.ts.map +1 -0
  83. package/dist/components/contract-send-dialog.js +56 -0
  84. package/dist/components/contracts-page.d.ts +30 -0
  85. package/dist/components/contracts-page.d.ts.map +1 -0
  86. package/dist/components/contracts-page.js +192 -0
  87. package/dist/components/number-series-page.d.ts +13 -0
  88. package/dist/components/number-series-page.d.ts.map +1 -0
  89. package/dist/components/number-series-page.js +37 -0
  90. package/dist/components/policies-page.d.ts +13 -0
  91. package/dist/components/policies-page.d.ts.map +1 -0
  92. package/dist/components/policies-page.js +70 -0
  93. package/dist/components/policy-detail-page.d.ts +23 -0
  94. package/dist/components/policy-detail-page.d.ts.map +1 -0
  95. package/dist/components/policy-detail-page.js +171 -0
  96. package/dist/components/policy-rule-dialog.d.ts +12 -0
  97. package/dist/components/policy-rule-dialog.d.ts.map +1 -0
  98. package/dist/components/policy-rule-dialog.js +101 -0
  99. package/dist/components/policy-version-dialog.d.ts +11 -0
  100. package/dist/components/policy-version-dialog.d.ts.map +1 -0
  101. package/dist/components/policy-version-dialog.js +62 -0
  102. package/dist/components/signature-dialog.d.ts +9 -0
  103. package/dist/components/signature-dialog.d.ts.map +1 -0
  104. package/dist/components/signature-dialog.js +64 -0
  105. package/dist/components/template-detail-page.d.ts +10 -0
  106. package/dist/components/template-detail-page.d.ts.map +1 -0
  107. package/dist/components/template-detail-page.js +84 -0
  108. package/dist/components/templates-page.d.ts +27 -0
  109. package/dist/components/templates-page.d.ts.map +1 -0
  110. package/dist/components/templates-page.js +65 -0
  111. package/dist/hooks/index.d.ts +31 -0
  112. package/dist/hooks/index.d.ts.map +1 -0
  113. package/dist/hooks/index.js +30 -0
  114. package/dist/hooks/use-contract-attachment-mutation.d.ts +119 -0
  115. package/dist/hooks/use-contract-attachment-mutation.d.ts.map +1 -0
  116. package/dist/hooks/use-contract-attachment-mutation.js +72 -0
  117. package/dist/hooks/use-contract-attachments.d.ts +23 -0
  118. package/dist/hooks/use-contract-attachments.d.ts.map +1 -0
  119. package/dist/hooks/use-contract-attachments.js +12 -0
  120. package/dist/hooks/use-contract-mutation.d.ts +427 -0
  121. package/dist/hooks/use-contract-mutation.d.ts.map +1 -0
  122. package/dist/hooks/use-contract-mutation.js +151 -0
  123. package/dist/hooks/use-contract-signature-mutation.d.ts +35 -0
  124. package/dist/hooks/use-contract-signature-mutation.d.ts.map +1 -0
  125. package/dist/hooks/use-contract-signature-mutation.js +23 -0
  126. package/dist/hooks/use-contract-signatures.d.ts +28 -0
  127. package/dist/hooks/use-contract-signatures.d.ts.map +1 -0
  128. package/dist/hooks/use-contract-signatures.js +12 -0
  129. package/dist/hooks/use-contract-template-authoring.d.ts +5 -0
  130. package/dist/hooks/use-contract-template-authoring.d.ts.map +1 -0
  131. package/dist/hooks/use-contract-template-authoring.js +7 -0
  132. package/dist/hooks/use-contract-template-mutation.d.ts +56 -0
  133. package/dist/hooks/use-contract-template-mutation.d.ts.map +1 -0
  134. package/dist/hooks/use-contract-template-mutation.js +39 -0
  135. package/dist/hooks/use-contract-template-version-mutation.d.ts +22 -0
  136. package/dist/hooks/use-contract-template-version-mutation.d.ts.map +1 -0
  137. package/dist/hooks/use-contract-template-version-mutation.js +22 -0
  138. package/dist/hooks/use-contract-template-versions.d.ts +15 -0
  139. package/dist/hooks/use-contract-template-versions.d.ts.map +1 -0
  140. package/dist/hooks/use-contract-template-versions.js +12 -0
  141. package/dist/hooks/use-contract-template.d.ts +20 -0
  142. package/dist/hooks/use-contract-template.d.ts.map +1 -0
  143. package/dist/hooks/use-contract-template.js +12 -0
  144. package/dist/hooks/use-contract-templates.d.ts +26 -0
  145. package/dist/hooks/use-contract-templates.d.ts.map +1 -0
  146. package/dist/hooks/use-contract-templates.js +12 -0
  147. package/dist/hooks/use-contract.d.ts +47 -0
  148. package/dist/hooks/use-contract.d.ts.map +1 -0
  149. package/dist/hooks/use-contract.js +12 -0
  150. package/dist/hooks/use-contracts.d.ts +53 -0
  151. package/dist/hooks/use-contracts.d.ts.map +1 -0
  152. package/dist/hooks/use-contracts.js +12 -0
  153. package/dist/hooks/use-default-contract-template.d.ts +21 -0
  154. package/dist/hooks/use-default-contract-template.d.ts.map +1 -0
  155. package/dist/hooks/use-default-contract-template.js +12 -0
  156. package/dist/hooks/use-evaluate-cancellation.d.ts +46 -0
  157. package/dist/hooks/use-evaluate-cancellation.d.ts.map +1 -0
  158. package/dist/hooks/use-evaluate-cancellation.js +43 -0
  159. package/dist/hooks/use-number-series-mutation.d.ts +58 -0
  160. package/dist/hooks/use-number-series-mutation.d.ts.map +1 -0
  161. package/dist/hooks/use-number-series-mutation.js +38 -0
  162. package/dist/hooks/use-number-series.d.ts +24 -0
  163. package/dist/hooks/use-number-series.d.ts.map +1 -0
  164. package/dist/hooks/use-number-series.js +12 -0
  165. package/dist/hooks/use-policies.d.ts +22 -0
  166. package/dist/hooks/use-policies.d.ts.map +1 -0
  167. package/dist/hooks/use-policies.js +12 -0
  168. package/dist/hooks/use-policy-acceptances.d.ts +26 -0
  169. package/dist/hooks/use-policy-acceptances.d.ts.map +1 -0
  170. package/dist/hooks/use-policy-acceptances.js +12 -0
  171. package/dist/hooks/use-policy-assignment-mutation.d.ts +63 -0
  172. package/dist/hooks/use-policy-assignment-mutation.d.ts.map +1 -0
  173. package/dist/hooks/use-policy-assignment-mutation.js +41 -0
  174. package/dist/hooks/use-policy-assignments.d.ts +23 -0
  175. package/dist/hooks/use-policy-assignments.d.ts.map +1 -0
  176. package/dist/hooks/use-policy-assignments.js +12 -0
  177. package/dist/hooks/use-policy-mutation.d.ts +44 -0
  178. package/dist/hooks/use-policy-mutation.d.ts.map +1 -0
  179. package/dist/hooks/use-policy-mutation.js +40 -0
  180. package/dist/hooks/use-policy-rule-mutation.d.ts +56 -0
  181. package/dist/hooks/use-policy-rule-mutation.d.ts.map +1 -0
  182. package/dist/hooks/use-policy-rule-mutation.js +39 -0
  183. package/dist/hooks/use-policy-rules.d.ts +22 -0
  184. package/dist/hooks/use-policy-rules.d.ts.map +1 -0
  185. package/dist/hooks/use-policy-rules.js +12 -0
  186. package/dist/hooks/use-policy-version-mutation.d.ts +69 -0
  187. package/dist/hooks/use-policy-version-mutation.d.ts.map +1 -0
  188. package/dist/hooks/use-policy-version-mutation.js +50 -0
  189. package/dist/hooks/use-policy-versions.d.ts +19 -0
  190. package/dist/hooks/use-policy-versions.d.ts.map +1 -0
  191. package/dist/hooks/use-policy-versions.js +12 -0
  192. package/dist/hooks/use-policy.d.ts +16 -0
  193. package/dist/hooks/use-policy.d.ts.map +1 -0
  194. package/dist/hooks/use-policy.js +12 -0
  195. package/dist/hooks/use-resolve-policy.d.ts +72 -0
  196. package/dist/hooks/use-resolve-policy.d.ts.map +1 -0
  197. package/dist/hooks/use-resolve-policy.js +16 -0
  198. package/dist/hooks/use-term.d.ts +27 -0
  199. package/dist/hooks/use-term.d.ts.map +1 -0
  200. package/dist/hooks/use-term.js +12 -0
  201. package/dist/hooks/use-terms.d.ts +33 -0
  202. package/dist/hooks/use-terms.d.ts.map +1 -0
  203. package/dist/hooks/use-terms.js +12 -0
  204. package/dist/i18n/en.d.ts +548 -0
  205. package/dist/i18n/en.d.ts.map +1 -0
  206. package/dist/i18n/en.js +547 -0
  207. package/dist/i18n/index.d.ts +6 -0
  208. package/dist/i18n/index.d.ts.map +1 -0
  209. package/dist/i18n/index.js +4 -0
  210. package/dist/i18n/messages.d.ts +504 -0
  211. package/dist/i18n/messages.d.ts.map +1 -0
  212. package/dist/i18n/messages.js +29 -0
  213. package/dist/i18n/provider.d.ts +1118 -0
  214. package/dist/i18n/provider.d.ts.map +1 -0
  215. package/dist/i18n/provider.js +44 -0
  216. package/dist/i18n/ro.d.ts +548 -0
  217. package/dist/i18n/ro.d.ts.map +1 -0
  218. package/dist/i18n/ro.js +547 -0
  219. package/dist/index.d.ts +7 -0
  220. package/dist/index.d.ts.map +1 -0
  221. package/dist/index.js +6 -0
  222. package/dist/provider.d.ts +2 -0
  223. package/dist/provider.d.ts.map +1 -0
  224. package/dist/provider.js +1 -0
  225. package/dist/query-keys.d.ts +120 -0
  226. package/dist/query-keys.d.ts.map +1 -0
  227. package/dist/query-keys.js +27 -0
  228. package/dist/query-options.d.ts +1929 -0
  229. package/dist/query-options.d.ts.map +1 -0
  230. package/dist/query-options.js +183 -0
  231. package/dist/schemas.d.ts +1547 -0
  232. package/dist/schemas.d.ts.map +1 -0
  233. package/dist/schemas.js +269 -0
  234. package/dist/ui.d.ts +16 -0
  235. package/dist/ui.d.ts.map +1 -0
  236. package/dist/ui.js +15 -0
  237. package/package.json +159 -0
  238. package/src/styles.css +11 -0
@@ -0,0 +1,1929 @@
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
+ import { type LegalContractTemplateDefaultFilters, type LegalTermsListFilters, type ResolvePolicyFilters } from "./query-keys.js";
17
+ export declare function getLegalContractsQueryOptions(client: FetchWithValidationOptions, options?: UseLegalContractsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
18
+ data: {
19
+ language: string;
20
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
21
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
22
+ title: string;
23
+ id: string;
24
+ contractNumber: string | null;
25
+ stageHistory: {
26
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
27
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
28
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
29
+ enteredAt: string;
30
+ actorId?: string | null | undefined;
31
+ }[];
32
+ templateVersionId: string | null;
33
+ seriesId: string | null;
34
+ personId: string | null;
35
+ organizationId: string | null;
36
+ supplierId: string | null;
37
+ channelId: string | null;
38
+ bookingId: string | null;
39
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
40
+ renderedBody: string | null;
41
+ createdAt: string;
42
+ updatedAt: string;
43
+ variables?: Record<string, unknown> | null | undefined;
44
+ metadata?: Record<string, unknown> | null | undefined;
45
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
46
+ targetId?: string | null | undefined;
47
+ targetProvider?: string | null | undefined;
48
+ targetSourceRef?: string | null | undefined;
49
+ legacyTransactionOfferId?: string | null | undefined;
50
+ legacyTransactionOrderId?: string | null | undefined;
51
+ personFirstName?: string | null | undefined;
52
+ personLastName?: string | null | undefined;
53
+ personEmail?: string | null | undefined;
54
+ personPhone?: string | null | undefined;
55
+ issuedAt?: string | null | undefined;
56
+ sentAt?: string | null | undefined;
57
+ executedAt?: string | null | undefined;
58
+ expiresAt?: string | null | undefined;
59
+ voidedAt?: string | null | undefined;
60
+ }[];
61
+ total: number;
62
+ limit: number;
63
+ offset: number;
64
+ }, Error, {
65
+ data: {
66
+ language: string;
67
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
68
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
69
+ title: string;
70
+ id: string;
71
+ contractNumber: string | null;
72
+ stageHistory: {
73
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
74
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
75
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
76
+ enteredAt: string;
77
+ actorId?: string | null | undefined;
78
+ }[];
79
+ templateVersionId: string | null;
80
+ seriesId: string | null;
81
+ personId: string | null;
82
+ organizationId: string | null;
83
+ supplierId: string | null;
84
+ channelId: string | null;
85
+ bookingId: string | null;
86
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
87
+ renderedBody: string | null;
88
+ createdAt: string;
89
+ updatedAt: string;
90
+ variables?: Record<string, unknown> | null | undefined;
91
+ metadata?: Record<string, unknown> | null | undefined;
92
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
93
+ targetId?: string | null | undefined;
94
+ targetProvider?: string | null | undefined;
95
+ targetSourceRef?: string | null | undefined;
96
+ legacyTransactionOfferId?: string | null | undefined;
97
+ legacyTransactionOrderId?: string | null | undefined;
98
+ personFirstName?: string | null | undefined;
99
+ personLastName?: string | null | undefined;
100
+ personEmail?: string | null | undefined;
101
+ personPhone?: string | null | undefined;
102
+ issuedAt?: string | null | undefined;
103
+ sentAt?: string | null | undefined;
104
+ executedAt?: string | null | undefined;
105
+ expiresAt?: string | null | undefined;
106
+ voidedAt?: string | null | undefined;
107
+ }[];
108
+ total: number;
109
+ limit: number;
110
+ offset: number;
111
+ }, readonly ["legal", "contracts", import("./query-keys.js").LegalContractsListFilters]>, "queryFn"> & {
112
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
113
+ data: {
114
+ language: string;
115
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
116
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
117
+ title: string;
118
+ id: string;
119
+ contractNumber: string | null;
120
+ stageHistory: {
121
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
122
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
123
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
124
+ enteredAt: string;
125
+ actorId?: string | null | undefined;
126
+ }[];
127
+ templateVersionId: string | null;
128
+ seriesId: string | null;
129
+ personId: string | null;
130
+ organizationId: string | null;
131
+ supplierId: string | null;
132
+ channelId: string | null;
133
+ bookingId: string | null;
134
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
135
+ renderedBody: string | null;
136
+ createdAt: string;
137
+ updatedAt: string;
138
+ variables?: Record<string, unknown> | null | undefined;
139
+ metadata?: Record<string, unknown> | null | undefined;
140
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
141
+ targetId?: string | null | undefined;
142
+ targetProvider?: string | null | undefined;
143
+ targetSourceRef?: string | null | undefined;
144
+ legacyTransactionOfferId?: string | null | undefined;
145
+ legacyTransactionOrderId?: string | null | undefined;
146
+ personFirstName?: string | null | undefined;
147
+ personLastName?: string | null | undefined;
148
+ personEmail?: string | null | undefined;
149
+ personPhone?: string | null | undefined;
150
+ issuedAt?: string | null | undefined;
151
+ sentAt?: string | null | undefined;
152
+ executedAt?: string | null | undefined;
153
+ expiresAt?: string | null | undefined;
154
+ voidedAt?: string | null | undefined;
155
+ }[];
156
+ total: number;
157
+ limit: number;
158
+ offset: number;
159
+ }, readonly ["legal", "contracts", import("./query-keys.js").LegalContractsListFilters], never> | undefined;
160
+ } & {
161
+ queryKey: readonly ["legal", "contracts", import("./query-keys.js").LegalContractsListFilters] & {
162
+ [dataTagSymbol]: {
163
+ data: {
164
+ language: string;
165
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
166
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
167
+ title: string;
168
+ id: string;
169
+ contractNumber: string | null;
170
+ stageHistory: {
171
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
172
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
173
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
174
+ enteredAt: string;
175
+ actorId?: string | null | undefined;
176
+ }[];
177
+ templateVersionId: string | null;
178
+ seriesId: string | null;
179
+ personId: string | null;
180
+ organizationId: string | null;
181
+ supplierId: string | null;
182
+ channelId: string | null;
183
+ bookingId: string | null;
184
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
185
+ renderedBody: string | null;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ variables?: Record<string, unknown> | null | undefined;
189
+ metadata?: Record<string, unknown> | null | undefined;
190
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
191
+ targetId?: string | null | undefined;
192
+ targetProvider?: string | null | undefined;
193
+ targetSourceRef?: string | null | undefined;
194
+ legacyTransactionOfferId?: string | null | undefined;
195
+ legacyTransactionOrderId?: string | null | undefined;
196
+ personFirstName?: string | null | undefined;
197
+ personLastName?: string | null | undefined;
198
+ personEmail?: string | null | undefined;
199
+ personPhone?: string | null | undefined;
200
+ issuedAt?: string | null | undefined;
201
+ sentAt?: string | null | undefined;
202
+ executedAt?: string | null | undefined;
203
+ expiresAt?: string | null | undefined;
204
+ voidedAt?: string | null | undefined;
205
+ }[];
206
+ total: number;
207
+ limit: number;
208
+ offset: number;
209
+ };
210
+ [dataTagErrorSymbol]: Error;
211
+ };
212
+ };
213
+ export declare function getLegalContractQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseLegalContractOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
214
+ language: string;
215
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
216
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
217
+ title: string;
218
+ id: string;
219
+ contractNumber: string | null;
220
+ stageHistory: {
221
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
222
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
223
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
224
+ enteredAt: string;
225
+ actorId?: string | null | undefined;
226
+ }[];
227
+ templateVersionId: string | null;
228
+ seriesId: string | null;
229
+ personId: string | null;
230
+ organizationId: string | null;
231
+ supplierId: string | null;
232
+ channelId: string | null;
233
+ bookingId: string | null;
234
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
235
+ renderedBody: string | null;
236
+ createdAt: string;
237
+ updatedAt: string;
238
+ variables?: Record<string, unknown> | null | undefined;
239
+ metadata?: Record<string, unknown> | null | undefined;
240
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
241
+ targetId?: string | null | undefined;
242
+ targetProvider?: string | null | undefined;
243
+ targetSourceRef?: string | null | undefined;
244
+ legacyTransactionOfferId?: string | null | undefined;
245
+ legacyTransactionOrderId?: string | null | undefined;
246
+ personFirstName?: string | null | undefined;
247
+ personLastName?: string | null | undefined;
248
+ personEmail?: string | null | undefined;
249
+ personPhone?: string | null | undefined;
250
+ issuedAt?: string | null | undefined;
251
+ sentAt?: string | null | undefined;
252
+ executedAt?: string | null | undefined;
253
+ expiresAt?: string | null | undefined;
254
+ voidedAt?: string | null | undefined;
255
+ }, Error, {
256
+ language: string;
257
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
258
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
259
+ title: string;
260
+ id: string;
261
+ contractNumber: string | null;
262
+ stageHistory: {
263
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
264
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
265
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
266
+ enteredAt: string;
267
+ actorId?: string | null | undefined;
268
+ }[];
269
+ templateVersionId: string | null;
270
+ seriesId: string | null;
271
+ personId: string | null;
272
+ organizationId: string | null;
273
+ supplierId: string | null;
274
+ channelId: string | null;
275
+ bookingId: string | null;
276
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
277
+ renderedBody: string | null;
278
+ createdAt: string;
279
+ updatedAt: string;
280
+ variables?: Record<string, unknown> | null | undefined;
281
+ metadata?: Record<string, unknown> | null | undefined;
282
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
283
+ targetId?: string | null | undefined;
284
+ targetProvider?: string | null | undefined;
285
+ targetSourceRef?: string | null | undefined;
286
+ legacyTransactionOfferId?: string | null | undefined;
287
+ legacyTransactionOrderId?: string | null | undefined;
288
+ personFirstName?: string | null | undefined;
289
+ personLastName?: string | null | undefined;
290
+ personEmail?: string | null | undefined;
291
+ personPhone?: string | null | undefined;
292
+ issuedAt?: string | null | undefined;
293
+ sentAt?: string | null | undefined;
294
+ executedAt?: string | null | undefined;
295
+ expiresAt?: string | null | undefined;
296
+ voidedAt?: string | null | undefined;
297
+ }, readonly ["legal", "contracts", string]>, "queryFn"> & {
298
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
299
+ language: string;
300
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
301
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
302
+ title: string;
303
+ id: string;
304
+ contractNumber: string | null;
305
+ stageHistory: {
306
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
307
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
308
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
309
+ enteredAt: string;
310
+ actorId?: string | null | undefined;
311
+ }[];
312
+ templateVersionId: string | null;
313
+ seriesId: string | null;
314
+ personId: string | null;
315
+ organizationId: string | null;
316
+ supplierId: string | null;
317
+ channelId: string | null;
318
+ bookingId: string | null;
319
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
320
+ renderedBody: string | null;
321
+ createdAt: string;
322
+ updatedAt: string;
323
+ variables?: Record<string, unknown> | null | undefined;
324
+ metadata?: Record<string, unknown> | null | undefined;
325
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
326
+ targetId?: string | null | undefined;
327
+ targetProvider?: string | null | undefined;
328
+ targetSourceRef?: string | null | undefined;
329
+ legacyTransactionOfferId?: string | null | undefined;
330
+ legacyTransactionOrderId?: string | null | undefined;
331
+ personFirstName?: string | null | undefined;
332
+ personLastName?: string | null | undefined;
333
+ personEmail?: string | null | undefined;
334
+ personPhone?: string | null | undefined;
335
+ issuedAt?: string | null | undefined;
336
+ sentAt?: string | null | undefined;
337
+ executedAt?: string | null | undefined;
338
+ expiresAt?: string | null | undefined;
339
+ voidedAt?: string | null | undefined;
340
+ }, readonly ["legal", "contracts", string], never> | undefined;
341
+ } & {
342
+ queryKey: readonly ["legal", "contracts", string] & {
343
+ [dataTagSymbol]: {
344
+ language: string;
345
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
346
+ status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
347
+ title: string;
348
+ id: string;
349
+ contractNumber: string | null;
350
+ stageHistory: {
351
+ stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired";
352
+ previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null;
353
+ transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided";
354
+ enteredAt: string;
355
+ actorId?: string | null | undefined;
356
+ }[];
357
+ templateVersionId: string | null;
358
+ seriesId: string | null;
359
+ personId: string | null;
360
+ organizationId: string | null;
361
+ supplierId: string | null;
362
+ channelId: string | null;
363
+ bookingId: string | null;
364
+ renderedBodyFormat: "markdown" | "html" | "lexical_json";
365
+ renderedBody: string | null;
366
+ createdAt: string;
367
+ updatedAt: string;
368
+ variables?: Record<string, unknown> | null | undefined;
369
+ metadata?: Record<string, unknown> | null | undefined;
370
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
371
+ targetId?: string | null | undefined;
372
+ targetProvider?: string | null | undefined;
373
+ targetSourceRef?: string | null | undefined;
374
+ legacyTransactionOfferId?: string | null | undefined;
375
+ legacyTransactionOrderId?: string | null | undefined;
376
+ personFirstName?: string | null | undefined;
377
+ personLastName?: string | null | undefined;
378
+ personEmail?: string | null | undefined;
379
+ personPhone?: string | null | undefined;
380
+ issuedAt?: string | null | undefined;
381
+ sentAt?: string | null | undefined;
382
+ executedAt?: string | null | undefined;
383
+ expiresAt?: string | null | undefined;
384
+ voidedAt?: string | null | undefined;
385
+ };
386
+ [dataTagErrorSymbol]: Error;
387
+ };
388
+ };
389
+ export declare function getLegalContractSignaturesQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractSignaturesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
390
+ method: "manual" | "electronic" | "docusign" | "other";
391
+ signerName: string;
392
+ id: string;
393
+ contractId: string;
394
+ signerEmail: string | null;
395
+ signerRole: string | null;
396
+ personId: string | null;
397
+ provider: string | null;
398
+ externalReference: string | null;
399
+ signatureData: string | null;
400
+ ipAddress: string | null;
401
+ userAgent: string | null;
402
+ signedAt: string;
403
+ createdAt: string;
404
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
405
+ targetId?: string | null | undefined;
406
+ targetProvider?: string | null | undefined;
407
+ targetSourceRef?: string | null | undefined;
408
+ legacyTransactionOfferId?: string | null | undefined;
409
+ legacyTransactionOrderId?: string | null | undefined;
410
+ metadata?: Record<string, unknown> | null | undefined;
411
+ }[], Error, {
412
+ method: "manual" | "electronic" | "docusign" | "other";
413
+ signerName: string;
414
+ id: string;
415
+ contractId: string;
416
+ signerEmail: string | null;
417
+ signerRole: string | null;
418
+ personId: string | null;
419
+ provider: string | null;
420
+ externalReference: string | null;
421
+ signatureData: string | null;
422
+ ipAddress: string | null;
423
+ userAgent: string | null;
424
+ signedAt: string;
425
+ createdAt: string;
426
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
427
+ targetId?: string | null | undefined;
428
+ targetProvider?: string | null | undefined;
429
+ targetSourceRef?: string | null | undefined;
430
+ legacyTransactionOfferId?: string | null | undefined;
431
+ legacyTransactionOrderId?: string | null | undefined;
432
+ metadata?: Record<string, unknown> | null | undefined;
433
+ }[], readonly ["legal", "contracts", string, "signatures"]>, "queryFn"> & {
434
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
435
+ method: "manual" | "electronic" | "docusign" | "other";
436
+ signerName: string;
437
+ id: string;
438
+ contractId: string;
439
+ signerEmail: string | null;
440
+ signerRole: string | null;
441
+ personId: string | null;
442
+ provider: string | null;
443
+ externalReference: string | null;
444
+ signatureData: string | null;
445
+ ipAddress: string | null;
446
+ userAgent: string | null;
447
+ signedAt: string;
448
+ createdAt: string;
449
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
450
+ targetId?: string | null | undefined;
451
+ targetProvider?: string | null | undefined;
452
+ targetSourceRef?: string | null | undefined;
453
+ legacyTransactionOfferId?: string | null | undefined;
454
+ legacyTransactionOrderId?: string | null | undefined;
455
+ metadata?: Record<string, unknown> | null | undefined;
456
+ }[], readonly ["legal", "contracts", string, "signatures"], never> | undefined;
457
+ } & {
458
+ queryKey: readonly ["legal", "contracts", string, "signatures"] & {
459
+ [dataTagSymbol]: {
460
+ method: "manual" | "electronic" | "docusign" | "other";
461
+ signerName: string;
462
+ id: string;
463
+ contractId: string;
464
+ signerEmail: string | null;
465
+ signerRole: string | null;
466
+ personId: string | null;
467
+ provider: string | null;
468
+ externalReference: string | null;
469
+ signatureData: string | null;
470
+ ipAddress: string | null;
471
+ userAgent: string | null;
472
+ signedAt: string;
473
+ createdAt: string;
474
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
475
+ targetId?: string | null | undefined;
476
+ targetProvider?: string | null | undefined;
477
+ targetSourceRef?: string | null | undefined;
478
+ legacyTransactionOfferId?: string | null | undefined;
479
+ legacyTransactionOrderId?: string | null | undefined;
480
+ metadata?: Record<string, unknown> | null | undefined;
481
+ }[];
482
+ [dataTagErrorSymbol]: Error;
483
+ };
484
+ };
485
+ export declare function getLegalContractAttachmentsQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractAttachmentsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
486
+ kind: string;
487
+ name: string;
488
+ id: string;
489
+ contractId: string;
490
+ mimeType: string | null;
491
+ fileSize: number | null;
492
+ storageKey: string | null;
493
+ checksum: string | null;
494
+ createdAt: string;
495
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
496
+ targetId?: string | null | undefined;
497
+ targetProvider?: string | null | undefined;
498
+ targetSourceRef?: string | null | undefined;
499
+ legacyTransactionOfferId?: string | null | undefined;
500
+ legacyTransactionOrderId?: string | null | undefined;
501
+ metadata?: Record<string, unknown> | null | undefined;
502
+ }[], Error, {
503
+ kind: string;
504
+ name: string;
505
+ id: string;
506
+ contractId: string;
507
+ mimeType: string | null;
508
+ fileSize: number | null;
509
+ storageKey: string | null;
510
+ checksum: string | null;
511
+ createdAt: string;
512
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
513
+ targetId?: string | null | undefined;
514
+ targetProvider?: string | null | undefined;
515
+ targetSourceRef?: string | null | undefined;
516
+ legacyTransactionOfferId?: string | null | undefined;
517
+ legacyTransactionOrderId?: string | null | undefined;
518
+ metadata?: Record<string, unknown> | null | undefined;
519
+ }[], readonly ["legal", "contracts", string, "attachments"]>, "queryFn"> & {
520
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
521
+ kind: string;
522
+ name: string;
523
+ id: string;
524
+ contractId: string;
525
+ mimeType: string | null;
526
+ fileSize: number | null;
527
+ storageKey: string | null;
528
+ checksum: string | null;
529
+ createdAt: string;
530
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
531
+ targetId?: string | null | undefined;
532
+ targetProvider?: string | null | undefined;
533
+ targetSourceRef?: string | null | undefined;
534
+ legacyTransactionOfferId?: string | null | undefined;
535
+ legacyTransactionOrderId?: string | null | undefined;
536
+ metadata?: Record<string, unknown> | null | undefined;
537
+ }[], readonly ["legal", "contracts", string, "attachments"], never> | undefined;
538
+ } & {
539
+ queryKey: readonly ["legal", "contracts", string, "attachments"] & {
540
+ [dataTagSymbol]: {
541
+ kind: string;
542
+ name: string;
543
+ id: string;
544
+ contractId: string;
545
+ mimeType: string | null;
546
+ fileSize: number | null;
547
+ storageKey: string | null;
548
+ checksum: string | null;
549
+ createdAt: string;
550
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
551
+ targetId?: string | null | undefined;
552
+ targetProvider?: string | null | undefined;
553
+ targetSourceRef?: string | null | undefined;
554
+ legacyTransactionOfferId?: string | null | undefined;
555
+ legacyTransactionOrderId?: string | null | undefined;
556
+ metadata?: Record<string, unknown> | null | undefined;
557
+ }[];
558
+ [dataTagErrorSymbol]: Error;
559
+ };
560
+ };
561
+ export declare function getLegalContractTemplatesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalContractTemplatesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
562
+ data: {
563
+ name: string;
564
+ slug: string;
565
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
566
+ language: string;
567
+ body: string;
568
+ active: boolean;
569
+ id: string;
570
+ description: string | null;
571
+ isDefault: boolean;
572
+ createdAt: string;
573
+ updatedAt: string;
574
+ channelId?: string | null | undefined;
575
+ variableSchema?: Record<string, unknown> | null | undefined;
576
+ currentVersionId?: string | null | undefined;
577
+ }[];
578
+ total: number;
579
+ limit: number;
580
+ offset: number;
581
+ }, Error, {
582
+ data: {
583
+ name: string;
584
+ slug: string;
585
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
586
+ language: string;
587
+ body: string;
588
+ active: boolean;
589
+ id: string;
590
+ description: string | null;
591
+ isDefault: boolean;
592
+ createdAt: string;
593
+ updatedAt: string;
594
+ channelId?: string | null | undefined;
595
+ variableSchema?: Record<string, unknown> | null | undefined;
596
+ currentVersionId?: string | null | undefined;
597
+ }[];
598
+ total: number;
599
+ limit: number;
600
+ offset: number;
601
+ }, readonly ["legal", "templates", import("./query-keys.js").LegalContractTemplatesListFilters]>, "queryFn"> & {
602
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
603
+ data: {
604
+ name: string;
605
+ slug: string;
606
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
607
+ language: string;
608
+ body: string;
609
+ active: boolean;
610
+ id: string;
611
+ description: string | null;
612
+ isDefault: boolean;
613
+ createdAt: string;
614
+ updatedAt: string;
615
+ channelId?: string | null | undefined;
616
+ variableSchema?: Record<string, unknown> | null | undefined;
617
+ currentVersionId?: string | null | undefined;
618
+ }[];
619
+ total: number;
620
+ limit: number;
621
+ offset: number;
622
+ }, readonly ["legal", "templates", import("./query-keys.js").LegalContractTemplatesListFilters], never> | undefined;
623
+ } & {
624
+ queryKey: readonly ["legal", "templates", import("./query-keys.js").LegalContractTemplatesListFilters] & {
625
+ [dataTagSymbol]: {
626
+ data: {
627
+ name: string;
628
+ slug: string;
629
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
630
+ language: string;
631
+ body: string;
632
+ active: boolean;
633
+ id: string;
634
+ description: string | null;
635
+ isDefault: boolean;
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ channelId?: string | null | undefined;
639
+ variableSchema?: Record<string, unknown> | null | undefined;
640
+ currentVersionId?: string | null | undefined;
641
+ }[];
642
+ total: number;
643
+ limit: number;
644
+ offset: number;
645
+ };
646
+ [dataTagErrorSymbol]: Error;
647
+ };
648
+ };
649
+ export declare function getDefaultLegalContractTemplateQueryOptions(client: FetchWithValidationOptions, options?: LegalContractTemplateDefaultFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
650
+ name: string;
651
+ slug: string;
652
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
653
+ language: string;
654
+ body: string;
655
+ active: boolean;
656
+ id: string;
657
+ description: string | null;
658
+ isDefault: boolean;
659
+ createdAt: string;
660
+ updatedAt: string;
661
+ channelId?: string | null | undefined;
662
+ variableSchema?: Record<string, unknown> | null | undefined;
663
+ currentVersionId?: string | null | undefined;
664
+ }, Error, {
665
+ name: string;
666
+ slug: string;
667
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
668
+ language: string;
669
+ body: string;
670
+ active: boolean;
671
+ id: string;
672
+ description: string | null;
673
+ isDefault: boolean;
674
+ createdAt: string;
675
+ updatedAt: string;
676
+ channelId?: string | null | undefined;
677
+ variableSchema?: Record<string, unknown> | null | undefined;
678
+ currentVersionId?: string | null | undefined;
679
+ }, readonly ["legal", "templates", "default", LegalContractTemplateDefaultFilters]>, "queryFn"> & {
680
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
681
+ name: string;
682
+ slug: string;
683
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
684
+ language: string;
685
+ body: string;
686
+ active: boolean;
687
+ id: string;
688
+ description: string | null;
689
+ isDefault: boolean;
690
+ createdAt: string;
691
+ updatedAt: string;
692
+ channelId?: string | null | undefined;
693
+ variableSchema?: Record<string, unknown> | null | undefined;
694
+ currentVersionId?: string | null | undefined;
695
+ }, readonly ["legal", "templates", "default", LegalContractTemplateDefaultFilters], never> | undefined;
696
+ } & {
697
+ queryKey: readonly ["legal", "templates", "default", LegalContractTemplateDefaultFilters] & {
698
+ [dataTagSymbol]: {
699
+ name: string;
700
+ slug: string;
701
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
702
+ language: string;
703
+ body: string;
704
+ active: boolean;
705
+ id: string;
706
+ description: string | null;
707
+ isDefault: boolean;
708
+ createdAt: string;
709
+ updatedAt: string;
710
+ channelId?: string | null | undefined;
711
+ variableSchema?: Record<string, unknown> | null | undefined;
712
+ currentVersionId?: string | null | undefined;
713
+ };
714
+ [dataTagErrorSymbol]: Error;
715
+ };
716
+ };
717
+ export declare function getLegalContractTemplateQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseLegalContractTemplateOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
718
+ name: string;
719
+ slug: string;
720
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
721
+ language: string;
722
+ body: string;
723
+ active: boolean;
724
+ id: string;
725
+ description: string | null;
726
+ isDefault: boolean;
727
+ createdAt: string;
728
+ updatedAt: string;
729
+ channelId?: string | null | undefined;
730
+ variableSchema?: Record<string, unknown> | null | undefined;
731
+ currentVersionId?: string | null | undefined;
732
+ }, Error, {
733
+ name: string;
734
+ slug: string;
735
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
736
+ language: string;
737
+ body: string;
738
+ active: boolean;
739
+ id: string;
740
+ description: string | null;
741
+ isDefault: boolean;
742
+ createdAt: string;
743
+ updatedAt: string;
744
+ channelId?: string | null | undefined;
745
+ variableSchema?: Record<string, unknown> | null | undefined;
746
+ currentVersionId?: string | null | undefined;
747
+ }, readonly ["legal", "templates", string]>, "queryFn"> & {
748
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
749
+ name: string;
750
+ slug: string;
751
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
752
+ language: string;
753
+ body: string;
754
+ active: boolean;
755
+ id: string;
756
+ description: string | null;
757
+ isDefault: boolean;
758
+ createdAt: string;
759
+ updatedAt: string;
760
+ channelId?: string | null | undefined;
761
+ variableSchema?: Record<string, unknown> | null | undefined;
762
+ currentVersionId?: string | null | undefined;
763
+ }, readonly ["legal", "templates", string], never> | undefined;
764
+ } & {
765
+ queryKey: readonly ["legal", "templates", string] & {
766
+ [dataTagSymbol]: {
767
+ name: string;
768
+ slug: string;
769
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
770
+ language: string;
771
+ body: string;
772
+ active: boolean;
773
+ id: string;
774
+ description: string | null;
775
+ isDefault: boolean;
776
+ createdAt: string;
777
+ updatedAt: string;
778
+ channelId?: string | null | undefined;
779
+ variableSchema?: Record<string, unknown> | null | undefined;
780
+ currentVersionId?: string | null | undefined;
781
+ };
782
+ [dataTagErrorSymbol]: Error;
783
+ };
784
+ };
785
+ export declare function getLegalContractTemplateVersionsQueryOptions(client: FetchWithValidationOptions, options: UseLegalContractTemplateVersionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
786
+ body: string;
787
+ id: string;
788
+ templateId: string;
789
+ version: number;
790
+ changelog: string | null;
791
+ createdBy: string | null;
792
+ createdAt: string;
793
+ variableSchema?: Record<string, unknown> | null | undefined;
794
+ }[], Error, {
795
+ body: string;
796
+ id: string;
797
+ templateId: string;
798
+ version: number;
799
+ changelog: string | null;
800
+ createdBy: string | null;
801
+ createdAt: string;
802
+ variableSchema?: Record<string, unknown> | null | undefined;
803
+ }[], readonly ["legal", "templates", string, "versions"]>, "queryFn"> & {
804
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
805
+ body: string;
806
+ id: string;
807
+ templateId: string;
808
+ version: number;
809
+ changelog: string | null;
810
+ createdBy: string | null;
811
+ createdAt: string;
812
+ variableSchema?: Record<string, unknown> | null | undefined;
813
+ }[], readonly ["legal", "templates", string, "versions"], never> | undefined;
814
+ } & {
815
+ queryKey: readonly ["legal", "templates", string, "versions"] & {
816
+ [dataTagSymbol]: {
817
+ body: string;
818
+ id: string;
819
+ templateId: string;
820
+ version: number;
821
+ changelog: string | null;
822
+ createdBy: string | null;
823
+ createdAt: string;
824
+ variableSchema?: Record<string, unknown> | null | undefined;
825
+ }[];
826
+ [dataTagErrorSymbol]: Error;
827
+ };
828
+ };
829
+ export declare function getLegalContractNumberSeriesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalContractNumberSeriesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
830
+ data: {
831
+ name: string;
832
+ prefix: string;
833
+ separator: string;
834
+ padLength: number;
835
+ resetStrategy: "never" | "annual" | "monthly";
836
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
837
+ isDefault: boolean;
838
+ active: boolean;
839
+ id: string;
840
+ currentSequence: number;
841
+ createdAt: string;
842
+ updatedAt: string;
843
+ externalProvider?: string | null | undefined;
844
+ externalConfigKey?: string | null | undefined;
845
+ resetAt?: string | null | undefined;
846
+ }[];
847
+ }, Error, {
848
+ data: {
849
+ name: string;
850
+ prefix: string;
851
+ separator: string;
852
+ padLength: number;
853
+ resetStrategy: "never" | "annual" | "monthly";
854
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
855
+ isDefault: boolean;
856
+ active: boolean;
857
+ id: string;
858
+ currentSequence: number;
859
+ createdAt: string;
860
+ updatedAt: string;
861
+ externalProvider?: string | null | undefined;
862
+ externalConfigKey?: string | null | undefined;
863
+ resetAt?: string | null | undefined;
864
+ }[];
865
+ }, readonly ["legal", "number-series", import("./query-keys.js").LegalContractNumberSeriesListFilters]>, "queryFn"> & {
866
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
867
+ data: {
868
+ name: string;
869
+ prefix: string;
870
+ separator: string;
871
+ padLength: number;
872
+ resetStrategy: "never" | "annual" | "monthly";
873
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
874
+ isDefault: boolean;
875
+ active: boolean;
876
+ id: string;
877
+ currentSequence: number;
878
+ createdAt: string;
879
+ updatedAt: string;
880
+ externalProvider?: string | null | undefined;
881
+ externalConfigKey?: string | null | undefined;
882
+ resetAt?: string | null | undefined;
883
+ }[];
884
+ }, readonly ["legal", "number-series", import("./query-keys.js").LegalContractNumberSeriesListFilters], never> | undefined;
885
+ } & {
886
+ queryKey: readonly ["legal", "number-series", import("./query-keys.js").LegalContractNumberSeriesListFilters] & {
887
+ [dataTagSymbol]: {
888
+ data: {
889
+ name: string;
890
+ prefix: string;
891
+ separator: string;
892
+ padLength: number;
893
+ resetStrategy: "never" | "annual" | "monthly";
894
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
895
+ isDefault: boolean;
896
+ active: boolean;
897
+ id: string;
898
+ currentSequence: number;
899
+ createdAt: string;
900
+ updatedAt: string;
901
+ externalProvider?: string | null | undefined;
902
+ externalConfigKey?: string | null | undefined;
903
+ resetAt?: string | null | undefined;
904
+ }[];
905
+ };
906
+ [dataTagErrorSymbol]: Error;
907
+ };
908
+ };
909
+ export declare function getLegalContractNumberSeriesDetailQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
910
+ name: string;
911
+ prefix: string;
912
+ separator: string;
913
+ padLength: number;
914
+ resetStrategy: "never" | "annual" | "monthly";
915
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
916
+ isDefault: boolean;
917
+ active: boolean;
918
+ id: string;
919
+ currentSequence: number;
920
+ createdAt: string;
921
+ updatedAt: string;
922
+ externalProvider?: string | null | undefined;
923
+ externalConfigKey?: string | null | undefined;
924
+ resetAt?: string | null | undefined;
925
+ }, Error, {
926
+ name: string;
927
+ prefix: string;
928
+ separator: string;
929
+ padLength: number;
930
+ resetStrategy: "never" | "annual" | "monthly";
931
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
932
+ isDefault: boolean;
933
+ active: boolean;
934
+ id: string;
935
+ currentSequence: number;
936
+ createdAt: string;
937
+ updatedAt: string;
938
+ externalProvider?: string | null | undefined;
939
+ externalConfigKey?: string | null | undefined;
940
+ resetAt?: string | null | undefined;
941
+ }, readonly ["legal", "number-series", string]>, "queryFn"> & {
942
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
943
+ name: string;
944
+ prefix: string;
945
+ separator: string;
946
+ padLength: number;
947
+ resetStrategy: "never" | "annual" | "monthly";
948
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
949
+ isDefault: boolean;
950
+ active: boolean;
951
+ id: string;
952
+ currentSequence: number;
953
+ createdAt: string;
954
+ updatedAt: string;
955
+ externalProvider?: string | null | undefined;
956
+ externalConfigKey?: string | null | undefined;
957
+ resetAt?: string | null | undefined;
958
+ }, readonly ["legal", "number-series", string], never> | undefined;
959
+ } & {
960
+ queryKey: readonly ["legal", "number-series", string] & {
961
+ [dataTagSymbol]: {
962
+ name: string;
963
+ prefix: string;
964
+ separator: string;
965
+ padLength: number;
966
+ resetStrategy: "never" | "annual" | "monthly";
967
+ scope: "other" | "customer" | "supplier" | "partner" | "channel";
968
+ isDefault: boolean;
969
+ active: boolean;
970
+ id: string;
971
+ currentSequence: number;
972
+ createdAt: string;
973
+ updatedAt: string;
974
+ externalProvider?: string | null | undefined;
975
+ externalConfigKey?: string | null | undefined;
976
+ resetAt?: string | null | undefined;
977
+ };
978
+ [dataTagErrorSymbol]: Error;
979
+ };
980
+ };
981
+ export declare function getLegalPoliciesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalPoliciesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
982
+ data: {
983
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
984
+ name: string;
985
+ slug: string;
986
+ language: string;
987
+ id: string;
988
+ description: string | null;
989
+ createdAt: string;
990
+ updatedAt: string;
991
+ metadata?: Record<string, unknown> | null | undefined;
992
+ currentVersionId?: string | null | undefined;
993
+ }[];
994
+ total: number;
995
+ limit: number;
996
+ offset: number;
997
+ }, Error, {
998
+ data: {
999
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1000
+ name: string;
1001
+ slug: string;
1002
+ language: string;
1003
+ id: string;
1004
+ description: string | null;
1005
+ createdAt: string;
1006
+ updatedAt: string;
1007
+ metadata?: Record<string, unknown> | null | undefined;
1008
+ currentVersionId?: string | null | undefined;
1009
+ }[];
1010
+ total: number;
1011
+ limit: number;
1012
+ offset: number;
1013
+ }, readonly ["legal", "policies", import("./query-keys.js").LegalPoliciesListFilters]>, "queryFn"> & {
1014
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1015
+ data: {
1016
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1017
+ name: string;
1018
+ slug: string;
1019
+ language: string;
1020
+ id: string;
1021
+ description: string | null;
1022
+ createdAt: string;
1023
+ updatedAt: string;
1024
+ metadata?: Record<string, unknown> | null | undefined;
1025
+ currentVersionId?: string | null | undefined;
1026
+ }[];
1027
+ total: number;
1028
+ limit: number;
1029
+ offset: number;
1030
+ }, readonly ["legal", "policies", import("./query-keys.js").LegalPoliciesListFilters], never> | undefined;
1031
+ } & {
1032
+ queryKey: readonly ["legal", "policies", import("./query-keys.js").LegalPoliciesListFilters] & {
1033
+ [dataTagSymbol]: {
1034
+ data: {
1035
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1036
+ name: string;
1037
+ slug: string;
1038
+ language: string;
1039
+ id: string;
1040
+ description: string | null;
1041
+ createdAt: string;
1042
+ updatedAt: string;
1043
+ metadata?: Record<string, unknown> | null | undefined;
1044
+ currentVersionId?: string | null | undefined;
1045
+ }[];
1046
+ total: number;
1047
+ limit: number;
1048
+ offset: number;
1049
+ };
1050
+ [dataTagErrorSymbol]: Error;
1051
+ };
1052
+ };
1053
+ export declare function getLegalPolicyQueryOptions(client: FetchWithValidationOptions, id: string, _options?: UseLegalPolicyOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1054
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1055
+ name: string;
1056
+ slug: string;
1057
+ language: string;
1058
+ id: string;
1059
+ description: string | null;
1060
+ createdAt: string;
1061
+ updatedAt: string;
1062
+ metadata?: Record<string, unknown> | null | undefined;
1063
+ currentVersionId?: string | null | undefined;
1064
+ }, Error, {
1065
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1066
+ name: string;
1067
+ slug: string;
1068
+ language: string;
1069
+ id: string;
1070
+ description: string | null;
1071
+ createdAt: string;
1072
+ updatedAt: string;
1073
+ metadata?: Record<string, unknown> | null | undefined;
1074
+ currentVersionId?: string | null | undefined;
1075
+ }, readonly ["legal", "policies", string]>, "queryFn"> & {
1076
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1077
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1078
+ name: string;
1079
+ slug: string;
1080
+ language: string;
1081
+ id: string;
1082
+ description: string | null;
1083
+ createdAt: string;
1084
+ updatedAt: string;
1085
+ metadata?: Record<string, unknown> | null | undefined;
1086
+ currentVersionId?: string | null | undefined;
1087
+ }, readonly ["legal", "policies", string], never> | undefined;
1088
+ } & {
1089
+ queryKey: readonly ["legal", "policies", string] & {
1090
+ [dataTagSymbol]: {
1091
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1092
+ name: string;
1093
+ slug: string;
1094
+ language: string;
1095
+ id: string;
1096
+ description: string | null;
1097
+ createdAt: string;
1098
+ updatedAt: string;
1099
+ metadata?: Record<string, unknown> | null | undefined;
1100
+ currentVersionId?: string | null | undefined;
1101
+ };
1102
+ [dataTagErrorSymbol]: Error;
1103
+ };
1104
+ };
1105
+ export declare function getLegalPolicyVersionsQueryOptions(client: FetchWithValidationOptions, options: UseLegalPolicyVersionsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1106
+ title: string;
1107
+ id: string;
1108
+ policyId: string;
1109
+ version: number;
1110
+ status: "draft" | "published" | "retired";
1111
+ body: string | null;
1112
+ publishedAt: string | null;
1113
+ publishedBy: string | null;
1114
+ createdAt: string;
1115
+ updatedAt: string;
1116
+ retiredAt?: string | null | undefined;
1117
+ metadata?: Record<string, unknown> | null | undefined;
1118
+ }[], Error, {
1119
+ title: string;
1120
+ id: string;
1121
+ policyId: string;
1122
+ version: number;
1123
+ status: "draft" | "published" | "retired";
1124
+ body: string | null;
1125
+ publishedAt: string | null;
1126
+ publishedBy: string | null;
1127
+ createdAt: string;
1128
+ updatedAt: string;
1129
+ retiredAt?: string | null | undefined;
1130
+ metadata?: Record<string, unknown> | null | undefined;
1131
+ }[], readonly ["legal", "policies", string, "versions"]>, "queryFn"> & {
1132
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1133
+ title: string;
1134
+ id: string;
1135
+ policyId: string;
1136
+ version: number;
1137
+ status: "draft" | "published" | "retired";
1138
+ body: string | null;
1139
+ publishedAt: string | null;
1140
+ publishedBy: string | null;
1141
+ createdAt: string;
1142
+ updatedAt: string;
1143
+ retiredAt?: string | null | undefined;
1144
+ metadata?: Record<string, unknown> | null | undefined;
1145
+ }[], readonly ["legal", "policies", string, "versions"], never> | undefined;
1146
+ } & {
1147
+ queryKey: readonly ["legal", "policies", string, "versions"] & {
1148
+ [dataTagSymbol]: {
1149
+ title: string;
1150
+ id: string;
1151
+ policyId: string;
1152
+ version: number;
1153
+ status: "draft" | "published" | "retired";
1154
+ body: string | null;
1155
+ publishedAt: string | null;
1156
+ publishedBy: string | null;
1157
+ createdAt: string;
1158
+ updatedAt: string;
1159
+ retiredAt?: string | null | undefined;
1160
+ metadata?: Record<string, unknown> | null | undefined;
1161
+ }[];
1162
+ [dataTagErrorSymbol]: Error;
1163
+ };
1164
+ };
1165
+ export declare function getLegalPolicyVersionQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1166
+ title: string;
1167
+ id: string;
1168
+ policyId: string;
1169
+ version: number;
1170
+ status: "draft" | "published" | "retired";
1171
+ body: string | null;
1172
+ publishedAt: string | null;
1173
+ publishedBy: string | null;
1174
+ createdAt: string;
1175
+ updatedAt: string;
1176
+ retiredAt?: string | null | undefined;
1177
+ metadata?: Record<string, unknown> | null | undefined;
1178
+ }, Error, {
1179
+ title: string;
1180
+ id: string;
1181
+ policyId: string;
1182
+ version: number;
1183
+ status: "draft" | "published" | "retired";
1184
+ body: string | null;
1185
+ publishedAt: string | null;
1186
+ publishedBy: string | null;
1187
+ createdAt: string;
1188
+ updatedAt: string;
1189
+ retiredAt?: string | null | undefined;
1190
+ metadata?: Record<string, unknown> | null | undefined;
1191
+ }, readonly ["legal", "policies", "version", string]>, "queryFn"> & {
1192
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1193
+ title: string;
1194
+ id: string;
1195
+ policyId: string;
1196
+ version: number;
1197
+ status: "draft" | "published" | "retired";
1198
+ body: string | null;
1199
+ publishedAt: string | null;
1200
+ publishedBy: string | null;
1201
+ createdAt: string;
1202
+ updatedAt: string;
1203
+ retiredAt?: string | null | undefined;
1204
+ metadata?: Record<string, unknown> | null | undefined;
1205
+ }, readonly ["legal", "policies", "version", string], never> | undefined;
1206
+ } & {
1207
+ queryKey: readonly ["legal", "policies", "version", string] & {
1208
+ [dataTagSymbol]: {
1209
+ title: string;
1210
+ id: string;
1211
+ policyId: string;
1212
+ version: number;
1213
+ status: "draft" | "published" | "retired";
1214
+ body: string | null;
1215
+ publishedAt: string | null;
1216
+ publishedBy: string | null;
1217
+ createdAt: string;
1218
+ updatedAt: string;
1219
+ retiredAt?: string | null | undefined;
1220
+ metadata?: Record<string, unknown> | null | undefined;
1221
+ };
1222
+ [dataTagErrorSymbol]: Error;
1223
+ };
1224
+ };
1225
+ export declare function getLegalPolicyRulesQueryOptions(client: FetchWithValidationOptions, options: UseLegalPolicyRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1226
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1227
+ sortOrder: number;
1228
+ id: string;
1229
+ policyVersionId: string;
1230
+ label: string | null;
1231
+ daysBeforeDeparture: number | null;
1232
+ refundPercent: number | null;
1233
+ flatAmountCents: number | null;
1234
+ currency: string | null;
1235
+ createdAt: string;
1236
+ updatedAt: string;
1237
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1238
+ validFrom?: string | null | undefined;
1239
+ validTo?: string | null | undefined;
1240
+ conditions?: Record<string, unknown> | null | undefined;
1241
+ }[], Error, {
1242
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1243
+ sortOrder: number;
1244
+ id: string;
1245
+ policyVersionId: string;
1246
+ label: string | null;
1247
+ daysBeforeDeparture: number | null;
1248
+ refundPercent: number | null;
1249
+ flatAmountCents: number | null;
1250
+ currency: string | null;
1251
+ createdAt: string;
1252
+ updatedAt: string;
1253
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1254
+ validFrom?: string | null | undefined;
1255
+ validTo?: string | null | undefined;
1256
+ conditions?: Record<string, unknown> | null | undefined;
1257
+ }[], readonly ["legal", "policies", "rules", string]>, "queryFn"> & {
1258
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1259
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1260
+ sortOrder: number;
1261
+ id: string;
1262
+ policyVersionId: string;
1263
+ label: string | null;
1264
+ daysBeforeDeparture: number | null;
1265
+ refundPercent: number | null;
1266
+ flatAmountCents: number | null;
1267
+ currency: string | null;
1268
+ createdAt: string;
1269
+ updatedAt: string;
1270
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1271
+ validFrom?: string | null | undefined;
1272
+ validTo?: string | null | undefined;
1273
+ conditions?: Record<string, unknown> | null | undefined;
1274
+ }[], readonly ["legal", "policies", "rules", string], never> | undefined;
1275
+ } & {
1276
+ queryKey: readonly ["legal", "policies", "rules", string] & {
1277
+ [dataTagSymbol]: {
1278
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1279
+ sortOrder: number;
1280
+ id: string;
1281
+ policyVersionId: string;
1282
+ label: string | null;
1283
+ daysBeforeDeparture: number | null;
1284
+ refundPercent: number | null;
1285
+ flatAmountCents: number | null;
1286
+ currency: string | null;
1287
+ createdAt: string;
1288
+ updatedAt: string;
1289
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1290
+ validFrom?: string | null | undefined;
1291
+ validTo?: string | null | undefined;
1292
+ conditions?: Record<string, unknown> | null | undefined;
1293
+ }[];
1294
+ [dataTagErrorSymbol]: Error;
1295
+ };
1296
+ };
1297
+ export declare function getLegalPolicyAssignmentsQueryOptions(client: FetchWithValidationOptions, options?: UseLegalPolicyAssignmentsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1298
+ data: {
1299
+ policyId: string;
1300
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1301
+ priority: number;
1302
+ id: string;
1303
+ productId: string | null;
1304
+ channelId: string | null;
1305
+ supplierId: string | null;
1306
+ marketId: string | null;
1307
+ organizationId: string | null;
1308
+ createdAt: string;
1309
+ updatedAt: string;
1310
+ validFrom?: string | null | undefined;
1311
+ validTo?: string | null | undefined;
1312
+ metadata?: Record<string, unknown> | null | undefined;
1313
+ }[];
1314
+ }, Error, {
1315
+ data: {
1316
+ policyId: string;
1317
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1318
+ priority: number;
1319
+ id: string;
1320
+ productId: string | null;
1321
+ channelId: string | null;
1322
+ supplierId: string | null;
1323
+ marketId: string | null;
1324
+ organizationId: string | null;
1325
+ createdAt: string;
1326
+ updatedAt: string;
1327
+ validFrom?: string | null | undefined;
1328
+ validTo?: string | null | undefined;
1329
+ metadata?: Record<string, unknown> | null | undefined;
1330
+ }[];
1331
+ }, readonly ["legal", "policies", "assignments", import("./query-keys.js").LegalPolicyAssignmentsListFilters]>, "queryFn"> & {
1332
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1333
+ data: {
1334
+ policyId: string;
1335
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1336
+ priority: number;
1337
+ id: string;
1338
+ productId: string | null;
1339
+ channelId: string | null;
1340
+ supplierId: string | null;
1341
+ marketId: string | null;
1342
+ organizationId: string | null;
1343
+ createdAt: string;
1344
+ updatedAt: string;
1345
+ validFrom?: string | null | undefined;
1346
+ validTo?: string | null | undefined;
1347
+ metadata?: Record<string, unknown> | null | undefined;
1348
+ }[];
1349
+ }, readonly ["legal", "policies", "assignments", import("./query-keys.js").LegalPolicyAssignmentsListFilters], never> | undefined;
1350
+ } & {
1351
+ queryKey: readonly ["legal", "policies", "assignments", import("./query-keys.js").LegalPolicyAssignmentsListFilters] & {
1352
+ [dataTagSymbol]: {
1353
+ data: {
1354
+ policyId: string;
1355
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1356
+ priority: number;
1357
+ id: string;
1358
+ productId: string | null;
1359
+ channelId: string | null;
1360
+ supplierId: string | null;
1361
+ marketId: string | null;
1362
+ organizationId: string | null;
1363
+ createdAt: string;
1364
+ updatedAt: string;
1365
+ validFrom?: string | null | undefined;
1366
+ validTo?: string | null | undefined;
1367
+ metadata?: Record<string, unknown> | null | undefined;
1368
+ }[];
1369
+ };
1370
+ [dataTagErrorSymbol]: Error;
1371
+ };
1372
+ };
1373
+ export declare function getLegalPolicyAcceptancesQueryOptions(client: FetchWithValidationOptions, options?: UseLegalPolicyAcceptancesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1374
+ data: {
1375
+ id: string;
1376
+ policyVersionId: string;
1377
+ personId: string | null;
1378
+ bookingId: string | null;
1379
+ acceptedAt: string;
1380
+ method: "implicit" | "explicit_checkbox" | "signature";
1381
+ createdAt: string;
1382
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1383
+ targetId?: string | null | undefined;
1384
+ targetProvider?: string | null | undefined;
1385
+ targetSourceRef?: string | null | undefined;
1386
+ legacyTransactionOfferId?: string | null | undefined;
1387
+ legacyTransactionOrderId?: string | null | undefined;
1388
+ acceptedBy?: string | null | undefined;
1389
+ ipAddress?: string | null | undefined;
1390
+ userAgent?: string | null | undefined;
1391
+ metadata?: Record<string, unknown> | null | undefined;
1392
+ }[];
1393
+ }, Error, {
1394
+ data: {
1395
+ id: string;
1396
+ policyVersionId: string;
1397
+ personId: string | null;
1398
+ bookingId: string | null;
1399
+ acceptedAt: string;
1400
+ method: "implicit" | "explicit_checkbox" | "signature";
1401
+ createdAt: string;
1402
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1403
+ targetId?: string | null | undefined;
1404
+ targetProvider?: string | null | undefined;
1405
+ targetSourceRef?: string | null | undefined;
1406
+ legacyTransactionOfferId?: string | null | undefined;
1407
+ legacyTransactionOrderId?: string | null | undefined;
1408
+ acceptedBy?: string | null | undefined;
1409
+ ipAddress?: string | null | undefined;
1410
+ userAgent?: string | null | undefined;
1411
+ metadata?: Record<string, unknown> | null | undefined;
1412
+ }[];
1413
+ }, readonly ["legal", "policies", "acceptances", import("./query-keys.js").LegalPolicyAcceptancesListFilters]>, "queryFn"> & {
1414
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1415
+ data: {
1416
+ id: string;
1417
+ policyVersionId: string;
1418
+ personId: string | null;
1419
+ bookingId: string | null;
1420
+ acceptedAt: string;
1421
+ method: "implicit" | "explicit_checkbox" | "signature";
1422
+ createdAt: string;
1423
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1424
+ targetId?: string | null | undefined;
1425
+ targetProvider?: string | null | undefined;
1426
+ targetSourceRef?: string | null | undefined;
1427
+ legacyTransactionOfferId?: string | null | undefined;
1428
+ legacyTransactionOrderId?: string | null | undefined;
1429
+ acceptedBy?: string | null | undefined;
1430
+ ipAddress?: string | null | undefined;
1431
+ userAgent?: string | null | undefined;
1432
+ metadata?: Record<string, unknown> | null | undefined;
1433
+ }[];
1434
+ }, readonly ["legal", "policies", "acceptances", import("./query-keys.js").LegalPolicyAcceptancesListFilters], never> | undefined;
1435
+ } & {
1436
+ queryKey: readonly ["legal", "policies", "acceptances", import("./query-keys.js").LegalPolicyAcceptancesListFilters] & {
1437
+ [dataTagSymbol]: {
1438
+ data: {
1439
+ id: string;
1440
+ policyVersionId: string;
1441
+ personId: string | null;
1442
+ bookingId: string | null;
1443
+ acceptedAt: string;
1444
+ method: "implicit" | "explicit_checkbox" | "signature";
1445
+ createdAt: string;
1446
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1447
+ targetId?: string | null | undefined;
1448
+ targetProvider?: string | null | undefined;
1449
+ targetSourceRef?: string | null | undefined;
1450
+ legacyTransactionOfferId?: string | null | undefined;
1451
+ legacyTransactionOrderId?: string | null | undefined;
1452
+ acceptedBy?: string | null | undefined;
1453
+ ipAddress?: string | null | undefined;
1454
+ userAgent?: string | null | undefined;
1455
+ metadata?: Record<string, unknown> | null | undefined;
1456
+ }[];
1457
+ };
1458
+ [dataTagErrorSymbol]: Error;
1459
+ };
1460
+ };
1461
+ export declare function getLegalTermsQueryOptions(client: FetchWithValidationOptions, options?: LegalTermsListFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1462
+ data: {
1463
+ id: string;
1464
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1465
+ title: string;
1466
+ body: string;
1467
+ required: boolean;
1468
+ sortOrder: number;
1469
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1470
+ createdAt: string;
1471
+ updatedAt: string;
1472
+ contractId?: string | null | undefined;
1473
+ policyVersionId?: string | null | undefined;
1474
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1475
+ targetId?: string | null | undefined;
1476
+ targetProvider?: string | null | undefined;
1477
+ targetSourceRef?: string | null | undefined;
1478
+ legacyTransactionOfferId?: string | null | undefined;
1479
+ legacyTransactionOrderId?: string | null | undefined;
1480
+ language?: string | null | undefined;
1481
+ acceptedAt?: string | null | undefined;
1482
+ acceptedBy?: string | null | undefined;
1483
+ metadata?: Record<string, unknown> | null | undefined;
1484
+ }[];
1485
+ total: number;
1486
+ limit: number;
1487
+ offset: number;
1488
+ }, Error, {
1489
+ data: {
1490
+ id: string;
1491
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1492
+ title: string;
1493
+ body: string;
1494
+ required: boolean;
1495
+ sortOrder: number;
1496
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1497
+ createdAt: string;
1498
+ updatedAt: string;
1499
+ contractId?: string | null | undefined;
1500
+ policyVersionId?: string | null | undefined;
1501
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1502
+ targetId?: string | null | undefined;
1503
+ targetProvider?: string | null | undefined;
1504
+ targetSourceRef?: string | null | undefined;
1505
+ legacyTransactionOfferId?: string | null | undefined;
1506
+ legacyTransactionOrderId?: string | null | undefined;
1507
+ language?: string | null | undefined;
1508
+ acceptedAt?: string | null | undefined;
1509
+ acceptedBy?: string | null | undefined;
1510
+ metadata?: Record<string, unknown> | null | undefined;
1511
+ }[];
1512
+ total: number;
1513
+ limit: number;
1514
+ offset: number;
1515
+ }, readonly ["legal", "terms", LegalTermsListFilters]>, "queryFn"> & {
1516
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1517
+ data: {
1518
+ id: string;
1519
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1520
+ title: string;
1521
+ body: string;
1522
+ required: boolean;
1523
+ sortOrder: number;
1524
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1525
+ createdAt: string;
1526
+ updatedAt: string;
1527
+ contractId?: string | null | undefined;
1528
+ policyVersionId?: string | null | undefined;
1529
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1530
+ targetId?: string | null | undefined;
1531
+ targetProvider?: string | null | undefined;
1532
+ targetSourceRef?: string | null | undefined;
1533
+ legacyTransactionOfferId?: string | null | undefined;
1534
+ legacyTransactionOrderId?: string | null | undefined;
1535
+ language?: string | null | undefined;
1536
+ acceptedAt?: string | null | undefined;
1537
+ acceptedBy?: string | null | undefined;
1538
+ metadata?: Record<string, unknown> | null | undefined;
1539
+ }[];
1540
+ total: number;
1541
+ limit: number;
1542
+ offset: number;
1543
+ }, readonly ["legal", "terms", LegalTermsListFilters], never> | undefined;
1544
+ } & {
1545
+ queryKey: readonly ["legal", "terms", LegalTermsListFilters] & {
1546
+ [dataTagSymbol]: {
1547
+ data: {
1548
+ id: string;
1549
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1550
+ title: string;
1551
+ body: string;
1552
+ required: boolean;
1553
+ sortOrder: number;
1554
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1555
+ createdAt: string;
1556
+ updatedAt: string;
1557
+ contractId?: string | null | undefined;
1558
+ policyVersionId?: string | null | undefined;
1559
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1560
+ targetId?: string | null | undefined;
1561
+ targetProvider?: string | null | undefined;
1562
+ targetSourceRef?: string | null | undefined;
1563
+ legacyTransactionOfferId?: string | null | undefined;
1564
+ legacyTransactionOrderId?: string | null | undefined;
1565
+ language?: string | null | undefined;
1566
+ acceptedAt?: string | null | undefined;
1567
+ acceptedBy?: string | null | undefined;
1568
+ metadata?: Record<string, unknown> | null | undefined;
1569
+ }[];
1570
+ total: number;
1571
+ limit: number;
1572
+ offset: number;
1573
+ };
1574
+ [dataTagErrorSymbol]: Error;
1575
+ };
1576
+ };
1577
+ export declare function getLegalTermQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1578
+ id: string;
1579
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1580
+ title: string;
1581
+ body: string;
1582
+ required: boolean;
1583
+ sortOrder: number;
1584
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1585
+ createdAt: string;
1586
+ updatedAt: string;
1587
+ contractId?: string | null | undefined;
1588
+ policyVersionId?: string | null | undefined;
1589
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1590
+ targetId?: string | null | undefined;
1591
+ targetProvider?: string | null | undefined;
1592
+ targetSourceRef?: string | null | undefined;
1593
+ legacyTransactionOfferId?: string | null | undefined;
1594
+ legacyTransactionOrderId?: string | null | undefined;
1595
+ language?: string | null | undefined;
1596
+ acceptedAt?: string | null | undefined;
1597
+ acceptedBy?: string | null | undefined;
1598
+ metadata?: Record<string, unknown> | null | undefined;
1599
+ }, Error, {
1600
+ id: string;
1601
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1602
+ title: string;
1603
+ body: string;
1604
+ required: boolean;
1605
+ sortOrder: number;
1606
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1607
+ createdAt: string;
1608
+ updatedAt: string;
1609
+ contractId?: string | null | undefined;
1610
+ policyVersionId?: string | null | undefined;
1611
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1612
+ targetId?: string | null | undefined;
1613
+ targetProvider?: string | null | undefined;
1614
+ targetSourceRef?: string | null | undefined;
1615
+ legacyTransactionOfferId?: string | null | undefined;
1616
+ legacyTransactionOrderId?: string | null | undefined;
1617
+ language?: string | null | undefined;
1618
+ acceptedAt?: string | null | undefined;
1619
+ acceptedBy?: string | null | undefined;
1620
+ metadata?: Record<string, unknown> | null | undefined;
1621
+ }, readonly ["legal", "terms", string]>, "queryFn"> & {
1622
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1623
+ id: string;
1624
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1625
+ title: string;
1626
+ body: string;
1627
+ required: boolean;
1628
+ sortOrder: number;
1629
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1630
+ createdAt: string;
1631
+ updatedAt: string;
1632
+ contractId?: string | null | undefined;
1633
+ policyVersionId?: string | null | undefined;
1634
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1635
+ targetId?: string | null | undefined;
1636
+ targetProvider?: string | null | undefined;
1637
+ targetSourceRef?: string | null | undefined;
1638
+ legacyTransactionOfferId?: string | null | undefined;
1639
+ legacyTransactionOrderId?: string | null | undefined;
1640
+ language?: string | null | undefined;
1641
+ acceptedAt?: string | null | undefined;
1642
+ acceptedBy?: string | null | undefined;
1643
+ metadata?: Record<string, unknown> | null | undefined;
1644
+ }, readonly ["legal", "terms", string], never> | undefined;
1645
+ } & {
1646
+ queryKey: readonly ["legal", "terms", string] & {
1647
+ [dataTagSymbol]: {
1648
+ id: string;
1649
+ termType: "other" | "cancellation" | "payment" | "terms_and_conditions" | "commission" | "guarantee" | "pricing";
1650
+ title: string;
1651
+ body: string;
1652
+ required: boolean;
1653
+ sortOrder: number;
1654
+ acceptanceStatus: "pending" | "not_required" | "accepted" | "declined";
1655
+ createdAt: string;
1656
+ updatedAt: string;
1657
+ contractId?: string | null | undefined;
1658
+ policyVersionId?: string | null | undefined;
1659
+ targetKind?: "booking" | "quote_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined;
1660
+ targetId?: string | null | undefined;
1661
+ targetProvider?: string | null | undefined;
1662
+ targetSourceRef?: string | null | undefined;
1663
+ legacyTransactionOfferId?: string | null | undefined;
1664
+ legacyTransactionOrderId?: string | null | undefined;
1665
+ language?: string | null | undefined;
1666
+ acceptedAt?: string | null | undefined;
1667
+ acceptedBy?: string | null | undefined;
1668
+ metadata?: Record<string, unknown> | null | undefined;
1669
+ };
1670
+ [dataTagErrorSymbol]: Error;
1671
+ };
1672
+ };
1673
+ export declare function getResolvePolicyQueryOptions(client: FetchWithValidationOptions, filters: ResolvePolicyFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1674
+ data: {
1675
+ policy: {
1676
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1677
+ name: string;
1678
+ slug: string;
1679
+ language: string;
1680
+ id: string;
1681
+ description: string | null;
1682
+ createdAt: string;
1683
+ updatedAt: string;
1684
+ metadata?: Record<string, unknown> | null | undefined;
1685
+ currentVersionId?: string | null | undefined;
1686
+ };
1687
+ assignment: {
1688
+ policyId: string;
1689
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1690
+ priority: number;
1691
+ id: string;
1692
+ productId: string | null;
1693
+ channelId: string | null;
1694
+ supplierId: string | null;
1695
+ marketId: string | null;
1696
+ organizationId: string | null;
1697
+ createdAt: string;
1698
+ updatedAt: string;
1699
+ validFrom?: string | null | undefined;
1700
+ validTo?: string | null | undefined;
1701
+ metadata?: Record<string, unknown> | null | undefined;
1702
+ };
1703
+ version: {
1704
+ title: string;
1705
+ id: string;
1706
+ policyId: string;
1707
+ version: number;
1708
+ status: "draft" | "published" | "retired";
1709
+ body: string | null;
1710
+ publishedAt: string | null;
1711
+ publishedBy: string | null;
1712
+ createdAt: string;
1713
+ updatedAt: string;
1714
+ retiredAt?: string | null | undefined;
1715
+ metadata?: Record<string, unknown> | null | undefined;
1716
+ } | null;
1717
+ rules: {
1718
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1719
+ sortOrder: number;
1720
+ id: string;
1721
+ policyVersionId: string;
1722
+ label: string | null;
1723
+ daysBeforeDeparture: number | null;
1724
+ refundPercent: number | null;
1725
+ flatAmountCents: number | null;
1726
+ currency: string | null;
1727
+ createdAt: string;
1728
+ updatedAt: string;
1729
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1730
+ validFrom?: string | null | undefined;
1731
+ validTo?: string | null | undefined;
1732
+ conditions?: Record<string, unknown> | null | undefined;
1733
+ }[];
1734
+ } | null;
1735
+ }, Error, {
1736
+ data: {
1737
+ policy: {
1738
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1739
+ name: string;
1740
+ slug: string;
1741
+ language: string;
1742
+ id: string;
1743
+ description: string | null;
1744
+ createdAt: string;
1745
+ updatedAt: string;
1746
+ metadata?: Record<string, unknown> | null | undefined;
1747
+ currentVersionId?: string | null | undefined;
1748
+ };
1749
+ assignment: {
1750
+ policyId: string;
1751
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1752
+ priority: number;
1753
+ id: string;
1754
+ productId: string | null;
1755
+ channelId: string | null;
1756
+ supplierId: string | null;
1757
+ marketId: string | null;
1758
+ organizationId: string | null;
1759
+ createdAt: string;
1760
+ updatedAt: string;
1761
+ validFrom?: string | null | undefined;
1762
+ validTo?: string | null | undefined;
1763
+ metadata?: Record<string, unknown> | null | undefined;
1764
+ };
1765
+ version: {
1766
+ title: string;
1767
+ id: string;
1768
+ policyId: string;
1769
+ version: number;
1770
+ status: "draft" | "published" | "retired";
1771
+ body: string | null;
1772
+ publishedAt: string | null;
1773
+ publishedBy: string | null;
1774
+ createdAt: string;
1775
+ updatedAt: string;
1776
+ retiredAt?: string | null | undefined;
1777
+ metadata?: Record<string, unknown> | null | undefined;
1778
+ } | null;
1779
+ rules: {
1780
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1781
+ sortOrder: number;
1782
+ id: string;
1783
+ policyVersionId: string;
1784
+ label: string | null;
1785
+ daysBeforeDeparture: number | null;
1786
+ refundPercent: number | null;
1787
+ flatAmountCents: number | null;
1788
+ currency: string | null;
1789
+ createdAt: string;
1790
+ updatedAt: string;
1791
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1792
+ validFrom?: string | null | undefined;
1793
+ validTo?: string | null | undefined;
1794
+ conditions?: Record<string, unknown> | null | undefined;
1795
+ }[];
1796
+ } | null;
1797
+ }, readonly ["legal", "policies", "resolve", ResolvePolicyFilters]>, "queryFn"> & {
1798
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1799
+ data: {
1800
+ policy: {
1801
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1802
+ name: string;
1803
+ slug: string;
1804
+ language: string;
1805
+ id: string;
1806
+ description: string | null;
1807
+ createdAt: string;
1808
+ updatedAt: string;
1809
+ metadata?: Record<string, unknown> | null | undefined;
1810
+ currentVersionId?: string | null | undefined;
1811
+ };
1812
+ assignment: {
1813
+ policyId: string;
1814
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1815
+ priority: number;
1816
+ id: string;
1817
+ productId: string | null;
1818
+ channelId: string | null;
1819
+ supplierId: string | null;
1820
+ marketId: string | null;
1821
+ organizationId: string | null;
1822
+ createdAt: string;
1823
+ updatedAt: string;
1824
+ validFrom?: string | null | undefined;
1825
+ validTo?: string | null | undefined;
1826
+ metadata?: Record<string, unknown> | null | undefined;
1827
+ };
1828
+ version: {
1829
+ title: string;
1830
+ id: string;
1831
+ policyId: string;
1832
+ version: number;
1833
+ status: "draft" | "published" | "retired";
1834
+ body: string | null;
1835
+ publishedAt: string | null;
1836
+ publishedBy: string | null;
1837
+ createdAt: string;
1838
+ updatedAt: string;
1839
+ retiredAt?: string | null | undefined;
1840
+ metadata?: Record<string, unknown> | null | undefined;
1841
+ } | null;
1842
+ rules: {
1843
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1844
+ sortOrder: number;
1845
+ id: string;
1846
+ policyVersionId: string;
1847
+ label: string | null;
1848
+ daysBeforeDeparture: number | null;
1849
+ refundPercent: number | null;
1850
+ flatAmountCents: number | null;
1851
+ currency: string | null;
1852
+ createdAt: string;
1853
+ updatedAt: string;
1854
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1855
+ validFrom?: string | null | undefined;
1856
+ validTo?: string | null | undefined;
1857
+ conditions?: Record<string, unknown> | null | undefined;
1858
+ }[];
1859
+ } | null;
1860
+ }, readonly ["legal", "policies", "resolve", ResolvePolicyFilters], never> | undefined;
1861
+ } & {
1862
+ queryKey: readonly ["legal", "policies", "resolve", ResolvePolicyFilters] & {
1863
+ [dataTagSymbol]: {
1864
+ data: {
1865
+ policy: {
1866
+ kind: "other" | "cancellation" | "payment" | "terms_and_conditions" | "privacy" | "refund" | "commission" | "guarantee";
1867
+ name: string;
1868
+ slug: string;
1869
+ language: string;
1870
+ id: string;
1871
+ description: string | null;
1872
+ createdAt: string;
1873
+ updatedAt: string;
1874
+ metadata?: Record<string, unknown> | null | undefined;
1875
+ currentVersionId?: string | null | undefined;
1876
+ };
1877
+ assignment: {
1878
+ policyId: string;
1879
+ scope: "product" | "supplier" | "channel" | "market" | "organization" | "global";
1880
+ priority: number;
1881
+ id: string;
1882
+ productId: string | null;
1883
+ channelId: string | null;
1884
+ supplierId: string | null;
1885
+ marketId: string | null;
1886
+ organizationId: string | null;
1887
+ createdAt: string;
1888
+ updatedAt: string;
1889
+ validFrom?: string | null | undefined;
1890
+ validTo?: string | null | undefined;
1891
+ metadata?: Record<string, unknown> | null | undefined;
1892
+ };
1893
+ version: {
1894
+ title: string;
1895
+ id: string;
1896
+ policyId: string;
1897
+ version: number;
1898
+ status: "draft" | "published" | "retired";
1899
+ body: string | null;
1900
+ publishedAt: string | null;
1901
+ publishedBy: string | null;
1902
+ createdAt: string;
1903
+ updatedAt: string;
1904
+ retiredAt?: string | null | undefined;
1905
+ metadata?: Record<string, unknown> | null | undefined;
1906
+ } | null;
1907
+ rules: {
1908
+ ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range";
1909
+ sortOrder: number;
1910
+ id: string;
1911
+ policyVersionId: string;
1912
+ label: string | null;
1913
+ daysBeforeDeparture: number | null;
1914
+ refundPercent: number | null;
1915
+ flatAmountCents: number | null;
1916
+ currency: string | null;
1917
+ createdAt: string;
1918
+ updatedAt: string;
1919
+ refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined;
1920
+ validFrom?: string | null | undefined;
1921
+ validTo?: string | null | undefined;
1922
+ conditions?: Record<string, unknown> | null | undefined;
1923
+ }[];
1924
+ } | null;
1925
+ };
1926
+ [dataTagErrorSymbol]: Error;
1927
+ };
1928
+ };
1929
+ //# sourceMappingURL=query-options.d.ts.map