-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
235eaef
commit 1a79e2b
Showing
18 changed files
with
100 additions
and
8 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
acq-components/lib/FindRecords/hooks/useRecordsSelect/useRecordsSelect.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
interface useRecordsSelectReturn<T> { | ||
allRecordsSelected: boolean; | ||
selectedRecordsMap: Record<string, T>; | ||
isRecordSelected: ({ item: T }); | ||
resetSelectedRecords: () => void; | ||
selectedRecordsLength: number; | ||
toggleSelectAll: () => void; | ||
selectedRecordsMap: Record<string, T>; | ||
selectRecord: (record: T) => void; | ||
isRecordSelected: ({ item: T }); | ||
toggleSelectAll: () => void; | ||
} | ||
|
||
export declare function useRecordsSelect<T = unknown & { id: string }>({ records }: { records: T[] }): useRecordsSelectReturn<T>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './menu-items'; | ||
export * from './modals'; |
20 changes: 20 additions & 0 deletions
20
acq-components/lib/claiming/components/modals/DelayClaimsModal/DelayClaimsModal.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { | ||
FormProps, | ||
FormRenderProps, | ||
} from 'react-final-form'; | ||
|
||
|
||
interface DelayClaimsModalOwnProps { | ||
claimsCount: number; | ||
disabled: boolean; | ||
onCancel: () => void; | ||
open: boolean; | ||
} | ||
|
||
type DelayClaimsModalProps<FormValues = Record<string, unknown>> = | ||
DelayClaimsModalOwnProps & | ||
Pick<FormProps<FormValues>, 'onSubmit'> & | ||
Partial<FormRenderProps<FormValues>>; | ||
|
||
export declare const DelayClaimsModal: <FormValues = Record<string, unknown>>(props: DelayClaimsModalProps<FormValues>) => React.JSX.Element; |
1 change: 1 addition & 0 deletions
1
acq-components/lib/claiming/components/modals/DelayClaimsModal/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DelayClaimsModal } from './DelayClaimsModal'; |
19 changes: 19 additions & 0 deletions
19
acq-components/lib/claiming/components/modals/SendClaimsModal/SendClaimsModal.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { | ||
FormProps, | ||
FormRenderProps, | ||
} from 'react-final-form'; | ||
|
||
interface SendClaimsModalOwnProps { | ||
claimsCount: number; | ||
disabled: boolean; | ||
onCancel: () => void; | ||
open: boolean; | ||
} | ||
|
||
type SendClaimsModalProps<FormValues = Record<string, unknown>> = | ||
SendClaimsModalOwnProps & | ||
Pick<FormProps<FormValues>, 'onSubmit'> & | ||
Partial<FormRenderProps<FormValues>>; | ||
|
||
export declare const SendClaimsModal: <FormValues = Record<string, unknown>>(props: SendClaimsModalProps<FormValues>) => React.JSX.Element; |
1 change: 1 addition & 0 deletions
1
acq-components/lib/claiming/components/modals/SendClaimsModal/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { SendClaimsModal } from './SendClaimsModal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { DelayClaimsModal } from './DelayClaimsModal'; | ||
export { SendClaimsModal } from './SendClaimsModal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { useClaimsSend } from './useClaimsSend'; | ||
export { useClaimsDelay } from './useClaimsDelay'; | ||
export { ClaimingPieceResult, useClaimsSend } from './useClaimsSend'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { useClaimsDelay } from './useClaimsDelay'; |
14 changes: 14 additions & 0 deletions
14
acq-components/lib/claiming/hooks/useClaimsDelay/useClaimsDelay.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { usePiecesStatusBatchUpdate } from '../../../hooks'; | ||
|
||
interface useClaimsDelayReturn { | ||
isLoading: boolean; | ||
delayClaims: ({ | ||
claimingInterval, | ||
pieceIds, | ||
}: { | ||
claimingInterval: number, | ||
pieceIds: string[], | ||
}) => Promise<ReturnType<typeof usePiecesStatusBatchUpdate>>; | ||
} | ||
|
||
export declare function useClaimsDelay(): useClaimsDelayReturn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { useClaimsSend } from './useClaimsSend'; | ||
export { ClaimingPieceResult, useClaimsSend } from './useClaimsSend'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './components'; | ||
export * from './hooks'; | ||
export * from './utils'; |
3 changes: 3 additions & 0 deletions
3
acq-components/lib/claiming/utils/getClaimingIntervalFromDate.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import dayjs from 'dayjs'; | ||
|
||
export declare function getClaimingIntervalFromDate(date: dayjs.ConfigType): number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { getClaimingIntervalFromDate } from './getClaimingIntervalFromDate'; |
21 changes: 21 additions & 0 deletions
21
acq-components/lib/hooks/usePiecesStatusBatchUpdate/usePiecesStatusBatchUpdate.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export interface UpdatePiecesStatusData { | ||
pieceIds: string[], | ||
receivingStatus: ACQ.Piece.ReceivingStatus, | ||
claimingInterval?: number, | ||
} | ||
|
||
interface UpdatePiecesStatusErrorResponse { | ||
errors: Array<{ | ||
message: string; | ||
code?: string; | ||
}> | ||
} | ||
|
||
export type UpdatePiecesStatusResponse = null | UpdatePiecesStatusErrorResponse; | ||
|
||
interface usePiecesStatusBatchUpdateReturn { | ||
isLoading: boolean; | ||
updatePiecesStatus: ({ data }: { data: UpdatePiecesStatusData }) => Promise<UpdatePiecesStatusResponse>; | ||
} | ||
|
||
export declare function usePiecesStatusBatchUpdate(): usePiecesStatusBatchUpdateReturn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// targeted to stripes-final-form v7.0.0 | ||
export { default } from './lib/stripesFinalForm'; | ||
export { default, FormProps, FormRenderProps } from './lib/stripesFinalForm'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters