@cycomdatasystems/mackinac-sdk 5.1.1 → 5.2.2
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 +271 -14
- package/dist/generated/mackinac.client.js +626 -13
- package/dist/generated/models/actionResultDtoStatus.d.ts +1 -0
- package/dist/generated/models/actionResultDtoStatus.js +1 -0
- package/dist/generated/models/addsDeptDto.d.ts +27 -0
- package/dist/generated/models/addsDeptDto.js +17 -0
- package/dist/generated/models/councilDistrictsViewDto.d.ts +28 -0
- package/dist/generated/models/councilDistrictsViewDto.js +1 -0
- package/dist/generated/models/createFormDefinitionDto.d.ts +5 -0
- package/dist/generated/models/createFormDefinitionDtoDestination.d.ts +23 -0
- package/dist/generated/models/createFormDefinitionDtoDestination.js +20 -0
- package/dist/generated/models/createUpdateFieldDefinitionDto.d.ts +7 -1
- package/dist/generated/models/createUpdateFieldDefinitionDtoFormat.d.ts +25 -0
- package/dist/generated/models/createUpdateFieldDefinitionDtoFormat.js +22 -0
- package/dist/generated/models/createUpdateFieldDefinitionDtoInputType.d.ts +1 -0
- package/dist/generated/models/createUpdateFieldDefinitionDtoInputType.js +1 -0
- package/dist/generated/models/createUpdateFormFieldRuleDto.d.ts +0 -2
- package/dist/generated/models/createUpdateFormFieldRuleDtoEffect.d.ts +0 -1
- package/dist/generated/models/createUpdateFormFieldRuleDtoEffect.js +0 -1
- package/dist/generated/models/createUpdateFormSubmissionActionDto.d.ts +3 -0
- package/dist/generated/models/createUpdateFormSubmissionActionDtoRecipientMode.d.ts +24 -0
- package/dist/generated/models/createUpdateFormSubmissionActionDtoRecipientMode.js +21 -0
- package/dist/generated/models/documentSearchCriteriaDto.d.ts +50 -0
- package/dist/generated/models/documentSearchCriteriaDto.js +17 -0
- package/dist/generated/models/documentSearchResponseDto.d.ts +27 -0
- package/dist/generated/models/documentSearchResponseDto.js +1 -0
- package/dist/generated/models/documentSearchResultDto.d.ts +46 -0
- package/dist/generated/models/documentSearchResultDto.js +17 -0
- package/dist/generated/models/emailSubjectDto.d.ts +23 -0
- package/dist/generated/models/emailSubjectDto.js +17 -0
- package/dist/generated/models/fieldDefinitionDto.d.ts +7 -1
- package/dist/generated/models/fieldDefinitionDtoFormat.d.ts +25 -0
- package/dist/generated/models/fieldDefinitionDtoFormat.js +22 -0
- package/dist/generated/models/fieldDefinitionDtoInputType.d.ts +1 -0
- package/dist/generated/models/fieldDefinitionDtoInputType.js +1 -0
- package/dist/generated/models/fileLimitsDto.d.ts +21 -0
- package/dist/generated/models/fileLimitsDto.js +17 -0
- package/dist/generated/models/fileUploadResultDto.d.ts +33 -0
- package/dist/generated/models/fileUploadResultDto.js +17 -0
- package/dist/generated/models/formDefinitionDto.d.ts +5 -0
- package/dist/generated/models/formDefinitionDtoDestination.d.ts +23 -0
- package/dist/generated/models/formDefinitionDtoDestination.js +20 -0
- package/dist/generated/models/formDefinitionFullDto.d.ts +5 -0
- package/dist/generated/models/formDefinitionFullDtoDestination.d.ts +23 -0
- package/dist/generated/models/formDefinitionFullDtoDestination.js +20 -0
- package/dist/generated/models/formFieldRuleDto.d.ts +0 -2
- package/dist/generated/models/formFieldRuleDtoEffect.d.ts +0 -1
- package/dist/generated/models/formFieldRuleDtoEffect.js +0 -1
- package/dist/generated/models/formSubmissionActionDto.d.ts +3 -0
- package/dist/generated/models/formSubmissionActionDtoRecipientMode.d.ts +24 -0
- package/dist/generated/models/formSubmissionActionDtoRecipientMode.js +21 -0
- package/dist/generated/models/formSubmissionDto.d.ts +6 -0
- package/dist/generated/models/getApiV1CodesDispositionsModuleCodeParams.d.ts +19 -0
- package/dist/generated/models/getApiV1CodesDispositionsModuleCodeParams.js +17 -0
- package/dist/generated/models/getApiV1PeopleStaffModuleCodeParams.d.ts +19 -0
- package/dist/generated/models/getApiV1PeopleStaffModuleCodeParams.js +17 -0
- package/dist/generated/models/getApiV1TimeentriesParams.d.ts +22 -0
- package/dist/generated/models/getApiV1TimeentriesParams.js +17 -0
- package/dist/generated/models/index.d.ts +38 -0
- package/dist/generated/models/index.js +38 -0
- package/dist/generated/models/labelAndPeopleDto.d.ts +27 -0
- package/dist/generated/models/labelAndPeopleDto.js +1 -0
- package/dist/generated/models/labelAndStaffDto.d.ts +26 -0
- package/dist/generated/models/labelAndStaffDto.js +1 -0
- package/dist/generated/models/labelAndVisibilityDto.d.ts +24 -0
- package/dist/generated/models/labelAndVisibilityDto.js +17 -0
- package/dist/generated/models/labelDto.d.ts +23 -0
- package/dist/generated/models/labelDto.js +17 -0
- package/dist/generated/models/matterArchiveRemarksDto.d.ts +30 -0
- package/dist/generated/models/matterArchiveRemarksDto.js +17 -0
- package/dist/generated/models/matterDispositionPatchDto.d.ts +23 -0
- package/dist/generated/models/matterDispositionPatchDto.js +17 -0
- package/dist/generated/models/matterDispositionTextDto.d.ts +23 -0
- package/dist/generated/models/matterDispositionTextDto.js +17 -0
- package/dist/generated/models/matterDto.d.ts +32 -1
- package/dist/generated/models/matterStatusPatchDto.d.ts +23 -0
- package/dist/generated/models/matterStatusPatchDto.js +17 -0
- package/dist/generated/models/matterStatusTextDto.d.ts +23 -0
- package/dist/generated/models/matterStatusTextDto.js +17 -0
- package/dist/generated/models/potdDto.d.ts +23 -0
- package/dist/generated/models/potdDto.js +17 -0
- package/dist/generated/models/selectOptionDto.d.ts +22 -0
- package/dist/generated/models/selectOptionDto.js +17 -0
- package/dist/generated/models/systemAccountsDto.d.ts +27 -0
- package/dist/generated/models/systemAccountsDto.js +1 -0
- package/dist/generated/models/systemDepartmentsDto.d.ts +27 -0
- package/dist/generated/models/systemDepartmentsDto.js +1 -0
- package/dist/generated/models/timeEntryViewDto.d.ts +57 -0
- package/dist/generated/models/timeEntryViewDto.js +17 -0
- package/dist/generated/models/tracksViewDto.d.ts +27 -0
- package/dist/generated/models/tracksViewDto.js +1 -0
- package/dist/generated/models/updateFormDefinitionDto.d.ts +5 -0
- package/dist/generated/models/updateFormDefinitionDtoDestination.d.ts +23 -0
- package/dist/generated/models/updateFormDefinitionDtoDestination.js +20 -0
- package/dist/generated/models/viewCodeDto.d.ts +28 -0
- package/dist/generated/models/viewCodeDto.js +17 -0
- package/dist/generated/models/viewCodeWithTypeDto.d.ts +31 -0
- package/dist/generated/models/viewCodeWithTypeDto.js +17 -0
- package/dist/generated/models/viewStaffDto.d.ts +26 -0
- package/dist/generated/models/viewStaffDto.js +17 -0
- package/dist/generated/models/viewStaffWithTypeDto.d.ts +28 -0
- package/dist/generated/models/viewStaffWithTypeDto.js +17 -0
- package/package.json +1 -1
|
@@ -567,6 +567,102 @@ export const deleteApiV1AllegationsDesiredOutcomesOutcomeId = async (outcomeId,
|
|
|
567
567
|
method: 'DELETE'
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
+
/**
|
|
571
|
+
* @summary Archive remarks for the given matter (MEMOS / base / arc_remarks).
|
|
572
|
+
*/
|
|
573
|
+
export const getGetApiV1ArchiveArchiveremarksMatterIdUrl = (matterId) => {
|
|
574
|
+
return `/api/v1/archive/archiveremarks/${matterId}`;
|
|
575
|
+
};
|
|
576
|
+
export const getApiV1ArchiveArchiveremarksMatterId = async (matterId, options) => {
|
|
577
|
+
return customFetch(getGetApiV1ArchiveArchiveremarksMatterIdUrl(matterId), {
|
|
578
|
+
...options,
|
|
579
|
+
method: 'GET'
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* @summary File-management UDF1 label + visibility flag.
|
|
584
|
+
*/
|
|
585
|
+
export const getGetApiV1ArchiveFmudf1Url = () => {
|
|
586
|
+
return `/api/v1/archive/fmudf1`;
|
|
587
|
+
};
|
|
588
|
+
export const getApiV1ArchiveFmudf1 = async (options) => {
|
|
589
|
+
return customFetch(getGetApiV1ArchiveFmudf1Url(), {
|
|
590
|
+
...options,
|
|
591
|
+
method: 'GET'
|
|
592
|
+
});
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* @summary Record retention label + visibility flag.
|
|
596
|
+
*/
|
|
597
|
+
export const getGetApiV1ArchiveRecordretentionUrl = () => {
|
|
598
|
+
return `/api/v1/archive/recordretention`;
|
|
599
|
+
};
|
|
600
|
+
export const getApiV1ArchiveRecordretention = async (options) => {
|
|
601
|
+
return customFetch(getGetApiV1ArchiveRecordretentionUrl(), {
|
|
602
|
+
...options,
|
|
603
|
+
method: 'GET'
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
* @summary Archive "destroyed date" label.
|
|
608
|
+
*/
|
|
609
|
+
export const getGetApiV1ArchiveArchivedestroyeddatelabelUrl = () => {
|
|
610
|
+
return `/api/v1/archive/archivedestroyeddatelabel`;
|
|
611
|
+
};
|
|
612
|
+
export const getApiV1ArchiveArchivedestroyeddatelabel = async (options) => {
|
|
613
|
+
return customFetch(getGetApiV1ArchiveArchivedestroyeddatelabelUrl(), {
|
|
614
|
+
...options,
|
|
615
|
+
method: 'GET'
|
|
616
|
+
});
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* @summary Archive "scheduled destruction date" label.
|
|
620
|
+
*/
|
|
621
|
+
export const getGetApiV1ArchiveArchivedestructiondatelabelUrl = () => {
|
|
622
|
+
return `/api/v1/archive/archivedestructiondatelabel`;
|
|
623
|
+
};
|
|
624
|
+
export const getApiV1ArchiveArchivedestructiondatelabel = async (options) => {
|
|
625
|
+
return customFetch(getGetApiV1ArchiveArchivedestructiondatelabelUrl(), {
|
|
626
|
+
...options,
|
|
627
|
+
method: 'GET'
|
|
628
|
+
});
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* @summary Archive "destroyed" label.
|
|
632
|
+
*/
|
|
633
|
+
export const getGetApiV1ArchiveArchivedestroyedlabelUrl = () => {
|
|
634
|
+
return `/api/v1/archive/archivedestroyedlabel`;
|
|
635
|
+
};
|
|
636
|
+
export const getApiV1ArchiveArchivedestroyedlabel = async (options) => {
|
|
637
|
+
return customFetch(getGetApiV1ArchiveArchivedestroyedlabelUrl(), {
|
|
638
|
+
...options,
|
|
639
|
+
method: 'GET'
|
|
640
|
+
});
|
|
641
|
+
};
|
|
642
|
+
/**
|
|
643
|
+
* @summary Retention class label.
|
|
644
|
+
*/
|
|
645
|
+
export const getGetApiV1ArchiveRetentionclasslabelUrl = () => {
|
|
646
|
+
return `/api/v1/archive/retentionclasslabel`;
|
|
647
|
+
};
|
|
648
|
+
export const getApiV1ArchiveRetentionclasslabel = async (options) => {
|
|
649
|
+
return customFetch(getGetApiV1ArchiveRetentionclasslabelUrl(), {
|
|
650
|
+
...options,
|
|
651
|
+
method: 'GET'
|
|
652
|
+
});
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* @summary Archive UDF1 (a.k.a. OFR) label.
|
|
656
|
+
*/
|
|
657
|
+
export const getGetApiV1ArchiveUdf1labelUrl = () => {
|
|
658
|
+
return `/api/v1/archive/udf1label`;
|
|
659
|
+
};
|
|
660
|
+
export const getApiV1ArchiveUdf1label = async (options) => {
|
|
661
|
+
return customFetch(getGetApiV1ArchiveUdf1labelUrl(), {
|
|
662
|
+
...options,
|
|
663
|
+
method: 'GET'
|
|
664
|
+
});
|
|
665
|
+
};
|
|
570
666
|
/**
|
|
571
667
|
* @summary Creates an attachment from a document template with token replacement.
|
|
572
668
|
Per §3.2, §4.1, and §6 of the document template specification.
|
|
@@ -665,6 +761,220 @@ export const patchApiV1CodesId = async (id, operation, options) => {
|
|
|
665
761
|
body: JSON.stringify(operation)
|
|
666
762
|
});
|
|
667
763
|
};
|
|
764
|
+
/**
|
|
765
|
+
* @summary Returns action codes (`{moduleCode}ACT`) for the given module.
|
|
766
|
+
*/
|
|
767
|
+
export const getGetApiV1CodesActionsModuleCodeUrl = (moduleCode) => {
|
|
768
|
+
return `/api/v1/Codes/actions/${moduleCode}`;
|
|
769
|
+
};
|
|
770
|
+
export const getApiV1CodesActionsModuleCode = async (moduleCode, options) => {
|
|
771
|
+
return customFetch(getGetApiV1CodesActionsModuleCodeUrl(moduleCode), {
|
|
772
|
+
...options,
|
|
773
|
+
method: 'GET'
|
|
774
|
+
});
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* @summary Returns category codes (`{moduleCode}CAT`) for the given module.
|
|
778
|
+
*/
|
|
779
|
+
export const getGetApiV1CodesCategoriesModuleCodeUrl = (moduleCode) => {
|
|
780
|
+
return `/api/v1/Codes/categories/${moduleCode}`;
|
|
781
|
+
};
|
|
782
|
+
export const getApiV1CodesCategoriesModuleCode = async (moduleCode, options) => {
|
|
783
|
+
return customFetch(getGetApiV1CodesCategoriesModuleCodeUrl(moduleCode), {
|
|
784
|
+
...options,
|
|
785
|
+
method: 'GET'
|
|
786
|
+
});
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* @summary Returns disposition codes (`{moduleCode}DISP`) for the given module.
|
|
790
|
+
Pass `excludeInactive=true` to filter out inactive rows.
|
|
791
|
+
*/
|
|
792
|
+
export const getGetApiV1CodesDispositionsModuleCodeUrl = (moduleCode, params) => {
|
|
793
|
+
const normalizedParams = new URLSearchParams();
|
|
794
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
795
|
+
if (value !== undefined) {
|
|
796
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
const stringifiedParams = normalizedParams.toString();
|
|
800
|
+
return stringifiedParams.length > 0 ? `/api/v1/Codes/dispositions/${moduleCode}?${stringifiedParams}` : `/api/v1/Codes/dispositions/${moduleCode}`;
|
|
801
|
+
};
|
|
802
|
+
export const getApiV1CodesDispositionsModuleCode = async (moduleCode, params, options) => {
|
|
803
|
+
return customFetch(getGetApiV1CodesDispositionsModuleCodeUrl(moduleCode, params), {
|
|
804
|
+
...options,
|
|
805
|
+
method: 'GET'
|
|
806
|
+
});
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* @summary Returns priority codes (`{moduleCode}PRIO`) for the given module.
|
|
810
|
+
*/
|
|
811
|
+
export const getGetApiV1CodesPrioritiesModuleCodeUrl = (moduleCode) => {
|
|
812
|
+
return `/api/v1/Codes/priorities/${moduleCode}`;
|
|
813
|
+
};
|
|
814
|
+
export const getApiV1CodesPrioritiesModuleCode = async (moduleCode, options) => {
|
|
815
|
+
return customFetch(getGetApiV1CodesPrioritiesModuleCodeUrl(moduleCode), {
|
|
816
|
+
...options,
|
|
817
|
+
method: 'GET'
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* @summary Returns status codes (`{moduleCode}STAT`) for the given module.
|
|
822
|
+
*/
|
|
823
|
+
export const getGetApiV1CodesStatusesModuleCodeUrl = (moduleCode) => {
|
|
824
|
+
return `/api/v1/Codes/statuses/${moduleCode}`;
|
|
825
|
+
};
|
|
826
|
+
export const getApiV1CodesStatusesModuleCode = async (moduleCode, options) => {
|
|
827
|
+
return customFetch(getGetApiV1CodesStatusesModuleCodeUrl(moduleCode), {
|
|
828
|
+
...options,
|
|
829
|
+
method: 'GET'
|
|
830
|
+
});
|
|
831
|
+
};
|
|
832
|
+
/**
|
|
833
|
+
* @summary Returns track codes (`{moduleCode}TRAC`) for the given module alongside the
|
|
834
|
+
configurable label from `CTYLAW` (`system/TRACK_LABEL`).
|
|
835
|
+
*/
|
|
836
|
+
export const getGetApiV1CodesTracksModuleCodeUrl = (moduleCode) => {
|
|
837
|
+
return `/api/v1/Codes/tracks/${moduleCode}`;
|
|
838
|
+
};
|
|
839
|
+
export const getApiV1CodesTracksModuleCode = async (moduleCode, options) => {
|
|
840
|
+
return customFetch(getGetApiV1CodesTracksModuleCodeUrl(moduleCode), {
|
|
841
|
+
...options,
|
|
842
|
+
method: 'GET'
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
/**
|
|
846
|
+
* @summary Returns type codes (`{moduleCode}TYPE`) for the given module.
|
|
847
|
+
*/
|
|
848
|
+
export const getGetApiV1CodesTypesModuleCodeUrl = (moduleCode) => {
|
|
849
|
+
return `/api/v1/Codes/types/${moduleCode}`;
|
|
850
|
+
};
|
|
851
|
+
export const getApiV1CodesTypesModuleCode = async (moduleCode, options) => {
|
|
852
|
+
return customFetch(getGetApiV1CodesTypesModuleCodeUrl(moduleCode), {
|
|
853
|
+
...options,
|
|
854
|
+
method: 'GET'
|
|
855
|
+
});
|
|
856
|
+
};
|
|
857
|
+
/**
|
|
858
|
+
* @summary Returns all coin-flip codes (`RE_COINFLIP`).
|
|
859
|
+
*/
|
|
860
|
+
export const getGetApiV1CodesCoinflipsUrl = () => {
|
|
861
|
+
return `/api/v1/Codes/coinflips`;
|
|
862
|
+
};
|
|
863
|
+
export const getApiV1CodesCoinflips = async (options) => {
|
|
864
|
+
return customFetch(getGetApiV1CodesCoinflipsUrl(), {
|
|
865
|
+
...options,
|
|
866
|
+
method: 'GET'
|
|
867
|
+
});
|
|
868
|
+
};
|
|
869
|
+
/**
|
|
870
|
+
* @summary Returns all people/contact type codes (`PEOPTYPE`).
|
|
871
|
+
*/
|
|
872
|
+
export const getGetApiV1CodesContacttypesUrl = () => {
|
|
873
|
+
return `/api/v1/Codes/contacttypes`;
|
|
874
|
+
};
|
|
875
|
+
export const getApiV1CodesContacttypes = async (options) => {
|
|
876
|
+
return customFetch(getGetApiV1CodesContacttypesUrl(), {
|
|
877
|
+
...options,
|
|
878
|
+
method: 'GET'
|
|
879
|
+
});
|
|
880
|
+
};
|
|
881
|
+
/**
|
|
882
|
+
* @summary Returns council district codes (`COUNCILDIST`) alongside the enabled flag
|
|
883
|
+
and configurable label from `CTYLAW`.
|
|
884
|
+
*/
|
|
885
|
+
export const getGetApiV1CodesCouncildistrictsUrl = () => {
|
|
886
|
+
return `/api/v1/Codes/councildistricts`;
|
|
887
|
+
};
|
|
888
|
+
export const getApiV1CodesCouncildistricts = async (options) => {
|
|
889
|
+
return customFetch(getGetApiV1CodesCouncildistrictsUrl(), {
|
|
890
|
+
...options,
|
|
891
|
+
method: 'GET'
|
|
892
|
+
});
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* @summary Returns all court codes (`COURT`).
|
|
896
|
+
*/
|
|
897
|
+
export const getGetApiV1CodesCourtsUrl = () => {
|
|
898
|
+
return `/api/v1/Codes/courts`;
|
|
899
|
+
};
|
|
900
|
+
export const getApiV1CodesCourts = async (options) => {
|
|
901
|
+
return customFetch(getGetApiV1CodesCourtsUrl(), {
|
|
902
|
+
...options,
|
|
903
|
+
method: 'GET'
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
/**
|
|
907
|
+
* @summary Returns all finding codes (`RE_FINDING`).
|
|
908
|
+
*/
|
|
909
|
+
export const getGetApiV1CodesFindingsUrl = () => {
|
|
910
|
+
return `/api/v1/Codes/findings`;
|
|
911
|
+
};
|
|
912
|
+
export const getApiV1CodesFindings = async (options) => {
|
|
913
|
+
return customFetch(getGetApiV1CodesFindingsUrl(), {
|
|
914
|
+
...options,
|
|
915
|
+
method: 'GET'
|
|
916
|
+
});
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* @summary Returns all real estate type codes (`RE_TYPE`).
|
|
920
|
+
*/
|
|
921
|
+
export const getGetApiV1CodesRealestatetypesUrl = () => {
|
|
922
|
+
return `/api/v1/Codes/realestatetypes`;
|
|
923
|
+
};
|
|
924
|
+
export const getApiV1CodesRealestatetypes = async (options) => {
|
|
925
|
+
return customFetch(getGetApiV1CodesRealestatetypesUrl(), {
|
|
926
|
+
...options,
|
|
927
|
+
method: 'GET'
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
/**
|
|
931
|
+
* @summary Returns all retention class codes (`FMCLASS`).
|
|
932
|
+
*/
|
|
933
|
+
export const getGetApiV1CodesRetentionclassesUrl = () => {
|
|
934
|
+
return `/api/v1/Codes/retentionclasses`;
|
|
935
|
+
};
|
|
936
|
+
export const getApiV1CodesRetentionclasses = async (options) => {
|
|
937
|
+
return customFetch(getGetApiV1CodesRetentionclassesUrl(), {
|
|
938
|
+
...options,
|
|
939
|
+
method: 'GET'
|
|
940
|
+
});
|
|
941
|
+
};
|
|
942
|
+
/**
|
|
943
|
+
* @summary Returns all note type codes (`NOTETYPE`) with id and code_type.
|
|
944
|
+
*/
|
|
945
|
+
export const getGetApiV1CodesNotetypesUrl = () => {
|
|
946
|
+
return `/api/v1/Codes/notetypes`;
|
|
947
|
+
};
|
|
948
|
+
export const getApiV1CodesNotetypes = async (options) => {
|
|
949
|
+
return customFetch(getGetApiV1CodesNotetypesUrl(), {
|
|
950
|
+
...options,
|
|
951
|
+
method: 'GET'
|
|
952
|
+
});
|
|
953
|
+
};
|
|
954
|
+
/**
|
|
955
|
+
* @summary Returns all document type codes (`DOCTYPE`) with id and code_type.
|
|
956
|
+
*/
|
|
957
|
+
export const getGetApiV1CodesDoctypesUrl = () => {
|
|
958
|
+
return `/api/v1/Codes/doctypes`;
|
|
959
|
+
};
|
|
960
|
+
export const getApiV1CodesDoctypes = async (options) => {
|
|
961
|
+
return customFetch(getGetApiV1CodesDoctypesUrl(), {
|
|
962
|
+
...options,
|
|
963
|
+
method: 'GET'
|
|
964
|
+
});
|
|
965
|
+
};
|
|
966
|
+
/**
|
|
967
|
+
* @summary Returns all document category codes (`DOCCAT`) with id and code_type.
|
|
968
|
+
*/
|
|
969
|
+
export const getGetApiV1CodesDoccategoriesUrl = () => {
|
|
970
|
+
return `/api/v1/Codes/doccategories`;
|
|
971
|
+
};
|
|
972
|
+
export const getApiV1CodesDoccategories = async (options) => {
|
|
973
|
+
return customFetch(getGetApiV1CodesDoccategoriesUrl(), {
|
|
974
|
+
...options,
|
|
975
|
+
method: 'GET'
|
|
976
|
+
});
|
|
977
|
+
};
|
|
668
978
|
/**
|
|
669
979
|
* Returns the global field library. Supports `inputType` and `search`
|
|
670
980
|
filters. Field definitions are reusable across forms — instantiate one on a
|
|
@@ -753,6 +1063,31 @@ export const deleteApiV1FieldDefinitionsId = async (id, options) => {
|
|
|
753
1063
|
method: 'DELETE'
|
|
754
1064
|
});
|
|
755
1065
|
};
|
|
1066
|
+
/**
|
|
1067
|
+
* @summary Upload a file. Server-to-server only; requires the mackinac:files.write scope.
|
|
1068
|
+
*/
|
|
1069
|
+
export const getPostApiV1FilesUrl = () => {
|
|
1070
|
+
return `/api/v1/files`;
|
|
1071
|
+
};
|
|
1072
|
+
export const postApiV1Files = async (options) => {
|
|
1073
|
+
return customFetch(getPostApiV1FilesUrl(), {
|
|
1074
|
+
...options,
|
|
1075
|
+
method: 'POST'
|
|
1076
|
+
});
|
|
1077
|
+
};
|
|
1078
|
+
/**
|
|
1079
|
+
* @summary Returns platform file-upload limits. Consumed by the WRP relay worker
|
|
1080
|
+
to surface size and content-type rules to end users client-side.
|
|
1081
|
+
*/
|
|
1082
|
+
export const getGetApiV1FilesLimitsUrl = () => {
|
|
1083
|
+
return `/api/v1/files/limits`;
|
|
1084
|
+
};
|
|
1085
|
+
export const getApiV1FilesLimits = async (options) => {
|
|
1086
|
+
return customFetch(getGetApiV1FilesLimitsUrl(), {
|
|
1087
|
+
...options,
|
|
1088
|
+
method: 'GET'
|
|
1089
|
+
});
|
|
1090
|
+
};
|
|
756
1091
|
/**
|
|
757
1092
|
* Returns form metadata (no children). Supports `search` filter and
|
|
758
1093
|
cursor pagination.
|
|
@@ -950,10 +1285,9 @@ export const getApiV1FormDefinitionsFormIdRules = async (formId, params, options
|
|
|
950
1285
|
* Creates a rule that applies an effect to a target field or element when the
|
|
951
1286
|
source field's value matches `triggerValue`. Enforces effect/target-type
|
|
952
1287
|
compatibility (field-only effects vs element-only effects), same-form
|
|
953
|
-
constraint on source and target,
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
submitter. Increments the form's `version`.
|
|
1288
|
+
constraint on source and target, non-empty `triggerValue`, and rejects
|
|
1289
|
+
file-typed source fields (file values have no canonical string projection
|
|
1290
|
+
for trigger matching). Increments the form's `version`.
|
|
957
1291
|
* @summary Add a conditional rule
|
|
958
1292
|
*/
|
|
959
1293
|
export const getPostApiV1FormDefinitionsFormIdRulesUrl = (formId) => {
|
|
@@ -1188,11 +1522,20 @@ export const getApiV1FormDefinitionsFormIdSubmissions = async (formId, params, o
|
|
|
1188
1522
|
(per the form's `submitterIdentity` contract) and AV-scans any
|
|
1189
1523
|
uploaded files before calling this endpoint — Mackinac does neither.
|
|
1190
1524
|
Mackinac validates that the submitted identity satisfies the form's
|
|
1191
|
-
contract, persists a `FormSubmission` record,
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1525
|
+
contract, persists a `FormSubmission` record, materializes one
|
|
1526
|
+
pending `FormSubmissionActionExecution` row per configured action,
|
|
1527
|
+
and returns `202 Accepted`. Action execution runs asynchronously
|
|
1528
|
+
via MackinacService.Services.FormSubmissionActionWorker; clients poll the GET
|
|
1529
|
+
endpoint until `actionResults[]` entries terminalize.
|
|
1530
|
+
|
|
1531
|
+
Idempotency: an optional `Idempotency-Key` header makes the POST
|
|
1532
|
+
safe to retry. Within 24h, a replay with the same key and identical
|
|
1533
|
+
body returns the existing submission's current state; a replay with
|
|
1534
|
+
the same key but a different body returns `409 Conflict`.
|
|
1535
|
+
|
|
1536
|
+
File fields reference previously uploaded files by ID; inline file
|
|
1537
|
+
content is never sent. Platform limits of 10 files and 35 MB total
|
|
1538
|
+
per submission are enforced here.
|
|
1196
1539
|
* @summary Submit a form
|
|
1197
1540
|
*/
|
|
1198
1541
|
export const getPostApiV1FormDefinitionsFormIdSubmissionsUrl = (formId) => {
|
|
@@ -1221,10 +1564,11 @@ export const getApiV1FormDefinitionsFormIdSubmissionsSubmissionId = async (formI
|
|
|
1221
1564
|
});
|
|
1222
1565
|
};
|
|
1223
1566
|
/**
|
|
1224
|
-
*
|
|
1225
|
-
|
|
1226
|
-
`submitterReference`. Successful actions are not re-run.
|
|
1227
|
-
`
|
|
1567
|
+
* Flips every action with `status = failed` back to `pending`
|
|
1568
|
+
and lets the worker re-run them with the original `fieldValues`
|
|
1569
|
+
and `submitterReference`. Successful actions are not re-run.
|
|
1570
|
+
Returns `202 Accepted` with the updated submission body; clients
|
|
1571
|
+
poll the GET endpoint to observe retry outcomes.
|
|
1228
1572
|
* @summary Retry failed actions on a submission
|
|
1229
1573
|
*/
|
|
1230
1574
|
export const getPostApiV1FormDefinitionsFormIdSubmissionsSubmissionIdRetryUrl = (formId, submissionId) => {
|
|
@@ -2308,6 +2652,58 @@ export const postApiV1Matters = async (createLitigationMatterRequestDto, params,
|
|
|
2308
2652
|
body: JSON.stringify(createLitigationMatterRequestDto)
|
|
2309
2653
|
});
|
|
2310
2654
|
};
|
|
2655
|
+
/**
|
|
2656
|
+
* @summary Returns the current matter status text (multi-line history).
|
|
2657
|
+
*/
|
|
2658
|
+
export const getGetApiV1MattersMatterIdStatusUrl = (matterId) => {
|
|
2659
|
+
return `/api/v1/Matters/${matterId}/status`;
|
|
2660
|
+
};
|
|
2661
|
+
export const getApiV1MattersMatterIdStatus = async (matterId, options) => {
|
|
2662
|
+
return customFetch(getGetApiV1MattersMatterIdStatusUrl(matterId), {
|
|
2663
|
+
...options,
|
|
2664
|
+
method: 'GET'
|
|
2665
|
+
});
|
|
2666
|
+
};
|
|
2667
|
+
/**
|
|
2668
|
+
* @summary Prepends a new status entry. Returns the combined status text.
|
|
2669
|
+
*/
|
|
2670
|
+
export const getPatchApiV1MattersMatterIdStatusUrl = (matterId) => {
|
|
2671
|
+
return `/api/v1/Matters/${matterId}/status`;
|
|
2672
|
+
};
|
|
2673
|
+
export const patchApiV1MattersMatterIdStatus = async (matterId, matterStatusPatchDto, options) => {
|
|
2674
|
+
return customFetch(getPatchApiV1MattersMatterIdStatusUrl(matterId), {
|
|
2675
|
+
...options,
|
|
2676
|
+
method: 'PATCH',
|
|
2677
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2678
|
+
body: JSON.stringify(matterStatusPatchDto)
|
|
2679
|
+
});
|
|
2680
|
+
};
|
|
2681
|
+
/**
|
|
2682
|
+
* @summary Returns the current matter disposition text (multi-line history).
|
|
2683
|
+
*/
|
|
2684
|
+
export const getGetApiV1MattersMatterIdDispositionUrl = (matterId) => {
|
|
2685
|
+
return `/api/v1/Matters/${matterId}/disposition`;
|
|
2686
|
+
};
|
|
2687
|
+
export const getApiV1MattersMatterIdDisposition = async (matterId, options) => {
|
|
2688
|
+
return customFetch(getGetApiV1MattersMatterIdDispositionUrl(matterId), {
|
|
2689
|
+
...options,
|
|
2690
|
+
method: 'GET'
|
|
2691
|
+
});
|
|
2692
|
+
};
|
|
2693
|
+
/**
|
|
2694
|
+
* @summary Prepends a new disposition entry. Returns the combined disposition text.
|
|
2695
|
+
*/
|
|
2696
|
+
export const getPatchApiV1MattersMatterIdDispositionUrl = (matterId) => {
|
|
2697
|
+
return `/api/v1/Matters/${matterId}/disposition`;
|
|
2698
|
+
};
|
|
2699
|
+
export const patchApiV1MattersMatterIdDisposition = async (matterId, matterDispositionPatchDto, options) => {
|
|
2700
|
+
return customFetch(getPatchApiV1MattersMatterIdDispositionUrl(matterId), {
|
|
2701
|
+
...options,
|
|
2702
|
+
method: 'PATCH',
|
|
2703
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2704
|
+
body: JSON.stringify(matterDispositionPatchDto)
|
|
2705
|
+
});
|
|
2706
|
+
};
|
|
2311
2707
|
export const getPatchApiV2MattersLitigationMatterIdUrl = (matterId) => {
|
|
2312
2708
|
return `/api/v2/matters/litigation/${matterId}`;
|
|
2313
2709
|
};
|
|
@@ -2451,6 +2847,81 @@ export const postApiV1PeopleSearch = async (personSearchDto, params, options) =>
|
|
|
2451
2847
|
body: JSON.stringify(personSearchDto)
|
|
2452
2848
|
});
|
|
2453
2849
|
};
|
|
2850
|
+
/**
|
|
2851
|
+
* @summary Active attorneys (systemtype=A) with the configurable label.
|
|
2852
|
+
*/
|
|
2853
|
+
export const getGetApiV1PeopleAttorneysModuleCodeUrl = (moduleCode) => {
|
|
2854
|
+
return `/api/v1/people/attorneys/${moduleCode}`;
|
|
2855
|
+
};
|
|
2856
|
+
export const getApiV1PeopleAttorneysModuleCode = async (moduleCode, options) => {
|
|
2857
|
+
return customFetch(getGetApiV1PeopleAttorneysModuleCodeUrl(moduleCode), {
|
|
2858
|
+
...options,
|
|
2859
|
+
method: 'GET'
|
|
2860
|
+
});
|
|
2861
|
+
};
|
|
2862
|
+
/**
|
|
2863
|
+
* @summary Investigators (systemtype=I) with the configurable label.
|
|
2864
|
+
*/
|
|
2865
|
+
export const getGetApiV1PeopleInvestigatorsModuleCodeUrl = (moduleCode) => {
|
|
2866
|
+
return `/api/v1/people/investigators/${moduleCode}`;
|
|
2867
|
+
};
|
|
2868
|
+
export const getApiV1PeopleInvestigatorsModuleCode = async (moduleCode, options) => {
|
|
2869
|
+
return customFetch(getGetApiV1PeopleInvestigatorsModuleCodeUrl(moduleCode), {
|
|
2870
|
+
...options,
|
|
2871
|
+
method: 'GET'
|
|
2872
|
+
});
|
|
2873
|
+
};
|
|
2874
|
+
/**
|
|
2875
|
+
* @summary Outside counsel (systemtype=C) with the configurable label.
|
|
2876
|
+
*/
|
|
2877
|
+
export const getGetApiV1PeopleOutsidecounselModuleCodeUrl = (moduleCode) => {
|
|
2878
|
+
return `/api/v1/people/outsidecounsel/${moduleCode}`;
|
|
2879
|
+
};
|
|
2880
|
+
export const getApiV1PeopleOutsidecounselModuleCode = async (moduleCode, options) => {
|
|
2881
|
+
return customFetch(getGetApiV1PeopleOutsidecounselModuleCodeUrl(moduleCode), {
|
|
2882
|
+
...options,
|
|
2883
|
+
method: 'GET'
|
|
2884
|
+
});
|
|
2885
|
+
};
|
|
2886
|
+
/**
|
|
2887
|
+
* @summary Staff for a module, optionally filtered by `systemTypes` (default S,P,E).
|
|
2888
|
+
Accepts `systemTypes` as a repeated or comma-separated query parameter.
|
|
2889
|
+
*/
|
|
2890
|
+
export const getGetApiV1PeopleStaffModuleCodeUrl = (moduleCode, params) => {
|
|
2891
|
+
const normalizedParams = new URLSearchParams();
|
|
2892
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2893
|
+
const explodeParameters = ["systemTypes"];
|
|
2894
|
+
if (Array.isArray(value) && explodeParameters.includes(key)) {
|
|
2895
|
+
value.forEach((v) => {
|
|
2896
|
+
normalizedParams.append(key, v === null ? 'null' : v.toString());
|
|
2897
|
+
});
|
|
2898
|
+
return;
|
|
2899
|
+
}
|
|
2900
|
+
if (value !== undefined) {
|
|
2901
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
2902
|
+
}
|
|
2903
|
+
});
|
|
2904
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2905
|
+
return stringifiedParams.length > 0 ? `/api/v1/people/staff/${moduleCode}?${stringifiedParams}` : `/api/v1/people/staff/${moduleCode}`;
|
|
2906
|
+
};
|
|
2907
|
+
export const getApiV1PeopleStaffModuleCode = async (moduleCode, params, options) => {
|
|
2908
|
+
return customFetch(getGetApiV1PeopleStaffModuleCodeUrl(moduleCode, params), {
|
|
2909
|
+
...options,
|
|
2910
|
+
method: 'GET'
|
|
2911
|
+
});
|
|
2912
|
+
};
|
|
2913
|
+
/**
|
|
2914
|
+
* @summary Teams (systemtype=T) with the configurable label.
|
|
2915
|
+
*/
|
|
2916
|
+
export const getGetApiV1PeopleTeamsModuleCodeUrl = (moduleCode) => {
|
|
2917
|
+
return `/api/v1/people/teams/${moduleCode}`;
|
|
2918
|
+
};
|
|
2919
|
+
export const getApiV1PeopleTeamsModuleCode = async (moduleCode, options) => {
|
|
2920
|
+
return customFetch(getGetApiV1PeopleTeamsModuleCodeUrl(moduleCode), {
|
|
2921
|
+
...options,
|
|
2922
|
+
method: 'GET'
|
|
2923
|
+
});
|
|
2924
|
+
};
|
|
2454
2925
|
export const getGetApiV1PermissionsStaffIdUrl = (staffId) => {
|
|
2455
2926
|
return `/api/v1/Permissions/${staffId}`;
|
|
2456
2927
|
};
|
|
@@ -2512,6 +2983,27 @@ export const getApiV1Roles = async (options) => {
|
|
|
2512
2983
|
method: 'GET'
|
|
2513
2984
|
});
|
|
2514
2985
|
};
|
|
2986
|
+
/**
|
|
2987
|
+
* @summary Searches the `DOCS` table with optional filters. Port of golden-gate
|
|
2988
|
+
`search_documents`; filters that reference columns absent from Mackinac's
|
|
2989
|
+
`Docs` model are silently ignored.
|
|
2990
|
+
*/
|
|
2991
|
+
export const getPostApiV1SearchDocumentsUrl = () => {
|
|
2992
|
+
return `/api/v1/Search/documents`;
|
|
2993
|
+
};
|
|
2994
|
+
export const postApiV1SearchDocuments = async (documentSearchCriteriaDto, options) => {
|
|
2995
|
+
return customFetch(getPostApiV1SearchDocumentsUrl(), {
|
|
2996
|
+
...options,
|
|
2997
|
+
method: 'POST',
|
|
2998
|
+
headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
|
|
2999
|
+
body: JSON.stringify(documentSearchCriteriaDto)
|
|
3000
|
+
});
|
|
3001
|
+
};
|
|
3002
|
+
/**
|
|
3003
|
+
* @summary Searches matters for a single litigation-like module. Supported module codes:
|
|
3004
|
+
`LI` (Litigation), `CL` (Claims), `3C` (Third Party Claims),
|
|
3005
|
+
`LR` (Labor Relations), `WC` (Workers' Compensation), `FS` (Family Services).
|
|
3006
|
+
*/
|
|
2515
3007
|
export const getPostApiV1SearchMattersUrl = () => {
|
|
2516
3008
|
return `/api/v1/Search/matters`;
|
|
2517
3009
|
};
|
|
@@ -2523,6 +3015,10 @@ export const postApiV1SearchMatters = async (matterSearchRequestDto, options) =>
|
|
|
2523
3015
|
body: JSON.stringify(matterSearchRequestDto)
|
|
2524
3016
|
});
|
|
2525
3017
|
};
|
|
3018
|
+
/**
|
|
3019
|
+
* @summary Returns a page of previously-executed matter search hits for a single litigation-like
|
|
3020
|
+
module. Supported module codes: `LI`, `CL`, `3C`, `LR`, `WC`, `FS`.
|
|
3021
|
+
*/
|
|
2526
3022
|
export const getPostApiV1SearchMattersPageNumberUrl = (pageNumber) => {
|
|
2527
3023
|
return `/api/v1/Search/matters/${pageNumber}`;
|
|
2528
3024
|
};
|
|
@@ -2550,6 +3046,102 @@ export const getApiV1Staff = async (params, options) => {
|
|
|
2550
3046
|
method: 'GET'
|
|
2551
3047
|
});
|
|
2552
3048
|
};
|
|
3049
|
+
/**
|
|
3050
|
+
* @summary Returns the account list (ADDS+DEPTS join, type=A) with the configurable label.
|
|
3051
|
+
*/
|
|
3052
|
+
export const getGetApiV1SystemAccountsUrl = () => {
|
|
3053
|
+
return `/api/v1/system/accounts`;
|
|
3054
|
+
};
|
|
3055
|
+
export const getApiV1SystemAccounts = async (options) => {
|
|
3056
|
+
return customFetch(getGetApiV1SystemAccountsUrl(), {
|
|
3057
|
+
...options,
|
|
3058
|
+
method: 'GET'
|
|
3059
|
+
});
|
|
3060
|
+
};
|
|
3061
|
+
/**
|
|
3062
|
+
* @summary Returns a single account by ADDS_ID.
|
|
3063
|
+
*/
|
|
3064
|
+
export const getGetApiV1SystemAccountAddsIdUrl = (addsId) => {
|
|
3065
|
+
return `/api/v1/system/account/${addsId}`;
|
|
3066
|
+
};
|
|
3067
|
+
export const getApiV1SystemAccountAddsId = async (addsId, options) => {
|
|
3068
|
+
return customFetch(getGetApiV1SystemAccountAddsIdUrl(addsId), {
|
|
3069
|
+
...options,
|
|
3070
|
+
method: 'GET'
|
|
3071
|
+
});
|
|
3072
|
+
};
|
|
3073
|
+
/**
|
|
3074
|
+
* @summary Returns the department list (ADDS+DEPTS join, type=D) with the configurable label.
|
|
3075
|
+
*/
|
|
3076
|
+
export const getGetApiV1SystemDepartmentsUrl = () => {
|
|
3077
|
+
return `/api/v1/system/departments`;
|
|
3078
|
+
};
|
|
3079
|
+
export const getApiV1SystemDepartments = async (options) => {
|
|
3080
|
+
return customFetch(getGetApiV1SystemDepartmentsUrl(), {
|
|
3081
|
+
...options,
|
|
3082
|
+
method: 'GET'
|
|
3083
|
+
});
|
|
3084
|
+
};
|
|
3085
|
+
/**
|
|
3086
|
+
* @summary Returns a single department by ADDS_ID.
|
|
3087
|
+
*/
|
|
3088
|
+
export const getGetApiV1SystemDepartmentAddsIdUrl = (addsId) => {
|
|
3089
|
+
return `/api/v1/system/department/${addsId}`;
|
|
3090
|
+
};
|
|
3091
|
+
export const getApiV1SystemDepartmentAddsId = async (addsId, options) => {
|
|
3092
|
+
return customFetch(getGetApiV1SystemDepartmentAddsIdUrl(addsId), {
|
|
3093
|
+
...options,
|
|
3094
|
+
method: 'GET'
|
|
3095
|
+
});
|
|
3096
|
+
};
|
|
3097
|
+
/**
|
|
3098
|
+
* @summary Returns the configured email confidentiality footer subject line.
|
|
3099
|
+
*/
|
|
3100
|
+
export const getGetApiV1SystemEmailSubjectUrl = () => {
|
|
3101
|
+
return `/api/v1/system/email/subject`;
|
|
3102
|
+
};
|
|
3103
|
+
export const getApiV1SystemEmailSubject = async (options) => {
|
|
3104
|
+
return customFetch(getGetApiV1SystemEmailSubjectUrl(), {
|
|
3105
|
+
...options,
|
|
3106
|
+
method: 'GET'
|
|
3107
|
+
});
|
|
3108
|
+
};
|
|
3109
|
+
/**
|
|
3110
|
+
* @summary Returns the legal-hold display flag and configurable label.
|
|
3111
|
+
*/
|
|
3112
|
+
export const getGetApiV1SystemLegalholdconfigUrl = () => {
|
|
3113
|
+
return `/api/v1/system/legalholdconfig`;
|
|
3114
|
+
};
|
|
3115
|
+
export const getApiV1SystemLegalholdconfig = async (options) => {
|
|
3116
|
+
return customFetch(getGetApiV1SystemLegalholdconfigUrl(), {
|
|
3117
|
+
...options,
|
|
3118
|
+
method: 'GET'
|
|
3119
|
+
});
|
|
3120
|
+
};
|
|
3121
|
+
/**
|
|
3122
|
+
* @summary Returns the per-module UDF text visibility flag and configurable label.
|
|
3123
|
+
*/
|
|
3124
|
+
export const getGetApiV1SystemRecordnumberconfigModuleCodeUrl = (moduleCode) => {
|
|
3125
|
+
return `/api/v1/system/recordnumberconfig/${moduleCode}`;
|
|
3126
|
+
};
|
|
3127
|
+
export const getApiV1SystemRecordnumberconfigModuleCode = async (moduleCode, options) => {
|
|
3128
|
+
return customFetch(getGetApiV1SystemRecordnumberconfigModuleCodeUrl(moduleCode), {
|
|
3129
|
+
...options,
|
|
3130
|
+
method: 'GET'
|
|
3131
|
+
});
|
|
3132
|
+
};
|
|
3133
|
+
/**
|
|
3134
|
+
* @summary Pic-of-the-day suffix based on today's date.
|
|
3135
|
+
*/
|
|
3136
|
+
export const getGetApiV1SystemPotdUrl = () => {
|
|
3137
|
+
return `/api/v1/system/potd`;
|
|
3138
|
+
};
|
|
3139
|
+
export const getApiV1SystemPotd = async (options) => {
|
|
3140
|
+
return customFetch(getGetApiV1SystemPotdUrl(), {
|
|
3141
|
+
...options,
|
|
3142
|
+
method: 'GET'
|
|
3143
|
+
});
|
|
3144
|
+
};
|
|
2553
3145
|
export const getGetApiV1SystemManagementConfidentialFooterUrl = () => {
|
|
2554
3146
|
return `/api/v1/system-management/confidential-footer`;
|
|
2555
3147
|
};
|
|
@@ -2618,6 +3210,27 @@ export const deleteApiV1SystemManagementAppSettingsId = async (id, options) => {
|
|
|
2618
3210
|
method: 'DELETE'
|
|
2619
3211
|
});
|
|
2620
3212
|
};
|
|
3213
|
+
/**
|
|
3214
|
+
* @summary Lists time entries filtered by file_number and/or staff_id, optionally bounded by
|
|
3215
|
+
dateStart and dateEnd (`yyyy-MM-dd HH:mm:ss`). One of file_number or staff_id
|
|
3216
|
+
is required.
|
|
3217
|
+
*/
|
|
3218
|
+
export const getGetApiV1TimeentriesUrl = (params) => {
|
|
3219
|
+
const normalizedParams = new URLSearchParams();
|
|
3220
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
3221
|
+
if (value !== undefined) {
|
|
3222
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
3223
|
+
}
|
|
3224
|
+
});
|
|
3225
|
+
const stringifiedParams = normalizedParams.toString();
|
|
3226
|
+
return stringifiedParams.length > 0 ? `/api/v1/timeentries?${stringifiedParams}` : `/api/v1/timeentries`;
|
|
3227
|
+
};
|
|
3228
|
+
export const getApiV1Timeentries = async (params, options) => {
|
|
3229
|
+
return customFetch(getGetApiV1TimeentriesUrl(params), {
|
|
3230
|
+
...options,
|
|
3231
|
+
method: 'GET'
|
|
3232
|
+
});
|
|
3233
|
+
};
|
|
2621
3234
|
/**
|
|
2622
3235
|
* @summary Triggers the TIPSS sync operation, importing data into ATSystem* tables.
|
|
2623
3236
|
*/
|