@scalepad/sdk-core 0.1.0 → 0.1.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 +93 -0
- package/package.json +9 -1
- package/src/catalog.ts +0 -277
- package/src/generated.ts +0 -303
- package/src/index.ts +0 -87
- package/src/runtime.ts +0 -132
- package/src/schema.ts +0 -6694
- package/tsconfig.json +0 -9
package/README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# @scalepad/sdk-core
|
|
2
|
+
|
|
3
|
+
Typed client for the ScalePad Core API routes used by the ScalePad CLI.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @scalepad/sdk-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { createCoreClient } from "@scalepad/sdk-core";
|
|
15
|
+
|
|
16
|
+
const client = createCoreClient({
|
|
17
|
+
apiKey: process.env.SCALEPAD_API_KEY!
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const clients = await client.listClients({ pageSize: 10 });
|
|
21
|
+
console.log(clients.data);
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## API
|
|
25
|
+
|
|
26
|
+
The package exports a generated client plus a small convenience wrapper.
|
|
27
|
+
|
|
28
|
+
Wrapper helpers:
|
|
29
|
+
|
|
30
|
+
- `createCoreClient(config)`
|
|
31
|
+
- `ScalepadCoreClient`
|
|
32
|
+
- `listClients(query)`
|
|
33
|
+
- `getClient(id)`
|
|
34
|
+
- `listIntegrationConfigurations()`
|
|
35
|
+
- `listHardwareAssets(query)`
|
|
36
|
+
- `listTickets(query)`
|
|
37
|
+
|
|
38
|
+
Generated and schema exports:
|
|
39
|
+
|
|
40
|
+
- `GeneratedCoreClient`
|
|
41
|
+
- `coreOperations`
|
|
42
|
+
- `ScalepadApiError`
|
|
43
|
+
- `paths`
|
|
44
|
+
|
|
45
|
+
## Client configuration
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
type CoreClientConfig = {
|
|
49
|
+
apiKey: string;
|
|
50
|
+
baseUrl?: string;
|
|
51
|
+
fetchImpl?: typeof fetch;
|
|
52
|
+
userAgent?: string;
|
|
53
|
+
maxRetries?: number;
|
|
54
|
+
};
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- `apiKey` is required and is sent as `x-api-key`
|
|
58
|
+
- `baseUrl` defaults to `https://api.scalepad.com`
|
|
59
|
+
- `fetchImpl` lets you inject a custom fetch implementation
|
|
60
|
+
- `userAgent` defaults to `@scalepad/cli`
|
|
61
|
+
- `maxRetries` controls retry attempts for `429` responses and defaults to `3`
|
|
62
|
+
|
|
63
|
+
## List queries
|
|
64
|
+
|
|
65
|
+
List endpoints accept this shared shape:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
type ListQuery = {
|
|
69
|
+
cursor?: string;
|
|
70
|
+
pageSize?: number;
|
|
71
|
+
filters?: Record<string, string>;
|
|
72
|
+
sort?: string;
|
|
73
|
+
};
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Filters are translated to `filter[field]=expression` query parameters, and `pageSize` is translated to `page_size`.
|
|
77
|
+
|
|
78
|
+
## Error handling
|
|
79
|
+
|
|
80
|
+
Failed responses throw `ScalepadApiError`, which includes:
|
|
81
|
+
|
|
82
|
+
- `status`: the HTTP status code
|
|
83
|
+
- `payload`: the parsed response body when one is available
|
|
84
|
+
|
|
85
|
+
## Development
|
|
86
|
+
|
|
87
|
+
This package is generated from the checked-in OpenAPI spec in the monorepo root. To refresh or rebuild it:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pnpm fetch:specs
|
|
91
|
+
pnpm generate:sdk
|
|
92
|
+
pnpm --filter @scalepad/sdk-core build
|
|
93
|
+
```
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalepad/sdk-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Typed ScalePad Core API client used by the ScalePad CLI.",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
7
15
|
"exports": {
|
|
8
16
|
".": {
|
|
9
17
|
"types": "./dist/index.d.ts",
|
package/src/catalog.ts
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
export interface GeneratedOperation {
|
|
3
|
-
methodName: string;
|
|
4
|
-
method: "get" | "post" | "put" | "delete";
|
|
5
|
-
path: string;
|
|
6
|
-
action: "list" | "get" | "create" | "update" | "delete";
|
|
7
|
-
commandPath: readonly string[];
|
|
8
|
-
pathParams: readonly string[];
|
|
9
|
-
queryParams: readonly string[];
|
|
10
|
-
hasBody: boolean;
|
|
11
|
-
output: "list" | "object";
|
|
12
|
-
summary: string;
|
|
13
|
-
description: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const coreOperations: readonly GeneratedOperation[] = [
|
|
17
|
-
{
|
|
18
|
-
methodName: "listAssetsHardware",
|
|
19
|
-
method: "get",
|
|
20
|
-
path: "/core/v1/assets/hardware",
|
|
21
|
-
action: "list",
|
|
22
|
-
commandPath: ["assets","hardware"],
|
|
23
|
-
pathParams: [],
|
|
24
|
-
queryParams: ["filter[id]","filter[name]","filter[client.id]","filter[client.name]","filter[contact.id]","filter[manufacturer.id]","filter[manufacturer.name]","filter[model.number]","filter[serial_number]","filter[type]","filter[location_name]","filter[configuration.cpu.name]","filter[configuration.cpu.manufacturer_name]","filter[configuration.cpu.manufacturer_id]","filter[configuration.ram_bytes]","filter[software.operating_system]","filter[software.antivirus_info.status]","filter[software.antivirus_info.definition_status]","filter[software.office_suite_info.name]","filter[software.office_suite_info.version]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
25
|
-
hasBody: false,
|
|
26
|
-
output: "list",
|
|
27
|
-
summary: "List Hardware Assets",
|
|
28
|
-
description: "This endpoint retrieves a detailed list of hardware assets. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA hardware asset is an active physical device for a client managed by the MSP, enriched with information such as the associated client, assigned contact and other device-specific details."
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
methodName: "getAssetsHardwareById",
|
|
32
|
-
method: "get",
|
|
33
|
-
path: "/core/v1/assets/hardware/{id}",
|
|
34
|
-
action: "get",
|
|
35
|
-
commandPath: ["assets","hardware"],
|
|
36
|
-
pathParams: ["id"],
|
|
37
|
-
queryParams: [],
|
|
38
|
-
hasBody: false,
|
|
39
|
-
output: "object",
|
|
40
|
-
summary: "Get Hardware Asset",
|
|
41
|
-
description: "This endpoint retrieves a single hardware asset, identified by its unique ID.\r\n \r\nA hardware asset is an active physical device for a client managed by the MSP, enriched with information such as the associated client, assigned contact and other device-specific details."
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
methodName: "listAssetsSaas",
|
|
45
|
-
method: "get",
|
|
46
|
-
path: "/core/v1/assets/saas",
|
|
47
|
-
action: "list",
|
|
48
|
-
commandPath: ["assets","saas"],
|
|
49
|
-
pathParams: [],
|
|
50
|
-
queryParams: ["filter[id]","filter[client.id]","filter[client.name]","filter[product.manufacturer.id]","filter[product.manufacturer.name]","filter[product.id]","filter[product.name]","filter[product.category]","filter[product.manufacturer_sku.id]","filter[product.manufacturer_sku.name]","filter[status]","filter[term.starts_at]","filter[term.ends_at]","filter[term.is_auto_renewed]","filter[pool.type]","filter[pool.capacity]","filter[pool.utilized]","filter[pool.active]","filter[pool.suspended]","filter[pool.grace_period_warning]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
51
|
-
hasBody: false,
|
|
52
|
-
output: "list",
|
|
53
|
-
summary: "List SaaS Assets",
|
|
54
|
-
description: "This endpoint retrieves a detailed list of SaaS assets. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA SaaS asset is a cloud-based software application used by a client organization, tracked and managed by the MSP as part of its service delivery."
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
methodName: "listAssetsSaasUsers",
|
|
58
|
-
method: "get",
|
|
59
|
-
path: "/core/v1/assets/saas-users",
|
|
60
|
-
action: "list",
|
|
61
|
-
commandPath: ["assets","saas-users"],
|
|
62
|
-
pathParams: [],
|
|
63
|
-
queryParams: ["filter[id]","filter[client.id]","filter[client.name]","filter[contact.id]","filter[asset.id]","filter[asset.status]","filter[product.manufacturer.id]","filter[product.manufacturer.name]","filter[product.id]","filter[product.name]","filter[product.category]","filter[product.manufacturer_sku.id]","filter[product.manufacturer_sku.name]","filter[term.starts_at]","filter[term.ends_at]","filter[activity.last_active_at]","filter[activity.is_active]","filter[authentication.is_mfa_enabled]","filter[authentication.default_mfa_method]","filter[is_admin]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
64
|
-
hasBody: false,
|
|
65
|
-
output: "list",
|
|
66
|
-
summary: "List SaaS Users",
|
|
67
|
-
description: "This endpoint retrieves a detailed list of SaaS users. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA SaaS user is an individual at the client organization who has been assigned access to a SaaS license managed by the MSP."
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
methodName: "getAssetsSaasUsersById",
|
|
71
|
-
method: "get",
|
|
72
|
-
path: "/core/v1/assets/saas-users/{id}",
|
|
73
|
-
action: "get",
|
|
74
|
-
commandPath: ["assets","saas-users"],
|
|
75
|
-
pathParams: ["id"],
|
|
76
|
-
queryParams: [],
|
|
77
|
-
hasBody: false,
|
|
78
|
-
output: "object",
|
|
79
|
-
summary: "Get SaaS User",
|
|
80
|
-
description: "This endpoint retrieves a single SaaS user, identified by its unique ID.\r\n \r\nA SaaS user is an individual at the client organization who has been assigned access to a SaaS license managed by the MSP."
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
methodName: "getAssetsSaasById",
|
|
84
|
-
method: "get",
|
|
85
|
-
path: "/core/v1/assets/saas/{id}",
|
|
86
|
-
action: "get",
|
|
87
|
-
commandPath: ["assets","saas"],
|
|
88
|
-
pathParams: ["id"],
|
|
89
|
-
queryParams: [],
|
|
90
|
-
hasBody: false,
|
|
91
|
-
output: "object",
|
|
92
|
-
summary: "Get SaaS Asset",
|
|
93
|
-
description: "This endpoint retrieves a single SaaS asset, identified by its unique ID.\r\n \r\nA SaaS asset is a cloud-based software application used by a client organization, tracked and managed by the MSP as part of its service delivery."
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
methodName: "listClients",
|
|
97
|
-
method: "get",
|
|
98
|
-
path: "/core/v1/clients",
|
|
99
|
-
action: "list",
|
|
100
|
-
commandPath: ["clients"],
|
|
101
|
-
pathParams: [],
|
|
102
|
-
queryParams: ["filter[id]","filter[name]","filter[lifecycle]","filter[num_contacts]","filter[num_hardware_assets]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
103
|
-
hasBody: false,
|
|
104
|
-
output: "list",
|
|
105
|
-
summary: "List Clients",
|
|
106
|
-
description: "This endpoint retrieves a detailed list of clients. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA client is an active customer organization managed by the MSP, enriched with data such as employee and device counts, geographic details, and other customer-specific details."
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
methodName: "getClientsById",
|
|
110
|
-
method: "get",
|
|
111
|
-
path: "/core/v1/clients/{id}",
|
|
112
|
-
action: "get",
|
|
113
|
-
commandPath: ["clients"],
|
|
114
|
-
pathParams: ["id"],
|
|
115
|
-
queryParams: [],
|
|
116
|
-
hasBody: false,
|
|
117
|
-
output: "object",
|
|
118
|
-
summary: "Get Client",
|
|
119
|
-
description: "This endpoint retrieves a single client, identified by its unique ID.\r\n \r\nA client is an active customer organization managed by the MSP, enriched with data such as employee and device counts, geographic details, and other customer-specific details."
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
methodName: "createContacts",
|
|
123
|
-
method: "post",
|
|
124
|
-
path: "/core/v1/contacts",
|
|
125
|
-
action: "create",
|
|
126
|
-
commandPath: ["contacts"],
|
|
127
|
-
pathParams: [],
|
|
128
|
-
queryParams: ["filter[id]","filter[client.id]","filter[client.name]","filter[title]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
129
|
-
hasBody: true,
|
|
130
|
-
output: "object",
|
|
131
|
-
summary: "Create Contacts",
|
|
132
|
-
description: "This endpoint retrieves a detailed list of contacts. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA contact is an active individual associated with a client of an MSP, enriched with information such as their role, name and other contact-specific details."
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
methodName: "getContactsById",
|
|
136
|
-
method: "get",
|
|
137
|
-
path: "/core/v1/contacts/{id}",
|
|
138
|
-
action: "get",
|
|
139
|
-
commandPath: ["contacts"],
|
|
140
|
-
pathParams: ["id"],
|
|
141
|
-
queryParams: [],
|
|
142
|
-
hasBody: false,
|
|
143
|
-
output: "object",
|
|
144
|
-
summary: "Get Contact",
|
|
145
|
-
description: "This endpoint retrieves a single contact, identified by its unique ID.\r\n \r\nA contact is an active individual associated with a client of an MSP, enriched with information such as their role, name and other contact-specific details."
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
methodName: "listIntegrationsConfigurations",
|
|
149
|
-
method: "get",
|
|
150
|
-
path: "/core/v1/integrations/configurations",
|
|
151
|
-
action: "list",
|
|
152
|
-
commandPath: ["integrations","configurations"],
|
|
153
|
-
pathParams: [],
|
|
154
|
-
queryParams: [],
|
|
155
|
-
hasBody: false,
|
|
156
|
-
output: "list",
|
|
157
|
-
summary: "List Integration Configurations",
|
|
158
|
-
description: "This endpoint returns the list of integration configurations associated with the MSP. It indicates which configurations are the primary integrations associated with specific entities.\r\n \r\nAn integration configuration is a specific instance of an integration."
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
methodName: "listIntegrationsVendors",
|
|
162
|
-
method: "get",
|
|
163
|
-
path: "/core/v1/integrations/vendors",
|
|
164
|
-
action: "list",
|
|
165
|
-
commandPath: ["integrations","vendors"],
|
|
166
|
-
pathParams: [],
|
|
167
|
-
queryParams: ["filter[name]","filter[vendor_id]","filter[category]","filter[data_types_supported]","page_size","cursor"],
|
|
168
|
-
hasBody: false,
|
|
169
|
-
output: "list",
|
|
170
|
-
summary: "List Integration Vendors",
|
|
171
|
-
description: "This endpoint retrieves a complete list of integration vendors which can be used to identify third-party services and platforms that can be integrated with."
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
methodName: "createMembers",
|
|
175
|
-
method: "post",
|
|
176
|
-
path: "/core/v1/members",
|
|
177
|
-
action: "create",
|
|
178
|
-
commandPath: ["members"],
|
|
179
|
-
pathParams: [],
|
|
180
|
-
queryParams: ["filter[id]","filter[hired_at]","filter[title]","filter[is_scalepad_user]","filter[reports_to_member.id]","filter[hourly_cost.amount]","filter[daily_capacity]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
181
|
-
hasBody: true,
|
|
182
|
-
output: "object",
|
|
183
|
-
summary: "Create Members",
|
|
184
|
-
description: "This endpoint retrieves a detailed list of members. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA member is an active user (employee, contractor, downstream IT, etc.) within the MSP, enriched with details including their roles, access to ScalePad products, and other associated employee attributes."
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
methodName: "getMembersById",
|
|
188
|
-
method: "get",
|
|
189
|
-
path: "/core/v1/members/{id}",
|
|
190
|
-
action: "get",
|
|
191
|
-
commandPath: ["members"],
|
|
192
|
-
pathParams: ["id"],
|
|
193
|
-
queryParams: [],
|
|
194
|
-
hasBody: false,
|
|
195
|
-
output: "object",
|
|
196
|
-
summary: "Get Member",
|
|
197
|
-
description: "This endpoint retrieves a single member, identified by its unique ID.\r\n \r\nA member is an active user (employee, contractor, downstream IT, etc.) within the MSP, enriched with details including their roles, access to ScalePad products, and other associated employee attributes."
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
methodName: "listOpportunities",
|
|
201
|
-
method: "get",
|
|
202
|
-
path: "/core/v1/opportunities",
|
|
203
|
-
action: "list",
|
|
204
|
-
commandPath: ["opportunities"],
|
|
205
|
-
pathParams: [],
|
|
206
|
-
queryParams: ["filter[id]","filter[title]","filter[source_status]","filter[source_stage]","filter[is_active]","filter[probability]","filter[client.id]","filter[client.name]","filter[contact.id]","filter[responsible_member.id]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
207
|
-
hasBody: false,
|
|
208
|
-
output: "list",
|
|
209
|
-
summary: "List Opportunities",
|
|
210
|
-
description: "This endpoint retrieves a detailed list of opportunities. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nAn opportunity is a sales opportunity for an active client managed by the MSP, enriched with information such as status, stage, associated contact, and other sales-related information."
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
methodName: "getOpportunitiesById",
|
|
214
|
-
method: "get",
|
|
215
|
-
path: "/core/v1/opportunities/{id}",
|
|
216
|
-
action: "get",
|
|
217
|
-
commandPath: ["opportunities"],
|
|
218
|
-
pathParams: ["id"],
|
|
219
|
-
queryParams: [],
|
|
220
|
-
hasBody: false,
|
|
221
|
-
output: "object",
|
|
222
|
-
summary: "Get Opportunity",
|
|
223
|
-
description: "This endpoint retrieves a single opportunity, identified by its unique ID.\r\n \r\nAn opportunity is a sales opportunity for an active client managed by the MSP, enriched with information such as status, stage, associated contact, and other sales-related information."
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
methodName: "listServiceContracts",
|
|
227
|
-
method: "get",
|
|
228
|
-
path: "/core/v1/service/contracts",
|
|
229
|
-
action: "list",
|
|
230
|
-
commandPath: ["service","contracts"],
|
|
231
|
-
pathParams: [],
|
|
232
|
-
queryParams: ["filter[id]","filter[name]","filter[client.id]","filter[client.name]","filter[contact.id]","filter[is_recurring]","filter[type]","filter[term.starts_at]","filter[term.ends_at]","filter[term.is_auto_renew]","filter[term.billing_period]","filter[source_type]","filter[is_addendum]","filter[parent_contract.id]","filter[parent_contract.name]","filter[status]","filter[is_billable]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
233
|
-
hasBody: false,
|
|
234
|
-
output: "list",
|
|
235
|
-
summary: "List Contracts",
|
|
236
|
-
description: "This endpoint retrieves a detailed list of contracts. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA contract is a formal agreement between the MSP and its active client, enriched with information such as the associated client, contact, and other agreement-specific details."
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
methodName: "getServiceContractsById",
|
|
240
|
-
method: "get",
|
|
241
|
-
path: "/core/v1/service/contracts/{id}",
|
|
242
|
-
action: "get",
|
|
243
|
-
commandPath: ["service","contracts"],
|
|
244
|
-
pathParams: ["id"],
|
|
245
|
-
queryParams: [],
|
|
246
|
-
hasBody: false,
|
|
247
|
-
output: "object",
|
|
248
|
-
summary: "Get Contract",
|
|
249
|
-
description: "This endpoint retrieves a single contract, identified by its unique ID.\r\n \r\nA contract is a formal agreement between the MSP and its active client, enriched with information such as the associated client, contact, and other agreement-specific details."
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
methodName: "listServiceTickets",
|
|
253
|
-
method: "get",
|
|
254
|
-
path: "/core/v1/service/tickets",
|
|
255
|
-
action: "list",
|
|
256
|
-
commandPath: ["service","tickets"],
|
|
257
|
-
pathParams: [],
|
|
258
|
-
queryParams: ["filter[id]","filter[owner_member.id]","filter[responsible_member.id]","filter[client.id]","filter[client.name]","filter[contact.id]","filter[contract.id]","filter[contract.name]","filter[board.id]","filter[board.name]","filter[category]","filter[timeline.created_at]","filter[timeline.updated_at]","filter[timeline.responded_at]","filter[timeline.planned_at]","filter[timeline.resolved_at]","filter[timeline.closed_at]","filter[sla.is_response_in_sla]","filter[sla.is_plan_in_sla]","filter[sla.is_resolution_in_sla]","filter[status.current]","filter[priority.current]","filter[impact]","filter[severity]","filter[record_created_at]","filter[record_updated_at]","sort","page_size","cursor"],
|
|
259
|
-
hasBody: false,
|
|
260
|
-
output: "list",
|
|
261
|
-
summary: "List Tickets",
|
|
262
|
-
description: "This endpoint retrieves a detailed list of tickets. The endpoint supports filtering and sorting based on various criteria.\r\n \r\nA ticket is a service request or an issue raised by a client or an MSP, enriched with details about the requester, the client, issue summary, and other issue-related details."
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
methodName: "getServiceTicketsById",
|
|
266
|
-
method: "get",
|
|
267
|
-
path: "/core/v1/service/tickets/{id}",
|
|
268
|
-
action: "get",
|
|
269
|
-
commandPath: ["service","tickets"],
|
|
270
|
-
pathParams: ["id"],
|
|
271
|
-
queryParams: [],
|
|
272
|
-
hasBody: false,
|
|
273
|
-
output: "object",
|
|
274
|
-
summary: "Get Ticket",
|
|
275
|
-
description: "This endpoint retrieves a single ticket, identified by its unique ID.\r\n \r\nA ticket is a service request or an issue raised by a client or an MSP, enriched with details about the requester, the client, issue summary, and other issue-related details."
|
|
276
|
-
}
|
|
277
|
-
];
|