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