File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 46
46
"types" : " ./dist/types/index.d.ts" ,
47
47
"default" : " ./dist/index.js"
48
48
}
49
+ },
50
+ "./clients/*" : {
51
+ "import" : {
52
+ "types" : " ./dist/types/clients/*.d.ts" ,
53
+ "default" : " ./dist/clients/*.js"
54
+ },
55
+ "require" : {
56
+ "types" : " ./dist/types/clients/*.d.ts" ,
57
+ "default" : " ./dist/clients/*.js"
58
+ }
59
+ },
60
+ "./clients/*/*" : {
61
+ "import" : {
62
+ "types" : " ./dist/types/clients/*/*.d.ts" ,
63
+ "default" : " ./dist/clients/*/*.js"
64
+ },
65
+ "require" : {
66
+ "types" : " ./dist/types/clients/*/*.d.ts" ,
67
+ "default" : " ./dist/clients/*/*.js"
68
+ }
69
+ },
70
+ "./clients/*/*/*" : {
71
+ "import" : {
72
+ "types" : " ./dist/types/clients/*/*/*.d.ts" ,
73
+ "default" : " ./dist/clients/*/*/*.js"
74
+ },
75
+ "require" : {
76
+ "types" : " ./dist/types/clients/*/*/*.d.ts" ,
77
+ "default" : " ./dist/clients/*/*/*.js"
78
+ }
49
79
}
50
80
},
51
81
"files" : [
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ class Tickets extends Client {
348
348
* Update an existing ticket by its ID.
349
349
* @param {number } ticketId - The ID of the ticket to update.
350
350
* @param {CreateOrUpdateTicket } ticket - The updated ticket data as an object.
351
- * @returns {Promise<{result: Ticket}> } A promise that resolves to the updated ticket object.
351
+ * @returns {Promise<{result: Ticket, response: {ticket:Ticket, audit:any[]} }> } A promise that resolves to the updated ticket object.
352
352
* @async
353
353
* @throws {Error } If `ticketId` is not a number or if `ticket` is not an object.
354
354
* @see {@link https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket }
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ class Users extends Client {
138
138
/**
139
139
* Shows details of a user by ID.
140
140
* @param {number } id - The ID of the user.
141
- * @returns {Promise<User> } The user's details.
141
+ * @returns {Promise<{result: User} > } The user's details.
142
142
* @async
143
143
* @see {@link https://developer.zendesk.com/api-reference/ticketing/users/users/#show-user }
144
144
* @example
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const {ZendeskClientVoice} = require('./clients/voice');
9
9
/**
10
10
* @typedef {object } ZendeskClientOptions
11
11
* @property {string } [token] - Authentication token.
12
+ * @property {string } [password] - Authentication password.
12
13
* @property {string } [username] - Username for authentication.
13
14
* @property {string } [subdomain] - Subdomain for the Zendesk account (e.g., 'mycompany' for 'mycompany.zendesk.com'). If `endpointUri` is provided, this is ignored.
14
15
* @property {string[] } [apiType=['core']] - Type of Zendesk API (e.g., 'core', 'helpcenter'). Determines the sub-client to use.
You can’t perform that action at this time.
0 commit comments