@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.
- package/dist/proserviceworld/ProServiceWorldRoutes.js +1 -1
- package/dist/proserviceworld/ProServiceWorldRoutes.js.map +1 -1
- package/dist/proserviceworld/hooks/useActorNames.d.ts +16 -0
- package/dist/proserviceworld/hooks/useActorNames.d.ts.map +1 -0
- package/dist/proserviceworld/hooks/useActorNames.js +18 -0
- package/dist/proserviceworld/hooks/useActorNames.js.map +1 -0
- package/dist/proserviceworld/hooks/usePageViewAnalytics.js +1 -1
- package/dist/proserviceworld/hooks/usePageViewAnalytics.js.map +1 -1
- package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts +53 -0
- package/dist/proserviceworld/hooks/useProServiceWorldApi.d.ts.map +1 -1
- package/dist/proserviceworld/hooks/useProServiceWorldApi.js +289 -227
- package/dist/proserviceworld/hooks/useProServiceWorldApi.js.map +1 -1
- package/dist/proserviceworld/pages/ClientDetailPage.d.ts.map +1 -1
- package/dist/proserviceworld/pages/ClientDetailPage.js +268 -144
- package/dist/proserviceworld/pages/ClientDetailPage.js.map +1 -1
- package/dist/proserviceworld/pages/ClientsPage.d.ts.map +1 -1
- package/dist/proserviceworld/pages/ClientsPage.js +244 -163
- package/dist/proserviceworld/pages/ClientsPage.js.map +1 -1
- package/dist/proserviceworld/pages/EngagementDetailPage.d.ts.map +1 -1
- package/dist/proserviceworld/pages/EngagementDetailPage.js +420 -186
- package/dist/proserviceworld/pages/EngagementDetailPage.js.map +1 -1
- package/dist/proserviceworld/providers/ProServiceWorldProvider.js +1 -1
- package/dist/proserviceworld/providers/ProServiceWorldProvider.js.map +1 -1
- package/dist/proserviceworld/utils/nav.js +1 -1
- package/dist/proserviceworld/utils/nav.js.map +1 -1
- 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
|
|
3
|
+
import { clearGraphqlFetchResponseCache as i } from "@burdenoff/fe-libs/shared/graphql/fetch";
|
|
4
4
|
//#region src/proserviceworld/hooks/useProServiceWorldApi.ts
|
|
5
|
-
async function
|
|
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") &&
|
|
14
|
+
return e.trimStart().startsWith("mutation") && i(), n.data;
|
|
15
15
|
}
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
for (let n of t) e.invalidateQueries({ queryKey: [
|
|
16
|
+
var o = "proserviceworld";
|
|
17
|
+
function s(e, ...t) {
|
|
18
|
+
for (let n of t) e.invalidateQueries({ queryKey: [o, n] });
|
|
19
19
|
}
|
|
20
|
-
var
|
|
21
|
-
function
|
|
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: [
|
|
24
|
-
queryFn: async () => (await
|
|
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
|
|
27
|
+
function ne(e = {}) {
|
|
28
28
|
return t({
|
|
29
29
|
queryKey: [
|
|
30
|
-
|
|
30
|
+
o,
|
|
31
31
|
"trustAccounts",
|
|
32
32
|
e
|
|
33
33
|
],
|
|
34
|
-
queryFn: async () => (await
|
|
34
|
+
queryFn: async () => (await a(`query PswTrustAccounts($status: PswTrustAccountStatus, $pagination: PaginationInput) {
|
|
35
35
|
pswListTrustAccounts(status: $status, pagination: $pagination) {
|
|
36
|
-
items { ${
|
|
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
|
|
44
|
+
function re() {
|
|
45
45
|
let t = n();
|
|
46
46
|
return e({
|
|
47
|
-
mutationFn: (e) =>
|
|
48
|
-
pswCreateTrustAccount(input: $input) { ${
|
|
47
|
+
mutationFn: (e) => a(`mutation PswCreateTrustAccount($input: PswCreateTrustAccountInput!) {
|
|
48
|
+
pswCreateTrustAccount(input: $input) { ${b} }
|
|
49
49
|
}`, { input: e }),
|
|
50
|
-
onSuccess: () =>
|
|
50
|
+
onSuccess: () => s(t, "trustAccounts", "dashboard")
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ie(e = {}) {
|
|
54
54
|
return t({
|
|
55
55
|
queryKey: [
|
|
56
|
-
|
|
56
|
+
o,
|
|
57
57
|
"trustTransactions",
|
|
58
58
|
e
|
|
59
59
|
],
|
|
60
60
|
enabled: !!e.trustAccountId,
|
|
61
|
-
queryFn: async () => (await
|
|
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 { ${
|
|
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
|
|
78
|
+
function S(e, n, r) {
|
|
79
79
|
return t({
|
|
80
80
|
queryKey: [
|
|
81
|
-
|
|
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
|
|
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
|
|
95
|
+
function C() {
|
|
96
96
|
let t = n();
|
|
97
97
|
return e({
|
|
98
|
-
mutationFn: (e) =>
|
|
99
|
-
pswRecordTrustDeposit(input: $input) { ${
|
|
98
|
+
mutationFn: (e) => a(`mutation PswRecordTrustDeposit($input: PswRecordTrustDepositInput!) {
|
|
99
|
+
pswRecordTrustDeposit(input: $input) { ${x} }
|
|
100
100
|
}`, { input: e }),
|
|
101
|
-
onSuccess: () =>
|
|
101
|
+
onSuccess: () => s(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function w() {
|
|
105
105
|
let t = n();
|
|
106
106
|
return e({
|
|
107
|
-
mutationFn: (e) =>
|
|
108
|
-
pswRecordTrustWithdrawal(input: $input) { ${
|
|
107
|
+
mutationFn: (e) => a(`mutation PswRecordTrustWithdrawal($input: PswRecordTrustWithdrawalInput!) {
|
|
108
|
+
pswRecordTrustWithdrawal(input: $input) { ${x} }
|
|
109
109
|
}`, { input: e }),
|
|
110
|
-
onSuccess: () =>
|
|
110
|
+
onSuccess: () => s(t, "trustTransactions", "trustClientBalance", "trustAccounts", "dashboard")
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function T() {
|
|
114
114
|
let t = n();
|
|
115
115
|
return e({
|
|
116
|
-
mutationFn: (e) =>
|
|
117
|
-
pswCreateTrustTransfer(input: $input) { ${
|
|
116
|
+
mutationFn: (e) => a(`mutation PswCreateTrustTransfer($input: PswCreateTrustTransferInput!) {
|
|
117
|
+
pswCreateTrustTransfer(input: $input) { ${ee} }
|
|
118
118
|
}`, { input: e }),
|
|
119
|
-
onSuccess: () =>
|
|
119
|
+
onSuccess: () => s(t, "trustTransactions", "trustTransfers", "trustClientBalance", "trustAccounts", "dashboard")
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function E() {
|
|
123
123
|
let t = n();
|
|
124
124
|
return e({
|
|
125
|
-
mutationFn: (e) =>
|
|
126
|
-
onSuccess: () =>
|
|
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
|
|
129
|
+
function D(e = {}) {
|
|
130
130
|
return t({
|
|
131
131
|
queryKey: [
|
|
132
|
-
|
|
132
|
+
o,
|
|
133
133
|
"clients",
|
|
134
134
|
e
|
|
135
135
|
],
|
|
136
|
-
queryFn: async () => (await
|
|
136
|
+
queryFn: async () => (await a(`query PswClients($status: PswClientStatus, $search: String, $pagination: PaginationInput) {
|
|
137
137
|
pswListClients(status: $status, search: $search, pagination: $pagination) {
|
|
138
|
-
items { ${
|
|
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
|
|
147
|
+
function O(e) {
|
|
148
148
|
return t({
|
|
149
149
|
queryKey: [
|
|
150
|
-
|
|
150
|
+
o,
|
|
151
151
|
"client",
|
|
152
152
|
e
|
|
153
153
|
],
|
|
154
154
|
enabled: !!e,
|
|
155
|
-
queryFn: async () => (await
|
|
155
|
+
queryFn: async () => (await a(`query PswClient($id: ID!) {
|
|
156
156
|
pswClient(id: $id) {
|
|
157
|
-
${
|
|
158
|
-
engagements { ${
|
|
159
|
-
matters { ${
|
|
157
|
+
${c}
|
|
158
|
+
engagements { ${l} }
|
|
159
|
+
matters { ${p} }
|
|
160
160
|
}
|
|
161
161
|
}`, { id: e })).pswClient
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function k() {
|
|
165
165
|
let t = n();
|
|
166
166
|
return e({
|
|
167
|
-
mutationFn: (e) =>
|
|
168
|
-
onSuccess: () =>
|
|
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
|
|
171
|
+
function A() {
|
|
172
172
|
let t = n();
|
|
173
173
|
return e({
|
|
174
|
-
mutationFn: (e) =>
|
|
174
|
+
mutationFn: (e) => a(`mutation PswUpdateClient($id: ID!, $input: PswUpdateClientInput!) { pswUpdateClient(id: $id, input: $input) { ${c} } }`, e),
|
|
175
175
|
onSuccess: (e, n) => {
|
|
176
|
-
|
|
177
|
-
|
|
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
|
|
184
|
+
function j() {
|
|
185
185
|
let t = n();
|
|
186
186
|
return e({
|
|
187
|
-
mutationFn: (e) =>
|
|
188
|
-
onSuccess: () =>
|
|
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
|
|
191
|
+
function M(e = {}) {
|
|
192
192
|
return t({
|
|
193
193
|
queryKey: [
|
|
194
|
-
|
|
194
|
+
o,
|
|
195
195
|
"engagements",
|
|
196
196
|
e
|
|
197
197
|
],
|
|
198
|
-
queryFn: async () => (await
|
|
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 { ${
|
|
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
|
|
210
|
+
function N(e) {
|
|
211
211
|
return t({
|
|
212
212
|
queryKey: [
|
|
213
|
-
|
|
213
|
+
o,
|
|
214
214
|
"engagement",
|
|
215
215
|
e
|
|
216
216
|
],
|
|
217
217
|
enabled: !!e,
|
|
218
|
-
queryFn: async () => (await
|
|
218
|
+
queryFn: async () => (await a(`query PswEngagement($id: ID!) {
|
|
219
219
|
pswEngagement(id: $id) {
|
|
220
|
-
${
|
|
221
|
-
deliverables { ${
|
|
222
|
-
milestones { ${
|
|
220
|
+
${l}
|
|
221
|
+
deliverables { ${u} }
|
|
222
|
+
milestones { ${d} }
|
|
223
223
|
}
|
|
224
224
|
}`, { id: e })).pswEngagement
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function P() {
|
|
228
228
|
let t = n();
|
|
229
229
|
return e({
|
|
230
|
-
mutationFn: (e) =>
|
|
231
|
-
onSuccess: () =>
|
|
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
|
|
234
|
+
function F() {
|
|
235
235
|
let t = n();
|
|
236
236
|
return e({
|
|
237
|
-
mutationFn: (e) =>
|
|
237
|
+
mutationFn: (e) => a(`mutation PswUpdateEngagement($id: ID!, $input: PswUpdateEngagementInput!) { pswUpdateEngagement(id: $id, input: $input) { ${l} } }`, e),
|
|
238
238
|
onSuccess: (e, n) => {
|
|
239
|
-
|
|
240
|
-
|
|
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
|
|
247
|
+
function I() {
|
|
248
248
|
let t = n();
|
|
249
249
|
return e({
|
|
250
|
-
mutationFn: (e) =>
|
|
250
|
+
mutationFn: (e) => a(`mutation PswTransitionEngagement($id: ID!, $status: PswEngagementStatus!) { pswTransitionEngagement(id: $id, status: $status) { ${l} } }`, e),
|
|
251
251
|
onSuccess: (e, n) => {
|
|
252
|
-
|
|
253
|
-
|
|
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
|
|
260
|
+
function L() {
|
|
261
261
|
let t = n();
|
|
262
262
|
return e({
|
|
263
|
-
mutationFn: (e) =>
|
|
263
|
+
mutationFn: (e) => a(`mutation PswCreateDeliverable($input: PswCreateDeliverableInput!) { pswCreateDeliverable(input: $input) { ${u} } }`, { input: e }),
|
|
264
264
|
onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
|
|
265
|
-
|
|
265
|
+
o,
|
|
266
266
|
"engagement",
|
|
267
267
|
n.engagementId
|
|
268
268
|
] })
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function R() {
|
|
272
272
|
let t = n();
|
|
273
273
|
return e({
|
|
274
|
-
mutationFn: (e) =>
|
|
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
|
-
|
|
279
|
+
o,
|
|
280
280
|
"engagement",
|
|
281
281
|
n.engagementId
|
|
282
282
|
] })
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function z() {
|
|
286
286
|
let t = n();
|
|
287
287
|
return e({
|
|
288
|
-
mutationFn: (e) =>
|
|
288
|
+
mutationFn: (e) => a(`mutation PswCreateMilestone($input: PswCreateMilestoneInput!) { pswCreateMilestone(input: $input) { ${d} } }`, { input: e }),
|
|
289
289
|
onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
|
|
290
|
-
|
|
290
|
+
o,
|
|
291
291
|
"engagement",
|
|
292
292
|
n.engagementId
|
|
293
293
|
] })
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function B() {
|
|
297
297
|
let t = n();
|
|
298
298
|
return e({
|
|
299
|
-
mutationFn: (e) =>
|
|
299
|
+
mutationFn: (e) => a(`mutation PswCompleteMilestone($id: ID!) { pswCompleteMilestone(id: $id) { ${d} } }`, { id: e.id }),
|
|
300
300
|
onSuccess: (e, n) => t.invalidateQueries({ queryKey: [
|
|
301
|
-
|
|
301
|
+
o,
|
|
302
302
|
"engagement",
|
|
303
303
|
n.engagementId
|
|
304
304
|
] })
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
function
|
|
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
|
-
|
|
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
|
|
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 { ${
|
|
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
|
|
389
|
+
function K() {
|
|
328
390
|
let t = n();
|
|
329
391
|
return e({
|
|
330
|
-
mutationFn: (e) =>
|
|
331
|
-
onSuccess: () =>
|
|
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
|
|
396
|
+
function q() {
|
|
335
397
|
let t = n();
|
|
336
398
|
return e({
|
|
337
|
-
mutationFn: (e) =>
|
|
338
|
-
onSuccess: () =>
|
|
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
|
|
403
|
+
function J() {
|
|
342
404
|
let t = n();
|
|
343
405
|
return e({
|
|
344
|
-
mutationFn: (e) =>
|
|
345
|
-
onSuccess: () =>
|
|
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
|
|
410
|
+
function Y(e = {}) {
|
|
349
411
|
return t({
|
|
350
412
|
queryKey: [
|
|
351
|
-
|
|
413
|
+
o,
|
|
352
414
|
"time",
|
|
353
415
|
e
|
|
354
416
|
],
|
|
355
|
-
queryFn: async () => (await
|
|
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 { ${
|
|
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
|
|
430
|
+
function ae() {
|
|
369
431
|
let t = n();
|
|
370
432
|
return e({
|
|
371
|
-
mutationFn: (e) =>
|
|
372
|
-
onSuccess: () =>
|
|
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
|
|
437
|
+
function oe() {
|
|
376
438
|
let t = n();
|
|
377
439
|
return e({
|
|
378
|
-
mutationFn: (e) =>
|
|
379
|
-
onSuccess: () =>
|
|
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
|
|
444
|
+
function se() {
|
|
383
445
|
let t = n();
|
|
384
446
|
return e({
|
|
385
|
-
mutationFn: (e) =>
|
|
386
|
-
onSuccess: () =>
|
|
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
|
|
451
|
+
function ce(e = {}) {
|
|
390
452
|
return t({
|
|
391
453
|
queryKey: [
|
|
392
|
-
|
|
454
|
+
o,
|
|
393
455
|
"invoices",
|
|
394
456
|
e
|
|
395
457
|
],
|
|
396
|
-
queryFn: async () => (await
|
|
458
|
+
queryFn: async () => (await a(`query PswInvoices($clientId: ID, $status: PswInvoiceStatus, $pagination: PaginationInput) {
|
|
397
459
|
pswListInvoices(clientId: $clientId, status: $status, pagination: $pagination) {
|
|
398
|
-
items { ${
|
|
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
|
|
469
|
+
function le() {
|
|
408
470
|
let t = n();
|
|
409
471
|
return e({
|
|
410
|
-
mutationFn: (e) =>
|
|
411
|
-
onSuccess: () =>
|
|
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
|
|
476
|
+
function ue() {
|
|
415
477
|
let t = n();
|
|
416
478
|
return e({
|
|
417
|
-
mutationFn: (e) =>
|
|
418
|
-
onSuccess: () =>
|
|
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
|
|
483
|
+
function de(e = {}) {
|
|
422
484
|
return t({
|
|
423
485
|
queryKey: [
|
|
424
|
-
|
|
486
|
+
o,
|
|
425
487
|
"compliance",
|
|
426
488
|
e
|
|
427
489
|
],
|
|
428
|
-
queryFn: async () => (await
|
|
490
|
+
queryFn: async () => (await a(`query PswCompliance($status: PswComplianceStatus, $pagination: PaginationInput) {
|
|
429
491
|
pswListComplianceChecks(status: $status, pagination: $pagination) {
|
|
430
|
-
items { ${
|
|
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
|
|
500
|
+
function fe() {
|
|
439
501
|
let t = n();
|
|
440
502
|
return e({
|
|
441
|
-
mutationFn: (e) =>
|
|
442
|
-
onSuccess: () =>
|
|
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
|
|
507
|
+
function pe() {
|
|
446
508
|
let t = n();
|
|
447
509
|
return e({
|
|
448
|
-
mutationFn: (e) =>
|
|
449
|
-
onSuccess: () =>
|
|
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
|
|
514
|
+
function me(e = {}) {
|
|
453
515
|
return t({
|
|
454
516
|
queryKey: [
|
|
455
|
-
|
|
517
|
+
o,
|
|
456
518
|
"conflicts",
|
|
457
519
|
e
|
|
458
520
|
],
|
|
459
|
-
queryFn: async () => (await
|
|
521
|
+
queryFn: async () => (await a(`query PswConflicts($clientId: ID, $pagination: PaginationInput) {
|
|
460
522
|
pswListConflictChecks(clientId: $clientId, pagination: $pagination) {
|
|
461
|
-
items { ${
|
|
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
|
|
531
|
+
function he() {
|
|
470
532
|
let t = n();
|
|
471
533
|
return e({
|
|
472
|
-
mutationFn: (e) =>
|
|
473
|
-
onSuccess: () =>
|
|
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
|
|
538
|
+
function ge() {
|
|
477
539
|
let t = n();
|
|
478
540
|
return e({
|
|
479
|
-
mutationFn: (e) =>
|
|
480
|
-
pswResolveConflictCheck(id: $id, status: $status, findings: $findings, waiverReason: $waiverReason) { ${
|
|
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: () =>
|
|
544
|
+
onSuccess: () => s(t, "conflicts", "dashboard")
|
|
483
545
|
});
|
|
484
546
|
}
|
|
485
|
-
function
|
|
547
|
+
function _e() {
|
|
486
548
|
return t({
|
|
487
|
-
queryKey: [
|
|
488
|
-
queryFn: async () => (await
|
|
549
|
+
queryKey: [o, "practiceAreas"],
|
|
550
|
+
queryFn: async () => (await a(`query PswPracticeAreas {
|
|
489
551
|
pswListPracticeAreas(pagination: { limit: 100 }) {
|
|
490
|
-
items { ${
|
|
552
|
+
items { ${v} } pageInfo { hasMore cursor } totalCount
|
|
491
553
|
}
|
|
492
554
|
}`)).pswListPracticeAreas
|
|
493
555
|
});
|
|
494
556
|
}
|
|
495
|
-
function
|
|
557
|
+
function ve() {
|
|
496
558
|
let t = n();
|
|
497
559
|
return e({
|
|
498
|
-
mutationFn: (e) =>
|
|
499
|
-
onSuccess: () =>
|
|
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
|
|
564
|
+
function ye() {
|
|
503
565
|
let t = n();
|
|
504
566
|
return e({
|
|
505
|
-
mutationFn: (e) =>
|
|
506
|
-
onSuccess: () =>
|
|
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
|
|
571
|
+
function be(e = {}) {
|
|
510
572
|
return t({
|
|
511
573
|
queryKey: [
|
|
512
|
-
|
|
574
|
+
o,
|
|
513
575
|
"documents",
|
|
514
576
|
e
|
|
515
577
|
],
|
|
516
|
-
queryFn: async () => (await
|
|
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 { ${
|
|
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
|
|
591
|
+
function xe() {
|
|
530
592
|
let t = n();
|
|
531
593
|
return e({
|
|
532
|
-
mutationFn: (e) =>
|
|
533
|
-
onSuccess: () =>
|
|
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
|
|
598
|
+
function Se() {
|
|
537
599
|
let t = n();
|
|
538
600
|
return e({
|
|
539
|
-
mutationFn: (e) =>
|
|
540
|
-
onSuccess: () =>
|
|
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} }`,
|
|
544
|
-
function
|
|
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
|
-
|
|
609
|
+
o,
|
|
548
610
|
"signatureRequests",
|
|
549
611
|
e
|
|
550
612
|
],
|
|
551
|
-
queryFn: async () => (await
|
|
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
|
|
624
|
+
function Te(e) {
|
|
563
625
|
return t({
|
|
564
626
|
queryKey: [
|
|
565
|
-
|
|
627
|
+
o,
|
|
566
628
|
"signatureAuditEvents",
|
|
567
629
|
e
|
|
568
630
|
],
|
|
569
631
|
enabled: !!e,
|
|
570
|
-
queryFn: async () => (await
|
|
632
|
+
queryFn: async () => (await a(`query PswSignatureAuditEvents($signatureRequestId: ID!, $pagination: PaginationInput) {
|
|
571
633
|
pswListSignatureAuditEvents(signatureRequestId: $signatureRequestId, pagination: $pagination) {
|
|
572
|
-
items { ${
|
|
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
|
|
642
|
+
function Ee() {
|
|
581
643
|
let t = n();
|
|
582
644
|
return e({
|
|
583
|
-
mutationFn: (e) =>
|
|
645
|
+
mutationFn: (e) => a(`mutation PswCreateSignatureRequest($input: PswCreateSignatureRequestInput!) {
|
|
584
646
|
pswCreateSignatureRequest(input: $input) { ${Z} }
|
|
585
647
|
}`, { input: e }),
|
|
586
|
-
onSuccess: () =>
|
|
648
|
+
onSuccess: () => s(t, "signatureRequests", "documents")
|
|
587
649
|
});
|
|
588
650
|
}
|
|
589
|
-
function
|
|
651
|
+
function De() {
|
|
590
652
|
let t = n();
|
|
591
653
|
return e({
|
|
592
|
-
mutationFn: (e) =>
|
|
593
|
-
onSuccess: () =>
|
|
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
|
|
658
|
+
function Oe() {
|
|
597
659
|
let t = n();
|
|
598
660
|
return e({
|
|
599
|
-
mutationFn: (e) =>
|
|
600
|
-
onSuccess: () =>
|
|
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
|
|
665
|
+
function Q() {
|
|
604
666
|
return t({
|
|
605
|
-
queryKey: [
|
|
606
|
-
queryFn: async () => (await
|
|
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
|
|
675
|
+
function ke() {
|
|
614
676
|
let t = n();
|
|
615
677
|
return e({
|
|
616
|
-
mutationFn: (e) =>
|
|
617
|
-
onSuccess: () =>
|
|
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
|
|
682
|
+
function Ae() {
|
|
621
683
|
let t = n();
|
|
622
684
|
return e({
|
|
623
|
-
mutationFn: (e) =>
|
|
685
|
+
mutationFn: (e) => a(`mutation PswSignDocument($signerId: ID!, $input: PswSignDocumentInput!) {
|
|
624
686
|
pswSignDocument(signerId: $signerId, input: $input) { ${X} }
|
|
625
687
|
}`, e),
|
|
626
|
-
onSuccess: () =>
|
|
688
|
+
onSuccess: () => s(t, "myPendingSignatures", "signatureRequests", "documents")
|
|
627
689
|
});
|
|
628
690
|
}
|
|
629
|
-
function
|
|
691
|
+
function je() {
|
|
630
692
|
let t = n();
|
|
631
693
|
return e({
|
|
632
|
-
mutationFn: (e) =>
|
|
694
|
+
mutationFn: (e) => a(`mutation PswDeclineSignatureRequest($signerId: ID!, $reason: String) {
|
|
633
695
|
pswDeclineSignatureRequest(signerId: $signerId, reason: $reason) { ${X} }
|
|
634
696
|
}`, e),
|
|
635
|
-
onSuccess: () =>
|
|
697
|
+
onSuccess: () => s(t, "myPendingSignatures", "signatureRequests", "documents")
|
|
636
698
|
});
|
|
637
699
|
}
|
|
638
|
-
var
|
|
639
|
-
function
|
|
700
|
+
var $ = "id clientId actorId name email status invitedBy invitedAt revokedAt createdAt";
|
|
701
|
+
function Me(e = {}) {
|
|
640
702
|
return t({
|
|
641
703
|
queryKey: [
|
|
642
|
-
|
|
704
|
+
o,
|
|
643
705
|
"clientPortalUsers",
|
|
644
706
|
e
|
|
645
707
|
],
|
|
646
|
-
queryFn: async () => (await
|
|
708
|
+
queryFn: async () => (await a(`query PswClientPortalUsers($clientId: ID, $pagination: PaginationInput) {
|
|
647
709
|
pswListClientPortalUsers(clientId: $clientId, pagination: $pagination) {
|
|
648
|
-
items { ${
|
|
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
|
|
718
|
+
function Ne() {
|
|
657
719
|
let t = n();
|
|
658
720
|
return e({
|
|
659
|
-
mutationFn: (e) =>
|
|
660
|
-
pswInviteClientPortalUser(input: $input) { ${
|
|
721
|
+
mutationFn: (e) => a(`mutation PswInviteClientPortalUser($input: PswInviteClientPortalUserInput!) {
|
|
722
|
+
pswInviteClientPortalUser(input: $input) { ${$} }
|
|
661
723
|
}`, { input: e }),
|
|
662
|
-
onSuccess: () =>
|
|
724
|
+
onSuccess: () => s(t, "clientPortalUsers")
|
|
663
725
|
});
|
|
664
726
|
}
|
|
665
|
-
function
|
|
727
|
+
function Pe() {
|
|
666
728
|
let t = n();
|
|
667
729
|
return e({
|
|
668
|
-
mutationFn: (e) =>
|
|
669
|
-
onSuccess: () =>
|
|
730
|
+
mutationFn: (e) => a(`mutation PswRevokeClientPortalUser($id: ID!) { pswRevokeClientPortalUser(id: $id) { ${$} } }`, { id: e }),
|
|
731
|
+
onSuccess: () => s(t, "clientPortalUsers")
|
|
670
732
|
});
|
|
671
733
|
}
|
|
672
|
-
function
|
|
734
|
+
function Fe() {
|
|
673
735
|
return t({
|
|
674
|
-
queryKey: [
|
|
675
|
-
queryFn: async () => (await
|
|
736
|
+
queryKey: [o, "myClientPortalClients"],
|
|
737
|
+
queryFn: async () => (await a("query PswMyClientPortalClients { pswMyClientPortalClients { id name } }")).pswMyClientPortalClients
|
|
676
738
|
});
|
|
677
739
|
}
|
|
678
|
-
function
|
|
740
|
+
function Ie(e) {
|
|
679
741
|
return t({
|
|
680
742
|
queryKey: [
|
|
681
|
-
|
|
743
|
+
o,
|
|
682
744
|
"myMatters",
|
|
683
745
|
e
|
|
684
746
|
],
|
|
685
|
-
queryFn: async () => (await
|
|
686
|
-
pswMyMatters(pagination: $pagination) { items { ${
|
|
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
|
|
752
|
+
function Le(e = {}) {
|
|
691
753
|
return t({
|
|
692
754
|
queryKey: [
|
|
693
|
-
|
|
755
|
+
o,
|
|
694
756
|
"myInvoices",
|
|
695
757
|
e
|
|
696
758
|
],
|
|
697
|
-
queryFn: async () => (await
|
|
698
|
-
pswMyInvoices(status: $status, pagination: $pagination) { items { ${
|
|
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
|
|
767
|
+
function Re(e) {
|
|
706
768
|
return t({
|
|
707
769
|
queryKey: [
|
|
708
|
-
|
|
770
|
+
o,
|
|
709
771
|
"myDocuments",
|
|
710
772
|
e
|
|
711
773
|
],
|
|
712
|
-
queryFn: async () => (await
|
|
713
|
-
pswMyDocuments(pagination: $pagination) { items { ${
|
|
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 {
|
|
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
|