Skip to content

Commit 64a4e7a

Browse files
committed
lint:fix
1 parent 0d16f62 commit 64a4e7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1101
-1171
lines changed

examples/check-oauth-token.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const process = require('node:process');
22
const zd = require('../src/index');
33
const exampleConfig = require('./exampleConfig');
44

5+
/**
6+
*
7+
*/
58
function getZendeskConfig() {
69
return {
710
token:
@@ -14,6 +17,9 @@ function getZendeskConfig() {
1417

1518
const client = zd.createClient(getZendeskConfig());
1619

20+
/**
21+
*
22+
*/
1723
async function checkOAuth() {
1824
try {
1925
const {result: user} = await client.users.auth();

examples/delete-many-organizations.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const setupClient = (config) => {
1818
// Placeholder organization ID for development/testing.
1919
// IMPORTANT: Replace with a valid organization ID before running in production.
2020

21+
/**
22+
*
23+
*/
2124
async function organizationsDelete() {
2225
let collector = [];
2326
try {

examples/endpoint.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const setupClient = (config) => {
1414
});
1515
};
1616

17+
/**
18+
*
19+
*/
1720
async function usersList() {
1821
try {
1922
const client = setupClient({debug: false});

examples/optional-axios-transport.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ const setupClient = (config) => {
5252
});
5353
};
5454

55+
/**
56+
*
57+
*/
5558
async function foo() {
5659
try {
5760
const client = setupClient({debug: false});

examples/optional-deprecated-request-transport.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ const setupClient = (config) => {
5858
});
5959
};
6060

61+
/**
62+
*
63+
*/
6164
async function foo() {
6265
try {
6366
const client = setupClient({debug: false});

examples/organization-upsert.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ client.organizations.upsert(organization, function (error, request, result) {
2121
console.log(JSON.stringify(result, null, 2, true));
2222
});
2323

24+
/**
25+
*
26+
* @param error
27+
*/
2428
function handleError(error) {
2529
console.log(error);
2630
process.exit(-1);

examples/organizations-delete-bulk.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const zd = require('../src/index.js');
77

88
dotenv.config();
99

10+
/**
11+
*
12+
*/
1013
function initializeZendeskClient() {
1114
return zd.createClient({
1215
username: process.env.ZENDESK_USERNAME,
@@ -16,12 +19,21 @@ function initializeZendeskClient() {
1619
});
1720
}
1821

22+
/**
23+
*
24+
* @param organizations
25+
*/
1926
function getTestOrganizationIds(organizations) {
2027
return organizations
2128
.filter((org) => org.name.startsWith('test') || org.name.startsWith('Test'))
2229
.map((org) => org.id);
2330
}
2431

32+
/**
33+
*
34+
* @param array
35+
* @param chunkSize
36+
*/
2537
function chunkArray(array, chunkSize) {
2638
const chunks = [];
2739
for (let i = 0; i < array.length; i += chunkSize) {
@@ -31,6 +43,11 @@ function chunkArray(array, chunkSize) {
3143
return chunks;
3244
}
3345

46+
/**
47+
*
48+
* @param client
49+
* @param jobID
50+
*/
3451
async function monitorJobCompletion(client, jobID) {
3552
try {
3653
await client.jobstatuses.watch(jobID, 1000, 30);
@@ -40,6 +57,9 @@ async function monitorJobCompletion(client, jobID) {
4057
}
4158
}
4259

60+
/**
61+
*
62+
*/
4363
async function bulkDeleteTestOrganizations() {
4464
const client = initializeZendeskClient();
4565

examples/organizations-delete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const setupClient = (config) => {
1818
// IMPORTANT: Replace with a valid organization ID before running in production.
1919
const organizationID = 1_234_567_890;
2020

21+
/**
22+
*
23+
*/
2124
async function organizationsDelete() {
2225
try {
2326
const client = setupClient({debug: false});

examples/ticket-create-promise.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ const ticket = {
2727
}
2828
})();
2929

30+
/**
31+
*
32+
* @param error
33+
*/
3034
function handleError(error) {
3135
console.log(error);
3236
process.exit(-1);

examples/ticket-create.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ client.tickets.create(ticket, function (error, request, result) {
2323
console.log(JSON.stringify(result, null, 2, true));
2424
});
2525

26+
/**
27+
*
28+
* @param error
29+
*/
2630
function handleError(error) {
2731
console.log(error);
2832
process.exit(-1);

0 commit comments

Comments
 (0)