mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Merge in v5 code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Plugin, Cordova, CordovaProperty, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
export interface PinterestUser {
|
||||
/**
|
||||
@@ -182,7 +182,7 @@ export class Pinterest extends IonicNativePlugin {
|
||||
/**
|
||||
* Convenience constant for authentication scopes
|
||||
*/
|
||||
@CordovaProperty
|
||||
@CordovaProperty()
|
||||
SCOPES: {
|
||||
READ_PUBLIC: string;
|
||||
WRITE_PUBLIC: string;
|
||||
@@ -196,7 +196,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* @returns {Promise<any>} The response object will contain the user's profile data, as well as the access token (if you need to use it elsewhere, example: send it to your server and perform actions on behalf of the user).
|
||||
*/
|
||||
@Cordova()
|
||||
login(scopes: string[]): Promise<any> { return; }
|
||||
login(scopes: string[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the authenticated user's profile
|
||||
@@ -206,7 +208,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMe(fields?: string): Promise<PinterestUser> { return; }
|
||||
getMe(fields?: string): Promise<PinterestUser> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -217,7 +221,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyPins(fields?: string, limit?: number): Promise<Array<PinterestPin>> { return; }
|
||||
getMyPins(fields?: string, limit?: number): Promise<Array<PinterestPin>> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -228,7 +234,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyBoards(fields?: string, limit?: number): Promise<Array<PinterestBoard>> { return; }
|
||||
getMyBoards(fields?: string, limit?: number): Promise<Array<PinterestBoard>> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the authenticated user's likes.
|
||||
@@ -239,7 +247,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyLikes(fields?: string, limit?: number): Promise<Array<PinterestPin>> { return; }
|
||||
getMyLikes(fields?: string, limit?: number): Promise<Array<PinterestPin>> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the authenticated user's followers.
|
||||
@@ -250,7 +260,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyFollowers(fields?: string, limit?: number): Promise<Array<PinterestUser>> { return; }
|
||||
getMyFollowers(fields?: string, limit?: number): Promise<Array<PinterestUser>> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the authenticated user's followed boards.
|
||||
@@ -261,7 +273,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyFollowedBoards(fields?: string, limit?: number): Promise<Array<PinterestBoard>> { return; }
|
||||
getMyFollowedBoards(fields?: string, limit?: number): Promise<Array<PinterestBoard>> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the authenticated user's followed interests.
|
||||
@@ -272,7 +286,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMyFollowedInterests(fields?: string, limit?: number): Promise<any> { return; }
|
||||
getMyFollowedInterests(fields?: string, limit?: number): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a user's profile.
|
||||
@@ -284,7 +300,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getUser(username: string, fields?: string): Promise<PinterestUser> { return; }
|
||||
getUser(username: string, fields?: string): Promise<PinterestUser> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a board's data.
|
||||
@@ -296,7 +314,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getBoard(boardId: string, fields?: string): Promise<PinterestBoard> { return; }
|
||||
getBoard(boardId: string, fields?: string): Promise<PinterestBoard> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Pins of a specific board.
|
||||
@@ -309,7 +329,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getBoardPins(boardId: string, fields?: string, limit?: number): Promise<Array<PinterestPin>> { return; }
|
||||
getBoardPins(boardId: string, fields?: string, limit?: number): Promise<Array<PinterestPin>> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a board.
|
||||
@@ -317,7 +339,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* @returns {Promise<PinterestUser>}
|
||||
*/
|
||||
@Cordova()
|
||||
deleteBoard(boardId: string): Promise<any> { return; }
|
||||
deleteBoard(boardId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new board for the authenticated user.
|
||||
@@ -329,7 +353,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
successIndex: 2,
|
||||
errorIndex: 3
|
||||
})
|
||||
createBoard(name: string, desc?: string): Promise<PinterestBoard> { return; }
|
||||
createBoard(name: string, desc?: string): Promise<PinterestBoard> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a Pin by ID.
|
||||
@@ -341,7 +367,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
successIndex: 1,
|
||||
errorIndex: 2
|
||||
})
|
||||
getPin(pinId: string, fields?: string): Promise<PinterestPin> { return; }
|
||||
getPin(pinId: string, fields?: string): Promise<PinterestPin> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a pin
|
||||
@@ -349,7 +377,9 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
deletePin(pinId: string): Promise<any> { return; }
|
||||
deletePin(pinId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Pin
|
||||
@@ -363,6 +393,8 @@ export class Pinterest extends IonicNativePlugin {
|
||||
successIndex: 4,
|
||||
errorIndex: 5
|
||||
})
|
||||
createPin(note: string, boardId: string, imageUrl: string, link?: string): Promise<PinterestPin> { return; }
|
||||
createPin(note: string, boardId: string, imageUrl: string, link?: string): Promise<PinterestPin> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user