@alipay-inc/mpaas-ide-openapi 1.0.10-alpha.1 → 1.0.11-alpha.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.
Files changed (2) hide show
  1. package/README.md +41 -12
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -102,7 +102,13 @@
102
102
 
103
103
  #### getAppListByApi 拉取小程序列表
104
104
 
105
- - 入参 -
105
+ - 入参
106
+
107
+ - ```js
108
+ {
109
+ miniType: 'plugin' // 选填,是否为小程序插件
110
+ }
111
+ ```
106
112
 
107
113
  - 返回
108
114
 
@@ -136,7 +142,8 @@
136
142
  {
137
143
  h5Id: '<string>', // 必填,小程序ID
138
144
  h5Name: '<string>', // 必填,小程序名称
139
- packageTypes: '<string>' // 可选,默认 '1,2,3,4'
145
+ packageTypes: '<string>', // 可选,默认 '1,2,3,4',
146
+ miniType: 'plugin' // 选填,是否为小程序插件
140
147
  }
141
148
  ```
142
149
 
@@ -164,16 +171,19 @@
164
171
 
165
172
  - ```js
166
173
  {
167
- appInfo: '<object>', // 必填,小程序配置
168
- packageType: '<string>', // 必填,包类型(1,2 为正式包。3,4 为测试包)
169
- resourceFile: '<string>', // 必填,小程序包的本地绝对路径
170
- iconFile: '<string>', // 选填,小程序图标的本地绝对路径
171
- h5Version: '<string>', // 选填,版本号(若传入,则使用此版本号。若未传入,则使用appInfo.h5Version + packageType生成新的版本号)
172
- whiteListValue: '<string>', // 选填,白名单(若packageType === '3' || '4',则为测试包,需要白名单)
173
- uuid: '<string>', // 真机调试的UUID(若packageType === '3',则为调试包,需要UUID,未必填项)
174
- sourceCodeFile: '<string>', // 选填,源码包本地的压缩包地址,
175
- appxVersion: '<string>', // '1.0' || '2.0',appx的版本。默认 '1.0',
176
- buildTarget: '<string>' // 远程调试类型,'RemoteBoatman' 为新版,需要匹配新容器
174
+ appInfo: '<object>', // 必填,小程序配置
175
+ packageType: '<string>', // 必填,包类型(1,2 为正式包。3,4 为测试包)
176
+ resourceFile: '<string>', // 必填,小程序包的本地绝对路径
177
+ iconFile: '<string>', // 选填,小程序图标的本地绝对路径
178
+ h5Version: '<string>', // 选填,版本号(若传入,则使用此版本号。若未传入,则使用appInfo.h5Version + packageType生成新的版本号)
179
+ whiteListValue: '<string>', // 选填,白名单(若packageType === '3' || '4',则为测试包,需要白名单)
180
+ uuid: '<string>', // 选填,真机调试的UUID(若packageType === '3',则为调试包,需要UUID,未必填项)
181
+ sourceCodeFile: '<string>', // 选填,源码包本地的压缩包地址,
182
+ appxVersion: '<string>', // 选填,'1.0' || '2.0',appx的版本。默认 '1.0',
183
+ buildTarget: '<string>', // 选填,远程调试类型,'RemoteBoatman' 为新版,需要匹配新容器
184
+ miniType: 'plugin', // 选填,是否为小程序插件
185
+ pluginFile: '<string>', // 选填,小程序插件的本地绝对路径(无需转换zip格式)
186
+ bindMiniPluginIds: '<string>', // 选填,小程序需要使用的插件资源id,多个使用逗号分隔
177
187
  }
178
188
  ```
179
189
 
@@ -205,6 +215,25 @@
205
215
  success: true
206
216
  }
207
217
  ```
218
+ #### checkPluginByApi 查询小程序插件权限
219
+
220
+ - 入参
221
+
222
+ - ```js
223
+ {
224
+ miniPluginId: '<string>', // 必填,小程序插件ID
225
+ miniProgramId: '<string>', // 必填,小程序ID
226
+ }
227
+ ```
228
+
229
+ - 返回
230
+
231
+ - ```js
232
+ {
233
+ data: '<string>', // 小程序插件包地址
234
+ success: true // false
235
+ }
236
+ ```
208
237
 
209
238
  ### 公共API
210
239
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay-inc/mpaas-ide-openapi",
3
- "version": "1.0.10-alpha.1",
3
+ "version": "1.0.11-alpha.2",
4
4
  "main": "dist/index.js",
5
5
  "repository": "https://code.alipay.com/mPaaS-IDE-Adaptor/mPaaS-IDE-openAPI.git",
6
6
  "author": "跟着勇哥有肉吃 <shengyong.zhu@antgroup.com>",
@@ -11,10 +11,10 @@
11
11
  "prepublish": "yarn build"
12
12
  },
13
13
  "dependencies": {
14
- "@alipay-inc/mpaas-ide-openapi-aliyun": "^1.0.10-alpha.1",
15
- "@alipay-inc/mpaas-ide-openapi-antfin": "^1.0.10-alpha.1",
16
- "@alipay-inc/mpaas-ide-openapi-classic": "^1.0.10-alpha.1",
17
- "@alipay-inc/mpaas-ide-openapi-common": "^1.0.10-alpha.1",
14
+ "@alipay-inc/mpaas-ide-openapi-aliyun": "^1.0.11-alpha.2",
15
+ "@alipay-inc/mpaas-ide-openapi-antfin": "^1.0.11-alpha.2",
16
+ "@alipay-inc/mpaas-ide-openapi-classic": "^1.0.11-alpha.2",
17
+ "@alipay-inc/mpaas-ide-openapi-common": "^1.0.11-alpha.2",
18
18
  "@babel/runtime": "^7.15.4",
19
19
  "archiver": "^5.3.0",
20
20
  "chalk": "^4.1.2",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "6d7d5091bba9de26eca0c83ab6c467cfab170b4f"
34
+ "gitHead": "b485a10f29f08e598da86f47f451bca3f14223e6"
35
35
  }