synapse-react-client 4.0.43 → 4.0.45
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/SWC.index.d.ts +1 -1
- package/dist/SWC.index.js +2 -2
- package/dist/SWC.index.js.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.d.ts +2 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementList.js +126 -125
- package/dist/components/AccessRequirementList/AccessRequirementList.js.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementListItem.d.ts +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementListItem.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/AccessRequirementListItem.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +28 -16
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js +99 -97
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/RequestDataStep.d.ts +1 -4
- package/dist/components/AccessRequirementList/RequestDataStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/RequestDataStep.js +15 -18
- package/dist/components/AccessRequirementList/RequestDataStep.js.map +1 -1
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.d.ts.map +1 -1
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +52 -49
- package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
- package/dist/components/DataGrid/DataGridWebSocket.d.ts +29 -1
- package/dist/components/DataGrid/DataGridWebSocket.d.ts.map +1 -1
- package/dist/components/DataGrid/DataGridWebSocket.js +48 -16
- package/dist/components/DataGrid/DataGridWebSocket.js.map +1 -1
- package/dist/components/DataGrid/components/GridLoadingState.d.ts +2 -2
- package/dist/components/DataGrid/components/GridLoadingState.d.ts.map +1 -1
- package/dist/components/DataGrid/components/GridLoadingState.js +2 -2
- package/dist/components/DataGrid/components/GridLoadingState.js.map +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.d.ts.map +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.js +2 -1
- package/dist/components/DataGrid/useDataGridWebsocket.js.map +1 -1
- package/dist/components/EntityViewScopeEditor/EntityViewMaskEditor.d.ts.map +1 -1
- package/dist/components/EntityViewScopeEditor/EntityViewMaskEditor.js +11 -10
- package/dist/components/EntityViewScopeEditor/EntityViewMaskEditor.js.map +1 -1
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts.map +1 -1
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.js.map +1 -1
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.d.ts +9 -0
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.d.ts.map +1 -0
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.js +45 -0
- package/dist/components/FormTemplateReferenceField/FormTemplatePreviewDialog.js.map +1 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.d.ts +22 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.d.ts.map +1 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.js +139 -0
- package/dist/components/FormTemplateReferenceField/FormTemplateReferenceField.js.map +1 -0
- package/dist/components/Forum/ForumTable.d.ts +17 -5
- package/dist/components/Forum/ForumTable.d.ts.map +1 -1
- package/dist/components/Forum/ForumTable.js +94 -77
- package/dist/components/Forum/ForumTable.js.map +1 -1
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.d.ts.map +1 -1
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js +142 -108
- package/dist/components/SetAccessRequirementCommonFields/SetAccessRequirementCommonFields.js.map +1 -1
- package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.d.ts.map +1 -1
- package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.js +15 -15
- package/dist/components/SetBasicAccessRequirementFields/AccessorRequirements.js.map +1 -1
- package/dist/components/SetManagedAccessRequirementFields/DataUseCertificateFields.d.ts +10 -0
- package/dist/components/SetManagedAccessRequirementFields/DataUseCertificateFields.d.ts.map +1 -0
- package/dist/components/SetManagedAccessRequirementFields/DataUseCertificateFields.js +81 -0
- package/dist/components/SetManagedAccessRequirementFields/DataUseCertificateFields.js.map +1 -0
- package/dist/components/SetManagedAccessRequirementFields/ExpirationPeriodField.d.ts +9 -0
- package/dist/components/SetManagedAccessRequirementFields/ExpirationPeriodField.d.ts.map +1 -0
- package/dist/components/SetManagedAccessRequirementFields/ExpirationPeriodField.js +32 -0
- package/dist/components/SetManagedAccessRequirementFields/ExpirationPeriodField.js.map +1 -0
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.d.ts +0 -2
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.d.ts.map +1 -1
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.js +79 -154
- package/dist/components/SetManagedAccessRequirementFields/SetManagedAccessRequirementFields.js.map +1 -1
- package/dist/components/TanStackTable/TanStackTableUtils.d.ts.map +1 -1
- package/dist/components/TanStackTable/TanStackTableUtils.js +8 -5
- package/dist/components/TanStackTable/TanStackTableUtils.js.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/DataAccessSubmissionFileHandleLink.d.ts +5 -0
- package/dist/components/dataaccess/SubmissionPage/DataAccessSubmissionFileHandleLink.d.ts.map +1 -0
- package/dist/components/dataaccess/SubmissionPage/DataAccessSubmissionFileHandleLink.js +20 -0
- package/dist/components/dataaccess/SubmissionPage/DataAccessSubmissionFileHandleLink.js.map +1 -0
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.d.ts.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js +183 -188
- package/dist/components/dataaccess/SubmissionPage/SubmissionPage.js.map +1 -1
- package/dist/components/dataaccess/SubmissionPage/SubmissionSchemaAnswers.d.ts +25 -0
- package/dist/components/dataaccess/SubmissionPage/SubmissionSchemaAnswers.d.ts.map +1 -0
- package/dist/components/dataaccess/SubmissionPage/SubmissionSchemaAnswers.js +125 -0
- package/dist/components/dataaccess/SubmissionPage/SubmissionSchemaAnswers.js.map +1 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +4 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts +5 -0
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.d.ts.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js +37 -26
- package/dist/mocks/accessRequirement/mockJsonSchemaAccessRequirements.js.map +1 -1
- package/dist/mocks/dataaccess/MockSubmission.d.ts +76 -0
- package/dist/mocks/dataaccess/MockSubmission.d.ts.map +1 -1
- package/dist/mocks/dataaccess/MockSubmission.js +108 -63
- package/dist/mocks/dataaccess/MockSubmission.js.map +1 -1
- package/dist/mocks/msw/handlers/discussionHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/discussionHandlers.js +40 -33
- package/dist/mocks/msw/handlers/discussionHandlers.js.map +1 -1
- package/dist/style/components/_submission-page.scss +0 -4
- package/dist/style/main.css +1 -1
- package/dist/synapse-client/SynapseClient.d.ts +10 -0
- package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
- package/dist/synapse-client/SynapseClient.js +486 -482
- package/dist/synapse-client/SynapseClient.js.map +1 -1
- package/dist/synapse-client/index.js +3 -3
- package/dist/synapse-queries/KeyFactory.d.ts +13 -1
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +11 -1
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/synapse-queries/dataaccess/index.js +4 -4
- package/dist/synapse-queries/dataaccess/useAccessRequirements.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useAccessRequirements.js +4 -1
- package/dist/synapse-queries/dataaccess/useAccessRequirements.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts +19 -5
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +29 -21
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts +12 -0
- package/dist/synapse-queries/dataaccess/useFormTemplate.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useFormTemplate.js +52 -30
- package/dist/synapse-queries/dataaccess/useFormTemplate.js.map +1 -1
- package/dist/synapse-queries/dataaccess/useGeneratedSubmissionForm.d.ts +37 -0
- package/dist/synapse-queries/dataaccess/useGeneratedSubmissionForm.d.ts.map +1 -0
- package/dist/synapse-queries/dataaccess/useGeneratedSubmissionForm.js +35 -0
- package/dist/synapse-queries/dataaccess/useGeneratedSubmissionForm.js.map +1 -0
- package/dist/synapse-queries/forum/useForum.d.ts +5 -1
- package/dist/synapse-queries/forum/useForum.d.ts.map +1 -1
- package/dist/synapse-queries/forum/useForum.js +23 -1
- package/dist/synapse-queries/forum/useForum.js.map +1 -1
- package/dist/synapse-queries/grid/useEstablishWebsocketConnection.d.ts +2 -0
- package/dist/synapse-queries/grid/useEstablishWebsocketConnection.d.ts.map +1 -1
- package/dist/synapse-queries/grid/useEstablishWebsocketConnection.js.map +1 -1
- package/dist/synapse-queries/index.js +185 -184
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts +5 -3
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts.map +1 -1
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js +12 -15
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js.map +1 -1
- package/dist/synapse-queries/termsOfService/useTermsOfService.d.ts.map +1 -1
- package/dist/synapse-queries/termsOfService/useTermsOfService.js +21 -19
- package/dist/synapse-queries/termsOfService/useTermsOfService.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.d.ts +2 -2
- package/dist/utils/functions/EntityTypeUtils.d.ts.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.js +135 -135
- package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
- package/dist/utils/functions/getEndpoint.d.ts +1 -0
- package/dist/utils/functions/getEndpoint.d.ts.map +1 -1
- package/dist/utils/functions/getEndpoint.js +3 -3
- package/dist/utils/functions/getEndpoint.js.map +1 -1
- package/dist/utils/types/RequestableAccessRequirement.d.ts +8 -0
- package/dist/utils/types/RequestableAccessRequirement.d.ts.map +1 -0
- package/dist/utils/types/RequestableAccessRequirement.js +9 -0
- package/dist/utils/types/RequestableAccessRequirement.js.map +1 -0
- package/package.json +3 -3
- package/dist/testutils/ReactQueryMockUtils.js +0 -676
- package/dist/testutils/ReactQueryMockUtils.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryMockUtils.js","names":[],"sources":["../../src/testutils/ReactQueryMockUtils.ts"],"sourcesContent":["import type { InfiniteData } from '@tanstack/query-core'\nimport {\n QueryObserverLoadingResult,\n QueryObserverSuccessResult,\n UseInfiniteQueryResult,\n UseMutationResult,\n UseQueryResult,\n} from '@tanstack/react-query'\nimport type { Mock, Procedure } from '@vitest/spy'\nimport { Dispatch, SetStateAction, useState } from 'react'\n\n/**\n * Returns a mock instance for useQuery, as well as functions to manipulate the mock hook's state, and\n * mocks for function(s) returned by the hook.\n *\n * Example usage:\n * ```tsx\n * const { mock, setSuccess } = getUseQueryMock<MyDataType, MyErrorType>();\n *\n * // Set the mock implementation\n * myMockedHook.mockImplementation(mock);\n *\n * // ...optionally verify a loading state in your component/hook\n *\n * // Update the hook's state to success with data\n * act(() => { myMockedHook.setSuccess(myDataArray, true); });\n * ```\n */\nexport function getUseQueryMock<TData = unknown, TError = unknown>(): {\n mock: Mock<() => UseQueryResult<TData, TError>>\n mockRefetch: Mock\n setSuccess: (data: TData) => void\n setError: (error: TError) => void\n setLoading: () => void\n setIdle: () => void\n} {\n // Stable mock functions\n const mockRefetch = vi.fn()\n\n let currentSetValue: Dispatch<\n SetStateAction<UseQueryResult<TData, TError>>\n > | null = null\n\n const setSuccess = (data: TData) => {\n if (currentSetValue) {\n const successState: UseQueryResult<TData, TError> = {\n data: data,\n status: 'success',\n isSuccess: true,\n isPending: false,\n isLoading: false,\n isError: false,\n error: null,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: false,\n isInitialLoading: false,\n isLoadingError: false,\n isRefetchError: false,\n isRefetching: false,\n fetchStatus: 'idle',\n isPaused: false,\n dataUpdatedAt: Date.now(),\n errorUpdatedAt: 0,\n errorUpdateCount: 0,\n failureCount: 0,\n failureReason: null,\n refetch: mockRefetch,\n isPlaceholderData: false,\n isStale: false,\n promise: Promise.resolve(data),\n }\n\n currentSetValue(successState)\n } else {\n console.warn(\n 'setSuccess called before mock query was rendered or setValue was captured.',\n )\n }\n }\n\n const setError = (error: TError) => {\n if (currentSetValue) {\n const errorState: UseQueryResult<TData, TError> = {\n data: undefined,\n dataUpdatedAt: 0,\n error: error,\n errorUpdateCount: 1,\n errorUpdatedAt: Date.now(),\n failureCount: 1,\n isError: true,\n isFetched: false,\n isFetchedAfterMount: true,\n isFetching: false,\n isLoadingError: true,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: mockRefetch,\n status: 'error',\n failureReason: null,\n fetchStatus: 'idle',\n isInitialLoading: false,\n isPaused: false,\n isLoading: false,\n isPending: false,\n promise: new Promise(() => {}),\n }\n\n currentSetValue(errorState)\n } else {\n console.warn(\n 'setError called before mock query was rendered or setValue was captured.',\n )\n }\n }\n\n const setLoading = () => {\n if (currentSetValue) {\n const loadingState: UseQueryResult<TData, TError> = {\n data: undefined,\n dataUpdatedAt: Date.now(),\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n failureCount: 0,\n isError: false,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: true,\n isLoading: true,\n isLoadingError: false,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: mockRefetch,\n status: 'pending',\n failureReason: null,\n fetchStatus: 'fetching',\n isPending: true,\n isInitialLoading: true,\n isPaused: false,\n promise: new Promise(() => {}),\n }\n\n currentSetValue(loadingState)\n } else {\n console.warn(\n 'setError called before mock query was rendered or setValue was captured.',\n )\n }\n }\n\n function setIdle() {\n if (currentSetValue) {\n const idleState: UseQueryResult<TData, TError> = {\n data: undefined,\n dataUpdatedAt: 0,\n error: null,\n errorUpdateCount: 1,\n errorUpdatedAt: Date.now(),\n failureCount: 1,\n isError: false,\n isFetched: false,\n isFetchedAfterMount: false,\n isFetching: false,\n isLoadingError: false,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: mockRefetch,\n status: 'pending',\n failureReason: null,\n fetchStatus: 'idle',\n isInitialLoading: false,\n isPaused: true,\n isLoading: false,\n isPending: true,\n promise: new Promise(() => {}),\n }\n currentSetValue(idleState)\n } else {\n console.warn(\n 'setIdle called before mock query was rendered or setValue was captured.',\n )\n }\n }\n\n const mock = vi.fn(function useQueryMocked() {\n const [value, setValue] = useState<UseQueryResult<TData, TError>>({\n data: undefined,\n fetchStatus: 'fetching',\n dataUpdatedAt: 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n failureCount: 0,\n failureReason: null,\n isError: false,\n isFetched: false,\n isFetchedAfterMount: false,\n isFetching: false,\n isInitialLoading: false,\n isLoading: true,\n isLoadingError: false,\n isPaused: false,\n isPending: true,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: mockRefetch,\n status: 'pending',\n promise: new Promise(() => {}),\n })\n\n currentSetValue = setValue\n\n return value\n })\n return {\n mock: mock,\n mockRefetch: mockRefetch,\n setSuccess,\n setError,\n setLoading,\n setIdle,\n }\n}\n\n/**\n * @deprecated Use {@link getUseQueryMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseQuerySuccessMock<TData>(\n data: TData,\n): QueryObserverSuccessResult<TData, never> {\n return {\n data: data,\n dataUpdatedAt: Date.now(),\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n failureCount: 0,\n isError: false,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: false,\n isLoading: false,\n isLoadingError: false,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: true,\n refetch: vi.fn(),\n status: 'success',\n failureReason: null,\n fetchStatus: 'idle',\n isInitialLoading: false,\n isPaused: false,\n isPending: false,\n promise: Promise.resolve(data),\n }\n}\n\n/**\n * @deprecated Use {@link getUseQueryMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseQueryLoadingMock(): QueryObserverLoadingResult<\n never,\n never\n> {\n return {\n data: undefined,\n dataUpdatedAt: Date.now(),\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n failureCount: 0,\n isError: false,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: true,\n isLoading: true,\n isLoadingError: false,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: vi.fn(),\n status: 'pending',\n failureReason: null,\n fetchStatus: 'fetching',\n isPending: true,\n isInitialLoading: true,\n isPaused: false,\n promise: new Promise(() => {}),\n }\n}\n\n/**\n * @deprecated Use {@link getUseQueryMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseQueryErrorMock<TError>(\n error: TError,\n): UseQueryResult<never, TError> {\n return {\n data: undefined,\n dataUpdatedAt: 0,\n error: error,\n errorUpdateCount: 1,\n errorUpdatedAt: Date.now(),\n failureCount: 1,\n isError: true,\n isFetched: false,\n isFetchedAfterMount: true,\n isFetching: false,\n isLoadingError: true,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: vi.fn(),\n status: 'error',\n failureReason: null,\n fetchStatus: 'idle',\n isInitialLoading: false,\n isPaused: false,\n isLoading: false,\n isPending: false,\n promise: new Promise<never>(() => {}),\n }\n}\n\n/**\n * @deprecated Use {@link getUseQueryMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseQueryIdleMock(): UseQueryResult<never, never> {\n return {\n data: undefined,\n dataUpdatedAt: 0,\n error: null,\n errorUpdateCount: 1,\n errorUpdatedAt: Date.now(),\n failureCount: 1,\n isError: false,\n isFetched: false,\n isFetchedAfterMount: false,\n isFetching: false,\n isLoadingError: false,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: vi.fn(),\n status: 'pending',\n failureReason: null,\n fetchStatus: 'idle',\n isInitialLoading: false,\n isPaused: true,\n isLoading: false,\n isPending: true,\n promise: new Promise(() => {}),\n }\n}\n\n/**\n * Returns a mock instance for useMutation, as well as functions to manipulate the mock hook's state, and\n * mocks for function(s) returned by the hook.\n *\n * Example usage:\n * ```tsx\n * const { mock, setPending, setSuccess, mockMutate } = getUseMutationMockImpl<MyDataType, MyErrorType, MyVarsType>();\n *\n * // Set the mock implementation\n * myMockedHook.mockImplementation(mock);\n *\n * // ...trigger the mutation using your component/hook interface, then\n * expect(mockMutate).toHaveBeenCalledWith(expectedVars);\n * act(() => { setPending(); })\n *\n * // ...verify the pending state in your component/hook, then resolve the mutation\n *\n *\n * // Update the hook's state to success with data\n * act(() => { myMockedHook.setSuccess(myDataArray, true); });\n * ```\n */\nexport function getUseMutationMock<\n TData = unknown,\n TError = unknown,\n TVariables = unknown,\n>(): {\n mock: Mock<() => UseMutationResult<TData, TError, TVariables>>\n mockMutate: Mock<(vars: TVariables) => void>\n mockMutateAsync: Mock<(vars: TVariables) => Promise<TData>>\n mockReset: Mock\n setSuccess: (data: TData) => void\n setError: (error: TError) => void\n setPending: () => void\n setIdle: () => void\n} {\n let currentSetValue: Dispatch<\n SetStateAction<UseMutationResult<TData, TError, TVariables>>\n > | null = null\n\n function setVars(vars: TVariables) {\n if (currentSetValue) {\n currentSetValue(\n prevState =>\n ({\n ...prevState,\n variables: vars,\n }) as UseMutationResult<TData, TError, TVariables>,\n )\n } else {\n console.warn(\n 'mutate or mutateAsync called before mock mutation was rendered or setValue was captured.',\n )\n }\n }\n\n // Stable mock functions\n const mockMutate = vi.fn<(vars: TVariables) => void>()\n const mockMutateAsync = vi.fn<(vars: TVariables) => Promise<TData>>()\n const mockReset = vi.fn()\n const variables =\n mockMutate.mock.lastCall?.[0] ?? mockMutateAsync.mock.lastCall?.[0]\n\n function mutate(vars: TVariables): void {\n setVars(vars)\n mockMutate(vars)\n }\n\n function mutateAsync(vars: TVariables): Promise<TData> {\n setVars(vars)\n return mockMutateAsync(vars)\n }\n\n const setSuccess = (data: TData) => {\n if (currentSetValue) {\n const successState: UseMutationResult<TData, TError, TVariables> = {\n data: data,\n mutate,\n mutateAsync,\n reset: mockReset,\n context: undefined,\n error: null,\n failureCount: 0,\n isError: false,\n isIdle: false,\n isPaused: false,\n isSuccess: true,\n status: 'success',\n variables: variables!,\n failureReason: null,\n isPending: false,\n submittedAt: 0,\n }\n\n currentSetValue(\n prev =>\n ({ ...successState, variables: prev.variables }) as UseMutationResult<\n TData,\n TError,\n TVariables\n >,\n )\n } else {\n console.warn(\n 'setSuccess called before mock mutation was rendered or setValue was captured.',\n )\n }\n }\n\n const setError = (error: TError) => {\n if (currentSetValue) {\n const errorState: UseMutationResult<TData, TError, TVariables> = {\n error: error,\n data: undefined,\n mutate,\n mutateAsync,\n reset: mockReset,\n context: undefined,\n failureCount: 1,\n isError: true,\n isIdle: false,\n isPaused: false,\n isSuccess: false,\n status: 'error',\n variables: variables!,\n failureReason: error,\n isPending: false,\n submittedAt: 0,\n }\n\n currentSetValue(\n prev =>\n ({ ...errorState, variables: prev.variables }) as UseMutationResult<\n TData,\n TError,\n TVariables\n >,\n )\n } else {\n console.warn(\n 'setError called before mock mutation was rendered or setValue was captured.',\n )\n }\n }\n\n const setPending = () => {\n if (currentSetValue) {\n const pendingState: UseMutationResult<TData, TError, TVariables> = {\n data: undefined,\n error: null,\n mutate,\n mutateAsync,\n reset: mockReset,\n context: undefined,\n failureCount: 0,\n isError: false,\n isIdle: false,\n isPaused: false,\n isSuccess: false,\n status: 'pending',\n failureReason: null,\n isPending: true,\n submittedAt: 0,\n variables: variables!,\n }\n\n currentSetValue(\n prev =>\n ({ ...pendingState, variables: prev.variables }) as UseMutationResult<\n TData,\n TError,\n TVariables\n >,\n )\n } else {\n console.warn(\n 'setPending called before mock mutation was rendered or setValue was captured.',\n )\n }\n }\n\n function setIdle() {\n if (currentSetValue) {\n const idleState: UseMutationResult<TData, TError, TVariables> = {\n data: undefined,\n error: null,\n mutate,\n mutateAsync,\n reset: mockReset,\n variables: undefined,\n context: undefined,\n failureCount: 0,\n isError: false,\n isIdle: true,\n isPaused: false,\n isSuccess: false,\n status: 'idle',\n failureReason: null,\n isPending: false,\n submittedAt: 0,\n }\n currentSetValue(idleState)\n } else {\n console.warn(\n 'setIdle called before mock mutation was rendered or setValue was captured.',\n )\n }\n }\n\n const mock = vi.fn(function useMutationMocked() {\n const [value, setValue] = useState<\n UseMutationResult<TData, TError, TVariables>\n >({\n data: undefined,\n error: null,\n mutate,\n mutateAsync,\n reset: mockReset,\n variables: undefined,\n context: undefined,\n failureCount: 0,\n isError: false,\n isIdle: true,\n isPaused: false,\n isSuccess: false,\n status: 'idle',\n failureReason: null,\n isPending: false,\n submittedAt: 0,\n })\n\n currentSetValue = setValue\n\n return value\n })\n return {\n mock: mock,\n mockMutate,\n mockMutateAsync,\n mockReset,\n setSuccess,\n setError,\n setPending,\n setIdle,\n }\n}\n\n/**\n * @deprecated Use {@link getUseMutationMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseMutationIdleMock<\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n TData = any,\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n TError = any,\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n TVariables = any,\n>(data?: TData) {\n return {\n context: undefined,\n data: undefined,\n error: null,\n failureCount: 0,\n isError: false,\n isIdle: true,\n isPaused: false,\n isSuccess: false,\n mutate: vi.fn<Procedure>(),\n mutateAsync: vi.fn<Procedure>().mockResolvedValue(data),\n reset: vi.fn<Procedure>(),\n status: 'idle',\n variables: undefined,\n failureReason: null,\n isPending: false,\n submittedAt: 0,\n } satisfies UseMutationResult<TData, TError, TVariables>\n}\n\n/**\n * @deprecated Use {@link getUseMutationMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseMutationPendingMock<\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n TData = any,\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n TError = any,\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n TVariables = any,\n>(data?: TData, variables?: TVariables) {\n return {\n context: undefined,\n data: undefined,\n error: null,\n failureCount: 0,\n isError: false,\n isIdle: false,\n isPaused: false,\n isSuccess: false,\n mutate: vi.fn<Procedure>(),\n mutateAsync: vi.fn<Procedure>().mockResolvedValue(data),\n reset: vi.fn<Procedure>(),\n status: 'pending',\n variables: variables!,\n failureReason: null,\n isPending: true,\n submittedAt: 0,\n } satisfies UseMutationResult<TData, TError, TVariables>\n}\n\n/**\n * @deprecated Use {@link getUseInfiniteQueryMock} instead, which provides utilities to dynamically change the state of the mock hook.\n */\nexport function getUseInfiniteQuerySuccessMock<TData>(\n pages: TData[],\n hasNextPage = false,\n): UseInfiniteQueryResult<{ pages: TData[] }, never> {\n return {\n data: {\n pages: pages,\n },\n error: null,\n isError: false,\n isPending: false,\n isLoading: false,\n isLoadingError: false,\n isRefetchError: false,\n isSuccess: true,\n status: 'success',\n fetchNextPage: vi.fn(),\n fetchPreviousPage: vi.fn(),\n hasNextPage: hasNextPage,\n hasPreviousPage: false,\n isFetchingNextPage: false,\n isFetchingPreviousPage: false,\n dataUpdatedAt: 0,\n errorUpdatedAt: 0,\n failureCount: 0,\n failureReason: null,\n errorUpdateCount: 0,\n isFetched: false,\n isFetchedAfterMount: false,\n isFetching: false,\n isInitialLoading: false,\n isPaused: false,\n isPlaceholderData: false,\n isRefetching: false,\n isStale: false,\n refetch: vi.fn(),\n fetchStatus: 'idle',\n isFetchNextPageError: false,\n isFetchPreviousPageError: false,\n promise: Promise.resolve({ pages }),\n } satisfies UseInfiniteQueryResult<{ pages: TData[] }, never>\n}\n\n/**\n * Returns a mock instance for useInfiniteQuery, as well as functions to manipulate the mock hook's state, and\n * mock functions for fetchNextPage, fetchPreviousPage, and refetch.\n *\n * Example usage:\n * ```tsx\n * const { mock, setSuccess } = getUseInfiniteQueryMock<MyDataType, MyErrorType>();\n *\n * // Set the mock implementation\n * myMockedHook.mockImplementation(mock);\n * // Update the hook's state to success with data\n * act(() => { myMockedHook.setSuccess(myDataArray, true); });\n * ```\n */\nexport function getUseInfiniteQueryMock<TData = unknown, TError = unknown>(): {\n mock: Mock<() => UseInfiniteQueryResult<InfiniteData<TData>, TError>>\n mockFetchNextPage: Mock\n setSuccess: (\n data: TData[],\n hasNextPage?: boolean,\n isFetchingNextPage?: boolean,\n ) => void\n setError: (error: TError) => void\n setLoading: () => void\n} {\n // Stable mock functions\n const mockFetchNextPage = vi.fn()\n const mockFetchPreviousPage = vi.fn()\n const mockRefetch = vi.fn()\n\n let currentSetValue: Dispatch<\n SetStateAction<UseInfiniteQueryResult<InfiniteData<TData>, TError>>\n > | null = null\n\n const setSuccess = (\n data: TData[],\n hasNextPage = false,\n isFetchingNextPage = false,\n ) => {\n if (currentSetValue) {\n const successState: UseInfiniteQueryResult<\n InfiniteData<TData>,\n TError\n > = {\n data: { pages: data, pageParams: [] },\n hasNextPage: hasNextPage,\n status: 'success',\n isSuccess: true,\n isPending: false,\n isLoading: false,\n isError: false,\n error: null,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: false,\n isInitialLoading: false,\n isLoadingError: false,\n isRefetchError: false,\n isRefetching: false,\n fetchStatus: isFetchingNextPage ? 'fetching' : 'idle',\n isPaused: false,\n dataUpdatedAt: Date.now(),\n errorUpdatedAt: 0,\n errorUpdateCount: 0,\n failureCount: 0,\n failureReason: null,\n fetchNextPage: mockFetchNextPage,\n fetchPreviousPage: mockFetchPreviousPage,\n refetch: mockRefetch,\n hasPreviousPage: false,\n isFetchingNextPage: isFetchingNextPage,\n isFetchingPreviousPage: false,\n isPlaceholderData: false,\n isStale: false,\n isFetchPreviousPageError: false,\n isFetchNextPageError: false,\n promise: Promise.resolve({ pages: data, pageParams: [] }),\n }\n currentSetValue(successState)\n } else {\n console.warn(\n 'setSuccess called before useInfiniteQueryMock was rendered or setValue was captured.',\n )\n }\n }\n\n const setError = (error: TError) => {\n if (currentSetValue) {\n const errorState: UseInfiniteQueryResult<InfiniteData<TData>, TError> = {\n data: undefined,\n hasNextPage: false,\n status: 'error',\n isSuccess: false,\n isPending: false,\n isLoading: false,\n isError: true,\n error: error,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: false,\n isInitialLoading: false,\n isLoadingError: true,\n isRefetchError: false,\n isRefetching: false,\n fetchStatus: 'idle',\n isPaused: false,\n dataUpdatedAt: Date.now(),\n errorUpdatedAt: 0,\n errorUpdateCount: 0,\n failureCount: 0,\n failureReason: null,\n fetchNextPage: mockFetchNextPage,\n fetchPreviousPage: mockFetchPreviousPage,\n refetch: mockRefetch,\n hasPreviousPage: false,\n isFetchingNextPage: false,\n isFetchingPreviousPage: false,\n isPlaceholderData: false,\n isStale: false,\n isFetchNextPageError: false,\n isFetchPreviousPageError: false,\n promise: new Promise(() => {}),\n }\n currentSetValue(errorState)\n } else {\n console.warn(\n 'setError called before useInfiniteQueryMock was rendered or setValue was captured.',\n )\n }\n }\n\n const setLoading = () => {\n if (currentSetValue) {\n const loadingState: UseInfiniteQueryResult<\n InfiniteData<TData>,\n TError\n > = {\n data: undefined,\n hasNextPage: false,\n status: 'pending',\n isSuccess: false,\n isPending: true,\n isLoading: true,\n isError: false,\n error: null,\n isFetched: true,\n isFetchedAfterMount: true,\n isFetching: false,\n isInitialLoading: false,\n isLoadingError: false,\n isRefetchError: false,\n isRefetching: false,\n fetchStatus: 'fetching',\n isPaused: false,\n dataUpdatedAt: Date.now(),\n errorUpdatedAt: 0,\n errorUpdateCount: 0,\n failureCount: 0,\n failureReason: null,\n fetchNextPage: mockFetchNextPage,\n fetchPreviousPage: mockFetchPreviousPage,\n refetch: mockRefetch,\n hasPreviousPage: false,\n isFetchingNextPage: true,\n isFetchingPreviousPage: false,\n isPlaceholderData: false,\n isStale: false,\n isFetchNextPageError: false,\n isFetchPreviousPageError: false,\n promise: new Promise(() => {}),\n }\n currentSetValue(loadingState)\n } else {\n console.warn(\n 'setError called before useInfiniteQueryMock was rendered or setValue was captured.',\n )\n }\n }\n\n const mock = vi.fn(function useMockInfiniteQuery() {\n const [value, setValue] = useState<\n UseInfiniteQueryResult<InfiniteData<TData>, TError>\n >({\n data: undefined,\n fetchStatus: 'fetching',\n dataUpdatedAt: 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n failureCount: 0,\n failureReason: null,\n fetchNextPage: mockFetchNextPage,\n fetchPreviousPage: mockFetchPreviousPage,\n hasNextPage: false,\n hasPreviousPage: false,\n isError: false,\n isFetched: false,\n isFetchedAfterMount: false,\n isFetching: false,\n isFetchingNextPage: false,\n isFetchingPreviousPage: false,\n isInitialLoading: false,\n isLoading: true,\n isLoadingError: false,\n isPaused: false,\n isPending: true,\n isPlaceholderData: false,\n isRefetchError: false,\n isRefetching: false,\n isStale: false,\n isSuccess: false,\n refetch: mockRefetch,\n status: 'pending',\n isFetchNextPageError: false,\n isFetchPreviousPageError: false,\n promise: new Promise(() => {}),\n })\n\n currentSetValue = setValue\n\n return value\n })\n return {\n mock: mock,\n mockFetchNextPage: mockFetchNextPage,\n setSuccess,\n setError,\n setLoading,\n }\n}\n"],"mappings":";;AA4BA,SAAgB,IAOd;CAEA,IAAM,IAAc,GAAG,GAAG,GAEtB,IAEO,MAEL,KAAc,MAAgB;EAClC,IAAI,GAAiB;GACnB,IAAM,IAA8C;IAC5C;IACN,QAAQ;IACR,WAAW;IACX,WAAW;IACX,WAAW;IACX,SAAS;IACT,OAAO;IACP,WAAW;IACX,qBAAqB;IACrB,YAAY;IACZ,kBAAkB;IAClB,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,UAAU;IACV,eAAe,KAAK,IAAI;IACxB,gBAAgB;IAChB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,SAAS;IACT,mBAAmB;IACnB,SAAS;IACT,SAAS,QAAQ,QAAQ,CAAI;GAC/B;GAEA,EAAgB,CAAY;EAC9B,OACE,QAAQ,K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