@doubao-apps/create 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/36.js +4 -4
- package/dist/template-empty/.ai/examples/common-patterns.md +53 -43
- package/dist/template-empty/.ai/examples/component-basics.md +0 -17
- package/dist/template-empty/.ai/guides/component-development.md +96 -214
- package/dist/template-empty/.ai/guides/system-prompt.md +14 -14
- package/dist/template-empty/.ai/reference/framework-api-quick-ref.md +46 -85
- package/dist/template-empty/.ai/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +13 -13
- package/dist/template-empty/.ai/reference/open-api/{02-storage.md → 02-/345/255/230/345/202/250.md} +13 -21
- package/dist/template-empty/.ai/reference/open-api/{03-router.md → 03-/350/267/257/347/224/261.md} +9 -9
- package/dist/{template-starter/.ai/reference/open-api/04-ui- → template-empty/.ai/reference/open-api/04-/347/225/214/351/235/242-}/344/272/244/344/272/222.md +12 -12
- package/dist/template-empty/.ai/reference/open-api/05-/347/225/214/351/235/242-/350/276/223/345/205/245.md +42 -0
- package/dist/template-empty/.ai/reference/open-api/06-/347/275/221/347/273/234.md +148 -0
- package/dist/template-empty/.ai/reference/open-api/{07-media.md → 07-/345/252/222/344/275/223.md} +8 -8
- package/dist/template-empty/.ai/reference/open-api/{08-open- → 08-/345/274/200/346/224/276/350/203/275/345/212/233-}/344/270/232/345/212/241/350/203/275/345/212/233.md +83 -14
- package/dist/{template-starter/.ai/reference/open-api/09-device-bluetooth.md → template-empty/.ai/reference/open-api/09-/350/256/276/345/244/207-/350/223/235/347/211/231.md} +22 -46
- package/dist/{template-starter/.ai/reference/open-api/10-device-wi-fi.md → template-empty/.ai/reference/open-api/10-/350/256/276/345/244/207-wi-fi.md} +9 -9
- package/dist/template-empty/.ai/reference/open-api/11-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +104 -0
- package/dist/template-empty/.ai/reference/open-api/12-/350/256/276/345/244/207-ibeacon.md +148 -0
- package/dist/template-empty/.ai/reference/open-api/13-/350/256/276/345/244/207-/347/275/227/347/233/230.md +82 -0
- package/dist/template-empty/.ai/reference/open-api/14-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +70 -0
- package/dist/template-empty/.ai/reference/open-api/15-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +104 -0
- package/dist/template-empty/.ai/reference/open-api/16-ui-/350/276/223/345/205/245.md +65 -0
- package/dist/template-empty/.ai/reference/open-api/17-/350/256/276/345/244/207-/347/275/221/347/273/234.md +164 -0
- package/dist/template-empty/.ai/reference/open-api/18-/350/256/276/345/244/207-/347/237/255/344/277/241.md +62 -0
- package/dist/template-empty/.ai/reference/open-api/19-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +43 -0
- package/dist/template-empty/.ai/reference/open-api/20-/350/256/276/345/244/207-/347/224/265/346/261/240.md +83 -0
- package/dist/template-empty/.ai/reference/open-api/21-/350/256/276/345/244/207-/346/227/245/345/216/206.md +215 -0
- package/dist/template-empty/.ai/reference/open-api/22-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +70 -0
- package/dist/template-empty/.ai/reference/open-api/23-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +270 -0
- package/dist/template-empty/.ai/reference/open-api/24-/350/256/276/345/244/207-/345/212/240/345/257/206.md +56 -0
- package/dist/template-empty/.ai/reference/open-api/25-/350/256/276/345/244/207-/347/224/265/350/257/235.md +41 -0
- package/dist/template-empty/.ai/reference/open-api/26-/350/256/276/345/244/207-/346/211/253/347/240/201.md +100 -0
- package/dist/template-empty/.ai/reference/open-api/27-/350/256/276/345/244/207-/345/261/217/345/271/225.md +173 -0
- package/dist/template-empty/.ai/reference/open-api/28-/350/256/276/345/244/207-/351/234/207/345/212/250.md +66 -0
- package/dist/template-empty/.ai/reference/open-api/README.md +27 -11
- package/dist/template-empty/.ai/reference/open-api.md +275 -8
- package/dist/template-empty/.ai/rules/dos-and-donts.md +50 -37
- package/dist/template-empty/AGENTS.md +54 -31
- package/dist/template-empty/README.md +57 -10
- package/dist/template-empty/package.json +2 -2
- package/dist/template-empty/src/app.config.ts +6 -0
- package/dist/template-empty/src/app.ts +0 -6
- package/dist/template-empty/tsconfig.json +2 -0
- package/dist/template-starter/.ai/examples/common-patterns.md +53 -43
- package/dist/template-starter/.ai/examples/component-basics.md +0 -17
- package/dist/template-starter/.ai/guides/component-development.md +96 -214
- package/dist/template-starter/.ai/guides/system-prompt.md +14 -14
- package/dist/template-starter/.ai/reference/framework-api-quick-ref.md +46 -85
- package/dist/template-starter/.ai/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +13 -13
- package/dist/template-starter/.ai/reference/open-api/{02-storage.md → 02-/345/255/230/345/202/250.md} +13 -21
- package/dist/template-starter/.ai/reference/open-api/{03-router.md → 03-/350/267/257/347/224/261.md} +9 -9
- package/dist/{template-empty/.ai/reference/open-api/04-ui- → template-starter/.ai/reference/open-api/04-/347/225/214/351/235/242-}/344/272/244/344/272/222.md +12 -12
- package/dist/template-starter/.ai/reference/open-api/05-/347/225/214/351/235/242-/350/276/223/345/205/245.md +42 -0
- package/dist/template-starter/.ai/reference/open-api/06-/347/275/221/347/273/234.md +148 -0
- package/dist/template-starter/.ai/reference/open-api/{07-media.md → 07-/345/252/222/344/275/223.md} +8 -8
- package/dist/template-starter/.ai/reference/open-api/{08-open- → 08-/345/274/200/346/224/276/350/203/275/345/212/233-}/344/270/232/345/212/241/350/203/275/345/212/233.md +83 -14
- package/dist/{template-empty/.ai/reference/open-api/09-device-bluetooth.md → template-starter/.ai/reference/open-api/09-/350/256/276/345/244/207-/350/223/235/347/211/231.md} +22 -46
- package/dist/{template-empty/.ai/reference/open-api/10-device-wi-fi.md → template-starter/.ai/reference/open-api/10-/350/256/276/345/244/207-wi-fi.md} +9 -9
- package/dist/template-starter/.ai/reference/open-api/11-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +104 -0
- package/dist/template-starter/.ai/reference/open-api/12-/350/256/276/345/244/207-ibeacon.md +148 -0
- package/dist/template-starter/.ai/reference/open-api/13-/350/256/276/345/244/207-/347/275/227/347/233/230.md +82 -0
- package/dist/template-starter/.ai/reference/open-api/14-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +70 -0
- package/dist/template-starter/.ai/reference/open-api/15-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +104 -0
- package/dist/template-starter/.ai/reference/open-api/16-ui-/350/276/223/345/205/245.md +65 -0
- package/dist/template-starter/.ai/reference/open-api/17-/350/256/276/345/244/207-/347/275/221/347/273/234.md +164 -0
- package/dist/template-starter/.ai/reference/open-api/18-/350/256/276/345/244/207-/347/237/255/344/277/241.md +62 -0
- package/dist/template-starter/.ai/reference/open-api/19-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +43 -0
- package/dist/template-starter/.ai/reference/open-api/20-/350/256/276/345/244/207-/347/224/265/346/261/240.md +83 -0
- package/dist/template-starter/.ai/reference/open-api/21-/350/256/276/345/244/207-/346/227/245/345/216/206.md +215 -0
- package/dist/template-starter/.ai/reference/open-api/22-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +70 -0
- package/dist/template-starter/.ai/reference/open-api/23-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +270 -0
- package/dist/template-starter/.ai/reference/open-api/24-/350/256/276/345/244/207-/345/212/240/345/257/206.md +56 -0
- package/dist/template-starter/.ai/reference/open-api/25-/350/256/276/345/244/207-/347/224/265/350/257/235.md +41 -0
- package/dist/template-starter/.ai/reference/open-api/26-/350/256/276/345/244/207-/346/211/253/347/240/201.md +100 -0
- package/dist/template-starter/.ai/reference/open-api/27-/350/256/276/345/244/207-/345/261/217/345/271/225.md +173 -0
- package/dist/template-starter/.ai/reference/open-api/28-/350/256/276/345/244/207-/351/234/207/345/212/250.md +66 -0
- package/dist/template-starter/.ai/reference/open-api/README.md +27 -11
- package/dist/template-starter/.ai/reference/open-api.md +275 -8
- package/dist/template-starter/.ai/rules/dos-and-donts.md +50 -37
- package/dist/template-starter/AGENTS.md +54 -31
- package/dist/template-starter/README.md +6 -1
- package/dist/template-starter/package.json +2 -2
- package/dist/template-starter/src/app.config.ts +35 -0
- package/dist/template-starter/src/app.ts +0 -6
- package/dist/template-starter/src/pages/applet/index.tsx +0 -5
- package/dist/template-starter/src/pages/home/index.tsx +0 -5
- package/dist/template-starter/src/pages/lynx/index.tsx +0 -4
- package/dist/template-starter/src/pages/react-lynx/index.tsx +0 -5
- package/dist/template-starter/src/widgets/weather-card/index.tsx +0 -4
- package/dist/template-starter/tsconfig.json +2 -0
- package/package.json +1 -1
- package/dist/template-empty/.ai/reference/open-api/05-ui-/350/276/223/345/205/245.md +0 -95
- package/dist/template-empty/.ai/reference/open-api/06-network.md +0 -298
- package/dist/template-empty/.ai/reference/open-api/11-device-/344/274/240/346/204/237/345/231/250.md +0 -372
- package/dist/template-empty/.ai/reference/open-api/12-device-/346/234/254/345/234/260/350/203/275/345/212/233.md +0 -1005
- package/dist/template-starter/.ai/reference/open-api/05-ui-/350/276/223/345/205/245.md +0 -95
- package/dist/template-starter/.ai/reference/open-api/06-network.md +0 -298
- package/dist/template-starter/.ai/reference/open-api/11-device-/344/274/240/346/204/237/345/231/250.md +0 -372
- package/dist/template-starter/.ai/reference/open-api/12-device-/346/234/254/345/234/260/350/203/275/345/212/233.md +0 -1005
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# Open API: 设备 / 日历
|
|
2
|
+
|
|
3
|
+
向系统日历添加事件和重复事件。
|
|
4
|
+
|
|
5
|
+
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
+
|
|
7
|
+
## 速查
|
|
8
|
+
|
|
9
|
+
| API | 说明 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [addPhoneCalendar](#addphonecalendar) | 向系统日历添加事件。 |
|
|
12
|
+
| [addPhoneRepeatCalendar](#addphonerepeatcalendar) | 向系统日历添加重复事件。 |
|
|
13
|
+
|
|
14
|
+
## API 详情
|
|
15
|
+
|
|
16
|
+
<a id="addphonecalendar"></a>
|
|
17
|
+
### addPhoneCalendar()
|
|
18
|
+
|
|
19
|
+
> **addPhoneCalendar**(`params`): `Promise`\<`object`\>
|
|
20
|
+
|
|
21
|
+
向系统日历添加事件。
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
• **params**: [`AddPhoneCalendarParams`](#addphonecalendarparams)
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`object`\>
|
|
30
|
+
|
|
31
|
+
<a id="addphonerepeatcalendar"></a>
|
|
32
|
+
### addPhoneRepeatCalendar()
|
|
33
|
+
|
|
34
|
+
> **addPhoneRepeatCalendar**(`params`): `Promise`\<`object`\>
|
|
35
|
+
|
|
36
|
+
向系统日历添加重复事件。
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
• **params**: [`AddPhoneRepeatCalendarParams`](#addphonerepeatcalendarparams)
|
|
41
|
+
|
|
42
|
+
#### Returns
|
|
43
|
+
|
|
44
|
+
`Promise`\<`object`\>
|
|
45
|
+
|
|
46
|
+
## 相关类型
|
|
47
|
+
|
|
48
|
+
<a id="addphonecalendarparams"></a>
|
|
49
|
+
### AddPhoneCalendarParams
|
|
50
|
+
|
|
51
|
+
添加系统日历事件的请求参数。
|
|
52
|
+
|
|
53
|
+
#### Extended by
|
|
54
|
+
|
|
55
|
+
- [`AddPhoneRepeatCalendarParams`](#addphonerepeatcalendarparams)
|
|
56
|
+
|
|
57
|
+
#### Properties
|
|
58
|
+
|
|
59
|
+
##### alarm?
|
|
60
|
+
|
|
61
|
+
> `optional` **alarm**: `boolean`
|
|
62
|
+
|
|
63
|
+
是否提醒。
|
|
64
|
+
|
|
65
|
+
##### alarmOffset?
|
|
66
|
+
|
|
67
|
+
> `optional` **alarmOffset**: `number`
|
|
68
|
+
|
|
69
|
+
提前提醒时间,单位秒。
|
|
70
|
+
|
|
71
|
+
##### allDay?
|
|
72
|
+
|
|
73
|
+
> `optional` **allDay**: `boolean`
|
|
74
|
+
|
|
75
|
+
是否为全天事件。
|
|
76
|
+
|
|
77
|
+
##### description?
|
|
78
|
+
|
|
79
|
+
> `optional` **description**: `string`
|
|
80
|
+
|
|
81
|
+
事件描述。
|
|
82
|
+
|
|
83
|
+
##### endTime?
|
|
84
|
+
|
|
85
|
+
> `optional` **endTime**: `number`
|
|
86
|
+
|
|
87
|
+
结束时间的 Unix 秒级时间戳。
|
|
88
|
+
|
|
89
|
+
##### location?
|
|
90
|
+
|
|
91
|
+
> `optional` **location**: `string`
|
|
92
|
+
|
|
93
|
+
事件位置。
|
|
94
|
+
|
|
95
|
+
##### startTime
|
|
96
|
+
|
|
97
|
+
> **startTime**: `number`
|
|
98
|
+
|
|
99
|
+
开始时间的 Unix 秒级时间戳。
|
|
100
|
+
|
|
101
|
+
##### title
|
|
102
|
+
|
|
103
|
+
> **title**: `string`
|
|
104
|
+
|
|
105
|
+
日历事件标题。
|
|
106
|
+
|
|
107
|
+
<a id="addphonerepeatcalendarparams"></a>
|
|
108
|
+
### AddPhoneRepeatCalendarParams
|
|
109
|
+
|
|
110
|
+
添加重复日历事件的请求参数。
|
|
111
|
+
|
|
112
|
+
#### Extends
|
|
113
|
+
|
|
114
|
+
- [`AddPhoneCalendarParams`](#addphonecalendarparams)
|
|
115
|
+
|
|
116
|
+
#### Properties
|
|
117
|
+
|
|
118
|
+
##### alarm?
|
|
119
|
+
|
|
120
|
+
> `optional` **alarm**: `boolean`
|
|
121
|
+
|
|
122
|
+
是否提醒。
|
|
123
|
+
|
|
124
|
+
###### Inherited from
|
|
125
|
+
|
|
126
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`alarm`](#alarm)
|
|
127
|
+
|
|
128
|
+
##### alarmOffset?
|
|
129
|
+
|
|
130
|
+
> `optional` **alarmOffset**: `number`
|
|
131
|
+
|
|
132
|
+
提前提醒时间,单位秒。
|
|
133
|
+
|
|
134
|
+
###### Inherited from
|
|
135
|
+
|
|
136
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`alarmOffset`](#alarmoffset)
|
|
137
|
+
|
|
138
|
+
##### allDay?
|
|
139
|
+
|
|
140
|
+
> `optional` **allDay**: `boolean`
|
|
141
|
+
|
|
142
|
+
是否为全天事件。
|
|
143
|
+
|
|
144
|
+
###### Inherited from
|
|
145
|
+
|
|
146
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`allDay`](#allday)
|
|
147
|
+
|
|
148
|
+
##### description?
|
|
149
|
+
|
|
150
|
+
> `optional` **description**: `string`
|
|
151
|
+
|
|
152
|
+
事件描述。
|
|
153
|
+
|
|
154
|
+
###### Inherited from
|
|
155
|
+
|
|
156
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`description`](#description)
|
|
157
|
+
|
|
158
|
+
##### endTime?
|
|
159
|
+
|
|
160
|
+
> `optional` **endTime**: `number`
|
|
161
|
+
|
|
162
|
+
结束时间的 Unix 秒级时间戳。
|
|
163
|
+
|
|
164
|
+
###### Inherited from
|
|
165
|
+
|
|
166
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`endTime`](#endtime)
|
|
167
|
+
|
|
168
|
+
##### location?
|
|
169
|
+
|
|
170
|
+
> `optional` **location**: `string`
|
|
171
|
+
|
|
172
|
+
事件位置。
|
|
173
|
+
|
|
174
|
+
###### Inherited from
|
|
175
|
+
|
|
176
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`location`](#location)
|
|
177
|
+
|
|
178
|
+
##### repeatEndTime?
|
|
179
|
+
|
|
180
|
+
> `optional` **repeatEndTime**: `number`
|
|
181
|
+
|
|
182
|
+
重复结束时间的 Unix 秒级时间戳。
|
|
183
|
+
|
|
184
|
+
##### repeatInterval?
|
|
185
|
+
|
|
186
|
+
> `optional` **repeatInterval**: [`CalendarRepeatInterval`](#calendarrepeatinterval)
|
|
187
|
+
|
|
188
|
+
重复周期。
|
|
189
|
+
|
|
190
|
+
##### startTime
|
|
191
|
+
|
|
192
|
+
> **startTime**: `number`
|
|
193
|
+
|
|
194
|
+
开始时间的 Unix 秒级时间戳。
|
|
195
|
+
|
|
196
|
+
###### Inherited from
|
|
197
|
+
|
|
198
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`startTime`](#starttime)
|
|
199
|
+
|
|
200
|
+
##### title
|
|
201
|
+
|
|
202
|
+
> **title**: `string`
|
|
203
|
+
|
|
204
|
+
日历事件标题。
|
|
205
|
+
|
|
206
|
+
###### Inherited from
|
|
207
|
+
|
|
208
|
+
[`AddPhoneCalendarParams`](#addphonecalendarparams).[`title`](#title)
|
|
209
|
+
|
|
210
|
+
<a id="calendarrepeatinterval"></a>
|
|
211
|
+
### CalendarRepeatInterval
|
|
212
|
+
|
|
213
|
+
> **CalendarRepeatInterval**: `"day"` \| `"week"` \| `"month"` \| `"year"`
|
|
214
|
+
|
|
215
|
+
日历重复周期。
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Open API: 设备 / 剪贴板
|
|
2
|
+
|
|
3
|
+
读取和设置系统剪贴板内容。
|
|
4
|
+
|
|
5
|
+
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
+
|
|
7
|
+
## 速查
|
|
8
|
+
|
|
9
|
+
| API | 说明 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [getClipboardData](#getclipboarddata) | 获取剪贴板内容。 |
|
|
12
|
+
| [setClipboardData](#setclipboarddata) | 设置系统剪贴板内容。 |
|
|
13
|
+
|
|
14
|
+
## API 详情
|
|
15
|
+
|
|
16
|
+
<a id="getclipboarddata"></a>
|
|
17
|
+
### getClipboardData()
|
|
18
|
+
|
|
19
|
+
> **getClipboardData**(`params`?): `Promise`\<[`GetClipboardDataResult`](#getclipboarddataresult)\>
|
|
20
|
+
|
|
21
|
+
获取剪贴板内容。
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
• **params?**
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<[`GetClipboardDataResult`](#getclipboarddataresult)\>
|
|
30
|
+
|
|
31
|
+
<a id="setclipboarddata"></a>
|
|
32
|
+
### setClipboardData()
|
|
33
|
+
|
|
34
|
+
> **setClipboardData**(`params`): `Promise`\<`object`\>
|
|
35
|
+
|
|
36
|
+
设置系统剪贴板内容。
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
• **params**: [`SetClipboardDataParams`](#setclipboarddataparams)
|
|
41
|
+
|
|
42
|
+
#### Returns
|
|
43
|
+
|
|
44
|
+
`Promise`\<`object`\>
|
|
45
|
+
|
|
46
|
+
## 相关类型
|
|
47
|
+
|
|
48
|
+
<a id="getclipboarddataresult"></a>
|
|
49
|
+
### GetClipboardDataResult
|
|
50
|
+
|
|
51
|
+
剪贴板读取结果。
|
|
52
|
+
|
|
53
|
+
#### Properties
|
|
54
|
+
|
|
55
|
+
##### data
|
|
56
|
+
|
|
57
|
+
> **data**: `string`
|
|
58
|
+
|
|
59
|
+
当前剪贴板内容。
|
|
60
|
+
|
|
61
|
+
<a id="setclipboarddataparams"></a>
|
|
62
|
+
### SetClipboardDataParams
|
|
63
|
+
|
|
64
|
+
#### Properties
|
|
65
|
+
|
|
66
|
+
##### data
|
|
67
|
+
|
|
68
|
+
> **data**: `string`
|
|
69
|
+
|
|
70
|
+
需要设置的剪贴板内容
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# Open API: 设备 / 联系人
|
|
2
|
+
|
|
3
|
+
选择和添加手机联系人。
|
|
4
|
+
|
|
5
|
+
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
+
|
|
7
|
+
## 速查
|
|
8
|
+
|
|
9
|
+
| API | 说明 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [chooseContact](#choosecontact) | 选择手机联系人。 |
|
|
12
|
+
| [addPhoneContact](#addphonecontact) | 添加手机联系人。 |
|
|
13
|
+
|
|
14
|
+
## API 详情
|
|
15
|
+
|
|
16
|
+
<a id="choosecontact"></a>
|
|
17
|
+
### chooseContact()
|
|
18
|
+
|
|
19
|
+
> **chooseContact**(`params`?): `Promise`\<[`ChooseContactResult`](#choosecontactresult)\>
|
|
20
|
+
|
|
21
|
+
选择手机联系人。
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
• **params?**
|
|
26
|
+
|
|
27
|
+
#### Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<[`ChooseContactResult`](#choosecontactresult)\>
|
|
30
|
+
|
|
31
|
+
<a id="addphonecontact"></a>
|
|
32
|
+
### addPhoneContact()
|
|
33
|
+
|
|
34
|
+
> **addPhoneContact**(`params`): `Promise`\<`object`\>
|
|
35
|
+
|
|
36
|
+
添加手机联系人。
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
• **params**: [`AddPhoneContactParams`](#addphonecontactparams)
|
|
41
|
+
|
|
42
|
+
#### Returns
|
|
43
|
+
|
|
44
|
+
`Promise`\<`object`\>
|
|
45
|
+
|
|
46
|
+
## 相关类型
|
|
47
|
+
|
|
48
|
+
<a id="choosecontactresult"></a>
|
|
49
|
+
### ChooseContactResult
|
|
50
|
+
|
|
51
|
+
选取联系人后的返回结果。
|
|
52
|
+
|
|
53
|
+
#### Properties
|
|
54
|
+
|
|
55
|
+
##### displayName
|
|
56
|
+
|
|
57
|
+
> **displayName**: `string`
|
|
58
|
+
|
|
59
|
+
联系人名称。
|
|
60
|
+
|
|
61
|
+
##### phoneNumber
|
|
62
|
+
|
|
63
|
+
> **phoneNumber**: `string`
|
|
64
|
+
|
|
65
|
+
选中的手机号。
|
|
66
|
+
|
|
67
|
+
##### phoneNumberList
|
|
68
|
+
|
|
69
|
+
> **phoneNumberList**: `string`[]
|
|
70
|
+
|
|
71
|
+
联系人所有手机号。
|
|
72
|
+
|
|
73
|
+
<a id="addphonecontactparams"></a>
|
|
74
|
+
### AddPhoneContactParams
|
|
75
|
+
|
|
76
|
+
添加手机联系人的请求参数。
|
|
77
|
+
|
|
78
|
+
#### Properties
|
|
79
|
+
|
|
80
|
+
##### addressCity?
|
|
81
|
+
|
|
82
|
+
> `optional` **addressCity**: `string`
|
|
83
|
+
|
|
84
|
+
家庭地址城市。
|
|
85
|
+
|
|
86
|
+
##### addressCountry?
|
|
87
|
+
|
|
88
|
+
> `optional` **addressCountry**: `string`
|
|
89
|
+
|
|
90
|
+
家庭地址国家。
|
|
91
|
+
|
|
92
|
+
##### addressPostalCode?
|
|
93
|
+
|
|
94
|
+
> `optional` **addressPostalCode**: `string`
|
|
95
|
+
|
|
96
|
+
家庭地址邮编。
|
|
97
|
+
|
|
98
|
+
##### addressState?
|
|
99
|
+
|
|
100
|
+
> `optional` **addressState**: `string`
|
|
101
|
+
|
|
102
|
+
家庭地址省份。
|
|
103
|
+
|
|
104
|
+
##### addressStreet?
|
|
105
|
+
|
|
106
|
+
> `optional` **addressStreet**: `string`
|
|
107
|
+
|
|
108
|
+
家庭地址街道。
|
|
109
|
+
|
|
110
|
+
##### email?
|
|
111
|
+
|
|
112
|
+
> `optional` **email**: `string`
|
|
113
|
+
|
|
114
|
+
电子邮件。
|
|
115
|
+
|
|
116
|
+
##### firstName
|
|
117
|
+
|
|
118
|
+
> **firstName**: `string`
|
|
119
|
+
|
|
120
|
+
名字。
|
|
121
|
+
|
|
122
|
+
##### homeAddressCity?
|
|
123
|
+
|
|
124
|
+
> `optional` **homeAddressCity**: `string`
|
|
125
|
+
|
|
126
|
+
家庭地址城市。
|
|
127
|
+
|
|
128
|
+
##### homeAddressCountry?
|
|
129
|
+
|
|
130
|
+
> `optional` **homeAddressCountry**: `string`
|
|
131
|
+
|
|
132
|
+
家庭地址国家。
|
|
133
|
+
|
|
134
|
+
##### homeAddressPostalCode?
|
|
135
|
+
|
|
136
|
+
> `optional` **homeAddressPostalCode**: `string`
|
|
137
|
+
|
|
138
|
+
家庭地址邮编。
|
|
139
|
+
|
|
140
|
+
##### homeAddressState?
|
|
141
|
+
|
|
142
|
+
> `optional` **homeAddressState**: `string`
|
|
143
|
+
|
|
144
|
+
家庭地址省份。
|
|
145
|
+
|
|
146
|
+
##### homeAddressStreet?
|
|
147
|
+
|
|
148
|
+
> `optional` **homeAddressStreet**: `string`
|
|
149
|
+
|
|
150
|
+
家庭地址街道。
|
|
151
|
+
|
|
152
|
+
##### homeFaxNumber?
|
|
153
|
+
|
|
154
|
+
> `optional` **homeFaxNumber**: `string`
|
|
155
|
+
|
|
156
|
+
家庭传真。
|
|
157
|
+
|
|
158
|
+
##### homePhoneNumber?
|
|
159
|
+
|
|
160
|
+
> `optional` **homePhoneNumber**: `string`
|
|
161
|
+
|
|
162
|
+
家庭电话。
|
|
163
|
+
|
|
164
|
+
##### hostNumber?
|
|
165
|
+
|
|
166
|
+
> `optional` **hostNumber**: `string`
|
|
167
|
+
|
|
168
|
+
公司电话。
|
|
169
|
+
|
|
170
|
+
##### lastName?
|
|
171
|
+
|
|
172
|
+
> `optional` **lastName**: `string`
|
|
173
|
+
|
|
174
|
+
姓。
|
|
175
|
+
|
|
176
|
+
##### middleName?
|
|
177
|
+
|
|
178
|
+
> `optional` **middleName**: `string`
|
|
179
|
+
|
|
180
|
+
中间名。
|
|
181
|
+
|
|
182
|
+
##### mobilePhoneNumber?
|
|
183
|
+
|
|
184
|
+
> `optional` **mobilePhoneNumber**: `string`
|
|
185
|
+
|
|
186
|
+
手机号。
|
|
187
|
+
|
|
188
|
+
##### nickName?
|
|
189
|
+
|
|
190
|
+
> `optional` **nickName**: `string`
|
|
191
|
+
|
|
192
|
+
昵称。
|
|
193
|
+
|
|
194
|
+
##### organization?
|
|
195
|
+
|
|
196
|
+
> `optional` **organization**: `string`
|
|
197
|
+
|
|
198
|
+
公司。
|
|
199
|
+
|
|
200
|
+
##### photoFilePath?
|
|
201
|
+
|
|
202
|
+
> `optional` **photoFilePath**: `string`
|
|
203
|
+
|
|
204
|
+
头像文件路径。
|
|
205
|
+
|
|
206
|
+
##### remark?
|
|
207
|
+
|
|
208
|
+
> `optional` **remark**: `string`
|
|
209
|
+
|
|
210
|
+
备注。
|
|
211
|
+
|
|
212
|
+
##### title?
|
|
213
|
+
|
|
214
|
+
> `optional` **title**: `string`
|
|
215
|
+
|
|
216
|
+
职位。
|
|
217
|
+
|
|
218
|
+
##### url?
|
|
219
|
+
|
|
220
|
+
> `optional` **url**: `string`
|
|
221
|
+
|
|
222
|
+
个人网站。
|
|
223
|
+
|
|
224
|
+
##### weChatNumber?
|
|
225
|
+
|
|
226
|
+
> `optional` **weChatNumber**: `string`
|
|
227
|
+
|
|
228
|
+
微信号。
|
|
229
|
+
|
|
230
|
+
##### workAddressCity?
|
|
231
|
+
|
|
232
|
+
> `optional` **workAddressCity**: `string`
|
|
233
|
+
|
|
234
|
+
工作地址城市。
|
|
235
|
+
|
|
236
|
+
##### workAddressCountry?
|
|
237
|
+
|
|
238
|
+
> `optional` **workAddressCountry**: `string`
|
|
239
|
+
|
|
240
|
+
工作地址国家。
|
|
241
|
+
|
|
242
|
+
##### workAddressPostalCode?
|
|
243
|
+
|
|
244
|
+
> `optional` **workAddressPostalCode**: `string`
|
|
245
|
+
|
|
246
|
+
工作地址邮编。
|
|
247
|
+
|
|
248
|
+
##### workAddressState?
|
|
249
|
+
|
|
250
|
+
> `optional` **workAddressState**: `string`
|
|
251
|
+
|
|
252
|
+
工作地址省份。
|
|
253
|
+
|
|
254
|
+
##### workAddressStreet?
|
|
255
|
+
|
|
256
|
+
> `optional` **workAddressStreet**: `string`
|
|
257
|
+
|
|
258
|
+
工作地址街道。
|
|
259
|
+
|
|
260
|
+
##### workFaxNumber?
|
|
261
|
+
|
|
262
|
+
> `optional` **workFaxNumber**: `string`
|
|
263
|
+
|
|
264
|
+
工作传真。
|
|
265
|
+
|
|
266
|
+
##### workPhoneNumber?
|
|
267
|
+
|
|
268
|
+
> `optional` **workPhoneNumber**: `string`
|
|
269
|
+
|
|
270
|
+
工作电话。
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Open API: 设备 / 加密
|
|
2
|
+
|
|
3
|
+
安全随机数能力。
|
|
4
|
+
|
|
5
|
+
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
+
|
|
7
|
+
## 速查
|
|
8
|
+
|
|
9
|
+
| API | 说明 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [getRandomValues](#getrandomvalues) | 获取安全随机数。 |
|
|
12
|
+
|
|
13
|
+
## API 详情
|
|
14
|
+
|
|
15
|
+
<a id="getrandomvalues"></a>
|
|
16
|
+
### getRandomValues()
|
|
17
|
+
|
|
18
|
+
> **getRandomValues**(`params`): `Promise`\<[`GetRandomValuesResult`](#getrandomvaluesresult)\>
|
|
19
|
+
|
|
20
|
+
获取安全随机数。
|
|
21
|
+
|
|
22
|
+
#### Parameters
|
|
23
|
+
|
|
24
|
+
• **params**: [`GetRandomValuesParams`](#getrandomvaluesparams)
|
|
25
|
+
|
|
26
|
+
#### Returns
|
|
27
|
+
|
|
28
|
+
`Promise`\<[`GetRandomValuesResult`](#getrandomvaluesresult)\>
|
|
29
|
+
|
|
30
|
+
## 相关类型
|
|
31
|
+
|
|
32
|
+
<a id="getrandomvaluesparams"></a>
|
|
33
|
+
### GetRandomValuesParams
|
|
34
|
+
|
|
35
|
+
获取安全随机数的请求参数。
|
|
36
|
+
|
|
37
|
+
#### Properties
|
|
38
|
+
|
|
39
|
+
##### length
|
|
40
|
+
|
|
41
|
+
> **length**: `number`
|
|
42
|
+
|
|
43
|
+
需要生成的字节数。
|
|
44
|
+
|
|
45
|
+
<a id="getrandomvaluesresult"></a>
|
|
46
|
+
### GetRandomValuesResult
|
|
47
|
+
|
|
48
|
+
获取安全随机数的返回结果。
|
|
49
|
+
|
|
50
|
+
#### Properties
|
|
51
|
+
|
|
52
|
+
##### randomValues
|
|
53
|
+
|
|
54
|
+
> **randomValues**: `ArrayBuffer`
|
|
55
|
+
|
|
56
|
+
生成的随机字节。
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Open API: 设备 / 电话
|
|
2
|
+
|
|
3
|
+
拨打电话。
|
|
4
|
+
|
|
5
|
+
[返回目录](./README.md) | [返回速查](../open-api.md)
|
|
6
|
+
|
|
7
|
+
## 速查
|
|
8
|
+
|
|
9
|
+
| API | 说明 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| [makePhoneCall](#makephonecall) | 拨打电话。 |
|
|
12
|
+
|
|
13
|
+
## API 详情
|
|
14
|
+
|
|
15
|
+
<a id="makephonecall"></a>
|
|
16
|
+
### makePhoneCall()
|
|
17
|
+
|
|
18
|
+
> **makePhoneCall**(`params`): `Promise`\<`object`\>
|
|
19
|
+
|
|
20
|
+
拨打电话。
|
|
21
|
+
|
|
22
|
+
#### Parameters
|
|
23
|
+
|
|
24
|
+
• **params**: [`MakePhoneCallParams`](#makephonecallparams)
|
|
25
|
+
|
|
26
|
+
#### Returns
|
|
27
|
+
|
|
28
|
+
`Promise`\<`object`\>
|
|
29
|
+
|
|
30
|
+
## 相关类型
|
|
31
|
+
|
|
32
|
+
<a id="makephonecallparams"></a>
|
|
33
|
+
### MakePhoneCallParams
|
|
34
|
+
|
|
35
|
+
#### Properties
|
|
36
|
+
|
|
37
|
+
##### phoneNumber
|
|
38
|
+
|
|
39
|
+
> **phoneNumber**: `string`
|
|
40
|
+
|
|
41
|
+
需要拨打的电话号码
|