-
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.
Merge branch 'master' into STTYPES-16
- Loading branch information
Showing
33 changed files
with
186 additions
and
5 deletions.
There are no files selected for viewing
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
20 changes: 19 additions & 1 deletion
20
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 +1,19 @@ | ||
export const useRecordsSelect: any; | ||
interface useRecordsSelectReturn<T> { | ||
allRecordsSelected: boolean; | ||
isRecordSelected: ({ item: T }); | ||
resetAllSelectedRecords: () => void; | ||
/* | ||
* Clear selected records with provided ids. | ||
*/ | ||
resetSelectedRecordsByIds: (ids: string[]) => void; | ||
/* | ||
* Clear selected records except the ones with provided ids. | ||
*/ | ||
resetOtherSelectedRecordsByIds: (ids: string[]) => void; | ||
selectedRecordsLength: number; | ||
selectedRecordsMap: Record<string, T>; | ||
selectRecord: (record: T) => void; | ||
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 './FindRecords'; | ||
export { useRecordsSelect } from './hooks'; |
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 * from './menu-items'; | ||
export * from './modals'; |
6 changes: 6 additions & 0 deletions
6
...lib/claiming/components/menu-items/DelayClaimActionMenuItem/DelayClaimActionMenuItem.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,6 @@ | ||
interface DelayClaimActionMenuItemProps { | ||
disabled?: boolean; | ||
onClick: (e?: Event) => void; | ||
} | ||
|
||
export declare function DelayClaimActionMenuItem(props: DelayClaimActionMenuItemProps): React.JSX.Element; |
1 change: 1 addition & 0 deletions
1
acq-components/lib/claiming/components/menu-items/DelayClaimActionMenuItem/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 { DelayClaimActionMenuItem } from './DelayClaimActionMenuItem'; |
6 changes: 6 additions & 0 deletions
6
.../components/menu-items/MarkUnreceivableActionMenuItem/MarkUnreceivableActionMenuItem.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,6 @@ | ||
interface MarkUnreceivableActionMenuItemProps { | ||
disabled?: boolean; | ||
onClick: (e?: Event) => void; | ||
} | ||
|
||
export declare function MarkUnreceivableActionMenuItem(props: MarkUnreceivableActionMenuItemProps): React.JSX.Element; |
1 change: 1 addition & 0 deletions
1
acq-components/lib/claiming/components/menu-items/MarkUnreceivableActionMenuItem/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 { MarkUnreceivableActionMenuItem } from './MarkUnreceivableActionMenuItem'; |
6 changes: 6 additions & 0 deletions
6
...s/lib/claiming/components/menu-items/SendClaimActionMenuItem/SendClaimActionMenuItem.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,6 @@ | ||
interface SendClaimActionMenuItemProps { | ||
disabled?: boolean; | ||
onClick: (e?: Event) => void; | ||
} | ||
|
||
export declare function SendClaimActionMenuItem(props: SendClaimActionMenuItemProps): React.JSX.Element; |
1 change: 1 addition & 0 deletions
1
acq-components/lib/claiming/components/menu-items/SendClaimActionMenuItem/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 { SendClaimActionMenuItem } from './SendClaimActionMenuItem'; |
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 @@ | ||
export { DelayClaimActionMenuItem } from './DelayClaimActionMenuItem'; | ||
export { MarkUnreceivableActionMenuItem } from './MarkUnreceivableActionMenuItem'; | ||
export { SendClaimActionMenuItem } from './SendClaimActionMenuItem'; |
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 { | ||
FormProps, | ||
FormRenderProps, | ||
} from 'react-final-form'; | ||
|
||
|
||
interface DelayClaimsModalOwnProps { | ||
claimsCount: number; | ||
disabled: boolean; | ||
message?: React.JSX.Element, | ||
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 { | ||
FormProps, | ||
FormRenderProps, | ||
} from 'react-final-form'; | ||
|
||
interface SendClaimsModalOwnProps { | ||
claimsCount: number; | ||
disabled: boolean; | ||
message?: React.JSX.Element, | ||
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { ClaimingPieceResult, useClaimsSend } from './useClaimsSend'; |
28 changes: 28 additions & 0 deletions
28
acq-components/lib/claiming/hooks/useClaimsSend/useClaimsSend.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,28 @@ | ||
interface SendClaimsData { | ||
claimingPieceIds: string[]; | ||
claimingInterval: number; | ||
internalNote?: string; | ||
externalNote?: string; | ||
} | ||
|
||
export interface ClaimingPieceResult { | ||
pieceId: string; | ||
type: 'success' | 'failure'; | ||
error?: { | ||
code?: string; | ||
message: string; | ||
type?: string; | ||
}; | ||
} | ||
|
||
export interface SendClaimsResponse { | ||
claimingPieceResults: ClaimingPieceResult[]; | ||
totalRecords: number; | ||
} | ||
|
||
interface useClaimsSendReturn { | ||
isLoading: boolean; | ||
sendClaims: ({ data }: { data: SendClaimsData }) => Promise<SendClaimsResponse>; | ||
} | ||
|
||
export declare function useClaimsSend(): useClaimsSendReturn; |
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 @@ | ||
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'; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { usePiecesStatusBatchUpdate } from './usePiecesStatusBatchUpdate'; |
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; |
12 changes: 11 additions & 1 deletion
12
acq-components/lib/hooks/useShowCallout/useShowCallout.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 +1,11 @@ | ||
export const useShowCallout: any; | ||
import { CalloutContextType } from '../../../../core'; | ||
|
||
type ShowCalloutFnArgs = Omit<Parameters<CalloutContextType['sendCallout']>[0], 'message'> & { | ||
message?: string | React.ReactNode, | ||
messageId?: string, | ||
values?: Record<string, string>, | ||
}; | ||
|
||
type ShowCalloutFn = (args: ShowCalloutFnArgs) => void; | ||
|
||
export declare function useShowCallout(): ShowCalloutFn; |
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
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,4 @@ | ||
export { ResponseErrorsContainer } from './ResponseErrorsContainer'; | ||
export { | ||
ErrorHandlingStrategy, | ||
ResponseErrorsContainer, | ||
} from './ResponseErrorsContainer'; |
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