@cycomdatasystems/mackinac-sdk 4.1.0 → 5.1.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/generated/mackinac.client.d.ts +273 -4027
- package/dist/generated/mackinac.client.js +753 -18
- package/dist/generated/models/assignRolesDto.d.ts +24 -0
- package/dist/generated/models/assignRolesDto.js +17 -0
- package/dist/generated/models/createStaffPayloadDto.d.ts +45 -0
- package/dist/generated/models/createStaffPayloadDto.js +17 -0
- package/dist/generated/models/createUserDto.d.ts +47 -0
- package/dist/generated/models/createUserDto.js +1 -0
- package/dist/generated/models/createUserDtoMode.d.ts +24 -0
- package/dist/generated/models/createUserDtoMode.js +21 -0
- package/dist/generated/models/getApiV1UsersParams.d.ts +23 -0
- package/dist/generated/models/getApiV1UsersParams.js +17 -0
- package/dist/generated/models/index.d.ts +10 -0
- package/dist/generated/models/index.js +10 -0
- package/dist/generated/models/roleDto.d.ts +29 -0
- package/dist/generated/models/roleDto.js +17 -0
- package/dist/generated/models/updateSelfProfileDto.d.ts +27 -0
- package/dist/generated/models/updateSelfProfileDto.js +17 -0
- package/dist/generated/models/updateUserDto.d.ts +46 -0
- package/dist/generated/models/updateUserDto.js +17 -0
- package/dist/generated/models/userDto.d.ts +49 -0
- package/dist/generated/models/userDto.js +17 -0
- package/dist/generated/models/userDtoCursorPagedResultDto.d.ts +23 -0
- package/dist/generated/models/userDtoCursorPagedResultDto.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { customFetch } from '../core/customFetch';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Get a paginated list of allegation definitions.
|
|
4
|
+
*/
|
|
2
5
|
export const getGetApiV1AllegationsUrl = (params) => {
|
|
3
6
|
const normalizedParams = new URLSearchParams();
|
|
4
7
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -15,6 +18,9 @@ export const getApiV1Allegations = async (params, options) => {
|
|
|
15
18
|
method: 'GET'
|
|
16
19
|
});
|
|
17
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* @summary Create a new allegation definition.
|
|
23
|
+
*/
|
|
18
24
|
export const getPostApiV1AllegationsUrl = () => {
|
|
19
25
|
return `/api/v1/allegations`;
|
|
20
26
|
};
|
|
@@ -26,6 +32,9 @@ export const postApiV1Allegations = async (createAllegationDto, options) => {
|
|
|
26
32
|
body: JSON.stringify(createAllegationDto)
|
|
27
33
|
});
|
|
28
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* @summary Get a single allegation definition by ID.
|
|
37
|
+
*/
|
|
29
38
|
export const getGetApiV1AllegationsAllegationIdUrl = (allegationId) => {
|
|
30
39
|
return `/api/v1/allegations/${allegationId}`;
|
|
31
40
|
};
|
|
@@ -35,6 +44,9 @@ export const getApiV1AllegationsAllegationId = async (allegationId, options) =>
|
|
|
35
44
|
method: 'GET'
|
|
36
45
|
});
|
|
37
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @summary Update an allegation definition using JSON Patch (RFC 6902).
|
|
49
|
+
*/
|
|
38
50
|
export const getPatchApiV1AllegationsAllegationIdUrl = (allegationId) => {
|
|
39
51
|
return `/api/v1/allegations/${allegationId}`;
|
|
40
52
|
};
|
|
@@ -46,6 +58,9 @@ export const patchApiV1AllegationsAllegationId = async (allegationId, operation,
|
|
|
46
58
|
body: JSON.stringify(operation)
|
|
47
59
|
});
|
|
48
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* @summary Delete an allegation definition.
|
|
63
|
+
*/
|
|
49
64
|
export const getDeleteApiV1AllegationsAllegationIdUrl = (allegationId) => {
|
|
50
65
|
return `/api/v1/allegations/${allegationId}`;
|
|
51
66
|
};
|
|
@@ -55,6 +70,9 @@ export const deleteApiV1AllegationsAllegationId = async (allegationId, options)
|
|
|
55
70
|
method: 'DELETE'
|
|
56
71
|
});
|
|
57
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* @summary Get a paginated list of allegation stage definitions.
|
|
75
|
+
*/
|
|
58
76
|
export const getGetApiV1AllegationsStagesUrl = (params) => {
|
|
59
77
|
const normalizedParams = new URLSearchParams();
|
|
60
78
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -71,6 +89,9 @@ export const getApiV1AllegationsStages = async (params, options) => {
|
|
|
71
89
|
method: 'GET'
|
|
72
90
|
});
|
|
73
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* @summary Create a new stage definition.
|
|
94
|
+
*/
|
|
74
95
|
export const getPostApiV1AllegationsStagesUrl = () => {
|
|
75
96
|
return `/api/v1/allegations/stages`;
|
|
76
97
|
};
|
|
@@ -82,6 +103,9 @@ export const postApiV1AllegationsStages = async (createAllegationStageDto, optio
|
|
|
82
103
|
body: JSON.stringify(createAllegationStageDto)
|
|
83
104
|
});
|
|
84
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* @summary Get a single stage definition by ID.
|
|
108
|
+
*/
|
|
85
109
|
export const getGetApiV1AllegationsStagesStageIdUrl = (stageId) => {
|
|
86
110
|
return `/api/v1/allegations/stages/${stageId}`;
|
|
87
111
|
};
|
|
@@ -91,6 +115,9 @@ export const getApiV1AllegationsStagesStageId = async (stageId, options) => {
|
|
|
91
115
|
method: 'GET'
|
|
92
116
|
});
|
|
93
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* @summary Update a stage definition using JSON Patch (RFC 6902).
|
|
120
|
+
*/
|
|
94
121
|
export const getPatchApiV1AllegationsStagesStageIdUrl = (stageId) => {
|
|
95
122
|
return `/api/v1/allegations/stages/${stageId}`;
|
|
96
123
|
};
|
|
@@ -102,6 +129,9 @@ export const patchApiV1AllegationsStagesStageId = async (stageId, operation, opt
|
|
|
102
129
|
body: JSON.stringify(operation)
|
|
103
130
|
});
|
|
104
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* @summary Delete a stage definition.
|
|
134
|
+
*/
|
|
105
135
|
export const getDeleteApiV1AllegationsStagesStageIdUrl = (stageId) => {
|
|
106
136
|
return `/api/v1/allegations/stages/${stageId}`;
|
|
107
137
|
};
|
|
@@ -111,6 +141,9 @@ export const deleteApiV1AllegationsStagesStageId = async (stageId, options) => {
|
|
|
111
141
|
method: 'DELETE'
|
|
112
142
|
});
|
|
113
143
|
};
|
|
144
|
+
/**
|
|
145
|
+
* @summary Get a paginated list of allegation sub-code definitions.
|
|
146
|
+
*/
|
|
114
147
|
export const getGetApiV1AllegationsSubcodesUrl = (params) => {
|
|
115
148
|
const normalizedParams = new URLSearchParams();
|
|
116
149
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -127,6 +160,9 @@ export const getApiV1AllegationsSubcodes = async (params, options) => {
|
|
|
127
160
|
method: 'GET'
|
|
128
161
|
});
|
|
129
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* @summary Create a new allegation sub-code definition.
|
|
165
|
+
*/
|
|
130
166
|
export const getPostApiV1AllegationsSubcodesUrl = () => {
|
|
131
167
|
return `/api/v1/allegations/subcodes`;
|
|
132
168
|
};
|
|
@@ -138,6 +174,9 @@ export const postApiV1AllegationsSubcodes = async (createAllegationSubCodeDto, o
|
|
|
138
174
|
body: JSON.stringify(createAllegationSubCodeDto)
|
|
139
175
|
});
|
|
140
176
|
};
|
|
177
|
+
/**
|
|
178
|
+
* @summary Get a single sub-code definition by ID.
|
|
179
|
+
*/
|
|
141
180
|
export const getGetApiV1AllegationsSubcodesSubCodeIdUrl = (subCodeId) => {
|
|
142
181
|
return `/api/v1/allegations/subcodes/${subCodeId}`;
|
|
143
182
|
};
|
|
@@ -147,6 +186,9 @@ export const getApiV1AllegationsSubcodesSubCodeId = async (subCodeId, options) =
|
|
|
147
186
|
method: 'GET'
|
|
148
187
|
});
|
|
149
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* @summary Update a sub-code definition using JSON Patch (RFC 6902).
|
|
191
|
+
*/
|
|
150
192
|
export const getPatchApiV1AllegationsSubcodesSubCodeIdUrl = (subCodeId) => {
|
|
151
193
|
return `/api/v1/allegations/subcodes/${subCodeId}`;
|
|
152
194
|
};
|
|
@@ -158,6 +200,9 @@ export const patchApiV1AllegationsSubcodesSubCodeId = async (subCodeId, operatio
|
|
|
158
200
|
body: JSON.stringify(operation)
|
|
159
201
|
});
|
|
160
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
* @summary Delete a sub-code definition.
|
|
205
|
+
*/
|
|
161
206
|
export const getDeleteApiV1AllegationsSubcodesSubCodeIdUrl = (subCodeId) => {
|
|
162
207
|
return `/api/v1/allegations/subcodes/${subCodeId}`;
|
|
163
208
|
};
|
|
@@ -167,6 +212,9 @@ export const deleteApiV1AllegationsSubcodesSubCodeId = async (subCodeId, options
|
|
|
167
212
|
method: 'DELETE'
|
|
168
213
|
});
|
|
169
214
|
};
|
|
215
|
+
/**
|
|
216
|
+
* @summary Get a paginated list of allegation issue definitions.
|
|
217
|
+
*/
|
|
170
218
|
export const getGetApiV1AllegationsIssuesUrl = (params) => {
|
|
171
219
|
const normalizedParams = new URLSearchParams();
|
|
172
220
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -183,6 +231,9 @@ export const getApiV1AllegationsIssues = async (params, options) => {
|
|
|
183
231
|
method: 'GET'
|
|
184
232
|
});
|
|
185
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* @summary Create a new allegation issue definition.
|
|
236
|
+
*/
|
|
186
237
|
export const getPostApiV1AllegationsIssuesUrl = () => {
|
|
187
238
|
return `/api/v1/allegations/issues`;
|
|
188
239
|
};
|
|
@@ -194,6 +245,9 @@ export const postApiV1AllegationsIssues = async (createAllegationIssueDto, optio
|
|
|
194
245
|
body: JSON.stringify(createAllegationIssueDto)
|
|
195
246
|
});
|
|
196
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* @summary Get a single issue definition by ID.
|
|
250
|
+
*/
|
|
197
251
|
export const getGetApiV1AllegationsIssuesIssueIdUrl = (issueId) => {
|
|
198
252
|
return `/api/v1/allegations/issues/${issueId}`;
|
|
199
253
|
};
|
|
@@ -203,6 +257,9 @@ export const getApiV1AllegationsIssuesIssueId = async (issueId, options) => {
|
|
|
203
257
|
method: 'GET'
|
|
204
258
|
});
|
|
205
259
|
};
|
|
260
|
+
/**
|
|
261
|
+
* @summary Update an issue definition using JSON Patch (RFC 6902).
|
|
262
|
+
*/
|
|
206
263
|
export const getPatchApiV1AllegationsIssuesIssueIdUrl = (issueId) => {
|
|
207
264
|
return `/api/v1/allegations/issues/${issueId}`;
|
|
208
265
|
};
|
|
@@ -214,6 +271,9 @@ export const patchApiV1AllegationsIssuesIssueId = async (issueId, operation, opt
|
|
|
214
271
|
body: JSON.stringify(operation)
|
|
215
272
|
});
|
|
216
273
|
};
|
|
274
|
+
/**
|
|
275
|
+
* @summary Delete an issue definition.
|
|
276
|
+
*/
|
|
217
277
|
export const getDeleteApiV1AllegationsIssuesIssueIdUrl = (issueId) => {
|
|
218
278
|
return `/api/v1/allegations/issues/${issueId}`;
|
|
219
279
|
};
|
|
@@ -223,6 +283,9 @@ export const deleteApiV1AllegationsIssuesIssueId = async (issueId, options) => {
|
|
|
223
283
|
method: 'DELETE'
|
|
224
284
|
});
|
|
225
285
|
};
|
|
286
|
+
/**
|
|
287
|
+
* @summary Get a paginated list of allegation issue detail definitions.
|
|
288
|
+
*/
|
|
226
289
|
export const getGetApiV1AllegationsIssueDetailsUrl = (params) => {
|
|
227
290
|
const normalizedParams = new URLSearchParams();
|
|
228
291
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -239,6 +302,9 @@ export const getApiV1AllegationsIssueDetails = async (params, options) => {
|
|
|
239
302
|
method: 'GET'
|
|
240
303
|
});
|
|
241
304
|
};
|
|
305
|
+
/**
|
|
306
|
+
* @summary Create a new allegation issue detail definition.
|
|
307
|
+
*/
|
|
242
308
|
export const getPostApiV1AllegationsIssueDetailsUrl = () => {
|
|
243
309
|
return `/api/v1/allegations/issue-details`;
|
|
244
310
|
};
|
|
@@ -250,6 +316,9 @@ export const postApiV1AllegationsIssueDetails = async (createAllegationIssueDeta
|
|
|
250
316
|
body: JSON.stringify(createAllegationIssueDetailsDto)
|
|
251
317
|
});
|
|
252
318
|
};
|
|
319
|
+
/**
|
|
320
|
+
* @summary Get a single issue detail definition by ID.
|
|
321
|
+
*/
|
|
253
322
|
export const getGetApiV1AllegationsIssueDetailsDetailIdUrl = (detailId) => {
|
|
254
323
|
return `/api/v1/allegations/issue-details/${detailId}`;
|
|
255
324
|
};
|
|
@@ -259,6 +328,9 @@ export const getApiV1AllegationsIssueDetailsDetailId = async (detailId, options)
|
|
|
259
328
|
method: 'GET'
|
|
260
329
|
});
|
|
261
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* @summary Update an issue detail definition using JSON Patch (RFC 6902).
|
|
333
|
+
*/
|
|
262
334
|
export const getPatchApiV1AllegationsIssueDetailsDetailIdUrl = (detailId) => {
|
|
263
335
|
return `/api/v1/allegations/issue-details/${detailId}`;
|
|
264
336
|
};
|
|
@@ -270,6 +342,9 @@ export const patchApiV1AllegationsIssueDetailsDetailId = async (detailId, operat
|
|
|
270
342
|
body: JSON.stringify(operation)
|
|
271
343
|
});
|
|
272
344
|
};
|
|
345
|
+
/**
|
|
346
|
+
* @summary Delete an issue detail definition.
|
|
347
|
+
*/
|
|
273
348
|
export const getDeleteApiV1AllegationsIssueDetailsDetailIdUrl = (detailId) => {
|
|
274
349
|
return `/api/v1/allegations/issue-details/${detailId}`;
|
|
275
350
|
};
|
|
@@ -279,6 +354,9 @@ export const deleteApiV1AllegationsIssueDetailsDetailId = async (detailId, optio
|
|
|
279
354
|
method: 'DELETE'
|
|
280
355
|
});
|
|
281
356
|
};
|
|
357
|
+
/**
|
|
358
|
+
* @summary Get a paginated list of allegation stage disposition definitions (global list).
|
|
359
|
+
*/
|
|
282
360
|
export const getGetApiV1AllegationsStageDispositionsUrl = (params) => {
|
|
283
361
|
const normalizedParams = new URLSearchParams();
|
|
284
362
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -295,6 +373,9 @@ export const getApiV1AllegationsStageDispositions = async (params, options) => {
|
|
|
295
373
|
method: 'GET'
|
|
296
374
|
});
|
|
297
375
|
};
|
|
376
|
+
/**
|
|
377
|
+
* @summary Create a new stage disposition definition.
|
|
378
|
+
*/
|
|
298
379
|
export const getPostApiV1AllegationsStageDispositionsUrl = () => {
|
|
299
380
|
return `/api/v1/allegations/stage-dispositions`;
|
|
300
381
|
};
|
|
@@ -306,6 +387,9 @@ export const postApiV1AllegationsStageDispositions = async (createAllegationStag
|
|
|
306
387
|
body: JSON.stringify(createAllegationStageDispositionDto)
|
|
307
388
|
});
|
|
308
389
|
};
|
|
390
|
+
/**
|
|
391
|
+
* @summary Get a single stage disposition definition by ID.
|
|
392
|
+
*/
|
|
309
393
|
export const getGetApiV1AllegationsStageDispositionsDispositionIdUrl = (dispositionId) => {
|
|
310
394
|
return `/api/v1/allegations/stage-dispositions/${dispositionId}`;
|
|
311
395
|
};
|
|
@@ -315,6 +399,9 @@ export const getApiV1AllegationsStageDispositionsDispositionId = async (disposit
|
|
|
315
399
|
method: 'GET'
|
|
316
400
|
});
|
|
317
401
|
};
|
|
402
|
+
/**
|
|
403
|
+
* @summary Update a stage disposition definition using JSON Patch (RFC 6902).
|
|
404
|
+
*/
|
|
318
405
|
export const getPatchApiV1AllegationsStageDispositionsDispositionIdUrl = (dispositionId) => {
|
|
319
406
|
return `/api/v1/allegations/stage-dispositions/${dispositionId}`;
|
|
320
407
|
};
|
|
@@ -326,6 +413,9 @@ export const patchApiV1AllegationsStageDispositionsDispositionId = async (dispos
|
|
|
326
413
|
body: JSON.stringify(operation)
|
|
327
414
|
});
|
|
328
415
|
};
|
|
416
|
+
/**
|
|
417
|
+
* @summary Delete a stage disposition definition.
|
|
418
|
+
*/
|
|
329
419
|
export const getDeleteApiV1AllegationsStageDispositionsDispositionIdUrl = (dispositionId) => {
|
|
330
420
|
return `/api/v1/allegations/stage-dispositions/${dispositionId}`;
|
|
331
421
|
};
|
|
@@ -335,6 +425,9 @@ export const deleteApiV1AllegationsStageDispositionsDispositionId = async (dispo
|
|
|
335
425
|
method: 'DELETE'
|
|
336
426
|
});
|
|
337
427
|
};
|
|
428
|
+
/**
|
|
429
|
+
* @summary Get a paginated list of stage disposition mappings for a given stage code.
|
|
430
|
+
*/
|
|
338
431
|
export const getGetApiV1AllegationsStagesDispositionMappingsUrl = (params) => {
|
|
339
432
|
const normalizedParams = new URLSearchParams();
|
|
340
433
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -351,6 +444,9 @@ export const getApiV1AllegationsStagesDispositionMappings = async (params, optio
|
|
|
351
444
|
method: 'GET'
|
|
352
445
|
});
|
|
353
446
|
};
|
|
447
|
+
/**
|
|
448
|
+
* @summary Get a single stage disposition mapping by ID.
|
|
449
|
+
*/
|
|
354
450
|
export const getGetApiV1AllegationsStagesDispositionMappingsMappingIdUrl = (mappingId) => {
|
|
355
451
|
return `/api/v1/allegations/stages/disposition-mappings/${mappingId}`;
|
|
356
452
|
};
|
|
@@ -360,6 +456,9 @@ export const getApiV1AllegationsStagesDispositionMappingsMappingId = async (mapp
|
|
|
360
456
|
method: 'GET'
|
|
361
457
|
});
|
|
362
458
|
};
|
|
459
|
+
/**
|
|
460
|
+
* @summary Update a stage disposition mapping using JSON Patch (RFC 6902).
|
|
461
|
+
*/
|
|
363
462
|
export const getPatchApiV1AllegationsStagesDispositionMappingsMappingIdUrl = (mappingId) => {
|
|
364
463
|
return `/api/v1/allegations/stages/disposition-mappings/${mappingId}`;
|
|
365
464
|
};
|
|
@@ -371,6 +470,9 @@ export const patchApiV1AllegationsStagesDispositionMappingsMappingId = async (ma
|
|
|
371
470
|
body: JSON.stringify(operation)
|
|
372
471
|
});
|
|
373
472
|
};
|
|
473
|
+
/**
|
|
474
|
+
* @summary Delete a stage disposition mapping.
|
|
475
|
+
*/
|
|
374
476
|
export const getDeleteApiV1AllegationsStagesDispositionMappingsMappingIdUrl = (mappingId) => {
|
|
375
477
|
return `/api/v1/allegations/stages/disposition-mappings/${mappingId}`;
|
|
376
478
|
};
|
|
@@ -380,6 +482,9 @@ export const deleteApiV1AllegationsStagesDispositionMappingsMappingId = async (m
|
|
|
380
482
|
method: 'DELETE'
|
|
381
483
|
});
|
|
382
484
|
};
|
|
485
|
+
/**
|
|
486
|
+
* @summary Create a new stage disposition mapping for a stage definition.
|
|
487
|
+
*/
|
|
383
488
|
export const getPostApiV1AllegationsStagesStageIdDispositionMappingsUrl = (stageId) => {
|
|
384
489
|
return `/api/v1/allegations/stages/${stageId}/disposition-mappings`;
|
|
385
490
|
};
|
|
@@ -391,6 +496,9 @@ export const postApiV1AllegationsStagesStageIdDispositionMappings = async (stage
|
|
|
391
496
|
body: JSON.stringify(createStageDispositionMappingDto)
|
|
392
497
|
});
|
|
393
498
|
};
|
|
499
|
+
/**
|
|
500
|
+
* @summary Get a paginated list of desired outcome definitions.
|
|
501
|
+
*/
|
|
394
502
|
export const getGetApiV1AllegationsDesiredOutcomesUrl = (params) => {
|
|
395
503
|
const normalizedParams = new URLSearchParams();
|
|
396
504
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -407,6 +515,9 @@ export const getApiV1AllegationsDesiredOutcomes = async (params, options) => {
|
|
|
407
515
|
method: 'GET'
|
|
408
516
|
});
|
|
409
517
|
};
|
|
518
|
+
/**
|
|
519
|
+
* @summary Create a new desired outcome definition.
|
|
520
|
+
*/
|
|
410
521
|
export const getPostApiV1AllegationsDesiredOutcomesUrl = () => {
|
|
411
522
|
return `/api/v1/allegations/desired-outcomes`;
|
|
412
523
|
};
|
|
@@ -418,6 +529,9 @@ export const postApiV1AllegationsDesiredOutcomes = async (createAllegationDesire
|
|
|
418
529
|
body: JSON.stringify(createAllegationDesiredOutcomeDto)
|
|
419
530
|
});
|
|
420
531
|
};
|
|
532
|
+
/**
|
|
533
|
+
* @summary Get a single desired outcome definition by ID.
|
|
534
|
+
*/
|
|
421
535
|
export const getGetApiV1AllegationsDesiredOutcomesOutcomeIdUrl = (outcomeId) => {
|
|
422
536
|
return `/api/v1/allegations/desired-outcomes/${outcomeId}`;
|
|
423
537
|
};
|
|
@@ -427,6 +541,9 @@ export const getApiV1AllegationsDesiredOutcomesOutcomeId = async (outcomeId, opt
|
|
|
427
541
|
method: 'GET'
|
|
428
542
|
});
|
|
429
543
|
};
|
|
544
|
+
/**
|
|
545
|
+
* @summary Update a desired outcome definition using JSON Patch (RFC 6902).
|
|
546
|
+
*/
|
|
430
547
|
export const getPatchApiV1AllegationsDesiredOutcomesOutcomeIdUrl = (outcomeId) => {
|
|
431
548
|
return `/api/v1/allegations/desired-outcomes/${outcomeId}`;
|
|
432
549
|
};
|
|
@@ -438,6 +555,9 @@ export const patchApiV1AllegationsDesiredOutcomesOutcomeId = async (outcomeId, o
|
|
|
438
555
|
body: JSON.stringify(operation)
|
|
439
556
|
});
|
|
440
557
|
};
|
|
558
|
+
/**
|
|
559
|
+
* @summary Delete a desired outcome definition.
|
|
560
|
+
*/
|
|
441
561
|
export const getDeleteApiV1AllegationsDesiredOutcomesOutcomeIdUrl = (outcomeId) => {
|
|
442
562
|
return `/api/v1/allegations/desired-outcomes/${outcomeId}`;
|
|
443
563
|
};
|
|
@@ -447,6 +567,10 @@ export const deleteApiV1AllegationsDesiredOutcomesOutcomeId = async (outcomeId,
|
|
|
447
567
|
method: 'DELETE'
|
|
448
568
|
});
|
|
449
569
|
};
|
|
570
|
+
/**
|
|
571
|
+
* @summary Creates an attachment from a document template with token replacement.
|
|
572
|
+
Per §3.2, §4.1, and §6 of the document template specification.
|
|
573
|
+
*/
|
|
450
574
|
export const getPostApiV1MattersMatterIdAttachmentsFromTemplateUrl = (matterId) => {
|
|
451
575
|
return `/api/v1/matters/${matterId}/attachments/from-template`;
|
|
452
576
|
};
|
|
@@ -456,6 +580,9 @@ export const postApiV1MattersMatterIdAttachmentsFromTemplate = async (matterId,
|
|
|
456
580
|
method: 'POST'
|
|
457
581
|
});
|
|
458
582
|
};
|
|
583
|
+
/**
|
|
584
|
+
* @summary Marks Avery label records as printed for the supplied citations.
|
|
585
|
+
*/
|
|
459
586
|
export const getPostApiV1AveryLabelsPrintedRecordsUrl = () => {
|
|
460
587
|
return `/api/v1/avery-labels/printed-records`;
|
|
461
588
|
};
|
|
@@ -467,6 +594,9 @@ export const postApiV1AveryLabelsPrintedRecords = async (markAveryLabelsPrintedR
|
|
|
467
594
|
body: JSON.stringify(markAveryLabelsPrintedRequest)
|
|
468
595
|
});
|
|
469
596
|
};
|
|
597
|
+
/**
|
|
598
|
+
* @summary Adds a new codeDto to the system.
|
|
599
|
+
*/
|
|
470
600
|
export const getPostApiV1CodesUrl = () => {
|
|
471
601
|
return `/api/v1/Codes`;
|
|
472
602
|
};
|
|
@@ -478,6 +608,9 @@ export const postApiV1Codes = async (codeDto, options) => {
|
|
|
478
608
|
body: JSON.stringify(codeDto)
|
|
479
609
|
});
|
|
480
610
|
};
|
|
611
|
+
/**
|
|
612
|
+
* @summary Retrieves a list of codes filtered by type and status.
|
|
613
|
+
*/
|
|
481
614
|
export const getGetApiV1CodesUrl = (params) => {
|
|
482
615
|
const normalizedParams = new URLSearchParams();
|
|
483
616
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -494,6 +627,9 @@ export const getApiV1Codes = async (params, options) => {
|
|
|
494
627
|
method: 'GET'
|
|
495
628
|
});
|
|
496
629
|
};
|
|
630
|
+
/**
|
|
631
|
+
* @summary Deletes a codeDto from the system by its ID.
|
|
632
|
+
*/
|
|
497
633
|
export const getDeleteApiV1CodesIdUrl = (id) => {
|
|
498
634
|
return `/api/v1/Codes/${id}`;
|
|
499
635
|
};
|
|
@@ -503,6 +639,9 @@ export const deleteApiV1CodesId = async (id, options) => {
|
|
|
503
639
|
method: 'DELETE'
|
|
504
640
|
});
|
|
505
641
|
};
|
|
642
|
+
/**
|
|
643
|
+
* @summary Retrieves a codeDto by its ID.
|
|
644
|
+
*/
|
|
506
645
|
export const getGetApiV1CodesIdUrl = (id) => {
|
|
507
646
|
return `/api/v1/Codes/${id}`;
|
|
508
647
|
};
|
|
@@ -512,6 +651,9 @@ export const getApiV1CodesId = async (id, options) => {
|
|
|
512
651
|
method: 'GET'
|
|
513
652
|
});
|
|
514
653
|
};
|
|
654
|
+
/**
|
|
655
|
+
* @summary Applies a JSON Patch document to a CodeDto object.
|
|
656
|
+
*/
|
|
515
657
|
export const getPatchApiV1CodesIdUrl = (id) => {
|
|
516
658
|
return `/api/v1/Codes/${id}`;
|
|
517
659
|
};
|
|
@@ -523,6 +665,12 @@ export const patchApiV1CodesId = async (id, operation, options) => {
|
|
|
523
665
|
body: JSON.stringify(operation)
|
|
524
666
|
});
|
|
525
667
|
};
|
|
668
|
+
/**
|
|
669
|
+
* Returns the global field library. Supports `inputType` and `search`
|
|
670
|
+
filters. Field definitions are reusable across forms — instantiate one on a
|
|
671
|
+
form via `POST /form-definitions/{formId}/fields`.
|
|
672
|
+
* @summary List field definitions
|
|
673
|
+
*/
|
|
526
674
|
export const getGetApiV1FieldDefinitionsUrl = (params) => {
|
|
527
675
|
const normalizedParams = new URLSearchParams();
|
|
528
676
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -539,6 +687,16 @@ export const getApiV1FieldDefinitions = async (params, options) => {
|
|
|
539
687
|
method: 'GET'
|
|
540
688
|
});
|
|
541
689
|
};
|
|
690
|
+
/**
|
|
691
|
+
* Creates a new entry in the global field library. Enforces all Field Definition
|
|
692
|
+
validation rules from the schema doc: `matter-field` requires
|
|
693
|
+
`matterFieldCode`; non-`matter-field` destinations forbid it;
|
|
694
|
+
`select` requires `selectOptions` unless
|
|
695
|
+
`valueDestination = matter-field` (in which case options are derived from
|
|
696
|
+
the registry); file fields forbid `valueDestination`; `matterFieldCode`
|
|
697
|
+
must exist in the Matter Field Registry.
|
|
698
|
+
* @summary Create a field definition
|
|
699
|
+
*/
|
|
542
700
|
export const getPostApiV1FieldDefinitionsUrl = () => {
|
|
543
701
|
return `/api/v1/field-definitions`;
|
|
544
702
|
};
|
|
@@ -550,6 +708,10 @@ export const postApiV1FieldDefinitions = async (createUpdateFieldDefinitionDto,
|
|
|
550
708
|
body: JSON.stringify(createUpdateFieldDefinitionDto)
|
|
551
709
|
});
|
|
552
710
|
};
|
|
711
|
+
/**
|
|
712
|
+
* Returns a single field definition by ID.
|
|
713
|
+
* @summary Get a field definition
|
|
714
|
+
*/
|
|
553
715
|
export const getGetApiV1FieldDefinitionsIdUrl = (id) => {
|
|
554
716
|
return `/api/v1/field-definitions/${id}`;
|
|
555
717
|
};
|
|
@@ -559,6 +721,13 @@ export const getApiV1FieldDefinitionsId = async (id, options) => {
|
|
|
559
721
|
method: 'GET'
|
|
560
722
|
});
|
|
561
723
|
};
|
|
724
|
+
/**
|
|
725
|
+
* Full replacement update. Applies the same validation as `POST`. Note
|
|
726
|
+
that mutating a field definition affects every form that references it —
|
|
727
|
+
clients should consider creating a new definition rather than editing one
|
|
728
|
+
already in wide use.
|
|
729
|
+
* @summary Replace a field definition
|
|
730
|
+
*/
|
|
562
731
|
export const getPutApiV1FieldDefinitionsIdUrl = (id) => {
|
|
563
732
|
return `/api/v1/field-definitions/${id}`;
|
|
564
733
|
};
|
|
@@ -570,6 +739,11 @@ export const putApiV1FieldDefinitionsId = async (id, createUpdateFieldDefinition
|
|
|
570
739
|
body: JSON.stringify(createUpdateFieldDefinitionDto)
|
|
571
740
|
});
|
|
572
741
|
};
|
|
742
|
+
/**
|
|
743
|
+
* Returns `409 Conflict` if any `FormField` references this
|
|
744
|
+
definition. Detach the definition from all forms before deleting.
|
|
745
|
+
* @summary Delete a field definition
|
|
746
|
+
*/
|
|
573
747
|
export const getDeleteApiV1FieldDefinitionsIdUrl = (id) => {
|
|
574
748
|
return `/api/v1/field-definitions/${id}`;
|
|
575
749
|
};
|
|
@@ -579,6 +753,11 @@ export const deleteApiV1FieldDefinitionsId = async (id, options) => {
|
|
|
579
753
|
method: 'DELETE'
|
|
580
754
|
});
|
|
581
755
|
};
|
|
756
|
+
/**
|
|
757
|
+
* Returns form metadata (no children). Supports `search` filter and
|
|
758
|
+
cursor pagination.
|
|
759
|
+
* @summary List form definitions
|
|
760
|
+
*/
|
|
582
761
|
export const getGetApiV1FormDefinitionsUrl = (params) => {
|
|
583
762
|
const normalizedParams = new URLSearchParams();
|
|
584
763
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -595,6 +774,14 @@ export const getApiV1FormDefinitions = async (params, options) => {
|
|
|
595
774
|
method: 'GET'
|
|
596
775
|
});
|
|
597
776
|
};
|
|
777
|
+
/**
|
|
778
|
+
* Creates an empty form with `version = 1` and an empty layout.
|
|
779
|
+
`submitterIdentity` defaults to `email-required` if omitted; choose
|
|
780
|
+
`authenticated` or `anonymous` only with intent — `anonymous`
|
|
781
|
+
forms cannot use `add-submitter-contact` actions or
|
|
782
|
+
`derivedValue = submitter`.
|
|
783
|
+
* @summary Create a form definition
|
|
784
|
+
*/
|
|
598
785
|
export const getPostApiV1FormDefinitionsUrl = () => {
|
|
599
786
|
return `/api/v1/form-definitions`;
|
|
600
787
|
};
|
|
@@ -606,6 +793,12 @@ export const postApiV1FormDefinitions = async (createFormDefinitionDto, options)
|
|
|
606
793
|
body: JSON.stringify(createFormDefinitionDto)
|
|
607
794
|
});
|
|
608
795
|
};
|
|
796
|
+
/**
|
|
797
|
+
* Returns the form's top-level record including its `layout`. Does not
|
|
798
|
+
expand children — use `GET /form-definitions/{id}/full` for a
|
|
799
|
+
fully-hydrated form, or the child collection endpoints for individual lists.
|
|
800
|
+
* @summary Get a form definition
|
|
801
|
+
*/
|
|
609
802
|
export const getGetApiV1FormDefinitionsIdUrl = (id) => {
|
|
610
803
|
return `/api/v1/form-definitions/${id}`;
|
|
611
804
|
};
|
|
@@ -615,6 +808,16 @@ export const getApiV1FormDefinitionsId = async (id, options) => {
|
|
|
615
808
|
method: 'GET'
|
|
616
809
|
});
|
|
617
810
|
};
|
|
811
|
+
/**
|
|
812
|
+
* Updates name, description, `submitterIdentity`, and `layout`.
|
|
813
|
+
Increments `version` and updates `updatedAt`. Enforces all Layout
|
|
814
|
+
validation rules (every form field and element must appear in the layout
|
|
815
|
+
exactly once; ids must belong to this form; `type` must match the
|
|
816
|
+
referenced entity; `colSpan` must be 1–12) and the cross-table save-time
|
|
817
|
+
rules (e.g. `add-submitter-contact` invalid when switching to
|
|
818
|
+
`anonymous`).
|
|
819
|
+
* @summary Update a form definition
|
|
820
|
+
*/
|
|
618
821
|
export const getPutApiV1FormDefinitionsIdUrl = (id) => {
|
|
619
822
|
return `/api/v1/form-definitions/${id}`;
|
|
620
823
|
};
|
|
@@ -626,6 +829,13 @@ export const putApiV1FormDefinitionsId = async (id, updateFormDefinitionDto, opt
|
|
|
626
829
|
body: JSON.stringify(updateFormDefinitionDto)
|
|
627
830
|
});
|
|
628
831
|
};
|
|
832
|
+
/**
|
|
833
|
+
* Cascades to all child records: fields, elements, actions, rules, and
|
|
834
|
+
submissions. Retention policy for `FormSubmission` records is not
|
|
835
|
+
defined by this API — consuming products should archive submission data
|
|
836
|
+
before deletion if needed.
|
|
837
|
+
* @summary Delete a form definition
|
|
838
|
+
*/
|
|
629
839
|
export const getDeleteApiV1FormDefinitionsIdUrl = (id) => {
|
|
630
840
|
return `/api/v1/form-definitions/${id}`;
|
|
631
841
|
};
|
|
@@ -635,6 +845,13 @@ export const deleteApiV1FormDefinitionsId = async (id, options) => {
|
|
|
635
845
|
method: 'DELETE'
|
|
636
846
|
});
|
|
637
847
|
};
|
|
848
|
+
/**
|
|
849
|
+
* Returns the form definition with `fields`, `elements`,
|
|
850
|
+
`actions`, and `rules` inlined. Intended for the form builder UI
|
|
851
|
+
and rendering engines that need a complete picture in one request. Prefer
|
|
852
|
+
the individual child endpoints when only one child collection is needed.
|
|
853
|
+
* @summary Get a form with all children expanded
|
|
854
|
+
*/
|
|
638
855
|
export const getGetApiV1FormDefinitionsIdFullUrl = (id) => {
|
|
639
856
|
return `/api/v1/form-definitions/${id}/full`;
|
|
640
857
|
};
|
|
@@ -644,6 +861,12 @@ export const getApiV1FormDefinitionsIdFull = async (id, options) => {
|
|
|
644
861
|
method: 'GET'
|
|
645
862
|
});
|
|
646
863
|
};
|
|
864
|
+
/**
|
|
865
|
+
* Returns the static content elements (headers, markdown blocks, cards) on
|
|
866
|
+
the form. Order is determined by the form's `layout`, not by this
|
|
867
|
+
list.
|
|
868
|
+
* @summary List form elements
|
|
869
|
+
*/
|
|
647
870
|
export const getGetApiV1FormDefinitionsFormIdElementsUrl = (formId) => {
|
|
648
871
|
return `/api/v1/form-definitions/${formId}/elements`;
|
|
649
872
|
};
|
|
@@ -653,6 +876,14 @@ export const getApiV1FormDefinitionsFormIdElements = async (formId, options) =>
|
|
|
653
876
|
method: 'GET'
|
|
654
877
|
});
|
|
655
878
|
};
|
|
879
|
+
/**
|
|
880
|
+
* Creates a static content element. `header` elements require
|
|
881
|
+
`headerRank` (1–4); `card` elements may carry `cardIcon`
|
|
882
|
+
(`info`, `warning`, `important`); `markdown` and
|
|
883
|
+
`card` elements support Markdown in `text`. Increments the form's
|
|
884
|
+
`version`.
|
|
885
|
+
* @summary Add an element to a form
|
|
886
|
+
*/
|
|
656
887
|
export const getPostApiV1FormDefinitionsFormIdElementsUrl = (formId) => {
|
|
657
888
|
return `/api/v1/form-definitions/${formId}/elements`;
|
|
658
889
|
};
|
|
@@ -664,6 +895,11 @@ export const postApiV1FormDefinitionsFormIdElements = async (formId, createUpdat
|
|
|
664
895
|
body: JSON.stringify(createUpdateFormElementDto)
|
|
665
896
|
});
|
|
666
897
|
};
|
|
898
|
+
/**
|
|
899
|
+
* Updates element content and presentation. Applies the same per-type
|
|
900
|
+
constraints as `POST`. Increments the form's `version`.
|
|
901
|
+
* @summary Update a form element
|
|
902
|
+
*/
|
|
667
903
|
export const getPutApiV1FormDefinitionsFormIdElementsElementIdUrl = (formId, elementId) => {
|
|
668
904
|
return `/api/v1/form-definitions/${formId}/elements/${elementId}`;
|
|
669
905
|
};
|
|
@@ -675,6 +911,11 @@ export const putApiV1FormDefinitionsFormIdElementsElementId = async (formId, ele
|
|
|
675
911
|
body: JSON.stringify(createUpdateFormElementDto)
|
|
676
912
|
});
|
|
677
913
|
};
|
|
914
|
+
/**
|
|
915
|
+
* Removes the element from `layout` and cascades to any rules targeting
|
|
916
|
+
it. Increments the form's `version`.
|
|
917
|
+
* @summary Remove an element from a form
|
|
918
|
+
*/
|
|
678
919
|
export const getDeleteApiV1FormDefinitionsFormIdElementsElementIdUrl = (formId, elementId) => {
|
|
679
920
|
return `/api/v1/form-definitions/${formId}/elements/${elementId}`;
|
|
680
921
|
};
|
|
@@ -684,6 +925,11 @@ export const deleteApiV1FormDefinitionsFormIdElementsElementId = async (formId,
|
|
|
684
925
|
method: 'DELETE'
|
|
685
926
|
});
|
|
686
927
|
};
|
|
928
|
+
/**
|
|
929
|
+
* Returns all rules on the form. Optionally filter by
|
|
930
|
+
`sourceFormFieldId` to fetch only rules driven by a specific field.
|
|
931
|
+
* @summary List conditional rules
|
|
932
|
+
*/
|
|
687
933
|
export const getGetApiV1FormDefinitionsFormIdRulesUrl = (formId, params) => {
|
|
688
934
|
const normalizedParams = new URLSearchParams();
|
|
689
935
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -700,6 +946,16 @@ export const getApiV1FormDefinitionsFormIdRules = async (formId, params, options
|
|
|
700
946
|
method: 'GET'
|
|
701
947
|
});
|
|
702
948
|
};
|
|
949
|
+
/**
|
|
950
|
+
* Creates a rule that applies an effect to a target field or element when the
|
|
951
|
+
source field's value matches `triggerValue`. Enforces effect/target-type
|
|
952
|
+
compatibility (field-only effects vs element-only effects), same-form
|
|
953
|
+
constraint on source and target, and `setValue` non-null when
|
|
954
|
+
`effect = set-value`. `set-value` may target a hidden field — this
|
|
955
|
+
is the intended mechanism for populating Matter fields not exposed to the
|
|
956
|
+
submitter. Increments the form's `version`.
|
|
957
|
+
* @summary Add a conditional rule
|
|
958
|
+
*/
|
|
703
959
|
export const getPostApiV1FormDefinitionsFormIdRulesUrl = (formId) => {
|
|
704
960
|
return `/api/v1/form-definitions/${formId}/rules`;
|
|
705
961
|
};
|
|
@@ -711,6 +967,11 @@ export const postApiV1FormDefinitionsFormIdRules = async (formId, createUpdateFo
|
|
|
711
967
|
body: JSON.stringify(createUpdateFormFieldRuleDto)
|
|
712
968
|
});
|
|
713
969
|
};
|
|
970
|
+
/**
|
|
971
|
+
* Updates rule configuration. Applies the same validation as `POST`.
|
|
972
|
+
Increments the form's `version`.
|
|
973
|
+
* @summary Update a conditional rule
|
|
974
|
+
*/
|
|
714
975
|
export const getPutApiV1FormDefinitionsFormIdRulesRuleIdUrl = (formId, ruleId) => {
|
|
715
976
|
return `/api/v1/form-definitions/${formId}/rules/${ruleId}`;
|
|
716
977
|
};
|
|
@@ -722,6 +983,10 @@ export const putApiV1FormDefinitionsFormIdRulesRuleId = async (formId, ruleId, c
|
|
|
722
983
|
body: JSON.stringify(createUpdateFormFieldRuleDto)
|
|
723
984
|
});
|
|
724
985
|
};
|
|
986
|
+
/**
|
|
987
|
+
* Removes the rule. Does not affect the source field or target.
|
|
988
|
+
* @summary Delete a conditional rule
|
|
989
|
+
*/
|
|
725
990
|
export const getDeleteApiV1FormDefinitionsFormIdRulesRuleIdUrl = (formId, ruleId) => {
|
|
726
991
|
return `/api/v1/form-definitions/${formId}/rules/${ruleId}`;
|
|
727
992
|
};
|
|
@@ -731,6 +996,11 @@ export const deleteApiV1FormDefinitionsFormIdRulesRuleId = async (formId, ruleId
|
|
|
731
996
|
method: 'DELETE'
|
|
732
997
|
});
|
|
733
998
|
};
|
|
999
|
+
/**
|
|
1000
|
+
* Returns all `FormField` instances on the form, each with its embedded
|
|
1001
|
+
`FieldDefinition`.
|
|
1002
|
+
* @summary List form fields
|
|
1003
|
+
*/
|
|
734
1004
|
export const getGetApiV1FormDefinitionsFormIdFieldsUrl = (formId) => {
|
|
735
1005
|
return `/api/v1/form-definitions/${formId}/fields`;
|
|
736
1006
|
};
|
|
@@ -740,6 +1010,19 @@ export const getApiV1FormDefinitionsFormIdFields = async (formId, options) => {
|
|
|
740
1010
|
method: 'GET'
|
|
741
1011
|
});
|
|
742
1012
|
};
|
|
1013
|
+
/**
|
|
1014
|
+
* Instantiates a `FieldDefinition` on the form. Enforces all Form Field
|
|
1015
|
+
validation rules: file fields must set `attachToMatter` and
|
|
1016
|
+
`attachToEmailActionIds` and must route to at least one destination;
|
|
1017
|
+
`matter-note` fields must set `noteActionId` pointing to a
|
|
1018
|
+
`create-note` action on the same form; `attachToEmailActionIds`
|
|
1019
|
+
entries must reference email actions on the same form;
|
|
1020
|
+
`attachToMatter = true` requires a `create-*-matter` action on the
|
|
1021
|
+
form; module-scoped field definitions must match the form's target module.
|
|
1022
|
+
Increments the form's `version`. A given field definition may appear on
|
|
1023
|
+
a form at most once.
|
|
1024
|
+
* @summary Add a field to a form
|
|
1025
|
+
*/
|
|
743
1026
|
export const getPostApiV1FormDefinitionsFormIdFieldsUrl = (formId) => {
|
|
744
1027
|
return `/api/v1/form-definitions/${formId}/fields`;
|
|
745
1028
|
};
|
|
@@ -751,6 +1034,10 @@ export const postApiV1FormDefinitionsFormIdFields = async (formId, createUpdateF
|
|
|
751
1034
|
body: JSON.stringify(createUpdateFormFieldDto)
|
|
752
1035
|
});
|
|
753
1036
|
};
|
|
1037
|
+
/**
|
|
1038
|
+
* Returns a single form field with its embedded field definition.
|
|
1039
|
+
* @summary Get a form field
|
|
1040
|
+
*/
|
|
754
1041
|
export const getGetApiV1FormDefinitionsFormIdFieldsFieldIdUrl = (formId, fieldId) => {
|
|
755
1042
|
return `/api/v1/form-definitions/${formId}/fields/${fieldId}`;
|
|
756
1043
|
};
|
|
@@ -760,6 +1047,12 @@ export const getApiV1FormDefinitionsFormIdFieldsFieldId = async (formId, fieldId
|
|
|
760
1047
|
method: 'GET'
|
|
761
1048
|
});
|
|
762
1049
|
};
|
|
1050
|
+
/**
|
|
1051
|
+
* Updates per-form configuration (`visible`, `required`, file
|
|
1052
|
+
routing, note routing). Applies the same validation as `POST`.
|
|
1053
|
+
Increments the form's `version`.
|
|
1054
|
+
* @summary Update a form field
|
|
1055
|
+
*/
|
|
763
1056
|
export const getPutApiV1FormDefinitionsFormIdFieldsFieldIdUrl = (formId, fieldId) => {
|
|
764
1057
|
return `/api/v1/form-definitions/${formId}/fields/${fieldId}`;
|
|
765
1058
|
};
|
|
@@ -771,6 +1064,11 @@ export const putApiV1FormDefinitionsFormIdFieldsFieldId = async (formId, fieldId
|
|
|
771
1064
|
body: JSON.stringify(createUpdateFormFieldDto)
|
|
772
1065
|
});
|
|
773
1066
|
};
|
|
1067
|
+
/**
|
|
1068
|
+
* Cascades to any `FormFieldRule` where this field is the source.
|
|
1069
|
+
Removes the field from `layout`. Increments the form's `version`.
|
|
1070
|
+
* @summary Remove a field from a form
|
|
1071
|
+
*/
|
|
774
1072
|
export const getDeleteApiV1FormDefinitionsFormIdFieldsFieldIdUrl = (formId, fieldId) => {
|
|
775
1073
|
return `/api/v1/form-definitions/${formId}/fields/${fieldId}`;
|
|
776
1074
|
};
|
|
@@ -780,6 +1078,9 @@ export const deleteApiV1FormDefinitionsFormIdFieldsFieldId = async (formId, fiel
|
|
|
780
1078
|
method: 'DELETE'
|
|
781
1079
|
});
|
|
782
1080
|
};
|
|
1081
|
+
/**
|
|
1082
|
+
* @summary Gets the layout configuration for the Create New Matter form for the specified module.
|
|
1083
|
+
*/
|
|
783
1084
|
export const getGetApiV1FormsCreateMatterModuleCodeUrl = (moduleCode) => {
|
|
784
1085
|
return `/api/v1/Forms/create-matter/${moduleCode}`;
|
|
785
1086
|
};
|
|
@@ -789,6 +1090,14 @@ export const getApiV1FormsCreateMatterModuleCode = async (moduleCode, options) =
|
|
|
789
1090
|
method: 'GET'
|
|
790
1091
|
});
|
|
791
1092
|
};
|
|
1093
|
+
/**
|
|
1094
|
+
* Returns all actions configured to fire when the form is submitted.
|
|
1095
|
+
Field-driven actions (`create-note`, `create-*-matter`) interact
|
|
1096
|
+
with `FormField` routing; automatic actions (`email`,
|
|
1097
|
+
`set-matter-field`, `add-submitter-contact`) fire regardless of
|
|
1098
|
+
field input.
|
|
1099
|
+
* @summary List submission actions
|
|
1100
|
+
*/
|
|
792
1101
|
export const getGetApiV1FormDefinitionsFormIdActionsUrl = (formId) => {
|
|
793
1102
|
return `/api/v1/form-definitions/${formId}/actions`;
|
|
794
1103
|
};
|
|
@@ -798,6 +1107,18 @@ export const getApiV1FormDefinitionsFormIdActions = async (formId, options) => {
|
|
|
798
1107
|
method: 'GET'
|
|
799
1108
|
});
|
|
800
1109
|
};
|
|
1110
|
+
/**
|
|
1111
|
+
* Creates a submission action. Enforces all Submission Action validation
|
|
1112
|
+
rules: `email` actions require `emailSubject`, `emailBody`,
|
|
1113
|
+
`emailRecipients`, and `attachSubmissionCopy`;
|
|
1114
|
+
`set-matter-field` requires `matterFieldCode` and
|
|
1115
|
+
`derivedValue`; `targetMatter = 'created-matter'` requires a
|
|
1116
|
+
sibling `create-*-matter` action on the same form; a form may have at
|
|
1117
|
+
most one `create-*-matter` action; `add-submitter-contact` and
|
|
1118
|
+
`derivedValue = submitter` are invalid on `anonymous` forms.
|
|
1119
|
+
Increments the form's `version`.
|
|
1120
|
+
* @summary Add a submission action
|
|
1121
|
+
*/
|
|
801
1122
|
export const getPostApiV1FormDefinitionsFormIdActionsUrl = (formId) => {
|
|
802
1123
|
return `/api/v1/form-definitions/${formId}/actions`;
|
|
803
1124
|
};
|
|
@@ -809,6 +1130,11 @@ export const postApiV1FormDefinitionsFormIdActions = async (formId, createUpdate
|
|
|
809
1130
|
body: JSON.stringify(createUpdateFormSubmissionActionDto)
|
|
810
1131
|
});
|
|
811
1132
|
};
|
|
1133
|
+
/**
|
|
1134
|
+
* Updates action configuration. Applies the same validation as `POST`.
|
|
1135
|
+
Increments the form's `version`.
|
|
1136
|
+
* @summary Update a submission action
|
|
1137
|
+
*/
|
|
812
1138
|
export const getPutApiV1FormDefinitionsFormIdActionsActionIdUrl = (formId, actionId) => {
|
|
813
1139
|
return `/api/v1/form-definitions/${formId}/actions/${actionId}`;
|
|
814
1140
|
};
|
|
@@ -820,6 +1146,12 @@ export const putApiV1FormDefinitionsFormIdActionsActionId = async (formId, actio
|
|
|
820
1146
|
body: JSON.stringify(createUpdateFormSubmissionActionDto)
|
|
821
1147
|
});
|
|
822
1148
|
};
|
|
1149
|
+
/**
|
|
1150
|
+
* Returns `409 Conflict` if any `FormField.noteActionId` or
|
|
1151
|
+
`FormField.attachToEmailActionIds` references this action. Detach the
|
|
1152
|
+
field routing before deleting.
|
|
1153
|
+
* @summary Remove a submission action
|
|
1154
|
+
*/
|
|
823
1155
|
export const getDeleteApiV1FormDefinitionsFormIdActionsActionIdUrl = (formId, actionId) => {
|
|
824
1156
|
return `/api/v1/form-definitions/${formId}/actions/${actionId}`;
|
|
825
1157
|
};
|
|
@@ -829,6 +1161,12 @@ export const deleteApiV1FormDefinitionsFormIdActionsActionId = async (formId, ac
|
|
|
829
1161
|
method: 'DELETE'
|
|
830
1162
|
});
|
|
831
1163
|
};
|
|
1164
|
+
/**
|
|
1165
|
+
* Returns submissions ordered by `submittedAt`. Supports
|
|
1166
|
+
`submittedAfter` / `submittedBefore` date range filters and
|
|
1167
|
+
cursor pagination.
|
|
1168
|
+
* @summary List submissions for a form
|
|
1169
|
+
*/
|
|
832
1170
|
export const getGetApiV1FormDefinitionsFormIdSubmissionsUrl = (formId, params) => {
|
|
833
1171
|
const normalizedParams = new URLSearchParams();
|
|
834
1172
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -845,6 +1183,18 @@ export const getApiV1FormDefinitionsFormIdSubmissions = async (formId, params, o
|
|
|
845
1183
|
method: 'GET'
|
|
846
1184
|
});
|
|
847
1185
|
};
|
|
1186
|
+
/**
|
|
1187
|
+
* Submits a completed form. The consuming product resolves submitter identity
|
|
1188
|
+
(per the form's `submitterIdentity` contract) and AV-scans any
|
|
1189
|
+
uploaded files before calling this endpoint — Mackinac does neither.
|
|
1190
|
+
Mackinac validates that the submitted identity satisfies the form's
|
|
1191
|
+
contract, persists a `FormSubmission` record, executes all configured
|
|
1192
|
+
actions, and records outcomes in `actionResults`. File fields
|
|
1193
|
+
reference previously uploaded files by ID; inline file content is never
|
|
1194
|
+
sent. Platform limits of 10 files and 35 MB total per submission are
|
|
1195
|
+
enforced here.
|
|
1196
|
+
* @summary Submit a form
|
|
1197
|
+
*/
|
|
848
1198
|
export const getPostApiV1FormDefinitionsFormIdSubmissionsUrl = (formId) => {
|
|
849
1199
|
return `/api/v1/form-definitions/${formId}/submissions`;
|
|
850
1200
|
};
|
|
@@ -856,6 +1206,11 @@ export const postApiV1FormDefinitionsFormIdSubmissions = async (formId, createFo
|
|
|
856
1206
|
body: JSON.stringify(createFormSubmissionDto)
|
|
857
1207
|
});
|
|
858
1208
|
};
|
|
1209
|
+
/**
|
|
1210
|
+
* Returns a single submission record including `fieldValues` and
|
|
1211
|
+
`actionResults`.
|
|
1212
|
+
* @summary Get a submission
|
|
1213
|
+
*/
|
|
859
1214
|
export const getGetApiV1FormDefinitionsFormIdSubmissionsSubmissionIdUrl = (formId, submissionId) => {
|
|
860
1215
|
return `/api/v1/form-definitions/${formId}/submissions/${submissionId}`;
|
|
861
1216
|
};
|
|
@@ -865,6 +1220,13 @@ export const getApiV1FormDefinitionsFormIdSubmissionsSubmissionId = async (formI
|
|
|
865
1220
|
method: 'GET'
|
|
866
1221
|
});
|
|
867
1222
|
};
|
|
1223
|
+
/**
|
|
1224
|
+
* Re-executes only the actions with `status = failed` in
|
|
1225
|
+
`actionResults`, using the original `fieldValues` and
|
|
1226
|
+
`submitterReference`. Successful actions are not re-run. Updates
|
|
1227
|
+
`actionResults` in place.
|
|
1228
|
+
* @summary Retry failed actions on a submission
|
|
1229
|
+
*/
|
|
868
1230
|
export const getPostApiV1FormDefinitionsFormIdSubmissionsSubmissionIdRetryUrl = (formId, submissionId) => {
|
|
869
1231
|
return `/api/v1/form-definitions/${formId}/submissions/${submissionId}/retry`;
|
|
870
1232
|
};
|
|
@@ -874,6 +1236,9 @@ export const postApiV1FormDefinitionsFormIdSubmissionsSubmissionIdRetry = async
|
|
|
874
1236
|
method: 'POST'
|
|
875
1237
|
});
|
|
876
1238
|
};
|
|
1239
|
+
/**
|
|
1240
|
+
* @summary Get a paginated list of allegations for a matter.
|
|
1241
|
+
*/
|
|
877
1242
|
export const getGetApiV1MattersMatterIdAllegationsUrl = (matterId, params) => {
|
|
878
1243
|
const normalizedParams = new URLSearchParams();
|
|
879
1244
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -890,6 +1255,9 @@ export const getApiV1MattersMatterIdAllegations = async (matterId, params, optio
|
|
|
890
1255
|
method: 'GET'
|
|
891
1256
|
});
|
|
892
1257
|
};
|
|
1258
|
+
/**
|
|
1259
|
+
* @summary Create a new allegation on a matter.
|
|
1260
|
+
*/
|
|
893
1261
|
export const getPostApiV1MattersMatterIdAllegationsUrl = (matterId) => {
|
|
894
1262
|
return `/api/v1/matters/${matterId}/allegations`;
|
|
895
1263
|
};
|
|
@@ -901,6 +1269,9 @@ export const postApiV1MattersMatterIdAllegations = async (matterId, createMatter
|
|
|
901
1269
|
body: JSON.stringify(createMatterAllegationDto)
|
|
902
1270
|
});
|
|
903
1271
|
};
|
|
1272
|
+
/**
|
|
1273
|
+
* @summary Get a paginated, filtered, sorted view of all allegation stages across a matter.
|
|
1274
|
+
*/
|
|
904
1275
|
export const getGetApiV1MattersMatterIdAllegationsStagesUrl = (matterId, params) => {
|
|
905
1276
|
const normalizedParams = new URLSearchParams();
|
|
906
1277
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -917,6 +1288,9 @@ export const getApiV1MattersMatterIdAllegationsStages = async (matterId, params,
|
|
|
917
1288
|
method: 'GET'
|
|
918
1289
|
});
|
|
919
1290
|
};
|
|
1291
|
+
/**
|
|
1292
|
+
* @summary Get a single allegation by ID.
|
|
1293
|
+
*/
|
|
920
1294
|
export const getGetApiV1MattersAllegationsAllegationIdUrl = (allegationId) => {
|
|
921
1295
|
return `/api/v1/matters/allegations/${allegationId}`;
|
|
922
1296
|
};
|
|
@@ -926,6 +1300,9 @@ export const getApiV1MattersAllegationsAllegationId = async (allegationId, optio
|
|
|
926
1300
|
method: 'GET'
|
|
927
1301
|
});
|
|
928
1302
|
};
|
|
1303
|
+
/**
|
|
1304
|
+
* @summary Update an allegation using JSON Patch (RFC 6902).
|
|
1305
|
+
*/
|
|
929
1306
|
export const getPatchApiV1MattersAllegationsAllegationIdUrl = (allegationId) => {
|
|
930
1307
|
return `/api/v1/matters/allegations/${allegationId}`;
|
|
931
1308
|
};
|
|
@@ -937,6 +1314,9 @@ export const patchApiV1MattersAllegationsAllegationId = async (allegationId, ope
|
|
|
937
1314
|
body: JSON.stringify(operation)
|
|
938
1315
|
});
|
|
939
1316
|
};
|
|
1317
|
+
/**
|
|
1318
|
+
* @summary Delete an allegation (cascade-deletes its stages).
|
|
1319
|
+
*/
|
|
940
1320
|
export const getDeleteApiV1MattersAllegationsAllegationIdUrl = (allegationId) => {
|
|
941
1321
|
return `/api/v1/matters/allegations/${allegationId}`;
|
|
942
1322
|
};
|
|
@@ -946,6 +1326,9 @@ export const deleteApiV1MattersAllegationsAllegationId = async (allegationId, op
|
|
|
946
1326
|
method: 'DELETE'
|
|
947
1327
|
});
|
|
948
1328
|
};
|
|
1329
|
+
/**
|
|
1330
|
+
* @summary Get a paginated list of stages for a specific allegation.
|
|
1331
|
+
*/
|
|
949
1332
|
export const getGetApiV1MattersAllegationsAllegationIdStagesUrl = (allegationId, params) => {
|
|
950
1333
|
const normalizedParams = new URLSearchParams();
|
|
951
1334
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -962,6 +1345,9 @@ export const getApiV1MattersAllegationsAllegationIdStages = async (allegationId,
|
|
|
962
1345
|
method: 'GET'
|
|
963
1346
|
});
|
|
964
1347
|
};
|
|
1348
|
+
/**
|
|
1349
|
+
* @summary Create a new stage on an allegation.
|
|
1350
|
+
*/
|
|
965
1351
|
export const getPostApiV1MattersAllegationsAllegationIdStagesUrl = (allegationId) => {
|
|
966
1352
|
return `/api/v1/matters/allegations/${allegationId}/stages`;
|
|
967
1353
|
};
|
|
@@ -973,6 +1359,9 @@ export const postApiV1MattersAllegationsAllegationIdStages = async (allegationId
|
|
|
973
1359
|
body: JSON.stringify(createMatterAllegationStageDto)
|
|
974
1360
|
});
|
|
975
1361
|
};
|
|
1362
|
+
/**
|
|
1363
|
+
* @summary Get a single stage by ID.
|
|
1364
|
+
*/
|
|
976
1365
|
export const getGetApiV1MattersAllegationsStagesStageIdUrl = (stageId) => {
|
|
977
1366
|
return `/api/v1/matters/allegations/stages/${stageId}`;
|
|
978
1367
|
};
|
|
@@ -982,6 +1371,9 @@ export const getApiV1MattersAllegationsStagesStageId = async (stageId, options)
|
|
|
982
1371
|
method: 'GET'
|
|
983
1372
|
});
|
|
984
1373
|
};
|
|
1374
|
+
/**
|
|
1375
|
+
* @summary Update a stage using JSON Patch (RFC 6902).
|
|
1376
|
+
*/
|
|
985
1377
|
export const getPatchApiV1MattersAllegationsStagesStageIdUrl = (stageId) => {
|
|
986
1378
|
return `/api/v1/matters/allegations/stages/${stageId}`;
|
|
987
1379
|
};
|
|
@@ -993,6 +1385,9 @@ export const patchApiV1MattersAllegationsStagesStageId = async (stageId, operati
|
|
|
993
1385
|
body: JSON.stringify(operation)
|
|
994
1386
|
});
|
|
995
1387
|
};
|
|
1388
|
+
/**
|
|
1389
|
+
* @summary Delete a stage of an allegation.
|
|
1390
|
+
*/
|
|
996
1391
|
export const getDeleteApiV1MattersAllegationsStagesStageIdUrl = (stageId) => {
|
|
997
1392
|
return `/api/v1/matters/allegations/stages/${stageId}`;
|
|
998
1393
|
};
|
|
@@ -1002,6 +1397,14 @@ export const deleteApiV1MattersAllegationsStagesStageId = async (stageId, option
|
|
|
1002
1397
|
method: 'DELETE'
|
|
1003
1398
|
});
|
|
1004
1399
|
};
|
|
1400
|
+
/**
|
|
1401
|
+
* Returns all entries in the platform-maintained registry of Matter fields that
|
|
1402
|
+
`FieldDefinition` and `FormSubmissionAction` records can target.
|
|
1403
|
+
Supports `moduleCode` filtering so the form builder can scope picker
|
|
1404
|
+
contents to a specific module — universal entries, where `moduleCode` is
|
|
1405
|
+
null, are always returned.
|
|
1406
|
+
* @summary List Matter field registry entries
|
|
1407
|
+
*/
|
|
1005
1408
|
export const getGetApiV1MatterFieldRegistryUrl = (params) => {
|
|
1006
1409
|
const normalizedParams = new URLSearchParams();
|
|
1007
1410
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1018,6 +1421,13 @@ export const getApiV1MatterFieldRegistry = async (params, options) => {
|
|
|
1018
1421
|
method: 'GET'
|
|
1019
1422
|
});
|
|
1020
1423
|
};
|
|
1424
|
+
/**
|
|
1425
|
+
* Returns a single registry entry by its dot-notation `code`
|
|
1426
|
+
(e.g. `Matter.Title`). Used to resolve label and `fieldType` for
|
|
1427
|
+
validation when an entry is referenced from a `FieldDefinition` or
|
|
1428
|
+
`set-matter-field` action.
|
|
1429
|
+
* @summary Get a Matter field registry entry
|
|
1430
|
+
*/
|
|
1021
1431
|
export const getGetApiV1MatterFieldRegistryCodeUrl = (code) => {
|
|
1022
1432
|
return `/api/v1/matter-field-registry/${code}`;
|
|
1023
1433
|
};
|
|
@@ -1119,6 +1529,11 @@ export const getApiV1MattersMatterIdFinanceReservesExpensesId = async (matterId,
|
|
|
1119
1529
|
method: 'GET'
|
|
1120
1530
|
});
|
|
1121
1531
|
};
|
|
1532
|
+
/**
|
|
1533
|
+
* @summary Update an expense reserve entry.
|
|
1534
|
+
PATCH operations should target the 'Amount' field to update the per-payment amount.
|
|
1535
|
+
After the update, the matter's total ReservesExpense is recalculated as the sum of all expense reserve payments.
|
|
1536
|
+
*/
|
|
1122
1537
|
export const getPatchApiV1MattersMatterIdFinanceReservesExpensesIdUrl = (matterId, id) => {
|
|
1123
1538
|
return `/api/v1/matters/${matterId}/finance/reserves/expenses/${id}`;
|
|
1124
1539
|
};
|
|
@@ -1130,6 +1545,10 @@ export const patchApiV1MattersMatterIdFinanceReservesExpensesId = async (matterI
|
|
|
1130
1545
|
body: JSON.stringify(operation)
|
|
1131
1546
|
});
|
|
1132
1547
|
};
|
|
1548
|
+
/**
|
|
1549
|
+
* @summary Delete an expense reserve entry.
|
|
1550
|
+
After deletion, the matter's total ReservesExpense is recalculated as the sum of all remaining expense reserve payments.
|
|
1551
|
+
*/
|
|
1133
1552
|
export const getDeleteApiV1MattersMatterIdFinanceReservesExpensesIdUrl = (matterId, id) => {
|
|
1134
1553
|
return `/api/v1/matters/${matterId}/finance/reserves/expenses/${id}`;
|
|
1135
1554
|
};
|
|
@@ -1168,6 +1587,11 @@ export const getApiV1MattersMatterIdFinanceReservesIndemnityId = async (matterId
|
|
|
1168
1587
|
method: 'GET'
|
|
1169
1588
|
});
|
|
1170
1589
|
};
|
|
1590
|
+
/**
|
|
1591
|
+
* @summary Update an indemnity reserve entry.
|
|
1592
|
+
PATCH operations should target the 'Amount' field to update the per-payment amount.
|
|
1593
|
+
After the update, the matter's total ReservesIndemnity is recalculated as the sum of all indemnity reserve payments.
|
|
1594
|
+
*/
|
|
1171
1595
|
export const getPatchApiV1MattersMatterIdFinanceReservesIndemnityIdUrl = (matterId, id) => {
|
|
1172
1596
|
return `/api/v1/matters/${matterId}/finance/reserves/indemnity/${id}`;
|
|
1173
1597
|
};
|
|
@@ -1179,6 +1603,10 @@ export const patchApiV1MattersMatterIdFinanceReservesIndemnityId = async (matter
|
|
|
1179
1603
|
body: JSON.stringify(operation)
|
|
1180
1604
|
});
|
|
1181
1605
|
};
|
|
1606
|
+
/**
|
|
1607
|
+
* @summary Delete an indemnity reserve entry.
|
|
1608
|
+
After deletion, the matter's total ReservesIndemnity is recalculated as the sum of all remaining indemnity reserve payments.
|
|
1609
|
+
*/
|
|
1182
1610
|
export const getDeleteApiV1MattersMatterIdFinanceReservesIndemnityIdUrl = (matterId, id) => {
|
|
1183
1611
|
return `/api/v1/matters/${matterId}/finance/reserves/indemnity/${id}`;
|
|
1184
1612
|
};
|
|
@@ -1412,6 +1840,9 @@ export const deleteApiV1MattersMatterIdFinanceExpendituresContractCounselId = as
|
|
|
1412
1840
|
method: 'DELETE'
|
|
1413
1841
|
});
|
|
1414
1842
|
};
|
|
1843
|
+
/**
|
|
1844
|
+
* @summary Get field metadata for creating a Payment on a Matter.
|
|
1845
|
+
*/
|
|
1415
1846
|
export const getGetApiV1MattersMatterIdFinancePaymentFieldMetadataUrl = (matterId) => {
|
|
1416
1847
|
return `/api/v1/matters/${matterId}/finance/payment-field-metadata`;
|
|
1417
1848
|
};
|
|
@@ -1437,7 +1868,6 @@ export const getApiV1MattersFileNumberExists = async (params, options) => {
|
|
|
1437
1868
|
method: 'GET'
|
|
1438
1869
|
});
|
|
1439
1870
|
};
|
|
1440
|
-
;
|
|
1441
1871
|
export const getGetApiV1MattersLitigationMatterIdUrl = (matterId) => {
|
|
1442
1872
|
return `/api/v1/Matters/litigation/${matterId}`;
|
|
1443
1873
|
};
|
|
@@ -1447,7 +1877,9 @@ export const getApiV1MattersLitigationMatterId = async (matterId, options) => {
|
|
|
1447
1877
|
method: 'GET'
|
|
1448
1878
|
});
|
|
1449
1879
|
};
|
|
1450
|
-
|
|
1880
|
+
/**
|
|
1881
|
+
* @deprecated
|
|
1882
|
+
*/
|
|
1451
1883
|
export const getPatchApiV1MattersLitigationMatterIdUrl = (matterId) => {
|
|
1452
1884
|
return `/api/v1/Matters/litigation/${matterId}`;
|
|
1453
1885
|
};
|
|
@@ -1459,7 +1891,6 @@ export const patchApiV1MattersLitigationMatterId = async (matterId, litigationMa
|
|
|
1459
1891
|
body: JSON.stringify(litigationMatterDto)
|
|
1460
1892
|
});
|
|
1461
1893
|
};
|
|
1462
|
-
;
|
|
1463
1894
|
export const getGetApiV1MattersLitigationMatterIdAbstractUrl = (matterId) => {
|
|
1464
1895
|
return `/api/v1/Matters/litigation/${matterId}/abstract`;
|
|
1465
1896
|
};
|
|
@@ -1469,7 +1900,6 @@ export const getApiV1MattersLitigationMatterIdAbstract = async (matterId, option
|
|
|
1469
1900
|
method: 'GET'
|
|
1470
1901
|
});
|
|
1471
1902
|
};
|
|
1472
|
-
;
|
|
1473
1903
|
export const getPutApiV1MattersLitigationMatterIdAbstractUrl = (matterId) => {
|
|
1474
1904
|
return `/api/v1/Matters/litigation/${matterId}/abstract`;
|
|
1475
1905
|
};
|
|
@@ -1497,7 +1927,6 @@ export const getApiV1MattersFieldsMetadata = async (params, options) => {
|
|
|
1497
1927
|
method: 'GET'
|
|
1498
1928
|
});
|
|
1499
1929
|
};
|
|
1500
|
-
;
|
|
1501
1930
|
export const getGetApiV1MattersFieldsMetadataDepartmentUrl = (params) => {
|
|
1502
1931
|
const normalizedParams = new URLSearchParams();
|
|
1503
1932
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1514,7 +1943,6 @@ export const getApiV1MattersFieldsMetadataDepartment = async (params, options) =
|
|
|
1514
1943
|
method: 'GET'
|
|
1515
1944
|
});
|
|
1516
1945
|
};
|
|
1517
|
-
;
|
|
1518
1946
|
export const getGetApiV1MattersFieldsMetadataAccountUrl = (params) => {
|
|
1519
1947
|
const normalizedParams = new URLSearchParams();
|
|
1520
1948
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1531,7 +1959,6 @@ export const getApiV1MattersFieldsMetadataAccount = async (params, options) => {
|
|
|
1531
1959
|
method: 'GET'
|
|
1532
1960
|
});
|
|
1533
1961
|
};
|
|
1534
|
-
;
|
|
1535
1962
|
export const getGetApiV1MattersFieldsMetadataAbstractUrl = () => {
|
|
1536
1963
|
return `/api/v1/Matters/fields/metadata/abstract`;
|
|
1537
1964
|
};
|
|
@@ -1541,6 +1968,10 @@ export const getApiV1MattersFieldsMetadataAbstract = async (options) => {
|
|
|
1541
1968
|
method: 'GET'
|
|
1542
1969
|
});
|
|
1543
1970
|
};
|
|
1971
|
+
/**
|
|
1972
|
+
* @summary Gets consolidated field metadata for creating a Matter in the specified module.
|
|
1973
|
+
This aggregation endpoint returns metadata for all fields needed to render the Create Matter form.
|
|
1974
|
+
*/
|
|
1544
1975
|
export const getGetApiV1MattersFieldsMetadataCreateUrl = (params) => {
|
|
1545
1976
|
const normalizedParams = new URLSearchParams();
|
|
1546
1977
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1557,7 +1988,9 @@ export const getApiV1MattersFieldsMetadataCreate = async (params, options) => {
|
|
|
1557
1988
|
method: 'GET'
|
|
1558
1989
|
});
|
|
1559
1990
|
};
|
|
1560
|
-
|
|
1991
|
+
/**
|
|
1992
|
+
* @summary Adds a new Note to a Matter.
|
|
1993
|
+
*/
|
|
1561
1994
|
export const getPostApiV1MattersMatterIdNotesUrl = (matterId) => {
|
|
1562
1995
|
return `/api/v1/Matters/${matterId}/notes`;
|
|
1563
1996
|
};
|
|
@@ -1569,7 +2002,9 @@ export const postApiV1MattersMatterIdNotes = async (matterId, noteDto, options)
|
|
|
1569
2002
|
body: JSON.stringify(noteDto)
|
|
1570
2003
|
});
|
|
1571
2004
|
};
|
|
1572
|
-
|
|
2005
|
+
/**
|
|
2006
|
+
* @summary Get all the Notes on a given Matter without their content.
|
|
2007
|
+
*/
|
|
1573
2008
|
export const getGetApiV1MattersMatterIdNotesUrl = (matterId) => {
|
|
1574
2009
|
return `/api/v1/Matters/${matterId}/notes`;
|
|
1575
2010
|
};
|
|
@@ -1579,7 +2014,9 @@ export const getApiV1MattersMatterIdNotes = async (matterId, options) => {
|
|
|
1579
2014
|
method: 'GET'
|
|
1580
2015
|
});
|
|
1581
2016
|
};
|
|
1582
|
-
|
|
2017
|
+
/**
|
|
2018
|
+
* @summary Updates an existing Note on a Matter, overwriting the existing Note.
|
|
2019
|
+
*/
|
|
1583
2020
|
export const getPutApiV1MattersNotesNoteIdUrl = (noteId) => {
|
|
1584
2021
|
return `/api/v1/Matters/notes/${noteId}`;
|
|
1585
2022
|
};
|
|
@@ -1591,6 +2028,9 @@ export const putApiV1MattersNotesNoteId = async (noteId, noteDto, options) => {
|
|
|
1591
2028
|
body: JSON.stringify(noteDto)
|
|
1592
2029
|
});
|
|
1593
2030
|
};
|
|
2031
|
+
/**
|
|
2032
|
+
* @summary Get the content of a specific Note.
|
|
2033
|
+
*/
|
|
1594
2034
|
export const getGetApiV1MattersNotesNoteIdUrl = (noteId) => {
|
|
1595
2035
|
return `/api/v1/Matters/notes/${noteId}`;
|
|
1596
2036
|
};
|
|
@@ -1600,6 +2040,9 @@ export const getApiV1MattersNotesNoteId = async (noteId, options) => {
|
|
|
1600
2040
|
method: 'GET'
|
|
1601
2041
|
});
|
|
1602
2042
|
};
|
|
2043
|
+
/**
|
|
2044
|
+
* @summary Deletes the Note with the given ID.
|
|
2045
|
+
*/
|
|
1603
2046
|
export const getDeleteApiV1MattersNotesNoteIdUrl = (noteId) => {
|
|
1604
2047
|
return `/api/v1/Matters/notes/${noteId}`;
|
|
1605
2048
|
};
|
|
@@ -1609,6 +2052,9 @@ export const deleteApiV1MattersNotesNoteId = async (noteId, options) => {
|
|
|
1609
2052
|
method: 'DELETE'
|
|
1610
2053
|
});
|
|
1611
2054
|
};
|
|
2055
|
+
/**
|
|
2056
|
+
* @summary Adds a new party to a matter.
|
|
2057
|
+
*/
|
|
1612
2058
|
export const getPostApiV1MattersMatterIdPartiesUrl = (matterId) => {
|
|
1613
2059
|
return `/api/v1/Matters/${matterId}/parties`;
|
|
1614
2060
|
};
|
|
@@ -1620,6 +2066,10 @@ export const postApiV1MattersMatterIdParties = async (matterId, matterPartyPostD
|
|
|
1620
2066
|
body: JSON.stringify(matterPartyPostDto)
|
|
1621
2067
|
});
|
|
1622
2068
|
};
|
|
2069
|
+
/**
|
|
2070
|
+
* @summary Gets the Parties associated with the given Matter, including Related Parties
|
|
2071
|
+
for Primary Parties.
|
|
2072
|
+
*/
|
|
1623
2073
|
export const getGetApiV1MattersMatterIdPartiesUrl = (matterId) => {
|
|
1624
2074
|
return `/api/v1/Matters/${matterId}/parties`;
|
|
1625
2075
|
};
|
|
@@ -1629,6 +2079,9 @@ export const getApiV1MattersMatterIdParties = async (matterId, options) => {
|
|
|
1629
2079
|
method: 'GET'
|
|
1630
2080
|
});
|
|
1631
2081
|
};
|
|
2082
|
+
/**
|
|
2083
|
+
* @summary Patches the given Matter Party.
|
|
2084
|
+
*/
|
|
1632
2085
|
export const getPatchApiV1MattersPartiesIdUrl = (id) => {
|
|
1633
2086
|
return `/api/v1/Matters/parties/${id}`;
|
|
1634
2087
|
};
|
|
@@ -1640,6 +2093,9 @@ export const patchApiV1MattersPartiesId = async (id, matterPartyPatchDto, option
|
|
|
1640
2093
|
body: JSON.stringify(matterPartyPatchDto)
|
|
1641
2094
|
});
|
|
1642
2095
|
};
|
|
2096
|
+
/**
|
|
2097
|
+
* @summary Deletes the Party with the given ID from its Matter.
|
|
2098
|
+
*/
|
|
1643
2099
|
export const getDeleteApiV1MattersPartiesIdUrl = (id) => {
|
|
1644
2100
|
return `/api/v1/Matters/parties/${id}`;
|
|
1645
2101
|
};
|
|
@@ -1649,6 +2105,9 @@ export const deleteApiV1MattersPartiesId = async (id, options) => {
|
|
|
1649
2105
|
method: 'DELETE'
|
|
1650
2106
|
});
|
|
1651
2107
|
};
|
|
2108
|
+
/**
|
|
2109
|
+
* @summary Adds a new Related Party to a Matter.
|
|
2110
|
+
*/
|
|
1652
2111
|
export const getPostApiV1MattersMatterIdPartiesPartyIdRelatedUrl = (matterId, partyId) => {
|
|
1653
2112
|
return `/api/v1/Matters/${matterId}/parties/${partyId}/related`;
|
|
1654
2113
|
};
|
|
@@ -1660,6 +2119,9 @@ export const postApiV1MattersMatterIdPartiesPartyIdRelated = async (matterId, pa
|
|
|
1660
2119
|
body: JSON.stringify(matterPersonRelationDto)
|
|
1661
2120
|
});
|
|
1662
2121
|
};
|
|
2122
|
+
/**
|
|
2123
|
+
* @summary Patches the given Related Party on a Matter.
|
|
2124
|
+
*/
|
|
1663
2125
|
export const getPatchApiV1MattersPartiesRelatedIdUrl = (id) => {
|
|
1664
2126
|
return `/api/v1/Matters/parties/related/${id}`;
|
|
1665
2127
|
};
|
|
@@ -1671,6 +2133,9 @@ export const patchApiV1MattersPartiesRelatedId = async (id, matterPartyRelationP
|
|
|
1671
2133
|
body: JSON.stringify(matterPartyRelationPatchDto)
|
|
1672
2134
|
});
|
|
1673
2135
|
};
|
|
2136
|
+
/**
|
|
2137
|
+
* @summary Deletes the Related Party with the given ID from its Matter.
|
|
2138
|
+
*/
|
|
1674
2139
|
export const getDeleteApiV1MattersPartiesRelatedIdUrl = (id) => {
|
|
1675
2140
|
return `/api/v1/Matters/parties/related/${id}`;
|
|
1676
2141
|
};
|
|
@@ -1680,6 +2145,9 @@ export const deleteApiV1MattersPartiesRelatedId = async (id, options) => {
|
|
|
1680
2145
|
method: 'DELETE'
|
|
1681
2146
|
});
|
|
1682
2147
|
};
|
|
2148
|
+
/**
|
|
2149
|
+
* @summary Gets the Related Parties associated with a specific Primary Party.
|
|
2150
|
+
*/
|
|
1683
2151
|
export const getGetApiV1MattersPartiesPrimaryPartyIdRelatedUrl = (primaryPartyId) => {
|
|
1684
2152
|
return `/api/v1/Matters/parties/${primaryPartyId}/related`;
|
|
1685
2153
|
};
|
|
@@ -1689,6 +2157,9 @@ export const getApiV1MattersPartiesPrimaryPartyIdRelated = async (primaryPartyId
|
|
|
1689
2157
|
method: 'GET'
|
|
1690
2158
|
});
|
|
1691
2159
|
};
|
|
2160
|
+
/**
|
|
2161
|
+
* @summary Gets the metadata for Matter Parties (Roles, for example).
|
|
2162
|
+
*/
|
|
1692
2163
|
export const getGetApiV1MattersPartiesMetadataUrl = () => {
|
|
1693
2164
|
return `/api/v1/Matters/parties/metadata`;
|
|
1694
2165
|
};
|
|
@@ -1718,6 +2189,9 @@ export const patchApiV1MattersMatterIdFinance = async (matterId, matterFinancePa
|
|
|
1718
2189
|
body: JSON.stringify(matterFinancePatchDto)
|
|
1719
2190
|
});
|
|
1720
2191
|
};
|
|
2192
|
+
/**
|
|
2193
|
+
* @summary Gets the consolidated Finance field metadata (labels, visibility, options) for a Module.
|
|
2194
|
+
*/
|
|
1721
2195
|
export const getGetApiV1MattersFinanceMetadataUrl = (params) => {
|
|
1722
2196
|
const normalizedParams = new URLSearchParams();
|
|
1723
2197
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1754,6 +2228,9 @@ export const putApiV1MattersMatterIdEvaluation = async (matterId, putApiV1Matter
|
|
|
1754
2228
|
body: JSON.stringify(putApiV1MattersMatterIdEvaluationBody)
|
|
1755
2229
|
});
|
|
1756
2230
|
};
|
|
2231
|
+
/**
|
|
2232
|
+
* @summary Deletes a Matter and its related information.
|
|
2233
|
+
*/
|
|
1757
2234
|
export const getDeleteApiV1MattersMatterIdUrl = (matterId, params) => {
|
|
1758
2235
|
const normalizedParams = new URLSearchParams();
|
|
1759
2236
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1770,6 +2247,11 @@ export const deleteApiV1MattersMatterId = async (matterId, params, options) => {
|
|
|
1770
2247
|
method: 'DELETE'
|
|
1771
2248
|
});
|
|
1772
2249
|
};
|
|
2250
|
+
/**
|
|
2251
|
+
* @summary Gets all open matters assigned to the authenticated user.
|
|
2252
|
+
Corresponds to the Golden Gate my_open_matters view.
|
|
2253
|
+
Reference: https://github.com/CycomDataSystems/golden-gate/blob/main/apis/views/views.py::my_open_matters
|
|
2254
|
+
*/
|
|
1773
2255
|
export const getGetApiV1MattersMyOpenUrl = (params) => {
|
|
1774
2256
|
const normalizedParams = new URLSearchParams();
|
|
1775
2257
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1786,6 +2268,9 @@ export const getApiV1MattersMyOpen = async (params, options) => {
|
|
|
1786
2268
|
method: 'GET'
|
|
1787
2269
|
});
|
|
1788
2270
|
};
|
|
2271
|
+
/**
|
|
2272
|
+
* @summary Gets the next available file number for a specified module.
|
|
2273
|
+
*/
|
|
1789
2274
|
export const getGetApiV1MattersNextFileNumberUrl = (params) => {
|
|
1790
2275
|
const normalizedParams = new URLSearchParams();
|
|
1791
2276
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1802,6 +2287,9 @@ export const getApiV1MattersNextFileNumber = async (params, options) => {
|
|
|
1802
2287
|
method: 'GET'
|
|
1803
2288
|
});
|
|
1804
2289
|
};
|
|
2290
|
+
/**
|
|
2291
|
+
* @summary Creates a new Litigation matter
|
|
2292
|
+
*/
|
|
1805
2293
|
export const getPostApiV1MattersUrl = (params) => {
|
|
1806
2294
|
const normalizedParams = new URLSearchParams();
|
|
1807
2295
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1847,6 +2335,10 @@ export const getApiV2MattersFieldsMetadata = async (params, options) => {
|
|
|
1847
2335
|
method: 'GET'
|
|
1848
2336
|
});
|
|
1849
2337
|
};
|
|
2338
|
+
/**
|
|
2339
|
+
* @summary Module-agnostic GET. Returns a unified MatterDto that covers all modules.
|
|
2340
|
+
The module is derived from BASE.Module on the existing record.
|
|
2341
|
+
*/
|
|
1850
2342
|
export const getGetApiV3MattersMatterIdUrl = (matterId) => {
|
|
1851
2343
|
return `/api/v3/matters/${matterId}`;
|
|
1852
2344
|
};
|
|
@@ -1856,6 +2348,10 @@ export const getApiV3MattersMatterId = async (matterId, options) => {
|
|
|
1856
2348
|
method: 'GET'
|
|
1857
2349
|
});
|
|
1858
2350
|
};
|
|
2351
|
+
/**
|
|
2352
|
+
* @summary Module-agnostic PATCH. Applies a JSON Patch document to update any matter.
|
|
2353
|
+
The module is derived from BASE.Module on the existing record.
|
|
2354
|
+
*/
|
|
1859
2355
|
export const getPatchApiV3MattersMatterIdUrl = (matterId) => {
|
|
1860
2356
|
return `/api/v3/matters/${matterId}`;
|
|
1861
2357
|
};
|
|
@@ -1867,6 +2363,10 @@ export const patchApiV3MattersMatterId = async (matterId, operation, options) =>
|
|
|
1867
2363
|
body: JSON.stringify(operation)
|
|
1868
2364
|
});
|
|
1869
2365
|
};
|
|
2366
|
+
/**
|
|
2367
|
+
* @summary Module-agnostic POST. Creates a new matter for any supported module
|
|
2368
|
+
(LI, CL, 3C, WC, LR, FS, AS).
|
|
2369
|
+
*/
|
|
1870
2370
|
export const getPostApiV3MattersUrl = () => {
|
|
1871
2371
|
return `/api/v3/matters`;
|
|
1872
2372
|
};
|
|
@@ -1878,7 +2378,9 @@ export const postApiV3Matters = async (createMatterDto, options) => {
|
|
|
1878
2378
|
body: JSON.stringify(createMatterDto)
|
|
1879
2379
|
});
|
|
1880
2380
|
};
|
|
1881
|
-
|
|
2381
|
+
/**
|
|
2382
|
+
* @summary Retrieves a person by their ID.
|
|
2383
|
+
*/
|
|
1882
2384
|
export const getGetApiV1PeopleIdUrl = (id) => {
|
|
1883
2385
|
return `/api/v1/People/${id}`;
|
|
1884
2386
|
};
|
|
@@ -1888,7 +2390,9 @@ export const getApiV1PeopleId = async (id, options) => {
|
|
|
1888
2390
|
method: 'GET'
|
|
1889
2391
|
});
|
|
1890
2392
|
};
|
|
1891
|
-
|
|
2393
|
+
/**
|
|
2394
|
+
* @summary Deletes a person by their ID.
|
|
2395
|
+
*/
|
|
1892
2396
|
export const getDeleteApiV1PeopleIdUrl = (id) => {
|
|
1893
2397
|
return `/api/v1/People/${id}`;
|
|
1894
2398
|
};
|
|
@@ -1898,7 +2402,9 @@ export const deleteApiV1PeopleId = async (id, options) => {
|
|
|
1898
2402
|
method: 'DELETE'
|
|
1899
2403
|
});
|
|
1900
2404
|
};
|
|
1901
|
-
|
|
2405
|
+
/**
|
|
2406
|
+
* @summary Applies a JSON Patch to a person.
|
|
2407
|
+
*/
|
|
1902
2408
|
export const getPatchApiV1PeopleIdUrl = (id) => {
|
|
1903
2409
|
return `/api/v1/People/${id}`;
|
|
1904
2410
|
};
|
|
@@ -1910,7 +2416,9 @@ export const patchApiV1PeopleId = async (id, operation, options) => {
|
|
|
1910
2416
|
body: JSON.stringify(operation)
|
|
1911
2417
|
});
|
|
1912
2418
|
};
|
|
1913
|
-
|
|
2419
|
+
/**
|
|
2420
|
+
* @summary Adds a new person.
|
|
2421
|
+
*/
|
|
1914
2422
|
export const getPostApiV1PeopleUrl = () => {
|
|
1915
2423
|
return `/api/v1/People`;
|
|
1916
2424
|
};
|
|
@@ -1922,7 +2430,9 @@ export const postApiV1People = async (personDto, options) => {
|
|
|
1922
2430
|
body: JSON.stringify(personDto)
|
|
1923
2431
|
});
|
|
1924
2432
|
};
|
|
1925
|
-
|
|
2433
|
+
/**
|
|
2434
|
+
* @summary Searches for people based on the provided search criteria and returns a paginated result.
|
|
2435
|
+
*/
|
|
1926
2436
|
export const getPostApiV1PeopleSearchUrl = (params) => {
|
|
1927
2437
|
const normalizedParams = new URLSearchParams();
|
|
1928
2438
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1941,7 +2451,6 @@ export const postApiV1PeopleSearch = async (personSearchDto, params, options) =>
|
|
|
1941
2451
|
body: JSON.stringify(personSearchDto)
|
|
1942
2452
|
});
|
|
1943
2453
|
};
|
|
1944
|
-
;
|
|
1945
2454
|
export const getGetApiV1PermissionsStaffIdUrl = (staffId) => {
|
|
1946
2455
|
return `/api/v1/Permissions/${staffId}`;
|
|
1947
2456
|
};
|
|
@@ -1951,6 +2460,10 @@ export const getApiV1PermissionsStaffId = async (staffId, options) => {
|
|
|
1951
2460
|
method: 'GET'
|
|
1952
2461
|
});
|
|
1953
2462
|
};
|
|
2463
|
+
/**
|
|
2464
|
+
* @summary Exports risk data as of a specified date as an Excel (.xlsx) spreadsheet.
|
|
2465
|
+
Each row represents one risk record; columns map to the properties of each record.
|
|
2466
|
+
*/
|
|
1954
2467
|
export const getGetApiV1ReportsExportRiskDataReportUrl = (params) => {
|
|
1955
2468
|
const normalizedParams = new URLSearchParams();
|
|
1956
2469
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1967,6 +2480,10 @@ export const getApiV1ReportsExportRiskDataReport = async (params, options) => {
|
|
|
1967
2480
|
method: 'GET'
|
|
1968
2481
|
});
|
|
1969
2482
|
};
|
|
2483
|
+
/**
|
|
2484
|
+
* @summary Exports litigation manager report data as an Excel (.xlsx) spreadsheet.
|
|
2485
|
+
Each row represents one matter record; columns map to the properties of each record.
|
|
2486
|
+
*/
|
|
1970
2487
|
export const getGetApiV1ReportsManagerReportUrl = (params) => {
|
|
1971
2488
|
const normalizedParams = new URLSearchParams();
|
|
1972
2489
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1983,7 +2500,18 @@ export const getApiV1ReportsManagerReport = async (params, options) => {
|
|
|
1983
2500
|
method: 'GET'
|
|
1984
2501
|
});
|
|
1985
2502
|
};
|
|
1986
|
-
|
|
2503
|
+
/**
|
|
2504
|
+
* @summary List Auth0 roles available in the tenant.
|
|
2505
|
+
*/
|
|
2506
|
+
export const getGetApiV1RolesUrl = () => {
|
|
2507
|
+
return `/api/v1/roles`;
|
|
2508
|
+
};
|
|
2509
|
+
export const getApiV1Roles = async (options) => {
|
|
2510
|
+
return customFetch(getGetApiV1RolesUrl(), {
|
|
2511
|
+
...options,
|
|
2512
|
+
method: 'GET'
|
|
2513
|
+
});
|
|
2514
|
+
};
|
|
1987
2515
|
export const getPostApiV1SearchMattersUrl = () => {
|
|
1988
2516
|
return `/api/v1/Search/matters`;
|
|
1989
2517
|
};
|
|
@@ -1995,7 +2523,6 @@ export const postApiV1SearchMatters = async (matterSearchRequestDto, options) =>
|
|
|
1995
2523
|
body: JSON.stringify(matterSearchRequestDto)
|
|
1996
2524
|
});
|
|
1997
2525
|
};
|
|
1998
|
-
;
|
|
1999
2526
|
export const getPostApiV1SearchMattersPageNumberUrl = (pageNumber) => {
|
|
2000
2527
|
return `/api/v1/Search/matters/${pageNumber}`;
|
|
2001
2528
|
};
|
|
@@ -2032,6 +2559,9 @@ export const getApiV1SystemManagementConfidentialFooter = async (options) => {
|
|
|
2032
2559
|
method: 'GET'
|
|
2033
2560
|
});
|
|
2034
2561
|
};
|
|
2562
|
+
/**
|
|
2563
|
+
* @summary Get app settings filtered by section and/or item.
|
|
2564
|
+
*/
|
|
2035
2565
|
export const getGetApiV1SystemManagementAppSettingsUrl = (params) => {
|
|
2036
2566
|
const normalizedParams = new URLSearchParams();
|
|
2037
2567
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2048,6 +2578,9 @@ export const getApiV1SystemManagementAppSettings = async (params, options) => {
|
|
|
2048
2578
|
method: 'GET'
|
|
2049
2579
|
});
|
|
2050
2580
|
};
|
|
2581
|
+
/**
|
|
2582
|
+
* @summary Create a new app setting.
|
|
2583
|
+
*/
|
|
2051
2584
|
export const getPostApiV1SystemManagementAppSettingsUrl = () => {
|
|
2052
2585
|
return `/api/v1/system-management/app-settings`;
|
|
2053
2586
|
};
|
|
@@ -2059,6 +2592,9 @@ export const postApiV1SystemManagementAppSettings = async (createCtyLawDto, opti
|
|
|
2059
2592
|
body: JSON.stringify(createCtyLawDto)
|
|
2060
2593
|
});
|
|
2061
2594
|
};
|
|
2595
|
+
/**
|
|
2596
|
+
* @summary Update an app setting using JSON Patch (RFC 6902).
|
|
2597
|
+
*/
|
|
2062
2598
|
export const getPatchApiV1SystemManagementAppSettingsIdUrl = (id) => {
|
|
2063
2599
|
return `/api/v1/system-management/app-settings/${id}`;
|
|
2064
2600
|
};
|
|
@@ -2070,6 +2606,9 @@ export const patchApiV1SystemManagementAppSettingsId = async (id, operation, opt
|
|
|
2070
2606
|
body: JSON.stringify(operation)
|
|
2071
2607
|
});
|
|
2072
2608
|
};
|
|
2609
|
+
/**
|
|
2610
|
+
* @summary Delete an app setting.
|
|
2611
|
+
*/
|
|
2073
2612
|
export const getDeleteApiV1SystemManagementAppSettingsIdUrl = (id) => {
|
|
2074
2613
|
return `/api/v1/system-management/app-settings/${id}`;
|
|
2075
2614
|
};
|
|
@@ -2079,6 +2618,9 @@ export const deleteApiV1SystemManagementAppSettingsId = async (id, options) => {
|
|
|
2079
2618
|
method: 'DELETE'
|
|
2080
2619
|
});
|
|
2081
2620
|
};
|
|
2621
|
+
/**
|
|
2622
|
+
* @summary Triggers the TIPSS sync operation, importing data into ATSystem* tables.
|
|
2623
|
+
*/
|
|
2082
2624
|
export const getPostApiV1TipssSyncUrl = () => {
|
|
2083
2625
|
return `/api/v1/tipss/sync`;
|
|
2084
2626
|
};
|
|
@@ -2090,6 +2632,9 @@ export const postApiV1TipssSync = async (tipssSyncRequestDto, options) => {
|
|
|
2090
2632
|
body: JSON.stringify(tipssSyncRequestDto)
|
|
2091
2633
|
});
|
|
2092
2634
|
};
|
|
2635
|
+
/**
|
|
2636
|
+
* @summary Syncs green form printed records by executing the UpdateGreenFormPrintedRecords stored procedure.
|
|
2637
|
+
*/
|
|
2093
2638
|
export const getPostApiV1TipssGreenFormSyncUrl = (params) => {
|
|
2094
2639
|
const normalizedParams = new URLSearchParams();
|
|
2095
2640
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2106,6 +2651,9 @@ export const postApiV1TipssGreenFormSync = async (params, options) => {
|
|
|
2106
2651
|
method: 'POST'
|
|
2107
2652
|
});
|
|
2108
2653
|
};
|
|
2654
|
+
/**
|
|
2655
|
+
* @summary Searches citations by citation number and/or defendant name.
|
|
2656
|
+
*/
|
|
2109
2657
|
export const getGetApiV1TipssCitationsSearchUrl = (params) => {
|
|
2110
2658
|
const normalizedParams = new URLSearchParams();
|
|
2111
2659
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -2122,6 +2670,175 @@ export const getApiV1TipssCitationsSearch = async (params, options) => {
|
|
|
2122
2670
|
method: 'GET'
|
|
2123
2671
|
});
|
|
2124
2672
|
};
|
|
2673
|
+
/**
|
|
2674
|
+
* Cursor-paginated. Filters: `isBlocked`, `staffId`, and a
|
|
2675
|
+
free-text `search` over StaffId / Auth0 sub / Staff name. Email
|
|
2676
|
+
and display-name search are delegated to Auth0 and not currently
|
|
2677
|
+
part of this filter.
|
|
2678
|
+
* @summary List users in the caller's organization.
|
|
2679
|
+
*/
|
|
2680
|
+
export const getGetApiV1UsersUrl = (params) => {
|
|
2681
|
+
const normalizedParams = new URLSearchParams();
|
|
2682
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2683
|
+
if (value !== undefined) {
|
|
2684
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
2685
|
+
}
|
|
2686
|
+
});
|
|
2687
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2688
|
+
return stringifiedParams.length > 0 ? `/api/v1/users?${stringifiedParams}` : `/api/v1/users`;
|
|
2689
|
+
};
|
|
2690
|
+
export const getApiV1Users = async (params, options) => {
|
|
2691
|
+
return customFetch(getGetApiV1UsersUrl(params), {
|
|
2692
|
+
...options,
|
|
2693
|
+
method: 'GET'
|
|
2694
|
+
});
|
|
2695
|
+
};
|
|
2696
|
+
/**
|
|
2697
|
+
* Discriminated by `mode`: `linkExisting` requires a
|
|
2698
|
+
`staffId` that already exists in the caller's organization;
|
|
2699
|
+
`createNew` requires `staffPayload` and Mackinac generates
|
|
2700
|
+
the next sequential 7-digit StaffId. Enforces the Organization's
|
|
2701
|
+
`seatCount` metadata. Sends an Auth0 Organization invitation
|
|
2702
|
+
when `sendInvitation = true`.
|
|
2703
|
+
* @summary Create a user.
|
|
2704
|
+
*/
|
|
2705
|
+
export const getPostApiV1UsersUrl = () => {
|
|
2706
|
+
return `/api/v1/users`;
|
|
2707
|
+
};
|
|
2708
|
+
export const postApiV1Users = async (createUserDto, options) => {
|
|
2709
|
+
return customFetch(getPostApiV1UsersUrl(), {
|
|
2710
|
+
...options,
|
|
2711
|
+
method: 'POST',
|
|
2712
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2713
|
+
body: JSON.stringify(createUserDto)
|
|
2714
|
+
});
|
|
2715
|
+
};
|
|
2716
|
+
/**
|
|
2717
|
+
* Detail view includes `roleIds` (fetched from Auth0). On
|
|
2718
|
+
transient Auth0 failures the response omits roleIds rather than
|
|
2719
|
+
failing the whole request — caller can retry.
|
|
2720
|
+
* @summary Get a single user.
|
|
2721
|
+
*/
|
|
2722
|
+
export const getGetApiV1UsersIdUrl = (id) => {
|
|
2723
|
+
return `/api/v1/users/${id}`;
|
|
2724
|
+
};
|
|
2725
|
+
export const getApiV1UsersId = async (id, options) => {
|
|
2726
|
+
return customFetch(getGetApiV1UsersIdUrl(id), {
|
|
2727
|
+
...options,
|
|
2728
|
+
method: 'GET'
|
|
2729
|
+
});
|
|
2730
|
+
};
|
|
2731
|
+
/**
|
|
2732
|
+
* Any null body field is left unchanged. `email` and
|
|
2733
|
+
`displayName` propagate to Auth0; `staffName` and
|
|
2734
|
+
`title` propagate to the linked Staff row. Email change
|
|
2735
|
+
re-sets Auth0's email-verified flag to false.
|
|
2736
|
+
* @summary Admin: update a user's profile fields.
|
|
2737
|
+
*/
|
|
2738
|
+
export const getPatchApiV1UsersIdUrl = (id) => {
|
|
2739
|
+
return `/api/v1/users/${id}`;
|
|
2740
|
+
};
|
|
2741
|
+
export const patchApiV1UsersId = async (id, updateUserDto, options) => {
|
|
2742
|
+
return customFetch(getPatchApiV1UsersIdUrl(id), {
|
|
2743
|
+
...options,
|
|
2744
|
+
method: 'PATCH',
|
|
2745
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2746
|
+
body: JSON.stringify(updateUserDto)
|
|
2747
|
+
});
|
|
2748
|
+
};
|
|
2749
|
+
/**
|
|
2750
|
+
* Visible to all authenticated users (no admin permission required).
|
|
2751
|
+
Writes to Auth0; the change takes effect on the user's next session.
|
|
2752
|
+
* @summary Self-service: update your own display name.
|
|
2753
|
+
*/
|
|
2754
|
+
export const getPutApiV1UsersMeUrl = () => {
|
|
2755
|
+
return `/api/v1/users/me`;
|
|
2756
|
+
};
|
|
2757
|
+
export const putApiV1UsersMe = async (updateSelfProfileDto, options) => {
|
|
2758
|
+
return customFetch(getPutApiV1UsersMeUrl(), {
|
|
2759
|
+
...options,
|
|
2760
|
+
method: 'PUT',
|
|
2761
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2762
|
+
body: JSON.stringify(updateSelfProfileDto)
|
|
2763
|
+
});
|
|
2764
|
+
};
|
|
2765
|
+
/**
|
|
2766
|
+
* @summary Block a user (Auth0 blocked + Staff inactive).
|
|
2767
|
+
*/
|
|
2768
|
+
export const getPostApiV1UsersIdBlockUrl = (id) => {
|
|
2769
|
+
return `/api/v1/users/${id}/block`;
|
|
2770
|
+
};
|
|
2771
|
+
export const postApiV1UsersIdBlock = async (id, options) => {
|
|
2772
|
+
return customFetch(getPostApiV1UsersIdBlockUrl(id), {
|
|
2773
|
+
...options,
|
|
2774
|
+
method: 'POST'
|
|
2775
|
+
});
|
|
2776
|
+
};
|
|
2777
|
+
/**
|
|
2778
|
+
* @summary Unblock a user (reverse of block).
|
|
2779
|
+
*/
|
|
2780
|
+
export const getPostApiV1UsersIdUnblockUrl = (id) => {
|
|
2781
|
+
return `/api/v1/users/${id}/unblock`;
|
|
2782
|
+
};
|
|
2783
|
+
export const postApiV1UsersIdUnblock = async (id, options) => {
|
|
2784
|
+
return customFetch(getPostApiV1UsersIdUnblockUrl(id), {
|
|
2785
|
+
...options,
|
|
2786
|
+
method: 'POST'
|
|
2787
|
+
});
|
|
2788
|
+
};
|
|
2789
|
+
/**
|
|
2790
|
+
* @summary Trigger a password-reset email to the user.
|
|
2791
|
+
*/
|
|
2792
|
+
export const getPostApiV1UsersIdPasswordResetUrl = (id) => {
|
|
2793
|
+
return `/api/v1/users/${id}/password-reset`;
|
|
2794
|
+
};
|
|
2795
|
+
export const postApiV1UsersIdPasswordReset = async (id, options) => {
|
|
2796
|
+
return customFetch(getPostApiV1UsersIdPasswordResetUrl(id), {
|
|
2797
|
+
...options,
|
|
2798
|
+
method: 'POST'
|
|
2799
|
+
});
|
|
2800
|
+
};
|
|
2801
|
+
/**
|
|
2802
|
+
* @summary Send (or re-send) an Auth0 Organization invitation.
|
|
2803
|
+
*/
|
|
2804
|
+
export const getPostApiV1UsersIdInvitationUrl = (id) => {
|
|
2805
|
+
return `/api/v1/users/${id}/invitation`;
|
|
2806
|
+
};
|
|
2807
|
+
export const postApiV1UsersIdInvitation = async (id, options) => {
|
|
2808
|
+
return customFetch(getPostApiV1UsersIdInvitationUrl(id), {
|
|
2809
|
+
...options,
|
|
2810
|
+
method: 'POST'
|
|
2811
|
+
});
|
|
2812
|
+
};
|
|
2813
|
+
/**
|
|
2814
|
+
* @summary Assign one or more Auth0 roles to a user within the org.
|
|
2815
|
+
*/
|
|
2816
|
+
export const getPostApiV1UsersIdRolesUrl = (id) => {
|
|
2817
|
+
return `/api/v1/users/${id}/roles`;
|
|
2818
|
+
};
|
|
2819
|
+
export const postApiV1UsersIdRoles = async (id, assignRolesDto, options) => {
|
|
2820
|
+
return customFetch(getPostApiV1UsersIdRolesUrl(id), {
|
|
2821
|
+
...options,
|
|
2822
|
+
method: 'POST',
|
|
2823
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2824
|
+
body: JSON.stringify(assignRolesDto)
|
|
2825
|
+
});
|
|
2826
|
+
};
|
|
2827
|
+
/**
|
|
2828
|
+
* @summary Unassign a single Auth0 role from a user within the org.
|
|
2829
|
+
*/
|
|
2830
|
+
export const getDeleteApiV1UsersIdRolesRoleIdUrl = (id, roleId) => {
|
|
2831
|
+
return `/api/v1/users/${id}/roles/${roleId}`;
|
|
2832
|
+
};
|
|
2833
|
+
export const deleteApiV1UsersIdRolesRoleId = async (id, roleId, options) => {
|
|
2834
|
+
return customFetch(getDeleteApiV1UsersIdRolesRoleIdUrl(id, roleId), {
|
|
2835
|
+
...options,
|
|
2836
|
+
method: 'DELETE'
|
|
2837
|
+
});
|
|
2838
|
+
};
|
|
2839
|
+
/**
|
|
2840
|
+
* @summary Get configuration data for WRP integration
|
|
2841
|
+
*/
|
|
2125
2842
|
export const getGetApiV1WrpConfigUrl = () => {
|
|
2126
2843
|
return `/api/v1/Wrp/config`;
|
|
2127
2844
|
};
|
|
@@ -2131,6 +2848,9 @@ export const getApiV1WrpConfig = async (options) => {
|
|
|
2131
2848
|
method: 'GET'
|
|
2132
2849
|
});
|
|
2133
2850
|
};
|
|
2851
|
+
/**
|
|
2852
|
+
* @summary Get field metadata for the Work Request Portal form
|
|
2853
|
+
*/
|
|
2134
2854
|
export const getGetApiV1WrpMetadataUrl = () => {
|
|
2135
2855
|
return `/api/v1/Wrp/metadata`;
|
|
2136
2856
|
};
|
|
@@ -2140,6 +2860,9 @@ export const getApiV1WrpMetadata = async (options) => {
|
|
|
2140
2860
|
method: 'GET'
|
|
2141
2861
|
});
|
|
2142
2862
|
};
|
|
2863
|
+
/**
|
|
2864
|
+
* @summary Get a database-driven form definition by form key
|
|
2865
|
+
*/
|
|
2143
2866
|
export const getGetApiV1WrpFormsFormKeyUrl = (formKey) => {
|
|
2144
2867
|
return `/api/v1/Wrp/forms/${formKey}`;
|
|
2145
2868
|
};
|
|
@@ -2149,6 +2872,9 @@ export const getApiV1WrpFormsFormKey = async (formKey, options) => {
|
|
|
2149
2872
|
method: 'GET'
|
|
2150
2873
|
});
|
|
2151
2874
|
};
|
|
2875
|
+
/**
|
|
2876
|
+
* @summary Get active code items for a given code type
|
|
2877
|
+
*/
|
|
2152
2878
|
export const getGetApiV1WrpOptionsCodesCodeTypeUrl = (codeType) => {
|
|
2153
2879
|
return `/api/v1/Wrp/options/codes/${codeType}`;
|
|
2154
2880
|
};
|
|
@@ -2158,6 +2884,9 @@ export const getApiV1WrpOptionsCodesCodeType = async (codeType, options) => {
|
|
|
2158
2884
|
method: 'GET'
|
|
2159
2885
|
});
|
|
2160
2886
|
};
|
|
2887
|
+
/**
|
|
2888
|
+
* @summary Get active departments
|
|
2889
|
+
*/
|
|
2161
2890
|
export const getGetApiV1WrpOptionsDepartmentsUrl = () => {
|
|
2162
2891
|
return `/api/v1/Wrp/options/departments`;
|
|
2163
2892
|
};
|
|
@@ -2167,6 +2896,9 @@ export const getApiV1WrpOptionsDepartments = async (options) => {
|
|
|
2167
2896
|
method: 'GET'
|
|
2168
2897
|
});
|
|
2169
2898
|
};
|
|
2899
|
+
/**
|
|
2900
|
+
* @summary Get active accounts
|
|
2901
|
+
*/
|
|
2170
2902
|
export const getGetApiV1WrpOptionsAccountsUrl = () => {
|
|
2171
2903
|
return `/api/v1/Wrp/options/accounts`;
|
|
2172
2904
|
};
|
|
@@ -2176,6 +2908,9 @@ export const getApiV1WrpOptionsAccounts = async (options) => {
|
|
|
2176
2908
|
method: 'GET'
|
|
2177
2909
|
});
|
|
2178
2910
|
};
|
|
2911
|
+
/**
|
|
2912
|
+
* @summary Create a new Assignment Matter for the Work Request Portal
|
|
2913
|
+
*/
|
|
2179
2914
|
export const getPostApiV1WrpAssignmentMatterUrl = () => {
|
|
2180
2915
|
return `/api/v1/Wrp/assignment-matter`;
|
|
2181
2916
|
};
|