aboutsummaryrefslogtreecommitdiff
path: root/src/server/apis/google/GoogleApiServerUtils.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-09-01 17:12:45 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-09-01 17:12:45 -0400
commitd1960ed915e78014592567e16dd1de9545781a27 (patch)
treeb53ed90769f116790a7a07be7bc09347dea06c93 /src/server/apis/google/GoogleApiServerUtils.ts
parent769b4c0b9ac61729b94b32999d3713a2dce53627 (diff)
factored out typings
Diffstat (limited to 'src/server/apis/google/GoogleApiServerUtils.ts')
-rw-r--r--src/server/apis/google/GoogleApiServerUtils.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/apis/google/GoogleApiServerUtils.ts b/src/server/apis/google/GoogleApiServerUtils.ts
index 656984b8a..c6d901577 100644
--- a/src/server/apis/google/GoogleApiServerUtils.ts
+++ b/src/server/apis/google/GoogleApiServerUtils.ts
@@ -5,8 +5,9 @@ import { OAuth2Client, Credentials } from "google-auth-library";
import { Opt } from "../../../new_fields/Doc";
import { GlobalOptions } from "googleapis-common";
import { GaxiosResponse } from "gaxios";
-import { GooglePhotos, CreateAlbum, Action } from "./GooglePhotosUtils";
+import { GooglePhotos } from "./GooglePhotosUtils";
import { Utils } from "../../../Utils";
+import { Album } from "./Typings/albums";
/**
* Server side authentication for Google Api queries.
@@ -67,8 +68,8 @@ export namespace GoogleApiServerUtils {
case Service.Photos:
let token = result.token.access_token;
if (token) {
- let create: CreateAlbum = {
- action: Action.Create,
+ let create: Album.Create = {
+ action: Album.Action.Create,
body: {
album: {
title: "Sam's Bulk Export",