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/dist/library.d.ts CHANGED
@@ -1,26 +1,29 @@
1
- import type { AudibleCredentials, AudibleItem } from './types.js';
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 fetchLibrary: (credentials: AudibleCredentials) => Promise<{
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 fetchWishlist: (credentials: AudibleCredentials) => Promise<{
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 verifyConnection: (credentials: AudibleCredentials) => Promise<void>;
28
+ export declare const verify: (credentials: AudibleCredentials) => Promise<void>;
26
29
  //# sourceMappingURL=library.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../src/library.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAyFjE;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAU,aAAa,kBAAkB;;;EACzB,CAAA;AAEzC;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAU,aAAa,kBAAkB;;;EACzB,CAAA;AAE1C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAU,aAAa,kBAAkB,kBAMrE,CAAA"}
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=library.int.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"library.int.test.d.ts","sourceRoot":"","sources":["../src/library.int.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=locales.unit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locales.unit.test.d.ts","sourceRoot":"","sources":["../src/locales.unit.test.ts"],"names":[],"mappings":""}