@moovio/sdk 0.14.0 → 0.14.1
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 +81 -36
- package/bin/mcp-server.js +1530 -341
- package/bin/mcp-server.js.map +37 -13
- package/docs/sdks/support/README.md +476 -0
- package/funcs/supportCreateTicket.d.ts +18 -0
- package/funcs/supportCreateTicket.d.ts.map +1 -0
- package/funcs/supportCreateTicket.js +139 -0
- package/funcs/supportCreateTicket.js.map +1 -0
- package/funcs/supportGetTicket.d.ts +17 -0
- package/funcs/supportGetTicket.d.ts.map +1 -0
- package/funcs/supportGetTicket.js +129 -0
- package/funcs/supportGetTicket.js.map +1 -0
- package/funcs/supportListTicketMessages.d.ts +17 -0
- package/funcs/supportListTicketMessages.d.ts.map +1 -0
- package/funcs/supportListTicketMessages.js +134 -0
- package/funcs/supportListTicketMessages.js.map +1 -0
- package/funcs/supportListTickets.d.ts +17 -0
- package/funcs/supportListTickets.d.ts.map +1 -0
- package/funcs/supportListTickets.js +130 -0
- package/funcs/supportListTickets.js.map +1 -0
- package/funcs/supportUpdateTicket.d.ts +18 -0
- package/funcs/supportUpdateTicket.d.ts.map +1 -0
- package/funcs/supportUpdateTicket.js +143 -0
- package/funcs/supportUpdateTicket.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +0 -12
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +0 -2
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +0 -2
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/supportCreateTicket.d.ts +8 -0
- package/mcp-server/tools/supportCreateTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportCreateTicket.js +65 -0
- package/mcp-server/tools/supportCreateTicket.js.map +1 -0
- package/mcp-server/tools/supportGetTicket.d.ts +8 -0
- package/mcp-server/tools/supportGetTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportGetTicket.js +65 -0
- package/mcp-server/tools/supportGetTicket.js.map +1 -0
- package/mcp-server/tools/supportListTicketMessages.d.ts +8 -0
- package/mcp-server/tools/supportListTicketMessages.d.ts.map +1 -0
- package/mcp-server/tools/supportListTicketMessages.js +65 -0
- package/mcp-server/tools/supportListTicketMessages.js.map +1 -0
- package/mcp-server/tools/supportListTickets.d.ts +8 -0
- package/mcp-server/tools/supportListTickets.d.ts.map +1 -0
- package/mcp-server/tools/supportListTickets.js +65 -0
- package/mcp-server/tools/supportListTickets.js.map +1 -0
- package/mcp-server/tools/supportUpdateTicket.d.ts +8 -0
- package/mcp-server/tools/supportUpdateTicket.d.ts.map +1 -0
- package/mcp-server/tools/supportUpdateTicket.js +65 -0
- package/mcp-server/tools/supportUpdateTicket.js.map +1 -0
- package/models/components/createticket.d.ts +37 -0
- package/models/components/createticket.d.ts.map +1 -0
- package/models/components/createticket.js +74 -0
- package/models/components/createticket.js.map +1 -0
- package/models/components/createticketcontacterror.d.ts +31 -0
- package/models/components/createticketcontacterror.d.ts.map +1 -0
- package/models/components/createticketcontacterror.js +71 -0
- package/models/components/createticketcontacterror.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/ticket.d.ts +47 -0
- package/models/components/ticket.d.ts.map +1 -0
- package/models/components/ticket.js +89 -0
- package/models/components/ticket.js.map +1 -0
- package/models/components/ticketcontact.d.ts +31 -0
- package/models/components/ticketcontact.d.ts.map +1 -0
- package/models/components/ticketcontact.js +71 -0
- package/models/components/ticketcontact.js.map +1 -0
- package/models/components/ticketmessage.d.ts +33 -0
- package/models/components/ticketmessage.d.ts.map +1 -0
- package/models/components/ticketmessage.js +73 -0
- package/models/components/ticketmessage.js.map +1 -0
- package/models/components/ticketstatus.d.ts +34 -0
- package/models/components/ticketstatus.d.ts.map +1 -0
- package/models/components/ticketstatus.js +62 -0
- package/models/components/ticketstatus.js.map +1 -0
- package/models/components/updateticket.d.ts +33 -0
- package/models/components/updateticket.d.ts.map +1 -0
- package/models/components/updateticket.js +70 -0
- package/models/components/updateticket.js.map +1 -0
- package/models/components/updateticketstatus.d.ts +25 -0
- package/models/components/updateticketstatus.d.ts.map +1 -0
- package/models/components/updateticketstatus.js +59 -0
- package/models/components/updateticketstatus.js.map +1 -0
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +8 -2
- package/models/errors/apierror.js.map +1 -1
- package/models/errors/createticketerror.d.ts +42 -0
- package/models/errors/createticketerror.d.ts.map +1 -0
- package/models/errors/createticketerror.js +93 -0
- package/models/errors/createticketerror.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updateticketerror.d.ts +36 -0
- package/models/errors/updateticketerror.d.ts.map +1 -0
- package/models/errors/updateticketerror.js +86 -0
- package/models/errors/updateticketerror.js.map +1 -0
- package/models/operations/createticket.d.ts +101 -0
- package/models/operations/createticket.d.ts.map +1 -0
- package/models/operations/createticket.js +155 -0
- package/models/operations/createticket.js.map +1 -0
- package/models/operations/getticket.d.ts +101 -0
- package/models/operations/getticket.d.ts.map +1 -0
- package/models/operations/getticket.js +147 -0
- package/models/operations/getticket.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listticketmessages.d.ts +105 -0
- package/models/operations/listticketmessages.d.ts.map +1 -0
- package/models/operations/listticketmessages.js +151 -0
- package/models/operations/listticketmessages.js.map +1 -0
- package/models/operations/listtickets.d.ts +103 -0
- package/models/operations/listtickets.d.ts.map +1 -0
- package/models/operations/listtickets.js +149 -0
- package/models/operations/listtickets.js.map +1 -0
- package/models/operations/updateticket.d.ts +103 -0
- package/models/operations/updateticket.d.ts.map +1 -0
- package/models/operations/updateticket.js +157 -0
- package/models/operations/updateticket.js.map +1 -0
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/support.d.ts +40 -0
- package/sdk/support.d.ts.map +1 -0
- package/sdk/support.js +62 -0
- package/sdk/support.js.map +1 -0
- package/src/funcs/supportCreateTicket.ts +201 -0
- package/src/funcs/supportGetTicket.ts +185 -0
- package/src/funcs/supportListTicketMessages.ts +191 -0
- package/src/funcs/supportListTickets.ts +185 -0
- package/src/funcs/supportUpdateTicket.ts +207 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/supportCreateTicket.ts +38 -0
- package/src/mcp-server/tools/supportGetTicket.ts +38 -0
- package/src/mcp-server/tools/supportListTicketMessages.ts +38 -0
- package/src/mcp-server/tools/supportListTickets.ts +38 -0
- package/src/mcp-server/tools/supportUpdateTicket.ts +38 -0
- package/src/models/components/createticket.ts +79 -0
- package/src/models/components/createticketcontacterror.ts +70 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/ticket.ts +109 -0
- package/src/models/components/ticketcontact.ts +66 -0
- package/src/models/components/ticketmessage.ts +70 -0
- package/src/models/components/ticketstatus.ts +33 -0
- package/src/models/components/updateticket.ts +70 -0
- package/src/models/components/updateticketstatus.ts +32 -0
- package/src/models/errors/apierror.ts +8 -2
- package/src/models/errors/createticketerror.ts +90 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/updateticketerror.ts +79 -0
- package/src/models/operations/createticket.ts +231 -0
- package/src/models/operations/getticket.ts +223 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listticketmessages.ts +231 -0
- package/src/models/operations/listtickets.ts +227 -0
- package/src/models/operations/updateticket.ts +235 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/support.ts +99 -0
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
# Support
|
|
2
|
+
(*support*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [createTicket](#createticket) - Create a support ticket for a Moov account.
|
|
9
|
+
|
|
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}/support.write` scope.
|
|
12
|
+
* [listTickets](#listtickets) - List all the support tickets created under a Moov account.
|
|
13
|
+
|
|
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}/support.read` scope.
|
|
16
|
+
* [getTicket](#getticket) - Retrieve a support ticket by ID.
|
|
17
|
+
|
|
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}/support.read` scope.
|
|
20
|
+
* [updateTicket](#updateticket) - Updates a support ticket.
|
|
21
|
+
|
|
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}/support.write` scope.
|
|
24
|
+
* [listTicketMessages](#listticketmessages) - List all the messages for a support ticket.
|
|
25
|
+
|
|
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}/support.read` scope.
|
|
28
|
+
|
|
29
|
+
## createTicket
|
|
30
|
+
|
|
31
|
+
Create a support ticket for a Moov account.
|
|
32
|
+
|
|
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}/support.write` scope.
|
|
35
|
+
|
|
36
|
+
### Example Usage
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { Moov } from "@moovio/sdk";
|
|
40
|
+
|
|
41
|
+
const moov = new Moov({
|
|
42
|
+
xMoovVersion: "v2024.01.00",
|
|
43
|
+
security: {
|
|
44
|
+
username: "",
|
|
45
|
+
password: "",
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
async function run() {
|
|
50
|
+
const result = await moov.support.createTicket({
|
|
51
|
+
accountID: "4af4784a-c777-48f6-8211-063d5341f84b",
|
|
52
|
+
createTicket: {
|
|
53
|
+
title: "<value>",
|
|
54
|
+
body: "<value>",
|
|
55
|
+
contact: {
|
|
56
|
+
email: "Melany.Roberts@yahoo.com",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
console.log(result);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
run();
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Standalone function
|
|
68
|
+
|
|
69
|
+
The standalone function version of this method:
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
73
|
+
import { supportCreateTicket } from "@moovio/sdk/funcs/supportCreateTicket.js";
|
|
74
|
+
|
|
75
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
76
|
+
// You can create one instance of it to use across an application.
|
|
77
|
+
const moov = new MoovCore({
|
|
78
|
+
xMoovVersion: "v2024.01.00",
|
|
79
|
+
security: {
|
|
80
|
+
username: "",
|
|
81
|
+
password: "",
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
async function run() {
|
|
86
|
+
const res = await supportCreateTicket(moov, {
|
|
87
|
+
accountID: "4af4784a-c777-48f6-8211-063d5341f84b",
|
|
88
|
+
createTicket: {
|
|
89
|
+
title: "<value>",
|
|
90
|
+
body: "<value>",
|
|
91
|
+
contact: {
|
|
92
|
+
email: "Melany.Roberts@yahoo.com",
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
if (res.ok) {
|
|
97
|
+
const { value: result } = res;
|
|
98
|
+
console.log(result);
|
|
99
|
+
} else {
|
|
100
|
+
console.log("supportCreateTicket failed:", res.error);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
run();
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Parameters
|
|
108
|
+
|
|
109
|
+
| Parameter | Type | Required | Description |
|
|
110
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
111
|
+
| `request` | [operations.CreateTicketRequest](../../models/operations/createticketrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
112
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
113
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
114
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
115
|
+
|
|
116
|
+
### Response
|
|
117
|
+
|
|
118
|
+
**Promise\<[operations.CreateTicketResponse](../../models/operations/createticketresponse.md)\>**
|
|
119
|
+
|
|
120
|
+
### Errors
|
|
121
|
+
|
|
122
|
+
| Error Type | Status Code | Content Type |
|
|
123
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
124
|
+
| errors.GenericError | 400, 409 | application/json |
|
|
125
|
+
| errors.CreateTicketError | 422 | application/json |
|
|
126
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
127
|
+
|
|
128
|
+
## listTickets
|
|
129
|
+
|
|
130
|
+
List all the support tickets created under a Moov account.
|
|
131
|
+
|
|
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}/support.read` scope.
|
|
134
|
+
|
|
135
|
+
### Example Usage
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import { Moov } from "@moovio/sdk";
|
|
139
|
+
|
|
140
|
+
const moov = new Moov({
|
|
141
|
+
xMoovVersion: "v2024.01.00",
|
|
142
|
+
security: {
|
|
143
|
+
username: "",
|
|
144
|
+
password: "",
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
async function run() {
|
|
149
|
+
const result = await moov.support.listTickets({
|
|
150
|
+
skip: 60,
|
|
151
|
+
count: 20,
|
|
152
|
+
accountID: "8ef75c13-2a50-4438-b294-2a850eb4986d",
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
console.log(result);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
run();
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Standalone function
|
|
162
|
+
|
|
163
|
+
The standalone function version of this method:
|
|
164
|
+
|
|
165
|
+
```typescript
|
|
166
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
167
|
+
import { supportListTickets } from "@moovio/sdk/funcs/supportListTickets.js";
|
|
168
|
+
|
|
169
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
170
|
+
// You can create one instance of it to use across an application.
|
|
171
|
+
const moov = new MoovCore({
|
|
172
|
+
xMoovVersion: "v2024.01.00",
|
|
173
|
+
security: {
|
|
174
|
+
username: "",
|
|
175
|
+
password: "",
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
async function run() {
|
|
180
|
+
const res = await supportListTickets(moov, {
|
|
181
|
+
skip: 60,
|
|
182
|
+
count: 20,
|
|
183
|
+
accountID: "8ef75c13-2a50-4438-b294-2a850eb4986d",
|
|
184
|
+
});
|
|
185
|
+
if (res.ok) {
|
|
186
|
+
const { value: result } = res;
|
|
187
|
+
console.log(result);
|
|
188
|
+
} else {
|
|
189
|
+
console.log("supportListTickets failed:", res.error);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
run();
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
| Parameter | Type | Required | Description |
|
|
199
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
200
|
+
| `request` | [operations.ListTicketsRequest](../../models/operations/listticketsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
201
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
202
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
203
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
204
|
+
|
|
205
|
+
### Response
|
|
206
|
+
|
|
207
|
+
**Promise\<[operations.ListTicketsResponse](../../models/operations/listticketsresponse.md)\>**
|
|
208
|
+
|
|
209
|
+
### Errors
|
|
210
|
+
|
|
211
|
+
| Error Type | Status Code | Content Type |
|
|
212
|
+
| --------------- | --------------- | --------------- |
|
|
213
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
214
|
+
|
|
215
|
+
## getTicket
|
|
216
|
+
|
|
217
|
+
Retrieve a support ticket by ID.
|
|
218
|
+
|
|
219
|
+
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}/support.read` scope.
|
|
221
|
+
|
|
222
|
+
### Example Usage
|
|
223
|
+
|
|
224
|
+
```typescript
|
|
225
|
+
import { Moov } from "@moovio/sdk";
|
|
226
|
+
|
|
227
|
+
const moov = new Moov({
|
|
228
|
+
xMoovVersion: "v2024.01.00",
|
|
229
|
+
security: {
|
|
230
|
+
username: "",
|
|
231
|
+
password: "",
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
async function run() {
|
|
236
|
+
const result = await moov.support.getTicket({
|
|
237
|
+
accountID: "873ccb78-88b3-4520-85f2-7cc2aef5704b",
|
|
238
|
+
ticketID: "91fea9bf-b373-40f7-86e0-2c80690126e4",
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
console.log(result);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
run();
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Standalone function
|
|
248
|
+
|
|
249
|
+
The standalone function version of this method:
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
253
|
+
import { supportGetTicket } from "@moovio/sdk/funcs/supportGetTicket.js";
|
|
254
|
+
|
|
255
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
256
|
+
// You can create one instance of it to use across an application.
|
|
257
|
+
const moov = new MoovCore({
|
|
258
|
+
xMoovVersion: "v2024.01.00",
|
|
259
|
+
security: {
|
|
260
|
+
username: "",
|
|
261
|
+
password: "",
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
async function run() {
|
|
266
|
+
const res = await supportGetTicket(moov, {
|
|
267
|
+
accountID: "873ccb78-88b3-4520-85f2-7cc2aef5704b",
|
|
268
|
+
ticketID: "91fea9bf-b373-40f7-86e0-2c80690126e4",
|
|
269
|
+
});
|
|
270
|
+
if (res.ok) {
|
|
271
|
+
const { value: result } = res;
|
|
272
|
+
console.log(result);
|
|
273
|
+
} else {
|
|
274
|
+
console.log("supportGetTicket failed:", res.error);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
run();
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Parameters
|
|
282
|
+
|
|
283
|
+
| Parameter | Type | Required | Description |
|
|
284
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
285
|
+
| `request` | [operations.GetTicketRequest](../../models/operations/getticketrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
286
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
287
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
288
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
289
|
+
|
|
290
|
+
### Response
|
|
291
|
+
|
|
292
|
+
**Promise\<[operations.GetTicketResponse](../../models/operations/getticketresponse.md)\>**
|
|
293
|
+
|
|
294
|
+
### Errors
|
|
295
|
+
|
|
296
|
+
| Error Type | Status Code | Content Type |
|
|
297
|
+
| --------------- | --------------- | --------------- |
|
|
298
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
299
|
+
|
|
300
|
+
## updateTicket
|
|
301
|
+
|
|
302
|
+
Updates a support ticket.
|
|
303
|
+
|
|
304
|
+
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}/support.write` scope.
|
|
306
|
+
|
|
307
|
+
### Example Usage
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
import { Moov } from "@moovio/sdk";
|
|
311
|
+
|
|
312
|
+
const moov = new Moov({
|
|
313
|
+
xMoovVersion: "v2024.01.00",
|
|
314
|
+
security: {
|
|
315
|
+
username: "",
|
|
316
|
+
password: "",
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
async function run() {
|
|
321
|
+
const result = await moov.support.updateTicket({
|
|
322
|
+
accountID: "7cce2b85-37c2-4c76-954c-03dcec2b12f0",
|
|
323
|
+
ticketID: "1d621d17-8e7d-4ac0-9f7d-6e9fcebe8eef",
|
|
324
|
+
updateTicket: {},
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
console.log(result);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
run();
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Standalone function
|
|
334
|
+
|
|
335
|
+
The standalone function version of this method:
|
|
336
|
+
|
|
337
|
+
```typescript
|
|
338
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
339
|
+
import { supportUpdateTicket } from "@moovio/sdk/funcs/supportUpdateTicket.js";
|
|
340
|
+
|
|
341
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
342
|
+
// You can create one instance of it to use across an application.
|
|
343
|
+
const moov = new MoovCore({
|
|
344
|
+
xMoovVersion: "v2024.01.00",
|
|
345
|
+
security: {
|
|
346
|
+
username: "",
|
|
347
|
+
password: "",
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
async function run() {
|
|
352
|
+
const res = await supportUpdateTicket(moov, {
|
|
353
|
+
accountID: "7cce2b85-37c2-4c76-954c-03dcec2b12f0",
|
|
354
|
+
ticketID: "1d621d17-8e7d-4ac0-9f7d-6e9fcebe8eef",
|
|
355
|
+
updateTicket: {},
|
|
356
|
+
});
|
|
357
|
+
if (res.ok) {
|
|
358
|
+
const { value: result } = res;
|
|
359
|
+
console.log(result);
|
|
360
|
+
} else {
|
|
361
|
+
console.log("supportUpdateTicket failed:", res.error);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
run();
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Parameters
|
|
369
|
+
|
|
370
|
+
| Parameter | Type | Required | Description |
|
|
371
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
372
|
+
| `request` | [operations.UpdateTicketRequest](../../models/operations/updateticketrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
373
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
374
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
375
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
376
|
+
|
|
377
|
+
### Response
|
|
378
|
+
|
|
379
|
+
**Promise\<[operations.UpdateTicketResponse](../../models/operations/updateticketresponse.md)\>**
|
|
380
|
+
|
|
381
|
+
### Errors
|
|
382
|
+
|
|
383
|
+
| Error Type | Status Code | Content Type |
|
|
384
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
385
|
+
| errors.GenericError | 400, 409 | application/json |
|
|
386
|
+
| errors.UpdateTicketError | 422 | application/json |
|
|
387
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
388
|
+
|
|
389
|
+
## listTicketMessages
|
|
390
|
+
|
|
391
|
+
List all the messages for a support ticket.
|
|
392
|
+
|
|
393
|
+
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}/support.read` scope.
|
|
395
|
+
|
|
396
|
+
### Example Usage
|
|
397
|
+
|
|
398
|
+
```typescript
|
|
399
|
+
import { Moov } from "@moovio/sdk";
|
|
400
|
+
|
|
401
|
+
const moov = new Moov({
|
|
402
|
+
xMoovVersion: "v2024.01.00",
|
|
403
|
+
security: {
|
|
404
|
+
username: "",
|
|
405
|
+
password: "",
|
|
406
|
+
},
|
|
407
|
+
});
|
|
408
|
+
|
|
409
|
+
async function run() {
|
|
410
|
+
const result = await moov.support.listTicketMessages({
|
|
411
|
+
skip: 60,
|
|
412
|
+
count: 20,
|
|
413
|
+
accountID: "72444918-8529-4986-b10c-41817e45d09e",
|
|
414
|
+
ticketID: "edeaab65-c54c-45b8-881b-19138f125fb1",
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
console.log(result);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
run();
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### Standalone function
|
|
424
|
+
|
|
425
|
+
The standalone function version of this method:
|
|
426
|
+
|
|
427
|
+
```typescript
|
|
428
|
+
import { MoovCore } from "@moovio/sdk/core.js";
|
|
429
|
+
import { supportListTicketMessages } from "@moovio/sdk/funcs/supportListTicketMessages.js";
|
|
430
|
+
|
|
431
|
+
// Use `MoovCore` for best tree-shaking performance.
|
|
432
|
+
// You can create one instance of it to use across an application.
|
|
433
|
+
const moov = new MoovCore({
|
|
434
|
+
xMoovVersion: "v2024.01.00",
|
|
435
|
+
security: {
|
|
436
|
+
username: "",
|
|
437
|
+
password: "",
|
|
438
|
+
},
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
async function run() {
|
|
442
|
+
const res = await supportListTicketMessages(moov, {
|
|
443
|
+
skip: 60,
|
|
444
|
+
count: 20,
|
|
445
|
+
accountID: "72444918-8529-4986-b10c-41817e45d09e",
|
|
446
|
+
ticketID: "edeaab65-c54c-45b8-881b-19138f125fb1",
|
|
447
|
+
});
|
|
448
|
+
if (res.ok) {
|
|
449
|
+
const { value: result } = res;
|
|
450
|
+
console.log(result);
|
|
451
|
+
} else {
|
|
452
|
+
console.log("supportListTicketMessages failed:", res.error);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
run();
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
### Parameters
|
|
460
|
+
|
|
461
|
+
| Parameter | Type | Required | Description |
|
|
462
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
463
|
+
| `request` | [operations.ListTicketMessagesRequest](../../models/operations/listticketmessagesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
464
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
465
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
466
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
467
|
+
|
|
468
|
+
### Response
|
|
469
|
+
|
|
470
|
+
**Promise\<[operations.ListTicketMessagesResponse](../../models/operations/listticketmessagesresponse.md)\>**
|
|
471
|
+
|
|
472
|
+
### Errors
|
|
473
|
+
|
|
474
|
+
| Error Type | Status Code | Content Type |
|
|
475
|
+
| --------------- | --------------- | --------------- |
|
|
476
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MoovCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { MoovError } from "../models/errors/mooverror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Create a support ticket for a Moov account.
|
|
13
|
+
*
|
|
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}/support.write` scope.
|
|
16
|
+
*/
|
|
17
|
+
export declare function supportCreateTicket(client: MoovCore, request: operations.CreateTicketRequest, options?: RequestOptions): APIPromise<Result<operations.CreateTicketResponse, errors.GenericError | errors.CreateTicketError | MoovError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=supportCreateTicket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportCreateTicket.d.ts","sourceRoot":"","sources":["../src/funcs/supportCreateTicket.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,oBAAoB,EAC7B,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,iBAAiB,GACxB,SAAS,GACT,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.supportCreateTicket = supportCreateTicket;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
47
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
|
+
const async_js_1 = require("../types/async.js");
|
|
49
|
+
/**
|
|
50
|
+
* Create a support ticket for a Moov account.
|
|
51
|
+
*
|
|
52
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
53
|
+
* you'll need to specify the `/accounts/{accountID}/support.write` scope.
|
|
54
|
+
*/
|
|
55
|
+
function supportCreateTicket(client, request, options) {
|
|
56
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
+
}
|
|
58
|
+
async function $do(client, request, options) {
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return [parsed, { status: "invalid" }];
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.CreateTicket, { explode: true });
|
|
65
|
+
const pathParams = {
|
|
66
|
+
accountID: (0, encodings_js_1.encodeSimple)("accountID", payload.accountID, {
|
|
67
|
+
explode: false,
|
|
68
|
+
charEncoding: "percent",
|
|
69
|
+
}),
|
|
70
|
+
};
|
|
71
|
+
const path = (0, url_js_1.pathToFunc)("/accounts/{accountID}/tickets")(pathParams);
|
|
72
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
73
|
+
"Content-Type": "application/json",
|
|
74
|
+
Accept: "application/json",
|
|
75
|
+
"x-moov-version": (0, encodings_js_1.encodeSimple)("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" }),
|
|
76
|
+
}));
|
|
77
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
78
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
79
|
+
const context = {
|
|
80
|
+
options: client._options,
|
|
81
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
+
operationID: "createTicket",
|
|
83
|
+
oAuth2Scopes: [],
|
|
84
|
+
resolvedSecurity: requestSecurity,
|
|
85
|
+
securitySource: client._options.security,
|
|
86
|
+
retryConfig: options?.retries
|
|
87
|
+
|| client._options.retryConfig
|
|
88
|
+
|| { strategy: "none" },
|
|
89
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
+
};
|
|
91
|
+
const requestRes = client._createRequest(context, {
|
|
92
|
+
security: requestSecurity,
|
|
93
|
+
method: "POST",
|
|
94
|
+
baseURL: options?.serverURL,
|
|
95
|
+
path: path,
|
|
96
|
+
headers: headers,
|
|
97
|
+
body: body,
|
|
98
|
+
userAgent: client._options.userAgent,
|
|
99
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
100
|
+
}, options);
|
|
101
|
+
if (!requestRes.ok) {
|
|
102
|
+
return [requestRes, { status: "invalid" }];
|
|
103
|
+
}
|
|
104
|
+
const req = requestRes.value;
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
errorCodes: [
|
|
108
|
+
"400",
|
|
109
|
+
"401",
|
|
110
|
+
"403",
|
|
111
|
+
"404",
|
|
112
|
+
"409",
|
|
113
|
+
"422",
|
|
114
|
+
"429",
|
|
115
|
+
"4XX",
|
|
116
|
+
"500",
|
|
117
|
+
"504",
|
|
118
|
+
"5XX",
|
|
119
|
+
],
|
|
120
|
+
retryConfig: context.retryConfig,
|
|
121
|
+
retryCodes: context.retryCodes,
|
|
122
|
+
});
|
|
123
|
+
if (!doResult.ok) {
|
|
124
|
+
return [doResult, { status: "request-error", request: req }];
|
|
125
|
+
}
|
|
126
|
+
const response = doResult.value;
|
|
127
|
+
const responseFields = {
|
|
128
|
+
HttpMeta: { Response: response, Request: req },
|
|
129
|
+
};
|
|
130
|
+
const [result] = await M.match(M.json(200, operations.CreateTicketResponse$inboundSchema, {
|
|
131
|
+
hdrs: true,
|
|
132
|
+
key: "Result",
|
|
133
|
+
}), M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }), M.jsonErr(422, errors.CreateTicketError$inboundSchema, { hdrs: true }), M.fail([401, 403, 404, 429]), M.fail([500, 504]), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134
|
+
if (!result.ok) {
|
|
135
|
+
return [result, { status: "complete", request: req, response }];
|
|
136
|
+
}
|
|
137
|
+
return [result, { status: "complete", request: req, response }];
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=supportCreateTicket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportCreateTicket.js","sourceRoot":"","sources":["../src/funcs/supportCreateTicket.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,kDAwBC;AApDD,sDAA+D;AAC/D,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,MAAgB,EAChB,OAAuC,EACvC,OAAwB;IAgBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAgB,EAChB,OAAuC,EACvC,OAAwB;IAmBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,kCAAkC,CAAC,KAAK,CAAC,KAAK,CAAC,EACrE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEzE,MAAM,UAAU,GAAG;QACjB,SAAS,EAAE,IAAA,2BAAY,EAAC,WA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