minidev 1.8.1 → 1.8.2
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/index.d.ts +62 -11
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -60,6 +60,29 @@ declare module 'minidev' {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export interface IAuthPathOptions {
|
|
64
|
+
identityKeyPath?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface IVersionListResult {
|
|
68
|
+
/**
|
|
69
|
+
* 端参数,用于查询多端版本,不传默认为支付宝端。 高德端:com.amap.app
|
|
70
|
+
*/
|
|
71
|
+
bundleId?: string;
|
|
72
|
+
|
|
73
|
+
appVersion: string;
|
|
74
|
+
|
|
75
|
+
versionDescription: string;
|
|
76
|
+
|
|
77
|
+
versionStatus: string;
|
|
78
|
+
|
|
79
|
+
createTime: string;
|
|
80
|
+
|
|
81
|
+
operateName: string;
|
|
82
|
+
|
|
83
|
+
canRelease: any;
|
|
84
|
+
}
|
|
85
|
+
|
|
63
86
|
|
|
64
87
|
export const minidev: IMinidev;
|
|
65
88
|
|
|
@@ -224,8 +247,21 @@ declare module 'minidev' {
|
|
|
224
247
|
subApplicationType: 'TINYAPP_NORMAL' | 'TINYAPP_PLUGIN' | 'TINYAPP_TEMPLATE'
|
|
225
248
|
}
|
|
226
249
|
|
|
227
|
-
export interface IGetAppUploadedVersionArgs extends IAppIdArgs, IClientTypeOptions {
|
|
250
|
+
export interface IGetAppUploadedVersionArgs extends IAppIdArgs, IClientTypeOptions, IAuthPathOptions {
|
|
251
|
+
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface IVersionListOptions extends IAppIdArgs, IClientTypeOptions, IAuthPathOptions {
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* 版本状态列表
|
|
258
|
+
*/
|
|
259
|
+
versionStatus?: string;
|
|
228
260
|
|
|
261
|
+
/**
|
|
262
|
+
* 以 JSON 格式打印
|
|
263
|
+
*/
|
|
264
|
+
json?: boolean;
|
|
229
265
|
}
|
|
230
266
|
|
|
231
267
|
export interface IMinidevApp {
|
|
@@ -237,12 +273,18 @@ declare module 'minidev' {
|
|
|
237
273
|
getList(options: IClientTypeOptions): Promise<IAppInfo>;
|
|
238
274
|
|
|
239
275
|
/**
|
|
240
|
-
*
|
|
276
|
+
* 获取小程序的最新上传版本号
|
|
241
277
|
* @param options
|
|
242
278
|
*/
|
|
243
279
|
getUploadedVersion(options: IGetAppUploadedVersionArgs): Promise<string>;
|
|
244
280
|
|
|
245
281
|
|
|
282
|
+
/**
|
|
283
|
+
* 获取小程序的上传版本列表
|
|
284
|
+
* @param options
|
|
285
|
+
*/
|
|
286
|
+
getUploadedVersionList(options: IVersionListOptions): Promise<IVersionListResult>;
|
|
287
|
+
|
|
246
288
|
/**
|
|
247
289
|
* 删除指定版本
|
|
248
290
|
* 如果该版本为体验版,会先取消该体验版
|
|
@@ -266,7 +308,7 @@ declare module 'minidev' {
|
|
|
266
308
|
|
|
267
309
|
}
|
|
268
310
|
|
|
269
|
-
export interface IAppIdAndVersionOptions extends IAppIdArgs, IClientTypeOptions {
|
|
311
|
+
export interface IAppIdAndVersionOptions extends IAppIdArgs, IClientTypeOptions, IAuthPathOptions {
|
|
270
312
|
version: string;
|
|
271
313
|
}
|
|
272
314
|
|
|
@@ -306,7 +348,7 @@ declare module 'minidev' {
|
|
|
306
348
|
|
|
307
349
|
}
|
|
308
350
|
|
|
309
|
-
export interface IDevPreviewArgs extends IGenerateQrCodeArgs, IAppIdArgs {
|
|
351
|
+
export interface IDevPreviewArgs extends IGenerateQrCodeArgs, IAppIdArgs, IAuthPathOptions {
|
|
310
352
|
|
|
311
353
|
}
|
|
312
354
|
|
|
@@ -705,7 +747,7 @@ declare module 'minidev' {
|
|
|
705
747
|
appPath?: string;
|
|
706
748
|
}
|
|
707
749
|
|
|
708
|
-
export interface IDevRemoteDebugArgs extends IGenerateQrCodeArgs, IAppIdArgs {
|
|
750
|
+
export interface IDevRemoteDebugArgs extends IGenerateQrCodeArgs, IAppIdArgs, IAuthPathOptions {
|
|
709
751
|
|
|
710
752
|
/**
|
|
711
753
|
* 是否自动打开 devtool,cli 模式默认自动打开, jsApi 调用默认不打开
|
|
@@ -725,7 +767,7 @@ declare module 'minidev' {
|
|
|
725
767
|
|
|
726
768
|
}
|
|
727
769
|
|
|
728
|
-
export interface IUploadOptions extends IAppIdArgs, IClientTypeOptions, IProjectArgs {
|
|
770
|
+
export interface IUploadOptions extends IAppIdArgs, IClientTypeOptions, IProjectArgs, IAuthPathOptions {
|
|
729
771
|
|
|
730
772
|
/**
|
|
731
773
|
* 上传的版本号,如果不传入,会尝试从后台拉取版本后自动添加一位 patch 号 (例: 1.1.1 => 1.1.2)
|
|
@@ -741,13 +783,22 @@ declare module 'minidev' {
|
|
|
741
783
|
experience?: boolean;
|
|
742
784
|
|
|
743
785
|
/**
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
786
|
+
* 上传时删除指定版本号
|
|
787
|
+
*/
|
|
788
|
+
deleteVersion?: string;
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* 是否小游戏
|
|
792
|
+
*/
|
|
793
|
+
isGame?: boolean;
|
|
747
794
|
|
|
795
|
+
/**
|
|
796
|
+
* 版本描述,用于在开放平台显示
|
|
797
|
+
*/
|
|
798
|
+
versionDescription?: string;
|
|
748
799
|
}
|
|
749
800
|
|
|
750
|
-
export interface IPreviewArgs extends IBuildArgs, IGenerateQrCodeArgs {
|
|
801
|
+
export interface IPreviewArgs extends IBuildArgs, IGenerateQrCodeArgs, IAuthPathOptions {
|
|
751
802
|
|
|
752
803
|
/**
|
|
753
804
|
* 小程序应用 id
|
|
@@ -835,7 +886,7 @@ declare module 'minidev' {
|
|
|
835
886
|
webpackStatPath?: string;
|
|
836
887
|
}
|
|
837
888
|
|
|
838
|
-
export interface IRemoteDebugArgs extends IBuildArgs, IGenerateQrCodeArgs {
|
|
889
|
+
export interface IRemoteDebugArgs extends IBuildArgs, IGenerateQrCodeArgs, IAuthPathOptions {
|
|
839
890
|
|
|
840
891
|
/**
|
|
841
892
|
* 小程序应用 id
|