@acceleratxr/core_sdk / ZoneService
Class: ZoneService#
Hierarchy#
-
↳ ZoneService
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new ZoneService(apiClient: ApiClient, config: Configuration): ZoneService
Overrides ServiceBase.constructor
Defined in src/services/ZoneService.ts:10
Parameters:#
Name |
Type |
|---|---|
|
|
|
Returns: ZoneService
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 = “9b130bd8-a8ae-4003-bea3-839819e001c1”
Defined in src/services/ZoneService.ts:16
Methods#
count#
▸ count(query?: any): Promise<number>
Defined in src/services/ZoneService.ts:57
Returns the count of groups
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<number>
countUsers#
▸ countUsers(id: string): Promise<number>
Defined in src/services/ZoneService.ts:115
Returns the count of users in a given zone.
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<number>
create#
▸ create(obj: Zone): Promise<Zone | undefined>
Defined in src/services/ZoneService.ts:33
Create a new group
Parameters:#
Name |
Type |
|---|---|
|
Returns: Promise<Zone | undefined>
delete#
▸ delete(id: string): Promise<void>
Defined in src/services/ZoneService.ts:102
Deletes the group
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<void>
findAll#
▸ findAll(query?: any): Promise<Zone[] | undefined>
Defined in src/services/ZoneService.ts:21
Returns all groups from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<Zone[] | undefined>
findById#
▸ findById(id: string): Promise<Zone | undefined>
Defined in src/services/ZoneService.ts:76
Returns a single group from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<Zone | undefined>
getUsers#
▸ getUsers(id: string): Promise<string[] | undefined>
Defined in src/services/ZoneService.ts:135
Returns the list of all user id’s in a given zone.
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<string[] | undefined>
truncate#
▸ truncate(query?: any): Promise<void>
Defined in src/services/ZoneService.ts:45
Deletes all roles from the service.
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<void>
update#
▸ update(id: string, obj: Zone): Promise<Zone | undefined>
Defined in src/services/ZoneService.ts:89
Updates a single group
Parameters:#
Name |
Type |
|---|---|
|
string |
|
Returns: Promise<Zone | undefined>