diff --git a/clients/go/user/user.go b/clients/go/user/user.go index e2ef13d..c2e5b5c 100755 --- a/clients/go/user/user.go +++ b/clients/go/user/user.go @@ -155,6 +155,7 @@ type LoginResponse struct { } type LogoutRequest struct { + // the session id for the user to logout SessionId string `json:"sessionId"` } @@ -180,6 +181,7 @@ type ReadSessionRequest struct { } type ReadSessionResponse struct { + // the session for the user Session *Session `json:"session"` } @@ -213,12 +215,14 @@ type SendPasswordResetEmailResponse struct { } 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' FromName string `json:"fromName"` RedirectUrl string `json:"redirectUrl"` - Subject string `json:"subject"` + // subject of the email + Subject string `json:"subject"` // Text content of the email. Don't forget to include the string '$micro_verification_link' which will be replaced by the real verification link // HTML emails are not available currently. TextContent string `json:"textContent"` diff --git a/clients/ts/package.json b/clients/ts/package.json index 2761279..3ba6cc1 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -79,5 +79,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.762" + "version": "1.0.763" } \ No newline at end of file diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index 283dd5d..08be46f 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -12,10 +12,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ - "id": "1", - "name": "Jane", "age": 42, "isActive": true, + "id": "1", + "name": "Jane", }, Table: "users", }) diff --git a/examples/event/publish/go/publishAnEvent.go b/examples/event/publish/go/publishAnEvent.go index cd945dc..fd9dc17 100755 --- a/examples/event/publish/go/publishAnEvent.go +++ b/examples/event/publish/go/publishAnEvent.go @@ -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", }) diff --git a/examples/mq/publish/go/publishAMessage.go b/examples/mq/publish/go/publishAMessage.go index e3cfd27..159c090 100755 --- a/examples/mq/publish/go/publishAMessage.go +++ b/examples/mq/publish/go/publishAMessage.go @@ -12,9 +12,9 @@ func PublishAmessage() { mqService := mq.NewMqService(os.Getenv("MICRO_API_TOKEN")) rsp, err := mqService.Publish(&mq.PublishRequest{ Message: map[string]interface{}{ - "user": "john", "id": "1", "type": "signup", + "user": "john", }, Topic: "events", })