chore: rename app.ts to bootstrap.ts on api-v2 (#26604)
This commit is contained in:
1 parent
b6c243f1dd
commit
56b29b5df6
85 files changed
+149
-146
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateOrganizationAttributeInput } from "@/modules/organizations/attributes/index/inputs/create-organization-attribute.input";
|
||||
import { UpdateOrganizationAttributeInput } from "@/modules/organizations/attributes/index/inputs/update-organization-attribute.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateOrganizationAttributeOptionInput } from "@/modules/organizations/attributes/options/inputs/create-organization-attribute-option.input";
|
||||
import { AssignOrganizationAttributeOptionToUserInput } from "@/modules/organizations/attributes/options/inputs/organizations-attributes-options-assign.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateScheduleInput_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/inputs/create-schedule.input";
|
||||
import { SchedulesService_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/services/schedules.service";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateBookingOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/create-booking.output";
|
||||
import { CreateScheduleInput_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/inputs/create-schedule.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { HttpExceptionFilter } from "@/filters/http-exception.filter";
|
||||
import { PrismaExceptionFilter } from "@/filters/prisma-exception.filter";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { HttpExceptionFilter } from "@/filters/http-exception.filter";
|
||||
import { PrismaExceptionFilter } from "@/filters/prisma-exception.filter";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateOrgMembershipDto } from "@/modules/organizations/memberships/inputs/create-organization-membership.input";
|
||||
import { UpdateOrgMembershipDto } from "@/modules/organizations/memberships/inputs/update-organization-membership.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { getEnv } from "@/env";
|
||||
import { sha256Hash, stripApiKey } from "@/lib/api-key";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PbacGuard } from "@/modules/auth/guards/pbac/pbac.guard";
|
||||
import { RolesGuard } from "@/modules/auth/guards/roles/roles.guard";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateTeamRoleInput } from "@/modules/organizations/teams/roles/inputs/create-team-role.input";
|
||||
import type { CreateTeamRoleOutput } from "@/modules/organizations/teams/roles/outputs/create-team-role.output";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { GetRoutingFormsOutput } from "@/modules/organizations/routing-forms/outputs/get-routing-forms.output";
|
||||
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateBookingOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/create-booking.output";
|
||||
import { CreateScheduleInput_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/inputs/create-schedule.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateOrgTeamDto } from "@/modules/organizations/teams/index/inputs/create-organization-team.input";
|
||||
import { OrgMeTeamOutputDto } from "@/modules/organizations/teams/index/outputs/organization-team.output";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { EmailService } from "@/modules/email/email.service";
|
||||
import {
|
||||
|
||||
+4
-5
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateOrgTeamMembershipDto } from "@/modules/organizations/teams/memberships/inputs/create-organization-team-membership.input";
|
||||
import { UpdateOrgTeamMembershipDto } from "@/modules/organizations/teams/memberships/inputs/update-organization-team-membership.input";
|
||||
@@ -527,7 +527,8 @@ describe("Organizations Teams Memberships Endpoints", () => {
|
||||
|
||||
await profileRepositoryFixture.create({
|
||||
uid: `usr-${userWithMatchingEmailForOverride.id}`,
|
||||
username: userWithMatchingEmailForOverride.username || `user-${userWithMatchingEmailForOverride.id}`,
|
||||
username:
|
||||
userWithMatchingEmailForOverride.username || `user-${userWithMatchingEmailForOverride.id}`,
|
||||
organization: { connect: { id: orgWithAutoAccept.id } },
|
||||
user: { connect: { id: userWithMatchingEmailForOverride.id } },
|
||||
});
|
||||
@@ -561,9 +562,7 @@ describe("Organizations Teams Memberships Endpoints", () => {
|
||||
expect(responseBody.data.accepted).toBe(true);
|
||||
|
||||
// Verify EventTypes assignment
|
||||
const eventTypes = await eventTypesRepositoryFixture.getAllTeamEventTypes(
|
||||
subteamWithAutoAccept.id
|
||||
);
|
||||
const eventTypes = await eventTypesRepositoryFixture.getAllTeamEventTypes(subteamWithAutoAccept.id);
|
||||
const eventTypeWithAssignAll = eventTypes.find((et) => et.assignAllTeamMembers);
|
||||
expect(eventTypeWithAssignAll).toBeTruthy();
|
||||
const userIsHost = eventTypeWithAssignAll?.hosts.some((h) => h.userId === userWithMatchingEmail.id);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateTeamRoleInput } from "@/modules/organizations/teams/roles/inputs/create-team-role.input";
|
||||
import { UpdateTeamRoleInput } from "@/modules/organizations/teams/roles/inputs/update-team-role.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateTeamRoleInput } from "@/modules/organizations/teams/roles/inputs/create-team-role.input";
|
||||
import type { CreateTeamRoleOutput } from "@/modules/organizations/teams/roles/outputs/create-team-role.output";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { GetRoutingFormResponsesOutput } from "@/modules/organizations/teams/routing-forms/outputs/get-routing-form-responses.output";
|
||||
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { GetRoutingFormsOutput } from "@/modules/organizations/routing-forms/outputs/get-routing-forms.output";
|
||||
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
// Assuming this is your main app bootstrapper
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { CreateBookingOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/create-booking.output";
|
||||
import { CreateScheduleInput_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/inputs/create-schedule.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { EmailService } from "@/modules/email/email.service";
|
||||
import { GetOrganizationsUsersInput } from "@/modules/organizations/users/index/inputs/get-organization-users.input";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { UserOooOutputDto } from "@/modules/ooo/outputs/ooo.output";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { bootstrap } from "@/app";
|
||||
import { bootstrap } from "@/bootstrap";
|
||||
import { AppModule } from "@/app.module";
|
||||
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
||||
import { TokensModule } from "@/modules/tokens/tokens.module";
|
||||
|
||||
Reference in new issue
Block a user