@mp3quran/sdk 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +752 -2
- package/dist/generated/operations-meta.d.ts +13 -0
- package/dist/generated/operations-meta.js +310 -0
- package/dist/generated/types.d.ts +4302 -0
- package/dist/generated/types.js +6 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +176 -0
- package/package.json +60 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED by `pnpm sdk:generate` from `apps/api/openapi.json`. Do not hand-edit —
|
|
3
|
+
* re-run the generator instead. See `packages/sdk/scripts/generate.ts`.
|
|
4
|
+
*/
|
|
5
|
+
export interface OperationMeta {
|
|
6
|
+
readonly operationId: string;
|
|
7
|
+
readonly method: 'get' | 'post' | 'put' | 'patch' | 'delete';
|
|
8
|
+
readonly path: string;
|
|
9
|
+
readonly summary: string;
|
|
10
|
+
readonly pathParams: readonly string[];
|
|
11
|
+
readonly queryParams: readonly string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const operationsMeta: readonly OperationMeta[];
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED by `pnpm sdk:generate` from `apps/api/openapi.json`. Do not hand-edit —
|
|
3
|
+
* re-run the generator instead. See `packages/sdk/scripts/generate.ts`.
|
|
4
|
+
*/
|
|
5
|
+
export const operationsMeta = [
|
|
6
|
+
{
|
|
7
|
+
operationId: "getAyahTimings",
|
|
8
|
+
method: "get",
|
|
9
|
+
path: "/v4/recitations/{id}/surahs/{n}/ayah-timings",
|
|
10
|
+
summary: "Gets the ayah timings of a surah",
|
|
11
|
+
pathParams: ["id", "n"],
|
|
12
|
+
queryParams: ["ayah", "include"],
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
operationId: "getCollection",
|
|
16
|
+
method: "get",
|
|
17
|
+
path: "/v4/collections/{code}",
|
|
18
|
+
summary: "Gets a collection",
|
|
19
|
+
pathParams: ["code"],
|
|
20
|
+
queryParams: ["locale"],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
operationId: "getHealth",
|
|
24
|
+
method: "get",
|
|
25
|
+
path: "/v4/health",
|
|
26
|
+
summary: "Liveness",
|
|
27
|
+
pathParams: [],
|
|
28
|
+
queryParams: ["locale"],
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
operationId: "getIndex",
|
|
32
|
+
method: "get",
|
|
33
|
+
path: "/v4",
|
|
34
|
+
summary: "Gets the API index",
|
|
35
|
+
pathParams: [],
|
|
36
|
+
queryParams: ["locale"],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
operationId: "getLetterTimings",
|
|
40
|
+
method: "get",
|
|
41
|
+
path: "/v4/recitations/{id}/surahs/{n}/letter-timings",
|
|
42
|
+
summary: "Gets the letter timings of a surah",
|
|
43
|
+
pathParams: ["id", "n"],
|
|
44
|
+
queryParams: ["ayah", "from_ms", "to_ms", "at_ms", "view", "include"],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
operationId: "getPhonemeTimings",
|
|
48
|
+
method: "get",
|
|
49
|
+
path: "/v4/recitations/{id}/surahs/{n}/phoneme-timings",
|
|
50
|
+
summary: "Gets the phoneme timings of a surah (Beta)",
|
|
51
|
+
pathParams: ["id", "n"],
|
|
52
|
+
queryParams: ["ayah", "from_ms", "to_ms", "at_ms", "view", "include"],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
operationId: "getQiraah",
|
|
56
|
+
method: "get",
|
|
57
|
+
path: "/v4/qiraahs/{code}",
|
|
58
|
+
summary: "Gets a qiraah",
|
|
59
|
+
pathParams: ["code"],
|
|
60
|
+
queryParams: ["locale"],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
operationId: "getRadio",
|
|
64
|
+
method: "get",
|
|
65
|
+
path: "/v4/radios/{id}",
|
|
66
|
+
summary: "Gets a radio station",
|
|
67
|
+
pathParams: ["id"],
|
|
68
|
+
queryParams: ["locale", "include"],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
operationId: "getRecitation",
|
|
72
|
+
method: "get",
|
|
73
|
+
path: "/v4/recitations/{id}",
|
|
74
|
+
summary: "Gets a recitation",
|
|
75
|
+
pathParams: ["id"],
|
|
76
|
+
queryParams: ["locale", "include"],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
operationId: "getRecitationSurah",
|
|
80
|
+
method: "get",
|
|
81
|
+
path: "/v4/recitations/{id}/surahs/{n}",
|
|
82
|
+
summary: "Gets one surah of a recitation",
|
|
83
|
+
pathParams: ["id", "n"],
|
|
84
|
+
queryParams: [],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
operationId: "getReciter",
|
|
88
|
+
method: "get",
|
|
89
|
+
path: "/v4/reciters/{idOrSlug}",
|
|
90
|
+
summary: "Gets a reciter",
|
|
91
|
+
pathParams: ["idOrSlug"],
|
|
92
|
+
queryParams: ["locale", "include"],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
operationId: "getRiwayah",
|
|
96
|
+
method: "get",
|
|
97
|
+
path: "/v4/riwayahs/{code}",
|
|
98
|
+
summary: "Gets a riwayah",
|
|
99
|
+
pathParams: ["code"],
|
|
100
|
+
queryParams: ["locale"],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
operationId: "getSpokenTranslation",
|
|
104
|
+
method: "get",
|
|
105
|
+
path: "/v4/spoken-translations/{code}",
|
|
106
|
+
summary: "Gets a spoken translation",
|
|
107
|
+
pathParams: ["code"],
|
|
108
|
+
queryParams: ["locale"],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
operationId: "getSurah",
|
|
112
|
+
method: "get",
|
|
113
|
+
path: "/v4/surahs/{number}",
|
|
114
|
+
summary: "Gets a surah",
|
|
115
|
+
pathParams: ["number"],
|
|
116
|
+
queryParams: ["locale"],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
operationId: "getSurahClip",
|
|
120
|
+
method: "get",
|
|
121
|
+
path: "/v4/recitations/{id}/surahs/{n}/clip",
|
|
122
|
+
summary: "Gets an audio clip of some ayahs of a surah",
|
|
123
|
+
pathParams: ["id", "n"],
|
|
124
|
+
queryParams: ["ayah", "exact"],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
operationId: "getSurahText",
|
|
128
|
+
method: "get",
|
|
129
|
+
path: "/v4/surahs/{number}/text",
|
|
130
|
+
summary: "Gets the words of a surah",
|
|
131
|
+
pathParams: ["number"],
|
|
132
|
+
queryParams: ["ayah", "riwayah", "coordinates"],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
operationId: "getTafsir",
|
|
136
|
+
method: "get",
|
|
137
|
+
path: "/v4/tafsirs/{id}",
|
|
138
|
+
summary: "Gets a tafsir work",
|
|
139
|
+
pathParams: ["id"],
|
|
140
|
+
queryParams: ["locale"],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
operationId: "getTimingRelease",
|
|
144
|
+
method: "get",
|
|
145
|
+
path: "/v4/timing-releases/{release}",
|
|
146
|
+
summary: "Gets a release",
|
|
147
|
+
pathParams: ["release"],
|
|
148
|
+
queryParams: [],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
operationId: "getTvChannel",
|
|
152
|
+
method: "get",
|
|
153
|
+
path: "/v4/tv/{id}",
|
|
154
|
+
summary: "Gets a TV channel",
|
|
155
|
+
pathParams: ["id"],
|
|
156
|
+
queryParams: ["locale"],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
operationId: "getWordTimings",
|
|
160
|
+
method: "get",
|
|
161
|
+
path: "/v4/recitations/{id}/surahs/{n}/word-timings",
|
|
162
|
+
summary: "Gets the word timings of a surah",
|
|
163
|
+
pathParams: ["id", "n"],
|
|
164
|
+
queryParams: ["ayah", "from_ms", "to_ms", "at_ms", "view", "include", "estimate"],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
operationId: "listCollectionItems",
|
|
168
|
+
method: "get",
|
|
169
|
+
path: "/v4/collections/{code}/items",
|
|
170
|
+
summary: "Lists the items of a collection",
|
|
171
|
+
pathParams: ["code"],
|
|
172
|
+
queryParams: ["locale", "limit", "cursor", "all"],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
operationId: "listCollections",
|
|
176
|
+
method: "get",
|
|
177
|
+
path: "/v4/collections",
|
|
178
|
+
summary: "Lists the collections",
|
|
179
|
+
pathParams: [],
|
|
180
|
+
queryParams: ["locale", "limit", "cursor", "all"],
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
operationId: "listHizbs",
|
|
184
|
+
method: "get",
|
|
185
|
+
path: "/v4/hizbs",
|
|
186
|
+
summary: "Lists the hizbs",
|
|
187
|
+
pathParams: [],
|
|
188
|
+
queryParams: ["limit", "cursor", "all", "sort"],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
operationId: "listJuzs",
|
|
192
|
+
method: "get",
|
|
193
|
+
path: "/v4/juzs",
|
|
194
|
+
summary: "Lists the juzs",
|
|
195
|
+
pathParams: [],
|
|
196
|
+
queryParams: ["limit", "cursor", "all", "sort"],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
operationId: "listLanguages",
|
|
200
|
+
method: "get",
|
|
201
|
+
path: "/v4/languages",
|
|
202
|
+
summary: "Lists the locales",
|
|
203
|
+
pathParams: [],
|
|
204
|
+
queryParams: ["limit", "cursor", "all", "locale", "sort"],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
operationId: "listQiraahs",
|
|
208
|
+
method: "get",
|
|
209
|
+
path: "/v4/qiraahs",
|
|
210
|
+
summary: "Lists the qiraahs",
|
|
211
|
+
pathParams: [],
|
|
212
|
+
queryParams: ["limit", "cursor", "all", "locale", "sort"],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
operationId: "listRadios",
|
|
216
|
+
method: "get",
|
|
217
|
+
path: "/v4/radios",
|
|
218
|
+
summary: "Lists the radio stations",
|
|
219
|
+
pathParams: [],
|
|
220
|
+
queryParams: ["locale", "limit", "cursor", "all", "category", "reciter", "sort"],
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
operationId: "listRecitations",
|
|
224
|
+
method: "get",
|
|
225
|
+
path: "/v4/recitations",
|
|
226
|
+
summary: "Lists the recitations",
|
|
227
|
+
pathParams: [],
|
|
228
|
+
queryParams: ["limit", "cursor", "all", "locale", "reciter", "riwayah", "qiraah", "style", "occasion", "tariq", "has", "surah", "updated_since", "sort"],
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
operationId: "listRecitationSurahs",
|
|
232
|
+
method: "get",
|
|
233
|
+
path: "/v4/recitations/{id}/surahs",
|
|
234
|
+
summary: "Lists the surahs of a recitation",
|
|
235
|
+
pathParams: ["id"],
|
|
236
|
+
queryParams: ["limit", "cursor", "all", "locale", "sort"],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
operationId: "listReciters",
|
|
240
|
+
method: "get",
|
|
241
|
+
path: "/v4/reciters",
|
|
242
|
+
summary: "Lists the reciters",
|
|
243
|
+
pathParams: [],
|
|
244
|
+
queryParams: ["limit", "cursor", "all", "locale", "q", "country", "riwayah", "has", "updated_since", "include", "sort"],
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
operationId: "listRiwayahs",
|
|
248
|
+
method: "get",
|
|
249
|
+
path: "/v4/riwayahs",
|
|
250
|
+
summary: "Lists the riwayahs",
|
|
251
|
+
pathParams: [],
|
|
252
|
+
queryParams: ["limit", "cursor", "all", "locale", "sort"],
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
operationId: "listSpokenTranslations",
|
|
256
|
+
method: "get",
|
|
257
|
+
path: "/v4/spoken-translations",
|
|
258
|
+
summary: "Lists the spoken translations",
|
|
259
|
+
pathParams: [],
|
|
260
|
+
queryParams: ["locale", "limit", "cursor", "all", "language", "reciter", "sort"],
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
operationId: "listSurahs",
|
|
264
|
+
method: "get",
|
|
265
|
+
path: "/v4/surahs",
|
|
266
|
+
summary: "Lists the surahs",
|
|
267
|
+
pathParams: [],
|
|
268
|
+
queryParams: ["limit", "cursor", "all", "locale", "sort"],
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
operationId: "listTafsirItems",
|
|
272
|
+
method: "get",
|
|
273
|
+
path: "/v4/tafsirs/{id}/items",
|
|
274
|
+
summary: "Lists the items of a tafsir work",
|
|
275
|
+
pathParams: ["id"],
|
|
276
|
+
queryParams: ["locale", "limit", "cursor", "all", "surah", "sort"],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
operationId: "listTafsirs",
|
|
280
|
+
method: "get",
|
|
281
|
+
path: "/v4/tafsirs",
|
|
282
|
+
summary: "Lists the tafsir works",
|
|
283
|
+
pathParams: [],
|
|
284
|
+
queryParams: ["locale", "limit", "cursor", "all", "language", "sort"],
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
operationId: "listTimingReleases",
|
|
288
|
+
method: "get",
|
|
289
|
+
path: "/v4/timing-releases",
|
|
290
|
+
summary: "Lists the releases",
|
|
291
|
+
pathParams: [],
|
|
292
|
+
queryParams: ["limit", "cursor", "all", "sort"],
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
operationId: "listTvChannels",
|
|
296
|
+
method: "get",
|
|
297
|
+
path: "/v4/tv",
|
|
298
|
+
summary: "Lists the TV channels",
|
|
299
|
+
pathParams: [],
|
|
300
|
+
queryParams: ["locale", "limit", "cursor", "all", "sort"],
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
operationId: "search",
|
|
304
|
+
method: "get",
|
|
305
|
+
path: "/v4/search",
|
|
306
|
+
summary: "Searches reciters, surahs, riwayahs and radios",
|
|
307
|
+
pathParams: [],
|
|
308
|
+
queryParams: ["locale", "q", "type", "limit", "country", "riwayah"],
|
|
309
|
+
},
|
|
310
|
+
];
|