From 03df4cb4893e8872269e4ab85cd033b85074c66e Mon Sep 17 00:00:00 2001 From: asim Date: Fri, 17 Sep 2021 09:37:18 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/go/quran/quran.go | 4 ++-- clients/ts/package.json | 2 +- clients/ts/quran/index.ts | 2 +- examples/db/update/go/updateARecord.go | 2 +- examples/stream/publish/go/publishAMessage.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/go/quran/quran.go b/clients/go/quran/quran.go index ea515f2..e21f354 100755 --- a/clients/go/quran/quran.go +++ b/clients/go/quran/quran.go @@ -87,7 +87,7 @@ type Result struct { // The associated arabic text Text string `json:"text"` // The related translations to the text - Translations []Interpretation `json:"translations"` + Translations []Translation `json:"translations"` // The unique verse id across the Quran VerseId int32 `json:"verseId"` // The verse key e.g 1:1 @@ -149,7 +149,7 @@ type Verse struct { // The unique id of the verse in the whole book Id int32 `json:"id"` // The interpretations of the verse - Interpretations []Interpretation `json:"interpretations"` + Interpretations []Translation `json:"interpretations"` // The key of this verse (chapter:verse) e.g 1:1 Key string `json:"key"` // The verse number in this chapter diff --git a/clients/ts/package.json b/clients/ts/package.json index 77fc1c5..10173d4 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -57,5 +57,5 @@ }, "type": "module", "types": "dist/index.d.ts", - "version": "1.0.510" + "version": "1.0.511" } \ No newline at end of file diff --git a/clients/ts/quran/index.ts b/clients/ts/quran/index.ts index f903ecc..77f59a9 100755 --- a/clients/ts/quran/index.ts +++ b/clients/ts/quran/index.ts @@ -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?: Interpretation[]; + interpretations?: Translation[]; // The key of this verse (chapter:verse) e.g 1:1 key?: string; // The verse number in this chapter diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index d1cad90..4c7b7e9 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -11,8 +11,8 @@ func UpdateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Update(&db.UpdateRequest{ Record: map[string]interface{}{ - "id": "1", "age": 43, + "id": "1", }, Table: "users", }) diff --git a/examples/stream/publish/go/publishAMessage.go b/examples/stream/publish/go/publishAMessage.go index af88ee1..0f33eac 100755 --- a/examples/stream/publish/go/publishAMessage.go +++ b/examples/stream/publish/go/publishAMessage.go @@ -11,9 +11,9 @@ func PublishAmessage() { streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN")) rsp, err := streamService.Publish(&stream.PublishRequest{ Message: map[string]interface{}{ + "user": "john", "id": "1", "type": "signup", - "user": "john", }, Topic: "events", })