@burdenoff/microfe-proserviceworld 2026.731.1 → 2026.827.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.
Files changed (26) hide show
  1. package/dist/proserviceworld/ProServiceWorldRoutes.js +1 -1
  2. package/dist/proserviceworld/ProServiceWorldRoutes.js.map +1 -1
  3. package/dist/proserviceworld/hooks/useActorNames.d.ts +16 -0
  4. package/dist/proserviceworld/hooks/useActorNames.d.ts.map +1 -0
  5. package/dist/proserviceworld/hooks/useActorNames.js +18 -0
  6. package/dist/proserviceworld/hooks/useActorNames.js.map +1 -0
  7. package/dist/proserviceworld/hooks/usePageViewAnalytics.js +1 -1
  8. package/dist/proserviceworld/hooks/usePageViewAnalytics.js.map +1 -1
  9. package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts +53 -0
  10. package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts.map +1 -1
  11. package/dist/proserviceworld/hooks/useProServiceWorldApi.js +289 -227
  12. package/dist/proserviceworld/hooks/useProServiceWorldApi.js.map +1 -1
  13. package/dist/proserviceworld/pages/ClientDetailPage.d.ts.map +1 -1
  14. package/dist/proserviceworld/pages/ClientDetailPage.js +268 -144
  15. package/dist/proserviceworld/pages/ClientDetailPage.js.map +1 -1
  16. package/dist/proserviceworld/pages/ClientsPage.d.ts.map +1 -1
  17. package/dist/proserviceworld/pages/ClientsPage.js +244 -163
  18. package/dist/proserviceworld/pages/ClientsPage.js.map +1 -1
  19. package/dist/proserviceworld/pages/EngagementDetailPage.d.ts.map +1 -1
  20. package/dist/proserviceworld/pages/EngagementDetailPage.js +420 -186
  21. package/dist/proserviceworld/pages/EngagementDetailPage.js.map +1 -1
  22. package/dist/proserviceworld/providers/ProServiceWorldProvider.js +1 -1
  23. package/dist/proserviceworld/providers/ProServiceWorldProvider.js.map +1 -1
  24. package/dist/proserviceworld/utils/nav.js +1 -1
  25. package/dist/proserviceworld/utils/nav.js.map +1 -1
  26. package/package.json +4 -4
@@ -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 ee } from "@burdenoff/fe-libs/shared/graphql/fetch";
3
+ import { clearGraphqlFetchResponseCache as i } from "@burdenoff/fe-libs/shared/graphql/fetch";
4
4
  //#region src/proserviceworld/hooks/useProServiceWorldApi.ts
5
- async function i(e, t = {}) {
5
+ async function a(e, t = {}) {
6
6
  let n = await r({
7
7
  gateway: "workspace",
8
8
  query: e,
@@ -11,29 +11,29 @@ async function i(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") && ee(), n.data;
14
+ return e.trimStart().startsWith("mutation") && i(), n.data;
15
15
  }
16
- var a = "proserviceworld";
17
- function o(e, ...t) {
18
- for (let n of t) e.invalidateQueries({ queryKey: [a, n] });
16
+ var o = "proserviceworld";
17
+ function s(e, ...t) {
18
+ for (let n of t) e.invalidateQueries({ queryKey: [o, n] });
19
19
  }
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", te = "id trustAccountId clientId matterId invoiceId amount reason status transferredAt createdAt";
21
- function ne() {
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 = "id engagementId matterId practitionerId role billingRate allocationPct isLead createdAt updatedAt", p = "\n id clientId engagementId practiceAreaId reference title description status priority isPrivileged\n dueDate closedAt leadPractitionerId tags createdAt updatedAt client { id name }", m = "id engagementId matterId practitionerId date minutes billable rate narrative status invoiceId createdAt", h = "id clientId engagementId number status currency subtotal taxAmount total issueDate dueDate paidAt notes createdAt", g = "id type status subjectType subjectId title details reviewerId dueDate resolvedAt createdAt", _ = "id clientId matterId status searchedParties findings waiverReason resolvedAt createdAt", v = "id name code description isActive createdAt", y = "id name description status classification version legalHold retainUntil matterId engagementId tags file { id } createdAt", b = "id name institutionName accountNumberLast4 currency status createdAt", x = "id trustAccountId clientId matterId type amount balanceAfter description reference transferId reconciled reconciledAt createdAt", ee = "id trustAccountId clientId matterId invoiceId amount reason status transferredAt createdAt";
21
+ function te() {
22
22
  return t({
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
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 trustHeldTotal activeTrustAccounts\n }\n }")).pswDashboardStats
25
25
  });
26
26
  }
27
- function re(e = {}) {
27
+ function ne(e = {}) {
28
28
  return t({
29
29
  queryKey: [
30
- a,
30
+ o,
31
31
  "trustAccounts",
32
32
  e
33
33
  ],
34
- queryFn: async () => (await i(`query PswTrustAccounts($status: PswTrustAccountStatus, $pagination: PaginationInput) {
34
+ queryFn: async () => (await a(`query PswTrustAccounts($status: PswTrustAccountStatus, $pagination: PaginationInput) {
35
35
  pswListTrustAccounts(status: $status, pagination: $pagination) {
36
- items { ${v} } pageInfo { hasMore cursor } totalCount
36
+ items { ${b} } pageInfo { hasMore cursor } totalCount
37
37
  }
38
38
  }`, {
39
39
  status: e.status ?? null,
@@ -41,31 +41,31 @@ function re(e = {}) {
41
41
  })).pswListTrustAccounts
42
42
  });
43
43
  }
44
- function ie() {
44
+ function re() {
45
45
  let t = n();
46
46
  return e({
47
- mutationFn: (e) => i(`mutation PswCreateTrustAccount($input: PswCreateTrustAccountInput!) {
48
- pswCreateTrustAccount(input: $input) { ${v} }
47
+ mutationFn: (e) => a(`mutation PswCreateTrustAccount($input: PswCreateTrustAccountInput!) {
48
+ pswCreateTrustAccount(input: $input) { ${b} }
49
49
  }`, { input: e }),
50
- onSuccess: () => o(t, "trustAccounts", "dashboard")
50
+ onSuccess: () => s(t, "trustAccounts", "dashboard")
51
51
  });
52
52
  }
53
- function b(e = {}) {
53
+ function ie(e = {}) {
54
54
  return t({
55
55
  queryKey: [
56
- a,
56
+ o,
57
57
  "trustTransactions",
58
58
  e
59
59
  ],
60
60
  enabled: !!e.trustAccountId,
61
- queryFn: async () => (await i(`query PswTrustTransactions($trustAccountId: ID, $clientId: ID, $matterId: ID, $pagination: PaginationInput) {
61
+ queryFn: async () => (await a(`query PswTrustTransactions($trustAccountId: ID, $clientId: ID, $matterId: ID, $pagination: PaginationInput) {
62
62
  pswListTrustTransactions(
63
63
  trustAccountId: $trustAccountId
64
64
  clientId: $clientId
65
65
  matterId: $matterId
66
66
  pagination: $pagination
67
67
  ) {
68
- items { ${y} } pageInfo { hasMore cursor } totalCount
68
+ items { ${x} } pageInfo { hasMore cursor } totalCount
69
69
  }
70
70
  }`, {
71
71
  trustAccountId: e.trustAccountId ?? null,
@@ -75,67 +75,67 @@ function b(e = {}) {
75
75
  })).pswListTrustTransactions
76
76
  });
77
77
  }
78
- function x(e, n, r) {
78
+ function S(e, n, r) {
79
79
  return t({
80
80
  queryKey: [
81
- a,
81
+ o,
82
82
  "trustClientBalance",
83
83
  e,
84
84
  n,
85
85
  r
86
86
  ],
87
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 }", {
88
+ queryFn: async () => (await a("query PswTrustClientBalance($trustAccountId: ID!, $clientId: ID!, $matterId: ID) {\n pswTrustClientBalance(trustAccountId: $trustAccountId, clientId: $clientId, matterId: $matterId) {\n clientId matterId balance\n }\n }", {
89
89
  trustAccountId: e,
90
90
  clientId: n,
91
91
  matterId: r ?? null
92
92
  })).pswTrustClientBalance
93
93
  });
94
94
  }
95
- function S() {
95
+ function C() {
96
96
  let t = n();
97
97
  return e({
98
- mutationFn: (e) => i(`mutation PswRecordTrustDeposit($input: PswRecordTrustDepositInput!) {
99
- pswRecordTrustDeposit(input: $input) { ${y} }
98
+ mutationFn: (e) => a(`mutation PswRecordTrustDeposit($input: PswRecordTrustDepositInput!) {
99
+ pswRecordTrustDeposit(input: $input) { ${x} }
100
100
  }`, { input: e }),
101
- onSuccess: () => o(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
101
+ onSuccess: () => s(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
102
102
  });
103
103
  }
104
- function C() {
104
+ function w() {
105
105
  let t = n();
106
106
  return e({
107
- mutationFn: (e) => i(`mutation PswRecordTrustWithdrawal($input: PswRecordTrustWithdrawalInput!) {
108
- pswRecordTrustWithdrawal(input: $input) { ${y} }
107
+ mutationFn: (e) => a(`mutation PswRecordTrustWithdrawal($input: PswRecordTrustWithdrawalInput!) {
108
+ pswRecordTrustWithdrawal(input: $input) { ${x} }
109
109
  }`, { input: e }),
110
- onSuccess: () => o(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
110
+ onSuccess: () => s(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
111
111
  });
112
112
  }
113
- function w() {
113
+ function T() {
114
114
  let t = n();
115
115
  return e({
116
- mutationFn: (e) => i(`mutation PswCreateTrustTransfer($input: PswCreateTrustTransferInput!) {
117
- pswCreateTrustTransfer(input: $input) { ${te} }
116
+ mutationFn: (e) => a(`mutation PswCreateTrustTransfer($input: PswCreateTrustTransferInput!) {
117
+ pswCreateTrustTransfer(input: $input) { ${ee} }
118
118
  }`, { input: e }),
119
- onSuccess: () => o(t, "trustTransactions", "trustTransfers", "trustClientBalance", "trustAccounts", "dashboard")
119
+ onSuccess: () => s(t, "trustTransactions", "trustTransfers", "trustClientBalance", "trustAccounts", "dashboard")
120
120
  });
121
121
  }
122
- function T() {
122
+ function E() {
123
123
  let t = n();
124
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")
125
+ mutationFn: (e) => a("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: () => s(t, "trustTransactions", "trustAccounts", "dashboard")
127
127
  });
128
128
  }
129
- function E(e = {}) {
129
+ function D(e = {}) {
130
130
  return t({
131
131
  queryKey: [
132
- a,
132
+ o,
133
133
  "clients",
134
134
  e
135
135
  ],
136
- queryFn: async () => (await i(`query PswClients($status: PswClientStatus, $search: String, $pagination: PaginationInput) {
136
+ queryFn: async () => (await a(`query PswClients($status: PswClientStatus, $search: String, $pagination: PaginationInput) {
137
137
  pswListClients(status: $status, search: $search, pagination: $pagination) {
138
- items { ${s} } pageInfo { hasMore cursor } totalCount
138
+ items { ${c} } pageInfo { hasMore cursor } totalCount
139
139
  }
140
140
  }`, {
141
141
  status: e.status ?? null,
@@ -144,60 +144,60 @@ function E(e = {}) {
144
144
  })).pswListClients
145
145
  });
146
146
  }
147
- function D(e) {
147
+ function O(e) {
148
148
  return t({
149
149
  queryKey: [
150
- a,
150
+ o,
151
151
  "client",
152
152
  e
153
153
  ],
154
154
  enabled: !!e,
155
- queryFn: async () => (await i(`query PswClient($id: ID!) {
155
+ queryFn: async () => (await a(`query PswClient($id: ID!) {
156
156
  pswClient(id: $id) {
157
- ${s}
158
- engagements { ${c} }
159
- matters { ${d} }
157
+ ${c}
158
+ engagements { ${l} }
159
+ matters { ${p} }
160
160
  }
161
161
  }`, { id: e })).pswClient
162
162
  });
163
163
  }
164
- function O() {
164
+ function k() {
165
165
  let t = n();
166
166
  return e({
167
- mutationFn: (e) => i(`mutation PswCreateClient($input: PswCreateClientInput!) { pswCreateClient(input: $input) { ${s} } }`, { input: e }),
168
- onSuccess: () => o(t, "clients", "dashboard")
167
+ mutationFn: (e) => a(`mutation PswCreateClient($input: PswCreateClientInput!) { pswCreateClient(input: $input) { ${c} } }`, { input: e }),
168
+ onSuccess: () => s(t, "clients", "dashboard")
169
169
  });
170
170
  }
171
- function k() {
171
+ function A() {
172
172
  let t = n();
173
173
  return e({
174
- mutationFn: (e) => i(`mutation PswUpdateClient($id: ID!, $input: PswUpdateClientInput!) { pswUpdateClient(id: $id, input: $input) { ${s} } }`, e),
174
+ mutationFn: (e) => a(`mutation PswUpdateClient($id: ID!, $input: PswUpdateClientInput!) { pswUpdateClient(id: $id, input: $input) { ${c} } }`, e),
175
175
  onSuccess: (e, n) => {
176
- o(t, "clients", "dashboard"), t.invalidateQueries({ queryKey: [
177
- a,
176
+ s(t, "clients", "dashboard"), t.invalidateQueries({ queryKey: [
177
+ o,
178
178
  "client",
179
179
  n.id
180
180
  ] });
181
181
  }
182
182
  });
183
183
  }
184
- function A() {
184
+ function j() {
185
185
  let t = n();
186
186
  return e({
187
- mutationFn: (e) => i("mutation PswArchiveClient($id: ID!) { pswArchiveClient(id: $id) }", { id: e }),
188
- onSuccess: () => o(t, "clients", "dashboard")
187
+ mutationFn: (e) => a("mutation PswArchiveClient($id: ID!) { pswArchiveClient(id: $id) }", { id: e }),
188
+ onSuccess: () => s(t, "clients", "dashboard")
189
189
  });
190
190
  }
191
- function j(e = {}) {
191
+ function M(e = {}) {
192
192
  return t({
193
193
  queryKey: [
194
- a,
194
+ o,
195
195
  "engagements",
196
196
  e
197
197
  ],
198
- queryFn: async () => (await i(`query PswEngagements($clientId: ID, $status: PswEngagementStatus, $search: String, $pagination: PaginationInput) {
198
+ queryFn: async () => (await a(`query PswEngagements($clientId: ID, $status: PswEngagementStatus, $search: String, $pagination: PaginationInput) {
199
199
  pswListEngagements(clientId: $clientId, status: $status, search: $search, pagination: $pagination) {
200
- items { ${c} } pageInfo { hasMore cursor } totalCount
200
+ items { ${l} } pageInfo { hasMore cursor } totalCount
201
201
  }
202
202
  }`, {
203
203
  clientId: e.clientId ?? null,
@@ -207,113 +207,175 @@ function j(e = {}) {
207
207
  })).pswListEngagements
208
208
  });
209
209
  }
210
- function M(e) {
210
+ function N(e) {
211
211
  return t({
212
212
  queryKey: [
213
- a,
213
+ o,
214
214
  "engagement",
215
215
  e
216
216
  ],
217
217
  enabled: !!e,
218
- queryFn: async () => (await i(`query PswEngagement($id: ID!) {
218
+ queryFn: async () => (await a(`query PswEngagement($id: ID!) {
219
219
  pswEngagement(id: $id) {
220
- ${c}
221
- deliverables { ${l} }
222
- milestones { ${u} }
220
+ ${l}
221
+ deliverables { ${u} }
222
+ milestones { ${d} }
223
223
  }
224
224
  }`, { id: e })).pswEngagement
225
225
  });
226
226
  }
227
- function N() {
227
+ function P() {
228
228
  let t = n();
229
229
  return e({
230
- mutationFn: (e) => i(`mutation PswCreateEngagement($input: PswCreateEngagementInput!) { pswCreateEngagement(input: $input) { ${c} } }`, { input: e }),
231
- onSuccess: () => o(t, "engagements", "dashboard")
230
+ mutationFn: (e) => a(`mutation PswCreateEngagement($input: PswCreateEngagementInput!) { pswCreateEngagement(input: $input) { ${l} } }`, { input: e }),
231
+ onSuccess: () => s(t, "engagements", "dashboard")
232
232
  });
233
233
  }
234
- function P() {
234
+ function F() {
235
235
  let t = n();
236
236
  return e({
237
- mutationFn: (e) => i(`mutation PswUpdateEngagement($id: ID!, $input: PswUpdateEngagementInput!) { pswUpdateEngagement(id: $id, input: $input) { ${c} } }`, e),
237
+ mutationFn: (e) => a(`mutation PswUpdateEngagement($id: ID!, $input: PswUpdateEngagementInput!) { pswUpdateEngagement(id: $id, input: $input) { ${l} } }`, e),
238
238
  onSuccess: (e, n) => {
239
- o(t, "engagements"), t.invalidateQueries({ queryKey: [
240
- a,
239
+ s(t, "engagements"), t.invalidateQueries({ queryKey: [
240
+ o,
241
241
  "engagement",
242
242
  n.id
243
243
  ] });
244
244
  }
245
245
  });
246
246
  }
247
- function F() {
247
+ function I() {
248
248
  let t = n();
249
249
  return e({
250
- mutationFn: (e) => i(`mutation PswTransitionEngagement($id: ID!, $status: PswEngagementStatus!) { pswTransitionEngagement(id: $id, status: $status) { ${c} } }`, e),
250
+ mutationFn: (e) => a(`mutation PswTransitionEngagement($id: ID!, $status: PswEngagementStatus!) { pswTransitionEngagement(id: $id, status: $status) { ${l} } }`, e),
251
251
  onSuccess: (e, n) => {
252
- o(t, "engagements", "dashboard"), t.invalidateQueries({ queryKey: [
253
- a,
252
+ s(t, "engagements", "dashboard"), t.invalidateQueries({ queryKey: [
253
+ o,
254
254
  "engagement",
255
255
  n.id
256
256
  ] });
257
257
  }
258
258
  });
259
259
  }
260
- function I() {
260
+ function L() {
261
261
  let t = n();
262
262
  return e({
263
- mutationFn: (e) => i(`mutation PswCreateDeliverable($input: PswCreateDeliverableInput!) { pswCreateDeliverable(input: $input) { ${l} } }`, { input: e }),
263
+ mutationFn: (e) => a(`mutation PswCreateDeliverable($input: PswCreateDeliverableInput!) { pswCreateDeliverable(input: $input) { ${u} } }`, { input: e }),
264
264
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
265
- a,
265
+ o,
266
266
  "engagement",
267
267
  n.engagementId
268
268
  ] })
269
269
  });
270
270
  }
271
- function L() {
271
+ function R() {
272
272
  let t = n();
273
273
  return e({
274
- mutationFn: (e) => i(`mutation PswTransitionDeliverable($id: ID!, $status: PswDeliverableStatus!) { pswTransitionDeliverable(id: $id, status: $status) { ${l} } }`, {
274
+ mutationFn: (e) => a(`mutation PswTransitionDeliverable($id: ID!, $status: PswDeliverableStatus!) { pswTransitionDeliverable(id: $id, status: $status) { ${u} } }`, {
275
275
  id: e.id,
276
276
  status: e.status
277
277
  }),
278
278
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
279
- a,
279
+ o,
280
280
  "engagement",
281
281
  n.engagementId
282
282
  ] })
283
283
  });
284
284
  }
285
- function R() {
285
+ function z() {
286
286
  let t = n();
287
287
  return e({
288
- mutationFn: (e) => i(`mutation PswCreateMilestone($input: PswCreateMilestoneInput!) { pswCreateMilestone(input: $input) { ${u} } }`, { input: e }),
288
+ mutationFn: (e) => a(`mutation PswCreateMilestone($input: PswCreateMilestoneInput!) { pswCreateMilestone(input: $input) { ${d} } }`, { input: e }),
289
289
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
290
- a,
290
+ o,
291
291
  "engagement",
292
292
  n.engagementId
293
293
  ] })
294
294
  });
295
295
  }
296
- function z() {
296
+ function B() {
297
297
  let t = n();
298
298
  return e({
299
- mutationFn: (e) => i(`mutation PswCompleteMilestone($id: ID!) { pswCompleteMilestone(id: $id) { ${u} } }`, { id: e.id }),
299
+ mutationFn: (e) => a(`mutation PswCompleteMilestone($id: ID!) { pswCompleteMilestone(id: $id) { ${d} } }`, { id: e.id }),
300
300
  onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
301
- a,
301
+ o,
302
302
  "engagement",
303
303
  n.engagementId
304
304
  ] })
305
305
  });
306
306
  }
307
- function B(e = {}) {
307
+ function V(e = {}) {
308
+ let n = !!(e.engagementId || e.matterId || e.practitionerId);
309
+ return t({
310
+ queryKey: [
311
+ o,
312
+ "teamAssignments",
313
+ e
314
+ ],
315
+ enabled: n,
316
+ queryFn: async () => (await a(`query PswTeamAssignments($engagementId: ID, $matterId: ID, $practitionerId: ID, $pagination: PaginationInput) {
317
+ pswListTeamAssignments(engagementId: $engagementId, matterId: $matterId, practitionerId: $practitionerId, pagination: $pagination) {
318
+ items { ${f} } pageInfo { hasMore cursor } totalCount
319
+ }
320
+ }`, {
321
+ engagementId: e.engagementId ?? null,
322
+ matterId: e.matterId ?? null,
323
+ practitionerId: e.practitionerId ?? null,
324
+ pagination: e.pagination ?? { limit: 100 }
325
+ })).pswListTeamAssignments
326
+ });
327
+ }
328
+ function H(e) {
308
329
  return t({
309
330
  queryKey: [
310
- a,
331
+ o,
332
+ "clientTeamAssignments",
333
+ e.map((e) => `${e.type}:${e.id}`).join(",")
334
+ ],
335
+ enabled: e.length > 0,
336
+ queryFn: async () => {
337
+ let t = e.map((e, t) => `$scope${t}: ID`).concat("$pagination: PaginationInput").join(", "), n = e.map((e, t) => ` a${t}: pswListTeamAssignments(${e.type === "engagement" ? "engagementId" : "matterId"}: $scope${t}, pagination: $pagination) {
338
+ items { ${f} } pageInfo { hasMore cursor } totalCount
339
+ }`).join("\n"), r = { pagination: { limit: 100 } };
340
+ e.forEach((e, t) => {
341
+ r[`scope${t}`] = e.id;
342
+ });
343
+ let i = await a(`query PswClientTeam(${t}) {\n${n}\n}`, r), o = [];
344
+ return e.forEach((e, t) => {
345
+ for (let n of i[`a${t}`]?.items ?? []) o.push({
346
+ ...n,
347
+ scopeType: e.type,
348
+ scopeId: e.id,
349
+ scopeName: e.name
350
+ });
351
+ }), o;
352
+ }
353
+ });
354
+ }
355
+ function U() {
356
+ let t = n();
357
+ return e({
358
+ mutationFn: (e) => a(`mutation PswAddTeamAssignment($input: PswCreateTeamAssignmentInput!) { pswAddTeamAssignment(input: $input) { ${f} } }`, { input: e }),
359
+ onSuccess: () => s(t, "teamAssignments", "clientTeamAssignments")
360
+ });
361
+ }
362
+ function W() {
363
+ let t = n();
364
+ return e({
365
+ mutationFn: (e) => a("mutation PswRemoveTeamAssignment($id: ID!) { pswRemoveTeamAssignment(id: $id) }", { id: e }),
366
+ onSuccess: () => s(t, "teamAssignments", "clientTeamAssignments")
367
+ });
368
+ }
369
+ function G(e = {}) {
370
+ return t({
371
+ queryKey: [
372
+ o,
311
373
  "matters",
312
374
  e
313
375
  ],
314
- queryFn: async () => (await i(`query PswMatters($clientId: ID, $engagementId: ID, $status: PswMatterStatus, $search: String, $pagination: PaginationInput) {
376
+ queryFn: async () => (await a(`query PswMatters($clientId: ID, $engagementId: ID, $status: PswMatterStatus, $search: String, $pagination: PaginationInput) {
315
377
  pswListMatters(clientId: $clientId, engagementId: $engagementId, status: $status, search: $search, pagination: $pagination) {
316
- items { ${d} } pageInfo { hasMore cursor } totalCount
378
+ items { ${p} } pageInfo { hasMore cursor } totalCount
317
379
  }
318
380
  }`, {
319
381
  clientId: e.clientId ?? null,
@@ -324,37 +386,37 @@ function B(e = {}) {
324
386
  })).pswListMatters
325
387
  });
326
388
  }
327
- function V() {
389
+ function K() {
328
390
  let t = n();
329
391
  return e({
330
- mutationFn: (e) => i(`mutation PswCreateMatter($input: PswCreateMatterInput!) { pswCreateMatter(input: $input) { ${d} } }`, { input: e }),
331
- onSuccess: () => o(t, "matters", "dashboard")
392
+ mutationFn: (e) => a(`mutation PswCreateMatter($input: PswCreateMatterInput!) { pswCreateMatter(input: $input) { ${p} } }`, { input: e }),
393
+ onSuccess: () => s(t, "matters", "dashboard")
332
394
  });
333
395
  }
334
- function H() {
396
+ function q() {
335
397
  let t = n();
336
398
  return e({
337
- mutationFn: (e) => i(`mutation PswUpdateMatter($id: ID!, $input: PswUpdateMatterInput!) { pswUpdateMatter(id: $id, input: $input) { ${d} } }`, e),
338
- onSuccess: () => o(t, "matters")
399
+ mutationFn: (e) => a(`mutation PswUpdateMatter($id: ID!, $input: PswUpdateMatterInput!) { pswUpdateMatter(id: $id, input: $input) { ${p} } }`, e),
400
+ onSuccess: () => s(t, "matters")
339
401
  });
340
402
  }
341
- function U() {
403
+ function J() {
342
404
  let t = n();
343
405
  return e({
344
- mutationFn: (e) => i(`mutation PswCloseMatter($id: ID!) { pswCloseMatter(id: $id) { ${d} } }`, { id: e }),
345
- onSuccess: () => o(t, "matters", "dashboard")
406
+ mutationFn: (e) => a(`mutation PswCloseMatter($id: ID!) { pswCloseMatter(id: $id) { ${p} } }`, { id: e }),
407
+ onSuccess: () => s(t, "matters", "dashboard")
346
408
  });
347
409
  }
348
- function W(e = {}) {
410
+ function Y(e = {}) {
349
411
  return t({
350
412
  queryKey: [
351
- a,
413
+ o,
352
414
  "time",
353
415
  e
354
416
  ],
355
- queryFn: async () => (await i(`query PswTimeEntries($engagementId: ID, $matterId: ID, $status: PswTimeEntryStatus, $billable: Boolean, $pagination: PaginationInput) {
417
+ queryFn: async () => (await a(`query PswTimeEntries($engagementId: ID, $matterId: ID, $status: PswTimeEntryStatus, $billable: Boolean, $pagination: PaginationInput) {
356
418
  pswListTimeEntries(engagementId: $engagementId, matterId: $matterId, status: $status, billable: $billable, pagination: $pagination) {
357
- items { ${f} } pageInfo { hasMore cursor } totalCount
419
+ items { ${m} } pageInfo { hasMore cursor } totalCount
358
420
  }
359
421
  }`, {
360
422
  engagementId: e.engagementId ?? null,
@@ -365,37 +427,37 @@ function W(e = {}) {
365
427
  })).pswListTimeEntries
366
428
  });
367
429
  }
368
- function G() {
430
+ function ae() {
369
431
  let t = n();
370
432
  return e({
371
- mutationFn: (e) => i(`mutation PswLogTime($input: PswCreateTimeEntryInput!) { pswLogTimeEntry(input: $input) { ${f} } }`, { input: e }),
372
- onSuccess: () => o(t, "time", "dashboard")
433
+ mutationFn: (e) => a(`mutation PswLogTime($input: PswCreateTimeEntryInput!) { pswLogTimeEntry(input: $input) { ${m} } }`, { input: e }),
434
+ onSuccess: () => s(t, "time", "dashboard")
373
435
  });
374
436
  }
375
- function K() {
437
+ function oe() {
376
438
  let t = n();
377
439
  return e({
378
- mutationFn: (e) => i(`mutation PswSubmitTime($id: ID!) { pswSubmitTimeEntry(id: $id) { ${f} } }`, { id: e }),
379
- onSuccess: () => o(t, "time")
440
+ mutationFn: (e) => a(`mutation PswSubmitTime($id: ID!) { pswSubmitTimeEntry(id: $id) { ${m} } }`, { id: e }),
441
+ onSuccess: () => s(t, "time")
380
442
  });
381
443
  }
382
- function q() {
444
+ function se() {
383
445
  let t = n();
384
446
  return e({
385
- mutationFn: (e) => i(`mutation PswApproveTime($id: ID!) { pswApproveTimeEntry(id: $id) { ${f} } }`, { id: e }),
386
- onSuccess: () => o(t, "time")
447
+ mutationFn: (e) => a(`mutation PswApproveTime($id: ID!) { pswApproveTimeEntry(id: $id) { ${m} } }`, { id: e }),
448
+ onSuccess: () => s(t, "time")
387
449
  });
388
450
  }
389
- function J(e = {}) {
451
+ function ce(e = {}) {
390
452
  return t({
391
453
  queryKey: [
392
- a,
454
+ o,
393
455
  "invoices",
394
456
  e
395
457
  ],
396
- queryFn: async () => (await i(`query PswInvoices($clientId: ID, $status: PswInvoiceStatus, $pagination: PaginationInput) {
458
+ queryFn: async () => (await a(`query PswInvoices($clientId: ID, $status: PswInvoiceStatus, $pagination: PaginationInput) {
397
459
  pswListInvoices(clientId: $clientId, status: $status, pagination: $pagination) {
398
- items { ${p} } pageInfo { hasMore cursor } totalCount
460
+ items { ${h} } pageInfo { hasMore cursor } totalCount
399
461
  }
400
462
  }`, {
401
463
  clientId: e.clientId ?? null,
@@ -404,30 +466,30 @@ function J(e = {}) {
404
466
  })).pswListInvoices
405
467
  });
406
468
  }
407
- function Y() {
469
+ function le() {
408
470
  let t = n();
409
471
  return e({
410
- mutationFn: (e) => i(`mutation PswCreateInvoice($input: PswCreateInvoiceInput!) { pswCreateInvoice(input: $input) { ${p} } }`, { input: e }),
411
- onSuccess: () => o(t, "invoices", "dashboard")
472
+ mutationFn: (e) => a(`mutation PswCreateInvoice($input: PswCreateInvoiceInput!) { pswCreateInvoice(input: $input) { ${h} } }`, { input: e }),
473
+ onSuccess: () => s(t, "invoices", "dashboard")
412
474
  });
413
475
  }
414
- function ae() {
476
+ function ue() {
415
477
  let t = n();
416
478
  return e({
417
- mutationFn: (e) => i(`mutation PswMarkPaid($id: ID!) { pswMarkInvoicePaid(id: $id) { ${p} } }`, { id: e }),
418
- onSuccess: () => o(t, "invoices", "dashboard")
479
+ mutationFn: (e) => a(`mutation PswMarkPaid($id: ID!) { pswMarkInvoicePaid(id: $id) { ${h} } }`, { id: e }),
480
+ onSuccess: () => s(t, "invoices", "dashboard")
419
481
  });
420
482
  }
421
- function oe(e = {}) {
483
+ function de(e = {}) {
422
484
  return t({
423
485
  queryKey: [
424
- a,
486
+ o,
425
487
  "compliance",
426
488
  e
427
489
  ],
428
- queryFn: async () => (await i(`query PswCompliance($status: PswComplianceStatus, $pagination: PaginationInput) {
490
+ queryFn: async () => (await a(`query PswCompliance($status: PswComplianceStatus, $pagination: PaginationInput) {
429
491
  pswListComplianceChecks(status: $status, pagination: $pagination) {
430
- items { ${m} } pageInfo { hasMore cursor } totalCount
492
+ items { ${g} } pageInfo { hasMore cursor } totalCount
431
493
  }
432
494
  }`, {
433
495
  status: e.status ?? null,
@@ -435,30 +497,30 @@ function oe(e = {}) {
435
497
  })).pswListComplianceChecks
436
498
  });
437
499
  }
438
- function se() {
500
+ function fe() {
439
501
  let t = n();
440
502
  return e({
441
- mutationFn: (e) => i(`mutation PswCreateCompliance($input: PswCreateComplianceCheckInput!) { pswCreateComplianceCheck(input: $input) { ${m} } }`, { input: e }),
442
- onSuccess: () => o(t, "compliance", "dashboard")
503
+ mutationFn: (e) => a(`mutation PswCreateCompliance($input: PswCreateComplianceCheckInput!) { pswCreateComplianceCheck(input: $input) { ${g} } }`, { input: e }),
504
+ onSuccess: () => s(t, "compliance", "dashboard")
443
505
  });
444
506
  }
445
- function ce() {
507
+ function pe() {
446
508
  let t = n();
447
509
  return e({
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")
510
+ mutationFn: (e) => a(`mutation PswResolveCompliance($id: ID!, $status: PswComplianceStatus!, $details: String) { pswResolveComplianceCheck(id: $id, status: $status, details: $details) { ${g} } }`, e),
511
+ onSuccess: () => s(t, "compliance", "dashboard")
450
512
  });
451
513
  }
452
- function le(e = {}) {
514
+ function me(e = {}) {
453
515
  return t({
454
516
  queryKey: [
455
- a,
517
+ o,
456
518
  "conflicts",
457
519
  e
458
520
  ],
459
- queryFn: async () => (await i(`query PswConflicts($clientId: ID, $pagination: PaginationInput) {
521
+ queryFn: async () => (await a(`query PswConflicts($clientId: ID, $pagination: PaginationInput) {
460
522
  pswListConflictChecks(clientId: $clientId, pagination: $pagination) {
461
- items { ${h} } pageInfo { hasMore cursor } totalCount
523
+ items { ${_} } pageInfo { hasMore cursor } totalCount
462
524
  }
463
525
  }`, {
464
526
  clientId: e.clientId ?? null,
@@ -466,56 +528,56 @@ function le(e = {}) {
466
528
  })).pswListConflictChecks
467
529
  });
468
530
  }
469
- function ue() {
531
+ function he() {
470
532
  let t = n();
471
533
  return e({
472
- mutationFn: (e) => i(`mutation PswCreateConflict($input: PswCreateConflictCheckInput!) { pswCreateConflictCheck(input: $input) { ${h} } }`, { input: e }),
473
- onSuccess: () => o(t, "conflicts", "dashboard")
534
+ mutationFn: (e) => a(`mutation PswCreateConflict($input: PswCreateConflictCheckInput!) { pswCreateConflictCheck(input: $input) { ${_} } }`, { input: e }),
535
+ onSuccess: () => s(t, "conflicts", "dashboard")
474
536
  });
475
537
  }
476
- function de() {
538
+ function ge() {
477
539
  let t = n();
478
540
  return e({
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} }
541
+ mutationFn: (e) => a(`mutation PswResolveConflict($id: ID!, $status: PswConflictCheckStatus!, $findings: String, $waiverReason: String) {
542
+ pswResolveConflictCheck(id: $id, status: $status, findings: $findings, waiverReason: $waiverReason) { ${_} }
481
543
  }`, e),
482
- onSuccess: () => o(t, "conflicts", "dashboard")
544
+ onSuccess: () => s(t, "conflicts", "dashboard")
483
545
  });
484
546
  }
485
- function fe() {
547
+ function _e() {
486
548
  return t({
487
- queryKey: [a, "practiceAreas"],
488
- queryFn: async () => (await i(`query PswPracticeAreas {
549
+ queryKey: [o, "practiceAreas"],
550
+ queryFn: async () => (await a(`query PswPracticeAreas {
489
551
  pswListPracticeAreas(pagination: { limit: 100 }) {
490
- items { ${g} } pageInfo { hasMore cursor } totalCount
552
+ items { ${v} } pageInfo { hasMore cursor } totalCount
491
553
  }
492
554
  }`)).pswListPracticeAreas
493
555
  });
494
556
  }
495
- function pe() {
557
+ function ve() {
496
558
  let t = n();
497
559
  return e({
498
- mutationFn: (e) => i(`mutation PswCreatePracticeArea($input: PswCreatePracticeAreaInput!) { pswCreatePracticeArea(input: $input) { ${g} } }`, { input: e }),
499
- onSuccess: () => o(t, "practiceAreas")
560
+ mutationFn: (e) => a(`mutation PswCreatePracticeArea($input: PswCreatePracticeAreaInput!) { pswCreatePracticeArea(input: $input) { ${v} } }`, { input: e }),
561
+ onSuccess: () => s(t, "practiceAreas")
500
562
  });
501
563
  }
502
- function me() {
564
+ function ye() {
503
565
  let t = n();
504
566
  return e({
505
- mutationFn: (e) => i(`mutation PswUpdatePracticeArea($id: ID!, $input: PswUpdatePracticeAreaInput!) { pswUpdatePracticeArea(id: $id, input: $input) { ${g} } }`, e),
506
- onSuccess: () => o(t, "practiceAreas")
567
+ mutationFn: (e) => a(`mutation PswUpdatePracticeArea($id: ID!, $input: PswUpdatePracticeAreaInput!) { pswUpdatePracticeArea(id: $id, input: $input) { ${v} } }`, e),
568
+ onSuccess: () => s(t, "practiceAreas")
507
569
  });
508
570
  }
509
- function he(e = {}) {
571
+ function be(e = {}) {
510
572
  return t({
511
573
  queryKey: [
512
- a,
574
+ o,
513
575
  "documents",
514
576
  e
515
577
  ],
516
- queryFn: async () => (await i(`query PswDocuments($engagementId: ID, $matterId: ID, $classification: PswDocumentClassification, $status: PswDocumentStatus, $pagination: PaginationInput) {
578
+ queryFn: async () => (await a(`query PswDocuments($engagementId: ID, $matterId: ID, $classification: PswDocumentClassification, $status: PswDocumentStatus, $pagination: PaginationInput) {
517
579
  pswListDocuments(engagementId: $engagementId, matterId: $matterId, classification: $classification, status: $status, pagination: $pagination) {
518
- items { ${_} } pageInfo { hasMore cursor } totalCount
580
+ items { ${y} } pageInfo { hasMore cursor } totalCount
519
581
  }
520
582
  }`, {
521
583
  engagementId: e.engagementId ?? null,
@@ -526,29 +588,29 @@ function he(e = {}) {
526
588
  })).pswListDocuments
527
589
  });
528
590
  }
529
- function ge() {
591
+ function xe() {
530
592
  let t = n();
531
593
  return e({
532
- mutationFn: (e) => i(`mutation PswCreateDocument($input: PswCreateDocumentInput!) { pswCreateDocument(input: $input) { ${_} } }`, { input: e }),
533
- onSuccess: () => o(t, "documents")
594
+ mutationFn: (e) => a(`mutation PswCreateDocument($input: PswCreateDocumentInput!) { pswCreateDocument(input: $input) { ${y} } }`, { input: e }),
595
+ onSuccess: () => s(t, "documents")
534
596
  });
535
597
  }
536
- function _e() {
598
+ function Se() {
537
599
  let t = n();
538
600
  return e({
539
- mutationFn: (e) => i(`mutation PswArchiveDocument($id: ID!) { pswArchiveDocument(id: $id) { ${_} } }`, { id: e }),
540
- onSuccess: () => o(t, "documents")
601
+ mutationFn: (e) => a(`mutation PswArchiveDocument($id: ID!) { pswArchiveDocument(id: $id) { ${y} } }`, { id: e }),
602
+ onSuccess: () => s(t, "documents")
541
603
  });
542
604
  }
543
- var X = "id signatureRequestId actorId name email order status viewedAt signedAt declinedAt declineReason signatureType typedName signatureImage signedIp createdAt", Z = `id documentId document { id name } status message documentVersion expiresAt sentAt completedAt createdAt signers { ${X} }`, ve = "id signatureRequestId signerId eventType actorId actorLabel ipAddress documentVersion createdAt";
544
- function ye(e = {}) {
605
+ var X = "id signatureRequestId actorId name email order status viewedAt signedAt declinedAt declineReason signatureType typedName signatureImage signedIp createdAt", Z = `id documentId document { id name } status message documentVersion expiresAt sentAt completedAt createdAt signers { ${X} }`, Ce = "id signatureRequestId signerId eventType actorId actorLabel ipAddress documentVersion createdAt";
606
+ function we(e = {}) {
545
607
  return t({
546
608
  queryKey: [
547
- a,
609
+ o,
548
610
  "signatureRequests",
549
611
  e
550
612
  ],
551
- queryFn: async () => (await i(`query PswSignatureRequests($documentId: ID, $status: PswSignatureRequestStatus, $pagination: PaginationInput) {
613
+ queryFn: async () => (await a(`query PswSignatureRequests($documentId: ID, $status: PswSignatureRequestStatus, $pagination: PaginationInput) {
552
614
  pswListSignatureRequests(documentId: $documentId, status: $status, pagination: $pagination) {
553
615
  items { ${Z} } pageInfo { hasMore cursor } totalCount
554
616
  }
@@ -559,17 +621,17 @@ function ye(e = {}) {
559
621
  })).pswListSignatureRequests
560
622
  });
561
623
  }
562
- function be(e) {
624
+ function Te(e) {
563
625
  return t({
564
626
  queryKey: [
565
- a,
627
+ o,
566
628
  "signatureAuditEvents",
567
629
  e
568
630
  ],
569
631
  enabled: !!e,
570
- queryFn: async () => (await i(`query PswSignatureAuditEvents($signatureRequestId: ID!, $pagination: PaginationInput) {
632
+ queryFn: async () => (await a(`query PswSignatureAuditEvents($signatureRequestId: ID!, $pagination: PaginationInput) {
571
633
  pswListSignatureAuditEvents(signatureRequestId: $signatureRequestId, pagination: $pagination) {
572
- items { ${ve} } pageInfo { hasMore cursor } totalCount
634
+ items { ${Ce} } pageInfo { hasMore cursor } totalCount
573
635
  }
574
636
  }`, {
575
637
  signatureRequestId: e,
@@ -577,75 +639,75 @@ function be(e) {
577
639
  })).pswListSignatureAuditEvents
578
640
  });
579
641
  }
580
- function xe() {
642
+ function Ee() {
581
643
  let t = n();
582
644
  return e({
583
- mutationFn: (e) => i(`mutation PswCreateSignatureRequest($input: PswCreateSignatureRequestInput!) {
645
+ mutationFn: (e) => a(`mutation PswCreateSignatureRequest($input: PswCreateSignatureRequestInput!) {
584
646
  pswCreateSignatureRequest(input: $input) { ${Z} }
585
647
  }`, { input: e }),
586
- onSuccess: () => o(t, "signatureRequests", "documents")
648
+ onSuccess: () => s(t, "signatureRequests", "documents")
587
649
  });
588
650
  }
589
- function Se() {
651
+ function De() {
590
652
  let t = n();
591
653
  return e({
592
- mutationFn: (e) => i(`mutation PswSendSignatureRequest($id: ID!) { pswSendSignatureRequest(id: $id) { ${Z} } }`, { id: e }),
593
- onSuccess: () => o(t, "signatureRequests", "documents")
654
+ mutationFn: (e) => a(`mutation PswSendSignatureRequest($id: ID!) { pswSendSignatureRequest(id: $id) { ${Z} } }`, { id: e }),
655
+ onSuccess: () => s(t, "signatureRequests", "documents")
594
656
  });
595
657
  }
596
- function Ce() {
658
+ function Oe() {
597
659
  let t = n();
598
660
  return e({
599
- mutationFn: (e) => i(`mutation PswCancelSignatureRequest($id: ID!) { pswCancelSignatureRequest(id: $id) { ${Z} } }`, { id: e }),
600
- onSuccess: () => o(t, "signatureRequests", "documents")
661
+ mutationFn: (e) => a(`mutation PswCancelSignatureRequest($id: ID!) { pswCancelSignatureRequest(id: $id) { ${Z} } }`, { id: e }),
662
+ onSuccess: () => s(t, "signatureRequests", "documents")
601
663
  });
602
664
  }
603
- function we() {
665
+ function Q() {
604
666
  return t({
605
- queryKey: [a, "myPendingSignatures"],
606
- queryFn: async () => (await i(`query PswMyPendingSignatureRequests($pagination: PaginationInput) {
667
+ queryKey: [o, "myPendingSignatures"],
668
+ queryFn: async () => (await a(`query PswMyPendingSignatureRequests($pagination: PaginationInput) {
607
669
  pswMyPendingSignatureRequests(pagination: $pagination) {
608
670
  items { ${X} signatureRequest { ${Z} } } pageInfo { hasMore cursor } totalCount
609
671
  }
610
672
  }`, { pagination: { limit: 100 } })).pswMyPendingSignatureRequests
611
673
  });
612
674
  }
613
- function Te() {
675
+ function ke() {
614
676
  let t = n();
615
677
  return e({
616
- mutationFn: (e) => i(`mutation PswViewSignatureRequest($signerId: ID!) { pswViewSignatureRequest(signerId: $signerId) { ${X} } }`, { signerId: e }),
617
- onSuccess: () => o(t, "myPendingSignatures")
678
+ mutationFn: (e) => a(`mutation PswViewSignatureRequest($signerId: ID!) { pswViewSignatureRequest(signerId: $signerId) { ${X} } }`, { signerId: e }),
679
+ onSuccess: () => s(t, "myPendingSignatures")
618
680
  });
619
681
  }
620
- function Ee() {
682
+ function Ae() {
621
683
  let t = n();
622
684
  return e({
623
- mutationFn: (e) => i(`mutation PswSignDocument($signerId: ID!, $input: PswSignDocumentInput!) {
685
+ mutationFn: (e) => a(`mutation PswSignDocument($signerId: ID!, $input: PswSignDocumentInput!) {
624
686
  pswSignDocument(signerId: $signerId, input: $input) { ${X} }
625
687
  }`, e),
626
- onSuccess: () => o(t, "myPendingSignatures", "signatureRequests", "documents")
688
+ onSuccess: () => s(t, "myPendingSignatures", "signatureRequests", "documents")
627
689
  });
628
690
  }
629
- function De() {
691
+ function je() {
630
692
  let t = n();
631
693
  return e({
632
- mutationFn: (e) => i(`mutation PswDeclineSignatureRequest($signerId: ID!, $reason: String) {
694
+ mutationFn: (e) => a(`mutation PswDeclineSignatureRequest($signerId: ID!, $reason: String) {
633
695
  pswDeclineSignatureRequest(signerId: $signerId, reason: $reason) { ${X} }
634
696
  }`, e),
635
- onSuccess: () => o(t, "myPendingSignatures", "signatureRequests", "documents")
697
+ onSuccess: () => s(t, "myPendingSignatures", "signatureRequests", "documents")
636
698
  });
637
699
  }
638
- var Q = "id clientId actorId name email status invitedBy invitedAt revokedAt createdAt";
639
- function $(e = {}) {
700
+ var $ = "id clientId actorId name email status invitedBy invitedAt revokedAt createdAt";
701
+ function Me(e = {}) {
640
702
  return t({
641
703
  queryKey: [
642
- a,
704
+ o,
643
705
  "clientPortalUsers",
644
706
  e
645
707
  ],
646
- queryFn: async () => (await i(`query PswClientPortalUsers($clientId: ID, $pagination: PaginationInput) {
708
+ queryFn: async () => (await a(`query PswClientPortalUsers($clientId: ID, $pagination: PaginationInput) {
647
709
  pswListClientPortalUsers(clientId: $clientId, pagination: $pagination) {
648
- items { ${Q} } pageInfo { hasMore cursor } totalCount
710
+ items { ${$} } pageInfo { hasMore cursor } totalCount
649
711
  }
650
712
  }`, {
651
713
  clientId: e.clientId ?? null,
@@ -653,68 +715,68 @@ function $(e = {}) {
653
715
  })).pswListClientPortalUsers
654
716
  });
655
717
  }
656
- function Oe() {
718
+ function Ne() {
657
719
  let t = n();
658
720
  return e({
659
- mutationFn: (e) => i(`mutation PswInviteClientPortalUser($input: PswInviteClientPortalUserInput!) {
660
- pswInviteClientPortalUser(input: $input) { ${Q} }
721
+ mutationFn: (e) => a(`mutation PswInviteClientPortalUser($input: PswInviteClientPortalUserInput!) {
722
+ pswInviteClientPortalUser(input: $input) { ${$} }
661
723
  }`, { input: e }),
662
- onSuccess: () => o(t, "clientPortalUsers")
724
+ onSuccess: () => s(t, "clientPortalUsers")
663
725
  });
664
726
  }
665
- function ke() {
727
+ function Pe() {
666
728
  let t = n();
667
729
  return e({
668
- mutationFn: (e) => i(`mutation PswRevokeClientPortalUser($id: ID!) { pswRevokeClientPortalUser(id: $id) { ${Q} } }`, { id: e }),
669
- onSuccess: () => o(t, "clientPortalUsers")
730
+ mutationFn: (e) => a(`mutation PswRevokeClientPortalUser($id: ID!) { pswRevokeClientPortalUser(id: $id) { ${$} } }`, { id: e }),
731
+ onSuccess: () => s(t, "clientPortalUsers")
670
732
  });
671
733
  }
672
- function Ae() {
734
+ function Fe() {
673
735
  return t({
674
- queryKey: [a, "myClientPortalClients"],
675
- queryFn: async () => (await i("query PswMyClientPortalClients { pswMyClientPortalClients { id name } }")).pswMyClientPortalClients
736
+ queryKey: [o, "myClientPortalClients"],
737
+ queryFn: async () => (await a("query PswMyClientPortalClients { pswMyClientPortalClients { id name } }")).pswMyClientPortalClients
676
738
  });
677
739
  }
678
- function je(e) {
740
+ function Ie(e) {
679
741
  return t({
680
742
  queryKey: [
681
- a,
743
+ o,
682
744
  "myMatters",
683
745
  e
684
746
  ],
685
- queryFn: async () => (await i(`query PswMyMatters($pagination: PaginationInput) {
686
- pswMyMatters(pagination: $pagination) { items { ${d} } pageInfo { hasMore cursor } totalCount }
747
+ queryFn: async () => (await a(`query PswMyMatters($pagination: PaginationInput) {
748
+ pswMyMatters(pagination: $pagination) { items { ${p} } pageInfo { hasMore cursor } totalCount }
687
749
  }`, { pagination: e ?? { limit: 100 } })).pswMyMatters
688
750
  });
689
751
  }
690
- function Me(e = {}) {
752
+ function Le(e = {}) {
691
753
  return t({
692
754
  queryKey: [
693
- a,
755
+ o,
694
756
  "myInvoices",
695
757
  e
696
758
  ],
697
- queryFn: async () => (await i(`query PswMyInvoices($status: PswInvoiceStatus, $pagination: PaginationInput) {
698
- pswMyInvoices(status: $status, pagination: $pagination) { items { ${p} } pageInfo { hasMore cursor } totalCount }
759
+ queryFn: async () => (await a(`query PswMyInvoices($status: PswInvoiceStatus, $pagination: PaginationInput) {
760
+ pswMyInvoices(status: $status, pagination: $pagination) { items { ${h} } pageInfo { hasMore cursor } totalCount }
699
761
  }`, {
700
762
  status: e.status ?? null,
701
763
  pagination: e.pagination ?? { limit: 100 }
702
764
  })).pswMyInvoices
703
765
  });
704
766
  }
705
- function Ne(e) {
767
+ function Re(e) {
706
768
  return t({
707
769
  queryKey: [
708
- a,
770
+ o,
709
771
  "myDocuments",
710
772
  e
711
773
  ],
712
- queryFn: async () => (await i(`query PswMyDocuments($pagination: PaginationInput) {
713
- pswMyDocuments(pagination: $pagination) { items { ${_} } pageInfo { hasMore cursor } totalCount }
774
+ queryFn: async () => (await a(`query PswMyDocuments($pagination: PaginationInput) {
775
+ pswMyDocuments(pagination: $pagination) { items { ${y} } pageInfo { hasMore cursor } totalCount }
714
776
  }`, { pagination: e ?? { limit: 100 } })).pswMyDocuments
715
777
  });
716
778
  }
717
779
  //#endregion
718
- export { q as useApproveTimeEntry, A as useArchiveClient, _e as useArchiveDocument, Ce as useCancelSignatureRequest, D as useClient, $ as useClientPortalUsers, E as useClients, U as useCloseMatter, z as useCompleteMilestone, oe as useComplianceChecks, le as useConflictChecks, O as useCreateClient, se as useCreateComplianceCheck, ue as useCreateConflictCheck, I as useCreateDeliverable, ge as useCreateDocument, N as useCreateEngagement, Y as useCreateInvoice, V as useCreateMatter, R as useCreateMilestone, pe as useCreatePracticeArea, xe as useCreateSignatureRequest, ie as useCreateTrustAccount, w as useCreateTrustTransfer, ne as useDashboardStats, De as useDeclineSignatureRequest, he as useDocuments, M as useEngagement, j as useEngagements, Oe as useInviteClientPortalUser, J as useInvoices, G as useLogTimeEntry, ae as useMarkInvoicePaid, B as useMatters, Ae as useMyClientPortalClients, Ne as useMyDocuments, Me as useMyInvoices, je as useMyMatters, we as useMyPendingSignatureRequests, fe as usePracticeAreas, T as useReconcileTrustAccount, S as useRecordTrustDeposit, C as useRecordTrustWithdrawal, ce as useResolveComplianceCheck, de as useResolveConflictCheck, ke as useRevokeClientPortalUser, Se as useSendSignatureRequest, Ee as useSignDocument, be as useSignatureAuditEvents, ye as useSignatureRequests, K as useSubmitTimeEntry, W as useTimeEntries, L as useTransitionDeliverable, F as useTransitionEngagement, re as useTrustAccounts, x as useTrustClientBalance, b as useTrustTransactions, k as useUpdateClient, P as useUpdateEngagement, H as useUpdateMatter, me as useUpdatePracticeArea, Te as useViewSignatureRequest };
780
+ export { U as useAddTeamAssignment, se as useApproveTimeEntry, j as useArchiveClient, Se as useArchiveDocument, Oe as useCancelSignatureRequest, O as useClient, Me as useClientPortalUsers, H as useClientTeamAssignments, D as useClients, J as useCloseMatter, B as useCompleteMilestone, de as useComplianceChecks, me as useConflictChecks, k as useCreateClient, fe as useCreateComplianceCheck, he as useCreateConflictCheck, L as useCreateDeliverable, xe as useCreateDocument, P as useCreateEngagement, le as useCreateInvoice, K as useCreateMatter, z as useCreateMilestone, ve as useCreatePracticeArea, Ee as useCreateSignatureRequest, re as useCreateTrustAccount, T as useCreateTrustTransfer, te as useDashboardStats, je as useDeclineSignatureRequest, be as useDocuments, N as useEngagement, M as useEngagements, Ne as useInviteClientPortalUser, ce as useInvoices, ae as useLogTimeEntry, ue as useMarkInvoicePaid, G as useMatters, Fe as useMyClientPortalClients, Re as useMyDocuments, Le as useMyInvoices, Ie as useMyMatters, Q as useMyPendingSignatureRequests, _e as usePracticeAreas, E as useReconcileTrustAccount, C as useRecordTrustDeposit, w as useRecordTrustWithdrawal, W as useRemoveTeamAssignment, pe as useResolveComplianceCheck, ge as useResolveConflictCheck, Pe as useRevokeClientPortalUser, De as useSendSignatureRequest, Ae as useSignDocument, Te as useSignatureAuditEvents, we as useSignatureRequests, oe as useSubmitTimeEntry, V as useTeamAssignments, Y as useTimeEntries, R as useTransitionDeliverable, I as useTransitionEngagement, ne as useTrustAccounts, S as useTrustClientBalance, ie as useTrustTransactions, A as useUpdateClient, F as useUpdateEngagement, q as useUpdateMatter, ye as useUpdatePracticeArea, ke as useViewSignatureRequest };
719
781
 
720
782
  //# sourceMappingURL=useProServiceWorldApi.js.map