Appearance
node-zendesk / Exports / clients/helpcenter/articlecomments / ArticleComments
clients/helpcenter/articlecomments.ArticleComments
Represents a client to interact with the Zendesk API, providing functionalities to make various types of requests. This client handles request construction, response processing, event emission, and more.
Client
↳ ArticleComments
ArticleComments
• new ArticleComments(options): ArticleComments
options
any
Client.constructor
clients/helpcenter/articlecomments.d.ts:2
• _transporter: Transporter
Transporter
Client._transporter
clients/client.d.ts:94
• eventTarget: CustomEventTarget
CustomEventTarget
Event target to handle custom events.
Client.eventTarget
clients/client.d.ts:92
• jsonAPINames: string[]
string
Array to hold names used in the JSON API.
Client.jsonAPINames
clients/helpcenter/articlecomments.d.ts:3
• options: ClientOptions & { get: (key: string) => any }
ClientOptions
get
key
Configuration options for the client.
Client.options
clients/client.d.ts:86
• sideLoad: any[]
Array to handle side-loaded resources.
Client.sideLoad
clients/client.d.ts:89
• sideLoadMap: { dataset: string ; field: string ; name: string }[]
dataset
field
name
clients/helpcenter/articlecomments.d.ts:4
• useDotJson: boolean
boolean
Flag to indicate if the API endpoint should use '.json' ending.
Client.useDotJson
clients/client.d.ts:91
• get transporter(): Transporter
Transporter for making requests.
Client.transporter
clients/client.d.ts:93
▸ _rawRequest(method, uri, ...args): Promise<{ response: any ; result: {} }>
method
uri
...args
Promise
response
result
Promise<{ response: any ; result: {} }>
Client._rawRequest
clients/client.d.ts:130
▸ create(articleID, comment): Promise<NodeModule>
articleID
comment
NodeModule
Promise<NodeModule>
clients/helpcenter/articlecomments.d.ts:12
▸ delete(articleID, commentID): Promise<any>
commentID
Deletes a resource.
Promise<any>
Client.delete
clients/helpcenter/articlecomments.d.ts:14
▸ emit(eventType, eventData): void
eventType
eventData
void
Client.emit
clients/client.d.ts:95
▸ get(resource): Promise<NodeModule>
resource
Client.get
clients/client.d.ts:114
▸ getAll(resource): Promise<any[]>
Promise<any[]>
Client.getAll
clients/client.d.ts:129
▸ listByArticle(articleID): Promise<any[]>
clients/helpcenter/articlecomments.d.ts:10
▸ listByUser(userID): Promise<any[]>
userID
clients/helpcenter/articlecomments.d.ts:9
▸ on(eventType, callback): void
callback
Client.on
clients/client.d.ts:96
▸ patch(...args): Promise<void | object>
object
Patches a resource.
Promise<void | object>
Client.patch
clients/client.d.ts:120
▸ post(resource, body): Promise<NodeModule>
body
Client.post
clients/client.d.ts:122
▸ put(resource, body): Promise<NodeModule>
Client.put
clients/client.d.ts:121
▸ request<T>(method, uri, ...args): Promise<NodeModule>
T
Request method that handles various HTTP methods.
Client.request
clients/client.d.ts:148
▸ requestAll(method, uri, ...args): Promise<any[]>
Client.requestAll
clients/client.d.ts:149
▸ requestUpload(uri, file): Promise<any>
file
Client.requestUpload
clients/client.d.ts:150
▸ setSideLoad(array): void
array
Client.setSideLoad
clients/client.d.ts:113
▸ show(articleID, commentID): Promise<NodeModule>
clients/helpcenter/articlecomments.d.ts:11
▸ update(articleID, commentID, comment): Promise<NodeModule>
clients/helpcenter/articlecomments.d.ts:13
node-zendesk / Exports / clients/helpcenter/articlecomments / ArticleComments
Class: ArticleComments
clients/helpcenter/articlecomments.ArticleComments
Represents a client to interact with the Zendesk API, providing functionalities to make various types of requests. This client handles request construction, response processing, event emission, and more.
Hierarchy
Client
↳
ArticleComments
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new ArticleComments(
options
):ArticleComments
Parameters
options
any
Returns
ArticleComments
Overrides
Client.constructor
Defined in
clients/helpcenter/articlecomments.d.ts:2
Properties
_transporter
• _transporter:
Transporter
Inherited from
Client._transporter
Defined in
clients/client.d.ts:94
eventTarget
• eventTarget:
CustomEventTarget
Event target to handle custom events.
Inherited from
Client.eventTarget
Defined in
clients/client.d.ts:92
jsonAPINames
• jsonAPINames:
string
[]Array to hold names used in the JSON API.
Overrides
Client.jsonAPINames
Defined in
clients/helpcenter/articlecomments.d.ts:3
options
• options:
ClientOptions
& {get
: (key
:string
) =>any
}Configuration options for the client.
Inherited from
Client.options
Defined in
clients/client.d.ts:86
sideLoad
• sideLoad:
any
[]Array to handle side-loaded resources.
Inherited from
Client.sideLoad
Defined in
clients/client.d.ts:89
sideLoadMap
• sideLoadMap: {
dataset
:string
;field
:string
;name
:string
}[]Defined in
clients/helpcenter/articlecomments.d.ts:4
useDotJson
• useDotJson:
boolean
Flag to indicate if the API endpoint should use '.json' ending.
Inherited from
Client.useDotJson
Defined in
clients/client.d.ts:91
Accessors
transporter
•
get
transporter():Transporter
Transporter for making requests.
Returns
Transporter
Inherited from
Client.transporter
Defined in
clients/client.d.ts:93
Methods
_rawRequest
▸ _rawRequest(
method
,uri
,...args
):Promise
<{response
:any
;result
: {} }>Parameters
method
any
uri
any
...args
any
[]Returns
Promise
<{response
:any
;result
: {} }>Inherited from
Client._rawRequest
Defined in
clients/client.d.ts:130
create
▸ create(
articleID
,comment
):Promise
<NodeModule
>Parameters
articleID
any
comment
any
Returns
Promise
<NodeModule
>Defined in
clients/helpcenter/articlecomments.d.ts:12
delete
▸ delete(
articleID
,commentID
):Promise
<any
>Deletes a resource.
Parameters
articleID
any
commentID
any
Returns
Promise
<any
>Overrides
Client.delete
Defined in
clients/helpcenter/articlecomments.d.ts:14
emit
▸ emit(
eventType
,eventData
):void
Parameters
eventType
any
eventData
any
Returns
void
Inherited from
Client.emit
Defined in
clients/client.d.ts:95
get
▸ get(
resource
):Promise
<NodeModule
>Parameters
resource
any
Returns
Promise
<NodeModule
>Inherited from
Client.get
Defined in
clients/client.d.ts:114
getAll
▸ getAll(
resource
):Promise
<any
[]>Parameters
resource
any
Returns
Promise
<any
[]>Inherited from
Client.getAll
Defined in
clients/client.d.ts:129
listByArticle
▸ listByArticle(
articleID
):Promise
<any
[]>Parameters
articleID
any
Returns
Promise
<any
[]>Defined in
clients/helpcenter/articlecomments.d.ts:10
listByUser
▸ listByUser(
userID
):Promise
<any
[]>Parameters
userID
any
Returns
Promise
<any
[]>Defined in
clients/helpcenter/articlecomments.d.ts:9
on
▸ on(
eventType
,callback
):void
Parameters
eventType
any
callback
any
Returns
void
Inherited from
Client.on
Defined in
clients/client.d.ts:96
patch
▸ patch(
...args
):Promise
<void
|object
>Patches a resource.
Parameters
...args
any
[]Returns
Promise
<void
|object
>Inherited from
Client.patch
Defined in
clients/client.d.ts:120
post
▸ post(
resource
,body
):Promise
<NodeModule
>Parameters
resource
any
body
any
Returns
Promise
<NodeModule
>Inherited from
Client.post
Defined in
clients/client.d.ts:122
put
▸ put(
resource
,body
):Promise
<NodeModule
>Parameters
resource
any
body
any
Returns
Promise
<NodeModule
>Inherited from
Client.put
Defined in
clients/client.d.ts:121
request
▸ request<
T
>(method
,uri
,...args
):Promise
<NodeModule
>Request method that handles various HTTP methods.
Type parameters
T
Parameters
method
string
uri
string
...args
any
[]Returns
Promise
<NodeModule
>Inherited from
Client.request
Defined in
clients/client.d.ts:148
requestAll
▸ requestAll(
method
,uri
,...args
):Promise
<any
[]>Parameters
method
any
uri
any
...args
any
[]Returns
Promise
<any
[]>Inherited from
Client.requestAll
Defined in
clients/client.d.ts:149
requestUpload
▸ requestUpload(
uri
,file
):Promise
<any
>Parameters
uri
any
file
any
Returns
Promise
<any
>Inherited from
Client.requestUpload
Defined in
clients/client.d.ts:150
setSideLoad
▸ setSideLoad(
array
):void
Parameters
array
any
Returns
void
Inherited from
Client.setSideLoad
Defined in
clients/client.d.ts:113
show
▸ show(
articleID
,commentID
):Promise
<NodeModule
>Parameters
articleID
any
commentID
any
Returns
Promise
<NodeModule
>Defined in
clients/helpcenter/articlecomments.d.ts:11
update
▸ update(
articleID
,commentID
,comment
):Promise
<NodeModule
>Parameters
articleID
any
commentID
any
comment
any
Returns
Promise
<NodeModule
>Defined in
clients/helpcenter/articlecomments.d.ts:13