amlich-api 0.2.1 → 0.2.2
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/README.md +2 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,11 +39,13 @@ Constructor options:
|
|
|
39
39
|
```ts
|
|
40
40
|
await api.today(7);
|
|
41
41
|
await api.day("2026-02-21", 7, 22);
|
|
42
|
+
await api.days("2026-03-01", "2026-04-05", 7);
|
|
42
43
|
await api.month(2026, 2, 7);
|
|
43
44
|
```
|
|
44
45
|
|
|
45
46
|
- `today(tz?: number)` -> `GET /today`
|
|
46
47
|
- `day(date: string, tz?: number, hour?: number)` -> `GET /day`
|
|
48
|
+
- `days(from: string, to: string, tz?: number)` -> `GET /days`
|
|
47
49
|
- `month(year: number, month: number, tz?: number)` -> `GET /month`
|
|
48
50
|
|
|
49
51
|
### Tra cứu can chi / tương hợp
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ type DayResponse = {
|
|
|
10
10
|
solar?: unknown;
|
|
11
11
|
lunar?: unknown;
|
|
12
12
|
} & UnknownFields;
|
|
13
|
+
type DaysResponse = {
|
|
14
|
+
from?: string;
|
|
15
|
+
to?: string;
|
|
16
|
+
days?: unknown[];
|
|
17
|
+
} & UnknownFields;
|
|
13
18
|
type MonthResponse = {
|
|
14
19
|
year: number;
|
|
15
20
|
month: number;
|
|
@@ -133,6 +138,7 @@ declare class AmLichClient {
|
|
|
133
138
|
constructor(options?: AmLichClientOptions);
|
|
134
139
|
today(tz?: number): Promise<TodayResponse>;
|
|
135
140
|
day(date: string, tz?: number, hour?: number): Promise<DayResponse>;
|
|
141
|
+
days(from: string, to: string, tz?: number): Promise<DaysResponse>;
|
|
136
142
|
month(year: number, month: number, tz?: number): Promise<MonthResponse>;
|
|
137
143
|
napam(name: string): Promise<NapAmResponse>;
|
|
138
144
|
chiRelations(chi: string): Promise<ChiRelationsResponse>;
|
|
@@ -153,4 +159,4 @@ declare class AmLichClient {
|
|
|
153
159
|
private request;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
|
-
export { AmLichClient, type AmLichClientOptions, AmLichError, type ChiRelationsResponse, type CompatResponse, type ConvertRequest, type ConvertResponse, type DayResponse, type MonthResponse, type NapAmResponse, type NgayKyResponse, type PickQuery, type PickResponse, type SaoTuResponse, type ThanSatResponse, type TietKhiResponse, type TietKhiYearResponse, type TodayResponse, type WarningsQuery, type WarningsResponse };
|
|
162
|
+
export { AmLichClient, type AmLichClientOptions, AmLichError, type ChiRelationsResponse, type CompatResponse, type ConvertRequest, type ConvertResponse, type DayResponse, type DaysResponse, type MonthResponse, type NapAmResponse, type NgayKyResponse, type PickQuery, type PickResponse, type SaoTuResponse, type ThanSatResponse, type TietKhiResponse, type TietKhiYearResponse, type TodayResponse, type WarningsQuery, type WarningsResponse };
|
package/dist/index.js
CHANGED