From 480ab68c6d18b30f162fdf9c679018eb41bf8022 Mon Sep 17 00:00:00 2001 From: darraghoriordan-skedsocial <darragh@skedsocial.com> Date: Sat, 4 Jan 2025 12:14:48 +1100 Subject: [PATCH] feat: export BooleanResult --- src/index.ts | 2 +- .../organisation-memberships.controller.ts | 2 +- .../organisation-subscriptions.controller.ts | 2 +- src/organisation/organisation.controller.ts | 2 +- src/root-app/{models => dtos}/boolean-result.ts | 0 src/smtp-email-client/email.controller.ts | 2 +- src/user-api-key/user-apikey.controller.ts | 2 +- src/user/user.controller.ts | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename src/root-app/{models => dtos}/boolean-result.ts (100%) diff --git a/src/index.ts b/src/index.ts index 84a176f9..5694563d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,7 @@ export {SubActivationQueueModule} from "./organisation-subscriptions/sub-activat export type {RequestUser} from "./authorization/models/RequestWithUser.js"; export {SuperPowersModule} from "./super-powers/super-powers.module.js"; export {OrganisationModule} from "./organisation/organisation.module.js"; - +export {BooleanResult} from "./root-app/dtos/boolean-result.js"; // org subscriptions export {OrganisationMembershipsService} from "./organisation-memberships/organisation-memberships.service.js"; export {OrganisationMembershipsModule} from "./organisation-memberships/organisation-memberships.module.js"; diff --git a/src/organisation-memberships/organisation-memberships.controller.ts b/src/organisation-memberships/organisation-memberships.controller.ts index bda22d7f..52ed2483 100644 --- a/src/organisation-memberships/organisation-memberships.controller.ts +++ b/src/organisation-memberships/organisation-memberships.controller.ts @@ -15,7 +15,7 @@ import {OrganisationMembershipsService} from "./organisation-memberships.service import {Organisation} from "../organisation/entities/organisation.entity.js"; import {CreateUpdateMembershipDto} from "./dtos/create-membership-dto.js"; import {OrganisationMembership} from "./entities/organisation-membership.entity.js"; -import {BooleanResult} from "../root-app/models/boolean-result.js"; +import {BooleanResult} from "../root-app/dtos/boolean-result.js"; @UseGuards(AuthGuard("jwt")) @ApiBearerAuth() diff --git a/src/organisation-subscriptions/organisation-subscriptions.controller.ts b/src/organisation-subscriptions/organisation-subscriptions.controller.ts index 681d0e16..f81b106e 100644 --- a/src/organisation-subscriptions/organisation-subscriptions.controller.ts +++ b/src/organisation-subscriptions/organisation-subscriptions.controller.ts @@ -19,7 +19,7 @@ import {RequestWithUser} from "../authorization/models/RequestWithUser.js"; import {OrganisationSubscriptionRecord} from "./entities/organisation-subscription.entity.js"; import {OrganisationSubscriptionService} from "./organisation-subscriptions.service.js"; import {SaveOrganisationSubscriptionRecordDto} from "./models/fulfillSubscriptionDto.js"; -import {BooleanResult} from "../root-app/models/boolean-result.js"; +import {BooleanResult} from "../root-app/dtos/boolean-result.js"; import {MandatoryUserClaims} from "../authorization/guards/MandatoryUserClaims.decorator.js"; import {DefaultAuthGuard} from "../authorization/guards/DefaultAuthGuard.js"; import {ClaimsAuthorisationGuard} from "../authorization/guards/ClaimsAuthorisationGuard.js"; diff --git a/src/organisation/organisation.controller.ts b/src/organisation/organisation.controller.ts index 4048267a..50940091 100644 --- a/src/organisation/organisation.controller.ts +++ b/src/organisation/organisation.controller.ts @@ -14,7 +14,7 @@ import {ApiBearerAuth, ApiOkResponse, ApiTags} from "@nestjs/swagger"; import {Organisation} from "./entities/organisation.entity.js"; import {AuthGuard} from "@nestjs/passport"; import {RequestWithUser} from "../authorization/models/RequestWithUser.js"; -import {BooleanResult} from "../root-app/models/boolean-result.js"; +import {BooleanResult} from "../root-app/dtos/boolean-result.js"; @UseGuards(AuthGuard("jwt")) @ApiBearerAuth() diff --git a/src/root-app/models/boolean-result.ts b/src/root-app/dtos/boolean-result.ts similarity index 100% rename from src/root-app/models/boolean-result.ts rename to src/root-app/dtos/boolean-result.ts diff --git a/src/smtp-email-client/email.controller.ts b/src/smtp-email-client/email.controller.ts index 3bf42fdc..71b2962f 100644 --- a/src/smtp-email-client/email.controller.ts +++ b/src/smtp-email-client/email.controller.ts @@ -10,7 +10,7 @@ import {Queue} from "bull"; import {ClaimsAuthorisationGuard} from "../authorization/guards/ClaimsAuthorisationGuard.js"; import {DefaultAuthGuard} from "../authorization/guards/DefaultAuthGuard.js"; import {MandatoryUserClaims} from "../authorization/guards/MandatoryUserClaims.decorator.js"; -import {BooleanResult} from "../root-app/models/boolean-result.js"; +import {BooleanResult} from "../root-app/dtos/boolean-result.js"; import {QueueItemDto} from "../root-app/models/QueueItemDto.js"; import {SmtpEmailClient} from "./email-client.service.js"; diff --git a/src/user-api-key/user-apikey.controller.ts b/src/user-api-key/user-apikey.controller.ts index 80942840..9a938647 100644 --- a/src/user-api-key/user-apikey.controller.ts +++ b/src/user-api-key/user-apikey.controller.ts @@ -16,7 +16,7 @@ import { ApiTags, } from "@nestjs/swagger"; import {RequestWithUser} from "../authorization/models/RequestWithUser.js"; -import {BooleanResult} from "../root-app/models/boolean-result.js"; +import {BooleanResult} from "../root-app/dtos/boolean-result.js"; import {UserApiKey} from "./userApiKey.entity.js"; import {UserApiKeyService} from "./user-apikey.service.js"; import CreateApiKeyDto from "./CreateApiKeyDto.js"; diff --git a/src/user/user.controller.ts b/src/user/user.controller.ts index ee6f4e4c..613642d6 100644 --- a/src/user/user.controller.ts +++ b/src/user/user.controller.ts @@ -19,7 +19,7 @@ import { } from "@nestjs/swagger"; import {RequestWithUser} from "../authorization/models/RequestWithUser.js"; import {isUUID} from "class-validator"; -import {BooleanResult} from "../root-app/models/boolean-result.js"; +import {BooleanResult} from "../root-app/dtos/boolean-result.js"; import {UserDto} from "./dto/userResponseDto.js"; import {User} from "./entities/user.entity.js"; import {DefaultAuthGuard} from "../authorization/guards/DefaultAuthGuard.js";