Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
asim
2021-09-20 14:19:29 +00:00
parent 83e824c619
commit e4dbed6df3
7 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ type QrService struct {
client *client.Client
}
//
// Generate a QR code with a specific text and size
func (t *QrService) Generate(request *GenerateRequest) (*GenerateResponse, error) {
rsp := &GenerateResponse{}
return rsp, t.client.Call("qr", "Generate", request, rsp)

View File

@@ -58,5 +58,5 @@
},
"type": "module",
"types": "dist/index.d.ts",
"version": "1.0.517"
"version": "1.0.518"
}

View File

@@ -6,7 +6,7 @@ export class QrService {
constructor(token: string) {
this.client = new m3o.Client({ token: token });
}
//
// Generate a QR code with a specific text and size
generate(request: GenerateRequest): Promise<GenerateResponse> {
return this.client.call(
"qr",

View File

@@ -149,7 +149,7 @@ export interface Verse {
// The unique id of the verse in the whole book
id?: number;
// The interpretations of the verse
interpretations?: Translation[];
interpretations?: Interpretation[];
// The key of this verse (chapter:verse) e.g 1:1
key?: string;
// The verse number in this chapter

View File

@@ -11,8 +11,8 @@ func UpdateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Update(&db.UpdateRequest{
Record: map[string]interface{}{
"age": 43,
"id": "1",
"age": 43,
},
Table: "users",
})

View File

@@ -6,7 +6,7 @@ import (
"os"
)
//
// Generate a QR code with a specific text and size
func GenerateAqrCode() {
qrService := qr.NewQrService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := qrService.Generate(&qr.GenerateRequest{

View File

@@ -1,6 +1,6 @@
import * as qr from "m3o/qr";
//
// Generate a QR code with a specific text and size
async function GenerateAqrCode() {
let qrService = new qr.QrService(process.env.MICRO_API_TOKEN);
let rsp = await qrService.generate({