-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rubenCodeforges/bugfix/static-method-not-s…
…upported-in-module-config Fix for issue #1
- Loading branch information
Showing
12 changed files
with
76 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
import {GapiAuthInitProperties} from "./GapiAuthInitProperties"; | ||
|
||
export class GoogleApiConfig { | ||
protected CLIENT_ID: string; | ||
protected DISCOVERY_DOCS: string[]; | ||
protected SCOPE: string; | ||
|
||
constructor(CLIENT_ID: string, DISCOVERY_DOCS: string[], SCOPE: string) { | ||
this.CLIENT_ID = CLIENT_ID; | ||
this.DISCOVERY_DOCS = DISCOVERY_DOCS; | ||
this.SCOPE = SCOPE; | ||
constructor(configs: GapiInitConfigs) { | ||
this.CLIENT_ID = configs.clientId; | ||
this.DISCOVERY_DOCS = configs.discoveryDocs; | ||
this.SCOPE = configs.scope; | ||
} | ||
|
||
public getAuthConfig(): GapiAuthInitProperties { | ||
public getConfigs(): GapiInitConfigs { | ||
return { | ||
client_id: this.CLIENT_ID, | ||
clientId: this.CLIENT_ID, | ||
discoveryDocs: this.DISCOVERY_DOCS, | ||
scope: this.SCOPE | ||
} | ||
} | ||
} | ||
|
||
export interface GapiInitConfigs { | ||
clientId: string, | ||
discoveryDocs: string[], | ||
scope: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export * from './'; | ||
export * from './GoogleApiModule'; | ||
export * from './GoogleAuthService'; | ||
export * from './GoogleApiService'; | ||
export * from './config/GoogleApiConfig'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
{ | ||
"compilerOptions": { | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"target": "es6", | ||
"module": "commonjs", | ||
"target": "es5", | ||
"module": "es2015", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"declaration": true, | ||
"lib": [ | ||
"es2015", | ||
"dom" | ||
], | ||
"outDir": "lib/", | ||
"declaration": true | ||
"noImplicitAny": true, | ||
"suppressImplicitAnyIndexErrors": true | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
], | ||
"angularCompilerOptions": { | ||
"strictMetadataEmit": true, | ||
"skipTemplateCodegen": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters