-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.d.ts
129 lines (129 loc) · 3.64 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { IonicNativePlugin } from '@ionic-native/core';
export declare class KakaoCordovaSDK extends IonicNativePlugin {
login(loginOptions: any): Promise<any>;
logout(): Promise<any>;
unlinkApp(): Promise<any>;
getAccessToken(): Promise<string>;
requestMe(): Promise<string>;
updateScopes(targetScopes: any): Promise<string>;
checkScopeStatus(targetScopes: any): Promise<string>;
requestSendMemo(builder: any): Promise<string>;
addPlusFriend(params: any): Promise<string>;
chatPlusFriend(params: any): Promise<string>;
chatPlusFriendUrl(params: any): Promise<string>;
sendLinkFeed(feedTemplate: KLFeedTemplate): Promise<string>;
sendLinkList(listTemplate: KLListTemplate): Promise<string>;
sendLinkLocation(locationTemplate: KLLocationTemplate): Promise<string>;
sendLinkCommerce(listTemplate: KLCommerceTemplate): Promise<string>;
sendLinkText(textTemplate: KLTextTemplate): Promise<string>;
sendLinkScrap(scrapTemplate: KLScrapTemplate): Promise<string>;
sendLinkCustom(customTemplate: KLCustomTemplate): Promise<string>;
uploadImage(uploadImageConfig: KLUploadImageConfig): Promise<string>;
deleteUploadedImage(deleteImageConfig: KLDeleteImageConfig): Promise<string>;
postStory(postStoryConfig: KLPostStoryConfig): Promise<string>;
}
export declare enum ScrapType {
ScrapTypeNone = 0,
ScrapTypeWebsite,
ScrapTypeVideo,
ScrapTypeMusic,
ScrapTypeBook,
ScrapTypeArticle,
ScrapTypeProfile,
}
export interface KLPostStoryUrlInfo {
title: string;
desc?: string;
imageURLs?: string[];
type?: ScrapType;
}
export interface KLPostStoryConfig {
post: string;
appid?: string;
appver: string;
appname?: string;
urlinfo?: KLPostStoryUrlInfo;
}
export interface KLDeleteImageConfig {
url: string;
}
export interface KLUploadImageConfig {
fileOrUrl: 'file' | 'url';
url?: string;
}
export interface KLCustomTemplate {
templateId: string;
arguments?: any;
}
export interface KLScrapTemplate {
url: string;
}
export interface KLTextTemplate {
text: string;
link: KLLinkObject;
buttonTitle?: string;
buttons?: KLButtonObject[];
}
export interface KLCommerceTemplate {
content: KLContentObject;
commerce: KLCommerceObject;
buttonTitle?: string;
buttons?: KLButtonObject[];
}
export interface KLLocationTemplate {
address: string;
content: KLContentObject;
addressTitle?: string;
social?: KLSocialObject;
buttonTitle?: string;
buttons?: KLButtonObject[];
}
export interface KLListTemplate {
headerTitle: string;
headerLink: KLLinkObject;
contents: KLContentObject[];
buttonTitle?: string;
buttons?: KLButtonObject[];
}
export interface KLFeedTemplate {
content: KLContentObject;
social?: KLSocialObject;
buttonTitle?: string;
buttons?: KLButtonObject[];
}
export interface KLContentObject {
title: string;
link: KLLinkObject;
imageURL: string;
desc?: string;
imageWidth?: string;
imageHeight?: string;
}
export interface KLLinkObject {
webURL?: string;
mobileWebURL?: string;
androidExecutionParams?: string;
iosExecutionParams?: string;
}
export interface KLSocialObject {
likeCount?: number;
commentCount?: number;
sharedCount?: number;
viewCount?: number;
subscriberCount?: number;
}
export interface KLButtonObject {
title: string;
link: KLLinkObject;
}
export interface KLCommerceObject {
regularPrice: number;
discountPrice?: number;
discountRate?: number;
fixedDiscountPrice?: number;
}
export declare enum AuthTypes {
AuthTypeTalk = 1,
AuthTypeStory,
AuthTypeAccount,
}