Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
domwong
2021-11-17 16:57:39 +00:00
parent ab4c8ac3f6
commit 2fedd5e747
6 changed files with 9 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ func (t *UserService) SendPasswordResetEmail(request *SendPasswordResetEmailRequ
}
// Send a verification email
// to the user being signed up. Email from will be from 'support@m3o.com',
// to the user being signed up. Email from will be from 'noreply@email.m3ocontent.com',
// but you can provide the title and contents.
// The verification link will be injected in to the email as a template variable, $micro_verification_link.
// Example: 'Hi there, welcome onboard! Use the link below to verify your email: $micro_verification_link'
@@ -202,7 +202,7 @@ type ResetPasswordResponse struct {
type SendPasswordResetEmailRequest struct {
// email address to send reset for
Email string `json:"email"`
// Display name of the sender for the email. Note: the email address will still be 'support@m3o.com'
// Display name of the sender for the email. Note: the email address will still be 'noreply@email.m3ocontent.com'
FromName string `json:"fromName"`
// subject of the email
Subject string `json:"subject"`
@@ -218,7 +218,7 @@ type SendVerificationEmailRequest struct {
// email address to send the verification code
Email string `json:"email"`
FailureRedirectUrl string `json:"failureRedirectUrl"`
// Display name of the sender for the email. Note: the email address will still be 'support@m3o.com'
// Display name of the sender for the email. Note: the email address will still be 'noreply@email.m3ocontent.com'
FromName string `json:"fromName"`
RedirectUrl string `json:"redirectUrl"`
// subject of the email

View File

@@ -79,5 +79,5 @@
"prepare": "npm run build"
},
"types": "index.d.ts",
"version": "1.0.763"
"version": "1.0.765"
}

View File

@@ -12,10 +12,10 @@ func CreateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{
"age": 42,
"isActive": true,
"id": "1",
"name": "Jane",
"age": 42,
"isActive": true,
},
Table: "users",
})

View File

@@ -12,9 +12,9 @@ func PublishAnEvent() {
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := eventService.Publish(&event.PublishRequest{
Message: map[string]interface{}{
"user": "john",
"id": "1",
"type": "signup",
"user": "john",
},
Topic: "user",
})

View File

@@ -8,7 +8,7 @@ import (
)
// Send a verification email
// to the user being signed up. Email from will be from 'support@m3o.com',
// to the user being signed up. Email from will be from 'noreply@email.m3ocontent.com',
// but you can provide the title and contents.
// The verification link will be injected in to the email as a template variable, $micro_verification_link.
// Example: 'Hi there, welcome onboard! Use the link below to verify your email: $micro_verification_link'

View File

@@ -1,7 +1,7 @@
const { UserService } = require("m3o/user");
// Send a verification email
// to the user being signed up. Email from will be from 'support@m3o.com',
// to the user being signed up. Email from will be from 'noreply@email.m3ocontent.com',
// but you can provide the title and contents.
// The verification link will be injected in to the email as a template variable, $micro_verification_link.
// Example: 'Hi there, welcome onboard! Use the link below to verify your email: $micro_verification_link'