From d4f704166bf6e126ef396469ba217076538f878a Mon Sep 17 00:00:00 2001 From: domwong Date: Tue, 21 Sep 2021 19:20:10 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/go/holidays/holidays.go | 4 ++-- clients/go/quran/quran.go | 2 +- clients/ts/holidays/index.ts | 4 ++-- clients/ts/package.json | 2 +- examples/db/create/go/createARecord.go | 2 +- examples/holidays/countries/go/listCountries.go | 2 +- examples/holidays/countries/node/listCountries.js | 2 +- examples/holidays/list/go/getHolidays.go | 2 +- examples/holidays/list/node/getHolidays.js | 2 +- examples/stream/publish/go/publishAMessage.go | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/clients/go/holidays/holidays.go b/clients/go/holidays/holidays.go index f8b2a63..37f4540 100755 --- a/clients/go/holidays/holidays.go +++ b/clients/go/holidays/holidays.go @@ -16,13 +16,13 @@ type HolidaysService struct { client *client.Client } -// +// Get the list of countries that are supported by this API func (t *HolidaysService) Countries(request *CountriesRequest) (*CountriesResponse, error) { rsp := &CountriesResponse{} return rsp, t.client.Call("holidays", "Countries", request, rsp) } -// +// List the holiday dates for a given country and year func (t *HolidaysService) List(request *ListRequest) (*ListResponse, error) { rsp := &ListResponse{} return rsp, t.client.Call("holidays", "List", request, rsp) diff --git a/clients/go/quran/quran.go b/clients/go/quran/quran.go index a3f3428..e21f354 100755 --- a/clients/go/quran/quran.go +++ b/clients/go/quran/quran.go @@ -161,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/holidays/index.ts b/clients/ts/holidays/index.ts index e25984f..a9482c2 100755 --- a/clients/ts/holidays/index.ts +++ b/clients/ts/holidays/index.ts @@ -6,7 +6,7 @@ export class HolidaysService { constructor(token: string) { this.client = new m3o.Client({ token: token }); } - // + // Get the list of countries that are supported by this API countries(request: CountriesRequest): Promise { return this.client.call( "holidays", @@ -14,7 +14,7 @@ export class HolidaysService { request ) as Promise; } - // + // List the holiday dates for a given country and year list(request: ListRequest): Promise { return this.client.call( "holidays", diff --git a/clients/ts/package.json b/clients/ts/package.json index 12517e5..9830c84 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -60,5 +60,5 @@ }, "type": "module", "types": "dist/index.d.ts", - "version": "1.0.523" + "version": "1.0.524" } \ No newline at end of file diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index c582849..ed2b1c4 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -11,10 +11,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", }, Table: "users", }) diff --git a/examples/holidays/countries/go/listCountries.go b/examples/holidays/countries/go/listCountries.go index fa6169a..33ba4b1 100755 --- a/examples/holidays/countries/go/listCountries.go +++ b/examples/holidays/countries/go/listCountries.go @@ -6,7 +6,7 @@ import ( "os" ) -// +// Get the list of countries that are supported by this API func ListCountries() { holidaysService := holidays.NewHolidaysService(os.Getenv("MICRO_API_TOKEN")) rsp, err := holidaysService.Countries(&holidays.CountriesRequest{}) diff --git a/examples/holidays/countries/node/listCountries.js b/examples/holidays/countries/node/listCountries.js index 82588c3..5ab8350 100755 --- a/examples/holidays/countries/node/listCountries.js +++ b/examples/holidays/countries/node/listCountries.js @@ -1,6 +1,6 @@ import * as holidays from "m3o/holidays"; -// +// Get the list of countries that are supported by this API async function ListCountries() { let holidaysService = new holidays.HolidaysService( process.env.MICRO_API_TOKEN diff --git a/examples/holidays/list/go/getHolidays.go b/examples/holidays/list/go/getHolidays.go index 72707f2..f35258d 100755 --- a/examples/holidays/list/go/getHolidays.go +++ b/examples/holidays/list/go/getHolidays.go @@ -6,7 +6,7 @@ import ( "os" ) -// +// List the holiday dates for a given country and year func GetHolidays() { holidaysService := holidays.NewHolidaysService(os.Getenv("MICRO_API_TOKEN")) rsp, err := holidaysService.List(&holidays.ListRequest{ diff --git a/examples/holidays/list/node/getHolidays.js b/examples/holidays/list/node/getHolidays.js index 7836aa1..047e122 100755 --- a/examples/holidays/list/node/getHolidays.js +++ b/examples/holidays/list/node/getHolidays.js @@ -1,6 +1,6 @@ import * as holidays from "m3o/holidays"; -// +// List the holiday dates for a given country and year async function GetHolidays() { let holidaysService = new holidays.HolidaysService( process.env.MICRO_API_TOKEN diff --git a/examples/stream/publish/go/publishAMessage.go b/examples/stream/publish/go/publishAMessage.go index f7db1b0..af88ee1 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{}{ + "id": "1", "type": "signup", "user": "john", - "id": "1", }, Topic: "events", })