Skip to content

Commit

Permalink
refactor(modules): moved module class file into src/modules directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed May 21, 2020
1 parent 8c3d93b commit 47e1aa4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import WebServiceModule from "./modules/webservice";
// eslint-disable-next-line import/prefer-default-export
export class Joodle extends Client {
public auth: AuthModule;

public webService: WebServiceModule;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/email.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Module from "../../module";
import Module from "../";

export interface SignUpSettingsResponse {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Module from "../../module";
import Module from "../";
import AuthEmailModule from "./email";
import { Client } from "../../client";

Expand Down
2 changes: 1 addition & 1 deletion src/module.ts → src/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client } from "./client";
import { Client } from "../client";

/**
* Attempts to handle a JSON body returned by a call to Moodle's Web Services API.
Expand Down
6 changes: 3 additions & 3 deletions src/modules/webservice/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Module from "../../module";
import Module from "../";

interface WebServiceFunction {
/**
* The name of the Web Services API function.
*/
name: string;

/**
* The function's version string.
*/
Expand Down Expand Up @@ -53,7 +53,7 @@ export interface SiteInfoResponse {
* the API request.
*/
fullname: string;

/**
* The preferred language of the web service user
* making the API request.
Expand Down

0 comments on commit 47e1aa4

Please sign in to comment.