Skip to main content

Module: data/repository

Type Aliases

repositoryGet

Ƭ repositoryGet<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypeEntity<EntityName> | null
entityNameEntityName
idstring
context?ApiContext
criteria?default

Defined in

packages/admin-sdk/src/data/repository.ts:41


repositorySearch

Ƭ repositorySearch<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypedefault<EntityName>
entityNameEntityName
criteria?default
context?ApiContext

Defined in

packages/admin-sdk/src/data/repository.ts:49


repositorySave

Ƭ repositorySave<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypevoid
entityNameEntityName
entityEntity<EntityName>
context?ApiContext

Defined in

packages/admin-sdk/src/data/repository.ts:56


repositoryClone

Ƭ repositoryClone<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypeunknown
entityNameEntityName
entityIdstring
context?ApiContext
behavior?any

Defined in

packages/admin-sdk/src/data/repository.ts:63


repositoryHasChanges

Ƭ repositoryHasChanges<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypeboolean
entityNameEntityName
entityEntity<EntityName>

Defined in

packages/admin-sdk/src/data/repository.ts:72


repositorySaveAll

Ƭ repositorySaveAll<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypevoid
entityNameEntityName
entitiesdefault<EntityName>
context?ApiContext

Defined in

packages/admin-sdk/src/data/repository.ts:78


repositoryDelete

Ƭ repositoryDelete<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypevoid
entityNameEntityName
entityIdstring
context?ApiContext

Defined in

packages/admin-sdk/src/data/repository.ts:85


repositoryCreate

Ƭ repositoryCreate<EntityName>: Object

Type parameters

NameType
EntityNameextends keyof Entities

Type declaration

NameType
responseTypeEntity<EntityName>
entityNameEntityName
entityId?string
context?ApiContext

Defined in

packages/admin-sdk/src/data/repository.ts:92

Functions

default

default<EntityName>(entityName): Object

Type parameters

NameType
EntityNameextends keyof Entities

Parameters

NameType
entityNameEntityName

Returns

Object

NameType
search(criteria: default, context?: ApiContext) => Promise<null | default<EntityName>>
get(id: string, context?: ApiContext, criteria?: default) => Promise<null | Entity<EntityName>>
save(entity: Entity<EntityName>, context?: ApiContext) => Promise<null | void>
clone(entityId: string, context?: ApiContext, behavior?: any) => Promise<unknown>
hasChanges(entity: Entity<EntityName>) => Promise<null | boolean>
saveAll(entities: default<EntityName>, context?: ApiContext) => Promise<unknown>
delete(entityId: string, context?: ApiContext) => Promise<null | void>
create(context?: ApiContext, entityId?: string) => Promise<null | Entity<EntityName>>

Defined in

packages/admin-sdk/src/data/repository.ts:10