@voyantjs/legal-react 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAElF,eAAO,MAAM,cAAc,EAAE,aACoB,CAAA;AAEjD,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;gBAEV,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;CAM3D;AAaD,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,aAAa,CAAA;CACvB;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAC5C,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACvB,OAAO,EAAE,0BAA0B,EACnC,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CA8Bf"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE5B,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAElF,eAAO,MAAM,cAAc,EAAE,aACoB,CAAA;AAEjD,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;gBAEV,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;CAM3D;AAaD,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,aAAa,CAAA;CACvB;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAC5C,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACvB,OAAO,EAAE,0BAA0B,EACnC,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CA+Bf"}
package/dist/client.js CHANGED
@@ -23,7 +23,8 @@ function extractErrorMessage(status, statusText, body) {
23
23
  export async function fetchWithValidation(path, schema, options, init) {
24
24
  const url = joinUrl(options.baseUrl, path);
25
25
  const headers = new Headers(init?.headers);
26
- if (init?.body !== undefined && !headers.has("Content-Type")) {
26
+ const isFormDataBody = typeof FormData !== "undefined" && init?.body instanceof FormData;
27
+ if (init?.body !== undefined && !isFormDataBody && !headers.has("Content-Type")) {
27
28
  headers.set("Content-Type", "application/json");
28
29
  }
29
30
  const response = await options.fetcher(url, { ...init, headers });
@@ -2,6 +2,11 @@ import type { insertContractAttachmentSchema, updateContractAttachmentSchema } f
2
2
  import type { z } from "zod";
3
3
  export type CreateLegalContractAttachmentInput = z.input<typeof insertContractAttachmentSchema>;
4
4
  export type UpdateLegalContractAttachmentInput = z.input<typeof updateContractAttachmentSchema>;
5
+ export interface UploadLegalContractAttachmentInput {
6
+ file: File;
7
+ name?: string;
8
+ kind?: string;
9
+ }
5
10
  export declare function useLegalContractAttachmentMutation(): {
6
11
  create: import("@tanstack/react-query").UseMutationResult<{
7
12
  contractId: string;
@@ -49,5 +54,42 @@ export declare function useLegalContractAttachmentMutation(): {
49
54
  contractId: string;
50
55
  id: string;
51
56
  }, unknown>;
57
+ upload: import("@tanstack/react-query").UseMutationResult<{
58
+ contractId: string;
59
+ data: {
60
+ kind: string;
61
+ name: string;
62
+ id: string;
63
+ contractId: string;
64
+ mimeType: string | null;
65
+ fileSize: number | null;
66
+ storageKey: string | null;
67
+ checksum: string | null;
68
+ createdAt: string;
69
+ metadata?: Record<string, unknown> | null | undefined;
70
+ };
71
+ }, Error, {
72
+ contractId: string;
73
+ input: UploadLegalContractAttachmentInput;
74
+ }, unknown>;
75
+ replaceFile: import("@tanstack/react-query").UseMutationResult<{
76
+ contractId: string;
77
+ data: {
78
+ kind: string;
79
+ name: string;
80
+ id: string;
81
+ contractId: string;
82
+ mimeType: string | null;
83
+ fileSize: number | null;
84
+ storageKey: string | null;
85
+ checksum: string | null;
86
+ createdAt: string;
87
+ metadata?: Record<string, unknown> | null | undefined;
88
+ };
89
+ }, Error, {
90
+ contractId: string;
91
+ id: string;
92
+ input: UploadLegalContractAttachmentInput;
93
+ }, unknown>;
52
94
  };
53
95
  //# sourceMappingURL=use-contract-attachment-mutation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-contract-attachment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contract-attachment-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC/F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAE/F,wBAAgB,kCAAkC;;;;;;;;;;;;;;;;oBAShC,MAAM;eACX,kCAAkC;;;;;;;;;;;;;;;;;oBAuB7B,MAAM;YACd,MAAM;eACH,kCAAkC;;;;;;;;oBAkBU,MAAM;YAAM,MAAM;;EAe1E"}
1
+ {"version":3,"file":"use-contract-attachment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contract-attachment-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC/F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC/F,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,IAAI,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAUD,wBAAgB,kCAAkC;;;;;;;;;;;;;;;;oBAShC,MAAM;eACX,kCAAkC;;;;;;;;;;;;;;;;;oBAuB7B,MAAM;YACd,MAAM;eACH,kCAAkC;;;;;;;;oBAkBU,MAAM;YAAM,MAAM;;;;;;;;;;;;;;;;;oBAmBzD,MAAM;eACX,kCAAkC;;;;;;;;;;;;;;;;;oBAuB7B,MAAM;YACd,MAAM;eACH,kCAAkC;;EAkB9C"}
@@ -3,14 +3,23 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
3
3
  import { fetchWithValidation } from "../client.js";
4
4
  import { useVoyantLegalContext } from "../provider.js";
5
5
  import { legalQueryKeys } from "../query-keys.js";
6
- import { legalContractAttachmentRecordSchema, successEnvelope } from "../schemas.js";
6
+ import { legalContractAttachmentSingleResponse, successEnvelope } from "../schemas.js";
7
+ function createAttachmentUploadFormData(input) {
8
+ const body = new FormData();
9
+ body.set("file", input.file);
10
+ if (input.name)
11
+ body.set("name", input.name);
12
+ if (input.kind)
13
+ body.set("kind", input.kind);
14
+ return body;
15
+ }
7
16
  export function useLegalContractAttachmentMutation() {
8
17
  const { baseUrl, fetcher } = useVoyantLegalContext();
9
18
  const queryClient = useQueryClient();
10
19
  const create = useMutation({
11
20
  mutationFn: async ({ contractId, input, }) => {
12
- const data = await fetchWithValidation(`/v1/admin/legal/contracts/${contractId}/attachments`, legalContractAttachmentRecordSchema, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
- return { contractId, data };
21
+ const data = await fetchWithValidation(`/v1/admin/legal/contracts/${contractId}/attachments`, legalContractAttachmentSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
22
+ return { contractId, data: data.data };
14
23
  },
15
24
  onSuccess: ({ contractId }) => {
16
25
  void queryClient.invalidateQueries({
@@ -20,8 +29,8 @@ export function useLegalContractAttachmentMutation() {
20
29
  });
21
30
  const update = useMutation({
22
31
  mutationFn: async ({ contractId, id, input, }) => {
23
- const data = await fetchWithValidation(`/v1/admin/legal/contracts/attachments/${id}`, legalContractAttachmentRecordSchema, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
24
- return { contractId, data };
32
+ const data = await fetchWithValidation(`/v1/admin/legal/contracts/attachments/${id}`, legalContractAttachmentSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
33
+ return { contractId, data: data.data };
25
34
  },
26
35
  onSuccess: ({ contractId }) => {
27
36
  void queryClient.invalidateQueries({
@@ -37,5 +46,27 @@ export function useLegalContractAttachmentMutation() {
37
46
  });
38
47
  },
39
48
  });
40
- return { create, update, remove };
49
+ const upload = useMutation({
50
+ mutationFn: async ({ contractId, input, }) => {
51
+ const data = await fetchWithValidation(`/v1/admin/legal/contracts/${contractId}/attachments/upload`, legalContractAttachmentSingleResponse, { baseUrl, fetcher }, { method: "POST", body: createAttachmentUploadFormData(input) });
52
+ return { contractId, data: data.data };
53
+ },
54
+ onSuccess: ({ contractId }) => {
55
+ void queryClient.invalidateQueries({
56
+ queryKey: legalQueryKeys.contractAttachments(contractId),
57
+ });
58
+ },
59
+ });
60
+ const replaceFile = useMutation({
61
+ mutationFn: async ({ contractId, id, input, }) => {
62
+ const data = await fetchWithValidation(`/v1/admin/legal/contracts/attachments/${id}/upload`, legalContractAttachmentSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: createAttachmentUploadFormData(input) });
63
+ return { contractId, data: data.data };
64
+ },
65
+ onSuccess: ({ contractId }) => {
66
+ void queryClient.invalidateQueries({
67
+ queryKey: legalQueryKeys.contractAttachments(contractId),
68
+ });
69
+ },
70
+ });
71
+ return { create, update, remove, upload, replaceFile };
41
72
  }
@@ -25,6 +25,10 @@ export declare function useLegalContractMutation(): {
25
25
  updatedAt: string;
26
26
  variables?: Record<string, unknown> | null | undefined;
27
27
  metadata?: Record<string, unknown> | null | undefined;
28
+ personFirstName?: string | null | undefined;
29
+ personLastName?: string | null | undefined;
30
+ personEmail?: string | null | undefined;
31
+ personPhone?: string | null | undefined;
28
32
  issuedAt?: string | null | undefined;
29
33
  sentAt?: string | null | undefined;
30
34
  executedAt?: string | null | undefined;
@@ -68,6 +72,10 @@ export declare function useLegalContractMutation(): {
68
72
  updatedAt: string;
69
73
  variables?: Record<string, unknown> | null | undefined;
70
74
  metadata?: Record<string, unknown> | null | undefined;
75
+ personFirstName?: string | null | undefined;
76
+ personLastName?: string | null | undefined;
77
+ personEmail?: string | null | undefined;
78
+ personPhone?: string | null | undefined;
71
79
  issuedAt?: string | null | undefined;
72
80
  sentAt?: string | null | undefined;
73
81
  executedAt?: string | null | undefined;
@@ -101,6 +109,10 @@ export declare function useLegalContractMutation(): {
101
109
  updatedAt: string;
102
110
  variables?: Record<string, unknown> | null | undefined;
103
111
  metadata?: Record<string, unknown> | null | undefined;
112
+ personFirstName?: string | null | undefined;
113
+ personLastName?: string | null | undefined;
114
+ personEmail?: string | null | undefined;
115
+ personPhone?: string | null | undefined;
104
116
  issuedAt?: string | null | undefined;
105
117
  sentAt?: string | null | undefined;
106
118
  executedAt?: string | null | undefined;
@@ -128,6 +140,10 @@ export declare function useLegalContractMutation(): {
128
140
  updatedAt: string;
129
141
  variables?: Record<string, unknown> | null | undefined;
130
142
  metadata?: Record<string, unknown> | null | undefined;
143
+ personFirstName?: string | null | undefined;
144
+ personLastName?: string | null | undefined;
145
+ personEmail?: string | null | undefined;
146
+ personPhone?: string | null | undefined;
131
147
  issuedAt?: string | null | undefined;
132
148
  sentAt?: string | null | undefined;
133
149
  executedAt?: string | null | undefined;
@@ -155,6 +171,10 @@ export declare function useLegalContractMutation(): {
155
171
  updatedAt: string;
156
172
  variables?: Record<string, unknown> | null | undefined;
157
173
  metadata?: Record<string, unknown> | null | undefined;
174
+ personFirstName?: string | null | undefined;
175
+ personLastName?: string | null | undefined;
176
+ personEmail?: string | null | undefined;
177
+ personPhone?: string | null | undefined;
158
178
  issuedAt?: string | null | undefined;
159
179
  sentAt?: string | null | undefined;
160
180
  executedAt?: string | null | undefined;
@@ -182,6 +202,10 @@ export declare function useLegalContractMutation(): {
182
202
  updatedAt: string;
183
203
  variables?: Record<string, unknown> | null | undefined;
184
204
  metadata?: Record<string, unknown> | null | undefined;
205
+ personFirstName?: string | null | undefined;
206
+ personLastName?: string | null | undefined;
207
+ personEmail?: string | null | undefined;
208
+ personPhone?: string | null | undefined;
185
209
  issuedAt?: string | null | undefined;
186
210
  sentAt?: string | null | undefined;
187
211
  executedAt?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"use-contract-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contract-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mCAAmC,EACnC,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAW5B,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAC3E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2GzE,MAAM;gBACF,kCAAkC;;;;;;;;;;;;;;;;;;;;YA6BtC,MAAM;gBACF,kCAAkC;;EA8B/C"}
@@ -22,6 +22,10 @@ export declare function useLegalContract(id: string, options?: UseLegalContractO
22
22
  updatedAt: string;
23
23
  variables?: Record<string, unknown> | null | undefined;
24
24
  metadata?: Record<string, unknown> | null | undefined;
25
+ personFirstName?: string | null | undefined;
26
+ personLastName?: string | null | undefined;
27
+ personEmail?: string | null | undefined;
28
+ personPhone?: string | null | undefined;
25
29
  issuedAt?: string | null | undefined;
26
30
  sentAt?: string | null | undefined;
27
31
  executedAt?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"use-contract.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contract.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;UAQjF"}
1
+ {"version":3,"file":"use-contract.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contract.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQjF"}
@@ -24,6 +24,10 @@ export declare function useLegalContracts(options?: UseLegalContractsOptions): i
24
24
  updatedAt: string;
25
25
  variables?: Record<string, unknown> | null | undefined;
26
26
  metadata?: Record<string, unknown> | null | undefined;
27
+ personFirstName?: string | null | undefined;
28
+ personLastName?: string | null | undefined;
29
+ personEmail?: string | null | undefined;
30
+ personPhone?: string | null | undefined;
27
31
  issuedAt?: string | null | undefined;
28
32
  sentAt?: string | null | undefined;
29
33
  executedAt?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"use-contracts.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contracts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAGjE,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQvE"}
1
+ {"version":3,"file":"use-contracts.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contracts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAGjE,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQvE"}
@@ -36,6 +36,10 @@ export declare function getLegalContractsQueryOptions(client: FetchWithValidatio
36
36
  updatedAt: string;
37
37
  variables?: Record<string, unknown> | null | undefined;
38
38
  metadata?: Record<string, unknown> | null | undefined;
39
+ personFirstName?: string | null | undefined;
40
+ personLastName?: string | null | undefined;
41
+ personEmail?: string | null | undefined;
42
+ personPhone?: string | null | undefined;
39
43
  issuedAt?: string | null | undefined;
40
44
  sentAt?: string | null | undefined;
41
45
  executedAt?: string | null | undefined;
@@ -67,6 +71,10 @@ export declare function getLegalContractsQueryOptions(client: FetchWithValidatio
67
71
  updatedAt: string;
68
72
  variables?: Record<string, unknown> | null | undefined;
69
73
  metadata?: Record<string, unknown> | null | undefined;
74
+ personFirstName?: string | null | undefined;
75
+ personLastName?: string | null | undefined;
76
+ personEmail?: string | null | undefined;
77
+ personPhone?: string | null | undefined;
70
78
  issuedAt?: string | null | undefined;
71
79
  sentAt?: string | null | undefined;
72
80
  executedAt?: string | null | undefined;
@@ -99,6 +107,10 @@ export declare function getLegalContractsQueryOptions(client: FetchWithValidatio
99
107
  updatedAt: string;
100
108
  variables?: Record<string, unknown> | null | undefined;
101
109
  metadata?: Record<string, unknown> | null | undefined;
110
+ personFirstName?: string | null | undefined;
111
+ personLastName?: string | null | undefined;
112
+ personEmail?: string | null | undefined;
113
+ personPhone?: string | null | undefined;
102
114
  issuedAt?: string | null | undefined;
103
115
  sentAt?: string | null | undefined;
104
116
  executedAt?: string | null | undefined;
@@ -133,6 +145,10 @@ export declare function getLegalContractsQueryOptions(client: FetchWithValidatio
133
145
  updatedAt: string;
134
146
  variables?: Record<string, unknown> | null | undefined;
135
147
  metadata?: Record<string, unknown> | null | undefined;
148
+ personFirstName?: string | null | undefined;
149
+ personLastName?: string | null | undefined;
150
+ personEmail?: string | null | undefined;
151
+ personPhone?: string | null | undefined;
136
152
  issuedAt?: string | null | undefined;
137
153
  sentAt?: string | null | undefined;
138
154
  executedAt?: string | null | undefined;
@@ -167,6 +183,10 @@ export declare function getLegalContractQueryOptions(client: FetchWithValidation
167
183
  updatedAt: string;
168
184
  variables?: Record<string, unknown> | null | undefined;
169
185
  metadata?: Record<string, unknown> | null | undefined;
186
+ personFirstName?: string | null | undefined;
187
+ personLastName?: string | null | undefined;
188
+ personEmail?: string | null | undefined;
189
+ personPhone?: string | null | undefined;
170
190
  issuedAt?: string | null | undefined;
171
191
  sentAt?: string | null | undefined;
172
192
  executedAt?: string | null | undefined;
@@ -193,6 +213,10 @@ export declare function getLegalContractQueryOptions(client: FetchWithValidation
193
213
  updatedAt: string;
194
214
  variables?: Record<string, unknown> | null | undefined;
195
215
  metadata?: Record<string, unknown> | null | undefined;
216
+ personFirstName?: string | null | undefined;
217
+ personLastName?: string | null | undefined;
218
+ personEmail?: string | null | undefined;
219
+ personPhone?: string | null | undefined;
196
220
  issuedAt?: string | null | undefined;
197
221
  sentAt?: string | null | undefined;
198
222
  executedAt?: string | null | undefined;
@@ -220,6 +244,10 @@ export declare function getLegalContractQueryOptions(client: FetchWithValidation
220
244
  updatedAt: string;
221
245
  variables?: Record<string, unknown> | null | undefined;
222
246
  metadata?: Record<string, unknown> | null | undefined;
247
+ personFirstName?: string | null | undefined;
248
+ personLastName?: string | null | undefined;
249
+ personEmail?: string | null | undefined;
250
+ personPhone?: string | null | undefined;
223
251
  issuedAt?: string | null | undefined;
224
252
  sentAt?: string | null | undefined;
225
253
  executedAt?: string | null | undefined;
@@ -249,6 +277,10 @@ export declare function getLegalContractQueryOptions(client: FetchWithValidation
249
277
  updatedAt: string;
250
278
  variables?: Record<string, unknown> | null | undefined;
251
279
  metadata?: Record<string, unknown> | null | undefined;
280
+ personFirstName?: string | null | undefined;
281
+ personLastName?: string | null | undefined;
282
+ personEmail?: string | null | undefined;
283
+ personPhone?: string | null | undefined;
252
284
  issuedAt?: string | null | undefined;
253
285
  sentAt?: string | null | undefined;
254
286
  executedAt?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,qCAAqC,CAAA;AAC7F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAA;AAC3F,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAA;AACvF,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAA;AACxG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAA;AACzF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,KAAK,EAAE,mCAAmC,EAA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E,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW9B"}
package/dist/schemas.d.ts CHANGED
@@ -42,6 +42,10 @@ export declare const legalContractRecordSchema: z.ZodObject<{
42
42
  channelId: z.ZodNullable<z.ZodString>;
43
43
  bookingId: z.ZodNullable<z.ZodString>;
44
44
  orderId: z.ZodNullable<z.ZodString>;
45
+ personFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ personLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ personEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ personPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
49
  issuedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
50
  sentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
51
  executedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -93,6 +97,20 @@ export declare const legalContractAttachmentRecordSchema: z.ZodObject<{
93
97
  createdAt: z.ZodString;
94
98
  }, z.core.$strip>;
95
99
  export type LegalContractAttachmentRecord = z.infer<typeof legalContractAttachmentRecordSchema>;
100
+ export declare const legalContractAttachmentSingleResponse: z.ZodObject<{
101
+ data: z.ZodObject<{
102
+ kind: z.ZodDefault<z.ZodString>;
103
+ name: z.ZodString;
104
+ id: z.ZodString;
105
+ contractId: z.ZodString;
106
+ mimeType: z.ZodNullable<z.ZodString>;
107
+ fileSize: z.ZodNullable<z.ZodNumber>;
108
+ storageKey: z.ZodNullable<z.ZodString>;
109
+ checksum: z.ZodNullable<z.ZodString>;
110
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
111
+ createdAt: z.ZodString;
112
+ }, z.core.$strip>;
113
+ }, z.core.$strip>;
96
114
  export declare const legalContractTemplateRecordSchema: z.ZodObject<{
97
115
  name: z.ZodString;
98
116
  slug: z.ZodString;
@@ -296,6 +314,10 @@ export declare const legalContractListResponse: z.ZodObject<{
296
314
  channelId: z.ZodNullable<z.ZodString>;
297
315
  bookingId: z.ZodNullable<z.ZodString>;
298
316
  orderId: z.ZodNullable<z.ZodString>;
317
+ personFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ personLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ personEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ personPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
321
  issuedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
322
  sentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
323
  executedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -346,6 +368,10 @@ export declare const legalContractSingleResponse: z.ZodObject<{
346
368
  channelId: z.ZodNullable<z.ZodString>;
347
369
  bookingId: z.ZodNullable<z.ZodString>;
348
370
  orderId: z.ZodNullable<z.ZodString>;
371
+ personFirstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ personLastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ personEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ personPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
375
  issuedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
376
  sentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
377
  executedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAiB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;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAA;AAGF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAOjC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;iBAKnC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;iBAA2C,CAAA"}
package/dist/schemas.js CHANGED
@@ -20,6 +20,10 @@ export const legalContractRecordSchema = insertContractSchema.extend({
20
20
  channelId: z.string().nullable(),
21
21
  bookingId: z.string().nullable(),
22
22
  orderId: z.string().nullable(),
23
+ personFirstName: z.string().nullable().optional(),
24
+ personLastName: z.string().nullable().optional(),
25
+ personEmail: z.string().nullable().optional(),
26
+ personPhone: z.string().nullable().optional(),
23
27
  issuedAt: z.string().nullable().optional(),
24
28
  sentAt: z.string().nullable().optional(),
25
29
  executedAt: z.string().nullable().optional(),
@@ -55,6 +59,7 @@ export const legalContractAttachmentRecordSchema = insertContractAttachmentSchem
55
59
  metadata: z.record(z.string(), z.unknown()).nullable().optional(),
56
60
  createdAt: z.string(),
57
61
  });
62
+ export const legalContractAttachmentSingleResponse = singleEnvelope(legalContractAttachmentRecordSchema);
58
63
  export const legalContractTemplateRecordSchema = insertContractTemplateSchema.extend({
59
64
  id: z.string(),
60
65
  description: z.string().nullable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/legal-react",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "zod": "^4.0.0",
44
- "@voyantjs/legal": "0.33.0"
44
+ "@voyantjs/legal": "0.34.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@tanstack/react-query": "^5.96.2",
@@ -52,12 +52,12 @@
52
52
  "typescript": "^6.0.2",
53
53
  "vitest": "^4.1.2",
54
54
  "zod": "^4.3.6",
55
- "@voyantjs/legal": "0.33.0",
56
- "@voyantjs/react": "0.33.0",
55
+ "@voyantjs/legal": "0.34.0",
56
+ "@voyantjs/react": "0.34.0",
57
57
  "@voyantjs/voyant-typescript-config": "0.1.0"
58
58
  },
59
59
  "dependencies": {
60
- "@voyantjs/react": "0.33.0"
60
+ "@voyantjs/react": "0.34.0"
61
61
  },
62
62
  "files": [
63
63
  "dist"