@moovio/sdk 0.14.2 → 0.14.4
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 +10 -10
- package/bin/mcp-server.js +18 -25
- package/bin/mcp-server.js.map +18 -18
- package/docs/sdks/support/README.md +10 -16
- package/examples/README.md +26 -0
- package/examples/accountsCreate.example.ts +35 -0
- package/examples/package-lock.json +626 -0
- package/examples/package.json +18 -0
- package/funcs/supportCreateTicket.d.ts +1 -1
- package/funcs/supportCreateTicket.js +1 -1
- package/funcs/supportGetTicket.d.ts +1 -1
- package/funcs/supportGetTicket.js +1 -1
- package/funcs/supportListTicketMessages.d.ts +1 -1
- package/funcs/supportListTicketMessages.js +1 -6
- package/funcs/supportListTicketMessages.js.map +1 -1
- package/funcs/supportListTickets.d.ts +1 -1
- package/funcs/supportListTickets.js +2 -2
- package/funcs/supportListTickets.js.map +1 -1
- package/funcs/supportUpdateTicket.d.ts +1 -1
- package/funcs/supportUpdateTicket.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/supportCreateTicket.js +1 -1
- package/mcp-server/tools/supportGetTicket.js +1 -1
- package/mcp-server/tools/supportListTicketMessages.js +1 -1
- package/mcp-server/tools/supportListTickets.js +1 -1
- package/mcp-server/tools/supportUpdateTicket.js +1 -1
- package/models/components/patchtransfer.d.ts +5 -0
- package/models/components/patchtransfer.d.ts.map +1 -1
- package/models/components/patchtransfer.js +2 -0
- package/models/components/patchtransfer.js.map +1 -1
- package/models/operations/listticketmessages.d.ts +0 -4
- package/models/operations/listticketmessages.d.ts.map +1 -1
- package/models/operations/listticketmessages.js +0 -4
- package/models/operations/listticketmessages.js.map +1 -1
- package/models/operations/listtickets.d.ts +2 -2
- package/models/operations/listtickets.d.ts.map +1 -1
- package/models/operations/listtickets.js +2 -2
- package/models/operations/listtickets.js.map +1 -1
- package/package.json +2 -2
- package/sdk/support.d.ts +5 -5
- package/sdk/support.js +5 -5
- package/src/funcs/supportCreateTicket.ts +1 -1
- package/src/funcs/supportGetTicket.ts +1 -1
- package/src/funcs/supportListTicketMessages.ts +2 -8
- package/src/funcs/supportListTickets.ts +2 -2
- package/src/funcs/supportUpdateTicket.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/supportCreateTicket.ts +1 -1
- package/src/mcp-server/tools/supportGetTicket.ts +1 -1
- package/src/mcp-server/tools/supportListTicketMessages.ts +1 -1
- package/src/mcp-server/tools/supportListTickets.ts +1 -1
- package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
- package/src/models/components/patchtransfer.ts +7 -0
- package/src/models/operations/listticketmessages.ts +0 -8
- package/src/models/operations/listtickets.ts +4 -4
- package/src/sdk/support.ts +5 -5
|
@@ -8,30 +8,30 @@
|
|
|
8
8
|
* [createTicket](#createticket) - Create a support ticket for a Moov account.
|
|
9
9
|
|
|
10
10
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
11
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
11
|
+
you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
12
12
|
* [listTickets](#listtickets) - List all the support tickets created under a Moov account.
|
|
13
13
|
|
|
14
14
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
15
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
15
|
+
you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
16
16
|
* [getTicket](#getticket) - Retrieve a support ticket by ID.
|
|
17
17
|
|
|
18
18
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
19
|
+
you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
20
20
|
* [updateTicket](#updateticket) - Updates a support ticket.
|
|
21
21
|
|
|
22
22
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
23
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
23
|
+
you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
24
24
|
* [listTicketMessages](#listticketmessages) - List all the messages for a support ticket.
|
|
25
25
|
|
|
26
26
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
27
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
27
|
+
you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
28
28
|
|
|
29
29
|
## createTicket
|
|
30
30
|
|
|
31
31
|
Create a support ticket for a Moov account.
|
|
32
32
|
|
|
33
33
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
34
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
34
|
+
you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
35
35
|
|
|
36
36
|
### Example Usage
|
|
37
37
|
|
|
@@ -130,7 +130,7 @@ run();
|
|
|
130
130
|
List all the support tickets created under a Moov account.
|
|
131
131
|
|
|
132
132
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
133
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
133
|
+
you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
134
134
|
|
|
135
135
|
### Example Usage
|
|
136
136
|
|
|
@@ -147,7 +147,6 @@ const moov = new Moov({
|
|
|
147
147
|
|
|
148
148
|
async function run() {
|
|
149
149
|
const result = await moov.support.listTickets({
|
|
150
|
-
skip: 60,
|
|
151
150
|
count: 20,
|
|
152
151
|
accountID: "8ef75c13-2a50-4438-b294-2a850eb4986d",
|
|
153
152
|
});
|
|
@@ -178,7 +177,6 @@ const moov = new MoovCore({
|
|
|
178
177
|
|
|
179
178
|
async function run() {
|
|
180
179
|
const res = await supportListTickets(moov, {
|
|
181
|
-
skip: 60,
|
|
182
180
|
count: 20,
|
|
183
181
|
accountID: "8ef75c13-2a50-4438-b294-2a850eb4986d",
|
|
184
182
|
});
|
|
@@ -217,7 +215,7 @@ run();
|
|
|
217
215
|
Retrieve a support ticket by ID.
|
|
218
216
|
|
|
219
217
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
220
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
218
|
+
you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
221
219
|
|
|
222
220
|
### Example Usage
|
|
223
221
|
|
|
@@ -302,7 +300,7 @@ run();
|
|
|
302
300
|
Updates a support ticket.
|
|
303
301
|
|
|
304
302
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
305
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
303
|
+
you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
306
304
|
|
|
307
305
|
### Example Usage
|
|
308
306
|
|
|
@@ -391,7 +389,7 @@ run();
|
|
|
391
389
|
List all the messages for a support ticket.
|
|
392
390
|
|
|
393
391
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
394
|
-
you'll need to specify the `/accounts/{accountID}/
|
|
392
|
+
you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
395
393
|
|
|
396
394
|
### Example Usage
|
|
397
395
|
|
|
@@ -408,8 +406,6 @@ const moov = new Moov({
|
|
|
408
406
|
|
|
409
407
|
async function run() {
|
|
410
408
|
const result = await moov.support.listTicketMessages({
|
|
411
|
-
skip: 60,
|
|
412
|
-
count: 20,
|
|
413
409
|
accountID: "72444918-8529-4986-b10c-41817e45d09e",
|
|
414
410
|
ticketID: "edeaab65-c54c-45b8-881b-19138f125fb1",
|
|
415
411
|
});
|
|
@@ -440,8 +436,6 @@ const moov = new MoovCore({
|
|
|
440
436
|
|
|
441
437
|
async function run() {
|
|
442
438
|
const res = await supportListTicketMessages(moov, {
|
|
443
|
-
skip: 60,
|
|
444
|
-
count: 20,
|
|
445
439
|
accountID: "72444918-8529-4986-b10c-41817e45d09e",
|
|
446
440
|
ticketID: "edeaab65-c54c-45b8-881b-19138f125fb1",
|
|
447
441
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @moovio/sdk Examples
|
|
2
|
+
|
|
3
|
+
This directory contains example scripts demonstrating how to use the @moovio/sdk SDK.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- Node.js (v18 or higher)
|
|
8
|
+
- npm
|
|
9
|
+
|
|
10
|
+
## Setup
|
|
11
|
+
|
|
12
|
+
1. Copy `.env.template` to `.env`:
|
|
13
|
+
```bash
|
|
14
|
+
cp .env.template .env
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. Edit `.env` and add your actual credentials
|
|
18
|
+
|
|
19
|
+
## Running the Examples
|
|
20
|
+
|
|
21
|
+
To run an example file from the examples directory:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm run build && npx tsx example.ts
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Example usage of the @moovio/sdk SDK
|
|
7
|
+
*
|
|
8
|
+
* To run this example from the examples directory:
|
|
9
|
+
* npm run build && npx tsx accountsCreate.ts
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { Moov } from "@moovio/sdk";
|
|
13
|
+
|
|
14
|
+
const moov = new Moov({
|
|
15
|
+
xMoovVersion: "v2024.01.00",
|
|
16
|
+
security: {
|
|
17
|
+
username: "",
|
|
18
|
+
password: "",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
async function main() {
|
|
23
|
+
const result = await moov.create({
|
|
24
|
+
accountType: "business",
|
|
25
|
+
profile: {
|
|
26
|
+
business: {
|
|
27
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
console.log(result);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
main().catch(console.error);
|