connectwise-rest 0.23.3 → 1.0.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/.eslintrc +19 -52
- package/.gitattributes +1 -0
- package/.github/workflows/codeql-analysis.yml +70 -0
- package/.github/workflows/node.js.yml +42 -0
- package/.mocharc.json +5 -0
- package/.prettierrc +7 -0
- package/.travis.yml +4 -2
- package/README.md +243 -230
- package/api-extractor.json +364 -0
- package/dist/Automate/AVTemplatePoliciesAPI.d.ts +27 -0
- package/dist/Automate/AVTemplatePoliciesAPI.d.ts.map +1 -0
- package/dist/Automate/AVTemplatePoliciesAPI.js +87 -0
- package/dist/Automate/AVTemplatePoliciesAPI.js.map +1 -0
- package/dist/Automate/ClientsAPI.d.ts +34 -0
- package/dist/Automate/ClientsAPI.d.ts.map +1 -0
- package/dist/Automate/ClientsAPI.js +114 -0
- package/dist/Automate/ClientsAPI.js.map +1 -0
- package/dist/Automate/CommandsAPI.d.ts +15 -0
- package/dist/Automate/CommandsAPI.d.ts.map +1 -0
- package/dist/Automate/CommandsAPI.js +31 -0
- package/dist/Automate/CommandsAPI.js.map +1 -0
- package/dist/Automate/ComputersAPI.d.ts +94 -0
- package/dist/Automate/ComputersAPI.d.ts.map +1 -0
- package/dist/Automate/ComputersAPI.js +353 -0
- package/dist/Automate/ComputersAPI.js.map +1 -0
- package/dist/Automate/ContactsAPI.d.ts +18 -0
- package/dist/Automate/ContactsAPI.d.ts.map +1 -0
- package/dist/Automate/ContactsAPI.js +45 -0
- package/dist/Automate/ContactsAPI.js.map +1 -0
- package/dist/Automate/DataViewsAPI.d.ts +16 -0
- package/dist/Automate/DataViewsAPI.d.ts.map +1 -0
- package/dist/Automate/DataViewsAPI.js +31 -0
- package/dist/Automate/DataViewsAPI.js.map +1 -0
- package/dist/Automate/DrivesAPI.d.ts +19 -0
- package/dist/Automate/DrivesAPI.d.ts.map +1 -0
- package/dist/Automate/DrivesAPI.js +52 -0
- package/dist/Automate/DrivesAPI.js.map +1 -0
- package/dist/Automate/EventLogsAPI.d.ts +14 -0
- package/dist/Automate/EventLogsAPI.d.ts.map +1 -0
- package/dist/Automate/EventLogsAPI.js +24 -0
- package/dist/Automate/EventLogsAPI.js.map +1 -0
- package/dist/Automate/LocationsAPI.d.ts +42 -0
- package/dist/Automate/LocationsAPI.d.ts.map +1 -0
- package/dist/Automate/LocationsAPI.js +133 -0
- package/dist/Automate/LocationsAPI.js.map +1 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts +14 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts.map +1 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.js +24 -0
- package/dist/Automate/MaintenanceWindowDefinitionsAPI.js.map +1 -0
- package/dist/Automate/MonitorsAPI.d.ts +23 -0
- package/dist/Automate/MonitorsAPI.d.ts.map +1 -0
- package/dist/Automate/MonitorsAPI.js +80 -0
- package/dist/Automate/MonitorsAPI.js.map +1 -0
- package/dist/Automate/NetworkDevicesAPI.d.ts +17 -0
- package/dist/Automate/NetworkDevicesAPI.d.ts.map +1 -0
- package/dist/Automate/NetworkDevicesAPI.js +38 -0
- package/dist/Automate/NetworkDevicesAPI.js.map +1 -0
- package/dist/Automate/PatchingAPI.d.ts +27 -0
- package/dist/Automate/PatchingAPI.d.ts.map +1 -0
- package/dist/Automate/PatchingAPI.js +94 -0
- package/dist/Automate/PatchingAPI.js.map +1 -0
- package/dist/Automate/RemoteAgentAPI.d.ts +18 -0
- package/dist/Automate/RemoteAgentAPI.d.ts.map +1 -0
- package/dist/Automate/RemoteAgentAPI.js +45 -0
- package/dist/Automate/RemoteAgentAPI.js.map +1 -0
- package/dist/Automate/ScriptingAPI.d.ts +32 -0
- package/dist/Automate/ScriptingAPI.d.ts.map +1 -0
- package/dist/Automate/ScriptingAPI.js +104 -0
- package/dist/Automate/ScriptingAPI.js.map +1 -0
- package/dist/Automate/SearchesAPI.d.ts +17 -0
- package/dist/Automate/SearchesAPI.d.ts.map +1 -0
- package/dist/Automate/SearchesAPI.js +38 -0
- package/dist/Automate/SearchesAPI.js.map +1 -0
- package/dist/Automate/SystemAPI.d.ts +72 -0
- package/dist/Automate/SystemAPI.d.ts.map +1 -0
- package/dist/Automate/SystemAPI.js +268 -0
- package/dist/Automate/SystemAPI.js.map +1 -0
- package/dist/Automate/TicketsAPI.d.ts +10 -0
- package/dist/Automate/TicketsAPI.d.ts.map +1 -0
- package/dist/Automate/TicketsAPI.js +24 -0
- package/dist/Automate/TicketsAPI.js.map +1 -0
- package/dist/Automate/UserProfilesAPI.d.ts +14 -0
- package/dist/Automate/UserProfilesAPI.d.ts.map +1 -0
- package/dist/Automate/UserProfilesAPI.js +23 -0
- package/dist/Automate/UserProfilesAPI.js.map +1 -0
- package/dist/Automate.d.ts +48 -0
- package/dist/Automate.d.ts.map +1 -0
- package/dist/Automate.js +167 -0
- package/dist/Automate.js.map +1 -0
- package/dist/AutomateAPI.d.ts +96 -0
- package/dist/AutomateAPI.d.ts.map +1 -0
- package/dist/AutomateAPI.js +168 -0
- package/dist/AutomateAPI.js.map +1 -0
- package/dist/AutomateTypes.d.ts +10437 -0
- package/dist/AutomateTypes.d.ts.map +1 -0
- package/dist/AutomateTypes.js +3 -0
- package/dist/AutomateTypes.js.map +1 -0
- package/dist/BaseAPI.d.ts +13 -0
- package/dist/BaseAPI.d.ts.map +1 -0
- package/dist/BaseAPI.js +53 -0
- package/dist/BaseAPI.js.map +1 -0
- package/dist/Manage/CompanyAPI.d.ts +573 -0
- package/dist/Manage/CompanyAPI.d.ts.map +1 -0
- package/dist/Manage/CompanyAPI.js +3294 -0
- package/dist/Manage/CompanyAPI.js.map +1 -0
- package/dist/Manage/ConfigurationsAPI.d.ts +24 -0
- package/dist/Manage/ConfigurationsAPI.d.ts.map +1 -0
- package/dist/Manage/ConfigurationsAPI.js +73 -0
- package/dist/Manage/ConfigurationsAPI.js.map +1 -0
- package/dist/Manage/ExpenseAPI.d.ts +68 -0
- package/dist/Manage/ExpenseAPI.d.ts.map +1 -0
- package/dist/Manage/ExpenseAPI.js +306 -0
- package/dist/Manage/ExpenseAPI.js.map +1 -0
- package/dist/Manage/FinanceAPI.d.ts +460 -0
- package/dist/Manage/FinanceAPI.d.ts.map +1 -0
- package/dist/Manage/FinanceAPI.js +2587 -0
- package/dist/Manage/FinanceAPI.js.map +1 -0
- package/dist/Manage/MarketingAPI.d.ts +120 -0
- package/dist/Manage/MarketingAPI.d.ts.map +1 -0
- package/dist/Manage/MarketingAPI.js +629 -0
- package/dist/Manage/MarketingAPI.js.map +1 -0
- package/dist/Manage/ProcurementAPI.d.ts +373 -0
- package/dist/Manage/ProcurementAPI.d.ts.map +1 -0
- package/dist/Manage/ProcurementAPI.js +2098 -0
- package/dist/Manage/ProcurementAPI.js.map +1 -0
- package/dist/Manage/ProjectAPI.d.ts +179 -0
- package/dist/Manage/ProjectAPI.d.ts.map +1 -0
- package/dist/Manage/ProjectAPI.js +940 -0
- package/dist/Manage/ProjectAPI.js.map +1 -0
- package/dist/Manage/SalesAPI.d.ts +254 -0
- package/dist/Manage/SalesAPI.d.ts.map +1 -0
- package/dist/Manage/SalesAPI.js +1392 -0
- package/dist/Manage/SalesAPI.js.map +1 -0
- package/dist/Manage/ScheduleAPI.d.ts +111 -0
- package/dist/Manage/ScheduleAPI.d.ts.map +1 -0
- package/dist/Manage/ScheduleAPI.js +575 -0
- package/dist/Manage/ScheduleAPI.js.map +1 -0
- package/dist/Manage/ServiceAPI.d.ts +419 -0
- package/dist/Manage/ServiceAPI.d.ts.map +1 -0
- package/dist/Manage/ServiceAPI.js +2334 -0
- package/dist/Manage/ServiceAPI.js.map +1 -0
- package/dist/Manage/SystemAPI.d.ts +809 -0
- package/dist/Manage/SystemAPI.d.ts.map +1 -0
- package/dist/Manage/SystemAPI.js +4531 -0
- package/dist/Manage/SystemAPI.js.map +1 -0
- package/dist/Manage/TimeAPI.d.ts +157 -0
- package/dist/Manage/TimeAPI.d.ts.map +1 -0
- package/dist/Manage/TimeAPI.js +835 -0
- package/dist/Manage/TimeAPI.js.map +1 -0
- package/dist/Manage.d.ts +34 -0
- package/dist/Manage.d.ts.map +1 -0
- package/dist/Manage.js +127 -0
- package/dist/Manage.js.map +1 -0
- package/dist/ManageAPI.d.ts +99 -0
- package/dist/ManageAPI.d.ts.map +1 -0
- package/dist/ManageAPI.js +112 -0
- package/dist/ManageAPI.js.map +1 -0
- package/dist/ManageTypes.d.ts +91320 -0
- package/dist/ManageTypes.d.ts.map +1 -0
- package/dist/ManageTypes.js +7 -0
- package/dist/ManageTypes.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +46 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +21 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/Callback.d.ts +67 -0
- package/dist/utils/Callback.d.ts.map +1 -0
- package/dist/utils/Callback.js +109 -0
- package/dist/utils/Callback.js.map +1 -0
- package/dist/utils/Series.d.ts +36 -0
- package/dist/utils/Series.d.ts.map +1 -0
- package/dist/utils/Series.js +64 -0
- package/dist/utils/Series.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +11 -0
- package/dist/utils/index.js.map +1 -0
- package/generator/automate-generator.js +75 -0
- package/generator/automate-json.js +61 -0
- package/generator/automate-types.js +15 -0
- package/generator/generator.d.ts +67 -0
- package/generator/generator.js +255 -0
- package/generator/manage-generator.js +71 -0
- package/generator/manage-types.js +14 -0
- package/package.json +48 -21
- package/src/Automate/AVTemplatePoliciesAPI.ts +114 -0
- package/src/Automate/ClientsAPI.ts +161 -0
- package/src/Automate/CommandsAPI.ts +33 -0
- package/src/Automate/ComputersAPI.ts +550 -0
- package/src/Automate/ContactsAPI.ts +56 -0
- package/src/Automate/DataViewsAPI.ts +36 -0
- package/src/Automate/DrivesAPI.ts +74 -0
- package/src/Automate/EventLogsAPI.ts +25 -0
- package/src/Automate/LocationsAPI.ts +206 -0
- package/src/Automate/MaintenanceWindowDefinitionsAPI.ts +28 -0
- package/src/Automate/MonitorsAPI.ts +94 -0
- package/src/Automate/NetworkDevicesAPI.ts +44 -0
- package/src/Automate/PatchingAPI.ts +109 -0
- package/src/Automate/RemoteAgentAPI.ts +58 -0
- package/src/Automate/ScriptingAPI.ts +137 -0
- package/src/Automate/SearchesAPI.ts +42 -0
- package/src/Automate/SystemAPI.ts +386 -0
- package/src/Automate/TicketsAPI.ts +24 -0
- package/src/Automate/UserProfilesAPI.ts +25 -0
- package/src/Automate.ts +216 -0
- package/src/AutomateAPI.ts +144 -0
- package/src/AutomateTypes.ts +10492 -0
- package/src/BaseAPI.ts +83 -0
- package/src/Manage/CompanyAPI.ts +4851 -0
- package/src/Manage/ConfigurationsAPI.ts +107 -0
- package/src/Manage/ExpenseAPI.ts +395 -0
- package/src/Manage/FinanceAPI.ts +3851 -0
- package/src/Manage/MarketingAPI.ts +935 -0
- package/src/Manage/ProcurementAPI.ts +3044 -0
- package/src/Manage/ProjectAPI.ts +1400 -0
- package/src/Manage/SalesAPI.ts +1922 -0
- package/src/Manage/ScheduleAPI.ts +751 -0
- package/src/Manage/ServiceAPI.ts +3401 -0
- package/src/Manage/SystemAPI.ts +6269 -0
- package/src/Manage/TimeAPI.ts +1121 -0
- package/src/Manage.ts +152 -0
- package/src/ManageAPI.ts +133 -0
- package/src/ManageTypes.ts +91318 -0
- package/src/index.ts +18 -0
- package/src/types.ts +66 -0
- package/src/utils/Callback.ts +145 -0
- package/src/utils/Series.ts +83 -0
- package/src/utils/index.ts +7 -0
- package/swagger-errors.md +30 -0
- package/test/.env.example +12 -4
- package/test/test-utils.ts +27 -0
- package/test/test.ts +320 -0
- package/tsconfig.json +29 -0
- package/doc.md +0 -5984
- package/docs/jsdoc.json +0 -15
- package/index.js +0 -10
- package/src/CompanyAPI/Companies.js +0 -149
- package/src/CompanyAPI/CompanyCompanyTypeAssociations.js +0 -111
- package/src/CompanyAPI/CompanySites.js +0 -70
- package/src/CompanyAPI/CompanyTeams.js +0 -108
- package/src/CompanyAPI/CompanyTypeInfos.js +0 -58
- package/src/CompanyAPI/CompanyTypes.js +0 -52
- package/src/CompanyAPI/Configurations.js +0 -152
- package/src/CompanyAPI/ContactContactTypeAssociations.js +0 -55
- package/src/CompanyAPI/ContactRelationships.js +0 -36
- package/src/CompanyAPI/Contacts.js +0 -199
- package/src/CompanyAPI/index.js +0 -53
- package/src/ConnectWise.js +0 -339
- package/src/ConnectWiseRest.js +0 -512
- package/src/FinanceAPI/Additions.js +0 -127
- package/src/FinanceAPI/Adjustments.js +0 -109
- package/src/FinanceAPI/AgreementSites.js +0 -108
- package/src/FinanceAPI/Agreements.js +0 -220
- package/src/FinanceAPI/BoardDefaults.js +0 -109
- package/src/FinanceAPI/WorkRoles.js +0 -113
- package/src/FinanceAPI/WorkTypeExclusions.js +0 -78
- package/src/FinanceAPI/WorkTypes.js +0 -124
- package/src/FinanceAPI/index.js +0 -50
- package/src/ProjectAPI/Projects.js +0 -142
- package/src/ProjectAPI/index.js +0 -28
- package/src/SalesAPI/Activities.js +0 -149
- package/src/SalesAPI/index.js +0 -14
- package/src/ScheduleAPI/ScheduleEntries.js +0 -109
- package/src/ScheduleAPI/ScheduleTypes.js +0 -101
- package/src/ScheduleAPI/index.js +0 -30
- package/src/ServiceDeskAPI/BoardItems.js +0 -134
- package/src/ServiceDeskAPI/BoardSubTypes.js +0 -112
- package/src/ServiceDeskAPI/BoardTeams.js +0 -108
- package/src/ServiceDeskAPI/BoardTypes.js +0 -139
- package/src/ServiceDeskAPI/Boards.js +0 -100
- package/src/ServiceDeskAPI/Priorities.js +0 -47
- package/src/ServiceDeskAPI/ServiceNotes.js +0 -172
- package/src/ServiceDeskAPI/Statuses.js +0 -116
- package/src/ServiceDeskAPI/Tickets.js +0 -588
- package/src/ServiceDeskAPI/index.js +0 -53
- package/src/SystemAPI/Members.js +0 -139
- package/src/SystemAPI/Reports.js +0 -116
- package/src/SystemAPI/index.js +0 -32
- package/src/TimeAPI/TimeEntries.js +0 -121
- package/src/TimeAPI/index.js +0 -27
- package/src/utils/Callback.js +0 -125
- package/src/utils/Series.js +0 -64
- package/src/utils/index.js +0 -21
- package/test/test.js +0 -114
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
/* This file was auto-generated, do not manually edit. */
|
|
2
|
+
import Automate from '../Automate'
|
|
3
|
+
import { components } from '../AutomateTypes'
|
|
4
|
+
import { CommonParameters, CWAOptions } from '../AutomateAPI'
|
|
5
|
+
import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
|
|
6
|
+
type schemas = components['schemas']
|
|
7
|
+
type requestBodies = components['requestBodies']
|
|
8
|
+
export type AutomateApiDomainContractsPatchingComputerPatchingStats =
|
|
9
|
+
schemas['Automate.Api.Domain.Contracts.Patching.ComputerPatchingStats']
|
|
10
|
+
export type LabTechModelsCommandExecute = schemas['LabTech.Models.CommandExecute']
|
|
11
|
+
export type LabTechModelsCommandHistory = schemas['LabTech.Models.CommandHistory']
|
|
12
|
+
export type LabTechModelsComputer = schemas['LabTech.Models.Computer']
|
|
13
|
+
export type LabTechModelsComputerBios = schemas['LabTech.Models.ComputerBios']
|
|
14
|
+
export type LabTechModelsComputerChassis = schemas['LabTech.Models.ComputerChassis']
|
|
15
|
+
export type LabTechModelsComputerDevice = schemas['LabTech.Models.ComputerDevice']
|
|
16
|
+
export type LabTechModelsComputerDrive = schemas['LabTech.Models.ComputerDrive']
|
|
17
|
+
export type LabTechModelsComputerEffectivePatchingPolicy =
|
|
18
|
+
schemas['LabTech.Models.ComputerEffectivePatchingPolicy']
|
|
19
|
+
export type LabTechModelsComputerMemorySlot = schemas['LabTech.Models.ComputerMemorySlot']
|
|
20
|
+
export type LabTechModelsComputerMenu = schemas['LabTech.Models.ComputerMenu']
|
|
21
|
+
export type LabTechModelsComputerOperatingSystem = schemas['LabTech.Models.ComputerOperatingSystem']
|
|
22
|
+
export type LabTechModelsComputerPatchingPolicy = schemas['LabTech.Models.ComputerPatchingPolicy']
|
|
23
|
+
export type LabTechModelsComputerPrinter = schemas['LabTech.Models.ComputerPrinter']
|
|
24
|
+
export type LabTechModelsComputerProcessor = schemas['LabTech.Models.ComputerProcessor']
|
|
25
|
+
export type LabTechModelsComputerRunningScript = schemas['LabTech.Models.ComputerRunningScript']
|
|
26
|
+
export type LabTechModelsComputerScheduledTask = schemas['LabTech.Models.ComputerScheduledTask']
|
|
27
|
+
export type LabTechModelsComputerScriptHistory = schemas['LabTech.Models.ComputerScriptHistory']
|
|
28
|
+
export type LabTechModelsComputerSensor = schemas['LabTech.Models.ComputerSensor']
|
|
29
|
+
export type LabTechModelsComputerService = schemas['LabTech.Models.ComputerService']
|
|
30
|
+
export type LabTechModelsComputerSoftware = schemas['LabTech.Models.ComputerSoftware']
|
|
31
|
+
export type LabTechModelsComputerSystemSlot = schemas['LabTech.Models.ComputerSystemSlot']
|
|
32
|
+
export type LabTechModelsComputerUps = schemas['LabTech.Models.ComputerUps']
|
|
33
|
+
export type LabTechModelsComputerVideoCard = schemas['LabTech.Models.ComputerVideoCard']
|
|
34
|
+
export type LabTechModelsMaintenanceMode = schemas['LabTech.Models.MaintenanceMode']
|
|
35
|
+
export type LabTechModelsRetiredAsset = schemas['LabTech.Models.RetiredAsset']
|
|
36
|
+
export type LabTechModelsScheduledScript = schemas['LabTech.Models.ScheduledScript']
|
|
37
|
+
export type LabTechModelsServiceClassification = schemas['LabTech.Models.ServiceClassification']
|
|
38
|
+
export type LabTechModelsSmartData = schemas['LabTech.Models.SmartData']
|
|
39
|
+
export type LabTechModelsVirusScannerDef = schemas['LabTech.Models.VirusScannerDef']
|
|
40
|
+
export type LabTechRESTApiRpcContractsSoftwareUninstallInfo =
|
|
41
|
+
schemas['LabTech.RESTApi.RpcContracts.SoftwareUninstallInfo']
|
|
42
|
+
export type LabTechRepositoriesMySQLDomainModelsAlertingMonitorAlertSuspension =
|
|
43
|
+
schemas['LabTech.Repositories.MySQL.Domain.Models.Alerting.MonitorAlertSuspension']
|
|
44
|
+
export type LabTechRepositoriesMySQLDomainModelsComputerDriver =
|
|
45
|
+
schemas['LabTech.Repositories.MySQL.Domain.Models.ComputerDriver']
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export default class ComputersAPI extends Automate {
|
|
51
|
+
constructor(props: CWAOptions) {
|
|
52
|
+
super(props)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
getComputerMenuList(params: CommonParameters = {}): Promise<Array<LabTechModelsComputerMenu>> {
|
|
56
|
+
return this.request({
|
|
57
|
+
path: `/api/v1/ComputerMenus`,
|
|
58
|
+
method: 'get',
|
|
59
|
+
params,
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
postComputerMenu(ComputerMenu: LabTechModelsComputerMenu): Promise<LabTechModelsComputerMenu> {
|
|
64
|
+
return this.request({
|
|
65
|
+
path: `/api/v1/ComputerMenus`,
|
|
66
|
+
method: 'post',
|
|
67
|
+
data: ComputerMenu,
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
getComputerList(params: CommonParameters = {}): Promise<Array<LabTechModelsComputer>> {
|
|
72
|
+
return this.request({
|
|
73
|
+
path: `/api/v1/Computers`,
|
|
74
|
+
method: 'get',
|
|
75
|
+
params,
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
getComputerAlerts(computerId: number, params: CommonParameters = {}): Promise<object> {
|
|
80
|
+
return this.request({
|
|
81
|
+
path: `/api/v1/Computers/${computerId}/Alerts`,
|
|
82
|
+
method: 'get',
|
|
83
|
+
params,
|
|
84
|
+
})
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
getMaintenanceAlertSuspensionList(
|
|
88
|
+
computerId: number,
|
|
89
|
+
params: CommonParameters = {},
|
|
90
|
+
): Promise<object> {
|
|
91
|
+
return this.request({
|
|
92
|
+
path: `/api/v1/Computers/${computerId}/AlertSuspensions/MaintenanceWindow`,
|
|
93
|
+
method: 'get',
|
|
94
|
+
params,
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
getTemplateAlertSuspensionList(
|
|
99
|
+
computerId: number,
|
|
100
|
+
params: CommonParameters = {},
|
|
101
|
+
): Promise<object> {
|
|
102
|
+
return this.request({
|
|
103
|
+
path: `/api/v1/Computers/${computerId}/AlertSuspensions/TemplateDiversion`,
|
|
104
|
+
method: 'get',
|
|
105
|
+
params,
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
getComputerBios(
|
|
110
|
+
computerId: number,
|
|
111
|
+
params: CommonParameters = {},
|
|
112
|
+
): Promise<LabTechModelsComputerBios> {
|
|
113
|
+
return this.request({
|
|
114
|
+
path: `/api/v1/Computers/${computerId}/bios`,
|
|
115
|
+
method: 'get',
|
|
116
|
+
params,
|
|
117
|
+
})
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
getCommandExecuteList(
|
|
121
|
+
computerId: number,
|
|
122
|
+
params: CommonParameters = {},
|
|
123
|
+
): Promise<Array<LabTechModelsCommandExecute>> {
|
|
124
|
+
return this.request({
|
|
125
|
+
path: `/api/v1/Computers/${computerId}/CommandExecute`,
|
|
126
|
+
method: 'get',
|
|
127
|
+
params,
|
|
128
|
+
})
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
postCommandExecute(
|
|
132
|
+
computerId: number,
|
|
133
|
+
CommandExecute: LabTechModelsCommandExecute,
|
|
134
|
+
): Promise<LabTechModelsCommandExecute> {
|
|
135
|
+
return this.request({
|
|
136
|
+
path: `/api/v1/Computers/${computerId}/CommandExecute`,
|
|
137
|
+
method: 'post',
|
|
138
|
+
data: CommandExecute,
|
|
139
|
+
})
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
getCommandHistoryList(
|
|
143
|
+
computerId: number,
|
|
144
|
+
params: CommonParameters = {},
|
|
145
|
+
): Promise<Array<LabTechModelsCommandHistory>> {
|
|
146
|
+
return this.request({
|
|
147
|
+
path: `/api/v1/Computers/${computerId}/CommandHistory`,
|
|
148
|
+
method: 'get',
|
|
149
|
+
params,
|
|
150
|
+
})
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
getComputerPatchingPolicyListAsync(
|
|
154
|
+
computerId: number,
|
|
155
|
+
params: CommonParameters = {},
|
|
156
|
+
): Promise<Array<LabTechModelsComputerPatchingPolicy>> {
|
|
157
|
+
return this.request({
|
|
158
|
+
path: `/api/v1/Computers/${computerId}/ComputerPatchingPolicies`,
|
|
159
|
+
method: 'get',
|
|
160
|
+
params,
|
|
161
|
+
})
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
getComputerDeviceList(
|
|
165
|
+
computerId: number,
|
|
166
|
+
params: CommonParameters = {},
|
|
167
|
+
): Promise<Array<LabTechModelsComputerDevice>> {
|
|
168
|
+
return this.request({
|
|
169
|
+
path: `/api/v1/Computers/${computerId}/Devices`,
|
|
170
|
+
method: 'get',
|
|
171
|
+
params,
|
|
172
|
+
})
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
getComputerDrivers(
|
|
176
|
+
computerId: number,
|
|
177
|
+
params: CommonParameters = {},
|
|
178
|
+
): Promise<Array<LabTechRepositoriesMySQLDomainModelsComputerDriver>> {
|
|
179
|
+
return this.request({
|
|
180
|
+
path: `/api/v1/computers/${computerId}/drivers`,
|
|
181
|
+
method: 'get',
|
|
182
|
+
params,
|
|
183
|
+
})
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
getComputerDriveSmartDataList(
|
|
187
|
+
computerId: number,
|
|
188
|
+
driveId: number,
|
|
189
|
+
params: CommonParameters = {},
|
|
190
|
+
): Promise<Array<LabTechModelsSmartData>> {
|
|
191
|
+
return this.request({
|
|
192
|
+
path: `/api/v1/Computers/${computerId}/Drives/${driveId}/SmartData`,
|
|
193
|
+
method: 'get',
|
|
194
|
+
params,
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
getComputerEffectivePatchingPolicy(
|
|
199
|
+
computerId: number,
|
|
200
|
+
params: CommonParameters = {},
|
|
201
|
+
): Promise<LabTechModelsComputerEffectivePatchingPolicy> {
|
|
202
|
+
return this.request({
|
|
203
|
+
path: `/api/v1/Computers/${computerId}/EffectivePatchingPolicy`,
|
|
204
|
+
method: 'get',
|
|
205
|
+
params,
|
|
206
|
+
})
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
getComputerMicrosoftUpdateDataListAsync(
|
|
210
|
+
computerId: number,
|
|
211
|
+
params: CommonParameters = {},
|
|
212
|
+
): Promise<object> {
|
|
213
|
+
return this.request({
|
|
214
|
+
path: `/api/v1/Computers/${computerId}/MicrosoftUpdates`,
|
|
215
|
+
method: 'get',
|
|
216
|
+
params,
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
getMonitorAlertSuspensionList(
|
|
221
|
+
computerId: number,
|
|
222
|
+
params: CommonParameters = {},
|
|
223
|
+
): Promise<object> {
|
|
224
|
+
return this.request({
|
|
225
|
+
path: `/api/v1/Computers/${computerId}/MonitorAlertSuspensions`,
|
|
226
|
+
method: 'get',
|
|
227
|
+
params,
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
postSuspension(
|
|
232
|
+
computerId: number,
|
|
233
|
+
integer: number,
|
|
234
|
+
): Promise<LabTechRepositoriesMySQLDomainModelsAlertingMonitorAlertSuspension> {
|
|
235
|
+
return this.request({
|
|
236
|
+
path: `/api/v1/Computers/${computerId}/MonitorAlertSuspensions`,
|
|
237
|
+
method: 'post',
|
|
238
|
+
data: integer,
|
|
239
|
+
})
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
getComputerMonitorsList(computerId: number, params: CommonParameters = {}): Promise<object> {
|
|
243
|
+
return this.request({
|
|
244
|
+
path: `/api/v1/Computers/${computerId}/Monitors`,
|
|
245
|
+
method: 'get',
|
|
246
|
+
params,
|
|
247
|
+
})
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
getComputerOperatingSystem(
|
|
251
|
+
computerId: number,
|
|
252
|
+
params: CommonParameters = {},
|
|
253
|
+
): Promise<LabTechModelsComputerOperatingSystem> {
|
|
254
|
+
return this.request({
|
|
255
|
+
path: `/api/v1/Computers/${computerId}/OperatingSystem`,
|
|
256
|
+
method: 'get',
|
|
257
|
+
params,
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
getDevicePatchingStatisticsAsync(
|
|
262
|
+
computerId: number,
|
|
263
|
+
params: CommonParameters = {},
|
|
264
|
+
): Promise<AutomateApiDomainContractsPatchingComputerPatchingStats> {
|
|
265
|
+
return this.request({
|
|
266
|
+
path: `/api/v1/Computers/${computerId}/PatchingStats`,
|
|
267
|
+
method: 'get',
|
|
268
|
+
params,
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
getComputerPatchJobListAsync(computerId: number, params: CommonParameters = {}): Promise<object> {
|
|
273
|
+
return this.request({
|
|
274
|
+
path: `/api/v1/Computers/${computerId}/PatchJobs`,
|
|
275
|
+
method: 'get',
|
|
276
|
+
params,
|
|
277
|
+
})
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
getComputerPrintersList(
|
|
281
|
+
computerId: number,
|
|
282
|
+
params: CommonParameters = {},
|
|
283
|
+
): Promise<Array<LabTechModelsComputerPrinter>> {
|
|
284
|
+
return this.request({
|
|
285
|
+
path: `/api/v1/Computers/${computerId}/Printers`,
|
|
286
|
+
method: 'get',
|
|
287
|
+
params,
|
|
288
|
+
})
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
getComputerProcessorList(
|
|
292
|
+
computerId: number,
|
|
293
|
+
params: CommonParameters = {},
|
|
294
|
+
): Promise<Array<LabTechModelsComputerProcessor>> {
|
|
295
|
+
return this.request({
|
|
296
|
+
path: `/api/v1/Computers/${computerId}/Processors`,
|
|
297
|
+
method: 'get',
|
|
298
|
+
params,
|
|
299
|
+
})
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
getComputerRunningScripts(
|
|
303
|
+
computerId: number,
|
|
304
|
+
params: CommonParameters = {},
|
|
305
|
+
): Promise<Array<LabTechModelsComputerRunningScript>> {
|
|
306
|
+
return this.request({
|
|
307
|
+
path: `/api/v1/Computers/${computerId}/RunningScripts`,
|
|
308
|
+
method: 'get',
|
|
309
|
+
params,
|
|
310
|
+
})
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
getComputerScheduledScripts(
|
|
314
|
+
computerId: number,
|
|
315
|
+
params: CommonParameters = {},
|
|
316
|
+
): Promise<Array<LabTechModelsScheduledScript>> {
|
|
317
|
+
return this.request({
|
|
318
|
+
path: `/api/v1/Computers/${computerId}/ScheduledScripts`,
|
|
319
|
+
method: 'get',
|
|
320
|
+
params,
|
|
321
|
+
})
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
postComputerScheduledScript(
|
|
325
|
+
computerId: number,
|
|
326
|
+
ScheduledScript: LabTechModelsScheduledScript,
|
|
327
|
+
): Promise<LabTechModelsScheduledScript> {
|
|
328
|
+
return this.request({
|
|
329
|
+
path: `/api/v1/Computers/${computerId}/ScheduledScripts`,
|
|
330
|
+
method: 'post',
|
|
331
|
+
data: ScheduledScript,
|
|
332
|
+
})
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
getComputerScheduledScript(
|
|
336
|
+
computerId: number,
|
|
337
|
+
entityId: number,
|
|
338
|
+
params: CommonParameters = {},
|
|
339
|
+
): Promise<LabTechModelsScheduledScript> {
|
|
340
|
+
return this.request({
|
|
341
|
+
path: `/api/v1/Computers/${computerId}/ScheduledScripts/${entityId}`,
|
|
342
|
+
method: 'get',
|
|
343
|
+
params,
|
|
344
|
+
})
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
getScheduledTaskList(computerId: number, params: CommonParameters = {}): Promise<object> {
|
|
348
|
+
return this.request({
|
|
349
|
+
path: `/api/v1/Computers/${computerId}/ScheduledTasks`,
|
|
350
|
+
method: 'get',
|
|
351
|
+
params,
|
|
352
|
+
})
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
postScheduledTask(
|
|
356
|
+
computerId: number,
|
|
357
|
+
ComputerScheduledTask: LabTechModelsComputerScheduledTask,
|
|
358
|
+
): Promise<NoContentResponse> {
|
|
359
|
+
return this.request({
|
|
360
|
+
path: `/api/v1/Computers/${computerId}/ScheduledTasks`,
|
|
361
|
+
method: 'post',
|
|
362
|
+
data: ComputerScheduledTask,
|
|
363
|
+
})
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
getComputerScriptHistoryList(
|
|
367
|
+
computerId: number,
|
|
368
|
+
params: CommonParameters = {},
|
|
369
|
+
): Promise<Array<LabTechModelsComputerScriptHistory>> {
|
|
370
|
+
return this.request({
|
|
371
|
+
path: `/api/v1/Computers/${computerId}/ScriptHistory`,
|
|
372
|
+
method: 'get',
|
|
373
|
+
params,
|
|
374
|
+
})
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
getComputerSensorListAsync(
|
|
378
|
+
computerId: number,
|
|
379
|
+
params: CommonParameters = {},
|
|
380
|
+
): Promise<Array<LabTechModelsComputerSensor>> {
|
|
381
|
+
return this.request({
|
|
382
|
+
path: `/api/v1/Computers/${computerId}/Sensors`,
|
|
383
|
+
method: 'get',
|
|
384
|
+
params,
|
|
385
|
+
})
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
getComputerServiceList(
|
|
389
|
+
computerId: number,
|
|
390
|
+
params: CommonParameters = {},
|
|
391
|
+
): Promise<Array<LabTechModelsComputerService>> {
|
|
392
|
+
return this.request({
|
|
393
|
+
path: `/api/v1/Computers/${computerId}/Services`,
|
|
394
|
+
method: 'get',
|
|
395
|
+
params,
|
|
396
|
+
})
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
getComputerSoftwareList(
|
|
400
|
+
computerId: number,
|
|
401
|
+
params: CommonParameters = {},
|
|
402
|
+
): Promise<Array<LabTechModelsComputerSoftware>> {
|
|
403
|
+
return this.request({
|
|
404
|
+
path: `/api/v1/Computers/${computerId}/Software`,
|
|
405
|
+
method: 'get',
|
|
406
|
+
params,
|
|
407
|
+
})
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
uninstallSoftware(
|
|
411
|
+
computerId: number,
|
|
412
|
+
softwareId: number,
|
|
413
|
+
SoftwareUninstallInfo: LabTechRESTApiRpcContractsSoftwareUninstallInfo,
|
|
414
|
+
): Promise<NoContentResponse> {
|
|
415
|
+
return this.request({
|
|
416
|
+
path: `/api/v1/computers/${computerId}/software/${softwareId}/uninstall`,
|
|
417
|
+
method: 'post',
|
|
418
|
+
data: SoftwareUninstallInfo,
|
|
419
|
+
})
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
getComputerSystemSlotList(
|
|
423
|
+
computerId: number,
|
|
424
|
+
params: CommonParameters = {},
|
|
425
|
+
): Promise<Array<LabTechModelsComputerSystemSlot>> {
|
|
426
|
+
return this.request({
|
|
427
|
+
path: `/api/v1/Computers/${computerId}/SystemSlots`,
|
|
428
|
+
method: 'get',
|
|
429
|
+
params,
|
|
430
|
+
})
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
getComputerThirdPartyPatchListAsync(
|
|
434
|
+
computerId: number,
|
|
435
|
+
params: CommonParameters = {},
|
|
436
|
+
): Promise<object> {
|
|
437
|
+
return this.request({
|
|
438
|
+
path: `/api/v1/Computers/${computerId}/ThirdPartyPatches`,
|
|
439
|
+
method: 'get',
|
|
440
|
+
params,
|
|
441
|
+
})
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
getComputerUpsListAsync(
|
|
445
|
+
computerId: number,
|
|
446
|
+
params: CommonParameters = {},
|
|
447
|
+
): Promise<Array<LabTechModelsComputerUps>> {
|
|
448
|
+
return this.request({
|
|
449
|
+
path: `/api/v1/Computers/${computerId}/Ups`,
|
|
450
|
+
method: 'get',
|
|
451
|
+
params,
|
|
452
|
+
})
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
getComputerVideoCardList(
|
|
456
|
+
computerId: number,
|
|
457
|
+
params: CommonParameters = {},
|
|
458
|
+
): Promise<Array<LabTechModelsComputerVideoCard>> {
|
|
459
|
+
return this.request({
|
|
460
|
+
path: `/api/v1/Computers/${computerId}/VideoCards`,
|
|
461
|
+
method: 'get',
|
|
462
|
+
params,
|
|
463
|
+
})
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
getComputerChassis(params: CommonParameters = {}): Promise<Array<LabTechModelsComputerChassis>> {
|
|
467
|
+
return this.request({
|
|
468
|
+
path: `/api/v1/Computers/Chassis`,
|
|
469
|
+
method: 'get',
|
|
470
|
+
params,
|
|
471
|
+
})
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
getComputerDriveList(params: CommonParameters = {}): Promise<Array<LabTechModelsComputerDrive>> {
|
|
475
|
+
return this.request({
|
|
476
|
+
path: `/api/v1/Computers/Drives`,
|
|
477
|
+
method: 'get',
|
|
478
|
+
params,
|
|
479
|
+
})
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
getComputerMaintenanceModeList(
|
|
483
|
+
params: CommonParameters = {},
|
|
484
|
+
): Promise<Array<LabTechModelsMaintenanceMode>> {
|
|
485
|
+
return this.request({
|
|
486
|
+
path: `/api/v1/Computers/MaintenanceModes`,
|
|
487
|
+
method: 'get',
|
|
488
|
+
params,
|
|
489
|
+
})
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
getComputerMemorySlotList(
|
|
493
|
+
params: CommonParameters = {},
|
|
494
|
+
): Promise<Array<LabTechModelsComputerMemorySlot>> {
|
|
495
|
+
return this.request({
|
|
496
|
+
path: `/api/v1/Computers/MemorySlots`,
|
|
497
|
+
method: 'get',
|
|
498
|
+
params,
|
|
499
|
+
})
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
getComputersSoftwareList(
|
|
503
|
+
params: CommonParameters = {},
|
|
504
|
+
): Promise<Array<LabTechModelsComputerSoftware>> {
|
|
505
|
+
return this.request({
|
|
506
|
+
path: `/api/v1/Computers/Software`,
|
|
507
|
+
method: 'get',
|
|
508
|
+
params,
|
|
509
|
+
})
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
getRetiredAssetList(params: CommonParameters = {}): Promise<Array<LabTechModelsRetiredAsset>> {
|
|
513
|
+
return this.request({
|
|
514
|
+
path: `/api/v1/RetiredAssets`,
|
|
515
|
+
method: 'get',
|
|
516
|
+
params,
|
|
517
|
+
})
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
classifyService(
|
|
521
|
+
serviceId: number,
|
|
522
|
+
ServiceClassification: LabTechModelsServiceClassification,
|
|
523
|
+
): Promise<NoContentResponse> {
|
|
524
|
+
return this.request({
|
|
525
|
+
path: `/api/v1/services/${serviceId}/classify`,
|
|
526
|
+
method: 'post',
|
|
527
|
+
data: ServiceClassification,
|
|
528
|
+
})
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
getVirusScannerDefinitionList(
|
|
532
|
+
params: CommonParameters = {},
|
|
533
|
+
): Promise<Array<LabTechModelsVirusScannerDef>> {
|
|
534
|
+
return this.request({
|
|
535
|
+
path: `/api/v1/VirusScannerDefs`,
|
|
536
|
+
method: 'get',
|
|
537
|
+
params,
|
|
538
|
+
})
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
postVirusScannerDefinition(
|
|
542
|
+
VirusScannerDef: LabTechModelsVirusScannerDef,
|
|
543
|
+
): Promise<LabTechModelsVirusScannerDef> {
|
|
544
|
+
return this.request({
|
|
545
|
+
path: `/api/v1/VirusScannerDefs`,
|
|
546
|
+
method: 'post',
|
|
547
|
+
data: VirusScannerDef,
|
|
548
|
+
})
|
|
549
|
+
}
|
|
550
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* This file was auto-generated, do not manually edit. */
|
|
2
|
+
import Automate from '../Automate'
|
|
3
|
+
import { components } from '../AutomateTypes'
|
|
4
|
+
import { CommonParameters, CWAOptions } from '../AutomateAPI'
|
|
5
|
+
import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
|
|
6
|
+
type schemas = components['schemas']
|
|
7
|
+
type requestBodies = components['requestBodies']
|
|
8
|
+
export type AutomateApiDomainContractsClientsContact =
|
|
9
|
+
schemas['Automate.Api.Domain.Contracts.Clients.Contact']
|
|
10
|
+
export type LabTechModelsContact = schemas['LabTech.Models.Contact']
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export default class ContactsAPI extends Automate {
|
|
16
|
+
constructor(props: CWAOptions) {
|
|
17
|
+
super(props)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
getContactList(params: CommonParameters = {}): Promise<Array<LabTechModelsContact>> {
|
|
21
|
+
return this.request({
|
|
22
|
+
path: `/api/v1/Contacts`,
|
|
23
|
+
method: 'get',
|
|
24
|
+
params,
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
getSystemContactList(params: CommonParameters = {}): Promise<Array<LabTechModelsContact>> {
|
|
29
|
+
return this.request({
|
|
30
|
+
path: `/api/v1/SystemContacts`,
|
|
31
|
+
method: 'get',
|
|
32
|
+
params,
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getContactListV2(
|
|
37
|
+
params: CommonParameters = {},
|
|
38
|
+
): Promise<Array<AutomateApiDomainContractsClientsContact>> {
|
|
39
|
+
return this.request({
|
|
40
|
+
path: `/api/v2/Contacts`,
|
|
41
|
+
method: 'get',
|
|
42
|
+
params,
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
getContact(
|
|
47
|
+
contactId: number,
|
|
48
|
+
params: CommonParameters = {},
|
|
49
|
+
): Promise<AutomateApiDomainContractsClientsContact> {
|
|
50
|
+
return this.request({
|
|
51
|
+
path: `/api/v2/Contacts/${contactId}`,
|
|
52
|
+
method: 'get',
|
|
53
|
+
params,
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* This file was auto-generated, do not manually edit. */
|
|
2
|
+
import Automate from '../Automate'
|
|
3
|
+
import { components } from '../AutomateTypes'
|
|
4
|
+
import { CommonParameters, CWAOptions } from '../AutomateAPI'
|
|
5
|
+
import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
|
|
6
|
+
type schemas = components['schemas']
|
|
7
|
+
type requestBodies = components['requestBodies']
|
|
8
|
+
export type LabTechModelsDataView = schemas['LabTech.Models.DataView']
|
|
9
|
+
export type LabTechModelsDataViewFolder = schemas['LabTech.Models.DataViewFolder']
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export default class DataViewsAPI extends Automate {
|
|
15
|
+
constructor(props: CWAOptions) {
|
|
16
|
+
super(props)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
getDataViewFolderList(
|
|
20
|
+
params: CommonParameters = {},
|
|
21
|
+
): Promise<Array<LabTechModelsDataViewFolder>> {
|
|
22
|
+
return this.request({
|
|
23
|
+
path: `/api/v1/DataViewFolders`,
|
|
24
|
+
method: 'get',
|
|
25
|
+
params,
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
getDataViewList(params: CommonParameters = {}): Promise<Array<LabTechModelsDataView>> {
|
|
30
|
+
return this.request({
|
|
31
|
+
path: `/api/v1/DataViews`,
|
|
32
|
+
method: 'get',
|
|
33
|
+
params,
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
}
|