Skip to content

Commit 500dfb5

Browse files
committed
chore: reorganize route imports and fix example package naming
1 parent e75fe90 commit 500dfb5

2 files changed

Lines changed: 56 additions & 56 deletions

File tree

apps/account/src/routeTree.gen.ts

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ import { Route as AccountTwoFactorRouteImport } from './routes/account.two-facto
2727
import { Route as AccountSessionsRouteImport } from './routes/account.sessions'
2828
import { Route as AccountSecurityRouteImport } from './routes/account.security'
2929
import { Route as AccountProfileRouteImport } from './routes/account.profile'
30+
import { Route as AccountLinkedAccountsRouteImport } from './routes/account.linked-accounts'
31+
import { Route as AccountInvitationsRouteImport } from './routes/account.invitations'
3032
import { Route as AcceptInvitationInvitationIdRouteImport } from './routes/accept-invitation.$invitationId'
3133
import { Route as OrganizationsOrgIdIndexRouteImport } from './routes/organizations.$orgId.index'
3234
import { Route as AccountOauthApplicationsIndexRouteImport } from './routes/account.oauth-applications.index'
35+
import { Route as OrganizationsOrgIdTeamsRouteImport } from './routes/organizations.$orgId.teams'
3336
import { Route as OrganizationsOrgIdMembersRouteImport } from './routes/organizations.$orgId.members'
3437
import { Route as OrganizationsOrgIdGeneralRouteImport } from './routes/organizations.$orgId.general'
3538
import { Route as AccountOauthApplicationsNewRouteImport } from './routes/account.oauth-applications.new'
3639
import { Route as AccountOauthApplicationsClientIdRouteImport } from './routes/account.oauth-applications.$clientId'
37-
import { Route as AccountInvitationsRouteImport } from './routes/account.invitations'
38-
import { Route as AccountLinkedAccountsRouteImport } from './routes/account.linked-accounts'
39-
import { Route as OrganizationsOrgIdTeamsRouteImport } from './routes/organizations.$orgId.teams'
4040

4141
const VerifyEmailRoute = VerifyEmailRouteImport.update({
4242
id: '/verify-email',
@@ -128,6 +128,16 @@ const AccountProfileRoute = AccountProfileRouteImport.update({
128128
path: '/profile',
129129
getParentRoute: () => AccountRoute,
130130
} as any)
131+
const AccountLinkedAccountsRoute = AccountLinkedAccountsRouteImport.update({
132+
id: '/linked-accounts',
133+
path: '/linked-accounts',
134+
getParentRoute: () => AccountRoute,
135+
} as any)
136+
const AccountInvitationsRoute = AccountInvitationsRouteImport.update({
137+
id: '/invitations',
138+
path: '/invitations',
139+
getParentRoute: () => AccountRoute,
140+
} as any)
131141
const AcceptInvitationInvitationIdRoute =
132142
AcceptInvitationInvitationIdRouteImport.update({
133143
id: '/accept-invitation/$invitationId',
@@ -145,6 +155,11 @@ const AccountOauthApplicationsIndexRoute =
145155
path: '/oauth-applications/',
146156
getParentRoute: () => AccountRoute,
147157
} as any)
158+
const OrganizationsOrgIdTeamsRoute = OrganizationsOrgIdTeamsRouteImport.update({
159+
id: '/teams',
160+
path: '/teams',
161+
getParentRoute: () => OrganizationsOrgIdRoute,
162+
} as any)
148163
const OrganizationsOrgIdMembersRoute =
149164
OrganizationsOrgIdMembersRouteImport.update({
150165
id: '/members',
@@ -169,21 +184,6 @@ const AccountOauthApplicationsClientIdRoute =
169184
path: '/oauth-applications/$clientId',
170185
getParentRoute: () => AccountRoute,
171186
} as any)
172-
const AccountInvitationsRoute = AccountInvitationsRouteImport.update({
173-
id: '/invitations',
174-
path: '/invitations',
175-
getParentRoute: () => AccountRoute,
176-
} as any)
177-
const AccountLinkedAccountsRoute = AccountLinkedAccountsRouteImport.update({
178-
id: '/linked-accounts',
179-
path: '/linked-accounts',
180-
getParentRoute: () => AccountRoute,
181-
} as any)
182-
const OrganizationsOrgIdTeamsRoute = OrganizationsOrgIdTeamsRouteImport.update({
183-
id: '/teams',
184-
path: '/teams',
185-
getParentRoute: () => OrganizationsOrgIdRoute,
186-
} as any)
187187

188188
export interface FileRoutesByFullPath {
189189
'/': typeof IndexRoute
@@ -195,6 +195,8 @@ export interface FileRoutesByFullPath {
195195
'/setup': typeof SetupRoute
196196
'/verify-email': typeof VerifyEmailRoute
197197
'/accept-invitation/$invitationId': typeof AcceptInvitationInvitationIdRoute
198+
'/account/invitations': typeof AccountInvitationsRoute
199+
'/account/linked-accounts': typeof AccountLinkedAccountsRoute
198200
'/account/profile': typeof AccountProfileRoute
199201
'/account/security': typeof AccountSecurityRoute
200202
'/account/sessions': typeof AccountSessionsRoute
@@ -210,8 +212,6 @@ export interface FileRoutesByFullPath {
210212
'/organizations/$orgId/general': typeof OrganizationsOrgIdGeneralRoute
211213
'/organizations/$orgId/members': typeof OrganizationsOrgIdMembersRoute
212214
'/organizations/$orgId/teams': typeof OrganizationsOrgIdTeamsRoute
213-
'/account/invitations': typeof AccountInvitationsRoute
214-
'/account/linked-accounts': typeof AccountLinkedAccountsRoute
215215
'/account/oauth-applications/': typeof AccountOauthApplicationsIndexRoute
216216
'/organizations/$orgId/': typeof OrganizationsOrgIdIndexRoute
217217
}
@@ -224,6 +224,8 @@ export interface FileRoutesByTo {
224224
'/setup': typeof SetupRoute
225225
'/verify-email': typeof VerifyEmailRoute
226226
'/accept-invitation/$invitationId': typeof AcceptInvitationInvitationIdRoute
227+
'/account/invitations': typeof AccountInvitationsRoute
228+
'/account/linked-accounts': typeof AccountLinkedAccountsRoute
227229
'/account/profile': typeof AccountProfileRoute
228230
'/account/security': typeof AccountSecurityRoute
229231
'/account/sessions': typeof AccountSessionsRoute
@@ -238,8 +240,6 @@ export interface FileRoutesByTo {
238240
'/organizations/$orgId/general': typeof OrganizationsOrgIdGeneralRoute
239241
'/organizations/$orgId/members': typeof OrganizationsOrgIdMembersRoute
240242
'/organizations/$orgId/teams': typeof OrganizationsOrgIdTeamsRoute
241-
'/account/invitations': typeof AccountInvitationsRoute
242-
'/account/linked-accounts': typeof AccountLinkedAccountsRoute
243243
'/account/oauth-applications': typeof AccountOauthApplicationsIndexRoute
244244
'/organizations/$orgId': typeof OrganizationsOrgIdIndexRoute
245245
}
@@ -254,6 +254,8 @@ export interface FileRoutesById {
254254
'/setup': typeof SetupRoute
255255
'/verify-email': typeof VerifyEmailRoute
256256
'/accept-invitation/$invitationId': typeof AcceptInvitationInvitationIdRoute
257+
'/account/invitations': typeof AccountInvitationsRoute
258+
'/account/linked-accounts': typeof AccountLinkedAccountsRoute
257259
'/account/profile': typeof AccountProfileRoute
258260
'/account/security': typeof AccountSecurityRoute
259261
'/account/sessions': typeof AccountSessionsRoute
@@ -269,8 +271,6 @@ export interface FileRoutesById {
269271
'/organizations/$orgId/general': typeof OrganizationsOrgIdGeneralRoute
270272
'/organizations/$orgId/members': typeof OrganizationsOrgIdMembersRoute
271273
'/organizations/$orgId/teams': typeof OrganizationsOrgIdTeamsRoute
272-
'/account/invitations': typeof AccountInvitationsRoute
273-
'/account/linked-accounts': typeof AccountLinkedAccountsRoute
274274
'/account/oauth-applications/': typeof AccountOauthApplicationsIndexRoute
275275
'/organizations/$orgId/': typeof OrganizationsOrgIdIndexRoute
276276
}
@@ -286,6 +286,8 @@ export interface FileRouteTypes {
286286
| '/setup'
287287
| '/verify-email'
288288
| '/accept-invitation/$invitationId'
289+
| '/account/invitations'
290+
| '/account/linked-accounts'
289291
| '/account/profile'
290292
| '/account/security'
291293
| '/account/sessions'
@@ -301,8 +303,6 @@ export interface FileRouteTypes {
301303
| '/organizations/$orgId/general'
302304
| '/organizations/$orgId/members'
303305
| '/organizations/$orgId/teams'
304-
| '/account/invitations'
305-
| '/account/linked-accounts'
306306
| '/account/oauth-applications/'
307307
| '/organizations/$orgId/'
308308
fileRoutesByTo: FileRoutesByTo
@@ -315,6 +315,8 @@ export interface FileRouteTypes {
315315
| '/setup'
316316
| '/verify-email'
317317
| '/accept-invitation/$invitationId'
318+
| '/account/invitations'
319+
| '/account/linked-accounts'
318320
| '/account/profile'
319321
| '/account/security'
320322
| '/account/sessions'
@@ -329,8 +331,6 @@ export interface FileRouteTypes {
329331
| '/organizations/$orgId/general'
330332
| '/organizations/$orgId/members'
331333
| '/organizations/$orgId/teams'
332-
| '/account/invitations'
333-
| '/account/linked-accounts'
334334
| '/account/oauth-applications'
335335
| '/organizations/$orgId'
336336
id:
@@ -344,6 +344,8 @@ export interface FileRouteTypes {
344344
| '/setup'
345345
| '/verify-email'
346346
| '/accept-invitation/$invitationId'
347+
| '/account/invitations'
348+
| '/account/linked-accounts'
347349
| '/account/profile'
348350
| '/account/security'
349351
| '/account/sessions'
@@ -359,8 +361,6 @@ export interface FileRouteTypes {
359361
| '/organizations/$orgId/general'
360362
| '/organizations/$orgId/members'
361363
| '/organizations/$orgId/teams'
362-
| '/account/invitations'
363-
| '/account/linked-accounts'
364364
| '/account/oauth-applications/'
365365
| '/organizations/$orgId/'
366366
fileRoutesById: FileRoutesById
@@ -510,6 +510,20 @@ declare module '@tanstack/react-router' {
510510
preLoaderRoute: typeof AccountProfileRouteImport
511511
parentRoute: typeof AccountRoute
512512
}
513+
'/account/linked-accounts': {
514+
id: '/account/linked-accounts'
515+
path: '/linked-accounts'
516+
fullPath: '/account/linked-accounts'
517+
preLoaderRoute: typeof AccountLinkedAccountsRouteImport
518+
parentRoute: typeof AccountRoute
519+
}
520+
'/account/invitations': {
521+
id: '/account/invitations'
522+
path: '/invitations'
523+
fullPath: '/account/invitations'
524+
preLoaderRoute: typeof AccountInvitationsRouteImport
525+
parentRoute: typeof AccountRoute
526+
}
513527
'/accept-invitation/$invitationId': {
514528
id: '/accept-invitation/$invitationId'
515529
path: '/accept-invitation/$invitationId'
@@ -531,6 +545,13 @@ declare module '@tanstack/react-router' {
531545
preLoaderRoute: typeof AccountOauthApplicationsIndexRouteImport
532546
parentRoute: typeof AccountRoute
533547
}
548+
'/organizations/$orgId/teams': {
549+
id: '/organizations/$orgId/teams'
550+
path: '/teams'
551+
fullPath: '/organizations/$orgId/teams'
552+
preLoaderRoute: typeof OrganizationsOrgIdTeamsRouteImport
553+
parentRoute: typeof OrganizationsOrgIdRoute
554+
}
534555
'/organizations/$orgId/members': {
535556
id: '/organizations/$orgId/members'
536557
path: '/members'
@@ -559,50 +580,29 @@ declare module '@tanstack/react-router' {
559580
preLoaderRoute: typeof AccountOauthApplicationsClientIdRouteImport
560581
parentRoute: typeof AccountRoute
561582
}
562-
'/account/invitations': {
563-
id: '/account/invitations'
564-
path: '/invitations'
565-
fullPath: '/account/invitations'
566-
preLoaderRoute: typeof AccountInvitationsRouteImport
567-
parentRoute: typeof AccountRoute
568-
}
569-
'/account/linked-accounts': {
570-
id: '/account/linked-accounts'
571-
path: '/linked-accounts'
572-
fullPath: '/account/linked-accounts'
573-
preLoaderRoute: typeof AccountLinkedAccountsRouteImport
574-
parentRoute: typeof AccountRoute
575-
}
576-
'/organizations/$orgId/teams': {
577-
id: '/organizations/$orgId/teams'
578-
path: '/teams'
579-
fullPath: '/organizations/$orgId/teams'
580-
preLoaderRoute: typeof OrganizationsOrgIdTeamsRouteImport
581-
parentRoute: typeof OrganizationsOrgIdRoute
582-
}
583583
}
584584
}
585585

586586
interface AccountRouteChildren {
587+
AccountInvitationsRoute: typeof AccountInvitationsRoute
588+
AccountLinkedAccountsRoute: typeof AccountLinkedAccountsRoute
587589
AccountProfileRoute: typeof AccountProfileRoute
588590
AccountSecurityRoute: typeof AccountSecurityRoute
589591
AccountSessionsRoute: typeof AccountSessionsRoute
590592
AccountTwoFactorRoute: typeof AccountTwoFactorRoute
591-
AccountInvitationsRoute: typeof AccountInvitationsRoute
592-
AccountLinkedAccountsRoute: typeof AccountLinkedAccountsRoute
593593
AccountIndexRoute: typeof AccountIndexRoute
594594
AccountOauthApplicationsClientIdRoute: typeof AccountOauthApplicationsClientIdRoute
595595
AccountOauthApplicationsNewRoute: typeof AccountOauthApplicationsNewRoute
596596
AccountOauthApplicationsIndexRoute: typeof AccountOauthApplicationsIndexRoute
597597
}
598598

599599
const AccountRouteChildren: AccountRouteChildren = {
600+
AccountInvitationsRoute: AccountInvitationsRoute,
601+
AccountLinkedAccountsRoute: AccountLinkedAccountsRoute,
600602
AccountProfileRoute: AccountProfileRoute,
601603
AccountSecurityRoute: AccountSecurityRoute,
602604
AccountSessionsRoute: AccountSessionsRoute,
603605
AccountTwoFactorRoute: AccountTwoFactorRoute,
604-
AccountInvitationsRoute: AccountInvitationsRoute,
605-
AccountLinkedAccountsRoute: AccountLinkedAccountsRoute,
606606
AccountIndexRoute: AccountIndexRoute,
607607
AccountOauthApplicationsClientIdRoute: AccountOauthApplicationsClientIdRoute,
608608
AccountOauthApplicationsNewRoute: AccountOauthApplicationsNewRoute,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "pnpm --filter @objectstack/objectos dev",
99
"dev:cloud": "OS_MODE=cloud pnpm --filter @objectstack/cloud dev",
1010
"start": "pnpm --filter @objectstack/objectos start",
11-
"dev:crm": "pnpm --filter @example/app-crm build && OS_PROJECT_ID=proj_crm pnpm --filter @example/app-crm dev",
11+
"dev:crm": "pnpm --filter @objectstack/example-crm build && OS_PROJECT_ID=proj_crm pnpm --filter @objectstack/example-crm dev",
1212
"studio:start": "pnpm --filter @objectstack/studio start",
1313
"dev:dashboard": "pnpm --filter @objectstack/dashboard dev",
1414
"build:dashboard": "pnpm --filter @objectstack/dashboard build",

0 commit comments

Comments
 (0)