core-data-layer

v0.0.15arrow_drop_down
v0.0.15
v0.0.14
v0.0.13
v0.0.12
v0.0.11
v0.0.10
v0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
1,660
VISIBILITY
Public
PUBLISHED
2 years ago
SIZE
11 KB
Call all items when an itemUuid is not provided
Install core-data-layer as a package?
Copied
npm i @bit/equipmentshare.global.libs.core-data-layer
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

@rentops/frontend

Type aliases

Variables

Functions

Type aliases

HexRGB

F, HexRGB: string

Defined in: src/libs/core-data-layer/types/core.ts:2


ProgressValue

F, ProgressValue: typeof Progress[keyof typeof Progress]

Defined in: src/libs/core-data-layer/types/progress.ts:7


RFC3339DateString

F, RFC3339DateString: string

Defined in: src/libs/core-data-layer/types/core.ts:3


UUID

F, UUID: string

Defined in: src/libs/core-data-layer/types/core.ts:1

Variables

Progress

b" Const Progress: object

Type declaration:

NameType
FULFILLEDstring
IDLEstring
PENDINGstring
REJECTEDstring

Defined in: src/libs/core-data-layer/types/progress.ts:1

Functions

headerWithAccessToken

b8 ConstheaderWithAccessToken(accessToken: string): object

Parameters:

NameType
accessTokenstring

Returns: object

NameType
headersany

Defined in: src/libs/core-data-layer/libs/headers.tsx:3


mergeCollectionByCRMEntityUuid

b8 mergeCollectionByCRMEntityUuid<T>(arr1: T[], arr2: T[]): T[]

Type parameters:

NameType
Tunknown

Parameters:

NameType
arr1T[]
arr2T[]

Returns: T[]

Defined in: src/libs/core-data-layer/libs/merge-collection-by.ts:26


mergeCollectionByKey

b8 mergeCollectionByKey<T>(arr1: T[], arr2: T[], key: string): T[]

Type parameters:

NameType
Tunknown

Parameters:

NameType
arr1T[]
arr2T[]
keystring

Returns: T[]

Defined in: src/libs/core-data-layer/libs/merge-collection-by.ts:1


mergeCollectionByUuid

b8 mergeCollectionByUuid<T>(arr1: T[], arr2: T[]): T[]

Type parameters:

NameType
Tunknown

Parameters:

NameType
arr1T[]
arr2T[]

Returns: T[]

Defined in: src/libs/core-data-layer/libs/merge-collection-by.ts:22


useCoreCudItem

b8 useCoreCudItem<Item, SWRKeyName, CreateItem, UpdateItem>(params: IUseCoreGetItemParam<SWRKeyName>): ICoreGetItemDataReturn<Item, SWRKeyName>

Type parameters:

NameTypeDefaultDescription
Item--The main model type you are passing
SWRKeyNamestring**Used for revalidation of calls
CreateItemunknown{}
UpdateItemunknown{}

Parameters:

NameType
paramsIUseCoreGetItemParam<SWRKeyName>

Returns: ICoreGetItemDataReturn<Item, SWRKeyName>

Defined in: src/libs/core-data-layer/hooks/use-core-get-item.tsx:39


useCoreCudItems

b8 useCoreCudItems<Item, SWRKeyName, CreateItem, UpdateItem>(params: IUseCoreCudItemsParam<SWRKeyName>): ICoreCudItemsDataReturn<Item, SWRKeyName, CreateItem, UpdateItem>

Type parameters:

NameTypeDefaultDescription
Item--The main model type you are passing
SWRKeyNamestring**Used for revalidation of calls
CreateItemunknown{}
UpdateItemunknown{}

Parameters:

NameType
paramsIUseCoreCudItemsParam<SWRKeyName>

Returns: ICoreCudItemsDataReturn<Item, SWRKeyName, CreateItem, UpdateItem>

Defined in: src/libs/core-data-layer/hooks/use-core-cud-items.tsx:42


useCoreGetItems

b8 useCoreGetItems<Item, SWRKeyName>(__namedParameters: IUseCoreGetItemsParam<SWRKeyName>): ICoreGetItemsDataReturn<Item>

Type parameters:

NameTypeDefaultDescription
Item--The main model type you are passing
SWRKeyNamestring**Used for revalidation of calls

Parameters:

NameType
__namedParametersIUseCoreGetItemsParam<SWRKeyName>

Returns: ICoreGetItemsDataReturn<Item>

Defined in: src/libs/core-data-layer/hooks/use-core-get-items.tsx:37


useCorePagination

b8 useCorePagination<Entity>(params: IUseCorePaginationParams): IUseCorePaginationReturn<Entity>

Type parameters:

NameDefault
Entityany

Parameters:

NameType
paramsIUseCorePaginationParams

Returns: IUseCorePaginationReturn<Entity>

Defined in: src/libs/core-data-layer/hooks/use-core-pagination.tsx:30

Help and resources