All files / app/src/entities/documents/lib constants.ts

100% Statements 10/10
100% Branches 0/0
100% Functions 0/0
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17    1x 1x   1x   1x 1x   1x   1x 1x 1x 1x  
import { Nullable } from '@/shared/@types'
 
export const DOCUMENTS_TARGET = '/documents'
export const DOCUMENT_CREATE_PRIMARY_KEY = [DOCUMENTS_TARGET, 'create-document']
 
export const GET_DOCUMENTS_COLLECTION_PRIMARY_KEY = [DOCUMENTS_TARGET, 'get-documents']
 
export const DOCUMENTS_SINGLE_TARGET = '/documents/:id'
export const DOCUMENT_REMOVE_PRIMARY_KEY = [DOCUMENTS_SINGLE_TARGET, 'delete-document']
 
export const GET_DOCUMENT_PRIMARY_KEY = [DOCUMENTS_SINGLE_TARGET, 'get-document']
 
export const DOCUMENTS_INITIAL_FILTERS = {
  'pipes.pipe': null as Nullable<string>,
  id: null as Nullable<string[]>,
}