@dcloudio/uni-app-x 0.7.121 → 0.7.122

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.
Files changed (110) hide show
  1. package/README.md +87 -0
  2. package/package.json +1 -1
  3. package/types/dom2-internal/UniCommon.d.ts +7 -2
  4. package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
  5. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  6. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  7. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  8. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  9. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
  11. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
  12. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
  13. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  14. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  15. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
  16. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
  18. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
  19. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
  20. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
  21. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  22. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  23. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  24. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  25. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  26. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  27. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  28. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
  30. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  31. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  32. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  33. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
  34. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
  35. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
  36. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  37. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  38. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  39. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  40. package/types/uni/uts-plugin-biz/global.d.ts +9 -0
  41. package/types/uni/uts-plugin-biz/index.d.ts +9 -0
  42. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  44. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  45. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
  46. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
  47. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  48. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
  49. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
  50. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  51. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
  52. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
  53. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
  54. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  56. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  57. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  58. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  59. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  60. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  61. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  62. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  63. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  65. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
  67. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  70. package/types/uni/uts-plugin-component/global.d.ts +8 -1
  71. package/types/uni/uts-plugin-component/index.d.ts +8 -1
  72. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  73. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  74. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  75. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
  76. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
  77. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
  78. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  79. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  80. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
  81. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
  82. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
  83. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
  86. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
  87. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  88. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  90. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  91. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  92. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  93. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  94. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  95. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
  96. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  97. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  98. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  99. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
  100. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
  101. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
  102. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  103. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  104. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  105. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
  107. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
  108. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
  109. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
  110. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
@@ -0,0 +1,944 @@
1
+ export type CalendarRepeatInterval =
2
+ /**
3
+ * 每天重复
4
+ */
5
+ 'day' |
6
+ /**
7
+ * 每周重复
8
+ */
9
+ 'week' |
10
+ /**
11
+ * 每月重复。该模式日期不能大于 28 日
12
+ */
13
+ 'month' |
14
+ /**
15
+ * 每年重复
16
+ */
17
+ 'year'
18
+
19
+ /**
20
+ * 错误码
21
+ */
22
+ export type CalendarErrorCode =
23
+ /**
24
+ * title is required
25
+ */
26
+ 601 |
27
+ /**
28
+ * startTime is invalid
29
+ */
30
+ 602 |
31
+ /**
32
+ * endTime is invalid
33
+ */
34
+ 603 |
35
+ /**
36
+ * alarmOffset requires alarm
37
+ */
38
+ 604 |
39
+ /**
40
+ * repeat rule is invalid
41
+ */
42
+ 606 |
43
+ /**
44
+ * calendar service is unavailable
45
+ */
46
+ 607 |
47
+ /**
48
+ * add calendar event failed
49
+ */
50
+ 608 |
51
+ /**
52
+ * calendar creation canceled
53
+ */
54
+ 609
55
+
56
+ export interface ICalendarError extends IUniError {
57
+ errCode : CalendarErrorCode
58
+ }
59
+
60
+ export type CalendarSuccess = {
61
+ errMsg ?: string | null
62
+ }
63
+
64
+ export type CalendarFail = ICalendarError
65
+ export type CalendarSuccessCallback = (res : CalendarSuccess) => void
66
+ export type CalendarFailCallback = (res : CalendarFail) => void
67
+ export type CalendarComplete = CalendarSuccess | CalendarFail
68
+ export type CalendarCompleteCallback = (res : CalendarComplete) => void
69
+
70
+ export type AddPhoneCalendarOptions = {
71
+ /**
72
+ * 日历事件标题
73
+ * @uniPlatform {
74
+ "app": {
75
+ "android": {
76
+ "uniVer": "x",
77
+ "unixVer": "5.08"
78
+ },
79
+ "ios": {
80
+ "uniVer": "x",
81
+ "unixVer": "5.08",
82
+ },
83
+ "harmony": {
84
+ "uniVer": "x",
85
+ "unixVer": "5.08",
86
+ "unixVaporVer": "5.08"
87
+ }
88
+ },
89
+ "mp": {
90
+ "weixin": {
91
+ "uniVer": "√",
92
+ "unixVer": "√"
93
+ }
94
+ },
95
+ "web": {
96
+ "uniVer": "x",
97
+ "unixVer": "x"
98
+ }
99
+ * }
100
+ */
101
+ title : string
102
+ /**
103
+ * 开始时间的 unix 时间戳
104
+ * @uniPlatform {
105
+ "app": {
106
+ "android": {
107
+ "uniVer": "x",
108
+ "unixVer": "5.09"
109
+ },
110
+ "ios": {
111
+ "uniVer": "x",
112
+ "unixVer": "5.09",
113
+ },
114
+ "harmony": {
115
+ "uniVer": "x",
116
+ "unixVer": "5.09",
117
+ "unixVaporVer": "5.09"
118
+ }
119
+ },
120
+ "mp": {
121
+ "weixin": {
122
+ "uniVer": "√",
123
+ "unixVer": "√"
124
+ }
125
+ },
126
+ "web": {
127
+ "uniVer": "x",
128
+ "unixVer": "x"
129
+ }
130
+ * }
131
+ */
132
+ startTime : number
133
+ /**
134
+ * 是否全天事件,默认 false
135
+ * @defaultValue false
136
+ * @uniPlatform {
137
+ "app": {
138
+ "android": {
139
+ "uniVer": "x",
140
+ "unixVer": "5.09"
141
+ },
142
+ "ios": {
143
+ "uniVer": "x",
144
+ "unixVer": "5.09",
145
+ },
146
+ "harmony": {
147
+ "uniVer": "x",
148
+ "unixVer": "5.09",
149
+ "unixVaporVer": "5.09"
150
+ }
151
+ },
152
+ "mp": {
153
+ "weixin": {
154
+ "uniVer": "√",
155
+ "unixVer": "√"
156
+ }
157
+ },
158
+ "web": {
159
+ "uniVer": "x",
160
+ "unixVer": "x"
161
+ }
162
+ * }
163
+ */
164
+ allDay ?: boolean | null
165
+ /**
166
+ * 事件说明
167
+ * @uniPlatform {
168
+ "app": {
169
+ "android": {
170
+ "uniVer": "x",
171
+ "unixVer": "5.09"
172
+ },
173
+ "ios": {
174
+ "uniVer": "x",
175
+ "unixVer": "5.09",
176
+ },
177
+ "harmony": {
178
+ "uniVer": "x",
179
+ "unixVer": "5.09",
180
+ "unixVaporVer": "5.09"
181
+ }
182
+ },
183
+ "mp": {
184
+ "weixin": {
185
+ "uniVer": "√",
186
+ "unixVer": "√"
187
+ }
188
+ },
189
+ "web": {
190
+ "uniVer": "x",
191
+ "unixVer": "x"
192
+ }
193
+ * }
194
+ */
195
+ notes ?: string | null
196
+ /**
197
+ * 事件位置
198
+ * @uniPlatform {
199
+ "app": {
200
+ "android": {
201
+ "uniVer": "x",
202
+ "unixVer": "5.09"
203
+ },
204
+ "ios": {
205
+ "uniVer": "x",
206
+ "unixVer": "5.09",
207
+ },
208
+ "harmony": {
209
+ "uniVer": "x",
210
+ "unixVer": "5.09",
211
+ "unixVaporVer": "5.09"
212
+ }
213
+ },
214
+ "mp": {
215
+ "weixin": {
216
+ "uniVer": "√",
217
+ "unixVer": "√"
218
+ }
219
+ },
220
+ "web": {
221
+ "uniVer": "x",
222
+ "unixVer": "x"
223
+ }
224
+ * }
225
+ */
226
+ location ?: string | null
227
+ /**
228
+ * 结束时间的 unix 时间戳,默认与开始时间相同
229
+ * @uniPlatform {
230
+ "app": {
231
+ "android": {
232
+ "uniVer": "x",
233
+ "unixVer": "5.09"
234
+ },
235
+ "ios": {
236
+ "uniVer": "x",
237
+ "unixVer": "5.09",
238
+ },
239
+ "harmony": {
240
+ "uniVer": "x",
241
+ "unixVer": "5.09",
242
+ "unixVaporVer": "5.09"
243
+ }
244
+ },
245
+ "mp": {
246
+ "weixin": {
247
+ "uniVer": "√",
248
+ "unixVer": "√"
249
+ }
250
+ },
251
+ "web": {
252
+ "uniVer": "x",
253
+ "unixVer": "x"
254
+ }
255
+ * }
256
+ */
257
+ endTime ?: number | null
258
+ /**
259
+ * 结束时间的 unix 时间戳,默认与开始时间相同
260
+ * @uniPlatform {
261
+ "app": {
262
+ "android": {
263
+ "uniVer": "x",
264
+ "unixVer": "5.09"
265
+ },
266
+ "ios": {
267
+ "uniVer": "x",
268
+ "unixVer": "5.09",
269
+ },
270
+ "harmony": {
271
+ "uniVer": "x",
272
+ "unixVer": "5.09",
273
+ "unixVaporVer": "5.09"
274
+ }
275
+ },
276
+ "mp": {
277
+ "weixin": {
278
+ "uniVer": "√",
279
+ "unixVer": "√"
280
+ }
281
+ },
282
+ "web": {
283
+ "uniVer": "x",
284
+ "unixVer": "x"
285
+ }
286
+ * }
287
+ */
288
+ alarm ?: boolean | null
289
+ /**
290
+ * 提醒提前量,单位秒,默认 0 表示开始时提醒
291
+ * @defaultValue 0
292
+ * @uniPlatform {
293
+ "app": {
294
+ "android": {
295
+ "uniVer": "x",
296
+ "unixVer": "5.09"
297
+ },
298
+ "ios": {
299
+ "uniVer": "x",
300
+ "unixVer": "5.09",
301
+ },
302
+ "harmony": {
303
+ "uniVer": "x",
304
+ "unixVer": "5.09",
305
+ "unixVaporVer": "5.09"
306
+ }
307
+ },
308
+ "mp": {
309
+ "weixin": {
310
+ "uniVer": "√",
311
+ "unixVer": "√"
312
+ }
313
+ },
314
+ "web": {
315
+ "uniVer": "x",
316
+ "unixVer": "x"
317
+ }
318
+ * }
319
+ */
320
+ alarmOffset ?: number | null
321
+ /**
322
+ * 跳转小程序路径,必须要和 signature 一起使用,填入后会自动生成跳转链接拼接在事件说明中
323
+ * @uniPlatform {
324
+ "app": {
325
+ "android": {
326
+ "uniVer": "x",
327
+ "unixVer": "5.09"
328
+ },
329
+ "ios": {
330
+ "uniVer": "x",
331
+ "unixVer": "5.09",
332
+ },
333
+ "harmony": {
334
+ "uniVer": "x",
335
+ "unixVer": "5.09",
336
+ "unixVaporVer": "5.09"
337
+ }
338
+ },
339
+ "mp": {
340
+ "weixin": {
341
+ "uniVer": "√",
342
+ "unixVer": "√"
343
+ }
344
+ },
345
+ "web": {
346
+ "uniVer": "x",
347
+ "unixVer": "x"
348
+ }
349
+ * }
350
+ */
351
+ path ?: string | null
352
+ /**
353
+ * 仅微信小程序支持,App 平台保留该字段但不会使用,跳转小程序路径签名,必须要和 path 一起使用,用 session_key 对 path 签名得到的结果,即 hmac_sha256(session_key, path)。
354
+ * @uniPlatform {
355
+ "app": {
356
+ "android": {
357
+ "uniVer": "x",
358
+ "unixVer": "5.09"
359
+ },
360
+ "ios": {
361
+ "uniVer": "x",
362
+ "unixVer": "5.09",
363
+ },
364
+ "harmony": {
365
+ "uniVer": "x",
366
+ "unixVer": "5.09",
367
+ "unixVaporVer": "5.09"
368
+ }
369
+ },
370
+ "mp": {
371
+ "weixin": {
372
+ "uniVer": "√",
373
+ "unixVer": "√"
374
+ }
375
+ },
376
+ "web": {
377
+ "uniVer": "x",
378
+ "unixVer": "x"
379
+ }
380
+ * }
381
+ */
382
+ signature ?: string | null
383
+ /**
384
+ * 接口调用成功的回调函数
385
+ */
386
+ success ?: CalendarSuccessCallback | null
387
+ /**
388
+ * 接口调用失败的回调函数
389
+ */
390
+ fail ?: CalendarFailCallback | null
391
+ /**
392
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
393
+ */
394
+ complete ?: CalendarCompleteCallback | null
395
+ }
396
+
397
+ export type AddPhoneRepeatCalendarOptions = {
398
+ /**
399
+ * 日历事件标题
400
+ * @uniPlatform {
401
+ "app": {
402
+ "android": {
403
+ "uniVer": "x",
404
+ "unixVer": "5.09"
405
+ },
406
+ "ios": {
407
+ "uniVer": "x",
408
+ "unixVer": "5.09",
409
+ },
410
+ "harmony": {
411
+ "uniVer": "x",
412
+ "unixVer": "5.09",
413
+ "unixVaporVer": "5.09"
414
+ }
415
+ },
416
+ "mp": {
417
+ "weixin": {
418
+ "uniVer": "√",
419
+ "unixVer": "√"
420
+ }
421
+ },
422
+ "web": {
423
+ "uniVer": "x",
424
+ "unixVer": "x"
425
+ }
426
+ * }
427
+ */
428
+ title : string
429
+ /**
430
+ * 开始时间的 unix 时间戳 (1970年1月1日开始所经过的秒数)
431
+ * @uniPlatform {
432
+ "app": {
433
+ "android": {
434
+ "uniVer": "x",
435
+ "unixVer": "5.09"
436
+ },
437
+ "ios": {
438
+ "uniVer": "x",
439
+ "unixVer": "5.09",
440
+ },
441
+ "harmony": {
442
+ "uniVer": "x",
443
+ "unixVer": "5.09",
444
+ "unixVaporVer": "5.09"
445
+ }
446
+ },
447
+ "mp": {
448
+ "weixin": {
449
+ "uniVer": "√",
450
+ "unixVer": "√"
451
+ }
452
+ },
453
+ "web": {
454
+ "uniVer": "x",
455
+ "unixVer": "x"
456
+ }
457
+ * }
458
+ */
459
+ startTime : number
460
+ /**
461
+ * 是否全天事件,默认 false
462
+ * @defaultValue false
463
+ * @uniPlatform {
464
+ "app": {
465
+ "android": {
466
+ "uniVer": "x",
467
+ "unixVer": "5.09"
468
+ },
469
+ "ios": {
470
+ "uniVer": "x",
471
+ "unixVer": "5.09",
472
+ },
473
+ "harmony": {
474
+ "uniVer": "x",
475
+ "unixVer": "5.09",
476
+ "unixVaporVer": "5.09"
477
+ }
478
+ },
479
+ "mp": {
480
+ "weixin": {
481
+ "uniVer": "√",
482
+ "unixVer": "√"
483
+ }
484
+ },
485
+ "web": {
486
+ "uniVer": "x",
487
+ "unixVer": "x"
488
+ }
489
+ * }
490
+ */
491
+ allDay ?: boolean | null
492
+ /**
493
+ * 事件说明
494
+ * @uniPlatform {
495
+ "app": {
496
+ "android": {
497
+ "uniVer": "x",
498
+ "unixVer": "5.09"
499
+ },
500
+ "ios": {
501
+ "uniVer": "x",
502
+ "unixVer": "5.09",
503
+ },
504
+ "harmony": {
505
+ "uniVer": "x",
506
+ "unixVer": "5.09",
507
+ "unixVaporVer": "5.09"
508
+ }
509
+ },
510
+ "mp": {
511
+ "weixin": {
512
+ "uniVer": "√",
513
+ "unixVer": "√"
514
+ }
515
+ },
516
+ "web": {
517
+ "uniVer": "x",
518
+ "unixVer": "x"
519
+ }
520
+ * }
521
+ */
522
+ notes ?: string | null
523
+ /**
524
+ * 事件位置
525
+ * @uniPlatform {
526
+ "app": {
527
+ "android": {
528
+ "uniVer": "x",
529
+ "unixVer": "5.09"
530
+ },
531
+ "ios": {
532
+ "uniVer": "x",
533
+ "unixVer": "5.09",
534
+ },
535
+ "harmony": {
536
+ "uniVer": "x",
537
+ "unixVer": "5.09",
538
+ "unixVaporVer": "5.09"
539
+ }
540
+ },
541
+ "mp": {
542
+ "weixin": {
543
+ "uniVer": "√",
544
+ "unixVer": "√"
545
+ }
546
+ },
547
+ "web": {
548
+ "uniVer": "x",
549
+ "unixVer": "x"
550
+ }
551
+ * }
552
+ */
553
+ location ?: string | null
554
+ /**
555
+ * 结束时间的 unix 时间戳,默认与开始时间相同
556
+ * @uniPlatform {
557
+ "app": {
558
+ "android": {
559
+ "uniVer": "x",
560
+ "unixVer": "5.09"
561
+ },
562
+ "ios": {
563
+ "uniVer": "x",
564
+ "unixVer": "5.09",
565
+ },
566
+ "harmony": {
567
+ "uniVer": "x",
568
+ "unixVer": "5.09",
569
+ "unixVaporVer": "5.09"
570
+ }
571
+ },
572
+ "mp": {
573
+ "weixin": {
574
+ "uniVer": "√",
575
+ "unixVer": "√"
576
+ }
577
+ },
578
+ "web": {
579
+ "uniVer": "x",
580
+ "unixVer": "x"
581
+ }
582
+ * }
583
+ */
584
+ endTime ?: number | null
585
+ /**
586
+ * 是否提醒,默认 true
587
+ * @uniPlatform {
588
+ "app": {
589
+ "android": {
590
+ "uniVer": "x",
591
+ "unixVer": "5.09"
592
+ },
593
+ "ios": {
594
+ "uniVer": "x",
595
+ "unixVer": "5.09",
596
+ },
597
+ "harmony": {
598
+ "uniVer": "x",
599
+ "unixVer": "5.09",
600
+ "unixVaporVer": "5.09"
601
+ }
602
+ },
603
+ "mp": {
604
+ "weixin": {
605
+ "uniVer": "√",
606
+ "unixVer": "√"
607
+ }
608
+ },
609
+ "web": {
610
+ "uniVer": "x",
611
+ "unixVer": "x"
612
+ }
613
+ * }
614
+ */
615
+ alarm ?: boolean | null
616
+ /**
617
+ * 提醒提前量,单位秒,默认 0 表示开始时提醒
618
+ * @defaultValue 0
619
+ * @uniPlatform {
620
+ "app": {
621
+ "android": {
622
+ "uniVer": "x",
623
+ "unixVer": "5.09"
624
+ },
625
+ "ios": {
626
+ "uniVer": "x",
627
+ "unixVer": "5.09",
628
+ },
629
+ "harmony": {
630
+ "uniVer": "x",
631
+ "unixVer": "5.09",
632
+ "unixVaporVer": "5.09"
633
+ }
634
+ },
635
+ "mp": {
636
+ "weixin": {
637
+ "uniVer": "√",
638
+ "unixVer": "√"
639
+ }
640
+ },
641
+ "web": {
642
+ "uniVer": "x",
643
+ "unixVer": "x"
644
+ }
645
+ * }
646
+ */
647
+ alarmOffset ?: number | null
648
+ /**
649
+ * 跳转小程序路径,必须要和 signature 一起使用,填入后会自动生成跳转链接拼接在事件说明中
650
+ * @uniPlatform {
651
+ "app": {
652
+ "android": {
653
+ "uniVer": "x",
654
+ "unixVer": "5.09"
655
+ },
656
+ "ios": {
657
+ "uniVer": "x",
658
+ "unixVer": "5.09",
659
+ },
660
+ "harmony": {
661
+ "uniVer": "x",
662
+ "unixVer": "5.09",
663
+ "unixVaporVer": "5.09"
664
+ }
665
+ },
666
+ "mp": {
667
+ "weixin": {
668
+ "uniVer": "√",
669
+ "unixVer": "√"
670
+ }
671
+ },
672
+ "web": {
673
+ "uniVer": "x",
674
+ "unixVer": "x"
675
+ }
676
+ * }
677
+ */
678
+ path ?: string | null
679
+ /**
680
+ * 仅微信小程序支持,App 平台保留该字段但不会使用,跳转小程序路径签名,必须要和 path 一起使用,用 session_key 对 path 签名得到的结果,即 hmac_sha256(session_key, path)。
681
+ * @uniPlatform {
682
+ "app": {
683
+ "android": {
684
+ "uniVer": "x",
685
+ "unixVer": "5.09"
686
+ },
687
+ "ios": {
688
+ "uniVer": "x",
689
+ "unixVer": "5.09",
690
+ },
691
+ "harmony": {
692
+ "uniVer": "x",
693
+ "unixVer": "5.09",
694
+ "unixVaporVer": "5.09"
695
+ }
696
+ },
697
+ "mp": {
698
+ "weixin": {
699
+ "uniVer": "√",
700
+ "unixVer": "√"
701
+ }
702
+ },
703
+ "web": {
704
+ "uniVer": "x",
705
+ "unixVer": "x"
706
+ }
707
+ * }
708
+ */
709
+ signature ?: string | null
710
+ /**
711
+ * 重复周期,默认 month 每月重复
712
+ * @defaultValue month
713
+ * @uniPlatform {
714
+ "app": {
715
+ "android": {
716
+ "uniVer": "x",
717
+ "unixVer": "5.09"
718
+ },
719
+ "ios": {
720
+ "uniVer": "x",
721
+ "unixVer": "5.09",
722
+ },
723
+ "harmony": {
724
+ "uniVer": "x",
725
+ "unixVer": "5.09",
726
+ "unixVaporVer": "5.09"
727
+ }
728
+ },
729
+ "mp": {
730
+ "weixin": {
731
+ "uniVer": "√",
732
+ "unixVer": "√"
733
+ }
734
+ },
735
+ "web": {
736
+ "uniVer": "x",
737
+ "unixVer": "x"
738
+ }
739
+ * }
740
+ */
741
+ repeatInterval : CalendarRepeatInterval
742
+ /**
743
+ * 重复周期结束时间的 unix 时间戳,不填表示一直重复
744
+ * @uniPlatform {
745
+ "app": {
746
+ "android": {
747
+ "uniVer": "x",
748
+ "unixVer": "5.09"
749
+ },
750
+ "ios": {
751
+ "uniVer": "x",
752
+ "unixVer": "5.09",
753
+ },
754
+ "harmony": {
755
+ "uniVer": "x",
756
+ "unixVer": "5.09",
757
+ "unixVaporVer": "5.09"
758
+ }
759
+ },
760
+ "mp": {
761
+ "weixin": {
762
+ "uniVer": "√",
763
+ "unixVer": "√"
764
+ }
765
+ },
766
+ "web": {
767
+ "uniVer": "x",
768
+ "unixVer": "x"
769
+ }
770
+ * }
771
+ */
772
+ repeatEndTime ?: number | null
773
+ /**
774
+ * 接口调用成功的回调函数
775
+ */
776
+ success ?: CalendarSuccessCallback | null
777
+ /**
778
+ * 接口调用失败的回调函数
779
+ */
780
+ fail ?: CalendarFailCallback | null
781
+ /**
782
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
783
+ */
784
+ complete ?: CalendarCompleteCallback | null
785
+ }
786
+
787
+ export type AddPhoneCalendar = (options : AddPhoneCalendarOptions) => void;
788
+ export type AddPhoneRepeatCalendar = (options : AddPhoneRepeatCalendarOptions) => void;
789
+
790
+
791
+ export interface Uni {
792
+ /**
793
+ * addPhoneCalendar()
794
+ * @description
795
+ * 向系统日历添加事件
796
+ * @param {AddPhoneCalendarOptions}
797
+ * @return {void}
798
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/uni-calender.html#addPhoneCalendar
799
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/uni-calender.html#addPhoneCalendar
800
+ * @uniPlatform {
801
+ * "app": {
802
+ * "android": {
803
+ * "osVer": "4.4",
804
+ * "uniVer": "x",
805
+ * "unixVer": "5.09"
806
+ * },
807
+ * "ios": {
808
+ * "osVer": "12.0",
809
+ * "uniVer": "x",
810
+ * "unixVer": "5.09"
811
+ * },
812
+ * "harmony": {
813
+ * "osVer": "3.0",
814
+ * "uniVer": "x",
815
+ * "unixVer": "5.09",
816
+ * "unixVaporVer": "5.09"
817
+ * }
818
+ * },
819
+ * "mp": {
820
+ * "weixin": {
821
+ * "hostVer": "x",
822
+ * "uniVer": "x",
823
+ * "unixVer": "5.09"
824
+ * },
825
+ * "alipay": {
826
+ * "hostVer": "x",
827
+ * "uniVer": "x",
828
+ * "unixVer": "x"
829
+ * },
830
+ * "baidu": {
831
+ * "hostVer": "x",
832
+ * "uniVer": "x",
833
+ * "unixVer": "x"
834
+ * },
835
+ * "toutiao": {
836
+ * "hostVer": "x",
837
+ * "uniVer": "x",
838
+ * "unixVer": "x"
839
+ * },
840
+ * "lark": {
841
+ * "hostVer": "x",
842
+ * "uniVer": "x",
843
+ * "unixVer": "x"
844
+ * },
845
+ * "qq": {
846
+ * "hostVer": "x",
847
+ * "uniVer": "x",
848
+ * "unixVer": "x"
849
+ * },
850
+ * "kuaishou": {
851
+ * "hostVer": "x",
852
+ * "uniVer": "x",
853
+ * "unixVer": "x"
854
+ * },
855
+ * "jd": {
856
+ * "hostVer": "x",
857
+ * "uniVer": "x",
858
+ * "unixVer": "x"
859
+ * }
860
+ * },
861
+ * "web": {
862
+ * "uniVer": "x",
863
+ * "unixVer": "x"
864
+ * }
865
+ * }
866
+ */
867
+ addPhoneCalendar(options : AddPhoneCalendarOptions) : void;
868
+ /**
869
+ * getPushClientId()
870
+ * @description
871
+ * 获取客户端唯一的推送标识
872
+ * @param {AddPhoneRepeatCalendarOptions}
873
+ * @return {void}
874
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/uni-calender.html#addPhoneRepeatCalendar
875
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/uni-calender.html#addPhoneRepeatCalendar
876
+ * @uniPlatform {
877
+ * "app": {
878
+ * "android": {
879
+ * "osVer": "4.4",
880
+ * "uniVer": "x",
881
+ * "unixVer": "5.09"
882
+ * },
883
+ * "ios": {
884
+ * "osVer": "12.0",
885
+ * "uniVer": "x",
886
+ * "unixVer": "5.09"
887
+ * },
888
+ * "harmony": {
889
+ * "osVer": "3.0",
890
+ * "uniVer": "x",
891
+ * "unixVer": "5.09",
892
+ * "unixVaporVer": "5.09"
893
+ * }
894
+ * },
895
+ * "mp": {
896
+ * "weixin": {
897
+ * "hostVer": "x",
898
+ * "uniVer": "x",
899
+ * "unixVer": "5.09"
900
+ * },
901
+ * "alipay": {
902
+ * "hostVer": "x",
903
+ * "uniVer": "x",
904
+ * "unixVer": "x"
905
+ * },
906
+ * "baidu": {
907
+ * "hostVer": "x",
908
+ * "uniVer": "x",
909
+ * "unixVer": "x"
910
+ * },
911
+ * "toutiao": {
912
+ * "hostVer": "x",
913
+ * "uniVer": "x",
914
+ * "unixVer": "x"
915
+ * },
916
+ * "lark": {
917
+ * "hostVer": "x",
918
+ * "uniVer": "x",
919
+ * "unixVer": "x"
920
+ * },
921
+ * "qq": {
922
+ * "hostVer": "x",
923
+ * "uniVer": "x",
924
+ * "unixVer": "x"
925
+ * },
926
+ * "kuaishou": {
927
+ * "hostVer": "x",
928
+ * "uniVer": "x",
929
+ * "unixVer": "x"
930
+ * },
931
+ * "jd": {
932
+ * "hostVer": "x",
933
+ * "uniVer": "x",
934
+ * "unixVer": "x"
935
+ * }
936
+ * },
937
+ * "web": {
938
+ * "uniVer": "x",
939
+ * "unixVer": "x"
940
+ * }
941
+ * }
942
+ */
943
+ addPhoneRepeatCalendar(options : AddPhoneRepeatCalendarOptions) : void;
944
+ }