Skip to content

Commit

Permalink
refactor(modules): moved module class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed Jun 3, 2020
1 parent 1a44c52 commit 2594388
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/reference/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
4 changes: 2 additions & 2 deletions src/modules/index.ts → src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* ---
*/
import qs from "qs";
import { Client } from "../client";
import { FunctionResponse } from "../functions";
import { Client } from "./client";
import { FunctionResponse } from "./functions";

/**
* Attempts to handle a JSON body returned by a call to Moodle's Web Services API.
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/email/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* title: auth.email
* ---
*/
import Module from "../..";
import Module from "../../../module";
import { SignUpSettingsResponse } from "./sign-up-settings";
import { SignUpUser, SignUpUserResponse } from "./sign-up-user";

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

Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* title: core
* ---
*/
import Module from "..";
import Module from "../../module";
import WebServiceModule from "./webservice";
import UserModule from "./user";
import RoleModule from "./role";
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/role/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* title: core.role
* ---
*/
import Module from "../..";
import Module from "../../../module";
import { FunctionResponse } from "../../../functions";

interface RoleAssignment {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* title: core.user
* ---
*/
import Module from "../..";
import Module from "../../../module";
import { FunctionResponse } from "../../../functions";
import { SitePolicyAgreementResponse } from "./agree-site-policy";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/webservice/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* title: core.webservice
* ---
*/
import Module from "../..";
import Module from "../../../module";
import { SiteInfoResponse } from "./get-site-info";

/**
Expand Down

0 comments on commit 2594388

Please sign in to comment.