Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Jul 1, 2024
1 parent c9295c3 commit 5777627
Show file tree
Hide file tree
Showing 13 changed files with 435 additions and 184 deletions.
120 changes: 113 additions & 7 deletions api/.aeria/aeria-sdk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type {
declare type MirrorDescriptions = {
"file": {
"$id": "file",
"icon": "file",
"owned": "always",
"presets": [
"owned"
Expand Down Expand Up @@ -214,6 +215,7 @@ declare type MirrorDescriptions = {
},
"tempFile": {
"$id": "tempFile",
"icon": "file",
"temporary": {
"index": "created_at",
"expireAfterSeconds": 3600
Expand Down Expand Up @@ -250,8 +252,73 @@ declare type MirrorDescriptions = {
}
}
},
"tutor": {
"$id": "tutor",
"properties": {
"name": {
"type": "string"
},
"pictures": {
"type": "array",
"items": {
"$ref": "file",
"accept": [
"image/*"
],
"indexes": [
"name",
"link",
"type"
]
}
},
"dog": {
"const": "dog"
},
"created_at": {
"type": "string",
"format": "date-time",
"noForm": true,
"readOnly": true,
"isTimestamp": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"noForm": true,
"readOnly": true,
"isTimestamp": true
}
},
"icon": "person",
"presets": [
"crud"
],
"actions": {
"ui:spawnAdd": {
"label": "action.add",
"icon": "plus",
"button": true,
"translate": true
}
},
"individualActions": {
"ui:spawnEdit": {
"label": "action.edit",
"icon": "pencil-simple",
"translate": true
},
"remove": {
"label": "action.remove",
"icon": "trash",
"ask": true,
"translate": true
}
}
},
"user": {
"$id": "user",
"icon": "users",
"required": [
"name",
"roles",
Expand Down Expand Up @@ -387,7 +454,6 @@ declare type MirrorDescriptions = {
"translate": true
}
},
"icon": "users",
"filters": [
"name",
"roles",
Expand Down Expand Up @@ -522,6 +588,46 @@ declare type MirrorRouter = {
"builtin": true
}
},
"/tutor/get": {
"POST": {
"roles": [
"root"
],
"builtin": true
}
},
"/tutor/getAll": {
"POST": {
"roles": [
"root"
],
"builtin": true
}
},
"/tutor/insert": {
"POST": {
"roles": [
"root"
],
"builtin": true
}
},
"/tutor/remove": {
"POST": {
"roles": [
"root"
],
"builtin": true
}
},
"/tutor/upload": {
"POST": {
"roles": [
"root"
],
"builtin": true
}
},
"/user/get": {
"POST": {
"roles": [
Expand Down Expand Up @@ -622,15 +728,15 @@ declare type MirrorRouter = {


declare global {
type Collections = {
[K in keyof MirrorDescriptions]: {
item: SchemaWithId<MirrorDescriptions[K]>
}
}
type Collections = {
[K in keyof MirrorDescriptions]: {
item: SchemaWithId<MirrorDescriptions[K]>
}
}
}

declare module 'aeria-sdk' {
import { TopLevelObject, TLOFunctions } from 'aeria-sdk'
import { TopLevelObject } from 'aeria-sdk'

type UnionToIntersection<T> = (T extends any ? ((x: T) => 0) : never) extends ((x: infer R) => 0)
? R
Expand Down
8 changes: 7 additions & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM node:20

WORKDIR /opt/application/api
COPY . .
COPY .aeria .aeria
COPY @types @types
COPY public public
COPY src src
COPY package.json package.json
COPY package-lock.json package-lock.json
COPY tsconfig.json tsconfig.json

RUN npm ci
RUN npm run build
Expand Down
Loading

0 comments on commit 5777627

Please sign in to comment.