Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Fix imports after moving files
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Mar 6, 2020
1 parent 12fa4f5 commit e693d4c
Show file tree
Hide file tree
Showing 22 changed files with 69 additions and 69 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@staart/api",
"version": "1.3.137",
"version": "1.3.138",
"main": "index.js",
"repository": "[email protected]:staart/api.git",
"author": "Anand Chowdhary <[email protected]>",
Expand Down Expand Up @@ -90,5 +90,5 @@
"setup"
],
"snyk": true,
"staart-version": "1.3.137"
"staart-version": "1.3.138"
}
4 changes: 2 additions & 2 deletions src/controllers/admin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
Request,
Response
} from "@staart/server";
import { authHandler } from "../../../helpers/middleware";
import { authHandler } from "../../helpers/middleware";
import {
getAllOrganizationForUser,
getAllUsersForUser,
getServerLogsForUser
} from "../../../rest/admin";
} from "../../rest/admin";

@Controller("admin")
@ClassMiddleware(authHandler)
Expand Down
10 changes: 5 additions & 5 deletions src/controllers/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { verifyToken } from "../../../helpers/jwt";
import { verifyToken } from "../../helpers/jwt";
import {
authHandler,
bruteForceHandler,
validator
} from "../../../helpers/middleware";
import { UserRole } from "../../../interfaces/enum";
} from "../../helpers/middleware";
import { UserRole } from "../../interfaces/enum";
import {
approveLocation,
impersonate,
Expand All @@ -32,9 +32,9 @@ import {
updatePassword,
validateRefreshToken,
verifyEmail
} from "../../../rest/auth";
} from "../../rest/auth";
import { AuthOAuthController } from "./oauth";
import { addInvitationCredits } from "../../../rest/user";
import { addInvitationCredits } from "../../rest/user";

@Controller("auth")
@ChildControllers([new AuthOAuthController()])
Expand Down
10 changes: 5 additions & 5 deletions src/controllers/auth/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import {
Wrapper
} from "@staart/server";
import { stringify } from "querystring";
import { BASE_URL, FRONTEND_URL } from "../../../config";
import { LoginResponse } from "../../../helpers/jwt";
import { safeRedirect } from "../../../helpers/utils";
import { Tokens } from "../../../interfaces/enum";
import { BASE_URL, FRONTEND_URL } from "../../config";
import { LoginResponse } from "../../helpers/jwt";
import { safeRedirect } from "../../helpers/utils";
import { Tokens } from "../../interfaces/enum";
import {
facebook,
github,
google,
microsoft,
salesforce
} from "../../../rest/oauth";
} from "../../rest/oauth";

const OAuthRedirector = (action: RequestHandler) => (
...args: [Request, Response, NextFunction]
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/api-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { authHandler, validator } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
createApiKeyForUser,
deleteApiKeyForUser,
getOrganizationApiKeyForUser,
getOrganizationApiKeyLogsForUser,
getOrganizationApiKeysForUser,
updateApiKeyForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/api-keys")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { authHandler } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
getOrganizationBillingForUser,
getOrganizationPricingPlansForUser,
updateOrganizationBillingForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/domains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { authHandler, validator } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
createDomainForUser,
deleteDomainForUser,
getOrganizationDomainForUser,
getOrganizationDomainsForUser,
updateDomainForUser,
verifyDomainForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/domains")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { authHandler, validator } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
deleteOrganizationForUser,
getAllOrganizationDataForUser,
getOrganizationForUser,
newOrganizationForUser,
updateOrganizationForUser
} from "../../../rest/organization";
} from "../../rest/organization";
import { OrganizationApiKeysController } from "./api-keys";
import { OrganizationBillingController } from "./billing";
import { OrganizationDomainsController } from "./domains";
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { authHandler } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
getOrganizationInvoiceForUser,
getOrganizationInvoicesForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/invoices")
@ClassMiddleware(authHandler)
Expand Down
8 changes: 4 additions & 4 deletions src/controllers/organization/memberships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { authHandler, validator } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
import { MembershipRole } from "../../../interfaces/enum";
} from "../../helpers/utils";
import { MembershipRole } from "../../interfaces/enum";
import {
deleteOrganizationMembershipForUser,
getOrganizationMembershipForUser,
getOrganizationMembershipsForUser,
inviteMemberToOrganization,
updateOrganizationMembershipForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/memberships")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { authHandler } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
createOrganizationSourceForUser,
deleteOrganizationSourceForUser,
getOrganizationSourceForUser,
getOrganizationSourcesForUser,
updateOrganizationSourceForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/sources")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { authHandler } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
createOrganizationSubscriptionForUser,
getOrganizationSubscriptionForUser,
getOrganizationSubscriptionsForUser,
updateOrganizationSubscriptionForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/subscriptions")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import {
Put
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { authHandler } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
getOrganizationTransactionForUser,
getOrganizationTransactionsForUser,
applyCouponToOrganizationForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/transactions")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/organization/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { authHandler, validator } from "../../helpers/middleware";
import {
localsToTokenOrKey,
organizationUsernameToId
} from "../../../helpers/utils";
} from "../../helpers/utils";
import {
createWebhookForUser,
deleteWebhookForUser,
getOrganizationWebhookForUser,
getOrganizationWebhooksForUser,
updateWebhookForUser
} from "../../../rest/organization";
} from "../../rest/organization";

@Controller(":id/webhooks")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/user/access-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { userUsernameToId } from "../../../helpers/utils";
import { authHandler, validator } from "../../helpers/middleware";
import { userUsernameToId } from "../../helpers/utils";
import {
createAccessTokenForUser,
deleteAccessTokenForUser,
getUserAccessTokenForUser,
getUserAccessTokensForUser,
updateAccessTokenForUser
} from "../../../rest/user";
} from "../../rest/user";

@Controller(":id/access-tokens")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/user/emails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { userUsernameToId } from "../../../helpers/utils";
import { authHandler } from "../../helpers/middleware";
import { userUsernameToId } from "../../helpers/utils";
import {
addEmailToUserForUser,
deleteEmailFromUserForUser,
getAllEmailsForUser,
getEmailForUser,
resendEmailVerificationForUser
} from "../../../rest/email";
} from "../../rest/email";

@Controller(":id/emails")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/user/identities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { userUsernameToId } from "../../../helpers/utils";
import { authHandler } from "../../helpers/middleware";
import { userUsernameToId } from "../../helpers/utils";
import {
connectUserIdentityForUser,
createUserIdentityForUser,
deleteIdentityForUser,
getUserIdentitiesForUser,
getUserIdentityForUser
} from "../../../rest/user";
} from "../../rest/user";

@Controller(":id/identities")
@ClassMiddleware(authHandler)
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler, validator } from "../../../helpers/middleware";
import { userUsernameToId } from "../../../helpers/utils";
import { authHandler, validator } from "../../helpers/middleware";
import { userUsernameToId } from "../../helpers/utils";
import {
deleteUserForUser,
getUserFromId,
updateUserForUser
} from "../../../rest/user";
} from "../../rest/user";
import { UserAccessTokensController } from "./access-tokens";
import { UserEmailsController } from "./emails";
import { UserIdentitiesController } from "./identities";
Expand Down
8 changes: 4 additions & 4 deletions src/controllers/user/memberships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import {
Response
} from "@staart/server";
import { Joi, joiValidate } from "@staart/validate";
import { authHandler } from "../../../helpers/middleware";
import { userUsernameToId } from "../../../helpers/utils";
import { authHandler } from "../../helpers/middleware";
import { userUsernameToId } from "../../helpers/utils";
import {
deleteMembershipForUser,
getMembershipDetailsForUser,
updateMembershipForUser
} from "../../../rest/membership";
import { getMembershipsForUser } from "../../../rest/user";
} from "../../rest/membership";
import { getMembershipsForUser } from "../../rest/user";

@Controller(":id/memberships")
@ClassMiddleware(authHandler)
Expand Down
Loading

0 comments on commit e693d4c

Please sign in to comment.