@theholocron/zendesk-client 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -7
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -14,16 +14,16 @@ pnpm add @theholocron/zendesk-client
14
14
  import { createZendeskClient, createToken } from "@theholocron/zendesk-client";
15
15
 
16
16
  const zendesk = createZendeskClient({
17
- baseUrl: "https://myorg.zendesk.com",
18
- token: createToken("agent@example.com", "your-api-token"),
17
+ baseUrl: "https://myorg.zendesk.com",
18
+ token: createToken("agent@example.com", "your-api-token"),
19
19
  });
20
20
 
21
21
  // Tickets
22
22
  const ticket = await zendesk.tickets.get(12345);
23
23
  const all = await zendesk.tickets.list();
24
24
  await zendesk.tickets.create({
25
- subject: "Bug report",
26
- comment: { body: "Details..." },
25
+ subject: "Bug report",
26
+ comment: { body: "Details..." },
27
27
  });
28
28
  await zendesk.tickets.update(12345, { status: "solved" });
29
29
  await zendesk.tickets.delete(12345);
@@ -39,13 +39,13 @@ const field = await zendesk.fields.get(7);
39
39
  // Status
40
40
  const statuses = await zendesk.status.list();
41
41
  await zendesk.status.create({
42
- agent_label: "Escalated",
43
- status_category: "open",
42
+ agent_label: "Escalated",
43
+ status_category: "open",
44
44
  });
45
45
 
46
46
  // Search
47
47
  const results = await zendesk.search.query(
48
- "type:ticket status:open assignee:me",
48
+ "type:ticket status:open assignee:me",
49
49
  );
50
50
 
51
51
  // Activities
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/zendesk-client",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A TypeScript client for the Zendesk API",
5
5
  "homepage": "https://github.com/theholocron/clients/tree/main/packages/zendesk-client#readme",
6
6
  "bugs": "https://github.com/theholocron/clients/issues",
@@ -24,17 +24,17 @@
24
24
  "@theholocron/http-client": "^0.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "^22.0.0",
28
- "@theholocron/eslint-config": "^6.0.0",
29
- "@theholocron/tsconfig": "^6.0.0",
30
- "@theholocron/tsdown-config": "^6.0.0",
31
- "@theholocron/vitest-config": "^6.0.0",
27
+ "@types/node": "^26.1.1",
28
+ "@theholocron/eslint-config": "^6.1.0",
29
+ "@theholocron/tsconfig": "^6.1.0",
30
+ "@theholocron/tsdown-config": "^6.1.0",
31
+ "@theholocron/vitest-config": "^6.1.0",
32
32
  "@vitest/coverage-v8": "^4.1.10",
33
33
  "@vitest/eslint-plugin": "^1.6.23",
34
34
  "eslint": "^10.7.0",
35
35
  "eslint-plugin-n": "^18.2.2",
36
36
  "globals": "^17.7.0",
37
- "tsdown": "^0.22.5",
37
+ "tsdown": "^0.22.8",
38
38
  "typescript": "^5.9.3",
39
39
  "vitest": "^4.1.10"
40
40
  },