@acceleratxr/core_sdk / PersonaStatDefinitionService

Class: PersonaStatDefinitionService#

Hierarchy#

Index#

Constructors#

Properties#

Methods#

Constructors#

constructor#

+ new PersonaStatDefinitionService(apiClient: ApiClient, config: Configuration): PersonaStatDefinitionService

Overrides ServiceBase.constructor

Defined in src/services/PersonaStatDefinitionService.ts:10

Parameters:#

Name

Type

apiClient

ApiClient

config

Configuration

Returns: PersonaStatDefinitionService

Properties#

apiClient#

Protected apiClient: ApiClient

Inherited from ServiceBase.apiClient

Defined in src/ServiceBase.ts:14

The API Client used when making requests to the API backend server.


config#

Protected config: Configuration

Inherited from ServiceBase.config

Defined in src/ServiceBase.ts:19

The SDK configuration to use.


uuid#

Static uuid: string = “fc2c7311-699d-4b80-aa44-1d9ca871dc0c”

Defined in src/services/PersonaStatDefinitionService.ts:16

Methods#

count#

count(query?: any): Promise<number>

Defined in src/services/PersonaStatDefinitionService.ts:45

Returns the count of persona stat definitions

Parameters:#

Name

Type

query?

any

Returns: Promise<number>


create#

create(obj: PersonaStatDefinition): Promise<PersonaStatDefinition | undefined>

Defined in src/services/PersonaStatDefinitionService.ts:33

Create a persona stat definitions

Parameters:#

Name

Type

obj

PersonaStatDefinition

Returns: Promise<PersonaStatDefinition | undefined>


delete#

delete(id: string): Promise<void>

Defined in src/services/PersonaStatDefinitionService.ts:90

Deletes the persona stat definition

Parameters:#

Name

Type

id

string

Returns: Promise<void>


findAll#

findAll(query?: any): Promise<PersonaStatDefinition[] | undefined>

Defined in src/services/PersonaStatDefinitionService.ts:21

Returns all persona stat definitions from the system that the user has access to

Parameters:#

Name

Type

query?

any

Returns: Promise<PersonaStatDefinition[] | undefined>


findById#

findById(id: string): Promise<PersonaStatDefinition | undefined>

Defined in src/services/PersonaStatDefinitionService.ts:64

Returns a single persona stat definition from the system that the user has access to

Parameters:#

Name

Type

id

string

Returns: Promise<PersonaStatDefinition | undefined>


update#

update(id: string, obj: PersonaStatDefinition): Promise<PersonaStatDefinition | undefined>

Defined in src/services/PersonaStatDefinitionService.ts:77

Updates a single persona stat definition

Parameters:#

Name

Type

id

string

obj

PersonaStatDefinition

Returns: Promise<PersonaStatDefinition | undefined>