Skip to content

Commit

Permalink
Update docs, build script
Browse files Browse the repository at this point in the history
  • Loading branch information
k-grube committed Mar 29, 2022
1 parent cd4da87 commit bd50256
Show file tree
Hide file tree
Showing 40 changed files with 195 additions and 196 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {},
"ignorePatterns": [
"dist",
"src/AutomateTypes.js",
"src/ManageTypes.js"
]
],
"rules": {}
}
2 changes: 1 addition & 1 deletion generator/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ ${typeDefs.join('\n')}
* ${apiName} module
* @public
*/
export default class ${apiName}API extends ${generatorType} {
export class ${apiName}API extends ${generatorType} {
constructor(props: ${generatorType === 'Manage' ? 'CWMOptions' : 'CWAOptions'}) {
super(props)
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"generate:automate": "node generator/automate-generator.js",
"generate:manage": "node generator/manage-generator.js",
"generate": "npm run generate:automate & npm run generate:manage",
"prebuild": "npm run generate",
"build": "npx tsc",
"postbuild": "npm run lint",
"lint": "npx eslint -c .eslintrc --fix",
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/AVTemplatePoliciesAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type LabTechModelsTemplateProperty = schemas['LabTech.Models.TemplateProp
* AVTemplatePolicies module
* @public
*/
export default class AVTemplatePoliciesAPI extends Automate {
export class AVTemplatePoliciesAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/ClientsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type LabTechModelsProductKey = schemas['LabTech.Models.ProductKey']
* Clients module
* @public
*/
export default class ClientsAPI extends Automate {
export class ClientsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/CommandsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type LabTechModelsCommand = schemas['LabTech.Models.Command']
* Commands module
* @public
*/
export default class CommandsAPI extends Automate {
export class CommandsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/ComputersAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type LabTechRepositoriesMySQLDomainModelsComputerDriver =
* Computers module
* @public
*/
export default class ComputersAPI extends Automate {
export class ComputersAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/ContactsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type LabTechModelsContact = schemas['LabTech.Models.Contact']
* Contacts module
* @public
*/
export default class ContactsAPI extends Automate {
export class ContactsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/DataViewsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type LabTechModelsDataViewFolder = schemas['LabTech.Models.DataViewFolder
* DataViews module
* @public
*/
export default class DataViewsAPI extends Automate {
export class DataViewsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/DrivesAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type LabTechRepositoriesMySQLDomainModelsDriveStats =
* Drives module
* @public
*/
export default class DrivesAPI extends Automate {
export class DrivesAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/EventLogsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type LabTechModelsEventLog = schemas['LabTech.Models.EventLog']
* EventLogs module
* @public
*/
export default class EventLogsAPI extends Automate {
export class EventLogsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/LocationsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type LabTechRepositoriesMySQLDomainModelsProbeEventLevel =
* Locations module
* @public
*/
export default class LocationsAPI extends Automate {
export class LocationsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/MaintenanceWindowDefinitionsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type AutomateApiDomainContractsMaintenanceMaintenanceWindowDefinition =
* MaintenanceWindowDefinitions module
* @public
*/
export default class MaintenanceWindowDefinitionsAPI extends Automate {
export class MaintenanceWindowDefinitionsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/MonitorsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type LabTechRepositoriesMySQLDomainModelsMonitorDataCollectionSettings =
* Monitors module
* @public
*/
export default class MonitorsAPI extends Automate {
export class MonitorsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/NetworkDevicesAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type LabTechModelsRouter = schemas['LabTech.Models.Router']
* NetworkDevices module
* @public
*/
export default class NetworkDevicesAPI extends Automate {
export class NetworkDevicesAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/PatchingAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type LabTechModelsPatchActionArgs = requestBodies['LabTech.Models.PatchAc
* Patching module
* @public
*/
export default class PatchingAPI extends Automate {
export class PatchingAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/RemoteAgentAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type LabTechModelsRemoteAgentTemplate = schemas['LabTech.Models.RemoteAge
* RemoteAgent module
* @public
*/
export default class RemoteAgentAPI extends Automate {
export class RemoteAgentAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/ScriptingAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type LabTechRESTApiModelsPatchOperationArray =
* Scripting module
* @public
*/
export default class ScriptingAPI extends Automate {
export class ScriptingAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/SearchesAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type LabTechModelsSearchFolder = schemas['LabTech.Models.SearchFolder']
* Searches module
* @public
*/
export default class SearchesAPI extends Automate {
export class SearchesAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
6 changes: 3 additions & 3 deletions src/Automate/SystemAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,19 @@ export type LabTechRESTApiSecurityAuthServiceCredentials =
* System module
* @public
*/
export default class SystemAPI extends Automate {
export class SystemAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}

get(): Promise<AutomateApiDomainContractsSecurityAuthInformation> {
getAuthInformation(): Promise<AutomateApiDomainContractsSecurityAuthInformation> {
return this.request({
path: `/api/v1/APIToken`,
method: 'get',
})
}

post(
postToken(
TokenCredentials: AutomateApiDomainContractsSecurityTokenCredentials,
): Promise<AutomateApiDomainContractsSecurityTokenResult> {
return this.request({
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/TicketsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type requestBodies = components['requestBodies']
* Tickets module
* @public
*/
export default class TicketsAPI extends Automate {
export class TicketsAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Automate/UserProfilesAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type LabTechRepositoriesMySQLDomainModelsPresentationLayerUserProfile =
* UserProfiles module
* @public
*/
export default class UserProfilesAPI extends Automate {
export class UserProfilesAPI extends Automate {
constructor(props: CWAOptions) {
super(props)
}
Expand Down
Loading

0 comments on commit bd50256

Please sign in to comment.