From b36348fc48a63878565a54bd83e943bbc4171546 Mon Sep 17 00:00:00 2001 From: asim Date: Thu, 16 Sep 2021 15:29:51 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/go/quran/quran.go | 8 +++++--- clients/ts/package.json | 2 +- clients/ts/quran/index.ts | 8 +++++--- examples/quran/verses/go/getVersesOfAChapter.go | 4 +++- examples/quran/verses/node/getVersesOfAChapter.js | 4 +++- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/clients/go/quran/quran.go b/clients/go/quran/quran.go index 0d98d92..ea515f2 100755 --- a/clients/go/quran/quran.go +++ b/clients/go/quran/quran.go @@ -34,7 +34,9 @@ func (t *QuranService) Summary(request *SummaryRequest) (*SummaryResponse, error return rsp, t.client.Call("quran", "Summary", request, rsp) } -// Lookup the verses (ayahs) for a chapter +// Lookup the verses (ayahs) for a chapter including +// translation, interpretation and breakdown by individual +// words. func (t *QuranService) Verses(request *VersesRequest) (*VersesResponse, error) { rsp := &VersesResponse{} return rsp, t.client.Call("quran", "Verses", request, rsp) @@ -147,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 []Translation `json:"interpretations"` + Interpretations []Interpretation `json:"interpretations"` // The key of this verse (chapter:verse) e.g 1:1 Key string `json:"key"` // The verse number in this chapter @@ -159,7 +161,7 @@ type Verse struct { // The basic translation of the verse TranslatedText string `json:"translatedText"` // The alternative translations for the verse - Translations []Translation `json:"translations"` + Translations []Interpretation `json:"translations"` // The phonetic transliteration from arabic Transliteration string `json:"transliteration"` // The individual words within the verse (Ayah) diff --git a/clients/ts/package.json b/clients/ts/package.json index c677174..77fc1c5 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.509" + "version": "1.0.510" } \ No newline at end of file diff --git a/clients/ts/quran/index.ts b/clients/ts/quran/index.ts index af9b993..f903ecc 100755 --- a/clients/ts/quran/index.ts +++ b/clients/ts/quran/index.ts @@ -30,7 +30,9 @@ export class QuranService { request ) as Promise; } - // Lookup the verses (ayahs) for a chapter + // Lookup the verses (ayahs) for a chapter including + // translation, interpretation and breakdown by individual + // words. verses(request: VersesRequest): Promise { return this.client.call( "quran", @@ -85,7 +87,7 @@ export interface Result { // The associated arabic text text?: string; // The related translations to the text - translations?: Translation[]; + translations?: Interpretation[]; // The unique verse id across the Quran verseId?: number; // The verse key e.g 1:1 @@ -147,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 diff --git a/examples/quran/verses/go/getVersesOfAChapter.go b/examples/quran/verses/go/getVersesOfAChapter.go index 1661d11..28b25c6 100755 --- a/examples/quran/verses/go/getVersesOfAChapter.go +++ b/examples/quran/verses/go/getVersesOfAChapter.go @@ -6,7 +6,9 @@ import ( "os" ) -// Lookup the verses (ayahs) for a chapter +// Lookup the verses (ayahs) for a chapter including +// translation, interpretation and breakdown by individual +// words. func GetVersesOfAchapter() { quranService := quran.NewQuranService(os.Getenv("MICRO_API_TOKEN")) rsp, err := quranService.Verses(&quran.VersesRequest{ diff --git a/examples/quran/verses/node/getVersesOfAChapter.js b/examples/quran/verses/node/getVersesOfAChapter.js index abdf00d..0787567 100755 --- a/examples/quran/verses/node/getVersesOfAChapter.js +++ b/examples/quran/verses/node/getVersesOfAChapter.js @@ -1,6 +1,8 @@ import * as quran from "m3o/quran"; -// Lookup the verses (ayahs) for a chapter +// Lookup the verses (ayahs) for a chapter including +// translation, interpretation and breakdown by individual +// words. async function GetVersesOfAchapter() { let quranService = new quran.QuranService(process.env.MICRO_API_TOKEN); let rsp = await quranService.verses({