mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Revert "chore(package): bump dependencies and lint rules"
This reverts commit 21ad4734fa.
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
Cordova,
|
||||
CordovaProperty,
|
||||
IonicNativePlugin,
|
||||
Plugin
|
||||
} from '@ionic-native/core';
|
||||
import { Plugin, Cordova, CordovaProperty, IonicNativePlugin } from '@ionic-native/core';
|
||||
|
||||
export interface PinterestUser {
|
||||
/**
|
||||
@@ -177,13 +172,13 @@ export interface PinterestPin {
|
||||
plugin: 'cordova-plugin-pinterest',
|
||||
pluginRef: 'cordova.plugins.Pinterest',
|
||||
repo: 'https://github.com/zyramedia/cordova-plugin-pinterest',
|
||||
install:
|
||||
'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID',
|
||||
install: 'ionic cordova plugin add cordova-plugin-pinterest --variable APP_ID=YOUR_APP_ID',
|
||||
installVariables: ['APP_ID'],
|
||||
platforms: ['Android', 'iOS']
|
||||
})
|
||||
@Injectable()
|
||||
export class Pinterest extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Convenience constant for authentication scopes
|
||||
*/
|
||||
@@ -201,9 +196,7 @@ 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
|
||||
@@ -213,9 +206,7 @@ export class Pinterest extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
callbackOrder: 'reverse'
|
||||
})
|
||||
getMe(fields?: string): Promise<PinterestUser> {
|
||||
return;
|
||||
}
|
||||
getMe(fields?: string): Promise<PinterestUser> { return; }
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -226,9 +217,7 @@ 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; }
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -239,9 +228,7 @@ 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.
|
||||
@@ -252,9 +239,7 @@ 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.
|
||||
@@ -265,12 +250,7 @@ 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.
|
||||
@@ -281,12 +261,7 @@ 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.
|
||||
@@ -297,9 +272,7 @@ 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.
|
||||
@@ -311,9 +284,7 @@ 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.
|
||||
@@ -325,9 +296,7 @@ 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.
|
||||
@@ -340,13 +309,7 @@ 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.
|
||||
@@ -354,9 +317,7 @@ 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.
|
||||
@@ -368,9 +329,7 @@ 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.
|
||||
@@ -382,9 +341,7 @@ 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
|
||||
@@ -392,9 +349,7 @@ export class Pinterest extends IonicNativePlugin {
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
deletePin(pinId: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
deletePin(pinId: string): Promise<any> { return; }
|
||||
|
||||
/**
|
||||
* Creates a Pin
|
||||
@@ -408,12 +363,6 @@ 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