You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/clients/core/accountsettings.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ class AccountSettings extends Client {
14
14
15
15
/**
16
16
* Retrieves the account settings.
17
-
* @returns {Promise<object>} A promise that resolves to the account settings.
17
+
* @returns {Promise<{response: object, result: object}>} A promise that resolves to the account settings.
18
18
* {@link https://developer.zendesk.com/api-reference/ticketing/account-configuration/account_settings/#show-settings | See the Zendesk API documentation for more details}.
@@ -26,7 +26,7 @@ class AccountSettings extends Client {
26
26
/**
27
27
* Updates the account settings.
28
28
* @param {object} settings - The settings to update.
29
-
* @returns {Promise<object>} A promise that resolves to the updated account settings.
29
+
* @returns {Promise<{response: object, result: object}>} A promise that resolves to the updated account settings.
30
30
* {@link https://developer.zendesk.com/api-reference/ticketing/account-configuration/account_settings/#update-account-settings | See the Zendesk API documentation for more details}.
Copy file name to clipboardExpand all lines: src/clients/core/activitystream.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ class ActivityStream extends Client {
34
34
/**
35
35
* Retrieves a specific ticket activity by its ID.
36
36
* @param {number} activityID - The unique ID of the activity to fetch.
37
-
* @returns {Promise<object>} A promise that resolves to the activity object corresponding to the provided activityID.
37
+
* @returns {Promise<{response: object, result: object}>} A promise that resolves to the activity object corresponding to the provided activityID.
38
38
* @see {@link https://developer.zendesk.com/api-reference/ticketing/tickets/activity_stream/#show-activity | Zendesk API - Show Activity}
39
39
* @example
40
40
* const activity = await client.activitystream.show(12345); // Where 12345 is an activity ID.
@@ -50,7 +50,7 @@ class ActivityStream extends Client {
50
50
* The count[refreshed_at] property is a timestamp that indicates when the count was last updated.
51
51
* Note: When the count exceeds 100,000, count[refreshed_at] may occasionally be null. This indicates
52
52
* that the count is being updated in the background, and count[value] is limited to 100,000 until the update is complete.
53
-
* @returns {Promise<object>} A promise that resolves to an object containing the activity count and the refreshed_at timestamp.
53
+
* @returns {Promise<{response: object, result: object}>} A promise that resolves to an object containing the activity count and the refreshed_at timestamp.
54
54
* @see {@link https://developer.zendesk.com/api-reference/ticketing/tickets/activity_stream/#count-activities | Zendesk API - Count Activities}
0 commit comments