@cycomdatasystems/mackinac-sdk 5.0.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/generated/mackinac.client.d.ts +350 -14
  2. package/dist/generated/mackinac.client.js +804 -13
  3. package/dist/generated/models/actionResultDtoStatus.d.ts +1 -0
  4. package/dist/generated/models/actionResultDtoStatus.js +1 -0
  5. package/dist/generated/models/addsDeptDto.d.ts +27 -0
  6. package/dist/generated/models/addsDeptDto.js +17 -0
  7. package/dist/generated/models/assignRolesDto.d.ts +24 -0
  8. package/dist/generated/models/assignRolesDto.js +17 -0
  9. package/dist/generated/models/councilDistrictsViewDto.d.ts +28 -0
  10. package/dist/generated/models/councilDistrictsViewDto.js +1 -0
  11. package/dist/generated/models/createFormDefinitionDto.d.ts +5 -0
  12. package/dist/generated/models/createFormDefinitionDtoDestination.d.ts +23 -0
  13. package/dist/generated/models/createFormDefinitionDtoDestination.js +20 -0
  14. package/dist/generated/models/createStaffPayloadDto.d.ts +45 -0
  15. package/dist/generated/models/createStaffPayloadDto.js +17 -0
  16. package/dist/generated/models/createUpdateFieldDefinitionDto.d.ts +7 -1
  17. package/dist/generated/models/createUpdateFieldDefinitionDtoFormat.d.ts +25 -0
  18. package/dist/generated/models/createUpdateFieldDefinitionDtoFormat.js +22 -0
  19. package/dist/generated/models/createUpdateFieldDefinitionDtoInputType.d.ts +1 -0
  20. package/dist/generated/models/createUpdateFieldDefinitionDtoInputType.js +1 -0
  21. package/dist/generated/models/createUpdateFormFieldRuleDto.d.ts +0 -2
  22. package/dist/generated/models/createUpdateFormFieldRuleDtoEffect.d.ts +0 -1
  23. package/dist/generated/models/createUpdateFormFieldRuleDtoEffect.js +0 -1
  24. package/dist/generated/models/createUpdateFormSubmissionActionDto.d.ts +3 -0
  25. package/dist/generated/models/createUpdateFormSubmissionActionDtoRecipientMode.d.ts +24 -0
  26. package/dist/generated/models/createUpdateFormSubmissionActionDtoRecipientMode.js +21 -0
  27. package/dist/generated/models/createUserDto.d.ts +47 -0
  28. package/dist/generated/models/createUserDto.js +1 -0
  29. package/dist/generated/models/createUserDtoMode.d.ts +24 -0
  30. package/dist/generated/models/createUserDtoMode.js +21 -0
  31. package/dist/generated/models/documentSearchCriteriaDto.d.ts +50 -0
  32. package/dist/generated/models/documentSearchCriteriaDto.js +17 -0
  33. package/dist/generated/models/documentSearchResponseDto.d.ts +27 -0
  34. package/dist/generated/models/documentSearchResponseDto.js +1 -0
  35. package/dist/generated/models/documentSearchResultDto.d.ts +46 -0
  36. package/dist/generated/models/documentSearchResultDto.js +17 -0
  37. package/dist/generated/models/emailSubjectDto.d.ts +23 -0
  38. package/dist/generated/models/emailSubjectDto.js +17 -0
  39. package/dist/generated/models/fieldDefinitionDto.d.ts +7 -1
  40. package/dist/generated/models/fieldDefinitionDtoFormat.d.ts +25 -0
  41. package/dist/generated/models/fieldDefinitionDtoFormat.js +22 -0
  42. package/dist/generated/models/fieldDefinitionDtoInputType.d.ts +1 -0
  43. package/dist/generated/models/fieldDefinitionDtoInputType.js +1 -0
  44. package/dist/generated/models/fileLimitsDto.d.ts +21 -0
  45. package/dist/generated/models/fileLimitsDto.js +17 -0
  46. package/dist/generated/models/fileUploadResultDto.d.ts +33 -0
  47. package/dist/generated/models/fileUploadResultDto.js +17 -0
  48. package/dist/generated/models/formDefinitionDto.d.ts +5 -0
  49. package/dist/generated/models/formDefinitionDtoDestination.d.ts +23 -0
  50. package/dist/generated/models/formDefinitionDtoDestination.js +20 -0
  51. package/dist/generated/models/formDefinitionFullDto.d.ts +5 -0
  52. package/dist/generated/models/formDefinitionFullDtoDestination.d.ts +23 -0
  53. package/dist/generated/models/formDefinitionFullDtoDestination.js +20 -0
  54. package/dist/generated/models/formFieldRuleDto.d.ts +0 -2
  55. package/dist/generated/models/formFieldRuleDtoEffect.d.ts +0 -1
  56. package/dist/generated/models/formFieldRuleDtoEffect.js +0 -1
  57. package/dist/generated/models/formSubmissionActionDto.d.ts +3 -0
  58. package/dist/generated/models/formSubmissionActionDtoRecipientMode.d.ts +24 -0
  59. package/dist/generated/models/formSubmissionActionDtoRecipientMode.js +21 -0
  60. package/dist/generated/models/formSubmissionDto.d.ts +6 -0
  61. package/dist/generated/models/getApiV1CodesDispositionsModuleCodeParams.d.ts +19 -0
  62. package/dist/generated/models/getApiV1CodesDispositionsModuleCodeParams.js +17 -0
  63. package/dist/generated/models/getApiV1PeopleStaffModuleCodeParams.d.ts +19 -0
  64. package/dist/generated/models/getApiV1PeopleStaffModuleCodeParams.js +17 -0
  65. package/dist/generated/models/getApiV1TimeentriesParams.d.ts +22 -0
  66. package/dist/generated/models/getApiV1TimeentriesParams.js +17 -0
  67. package/dist/generated/models/getApiV1UsersParams.d.ts +23 -0
  68. package/dist/generated/models/getApiV1UsersParams.js +17 -0
  69. package/dist/generated/models/index.d.ts +48 -0
  70. package/dist/generated/models/index.js +48 -0
  71. package/dist/generated/models/labelAndPeopleDto.d.ts +27 -0
  72. package/dist/generated/models/labelAndPeopleDto.js +1 -0
  73. package/dist/generated/models/labelAndStaffDto.d.ts +26 -0
  74. package/dist/generated/models/labelAndStaffDto.js +1 -0
  75. package/dist/generated/models/labelAndVisibilityDto.d.ts +24 -0
  76. package/dist/generated/models/labelAndVisibilityDto.js +17 -0
  77. package/dist/generated/models/labelDto.d.ts +23 -0
  78. package/dist/generated/models/labelDto.js +17 -0
  79. package/dist/generated/models/matterArchiveRemarksDto.d.ts +30 -0
  80. package/dist/generated/models/matterArchiveRemarksDto.js +17 -0
  81. package/dist/generated/models/matterDispositionPatchDto.d.ts +23 -0
  82. package/dist/generated/models/matterDispositionPatchDto.js +17 -0
  83. package/dist/generated/models/matterDispositionTextDto.d.ts +23 -0
  84. package/dist/generated/models/matterDispositionTextDto.js +17 -0
  85. package/dist/generated/models/matterDto.d.ts +2 -1
  86. package/dist/generated/models/matterStatusPatchDto.d.ts +23 -0
  87. package/dist/generated/models/matterStatusPatchDto.js +17 -0
  88. package/dist/generated/models/matterStatusTextDto.d.ts +23 -0
  89. package/dist/generated/models/matterStatusTextDto.js +17 -0
  90. package/dist/generated/models/potdDto.d.ts +23 -0
  91. package/dist/generated/models/potdDto.js +17 -0
  92. package/dist/generated/models/roleDto.d.ts +29 -0
  93. package/dist/generated/models/roleDto.js +17 -0
  94. package/dist/generated/models/selectOptionDto.d.ts +22 -0
  95. package/dist/generated/models/selectOptionDto.js +17 -0
  96. package/dist/generated/models/systemAccountsDto.d.ts +27 -0
  97. package/dist/generated/models/systemAccountsDto.js +1 -0
  98. package/dist/generated/models/systemDepartmentsDto.d.ts +27 -0
  99. package/dist/generated/models/systemDepartmentsDto.js +1 -0
  100. package/dist/generated/models/timeEntryViewDto.d.ts +57 -0
  101. package/dist/generated/models/timeEntryViewDto.js +17 -0
  102. package/dist/generated/models/tracksViewDto.d.ts +27 -0
  103. package/dist/generated/models/tracksViewDto.js +1 -0
  104. package/dist/generated/models/updateFormDefinitionDto.d.ts +5 -0
  105. package/dist/generated/models/updateFormDefinitionDtoDestination.d.ts +23 -0
  106. package/dist/generated/models/updateFormDefinitionDtoDestination.js +20 -0
  107. package/dist/generated/models/updateSelfProfileDto.d.ts +27 -0
  108. package/dist/generated/models/updateSelfProfileDto.js +17 -0
  109. package/dist/generated/models/updateUserDto.d.ts +46 -0
  110. package/dist/generated/models/updateUserDto.js +17 -0
  111. package/dist/generated/models/userDto.d.ts +49 -0
  112. package/dist/generated/models/userDto.js +17 -0
  113. package/dist/generated/models/userDtoCursorPagedResultDto.d.ts +23 -0
  114. package/dist/generated/models/userDtoCursorPagedResultDto.js +1 -0
  115. package/dist/generated/models/viewCodeDto.d.ts +28 -0
  116. package/dist/generated/models/viewCodeDto.js +17 -0
  117. package/dist/generated/models/viewCodeWithTypeDto.d.ts +31 -0
  118. package/dist/generated/models/viewCodeWithTypeDto.js +17 -0
  119. package/dist/generated/models/viewStaffDto.d.ts +26 -0
  120. package/dist/generated/models/viewStaffDto.js +17 -0
  121. package/dist/generated/models/viewStaffWithTypeDto.d.ts +28 -0
  122. package/dist/generated/models/viewStaffWithTypeDto.js +17 -0
  123. 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, 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`.
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, 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.
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
- * 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.
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
  };
@@ -2500,6 +2971,39 @@ export const getApiV1ReportsManagerReport = async (params, options) => {
2500
2971
  method: 'GET'
2501
2972
  });
2502
2973
  };
2974
+ /**
2975
+ * @summary List Auth0 roles available in the tenant.
2976
+ */
2977
+ export const getGetApiV1RolesUrl = () => {
2978
+ return `/api/v1/roles`;
2979
+ };
2980
+ export const getApiV1Roles = async (options) => {
2981
+ return customFetch(getGetApiV1RolesUrl(), {
2982
+ ...options,
2983
+ method: 'GET'
2984
+ });
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
+ */
2503
3007
  export const getPostApiV1SearchMattersUrl = () => {
2504
3008
  return `/api/v1/Search/matters`;
2505
3009
  };
@@ -2511,6 +3015,10 @@ export const postApiV1SearchMatters = async (matterSearchRequestDto, options) =>
2511
3015
  body: JSON.stringify(matterSearchRequestDto)
2512
3016
  });
2513
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
+ */
2514
3022
  export const getPostApiV1SearchMattersPageNumberUrl = (pageNumber) => {
2515
3023
  return `/api/v1/Search/matters/${pageNumber}`;
2516
3024
  };
@@ -2538,6 +3046,102 @@ export const getApiV1Staff = async (params, options) => {
2538
3046
  method: 'GET'
2539
3047
  });
2540
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
+ };
2541
3145
  export const getGetApiV1SystemManagementConfidentialFooterUrl = () => {
2542
3146
  return `/api/v1/system-management/confidential-footer`;
2543
3147
  };
@@ -2606,6 +3210,27 @@ export const deleteApiV1SystemManagementAppSettingsId = async (id, options) => {
2606
3210
  method: 'DELETE'
2607
3211
  });
2608
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
+ };
2609
3234
  /**
2610
3235
  * @summary Triggers the TIPSS sync operation, importing data into ATSystem* tables.
2611
3236
  */
@@ -2658,6 +3283,172 @@ export const getApiV1TipssCitationsSearch = async (params, options) => {
2658
3283
  method: 'GET'
2659
3284
  });
2660
3285
  };
3286
+ /**
3287
+ * Cursor-paginated. Filters: `isBlocked`, `staffId`, and a
3288
+ free-text `search` over StaffId / Auth0 sub / Staff name. Email
3289
+ and display-name search are delegated to Auth0 and not currently
3290
+ part of this filter.
3291
+ * @summary List users in the caller's organization.
3292
+ */
3293
+ export const getGetApiV1UsersUrl = (params) => {
3294
+ const normalizedParams = new URLSearchParams();
3295
+ Object.entries(params || {}).forEach(([key, value]) => {
3296
+ if (value !== undefined) {
3297
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
3298
+ }
3299
+ });
3300
+ const stringifiedParams = normalizedParams.toString();
3301
+ return stringifiedParams.length > 0 ? `/api/v1/users?${stringifiedParams}` : `/api/v1/users`;
3302
+ };
3303
+ export const getApiV1Users = async (params, options) => {
3304
+ return customFetch(getGetApiV1UsersUrl(params), {
3305
+ ...options,
3306
+ method: 'GET'
3307
+ });
3308
+ };
3309
+ /**
3310
+ * Discriminated by `mode`: `linkExisting` requires a
3311
+ `staffId` that already exists in the caller's organization;
3312
+ `createNew` requires `staffPayload` and Mackinac generates
3313
+ the next sequential 7-digit StaffId. Enforces the Organization's
3314
+ `seatCount` metadata. Sends an Auth0 Organization invitation
3315
+ when `sendInvitation = true`.
3316
+ * @summary Create a user.
3317
+ */
3318
+ export const getPostApiV1UsersUrl = () => {
3319
+ return `/api/v1/users`;
3320
+ };
3321
+ export const postApiV1Users = async (createUserDto, options) => {
3322
+ return customFetch(getPostApiV1UsersUrl(), {
3323
+ ...options,
3324
+ method: 'POST',
3325
+ headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
3326
+ body: JSON.stringify(createUserDto)
3327
+ });
3328
+ };
3329
+ /**
3330
+ * Detail view includes `roleIds` (fetched from Auth0). On
3331
+ transient Auth0 failures the response omits roleIds rather than
3332
+ failing the whole request — caller can retry.
3333
+ * @summary Get a single user.
3334
+ */
3335
+ export const getGetApiV1UsersIdUrl = (id) => {
3336
+ return `/api/v1/users/${id}`;
3337
+ };
3338
+ export const getApiV1UsersId = async (id, options) => {
3339
+ return customFetch(getGetApiV1UsersIdUrl(id), {
3340
+ ...options,
3341
+ method: 'GET'
3342
+ });
3343
+ };
3344
+ /**
3345
+ * Any null body field is left unchanged. `email` and
3346
+ `displayName` propagate to Auth0; `staffName` and
3347
+ `title` propagate to the linked Staff row. Email change
3348
+ re-sets Auth0's email-verified flag to false.
3349
+ * @summary Admin: update a user's profile fields.
3350
+ */
3351
+ export const getPatchApiV1UsersIdUrl = (id) => {
3352
+ return `/api/v1/users/${id}`;
3353
+ };
3354
+ export const patchApiV1UsersId = async (id, updateUserDto, options) => {
3355
+ return customFetch(getPatchApiV1UsersIdUrl(id), {
3356
+ ...options,
3357
+ method: 'PATCH',
3358
+ headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
3359
+ body: JSON.stringify(updateUserDto)
3360
+ });
3361
+ };
3362
+ /**
3363
+ * Visible to all authenticated users (no admin permission required).
3364
+ Writes to Auth0; the change takes effect on the user's next session.
3365
+ * @summary Self-service: update your own display name.
3366
+ */
3367
+ export const getPutApiV1UsersMeUrl = () => {
3368
+ return `/api/v1/users/me`;
3369
+ };
3370
+ export const putApiV1UsersMe = async (updateSelfProfileDto, options) => {
3371
+ return customFetch(getPutApiV1UsersMeUrl(), {
3372
+ ...options,
3373
+ method: 'PUT',
3374
+ headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
3375
+ body: JSON.stringify(updateSelfProfileDto)
3376
+ });
3377
+ };
3378
+ /**
3379
+ * @summary Block a user (Auth0 blocked + Staff inactive).
3380
+ */
3381
+ export const getPostApiV1UsersIdBlockUrl = (id) => {
3382
+ return `/api/v1/users/${id}/block`;
3383
+ };
3384
+ export const postApiV1UsersIdBlock = async (id, options) => {
3385
+ return customFetch(getPostApiV1UsersIdBlockUrl(id), {
3386
+ ...options,
3387
+ method: 'POST'
3388
+ });
3389
+ };
3390
+ /**
3391
+ * @summary Unblock a user (reverse of block).
3392
+ */
3393
+ export const getPostApiV1UsersIdUnblockUrl = (id) => {
3394
+ return `/api/v1/users/${id}/unblock`;
3395
+ };
3396
+ export const postApiV1UsersIdUnblock = async (id, options) => {
3397
+ return customFetch(getPostApiV1UsersIdUnblockUrl(id), {
3398
+ ...options,
3399
+ method: 'POST'
3400
+ });
3401
+ };
3402
+ /**
3403
+ * @summary Trigger a password-reset email to the user.
3404
+ */
3405
+ export const getPostApiV1UsersIdPasswordResetUrl = (id) => {
3406
+ return `/api/v1/users/${id}/password-reset`;
3407
+ };
3408
+ export const postApiV1UsersIdPasswordReset = async (id, options) => {
3409
+ return customFetch(getPostApiV1UsersIdPasswordResetUrl(id), {
3410
+ ...options,
3411
+ method: 'POST'
3412
+ });
3413
+ };
3414
+ /**
3415
+ * @summary Send (or re-send) an Auth0 Organization invitation.
3416
+ */
3417
+ export const getPostApiV1UsersIdInvitationUrl = (id) => {
3418
+ return `/api/v1/users/${id}/invitation`;
3419
+ };
3420
+ export const postApiV1UsersIdInvitation = async (id, options) => {
3421
+ return customFetch(getPostApiV1UsersIdInvitationUrl(id), {
3422
+ ...options,
3423
+ method: 'POST'
3424
+ });
3425
+ };
3426
+ /**
3427
+ * @summary Assign one or more Auth0 roles to a user within the org.
3428
+ */
3429
+ export const getPostApiV1UsersIdRolesUrl = (id) => {
3430
+ return `/api/v1/users/${id}/roles`;
3431
+ };
3432
+ export const postApiV1UsersIdRoles = async (id, assignRolesDto, options) => {
3433
+ return customFetch(getPostApiV1UsersIdRolesUrl(id), {
3434
+ ...options,
3435
+ method: 'POST',
3436
+ headers: { 'Content-Type': 'application/json-patch+json', ...options?.headers },
3437
+ body: JSON.stringify(assignRolesDto)
3438
+ });
3439
+ };
3440
+ /**
3441
+ * @summary Unassign a single Auth0 role from a user within the org.
3442
+ */
3443
+ export const getDeleteApiV1UsersIdRolesRoleIdUrl = (id, roleId) => {
3444
+ return `/api/v1/users/${id}/roles/${roleId}`;
3445
+ };
3446
+ export const deleteApiV1UsersIdRolesRoleId = async (id, roleId, options) => {
3447
+ return customFetch(getDeleteApiV1UsersIdRolesRoleIdUrl(id, roleId), {
3448
+ ...options,
3449
+ method: 'DELETE'
3450
+ });
3451
+ };
2661
3452
  /**
2662
3453
  * @summary Get configuration data for WRP integration
2663
3454
  */