Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nuxt-galaxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remi PLANEL
nuxt-galaxy
Commits
93a405ec
Commit
93a405ec
authored
7 months ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
try to export RoleType type
parent
86c56ba0
No related branches found
No related tags found
No related merge requests found
Pipeline
#145465
passed
7 months ago
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/module.ts
+7
-1
7 additions, 1 deletion
src/module.ts
src/runtime/types/index.ts
+1
-0
1 addition, 0 deletions
src/runtime/types/index.ts
src/runtime/types/supabase.ts
+98
-10
98 additions, 10 deletions
src/runtime/types/supabase.ts
with
106 additions
and
11 deletions
src/module.ts
+
7
−
1
View file @
93a405ec
...
...
@@ -2,8 +2,9 @@ import { addImportsDir, addRouteMiddleware, addServerHandler, addServerImportsDi
}
from
'
@nuxt/kit
'
import
{
defu
}
from
'
defu
'
ex
port
*
from
'
./runtime/types
'
im
port
type
{
RoleType
}
from
'
./runtime/types
'
export
type
{
RoleType
}
export
interface
ModuleOptions
{
url
:
string
apiKey
:
string
...
...
@@ -54,6 +55,11 @@ export default defineNuxtModule<ModuleOptions>({
async
setup
(
moduleOptions
,
nuxt
)
{
// We create the `experimental` object if it doesn't exist yet
const
resolver
=
createResolver
(
import
.
meta
.
url
)
// nuxt.options.alias['#galaxy'] = resolver.resolve(
// './runtime/types/index',
// )
// public runtime
// nuxt.options.runtimeConfig.public.galaxy ||= {}
const
runtimeConfig
=
nuxt
.
options
.
runtimeConfig
...
...
This diff is collapsed.
Click to expand it.
src/runtime/types/index.ts
+
1
−
0
View file @
93a405ec
...
...
@@ -3,3 +3,4 @@ export type * from './db'
export
type
*
from
'
./serverApi
'
export
type
*
from
'
./supabase
'
export
type
*
from
'
./galaxy/galaxyToolParameters
'
export
type
{
RoleType
}
from
'
../server/db/schema/galaxy/roles
'
This diff is collapsed.
Click to expand it.
src/runtime/types/supabase.ts
+
98
−
10
View file @
93a405ec
...
...
@@ -109,6 +109,13 @@ export type Database = {
referencedRelation
:
'
datasets
'
referencedColumns
:
[
'
id
'
]
},
{
foreignKeyName
:
'
analysis_inputs_dataset_id_datasets_id_fk
'
columns
:
[
'
dataset_id
'
]
isOneToOne
:
true
referencedRelation
:
'
datasets_with_storage_path
'
referencedColumns
:
[
'
id
'
]
},
]
}
analysis_ouputs
:
{
...
...
@@ -148,6 +155,13 @@ export type Database = {
referencedRelation
:
'
datasets
'
referencedColumns
:
[
'
id
'
]
},
{
foreignKeyName
:
'
analysis_ouputs_dataset_id_datasets_id_fk
'
columns
:
[
'
dataset_id
'
]
isOneToOne
:
false
referencedRelation
:
'
datasets_with_storage_path
'
referencedColumns
:
[
'
id
'
]
},
{
foreignKeyName
:
'
analysis_ouputs_job_id_jobs_id_fk
'
columns
:
[
'
job_id
'
]
...
...
@@ -162,12 +176,12 @@ export type Database = {
annotation
:
string
|
null
created_at
:
string
data_lines
:
number
|
null
dataset_name
:
string
extension
:
string
file_size
:
number
galaxy_id
:
string
history_id
:
number
id
:
number
name
:
string
owner_id
:
string
storage_object_id
:
string
uuid
:
string
...
...
@@ -176,12 +190,12 @@ export type Database = {
annotation
?:
string
|
null
created_at
?:
string
data_lines
?:
number
|
null
dataset_name
:
string
extension
:
string
file_size
:
number
galaxy_id
:
string
history_id
:
number
id
?:
number
name
:
string
owner_id
:
string
storage_object_id
:
string
uuid
:
string
...
...
@@ -190,12 +204,12 @@ export type Database = {
annotation
?:
string
|
null
created_at
?:
string
data_lines
?:
number
|
null
dataset_name
?:
string
extension
?:
string
file_size
?:
number
galaxy_id
?:
string
history_id
?:
number
id
?:
number
name
?:
string
owner_id
?:
string
storage_object_id
?:
string
uuid
?:
string
...
...
@@ -231,6 +245,13 @@ export type Database = {
referencedRelation
:
'
datasets
'
referencedColumns
:
[
'
id
'
]
},
{
foreignKeyName
:
'
datasets_to_tags_dataset_id_datasets_id_fk
'
columns
:
[
'
dataset_id
'
]
isOneToOne
:
false
referencedRelation
:
'
datasets_with_storage_path
'
referencedColumns
:
[
'
id
'
]
},
{
foreignKeyName
:
'
datasets_to_tags_tag_id_tags_id_fk
'
columns
:
[
'
tag_id
'
]
...
...
@@ -358,6 +379,32 @@ export type Database = {
},
]
}
role_permissions
:
{
Row
:
{
id
:
number
permission
:
Database
[
'
galaxy
'
][
'
Enums
'
][
'
role_permissions_type
'
]
role_id
:
number
}
Insert
:
{
id
?:
number
permission
:
Database
[
'
galaxy
'
][
'
Enums
'
][
'
role_permissions_type
'
]
role_id
:
number
}
Update
:
{
id
?:
number
permission
?:
Database
[
'
galaxy
'
][
'
Enums
'
][
'
role_permissions_type
'
]
role_id
?:
number
}
Relationships
:
[
{
foreignKeyName
:
'
role_permissions_role_id_roles_id_fk
'
columns
:
[
'
role_id
'
]
isOneToOne
:
false
referencedRelation
:
'
roles
'
referencedColumns
:
[
'
id
'
]
},
]
}
roles
:
{
Row
:
{
id
:
number
...
...
@@ -435,25 +482,25 @@ export type Database = {
},
]
}
user_
p
ro
fi
les
:
{
user_roles
:
{
Row
:
{
id
:
number
owner_id
:
string
role_id
:
number
user_id
:
string
}
Insert
:
{
id
?:
number
owner_id
:
string
role_id
:
number
user_id
:
string
}
Update
:
{
id
?:
number
owner_id
?:
string
role_id
?:
number
user_id
?:
string
}
Relationships
:
[
{
foreignKeyName
:
'
user_
p
ro
fi
les_role_id_roles_id_fk
'
foreignKeyName
:
'
user_roles_role_id_roles_id_fk
'
columns
:
[
'
role_id
'
]
isOneToOne
:
false
referencedRelation
:
'
roles
'
...
...
@@ -531,10 +578,46 @@ export type Database = {
}
}
Views
:
{
[
_
in
never
]:
never
datasets_with_storage_path
:
{
Row
:
{
annotation
:
string
|
null
created_at
:
string
|
null
data_lines
:
number
|
null
dataset_name
:
string
|
null
extension
:
string
|
null
file_size
:
number
|
null
galaxy_id
:
string
|
null
history_id
:
number
|
null
id
:
number
|
null
name
:
string
|
null
owner_id
:
string
|
null
storage_object_id
:
string
|
null
uuid
:
string
|
null
}
Relationships
:
[
{
foreignKeyName
:
'
datasets_history_id_histories_id_fk
'
columns
:
[
'
history_id
'
]
isOneToOne
:
false
referencedRelation
:
'
histories
'
referencedColumns
:
[
'
id
'
]
},
]
}
}
Functions
:
{
[
_
in
never
]:
never
authorize
:
{
Args
:
{
requested_permission
:
Database
[
'
galaxy
'
][
'
Enums
'
][
'
role_permissions_type
'
]
}
Returns
:
boolean
}
custom_access_token_hook
:
{
Args
:
{
event
:
Json
}
Returns
:
Json
}
}
Enums
:
{
dataset_state
:
...
...
@@ -586,6 +669,11 @@ export type Database = {
|
'
stop
'
|
'
stopped
'
|
'
skipped
'
role_permissions_type
:
|
'
workflows.insert
'
|
'
workflows.delete
'
|
'
instances.insert
'
|
'
instances.delete
'
role_type
:
'
admin
'
|
'
user
'
}
CompositeTypes
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment