Globals / "modules/images" / Images
-
↳ Images
+ new Images(pageSize
: number, requestHelper
: RequestHelper): Images
Overrides BaseModule.constructor
Defined in modules/images.ts:10
Name | Type |
---|---|
pageSize |
number |
requestHelper |
RequestHelper |
Returns: Images
▸ deleteById(imageId
: string): Promise<any>
Defined in modules/images.ts:53
Delete an Image using its identifier
Name | Type | Description |
---|---|---|
imageId |
string | the identifier of the Image |
Returns: Promise<any>
Promise
▸ getActionById(imageId
: string, actionId
: string): Promise<any>
Defined in modules/images.ts:102
Get the details of an Action for an Image
Name | Type | Description |
---|---|---|
imageId |
string | the identifier of the Image |
actionId |
string | the identifier of the Action |
Returns: Promise<any>
Promise
▸ getActions(imageId
: string, includeAll?
: boolean, page?
: number, pageSize?
: number): Promise<any>
Defined in modules/images.ts:84
Get all actions for an Image
Name | Type | Default value | Description |
---|---|---|---|
imageId |
string | - | the identifier of the Image to retrieve actions for |
includeAll |
boolean | false | - |
page |
number | 1 | - |
pageSize |
number | this.pageSize | - |
Returns: Promise<any>
Promise
▸ getAll(tagName
: string, includeAll?
: boolean, page?
: number, pageSize?
: number): Promise<any>
Defined in modules/images.ts:24
Get all Images
Name | Type | Default value |
---|---|---|
tagName |
string | - |
includeAll |
boolean | false |
page |
number | 1 |
pageSize |
number | this.pageSize |
Returns: Promise<any>
Promise
▸ getByIdOrSlug(imageIdOrSlug
: string): Promise<any>
Defined in modules/images.ts:42
Get an Image using its identifier or slug
Name | Type | Description |
---|---|---|
imageIdOrSlug |
string | the identifier or slug of the Image |
Returns: Promise<any>
Promise
▸ rename(imageId
: string, newName
: string): Promise<any>
Defined in modules/images.ts:66
Rename an Image
Name | Type | Description |
---|---|---|
imageId |
string | the identifier of the Image |
newName |
string | the new name to use |
Returns: Promise<any>
Promise
▸ requestAction(imageId
: string, action
: any): Promise<any>
Defined in modules/images.ts:114
Request an Action on an Image
Name | Type | Description |
---|---|---|
imageId |
string | the identifier of the Image |
action |
any | the Action to request on the Image |
Returns: Promise<any>
Promise