mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 23:35:26 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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<CountriesResponse> {
|
||||
return this.client.call(
|
||||
"holidays",
|
||||
@@ -14,7 +14,7 @@ export class HolidaysService {
|
||||
request
|
||||
) as Promise<CountriesResponse>;
|
||||
}
|
||||
//
|
||||
// List the holiday dates for a given country and year
|
||||
list(request: ListRequest): Promise<ListResponse> {
|
||||
return this.client.call(
|
||||
"holidays",
|
||||
|
||||
@@ -60,5 +60,5 @@
|
||||
},
|
||||
"type": "module",
|
||||
"types": "dist/index.d.ts",
|
||||
"version": "1.0.523"
|
||||
"version": "1.0.524"
|
||||
}
|
||||
Reference in New Issue
Block a user