1.0.7 • Published 4 months ago

design.email-database v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Usage

  • npm install -g design.email-database
  • add .env file
  • run npx prisma generate --schema=./node_modules/design.email-database/dist/prisma/schema.prisma

Get Emails

functiondescriptionreturn type
getEmails()get all emails with paginationPromise<Email[]>
getEmail(id)get email by idPromise<Email>
getEmailByQuery(query)get email by queryPromise<Email>
deleteEmail(id)delete email by idPromise<Email>
createEmail(email)create emailPromise<Email>
updateEmail(id, email)update email by idPromise<Email>

Get Brands

functiondescriptionreturn type
getBrands()get all brands with paginationPromise<Brand[]>
getBrand(id)get brand by idPromise<Brand>
getBrandByQuery(query)get brand by queryPromise<Brand>
deleteBrand(id)delete brand by idPromise<Brand>
createBrand(brand)create brandPromise<Brand>
updateBrand(id, brand)update brand by idPromise<Brand>
1.0.7

4 months ago

1.0.6

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago