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 client *client.Client
} }
// // Generate a QR code with a specific text and size
func (t *QrService) Generate(request *GenerateRequest) (*GenerateResponse, error) { func (t *QrService) Generate(request *GenerateRequest) (*GenerateResponse, error) {
rsp := &GenerateResponse{} rsp := &GenerateResponse{}
return rsp, t.client.Call("qr", "Generate", request, rsp) return rsp, t.client.Call("qr", "Generate", request, rsp)

View File

@@ -58,5 +58,5 @@
}, },
"type": "module", "type": "module",
"types": "dist/index.d.ts", "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) { constructor(token: string) {
this.client = new m3o.Client({ token: token }); this.client = new m3o.Client({ token: token });
} }
// // Generate a QR code with a specific text and size
generate(request: GenerateRequest): Promise<GenerateResponse> { generate(request: GenerateRequest): Promise<GenerateResponse> {
return this.client.call( return this.client.call(
"qr", "qr",

View File

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

View File

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

View File

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

View File

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