@anmiles/google-api-wrapper 2.1.1 → 2.1.3
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/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [2.1.
|
|
8
|
+
## [2.1.3](../../tags/v2.1.3) - 2023-03-13
|
|
9
9
|
### Changed
|
|
10
10
|
- Fixed exported types
|
|
11
11
|
|
|
@@ -8,6 +8,6 @@ declare const _default: {
|
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
10
10
|
declare function getAPI(profile: string): Promise<GoogleApis.calendar_v3.Calendar>;
|
|
11
|
-
declare function getCalendars(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Calendarlist$List): Promise<
|
|
12
|
-
declare function getEvents(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Events$List): Promise<
|
|
11
|
+
declare function getCalendars(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Calendarlist$List): Promise<GoogleApis.calendar_v3.Schema$CalendarListEntry[]>;
|
|
12
|
+
declare function getEvents(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Events$List): Promise<GoogleApis.calendar_v3.Schema$Event[]>;
|
|
13
13
|
declare function setEvent(profile: string, eventId: string | undefined, args: GoogleApis.calendar_v3.Params$Resource$Events$Update): Promise<void>;
|
|
@@ -6,4 +6,4 @@ declare const _default: {
|
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
declare function getAPI(profile: string): Promise<GoogleApis.youtube_v3.Youtube>;
|
|
9
|
-
declare function getPlaylistItems(profile: string, args: GoogleApis.youtube_v3.Params$Resource$Playlistitems$List): Promise<
|
|
9
|
+
declare function getPlaylistItems(profile: string, args: GoogleApis.youtube_v3.Params$Resource$Playlistitems$List): Promise<GoogleApis.youtube_v3.Schema$PlaylistItem[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anmiles/google-api-wrapper",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Provides quick interface for getting google API data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"google",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"test:watch:coverage": "npm test -- --watch --coverage",
|
|
27
27
|
"test:report:coverage": "nyc report --nycrc-path ./coverage.config.js -t ./coverage --report-dir ./coverage",
|
|
28
28
|
"create": "node ./dist/create.js",
|
|
29
|
-
"login": "node ./dist/login.js"
|
|
29
|
+
"login": "node ./dist/login.js",
|
|
30
|
+
"save": "npm run build && npm publish --access public"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"colorette": "^2.0.19",
|
package/src/lib/api/calendar.ts
CHANGED
|
@@ -16,12 +16,12 @@ async function getAPI(profile: string): Promise<GoogleApis.calendar_v3.Calendar>
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
async function getCalendars(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Calendarlist$List) {
|
|
19
|
+
async function getCalendars(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Calendarlist$List): Promise<GoogleApis.calendar_v3.Schema$CalendarListEntry[]> {
|
|
20
20
|
const api = await calendar.getAPI(profile);
|
|
21
21
|
return getItems(api.calendarList, args);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
async function getEvents(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Events$List) {
|
|
24
|
+
async function getEvents(profile: string, args: GoogleApis.calendar_v3.Params$Resource$Events$List): Promise<GoogleApis.calendar_v3.Schema$Event[]> {
|
|
25
25
|
const api = await calendar.getAPI(profile);
|
|
26
26
|
return getItems(api.events, args);
|
|
27
27
|
}
|
package/src/lib/api/youtube.ts
CHANGED
|
@@ -16,7 +16,7 @@ async function getAPI(profile: string): Promise<GoogleApis.youtube_v3.Youtube> {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
async function getPlaylistItems(profile: string, args: GoogleApis.youtube_v3.Params$Resource$Playlistitems$List) {
|
|
19
|
+
async function getPlaylistItems(profile: string, args: GoogleApis.youtube_v3.Params$Resource$Playlistitems$List): Promise<GoogleApis.youtube_v3.Schema$PlaylistItem[]> {
|
|
20
20
|
const api = await youtube.getAPI(profile);
|
|
21
21
|
return getItems(api.playlistItems, args);
|
|
22
22
|
}
|