@scalepad/sdk-core 0.1.0
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/dist/catalog.d.ts +14 -0
- package/dist/catalog.js +263 -0
- package/dist/catalog.js.map +1 -0
- package/dist/generated.d.ts +105 -0
- package/dist/generated.js +159 -0
- package/dist/generated.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime.d.ts +37 -0
- package/dist/runtime.js +88 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schema.d.ts +6693 -0
- package/dist/schema.js +2 -0
- package/dist/schema.js.map +1 -0
- package/package.json +17 -0
- package/src/catalog.ts +277 -0
- package/src/generated.ts +303 -0
- package/src/index.ts +87 -0
- package/src/runtime.ts +132 -0
- package/src/schema.ts +6694 -0
- package/tsconfig.json +9 -0
package/dist/schema.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scalepad/sdk-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc -p tsconfig.json",
|
|
15
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
16
|
+
}
|
|
17
|
+
}
|
package/src/catalog.ts
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
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
|
+
];
|
package/src/generated.ts
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
import { BaseApiClient, type BaseClientConfig } from "./runtime.js";
|
|
4
|
+
|
|
5
|
+
export type ListassetshardwareQuery = NonNullable<paths['/core/v1/assets/hardware']['get']['parameters']>['query'];
|
|
6
|
+
export type ListassetshardwarePathParams = never;
|
|
7
|
+
export type ListassetshardwareBody = never;
|
|
8
|
+
export type ListassetshardwareResponse = paths['/core/v1/assets/hardware']['get']['responses']['200']['content']['application/json'];
|
|
9
|
+
type ListassetshardwareOperation = paths['/core/v1/assets/hardware']['get'];
|
|
10
|
+
|
|
11
|
+
export type GetassetshardwarebyidQuery = never;
|
|
12
|
+
export type GetassetshardwarebyidPathParams = NonNullable<paths['/core/v1/assets/hardware/{id}']['get']['parameters']>['path'];
|
|
13
|
+
export type GetassetshardwarebyidBody = never;
|
|
14
|
+
export type GetassetshardwarebyidResponse = paths['/core/v1/assets/hardware/{id}']['get']['responses']['200']['content']['application/json'];
|
|
15
|
+
type GetassetshardwarebyidOperation = paths['/core/v1/assets/hardware/{id}']['get'];
|
|
16
|
+
|
|
17
|
+
export type ListassetssaasQuery = NonNullable<paths['/core/v1/assets/saas']['get']['parameters']>['query'];
|
|
18
|
+
export type ListassetssaasPathParams = never;
|
|
19
|
+
export type ListassetssaasBody = never;
|
|
20
|
+
export type ListassetssaasResponse = paths['/core/v1/assets/saas']['get']['responses']['200']['content']['application/json'];
|
|
21
|
+
type ListassetssaasOperation = paths['/core/v1/assets/saas']['get'];
|
|
22
|
+
|
|
23
|
+
export type ListassetssaasusersQuery = NonNullable<paths['/core/v1/assets/saas-users']['get']['parameters']>['query'];
|
|
24
|
+
export type ListassetssaasusersPathParams = never;
|
|
25
|
+
export type ListassetssaasusersBody = never;
|
|
26
|
+
export type ListassetssaasusersResponse = paths['/core/v1/assets/saas-users']['get']['responses']['200']['content']['application/json'];
|
|
27
|
+
type ListassetssaasusersOperation = paths['/core/v1/assets/saas-users']['get'];
|
|
28
|
+
|
|
29
|
+
export type GetassetssaasusersbyidQuery = never;
|
|
30
|
+
export type GetassetssaasusersbyidPathParams = NonNullable<paths['/core/v1/assets/saas-users/{id}']['get']['parameters']>['path'];
|
|
31
|
+
export type GetassetssaasusersbyidBody = never;
|
|
32
|
+
export type GetassetssaasusersbyidResponse = paths['/core/v1/assets/saas-users/{id}']['get']['responses']['200']['content']['application/json'];
|
|
33
|
+
type GetassetssaasusersbyidOperation = paths['/core/v1/assets/saas-users/{id}']['get'];
|
|
34
|
+
|
|
35
|
+
export type GetassetssaasbyidQuery = never;
|
|
36
|
+
export type GetassetssaasbyidPathParams = NonNullable<paths['/core/v1/assets/saas/{id}']['get']['parameters']>['path'];
|
|
37
|
+
export type GetassetssaasbyidBody = never;
|
|
38
|
+
export type GetassetssaasbyidResponse = paths['/core/v1/assets/saas/{id}']['get']['responses']['200']['content']['application/json'];
|
|
39
|
+
type GetassetssaasbyidOperation = paths['/core/v1/assets/saas/{id}']['get'];
|
|
40
|
+
|
|
41
|
+
export type ListclientsQuery = NonNullable<paths['/core/v1/clients']['get']['parameters']>['query'];
|
|
42
|
+
export type ListclientsPathParams = never;
|
|
43
|
+
export type ListclientsBody = never;
|
|
44
|
+
export type ListclientsResponse = paths['/core/v1/clients']['get']['responses']['200']['content']['application/json'];
|
|
45
|
+
type ListclientsOperation = paths['/core/v1/clients']['get'];
|
|
46
|
+
|
|
47
|
+
export type GetclientsbyidQuery = never;
|
|
48
|
+
export type GetclientsbyidPathParams = NonNullable<paths['/core/v1/clients/{id}']['get']['parameters']>['path'];
|
|
49
|
+
export type GetclientsbyidBody = never;
|
|
50
|
+
export type GetclientsbyidResponse = paths['/core/v1/clients/{id}']['get']['responses']['200']['content']['application/json'];
|
|
51
|
+
type GetclientsbyidOperation = paths['/core/v1/clients/{id}']['get'];
|
|
52
|
+
|
|
53
|
+
export type CreatecontactsQuery = NonNullable<paths['/core/v1/contacts']['post']['parameters']>['query'];
|
|
54
|
+
export type CreatecontactsPathParams = never;
|
|
55
|
+
export type CreatecontactsBody = NonNullable<paths['/core/v1/contacts']['post']['requestBody']>['content']['application/json'];
|
|
56
|
+
export type CreatecontactsResponse = paths['/core/v1/contacts']['post']['responses']['200']['content']['application/json'];
|
|
57
|
+
type CreatecontactsOperation = paths['/core/v1/contacts']['post'];
|
|
58
|
+
|
|
59
|
+
export type GetcontactsbyidQuery = never;
|
|
60
|
+
export type GetcontactsbyidPathParams = NonNullable<paths['/core/v1/contacts/{id}']['get']['parameters']>['path'];
|
|
61
|
+
export type GetcontactsbyidBody = never;
|
|
62
|
+
export type GetcontactsbyidResponse = paths['/core/v1/contacts/{id}']['get']['responses']['200']['content']['application/json'];
|
|
63
|
+
type GetcontactsbyidOperation = paths['/core/v1/contacts/{id}']['get'];
|
|
64
|
+
|
|
65
|
+
export type ListintegrationsconfigurationsQuery = never;
|
|
66
|
+
export type ListintegrationsconfigurationsPathParams = never;
|
|
67
|
+
export type ListintegrationsconfigurationsBody = never;
|
|
68
|
+
export type ListintegrationsconfigurationsResponse = paths['/core/v1/integrations/configurations']['get']['responses']['200']['content']['application/json'];
|
|
69
|
+
type ListintegrationsconfigurationsOperation = paths['/core/v1/integrations/configurations']['get'];
|
|
70
|
+
|
|
71
|
+
export type ListintegrationsvendorsQuery = NonNullable<paths['/core/v1/integrations/vendors']['get']['parameters']>['query'];
|
|
72
|
+
export type ListintegrationsvendorsPathParams = never;
|
|
73
|
+
export type ListintegrationsvendorsBody = never;
|
|
74
|
+
export type ListintegrationsvendorsResponse = paths['/core/v1/integrations/vendors']['get']['responses']['200']['content']['application/json'];
|
|
75
|
+
type ListintegrationsvendorsOperation = paths['/core/v1/integrations/vendors']['get'];
|
|
76
|
+
|
|
77
|
+
export type CreatemembersQuery = NonNullable<paths['/core/v1/members']['post']['parameters']>['query'];
|
|
78
|
+
export type CreatemembersPathParams = never;
|
|
79
|
+
export type CreatemembersBody = NonNullable<paths['/core/v1/members']['post']['requestBody']>['content']['application/json'];
|
|
80
|
+
export type CreatemembersResponse = paths['/core/v1/members']['post']['responses']['200']['content']['application/json'];
|
|
81
|
+
type CreatemembersOperation = paths['/core/v1/members']['post'];
|
|
82
|
+
|
|
83
|
+
export type GetmembersbyidQuery = never;
|
|
84
|
+
export type GetmembersbyidPathParams = NonNullable<paths['/core/v1/members/{id}']['get']['parameters']>['path'];
|
|
85
|
+
export type GetmembersbyidBody = never;
|
|
86
|
+
export type GetmembersbyidResponse = paths['/core/v1/members/{id}']['get']['responses']['200']['content']['application/json'];
|
|
87
|
+
type GetmembersbyidOperation = paths['/core/v1/members/{id}']['get'];
|
|
88
|
+
|
|
89
|
+
export type ListopportunitiesQuery = NonNullable<paths['/core/v1/opportunities']['get']['parameters']>['query'];
|
|
90
|
+
export type ListopportunitiesPathParams = never;
|
|
91
|
+
export type ListopportunitiesBody = never;
|
|
92
|
+
export type ListopportunitiesResponse = paths['/core/v1/opportunities']['get']['responses']['200']['content']['application/json'];
|
|
93
|
+
type ListopportunitiesOperation = paths['/core/v1/opportunities']['get'];
|
|
94
|
+
|
|
95
|
+
export type GetopportunitiesbyidQuery = never;
|
|
96
|
+
export type GetopportunitiesbyidPathParams = NonNullable<paths['/core/v1/opportunities/{id}']['get']['parameters']>['path'];
|
|
97
|
+
export type GetopportunitiesbyidBody = never;
|
|
98
|
+
export type GetopportunitiesbyidResponse = paths['/core/v1/opportunities/{id}']['get']['responses']['200']['content']['application/json'];
|
|
99
|
+
type GetopportunitiesbyidOperation = paths['/core/v1/opportunities/{id}']['get'];
|
|
100
|
+
|
|
101
|
+
export type ListservicecontractsQuery = NonNullable<paths['/core/v1/service/contracts']['get']['parameters']>['query'];
|
|
102
|
+
export type ListservicecontractsPathParams = never;
|
|
103
|
+
export type ListservicecontractsBody = never;
|
|
104
|
+
export type ListservicecontractsResponse = paths['/core/v1/service/contracts']['get']['responses']['200']['content']['application/json'];
|
|
105
|
+
type ListservicecontractsOperation = paths['/core/v1/service/contracts']['get'];
|
|
106
|
+
|
|
107
|
+
export type GetservicecontractsbyidQuery = never;
|
|
108
|
+
export type GetservicecontractsbyidPathParams = NonNullable<paths['/core/v1/service/contracts/{id}']['get']['parameters']>['path'];
|
|
109
|
+
export type GetservicecontractsbyidBody = never;
|
|
110
|
+
export type GetservicecontractsbyidResponse = paths['/core/v1/service/contracts/{id}']['get']['responses']['200']['content']['application/json'];
|
|
111
|
+
type GetservicecontractsbyidOperation = paths['/core/v1/service/contracts/{id}']['get'];
|
|
112
|
+
|
|
113
|
+
export type ListserviceticketsQuery = NonNullable<paths['/core/v1/service/tickets']['get']['parameters']>['query'];
|
|
114
|
+
export type ListserviceticketsPathParams = never;
|
|
115
|
+
export type ListserviceticketsBody = never;
|
|
116
|
+
export type ListserviceticketsResponse = paths['/core/v1/service/tickets']['get']['responses']['200']['content']['application/json'];
|
|
117
|
+
type ListserviceticketsOperation = paths['/core/v1/service/tickets']['get'];
|
|
118
|
+
|
|
119
|
+
export type GetserviceticketsbyidQuery = never;
|
|
120
|
+
export type GetserviceticketsbyidPathParams = NonNullable<paths['/core/v1/service/tickets/{id}']['get']['parameters']>['path'];
|
|
121
|
+
export type GetserviceticketsbyidBody = never;
|
|
122
|
+
export type GetserviceticketsbyidResponse = paths['/core/v1/service/tickets/{id}']['get']['responses']['200']['content']['application/json'];
|
|
123
|
+
type GetserviceticketsbyidOperation = paths['/core/v1/service/tickets/{id}']['get'];
|
|
124
|
+
|
|
125
|
+
export class GeneratedCoreClient extends BaseApiClient {
|
|
126
|
+
public constructor(config: BaseClientConfig) {
|
|
127
|
+
super(config);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
public listAssetsHardware(query?: ListassetshardwareQuery): Promise<ListassetshardwareResponse> {
|
|
131
|
+
const path = "/core/v1/assets/hardware";
|
|
132
|
+
return this.requestJson({
|
|
133
|
+
method: "GET",
|
|
134
|
+
path,
|
|
135
|
+
query,
|
|
136
|
+
}) as Promise<ListassetshardwareResponse>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
public getAssetsHardwareById(pathParams: GetassetshardwarebyidPathParams): Promise<GetassetshardwarebyidResponse> {
|
|
140
|
+
const path = `/core/v1/assets/hardware/${encodeURIComponent(String(pathParams.id))}`;
|
|
141
|
+
return this.requestJson({
|
|
142
|
+
method: "GET",
|
|
143
|
+
path,
|
|
144
|
+
}) as Promise<GetassetshardwarebyidResponse>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
public listAssetsSaas(query?: ListassetssaasQuery): Promise<ListassetssaasResponse> {
|
|
148
|
+
const path = "/core/v1/assets/saas";
|
|
149
|
+
return this.requestJson({
|
|
150
|
+
method: "GET",
|
|
151
|
+
path,
|
|
152
|
+
query,
|
|
153
|
+
}) as Promise<ListassetssaasResponse>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
public listAssetsSaasUsers(query?: ListassetssaasusersQuery): Promise<ListassetssaasusersResponse> {
|
|
157
|
+
const path = "/core/v1/assets/saas-users";
|
|
158
|
+
return this.requestJson({
|
|
159
|
+
method: "GET",
|
|
160
|
+
path,
|
|
161
|
+
query,
|
|
162
|
+
}) as Promise<ListassetssaasusersResponse>;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
public getAssetsSaasUsersById(pathParams: GetassetssaasusersbyidPathParams): Promise<GetassetssaasusersbyidResponse> {
|
|
166
|
+
const path = `/core/v1/assets/saas-users/${encodeURIComponent(String(pathParams.id))}`;
|
|
167
|
+
return this.requestJson({
|
|
168
|
+
method: "GET",
|
|
169
|
+
path,
|
|
170
|
+
}) as Promise<GetassetssaasusersbyidResponse>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
public getAssetsSaasById(pathParams: GetassetssaasbyidPathParams): Promise<GetassetssaasbyidResponse> {
|
|
174
|
+
const path = `/core/v1/assets/saas/${encodeURIComponent(String(pathParams.id))}`;
|
|
175
|
+
return this.requestJson({
|
|
176
|
+
method: "GET",
|
|
177
|
+
path,
|
|
178
|
+
}) as Promise<GetassetssaasbyidResponse>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
public listClients(query?: ListclientsQuery): Promise<ListclientsResponse> {
|
|
182
|
+
const path = "/core/v1/clients";
|
|
183
|
+
return this.requestJson({
|
|
184
|
+
method: "GET",
|
|
185
|
+
path,
|
|
186
|
+
query,
|
|
187
|
+
}) as Promise<ListclientsResponse>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
public getClientsById(pathParams: GetclientsbyidPathParams): Promise<GetclientsbyidResponse> {
|
|
191
|
+
const path = `/core/v1/clients/${encodeURIComponent(String(pathParams.id))}`;
|
|
192
|
+
return this.requestJson({
|
|
193
|
+
method: "GET",
|
|
194
|
+
path,
|
|
195
|
+
}) as Promise<GetclientsbyidResponse>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
public createContacts(query: CreatecontactsQuery | undefined, body: CreatecontactsBody): Promise<CreatecontactsResponse> {
|
|
199
|
+
const path = "/core/v1/contacts";
|
|
200
|
+
return this.requestJson({
|
|
201
|
+
method: "POST",
|
|
202
|
+
path,
|
|
203
|
+
query,
|
|
204
|
+
body
|
|
205
|
+
}) as Promise<CreatecontactsResponse>;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
public getContactsById(pathParams: GetcontactsbyidPathParams): Promise<GetcontactsbyidResponse> {
|
|
209
|
+
const path = `/core/v1/contacts/${encodeURIComponent(String(pathParams.id))}`;
|
|
210
|
+
return this.requestJson({
|
|
211
|
+
method: "GET",
|
|
212
|
+
path,
|
|
213
|
+
}) as Promise<GetcontactsbyidResponse>;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
public listIntegrationsConfigurations(): Promise<ListintegrationsconfigurationsResponse> {
|
|
217
|
+
const path = "/core/v1/integrations/configurations";
|
|
218
|
+
return this.requestJson({
|
|
219
|
+
method: "GET",
|
|
220
|
+
path,
|
|
221
|
+
}) as Promise<ListintegrationsconfigurationsResponse>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
public listIntegrationsVendors(query?: ListintegrationsvendorsQuery): Promise<ListintegrationsvendorsResponse> {
|
|
225
|
+
const path = "/core/v1/integrations/vendors";
|
|
226
|
+
return this.requestJson({
|
|
227
|
+
method: "GET",
|
|
228
|
+
path,
|
|
229
|
+
query,
|
|
230
|
+
}) as Promise<ListintegrationsvendorsResponse>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
public createMembers(query: CreatemembersQuery | undefined, body: CreatemembersBody): Promise<CreatemembersResponse> {
|
|
234
|
+
const path = "/core/v1/members";
|
|
235
|
+
return this.requestJson({
|
|
236
|
+
method: "POST",
|
|
237
|
+
path,
|
|
238
|
+
query,
|
|
239
|
+
body
|
|
240
|
+
}) as Promise<CreatemembersResponse>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
public getMembersById(pathParams: GetmembersbyidPathParams): Promise<GetmembersbyidResponse> {
|
|
244
|
+
const path = `/core/v1/members/${encodeURIComponent(String(pathParams.id))}`;
|
|
245
|
+
return this.requestJson({
|
|
246
|
+
method: "GET",
|
|
247
|
+
path,
|
|
248
|
+
}) as Promise<GetmembersbyidResponse>;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
public listOpportunities(query?: ListopportunitiesQuery): Promise<ListopportunitiesResponse> {
|
|
252
|
+
const path = "/core/v1/opportunities";
|
|
253
|
+
return this.requestJson({
|
|
254
|
+
method: "GET",
|
|
255
|
+
path,
|
|
256
|
+
query,
|
|
257
|
+
}) as Promise<ListopportunitiesResponse>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
public getOpportunitiesById(pathParams: GetopportunitiesbyidPathParams): Promise<GetopportunitiesbyidResponse> {
|
|
261
|
+
const path = `/core/v1/opportunities/${encodeURIComponent(String(pathParams.id))}`;
|
|
262
|
+
return this.requestJson({
|
|
263
|
+
method: "GET",
|
|
264
|
+
path,
|
|
265
|
+
}) as Promise<GetopportunitiesbyidResponse>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
public listServiceContracts(query?: ListservicecontractsQuery): Promise<ListservicecontractsResponse> {
|
|
269
|
+
const path = "/core/v1/service/contracts";
|
|
270
|
+
return this.requestJson({
|
|
271
|
+
method: "GET",
|
|
272
|
+
path,
|
|
273
|
+
query,
|
|
274
|
+
}) as Promise<ListservicecontractsResponse>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
public getServiceContractsById(pathParams: GetservicecontractsbyidPathParams): Promise<GetservicecontractsbyidResponse> {
|
|
278
|
+
const path = `/core/v1/service/contracts/${encodeURIComponent(String(pathParams.id))}`;
|
|
279
|
+
return this.requestJson({
|
|
280
|
+
method: "GET",
|
|
281
|
+
path,
|
|
282
|
+
}) as Promise<GetservicecontractsbyidResponse>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
public listServiceTickets(query?: ListserviceticketsQuery): Promise<ListserviceticketsResponse> {
|
|
286
|
+
const path = "/core/v1/service/tickets";
|
|
287
|
+
return this.requestJson({
|
|
288
|
+
method: "GET",
|
|
289
|
+
path,
|
|
290
|
+
query,
|
|
291
|
+
}) as Promise<ListserviceticketsResponse>;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
public getServiceTicketsById(pathParams: GetserviceticketsbyidPathParams): Promise<GetserviceticketsbyidResponse> {
|
|
295
|
+
const path = `/core/v1/service/tickets/${encodeURIComponent(String(pathParams.id))}`;
|
|
296
|
+
return this.requestJson({
|
|
297
|
+
method: "GET",
|
|
298
|
+
path,
|
|
299
|
+
}) as Promise<GetserviceticketsbyidResponse>;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
}
|
|
303
|
+
|