@burdenoff/microfe-proserviceworld 2026.720.1 → 2026.728.1

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,8 +1,8 @@
1
1
  import { useMutation as e, useQuery as t, useQueryClient as n } from "@tanstack/react-query";
2
2
  import { graphqlFetch as r } from "@burdenoff/fe-libs/shared/graphql";
3
- import { clearGraphqlFetchResponseCache as i } from "@burdenoff/fe-libs/shared/graphql/fetch";
3
+ import { clearGraphqlFetchResponseCache as ee } from "@burdenoff/fe-libs/shared/graphql/fetch";
4
4
  //#region src/proserviceworld/hooks/useProServiceWorldApi.ts
5
- async function a(e, t = {}) {
5
+ async function i(e, t = {}) {
6
6
  let n = await r({
7
7
  gateway: "workspace",
8
8
  query: e,
@@ -11,29 +11,131 @@ async function a(e, t = {}) {
11
11
  });
12
12
  if (n.errors?.length) throw Error(n.errors[0]?.message ?? "GraphQL request failed");
13
13
  if (!n.data) throw Error("GraphQL response did not include data");
14
- return e.trimStart().startsWith("mutation") && i(), n.data;
14
+ return e.trimStart().startsWith("mutation") && ee(), n.data;
15
15
  }
16
- var o = "proserviceworld";
17
- function s(e, ...t) {
18
- for (let n of t) e.invalidateQueries({ queryKey: [o, n] });
16
+ var a = "proserviceworld";
17
+ function o(e, ...t) {
18
+ for (let n of t) e.invalidateQueries({ queryKey: [a, n] });
19
19
  }
20
- var c = "\n id name type status industry contactName contactEmail contactPhone address\n relationshipOwnerId notes tags createdAt updatedAt", l = "\n id clientId practiceAreaId name description status feeArrangement feeAmount currency\n startDate endDate responsiblePartnerId tags createdAt updatedAt client { id name }", u = "id engagementId name description status version acceptanceCriteria dueDate acceptedAt createdAt", d = "id engagementId name description status dueDate completedAt triggerAmount triggersInvoice createdAt", f = "\n id clientId engagementId practiceAreaId reference title description status priority isPrivileged\n dueDate closedAt leadPractitionerId tags createdAt updatedAt client { id name }", p = "id engagementId matterId practitionerId date minutes billable rate narrative status invoiceId createdAt", m = "id clientId engagementId number status currency subtotal taxAmount total issueDate dueDate paidAt notes createdAt", h = "id type status subjectType subjectId title details reviewerId dueDate resolvedAt createdAt", g = "id clientId matterId status searchedParties findings waiverReason resolvedAt createdAt", _ = "id name code description isActive createdAt", v = "id name description status classification version legalHold retainUntil matterId engagementId tags file { id } createdAt";
21
- function y() {
20
+ var s = "\n id name type status industry contactName contactEmail contactPhone address\n relationshipOwnerId notes tags createdAt updatedAt", c = "\n id clientId practiceAreaId name description status feeArrangement feeAmount currency\n startDate endDate responsiblePartnerId tags createdAt updatedAt client { id name }", l = "id engagementId name description status version acceptanceCriteria dueDate acceptedAt createdAt", u = "id engagementId name description status dueDate completedAt triggerAmount triggersInvoice createdAt", d = "\n id clientId engagementId practiceAreaId reference title description status priority isPrivileged\n dueDate closedAt leadPractitionerId tags createdAt updatedAt client { id name }", f = "id engagementId matterId practitionerId date minutes billable rate narrative status invoiceId createdAt", p = "id clientId engagementId number status currency subtotal taxAmount total issueDate dueDate paidAt notes createdAt", m = "id type status subjectType subjectId title details reviewerId dueDate resolvedAt createdAt", h = "id clientId matterId status searchedParties findings waiverReason resolvedAt createdAt", g = "id name code description isActive createdAt", _ = "id name description status classification version legalHold retainUntil matterId engagementId tags file { id } createdAt", v = "id name institutionName accountNumberLast4 currency status createdAt", y = "id trustAccountId clientId matterId type amount balanceAfter description reference transferId reconciled reconciledAt createdAt", b = "id trustAccountId clientId matterId invoiceId amount reason status transferredAt createdAt";
21
+ function x() {
22
22
  return t({
23
- queryKey: [o, "dashboard"],
24
- queryFn: async () => (await a("\n query PswDashboard {\n pswDashboardStats {\n totalClients activeClients activeEngagements openMatters\n outstandingInvoiceTotal paidInvoiceTotal unbilledHours billedHours\n pendingComplianceChecks openConflictChecks\n engagementsByStatus { status count }\n invoicesByStatus { status count }\n mattersByStatus { status count }\n revenueByMonth { month amount }\n }\n }")).pswDashboardStats
23
+ queryKey: [a, "dashboard"],
24
+ queryFn: async () => (await i("\n query PswDashboard {\n pswDashboardStats {\n totalClients activeClients activeEngagements openMatters\n outstandingInvoiceTotal paidInvoiceTotal unbilledHours billedHours\n pendingComplianceChecks openConflictChecks\n engagementsByStatus { status count }\n invoicesByStatus { status count }\n mattersByStatus { status count }\n revenueByMonth { month amount }\n trustHeldTotal activeTrustAccounts\n }\n }")).pswDashboardStats
25
25
  });
26
26
  }
27
- function b(e = {}) {
27
+ function S(e = {}) {
28
28
  return t({
29
29
  queryKey: [
30
- o,
30
+ a,
31
+ "trustAccounts",
32
+ e
33
+ ],
34
+ queryFn: async () => (await i(`query PswTrustAccounts($status: PswTrustAccountStatus, $pagination: PaginationInput) {
35
+ pswListTrustAccounts(status: $status, pagination: $pagination) {
36
+ items { ${v} } pageInfo { hasMore cursor } totalCount
37
+ }
38
+ }`, {
39
+ status: e.status ?? null,
40
+ pagination: e.pagination ?? { limit: 100 }
41
+ })).pswListTrustAccounts
42
+ });
43
+ }
44
+ function C() {
45
+ let t = n();
46
+ return e({
47
+ mutationFn: (e) => i(`mutation PswCreateTrustAccount($input: PswCreateTrustAccountInput!) {
48
+ pswCreateTrustAccount(input: $input) { ${v} }
49
+ }`, { input: e }),
50
+ onSuccess: () => o(t, "trustAccounts", "dashboard")
51
+ });
52
+ }
53
+ function w(e = {}) {
54
+ return t({
55
+ queryKey: [
56
+ a,
57
+ "trustTransactions",
58
+ e
59
+ ],
60
+ enabled: !!e.trustAccountId,
61
+ queryFn: async () => (await i(`query PswTrustTransactions($trustAccountId: ID, $clientId: ID, $matterId: ID, $pagination: PaginationInput) {
62
+ pswListTrustTransactions(
63
+ trustAccountId: $trustAccountId
64
+ clientId: $clientId
65
+ matterId: $matterId
66
+ pagination: $pagination
67
+ ) {
68
+ items { ${y} } pageInfo { hasMore cursor } totalCount
69
+ }
70
+ }`, {
71
+ trustAccountId: e.trustAccountId ?? null,
72
+ clientId: e.clientId ?? null,
73
+ matterId: e.matterId ?? null,
74
+ pagination: e.pagination ?? { limit: 100 }
75
+ })).pswListTrustTransactions
76
+ });
77
+ }
78
+ function T(e, n, r) {
79
+ return t({
80
+ queryKey: [
81
+ a,
82
+ "trustClientBalance",
83
+ e,
84
+ n,
85
+ r
86
+ ],
87
+ enabled: !!e && !!n,
88
+ queryFn: async () => (await i("query PswTrustClientBalance($trustAccountId: ID!, $clientId: ID!, $matterId: ID) {\n pswTrustClientBalance(trustAccountId: $trustAccountId, clientId: $clientId, matterId: $matterId) {\n clientId matterId balance\n }\n }", {
89
+ trustAccountId: e,
90
+ clientId: n,
91
+ matterId: r ?? null
92
+ })).pswTrustClientBalance
93
+ });
94
+ }
95
+ function E() {
96
+ let t = n();
97
+ return e({
98
+ mutationFn: (e) => i(`mutation PswRecordTrustDeposit($input: PswRecordTrustDepositInput!) {
99
+ pswRecordTrustDeposit(input: $input) { ${y} }
100
+ }`, { input: e }),
101
+ onSuccess: () => o(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
102
+ });
103
+ }
104
+ function D() {
105
+ let t = n();
106
+ return e({
107
+ mutationFn: (e) => i(`mutation PswRecordTrustWithdrawal($input: PswRecordTrustWithdrawalInput!) {
108
+ pswRecordTrustWithdrawal(input: $input) { ${y} }
109
+ }`, { input: e }),
110
+ onSuccess: () => o(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
111
+ });
112
+ }
113
+ function O() {
114
+ let t = n();
115
+ return e({
116
+ mutationFn: (e) => i(`mutation PswCreateTrustTransfer($input: PswCreateTrustTransferInput!) {
117
+ pswCreateTrustTransfer(input: $input) { ${b} }
118
+ }`, { input: e }),
119
+ onSuccess: () => o(t, "trustTransactions", "trustTransfers", "trustClientBalance", "trustAccounts", "dashboard")
120
+ });
121
+ }
122
+ function k() {
123
+ let t = n();
124
+ return e({
125
+ mutationFn: (e) => i("mutation PswReconcileTrustAccount($input: PswReconcileTrustAccountInput!) {\n pswReconcileTrustAccount(input: $input) {\n trustAccountId asOf bookBalance statementBalance difference inBalance reconciledCount\n clientBalances { clientId matterId balance }\n }\n }", { input: e }).then((e) => e.pswReconcileTrustAccount),
126
+ onSuccess: () => o(t, "trustTransactions", "trustAccounts", "dashboard")
127
+ });
128
+ }
129
+ function A(e = {}) {
130
+ return t({
131
+ queryKey: [
132
+ a,
31
133
  "clients",
32
134
  e
33
135
  ],
34
- queryFn: async () => (await a(`query PswClients($status: PswClientStatus, $search: String, $pagination: PaginationInput) {
136
+ queryFn: async () => (await i(`query PswClients($status: PswClientStatus, $search: String, $pagination: PaginationInput) {
35
137
  pswListClients(status: $status, search: $search, pagination: $pagination) {
36
- items { ${c} } pageInfo { hasMore cursor } totalCount
138
+ items { ${s} } pageInfo { hasMore cursor } totalCount
37
139
  }
38
140
  }`, {
39
141
  status: e.status ?? null,
@@ -42,60 +144,60 @@ function b(e = {}) {
42
144
  })).pswListClients
43
145
  });
44
146
  }
45
- function x(e) {
147
+ function j(e) {
46
148
  return t({
47
149
  queryKey: [
48
- o,
150
+ a,
49
151
  "client",
50
152
  e
51
153
  ],
52
154
  enabled: !!e,
53
- queryFn: async () => (await a(`query PswClient($id: ID!) {
155
+ queryFn: async () => (await i(`query PswClient($id: ID!) {
54
156
  pswClient(id: $id) {
55
- ${c}
56
- engagements { ${l} }
57
- matters { ${f} }
157
+ ${s}
158
+ engagements { ${c} }
159
+ matters { ${d} }
58
160
  }
59
161
  }`, { id: e })).pswClient
60
162
  });
61
163
  }
62
- function S() {
164
+ function M() {
63
165
  let t = n();
64
166
  return e({
65
- mutationFn: (e) => a(`mutation PswCreateClient($input: PswCreateClientInput!) { pswCreateClient(input: $input) { ${c} } }`, { input: e }),
66
- onSuccess: () => s(t, "clients", "dashboard")
167
+ mutationFn: (e) => i(`mutation PswCreateClient($input: PswCreateClientInput!) { pswCreateClient(input: $input) { ${s} } }`, { input: e }),
168
+ onSuccess: () => o(t, "clients", "dashboard")
67
169
  });
68
170
  }
69
- function C() {
171
+ function N() {
70
172
  let t = n();
71
173
  return e({
72
- mutationFn: (e) => a(`mutation PswUpdateClient($id: ID!, $input: PswUpdateClientInput!) { pswUpdateClient(id: $id, input: $input) { ${c} } }`, e),
174
+ mutationFn: (e) => i(`mutation PswUpdateClient($id: ID!, $input: PswUpdateClientInput!) { pswUpdateClient(id: $id, input: $input) { ${s} } }`, e),
73
175
  onSuccess: (e, n) => {
74
- s(t, "clients", "dashboard"), t.invalidateQueries({ queryKey: [
75
- o,
176
+ o(t, "clients", "dashboard"), t.invalidateQueries({ queryKey: [
177
+ a,
76
178
  "client",
77
179
  n.id
78
180
  ] });
79
181
  }
80
182
  });
81
183
  }
82
- function w() {
184
+ function P() {
83
185
  let t = n();
84
186
  return e({
85
- mutationFn: (e) => a("mutation PswArchiveClient($id: ID!) { pswArchiveClient(id: $id) }", { id: e }),
86
- onSuccess: () => s(t, "clients", "dashboard")
187
+ mutationFn: (e) => i("mutation PswArchiveClient($id: ID!) { pswArchiveClient(id: $id) }", { id: e }),
188
+ onSuccess: () => o(t, "clients", "dashboard")
87
189
  });
88
190
  }
89
- function T(e = {}) {
191
+ function F(e = {}) {
90
192
  return t({
91
193
  queryKey: [
92
- o,
194
+ a,
93
195
  "engagements",
94
196
  e
95
197
  ],
96
- queryFn: async () => (await a(`query PswEngagements($clientId: ID, $status: PswEngagementStatus, $search: String, $pagination: PaginationInput) {
198
+ queryFn: async () => (await i(`query PswEngagements($clientId: ID, $status: PswEngagementStatus, $search: String, $pagination: PaginationInput) {
97
199
  pswListEngagements(clientId: $clientId, status: $status, search: $search, pagination: $pagination) {
98
- items { ${l} } pageInfo { hasMore cursor } totalCount
200
+ items { ${c} } pageInfo { hasMore cursor } totalCount
99
201
  }
100
202
  }`, {
101
203
  clientId: e.clientId ?? null,
@@ -105,113 +207,113 @@ function T(e = {}) {
105
207
  })).pswListEngagements
106
208
  });
107
209
  }
108
- function E(e) {
210
+ function I(e) {
109
211
  return t({
110
212
  queryKey: [
111
- o,
213
+ a,
112
214
  "engagement",
113
215
  e
114
216
  ],
115
217
  enabled: !!e,
116
- queryFn: async () => (await a(`query PswEngagement($id: ID!) {
218
+ queryFn: async () => (await i(`query PswEngagement($id: ID!) {
117
219
  pswEngagement(id: $id) {
118
- ${l}
119
- deliverables { ${u} }
120
- milestones { ${d} }
220
+ ${c}
221
+ deliverables { ${l} }
222
+ milestones { ${u} }
121
223
  }
122
224
  }`, { id: e })).pswEngagement
123
225
  });
124
226
  }
125
- function D() {
227
+ function L() {
126
228
  let t = n();
127
229
  return e({
128
- mutationFn: (e) => a(`mutation PswCreateEngagement($input: PswCreateEngagementInput!) { pswCreateEngagement(input: $input) { ${l} } }`, { input: e }),
129
- onSuccess: () => s(t, "engagements", "dashboard")
230
+ mutationFn: (e) => i(`mutation PswCreateEngagement($input: PswCreateEngagementInput!) { pswCreateEngagement(input: $input) { ${c} } }`, { input: e }),
231
+ onSuccess: () => o(t, "engagements", "dashboard")
130
232
  });
131
233
  }
132
- function O() {
234
+ function R() {
133
235
  let t = n();
134
236
  return e({
135
- mutationFn: (e) => a(`mutation PswUpdateEngagement($id: ID!, $input: PswUpdateEngagementInput!) { pswUpdateEngagement(id: $id, input: $input) { ${l} } }`, e),
237
+ mutationFn: (e) => i(`mutation PswUpdateEngagement($id: ID!, $input: PswUpdateEngagementInput!) { pswUpdateEngagement(id: $id, input: $input) { ${c} } }`, e),
136
238
  onSuccess: (e, n) => {
137
- s(t, "engagements"), t.invalidateQueries({ queryKey: [
138
- o,
239
+ o(t, "engagements"), t.invalidateQueries({ queryKey: [
240
+ a,
139
241
  "engagement",
140
242
  n.id
141
243
  ] });
142
244
  }
143
245
  });
144
246
  }
145
- function k() {
247
+ function z() {
146
248
  let t = n();
147
249
  return e({
148
- mutationFn: (e) => a(`mutation PswTransitionEngagement($id: ID!, $status: PswEngagementStatus!) { pswTransitionEngagement(id: $id, status: $status) { ${l} } }`, e),
250
+ mutationFn: (e) => i(`mutation PswTransitionEngagement($id: ID!, $status: PswEngagementStatus!) { pswTransitionEngagement(id: $id, status: $status) { ${c} } }`, e),
149
251
  onSuccess: (e, n) => {
150
- s(t, "engagements", "dashboard"), t.invalidateQueries({ queryKey: [
151
- o,
252
+ o(t, "engagements", "dashboard"), t.invalidateQueries({ queryKey: [
253
+ a,
152
254
  "engagement",
153
255
  n.id
154
256
  ] });
155
257
  }
156
258
  });
157
259
  }
158
- function A() {
260
+ function te() {
159
261
  let t = n();
160
262
  return e({
161
- mutationFn: (e) => a(`mutation PswCreateDeliverable($input: PswCreateDeliverableInput!) { pswCreateDeliverable(input: $input) { ${u} } }`, { input: e }),
263
+ mutationFn: (e) => i(`mutation PswCreateDeliverable($input: PswCreateDeliverableInput!) { pswCreateDeliverable(input: $input) { ${l} } }`, { input: e }),
162
264
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
163
- o,
265
+ a,
164
266
  "engagement",
165
267
  n.engagementId
166
268
  ] })
167
269
  });
168
270
  }
169
- function j() {
271
+ function B() {
170
272
  let t = n();
171
273
  return e({
172
- mutationFn: (e) => a(`mutation PswTransitionDeliverable($id: ID!, $status: PswDeliverableStatus!) { pswTransitionDeliverable(id: $id, status: $status) { ${u} } }`, {
274
+ mutationFn: (e) => i(`mutation PswTransitionDeliverable($id: ID!, $status: PswDeliverableStatus!) { pswTransitionDeliverable(id: $id, status: $status) { ${l} } }`, {
173
275
  id: e.id,
174
276
  status: e.status
175
277
  }),
176
278
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
177
- o,
279
+ a,
178
280
  "engagement",
179
281
  n.engagementId
180
282
  ] })
181
283
  });
182
284
  }
183
- function M() {
285
+ function V() {
184
286
  let t = n();
185
287
  return e({
186
- mutationFn: (e) => a(`mutation PswCreateMilestone($input: PswCreateMilestoneInput!) { pswCreateMilestone(input: $input) { ${d} } }`, { input: e }),
288
+ mutationFn: (e) => i(`mutation PswCreateMilestone($input: PswCreateMilestoneInput!) { pswCreateMilestone(input: $input) { ${u} } }`, { input: e }),
187
289
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
188
- o,
290
+ a,
189
291
  "engagement",
190
292
  n.engagementId
191
293
  ] })
192
294
  });
193
295
  }
194
- function N() {
296
+ function H() {
195
297
  let t = n();
196
298
  return e({
197
- mutationFn: (e) => a(`mutation PswCompleteMilestone($id: ID!) { pswCompleteMilestone(id: $id) { ${d} } }`, { id: e.id }),
299
+ mutationFn: (e) => i(`mutation PswCompleteMilestone($id: ID!) { pswCompleteMilestone(id: $id) { ${u} } }`, { id: e.id }),
198
300
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
199
- o,
301
+ a,
200
302
  "engagement",
201
303
  n.engagementId
202
304
  ] })
203
305
  });
204
306
  }
205
- function ee(e = {}) {
307
+ function U(e = {}) {
206
308
  return t({
207
309
  queryKey: [
208
- o,
310
+ a,
209
311
  "matters",
210
312
  e
211
313
  ],
212
- queryFn: async () => (await a(`query PswMatters($clientId: ID, $engagementId: ID, $status: PswMatterStatus, $search: String, $pagination: PaginationInput) {
314
+ queryFn: async () => (await i(`query PswMatters($clientId: ID, $engagementId: ID, $status: PswMatterStatus, $search: String, $pagination: PaginationInput) {
213
315
  pswListMatters(clientId: $clientId, engagementId: $engagementId, status: $status, search: $search, pagination: $pagination) {
214
- items { ${f} } pageInfo { hasMore cursor } totalCount
316
+ items { ${d} } pageInfo { hasMore cursor } totalCount
215
317
  }
216
318
  }`, {
217
319
  clientId: e.clientId ?? null,
@@ -222,37 +324,37 @@ function ee(e = {}) {
222
324
  })).pswListMatters
223
325
  });
224
326
  }
225
- function P() {
327
+ function W() {
226
328
  let t = n();
227
329
  return e({
228
- mutationFn: (e) => a(`mutation PswCreateMatter($input: PswCreateMatterInput!) { pswCreateMatter(input: $input) { ${f} } }`, { input: e }),
229
- onSuccess: () => s(t, "matters", "dashboard")
330
+ mutationFn: (e) => i(`mutation PswCreateMatter($input: PswCreateMatterInput!) { pswCreateMatter(input: $input) { ${d} } }`, { input: e }),
331
+ onSuccess: () => o(t, "matters", "dashboard")
230
332
  });
231
333
  }
232
- function F() {
334
+ function G() {
233
335
  let t = n();
234
336
  return e({
235
- mutationFn: (e) => a(`mutation PswUpdateMatter($id: ID!, $input: PswUpdateMatterInput!) { pswUpdateMatter(id: $id, input: $input) { ${f} } }`, e),
236
- onSuccess: () => s(t, "matters")
337
+ mutationFn: (e) => i(`mutation PswUpdateMatter($id: ID!, $input: PswUpdateMatterInput!) { pswUpdateMatter(id: $id, input: $input) { ${d} } }`, e),
338
+ onSuccess: () => o(t, "matters")
237
339
  });
238
340
  }
239
- function I() {
341
+ function K() {
240
342
  let t = n();
241
343
  return e({
242
- mutationFn: (e) => a(`mutation PswCloseMatter($id: ID!) { pswCloseMatter(id: $id) { ${f} } }`, { id: e }),
243
- onSuccess: () => s(t, "matters", "dashboard")
344
+ mutationFn: (e) => i(`mutation PswCloseMatter($id: ID!) { pswCloseMatter(id: $id) { ${d} } }`, { id: e }),
345
+ onSuccess: () => o(t, "matters", "dashboard")
244
346
  });
245
347
  }
246
- function L(e = {}) {
348
+ function q(e = {}) {
247
349
  return t({
248
350
  queryKey: [
249
- o,
351
+ a,
250
352
  "time",
251
353
  e
252
354
  ],
253
- queryFn: async () => (await a(`query PswTimeEntries($engagementId: ID, $matterId: ID, $status: PswTimeEntryStatus, $billable: Boolean, $pagination: PaginationInput) {
355
+ queryFn: async () => (await i(`query PswTimeEntries($engagementId: ID, $matterId: ID, $status: PswTimeEntryStatus, $billable: Boolean, $pagination: PaginationInput) {
254
356
  pswListTimeEntries(engagementId: $engagementId, matterId: $matterId, status: $status, billable: $billable, pagination: $pagination) {
255
- items { ${p} } pageInfo { hasMore cursor } totalCount
357
+ items { ${f} } pageInfo { hasMore cursor } totalCount
256
358
  }
257
359
  }`, {
258
360
  engagementId: e.engagementId ?? null,
@@ -263,37 +365,37 @@ function L(e = {}) {
263
365
  })).pswListTimeEntries
264
366
  });
265
367
  }
266
- function R() {
368
+ function J() {
267
369
  let t = n();
268
370
  return e({
269
- mutationFn: (e) => a(`mutation PswLogTime($input: PswCreateTimeEntryInput!) { pswLogTimeEntry(input: $input) { ${p} } }`, { input: e }),
270
- onSuccess: () => s(t, "time", "dashboard")
371
+ mutationFn: (e) => i(`mutation PswLogTime($input: PswCreateTimeEntryInput!) { pswLogTimeEntry(input: $input) { ${f} } }`, { input: e }),
372
+ onSuccess: () => o(t, "time", "dashboard")
271
373
  });
272
374
  }
273
- function z() {
375
+ function Y() {
274
376
  let t = n();
275
377
  return e({
276
- mutationFn: (e) => a(`mutation PswSubmitTime($id: ID!) { pswSubmitTimeEntry(id: $id) { ${p} } }`, { id: e }),
277
- onSuccess: () => s(t, "time")
378
+ mutationFn: (e) => i(`mutation PswSubmitTime($id: ID!) { pswSubmitTimeEntry(id: $id) { ${f} } }`, { id: e }),
379
+ onSuccess: () => o(t, "time")
278
380
  });
279
381
  }
280
- function B() {
382
+ function X() {
281
383
  let t = n();
282
384
  return e({
283
- mutationFn: (e) => a(`mutation PswApproveTime($id: ID!) { pswApproveTimeEntry(id: $id) { ${p} } }`, { id: e }),
284
- onSuccess: () => s(t, "time")
385
+ mutationFn: (e) => i(`mutation PswApproveTime($id: ID!) { pswApproveTimeEntry(id: $id) { ${f} } }`, { id: e }),
386
+ onSuccess: () => o(t, "time")
285
387
  });
286
388
  }
287
- function V(e = {}) {
389
+ function Z(e = {}) {
288
390
  return t({
289
391
  queryKey: [
290
- o,
392
+ a,
291
393
  "invoices",
292
394
  e
293
395
  ],
294
- queryFn: async () => (await a(`query PswInvoices($clientId: ID, $status: PswInvoiceStatus, $pagination: PaginationInput) {
396
+ queryFn: async () => (await i(`query PswInvoices($clientId: ID, $status: PswInvoiceStatus, $pagination: PaginationInput) {
295
397
  pswListInvoices(clientId: $clientId, status: $status, pagination: $pagination) {
296
- items { ${m} } pageInfo { hasMore cursor } totalCount
398
+ items { ${p} } pageInfo { hasMore cursor } totalCount
297
399
  }
298
400
  }`, {
299
401
  clientId: e.clientId ?? null,
@@ -302,30 +404,30 @@ function V(e = {}) {
302
404
  })).pswListInvoices
303
405
  });
304
406
  }
305
- function H() {
407
+ function Q() {
306
408
  let t = n();
307
409
  return e({
308
- mutationFn: (e) => a(`mutation PswCreateInvoice($input: PswCreateInvoiceInput!) { pswCreateInvoice(input: $input) { ${m} } }`, { input: e }),
309
- onSuccess: () => s(t, "invoices", "dashboard")
410
+ mutationFn: (e) => i(`mutation PswCreateInvoice($input: PswCreateInvoiceInput!) { pswCreateInvoice(input: $input) { ${p} } }`, { input: e }),
411
+ onSuccess: () => o(t, "invoices", "dashboard")
310
412
  });
311
413
  }
312
- function U() {
414
+ function ne() {
313
415
  let t = n();
314
416
  return e({
315
- mutationFn: (e) => a(`mutation PswMarkPaid($id: ID!) { pswMarkInvoicePaid(id: $id) { ${m} } }`, { id: e }),
316
- onSuccess: () => s(t, "invoices", "dashboard")
417
+ mutationFn: (e) => i(`mutation PswMarkPaid($id: ID!) { pswMarkInvoicePaid(id: $id) { ${p} } }`, { id: e }),
418
+ onSuccess: () => o(t, "invoices", "dashboard")
317
419
  });
318
420
  }
319
- function W(e = {}) {
421
+ function re(e = {}) {
320
422
  return t({
321
423
  queryKey: [
322
- o,
424
+ a,
323
425
  "compliance",
324
426
  e
325
427
  ],
326
- queryFn: async () => (await a(`query PswCompliance($status: PswComplianceStatus, $pagination: PaginationInput) {
428
+ queryFn: async () => (await i(`query PswCompliance($status: PswComplianceStatus, $pagination: PaginationInput) {
327
429
  pswListComplianceChecks(status: $status, pagination: $pagination) {
328
- items { ${h} } pageInfo { hasMore cursor } totalCount
430
+ items { ${m} } pageInfo { hasMore cursor } totalCount
329
431
  }
330
432
  }`, {
331
433
  status: e.status ?? null,
@@ -333,30 +435,30 @@ function W(e = {}) {
333
435
  })).pswListComplianceChecks
334
436
  });
335
437
  }
336
- function G() {
438
+ function ie() {
337
439
  let t = n();
338
440
  return e({
339
- mutationFn: (e) => a(`mutation PswCreateCompliance($input: PswCreateComplianceCheckInput!) { pswCreateComplianceCheck(input: $input) { ${h} } }`, { input: e }),
340
- onSuccess: () => s(t, "compliance", "dashboard")
441
+ mutationFn: (e) => i(`mutation PswCreateCompliance($input: PswCreateComplianceCheckInput!) { pswCreateComplianceCheck(input: $input) { ${m} } }`, { input: e }),
442
+ onSuccess: () => o(t, "compliance", "dashboard")
341
443
  });
342
444
  }
343
- function K() {
445
+ function ae() {
344
446
  let t = n();
345
447
  return e({
346
- mutationFn: (e) => a(`mutation PswResolveCompliance($id: ID!, $status: PswComplianceStatus!, $details: String) { pswResolveComplianceCheck(id: $id, status: $status, details: $details) { ${h} } }`, e),
347
- onSuccess: () => s(t, "compliance", "dashboard")
448
+ mutationFn: (e) => i(`mutation PswResolveCompliance($id: ID!, $status: PswComplianceStatus!, $details: String) { pswResolveComplianceCheck(id: $id, status: $status, details: $details) { ${m} } }`, e),
449
+ onSuccess: () => o(t, "compliance", "dashboard")
348
450
  });
349
451
  }
350
- function q(e = {}) {
452
+ function oe(e = {}) {
351
453
  return t({
352
454
  queryKey: [
353
- o,
455
+ a,
354
456
  "conflicts",
355
457
  e
356
458
  ],
357
- queryFn: async () => (await a(`query PswConflicts($clientId: ID, $pagination: PaginationInput) {
459
+ queryFn: async () => (await i(`query PswConflicts($clientId: ID, $pagination: PaginationInput) {
358
460
  pswListConflictChecks(clientId: $clientId, pagination: $pagination) {
359
- items { ${g} } pageInfo { hasMore cursor } totalCount
461
+ items { ${h} } pageInfo { hasMore cursor } totalCount
360
462
  }
361
463
  }`, {
362
464
  clientId: e.clientId ?? null,
@@ -364,56 +466,56 @@ function q(e = {}) {
364
466
  })).pswListConflictChecks
365
467
  });
366
468
  }
367
- function J() {
469
+ function $() {
368
470
  let t = n();
369
471
  return e({
370
- mutationFn: (e) => a(`mutation PswCreateConflict($input: PswCreateConflictCheckInput!) { pswCreateConflictCheck(input: $input) { ${g} } }`, { input: e }),
371
- onSuccess: () => s(t, "conflicts", "dashboard")
472
+ mutationFn: (e) => i(`mutation PswCreateConflict($input: PswCreateConflictCheckInput!) { pswCreateConflictCheck(input: $input) { ${h} } }`, { input: e }),
473
+ onSuccess: () => o(t, "conflicts", "dashboard")
372
474
  });
373
475
  }
374
- function Y() {
476
+ function se() {
375
477
  let t = n();
376
478
  return e({
377
- mutationFn: (e) => a(`mutation PswResolveConflict($id: ID!, $status: PswConflictCheckStatus!, $findings: String, $waiverReason: String) {
378
- pswResolveConflictCheck(id: $id, status: $status, findings: $findings, waiverReason: $waiverReason) { ${g} }
479
+ mutationFn: (e) => i(`mutation PswResolveConflict($id: ID!, $status: PswConflictCheckStatus!, $findings: String, $waiverReason: String) {
480
+ pswResolveConflictCheck(id: $id, status: $status, findings: $findings, waiverReason: $waiverReason) { ${h} }
379
481
  }`, e),
380
- onSuccess: () => s(t, "conflicts", "dashboard")
482
+ onSuccess: () => o(t, "conflicts", "dashboard")
381
483
  });
382
484
  }
383
- function X() {
485
+ function ce() {
384
486
  return t({
385
- queryKey: [o, "practiceAreas"],
386
- queryFn: async () => (await a(`query PswPracticeAreas {
487
+ queryKey: [a, "practiceAreas"],
488
+ queryFn: async () => (await i(`query PswPracticeAreas {
387
489
  pswListPracticeAreas(pagination: { limit: 100 }) {
388
- items { ${_} } pageInfo { hasMore cursor } totalCount
490
+ items { ${g} } pageInfo { hasMore cursor } totalCount
389
491
  }
390
492
  }`)).pswListPracticeAreas
391
493
  });
392
494
  }
393
- function Z() {
495
+ function le() {
394
496
  let t = n();
395
497
  return e({
396
- mutationFn: (e) => a(`mutation PswCreatePracticeArea($input: PswCreatePracticeAreaInput!) { pswCreatePracticeArea(input: $input) { ${_} } }`, { input: e }),
397
- onSuccess: () => s(t, "practiceAreas")
498
+ mutationFn: (e) => i(`mutation PswCreatePracticeArea($input: PswCreatePracticeAreaInput!) { pswCreatePracticeArea(input: $input) { ${g} } }`, { input: e }),
499
+ onSuccess: () => o(t, "practiceAreas")
398
500
  });
399
501
  }
400
- function Q() {
502
+ function ue() {
401
503
  let t = n();
402
504
  return e({
403
- mutationFn: (e) => a(`mutation PswUpdatePracticeArea($id: ID!, $input: PswUpdatePracticeAreaInput!) { pswUpdatePracticeArea(id: $id, input: $input) { ${_} } }`, e),
404
- onSuccess: () => s(t, "practiceAreas")
505
+ mutationFn: (e) => i(`mutation PswUpdatePracticeArea($id: ID!, $input: PswUpdatePracticeAreaInput!) { pswUpdatePracticeArea(id: $id, input: $input) { ${g} } }`, e),
506
+ onSuccess: () => o(t, "practiceAreas")
405
507
  });
406
508
  }
407
- function $(e = {}) {
509
+ function de(e = {}) {
408
510
  return t({
409
511
  queryKey: [
410
- o,
512
+ a,
411
513
  "documents",
412
514
  e
413
515
  ],
414
- queryFn: async () => (await a(`query PswDocuments($engagementId: ID, $matterId: ID, $classification: PswDocumentClassification, $status: PswDocumentStatus, $pagination: PaginationInput) {
516
+ queryFn: async () => (await i(`query PswDocuments($engagementId: ID, $matterId: ID, $classification: PswDocumentClassification, $status: PswDocumentStatus, $pagination: PaginationInput) {
415
517
  pswListDocuments(engagementId: $engagementId, matterId: $matterId, classification: $classification, status: $status, pagination: $pagination) {
416
- items { ${v} } pageInfo { hasMore cursor } totalCount
518
+ items { ${_} } pageInfo { hasMore cursor } totalCount
417
519
  }
418
520
  }`, {
419
521
  engagementId: e.engagementId ?? null,
@@ -424,21 +526,21 @@ function $(e = {}) {
424
526
  })).pswListDocuments
425
527
  });
426
528
  }
427
- function te() {
529
+ function fe() {
428
530
  let t = n();
429
531
  return e({
430
- mutationFn: (e) => a(`mutation PswCreateDocument($input: PswCreateDocumentInput!) { pswCreateDocument(input: $input) { ${v} } }`, { input: e }),
431
- onSuccess: () => s(t, "documents")
532
+ mutationFn: (e) => i(`mutation PswCreateDocument($input: PswCreateDocumentInput!) { pswCreateDocument(input: $input) { ${_} } }`, { input: e }),
533
+ onSuccess: () => o(t, "documents")
432
534
  });
433
535
  }
434
- function ne() {
536
+ function pe() {
435
537
  let t = n();
436
538
  return e({
437
- mutationFn: (e) => a(`mutation PswArchiveDocument($id: ID!) { pswArchiveDocument(id: $id) { ${v} } }`, { id: e }),
438
- onSuccess: () => s(t, "documents")
539
+ mutationFn: (e) => i(`mutation PswArchiveDocument($id: ID!) { pswArchiveDocument(id: $id) { ${_} } }`, { id: e }),
540
+ onSuccess: () => o(t, "documents")
439
541
  });
440
542
  }
441
543
  //#endregion
442
- export { B as useApproveTimeEntry, w as useArchiveClient, ne as useArchiveDocument, x as useClient, b as useClients, I as useCloseMatter, N as useCompleteMilestone, W as useComplianceChecks, q as useConflictChecks, S as useCreateClient, G as useCreateComplianceCheck, J as useCreateConflictCheck, A as useCreateDeliverable, te as useCreateDocument, D as useCreateEngagement, H as useCreateInvoice, P as useCreateMatter, M as useCreateMilestone, Z as useCreatePracticeArea, y as useDashboardStats, $ as useDocuments, E as useEngagement, T as useEngagements, V as useInvoices, R as useLogTimeEntry, U as useMarkInvoicePaid, ee as useMatters, X as usePracticeAreas, K as useResolveComplianceCheck, Y as useResolveConflictCheck, z as useSubmitTimeEntry, L as useTimeEntries, j as useTransitionDeliverable, k as useTransitionEngagement, C as useUpdateClient, O as useUpdateEngagement, F as useUpdateMatter, Q as useUpdatePracticeArea };
544
+ export { X as useApproveTimeEntry, P as useArchiveClient, pe as useArchiveDocument, j as useClient, A as useClients, K as useCloseMatter, H as useCompleteMilestone, re as useComplianceChecks, oe as useConflictChecks, M as useCreateClient, ie as useCreateComplianceCheck, $ as useCreateConflictCheck, te as useCreateDeliverable, fe as useCreateDocument, L as useCreateEngagement, Q as useCreateInvoice, W as useCreateMatter, V as useCreateMilestone, le as useCreatePracticeArea, C as useCreateTrustAccount, O as useCreateTrustTransfer, x as useDashboardStats, de as useDocuments, I as useEngagement, F as useEngagements, Z as useInvoices, J as useLogTimeEntry, ne as useMarkInvoicePaid, U as useMatters, ce as usePracticeAreas, k as useReconcileTrustAccount, E as useRecordTrustDeposit, D as useRecordTrustWithdrawal, ae as useResolveComplianceCheck, se as useResolveConflictCheck, Y as useSubmitTimeEntry, q as useTimeEntries, B as useTransitionDeliverable, z as useTransitionEngagement, S as useTrustAccounts, T as useTrustClientBalance, w as useTrustTransactions, N as useUpdateClient, R as useUpdateEngagement, G as useUpdateMatter, ue as useUpdatePracticeArea };
443
545
 
444
546
  //# sourceMappingURL=useProServiceWorldApi.js.map