audible-api-ts 0.1.0 → 0.2.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/README.md +79 -22
- package/dist/catalog.d.ts +17 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.int.test.d.ts +2 -0
- package/dist/catalog.int.test.d.ts.map +1 -0
- package/dist/categories.d.ts +12 -0
- package/dist/categories.d.ts.map +1 -0
- package/dist/client.d.ts +5 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.int.test.d.ts +2 -0
- package/dist/client.int.test.d.ts.map +1 -0
- package/dist/client.unit.test.d.ts +2 -0
- package/dist/client.unit.test.d.ts.map +1 -0
- package/dist/credentials.d.ts +9 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/fetch.d.ts +22 -0
- package/dist/fetch.d.ts.map +1 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1903 -79
- package/dist/library.d.ts +9 -6
- package/dist/library.d.ts.map +1 -1
- package/dist/library.int.test.d.ts +2 -0
- package/dist/library.int.test.d.ts.map +1 -0
- package/dist/locales.unit.test.d.ts +2 -0
- package/dist/locales.unit.test.d.ts.map +1 -0
- package/dist/schemas.d.ts +581 -2
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.unit.test.d.ts +2 -0
- package/dist/schemas.unit.test.d.ts.map +1 -0
- package/dist/types.d.ts +77 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.unit.test.d.ts +2 -0
- package/dist/utils.unit.test.d.ts.map +1 -0
- package/package.json +6 -2
package/dist/library.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import type { AudibleCredentials
|
|
1
|
+
import type { AudibleCredentials } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Fetch the user's entire Audible library with automatic pagination.
|
|
4
|
+
* Credentials are auto-refreshed if expired.
|
|
4
5
|
*
|
|
5
6
|
* @returns All library items and the (potentially refreshed) credentials
|
|
6
7
|
*/
|
|
7
|
-
export declare const
|
|
8
|
-
items: AudibleItem[];
|
|
8
|
+
export declare const library: (credentials: AudibleCredentials) => Promise<{
|
|
9
|
+
items: import("./types.js").AudibleItem[];
|
|
9
10
|
credentials: AudibleCredentials;
|
|
10
11
|
}>;
|
|
11
12
|
/**
|
|
12
13
|
* Fetch the user's entire Audible wishlist with automatic pagination.
|
|
14
|
+
* Credentials are auto-refreshed if expired.
|
|
13
15
|
*
|
|
14
16
|
* @returns All wishlist items and the (potentially refreshed) credentials
|
|
15
17
|
*/
|
|
16
|
-
export declare const
|
|
17
|
-
items: AudibleItem[];
|
|
18
|
+
export declare const wishlist: (credentials: AudibleCredentials) => Promise<{
|
|
19
|
+
items: import("./types.js").AudibleItem[];
|
|
18
20
|
credentials: AudibleCredentials;
|
|
19
21
|
}>;
|
|
20
22
|
/**
|
|
21
23
|
* Verify that credentials are valid by making a minimal API call.
|
|
24
|
+
* Credentials are auto-refreshed if expired.
|
|
22
25
|
*
|
|
23
26
|
* @throws If credentials are invalid or expired
|
|
24
27
|
*/
|
|
25
|
-
export declare const
|
|
28
|
+
export declare const verify: (credentials: AudibleCredentials) => Promise<void>;
|
|
26
29
|
//# sourceMappingURL=library.d.ts.map
|
package/dist/library.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../src/library.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../src/library.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAKpD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAU,aAAa,kBAAkB;;;EACJ,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAU,aAAa,kBAAkB;;;EACJ,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAU,aAAa,kBAAkB,kBAM3D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library.int.test.d.ts","sourceRoot":"","sources":["../src/library.int.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.unit.test.d.ts","sourceRoot":"","sources":["../src/locales.unit.test.ts"],"names":[],"mappings":""}
|