@qnx/client 0.7.13 → 0.8.7

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.
package/README.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  `@qnx/client` provides utility classes and types to help standardize and simplify handling of API responses on the client side. It supports typed access to data, messages, and errors from server responses.
4
4
 
5
+ ## 🤖 MCP Server
6
+
7
+ AI tools for this package are available via the [QNX MCP Server](https://qnx-mcp-server.vercel.app).
8
+
9
+ **Endpoint:** `https://qnx-mcp-server.vercel.app/mcp/client`
10
+
11
+ | Tool | Description |
12
+ | --- | --- |
13
+ | `get-client-docs` | Documentation for ApiResponse, ApiSuccessResponse, ApiErrorResponse classes, TypeScript types, and usage patterns |
14
+ | `build-client-response` | Instantiate a response class with real values — see what each method returns |
15
+
16
+ **Supported clients:** Claude Desktop · Claude Code · Cursor · Windsurf · Cline · Continue.dev · Codex CLI · ChatGPT Desktop
17
+
18
+ **Configuration:**
19
+ ```json
20
+ {
21
+ "mcpServers": {
22
+ "qnx-client": {
23
+ "url": "https://qnx-mcp-server.vercel.app/mcp/client"
24
+ }
25
+ }
26
+ }
27
+ ```
28
+
5
29
  ## ✨ Features
6
30
 
7
31
  - Typed wrappers for API responses
@@ -149,4 +173,4 @@ Ensure tests are updated for any feature changes.
149
173
 
150
174
  ## 📄 License
151
175
 
152
- [MIT License](https://github.com/yatendra121/client/blob/main/LICENSE.md) © 2023–PRESENT [Yatendra Kushwaha](https://github.com/yatendra121)
176
+ [MIT License](https://github.com/yatendra121/qnx/blob/main/LICENSE.md) © 2023-PRESENT [Yatendra Kushwaha](https://github.com/yatendra121)
package/dist/client.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class s{constructor(e={}){this.response=e}getErrorCode(){return this.response.errorCode}getErrors(){return this.response.errors}getError(){return this.response.error}getMessage(){return this.response.message}getData(){return this.response.data}}class t{constructor(e){this.response=e}getData(){return this.response.data}getMessage(){return this.response.message}}class o{constructor(e){this.response=e}getError(){return this.response.error}getErrors(){return this.response.errors}getErrorCode(){return this.response.errorCode}}exports.ApiErrorResponse=o;exports.ApiResponse=s;exports.ApiSuccessResponse=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=class{constructor(e={}){this.response=e}getErrorCode(){return this.response.errorCode}getErrors(){return this.response.errors}getError(){return this.response.error}getMessage(){return this.response.message}getData(){return this.response.data}},t=class{constructor(e){this.response=e}getData(){return this.response.data}getMessage(){return this.response.message}},n=class{constructor(e){this.response=e}getError(){return this.response.error}getErrors(){return this.response.errors}getErrorCode(){return this.response.errorCode}};exports.ApiErrorResponse=n,exports.ApiResponse=e,exports.ApiSuccessResponse=t;
@@ -1 +1 @@
1
- var client=(function(r){"use strict";class t{constructor(e={}){this.response=e}getErrorCode(){return this.response.errorCode}getErrors(){return this.response.errors}getError(){return this.response.error}getMessage(){return this.response.message}getData(){return this.response.data}}class o{constructor(e){this.response=e}getData(){return this.response.data}getMessage(){return this.response.message}}class n{constructor(e){this.response=e}getError(){return this.response.error}getErrors(){return this.response.errors}getErrorCode(){return this.response.errorCode}}return r.ApiErrorResponse=n,r.ApiResponse=t,r.ApiSuccessResponse=o,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),r})({});
1
+ var client=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=class{constructor(e={}){this.response=e}getErrorCode(){return this.response.errorCode}getErrors(){return this.response.errors}getError(){return this.response.error}getMessage(){return this.response.message}getData(){return this.response.data}},n=class{constructor(e){this.response=e}getData(){return this.response.data}getMessage(){return this.response.message}};return e.ApiErrorResponse=class{constructor(e){this.response=e}getError(){return this.response.error}getErrors(){return this.response.errors}getErrorCode(){return this.response.errorCode}},e.ApiResponse=t,e.ApiSuccessResponse=n,e})({});
package/dist/client.mjs CHANGED
@@ -1,100 +1,46 @@
1
- class s {
2
- constructor(r = {}) {
3
- this.response = r;
4
- }
5
- /**
6
- * Gets the error code from the response.
7
- *
8
- * @returns The error code, if present.
9
- */
10
- getErrorCode() {
11
- return this.response.errorCode;
12
- }
13
- /**
14
- * Gets the errors from the response.
15
- *
16
- * @returns An object containing the errors, if present.
17
- */
18
- getErrors() {
19
- return this.response.errors;
20
- }
21
- /**
22
- * Gets the error message from the response.
23
- *
24
- * @returns The error message, if present.
25
- */
26
- getError() {
27
- return this.response.error;
28
- }
29
- /**
30
- * Gets the message from the response.
31
- *
32
- * @returns The message, if present.
33
- */
34
- getMessage() {
35
- return this.response.message;
36
- }
37
- /**
38
- * Gets the data from the response.
39
- *
40
- * @returns The data, if present.
41
- */
42
- getData() {
43
- return this.response.data;
44
- }
45
- }
46
- class t {
47
- constructor(r) {
48
- this.response = r;
49
- }
50
- /**
51
- * Gets the data from the response.
52
- *
53
- * @returns The response data.
54
- */
55
- getData() {
56
- return this.response.data;
57
- }
58
- /**
59
- * Gets the message from the response.
60
- *
61
- * @returns The response message.
62
- */
63
- getMessage() {
64
- return this.response.message;
65
- }
66
- }
67
- class o {
68
- constructor(r) {
69
- this.response = r;
70
- }
71
- /**
72
- * Gets the error message from the response.
73
- *
74
- * @returns The error message.
75
- */
76
- getError() {
77
- return this.response.error;
78
- }
79
- /**
80
- * Gets the errors from the response.
81
- *
82
- * @returns An object containing the errors, if present.
83
- */
84
- getErrors() {
85
- return this.response.errors;
86
- }
87
- /**
88
- * Gets the error code from the response.
89
- *
90
- * @returns The error code, if present.
91
- */
92
- getErrorCode() {
93
- return this.response.errorCode;
94
- }
95
- }
96
- export {
97
- o as ApiErrorResponse,
98
- s as ApiResponse,
99
- t as ApiSuccessResponse
1
+ //#region src/lib/response/index.ts
2
+ var e = class {
3
+ constructor(e = {}) {
4
+ this.response = e;
5
+ }
6
+ getErrorCode() {
7
+ return this.response.errorCode;
8
+ }
9
+ getErrors() {
10
+ return this.response.errors;
11
+ }
12
+ getError() {
13
+ return this.response.error;
14
+ }
15
+ getMessage() {
16
+ return this.response.message;
17
+ }
18
+ getData() {
19
+ return this.response.data;
20
+ }
21
+ }, t = class {
22
+ constructor(e) {
23
+ this.response = e;
24
+ }
25
+ getData() {
26
+ return this.response.data;
27
+ }
28
+ getMessage() {
29
+ return this.response.message;
30
+ }
31
+ }, n = class {
32
+ constructor(e) {
33
+ this.response = e;
34
+ }
35
+ getError() {
36
+ return this.response.error;
37
+ }
38
+ getErrors() {
39
+ return this.response.errors;
40
+ }
41
+ getErrorCode() {
42
+ return this.response.errorCode;
43
+ }
100
44
  };
45
+ //#endregion
46
+ export { n as ApiErrorResponse, e as ApiResponse, t as ApiSuccessResponse };
package/dist/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@qnx/client",
3
3
  "description": "@qnx/client for handling response",
4
4
  "author": "Yatendra Kushwaha <https://github.com/yatendra121>",
5
- "version": "0.7.13",
5
+ "version": "0.8.7",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/yatendra121",
8
8
  "homepage": "https://github.com/yatendra121/qnx/tree/main/packages/client",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@qnx/client",
3
3
  "description": "@qnx/client for handling response",
4
4
  "author": "Yatendra Kushwaha <https://github.com/yatendra121>",
5
- "version": "0.7.13",
5
+ "version": "0.8.7",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/yatendra121",
8
8
  "homepage": "https://github.com/yatendra121/qnx/tree/main/packages/client",