-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(models): 🎨 Build types from validation schemas
- Loading branch information
1 parent
c67fa7d
commit e79ff09
Showing
62 changed files
with
1,268 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/db/prisma/migrations/20220607063609_required_workspace/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
Warnings: | ||
- Made the column `workspaceId` on table `Credentials` required. This step will fail if there are existing NULL values in that column. | ||
- Made the column `workspaceId` on table `CustomDomain` required. This step will fail if there are existing NULL values in that column. | ||
- Made the column `workspaceId` on table `DashboardFolder` required. This step will fail if there are existing NULL values in that column. | ||
- Made the column `workspaceId` on table `Typebot` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "Credentials" ALTER COLUMN "workspaceId" SET NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "CustomDomain" ALTER COLUMN "workspaceId" SET NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "DashboardFolder" ALTER COLUMN "workspaceId" SET NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Typebot" ALTER COLUMN "workspaceId" SET NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
{ | ||
"name": "models", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"license": "AGPL-3.0-or-later", | ||
"private": true, | ||
"devDependencies": { | ||
"typescript": "^4.6.4" | ||
"typescript": "^4.6.4", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-typescript": "^8.3.2", | ||
"rollup": "^2.72.1", | ||
"rollup-plugin-dts": "^4.2.1", | ||
"rollup-plugin-peer-deps-external": "^2.2.4" | ||
}, | ||
"dependencies": { | ||
"next": "^12.1.6", | ||
"db": "*", | ||
"@udecode/plate-core": "^11.0.0" | ||
"next": "^12.1.6", | ||
"zod": "^3.17.3" | ||
}, | ||
"peerDependencies": { | ||
"next": "^12.1.6", | ||
"db": "*" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"dx": "tsc --watch --preserveWatchOutput" | ||
"build": "yarn rollup -c", | ||
"dx": "yarn rollup -c --watch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import typescript from '@rollup/plugin-typescript' | ||
import dts from 'rollup-plugin-dts' | ||
import peerDepsExternal from 'rollup-plugin-peer-deps-external' | ||
|
||
const packageJson = require('./package.json') | ||
|
||
export default [ | ||
{ | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
file: packageJson.main, | ||
format: 'cjs', | ||
sourcemap: true, | ||
inlineDynamicImports: true, | ||
}, | ||
{ | ||
file: packageJson.module, | ||
format: 'esm', | ||
sourcemap: true, | ||
inlineDynamicImports: true, | ||
}, | ||
], | ||
plugins: [ | ||
peerDepsExternal(), | ||
resolve(), | ||
commonjs(), | ||
typescript({ tsconfig: './tsconfig.json' }), | ||
], | ||
}, | ||
{ | ||
input: 'dist/esm/types/index.d.ts', | ||
output: [{ file: 'dist/index.d.ts', format: 'esm' }], | ||
plugins: [dts()], | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e79ff09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2-alpha – ./apps/viewer
am.nigerias.io
chat.sureb4.com
vhpage.cr8.ai
ar.nigerias.io
apo.nigerias.io
apr.nigerias.io
bt.id8rs.com
an.nigerias.io
aso.nigerias.io
sat.cr8.ai
clo.closeer.work
bot.piccinato.co
eventhub.com.au
bot.upfunnel.art
games.klujo.com
sakuranembro.it
faqs.nigerias.io
stan.vselise.com
feedback.ofx.one
voicehelp.cr8.ai
forms.webisharp.com
bot.eventhub.com.au
app.chatforms.net
zap.techadviser.in
typebot.stillio.com
bot.cotemeuplano.com
bot.ansuraniphone.my
bot.meuesocial.com.br
bot.incusservices.com
chat.hayurihijab.com
cdd.searchcube.com.sg
gcase.barrettamario.it
c23111azqw.nigerias.io
83242573.actualizar.xyz
kodawariab736.skeep.it
mainmenu.diddancing.com
info.clickasuransi.com
serviziaziendali.online
hunterbot.saleshunter.ai
type.opaulovieira.com.br
aibot.angrybranding.co.uk
onboarding.libertydreamcare.ie
bookings.littlepartymonkeys.com
boyfriend-breakup.riku.ai
type.dericsoncalari.com.br
type.talitasouzamarques.com.br
piazzatorre.barrettamario.it
studiotecnicoimmobiliaremerelli.it
personal-trainer.barrettamario.it
bot.comercializadoraomicron.com
viewer-v2-alpha-typebot-io.vercel.app
viewer-v2-alpha-git-main-typebot-io.vercel.app
e79ff09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
landing-page-v2 – ./apps/landing-page
www.typebot.io
get-typebot.com
landing-page-v2-typebot-io.vercel.app
www.get-typebot.com
landing-page-v2-git-main-typebot-io.vercel.app
typebot.io
e79ff09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
viewer-v2 – ./apps/viewer
bergamo.store
bots.bridge.ai
bot.tvbeat.it
bot.joof.it
gollum.riku.ai
chat.hayuri.id
bot.jesopizz.it
yoda.riku.ai
app.yvon.earth
talk.gocare.io
bot.contakit.com
fitness.riku.ai
zap.fundviser.in
bot.rihabilita.it
viewer.typebot.io
bot.danyservice.it
bot.dsignagency.com
88584434.therpm.club
demo.wemakebots.xyz
chatbot.matthesv.de
bot.barrettamario.it
92109660.therpm.club
hello.advergreen.com
bot.coachayongzul.com
bot.digitalpointer.id
bot.robertohairlab.it
bot.eikju.photography
bot.ilmuseoaiborghi.it
bot.outstandbrand.com
criar.somaperuzzo.com
bot.pratikmandalia.com
michaeljackson.riku.ai
form.bridesquadapp.com
87656003.actualizar.xyz
88152257.actualizar.xyz
91375310.actualizar.xyz
arrivalx2.wpwakanda.com
invite.bridesquadapp.com
link.venturasuceder.com
bot.hotelplayarimini.it
bot.amicidisanfaustino.it
typebot-viewer.vercel.app
bot.adventureconsulting.hu
chat.thehomebuyersusa.com
forms.hiabhaykulkarni.com
liveconvert.kandalearn.com
herbalife.barrettamario.it
chat.atlasoutfittersk9.com
homepageonly.wpwakanda.com
casestudyemb.wpwakanda.com
mainmenu1one.wpwakanda.com
bot.seidibergamoseanchetu.it
bot.polychromes-project.com
liveconvert2.kandalearn.com
bot.seidinembroseanchetu.it
forms.escoladeautomacao.com.br
tarian.theiofoundation.org
bot.pinpointinteractive.com
viewer-v2-typebot-io.vercel.app
bot.studiotecnicoimmobiliaremerelli.it
viewer-v2-git-main-typebot-io.vercel.app
e79ff09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-v2 – ./apps/builder
app.typebot.io
builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app