Module: data/repository
Type Aliases
repositoryGet
Ƭ repositoryGet<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | Entity <EntityName > | null |
entityName | EntityName |
id | string |
context? | ApiContext |
criteria? | default |
Defined in
packages/admin-sdk/src/data/repository.ts:41
repositorySearch
Ƭ repositorySearch<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | default <EntityName > |
entityName | EntityName |
criteria? | default |
context? | ApiContext |
Defined in
packages/admin-sdk/src/data/repository.ts:49
repositorySave
Ƭ repositorySave<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | void |
entityName | EntityName |
entity | Entity <EntityName > |
context? | ApiContext |
Defined in
packages/admin-sdk/src/data/repository.ts:56
repositoryClone
Ƭ repositoryClone<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | unknown |
entityName | EntityName |
entityId | string |
context? | ApiContext |
behavior? | any |
Defined in
packages/admin-sdk/src/data/repository.ts:63
repositoryHasChanges
Ƭ repositoryHasChanges<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | boolean |
entityName | EntityName |
entity | Entity <EntityName > |
Defined in
packages/admin-sdk/src/data/repository.ts:72
repositorySaveAll
Ƭ repositorySaveAll<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | void |
entityName | EntityName |
entities | default <EntityName > |
context? | ApiContext |
Defined in
packages/admin-sdk/src/data/repository.ts:78
repositoryDelete
Ƭ repositoryDelete<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | void |
entityName | EntityName |
entityId | string |
context? | ApiContext |
Defined in
packages/admin-sdk/src/data/repository.ts:85
repositoryCreate
Ƭ repositoryCreate<EntityName
>: Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Type declaration
Name | Type |
---|---|
responseType | Entity <EntityName > |
entityName | EntityName |
entityId? | string |
context? | ApiContext |
Defined in
packages/admin-sdk/src/data/repository.ts:92
Functions
default
▸ default<EntityName
>(entityName
): Object
Type parameters
Name | Type |
---|---|
EntityName | extends keyof Entities |
Parameters
Name | Type |
---|---|
entityName | EntityName |
Returns
Object
Name | Type |
---|---|
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