node-easywechat 2.10.2 → 3.0.0-beta.1

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 (576) hide show
  1. package/CHANGELOG.md +19 -196
  2. package/README.md +129 -253
  3. package/dist/Core/Cache/FileCache.d.ts +6 -5
  4. package/dist/Core/Cache/FileCache.js +5 -5
  5. package/dist/Core/Config.d.ts +66 -0
  6. package/dist/Core/Config.js +117 -0
  7. package/dist/Core/Contracts/AccessTokenInterface.d.ts +13 -0
  8. package/dist/Core/Contracts/AccessTokenInterface.js +28 -0
  9. package/dist/Core/Contracts/CacheInterface.d.ts +28 -5
  10. package/dist/Core/Contracts/CacheInterface.js +31 -18
  11. package/dist/Core/Contracts/ConfigInterface.d.ts +29 -0
  12. package/dist/Core/Contracts/ConfigInterface.js +34 -0
  13. package/dist/Core/Contracts/ObjectAccessInterface.d.ts +31 -0
  14. package/dist/Core/Contracts/ObjectAccessInterface.js +33 -0
  15. package/dist/Core/Contracts/RefreshableAccessTokenInterface.d.ts +9 -0
  16. package/dist/{Work/MiniProgram/Auth/AuthClient.js → Core/Contracts/RefreshableAccessTokenInterface.js} +8 -13
  17. package/dist/Core/Contracts/ServerInterface.d.ts +8 -0
  18. package/dist/Core/Contracts/ServerInterface.js +20 -0
  19. package/dist/Core/Encryptor.d.ts +30 -4
  20. package/dist/Core/Encryptor.js +41 -17
  21. package/dist/Core/Http/Contracts/MessageInterface.d.ts +69 -0
  22. package/dist/Core/Http/Contracts/MessageInterface.js +70 -0
  23. package/dist/Core/Http/Contracts/RequestInterface.d.ts +37 -0
  24. package/dist/Core/Http/Contracts/RequestInterface.js +42 -0
  25. package/dist/Core/Http/Contracts/ResponseInterface.d.ts +21 -0
  26. package/dist/Core/Http/Contracts/ResponseInterface.js +26 -0
  27. package/dist/Core/Http/Contracts/ServerRequestInterface.d.ts +78 -0
  28. package/dist/Core/Http/Contracts/ServerRequestInterface.js +83 -0
  29. package/dist/Core/Http/Minxins/MessageMixin.d.ts +24 -0
  30. package/dist/Core/Http/Minxins/MessageMixin.js +93 -0
  31. package/dist/Core/Http/Minxins/RequestMixin.d.ts +12 -0
  32. package/dist/Core/Http/Minxins/RequestMixin.js +30 -0
  33. package/dist/Core/Http/Request.d.ts +8 -26
  34. package/dist/Core/Http/Request.js +12 -174
  35. package/dist/Core/Http/Response.d.ts +11 -12
  36. package/dist/Core/Http/Response.js +30 -26
  37. package/dist/Core/Http/ServerRequest.d.ts +47 -0
  38. package/dist/Core/Http/ServerRequest.js +136 -0
  39. package/dist/Core/HttpClient/AccessTokenAwareClient.d.ts +21 -0
  40. package/dist/Core/HttpClient/AccessTokenAwareClient.js +53 -0
  41. package/dist/Core/HttpClient/Contracts/AccessTokenAwareHttpClientInterface.d.ts +9 -0
  42. package/dist/Core/HttpClient/Contracts/AccessTokenAwareHttpClientInterface.js +13 -0
  43. package/dist/Core/HttpClient/Contracts/HttpClientInterface.d.ts +23 -0
  44. package/dist/Core/HttpClient/Contracts/HttpClientInterface.js +33 -0
  45. package/dist/Core/HttpClient/Contracts/HttpClientResponseInterface.d.ts +35 -0
  46. package/dist/Core/HttpClient/Contracts/HttpClientResponseInterface.js +37 -0
  47. package/dist/Core/HttpClient/HttpClient.d.ts +29 -0
  48. package/dist/Core/HttpClient/HttpClient.js +109 -0
  49. package/dist/Core/HttpClient/HttpClientResponse.d.ts +82 -0
  50. package/dist/Core/HttpClient/HttpClientResponse.js +204 -0
  51. package/dist/Core/HttpClient/Mixins/HttpClientMethodsMixin.d.ts +48 -0
  52. package/dist/Core/HttpClient/Mixins/HttpClientMethodsMixin.js +88 -0
  53. package/dist/Core/HttpClient/Mixins/PresetMixin.d.ts +79 -0
  54. package/dist/Core/HttpClient/Mixins/PresetMixin.js +155 -0
  55. package/dist/Core/Message.d.ts +155 -0
  56. package/dist/Core/Message.js +85 -0
  57. package/dist/Core/Mixins/CacheMixin.d.ts +40 -0
  58. package/dist/Core/Mixins/CacheMixin.js +63 -0
  59. package/dist/Core/Mixins/ClientMixin.d.ts +21 -0
  60. package/dist/Core/Mixins/ClientMixin.js +24 -0
  61. package/dist/Core/Mixins/ConfigMixin.d.ts +16 -0
  62. package/dist/Core/Mixins/ConfigMixin.js +21 -0
  63. package/dist/Core/Mixins/DecryptXmlMessageMixin.d.ts +11 -0
  64. package/dist/Core/Mixins/DecryptXmlMessageMixin.js +38 -0
  65. package/dist/Core/Mixins/HandlersMixin.d.ts +79 -0
  66. package/dist/Core/Mixins/HandlersMixin.js +163 -0
  67. package/dist/Core/Mixins/HasAttributesMixin.d.ts +46 -0
  68. package/dist/Core/Mixins/HasAttributesMixin.js +75 -0
  69. package/dist/Core/Mixins/HttpClientMixin.d.ts +26 -0
  70. package/dist/Core/Mixins/HttpClientMixin.js +45 -0
  71. package/dist/Core/Mixins/ResponseXmlMessageMixin.d.ts +13 -0
  72. package/dist/Core/Mixins/ResponseXmlMessageMixin.js +63 -0
  73. package/dist/Core/Mixins/ServerRequestMixin.d.ts +16 -0
  74. package/dist/Core/Mixins/ServerRequestMixin.js +24 -0
  75. package/dist/Core/{AES.d.ts → Support/AES.d.ts} +0 -0
  76. package/dist/Core/{AES.js → Support/AES.js} +0 -0
  77. package/dist/Core/Support/Obj.d.ts +62 -0
  78. package/dist/Core/Support/Obj.js +136 -0
  79. package/dist/Core/{PKCS.d.ts → Support/PKCS.d.ts} +2 -1
  80. package/dist/Core/{PKCS.js → Support/PKCS.js} +1 -3
  81. package/dist/Core/{RSA.d.ts → Support/RSA.d.ts} +2 -1
  82. package/dist/Core/{RSA.js → Support/RSA.js} +1 -2
  83. package/dist/Core/Support/Utils.d.ts +95 -0
  84. package/dist/Core/{Utils.js → Support/Utils.js} +93 -40
  85. package/dist/MiniApp/AccessToken.d.ts +9 -0
  86. package/dist/MiniApp/AccessToken.js +18 -0
  87. package/dist/MiniApp/Account.d.ts +4 -0
  88. package/dist/MiniApp/Account.js +8 -0
  89. package/dist/MiniApp/Application.d.ts +59 -0
  90. package/dist/MiniApp/Application.js +123 -0
  91. package/dist/MiniApp/Contracts/AccountInterface.d.ts +23 -0
  92. package/dist/MiniApp/Contracts/AccountInterface.js +25 -0
  93. package/dist/MiniApp/Contracts/ApplicationInterface.d.ts +68 -0
  94. package/dist/MiniApp/Contracts/ApplicationInterface.js +60 -0
  95. package/dist/MiniApp/Decryptor.d.ts +4 -0
  96. package/dist/MiniApp/Decryptor.js +20 -0
  97. package/dist/MiniApp/Server.d.ts +4 -0
  98. package/dist/MiniApp/Server.js +9 -0
  99. package/dist/MiniApp/Utils.d.ts +22 -0
  100. package/dist/MiniApp/Utils.js +56 -0
  101. package/dist/OfficialAccount/AccessToken.d.ts +26 -0
  102. package/dist/OfficialAccount/AccessToken.js +84 -0
  103. package/dist/OfficialAccount/Account.d.ts +13 -0
  104. package/dist/OfficialAccount/Account.js +25 -0
  105. package/dist/OfficialAccount/Application.d.ts +70 -66
  106. package/dist/OfficialAccount/Application.js +148 -195
  107. package/dist/OfficialAccount/Config.d.ts +5 -0
  108. package/dist/OfficialAccount/Config.js +14 -0
  109. package/dist/OfficialAccount/Contracts/AccountInterface.d.ts +23 -0
  110. package/dist/OfficialAccount/Contracts/AccountInterface.js +25 -0
  111. package/dist/OfficialAccount/Contracts/ApplicationInterface.d.ts +87 -0
  112. package/dist/OfficialAccount/Contracts/ApplicationInterface.js +76 -0
  113. package/dist/OfficialAccount/JsApiTicket.d.ts +23 -0
  114. package/dist/OfficialAccount/JsApiTicket.js +76 -0
  115. package/dist/OfficialAccount/Message.d.ts +4 -0
  116. package/dist/OfficialAccount/Message.js +8 -0
  117. package/dist/OfficialAccount/Server.d.ts +43 -0
  118. package/dist/OfficialAccount/Server.js +94 -0
  119. package/dist/OfficialAccount/Utils.d.ts +7 -0
  120. package/dist/OfficialAccount/{Server/Guard.js → Utils.js} +12 -6
  121. package/dist/Types/global.d.ts +322 -0
  122. package/dist/index.d.ts +4 -117
  123. package/dist/index.js +9 -85
  124. package/mini_app.access_token.mock-access_token-appid.cache +1 -0
  125. package/official_account.access_token.mock-access_token-appid.cache +1 -0
  126. package/official_account.jsapi_ticket.mock-ticket-appid.cache +1 -0
  127. package/package.json +6 -6
  128. package/dist/BaseService/Application.d.ts +0 -17
  129. package/dist/BaseService/Application.js +0 -41
  130. package/dist/BaseService/ContentSecurity/ContentSecurityClient.d.ts +0 -16
  131. package/dist/BaseService/ContentSecurity/ContentSecurityClient.js +0 -47
  132. package/dist/BaseService/Jssdk/JssdkClient.d.ts +0 -52
  133. package/dist/BaseService/Jssdk/JssdkClient.js +0 -128
  134. package/dist/BaseService/Media/MediaClient.d.ts +0 -57
  135. package/dist/BaseService/Media/MediaClient.js +0 -151
  136. package/dist/BaseService/Qrcode/QrcodeClient.d.ts +0 -28
  137. package/dist/BaseService/Qrcode/QrcodeClient.js +0 -79
  138. package/dist/BaseService/Url/UrlClient.d.ts +0 -9
  139. package/dist/BaseService/Url/UrlClient.js +0 -24
  140. package/dist/Core/BaseAccessToken.d.ts +0 -96
  141. package/dist/Core/BaseAccessToken.js +0 -222
  142. package/dist/Core/BaseApplication.d.ts +0 -72
  143. package/dist/Core/BaseApplication.js +0 -138
  144. package/dist/Core/BaseClient.d.ts +0 -20
  145. package/dist/Core/BaseClient.js +0 -109
  146. package/dist/Core/Contracts/RequestInterface.d.ts +0 -10
  147. package/dist/Core/Contracts/RequestInterface.js +0 -30
  148. package/dist/Core/Decorators/FinallResult.d.ts +0 -4
  149. package/dist/Core/Decorators/FinallResult.js +0 -8
  150. package/dist/Core/Decorators/TerminateResult.d.ts +0 -4
  151. package/dist/Core/Decorators/TerminateResult.js +0 -8
  152. package/dist/Core/Http/StreamResponse.d.ts +0 -6
  153. package/dist/Core/Http/StreamResponse.js +0 -40
  154. package/dist/Core/Messages/Article.d.ts +0 -7
  155. package/dist/Core/Messages/Article.js +0 -31
  156. package/dist/Core/Messages/Card.d.ts +0 -6
  157. package/dist/Core/Messages/Card.js +0 -15
  158. package/dist/Core/Messages/DeviceEvent.d.ts +0 -5
  159. package/dist/Core/Messages/DeviceEvent.js +0 -19
  160. package/dist/Core/Messages/DeviceText.d.ts +0 -6
  161. package/dist/Core/Messages/DeviceText.js +0 -27
  162. package/dist/Core/Messages/File.d.ts +0 -4
  163. package/dist/Core/Messages/File.js +0 -12
  164. package/dist/Core/Messages/Image.d.ts +0 -4
  165. package/dist/Core/Messages/Image.js +0 -12
  166. package/dist/Core/Messages/InteractiveTaskCard.d.ts +0 -8
  167. package/dist/Core/Messages/InteractiveTaskCard.js +0 -22
  168. package/dist/Core/Messages/Link.d.ts +0 -5
  169. package/dist/Core/Messages/Link.js +0 -17
  170. package/dist/Core/Messages/Location.d.ts +0 -5
  171. package/dist/Core/Messages/Location.js +0 -19
  172. package/dist/Core/Messages/Markdown.d.ts +0 -5
  173. package/dist/Core/Messages/Markdown.js +0 -15
  174. package/dist/Core/Messages/Media.d.ts +0 -8
  175. package/dist/Core/Messages/Media.js +0 -31
  176. package/dist/Core/Messages/Message.d.ts +0 -47
  177. package/dist/Core/Messages/Message.js +0 -133
  178. package/dist/Core/Messages/MiniProgramNotice.d.ts +0 -5
  179. package/dist/Core/Messages/MiniProgramNotice.js +0 -16
  180. package/dist/Core/Messages/MiniProgramPage.d.ts +0 -6
  181. package/dist/Core/Messages/MiniProgramPage.js +0 -23
  182. package/dist/Core/Messages/Music.d.ts +0 -7
  183. package/dist/Core/Messages/Music.js +0 -39
  184. package/dist/Core/Messages/News.d.ts +0 -9
  185. package/dist/Core/Messages/News.js +0 -50
  186. package/dist/Core/Messages/NewsItem.d.ts +0 -7
  187. package/dist/Core/Messages/NewsItem.js +0 -34
  188. package/dist/Core/Messages/Raw.d.ts +0 -9
  189. package/dist/Core/Messages/Raw.js +0 -26
  190. package/dist/Core/Messages/ReplyInteractiveTaskCard.d.ts +0 -10
  191. package/dist/Core/Messages/ReplyInteractiveTaskCard.js +0 -25
  192. package/dist/Core/Messages/ShortVideo.d.ts +0 -4
  193. package/dist/Core/Messages/ShortVideo.js +0 -12
  194. package/dist/Core/Messages/TaskCard.d.ts +0 -5
  195. package/dist/Core/Messages/TaskCard.js +0 -19
  196. package/dist/Core/Messages/Text.d.ts +0 -7
  197. package/dist/Core/Messages/Text.js +0 -20
  198. package/dist/Core/Messages/TextCard.d.ts +0 -5
  199. package/dist/Core/Messages/TextCard.js +0 -17
  200. package/dist/Core/Messages/Transfer.d.ts +0 -7
  201. package/dist/Core/Messages/Transfer.js +0 -22
  202. package/dist/Core/Messages/Video.d.ts +0 -7
  203. package/dist/Core/Messages/Video.js +0 -33
  204. package/dist/Core/Messages/Voice.d.ts +0 -5
  205. package/dist/Core/Messages/Voice.js +0 -16
  206. package/dist/Core/Messages/index.d.ts +0 -24
  207. package/dist/Core/Messages/index.js +0 -40
  208. package/dist/Core/Mixins/HttpMixin.d.ts +0 -4
  209. package/dist/Core/Mixins/HttpMixin.js +0 -57
  210. package/dist/Core/ServerGuard.d.ts +0 -54
  211. package/dist/Core/ServerGuard.js +0 -288
  212. package/dist/Core/Types.d.ts +0 -237
  213. package/dist/Core/Types.js +0 -3
  214. package/dist/Core/Utils.d.ts +0 -31
  215. package/dist/MicroMerchant/Application.d.ts +0 -27
  216. package/dist/MicroMerchant/Application.js +0 -99
  217. package/dist/MicroMerchant/Base/MicroMerchantBase.d.ts +0 -7
  218. package/dist/MicroMerchant/Base/MicroMerchantBase.js +0 -52
  219. package/dist/MicroMerchant/Certficates/CertficatesClient.d.ts +0 -5
  220. package/dist/MicroMerchant/Certficates/CertficatesClient.js +0 -52
  221. package/dist/MicroMerchant/Core/BaseClient.d.ts +0 -9
  222. package/dist/MicroMerchant/Core/BaseClient.js +0 -106
  223. package/dist/MicroMerchant/Media/MediaClient.d.ts +0 -6
  224. package/dist/MicroMerchant/Media/MediaClient.js +0 -33
  225. package/dist/MicroMerchant/MerchantConfig/MerchantConfigClient.d.ts +0 -8
  226. package/dist/MicroMerchant/MerchantConfig/MerchantConfigClient.js +0 -49
  227. package/dist/MicroMerchant/Meterial/MeterialClient.d.ts +0 -5
  228. package/dist/MicroMerchant/Meterial/MeterialClient.js +0 -30
  229. package/dist/MicroMerchant/Withdraw/WithdrawClient.d.ts +0 -5
  230. package/dist/MicroMerchant/Withdraw/WithdrawClient.js +0 -28
  231. package/dist/MiniProgram/ActivityMessage/ActivityMessageClient.d.ts +0 -6
  232. package/dist/MiniProgram/ActivityMessage/ActivityMessageClient.js +0 -42
  233. package/dist/MiniProgram/AppCode/AppCodeClient.d.ts +0 -22
  234. package/dist/MiniProgram/AppCode/AppCodeClient.js +0 -79
  235. package/dist/MiniProgram/Application.d.ts +0 -83
  236. package/dist/MiniProgram/Application.js +0 -200
  237. package/dist/MiniProgram/Auth/AccessToken.d.ts +0 -5
  238. package/dist/MiniProgram/Auth/AccessToken.js +0 -31
  239. package/dist/MiniProgram/Auth/AuthClient.d.ts +0 -8
  240. package/dist/MiniProgram/Auth/AuthClient.js +0 -22
  241. package/dist/MiniProgram/Base/MiniProgramBase.d.ts +0 -9
  242. package/dist/MiniProgram/Base/MiniProgramBase.js +0 -21
  243. package/dist/MiniProgram/Broadcast/BroadcastClient.d.ts +0 -40
  244. package/dist/MiniProgram/Broadcast/BroadcastClient.js +0 -141
  245. package/dist/MiniProgram/DataCube/DataCubeClient.d.ts +0 -70
  246. package/dist/MiniProgram/DataCube/DataCubeClient.js +0 -116
  247. package/dist/MiniProgram/Encryptor.d.ts +0 -4
  248. package/dist/MiniProgram/Encryptor.js +0 -23
  249. package/dist/MiniProgram/Express/ExpressClient.d.ts +0 -65
  250. package/dist/MiniProgram/Express/ExpressClient.js +0 -113
  251. package/dist/MiniProgram/Live/LiveClient.d.ts +0 -5
  252. package/dist/MiniProgram/Live/LiveClient.js +0 -23
  253. package/dist/MiniProgram/NearbyPoi/NearbyPoiClient.d.ts +0 -31
  254. package/dist/MiniProgram/NearbyPoi/NearbyPoiClient.js +0 -67
  255. package/dist/MiniProgram/OpenData/OpenDataClient.d.ts +0 -7
  256. package/dist/MiniProgram/OpenData/OpenDataClient.js +0 -46
  257. package/dist/MiniProgram/PhoneNumber/PhoneNumberClient.d.ts +0 -10
  258. package/dist/MiniProgram/PhoneNumber/PhoneNumberClient.js +0 -20
  259. package/dist/MiniProgram/Plugin/PluginClient.d.ts +0 -17
  260. package/dist/MiniProgram/Plugin/PluginClient.js +0 -37
  261. package/dist/MiniProgram/Plugin/PluginDevClient.d.ts +0 -23
  262. package/dist/MiniProgram/Plugin/PluginDevClient.js +0 -49
  263. package/dist/MiniProgram/RealtimeLog/RealtimeLogClient.d.ts +0 -11
  264. package/dist/MiniProgram/RealtimeLog/RealtimeLogClient.js +0 -25
  265. package/dist/MiniProgram/RiskControl/RiskControlClient.d.ts +0 -4
  266. package/dist/MiniProgram/RiskControl/RiskControlClient.js +0 -12
  267. package/dist/MiniProgram/Search/SearchClient.d.ts +0 -4
  268. package/dist/MiniProgram/Search/SearchClient.js +0 -14
  269. package/dist/MiniProgram/Shop/AccoutClient.d.ts +0 -25
  270. package/dist/MiniProgram/Shop/AccoutClient.js +0 -42
  271. package/dist/MiniProgram/Shop/AftersaleClient.d.ts +0 -22
  272. package/dist/MiniProgram/Shop/AftersaleClient.js +0 -35
  273. package/dist/MiniProgram/Shop/BasicClient.d.ts +0 -39
  274. package/dist/MiniProgram/Shop/BasicClient.js +0 -69
  275. package/dist/MiniProgram/Shop/DeliveryClient.d.ts +0 -20
  276. package/dist/MiniProgram/Shop/DeliveryClient.js +0 -32
  277. package/dist/MiniProgram/Shop/OrderClient.d.ts +0 -39
  278. package/dist/MiniProgram/Shop/OrderClient.js +0 -60
  279. package/dist/MiniProgram/Shop/RegisterClient.d.ts +0 -25
  280. package/dist/MiniProgram/Shop/RegisterClient.js +0 -43
  281. package/dist/MiniProgram/Shop/SpuClient.d.ts +0 -67
  282. package/dist/MiniProgram/Shop/SpuClient.js +0 -92
  283. package/dist/MiniProgram/ShortLink/ShortLinkClient.d.ts +0 -11
  284. package/dist/MiniProgram/ShortLink/ShortLinkClient.js +0 -23
  285. package/dist/MiniProgram/Soter/SoterClient.d.ts +0 -10
  286. package/dist/MiniProgram/Soter/SoterClient.js +0 -22
  287. package/dist/MiniProgram/SubscribeMessage/SubscribeMessageClient.d.ts +0 -50
  288. package/dist/MiniProgram/SubscribeMessage/SubscribeMessageClient.js +0 -122
  289. package/dist/MiniProgram/TemplateMessage/TemplateMessageClient.d.ts +0 -18
  290. package/dist/MiniProgram/TemplateMessage/TemplateMessageClient.js +0 -50
  291. package/dist/MiniProgram/UniformMessage/UniformMessageClient.d.ts +0 -26
  292. package/dist/MiniProgram/UniformMessage/UniformMessageClient.js +0 -68
  293. package/dist/MiniProgram/Union/UnionClient.d.ts +0 -16
  294. package/dist/MiniProgram/Union/UnionClient.js +0 -69
  295. package/dist/MiniProgram/UrlLink/UrlLinkClient.d.ts +0 -9
  296. package/dist/MiniProgram/UrlLink/UrlLinkClient.js +0 -17
  297. package/dist/MiniProgram/UrlScheme/UrlSchemeClient.d.ts +0 -4
  298. package/dist/MiniProgram/UrlScheme/UrlSchemeClient.js +0 -12
  299. package/dist/OfficialAccount/Auth/AccessToken.d.ts +0 -5
  300. package/dist/OfficialAccount/Auth/AccessToken.js +0 -31
  301. package/dist/OfficialAccount/AutoReply/AutoReplyClient.d.ts +0 -7
  302. package/dist/OfficialAccount/AutoReply/AutoReplyClient.js +0 -15
  303. package/dist/OfficialAccount/Base/OfficialAccountBase.d.ts +0 -18
  304. package/dist/OfficialAccount/Base/OfficialAccountBase.js +0 -47
  305. package/dist/OfficialAccount/Broadcasting/BroadcastingClient.d.ts +0 -158
  306. package/dist/OfficialAccount/Broadcasting/BroadcastingClient.js +0 -233
  307. package/dist/OfficialAccount/Broadcasting/MessageBuilder.d.ts +0 -14
  308. package/dist/OfficialAccount/Broadcasting/MessageBuilder.js +0 -63
  309. package/dist/OfficialAccount/Card/BoardingPassClient.d.ts +0 -4
  310. package/dist/OfficialAccount/Card/BoardingPassClient.js +0 -12
  311. package/dist/OfficialAccount/Card/Card.d.ts +0 -17
  312. package/dist/OfficialAccount/Card/Card.js +0 -31
  313. package/dist/OfficialAccount/Card/Client.d.ts +0 -108
  314. package/dist/OfficialAccount/Card/Client.js +0 -218
  315. package/dist/OfficialAccount/Card/CodeClient.d.ts +0 -51
  316. package/dist/OfficialAccount/Card/CodeClient.js +0 -100
  317. package/dist/OfficialAccount/Card/CoinClient.d.ts +0 -10
  318. package/dist/OfficialAccount/Card/CoinClient.js +0 -41
  319. package/dist/OfficialAccount/Card/GeneralCardClient.d.ts +0 -19
  320. package/dist/OfficialAccount/Card/GeneralCardClient.js +0 -34
  321. package/dist/OfficialAccount/Card/JssdkClient.d.ts +0 -6
  322. package/dist/OfficialAccount/Card/JssdkClient.js +0 -67
  323. package/dist/OfficialAccount/Card/MeetingTicketClient.d.ts +0 -8
  324. package/dist/OfficialAccount/Card/MeetingTicketClient.js +0 -16
  325. package/dist/OfficialAccount/Card/MemberCardClient.d.ts +0 -35
  326. package/dist/OfficialAccount/Card/MemberCardClient.js +0 -62
  327. package/dist/OfficialAccount/Card/MovieTicketClient.d.ts +0 -8
  328. package/dist/OfficialAccount/Card/MovieTicketClient.js +0 -16
  329. package/dist/OfficialAccount/Card/SubMerchantClient.d.ts +0 -26
  330. package/dist/OfficialAccount/Card/SubMerchantClient.js +0 -73
  331. package/dist/OfficialAccount/Comment/CommentClient.d.ts +0 -60
  332. package/dist/OfficialAccount/Comment/CommentClient.js +0 -115
  333. package/dist/OfficialAccount/CustomerService/CustomerServiceClient.d.ts +0 -15
  334. package/dist/OfficialAccount/CustomerService/CustomerServiceClient.js +0 -78
  335. package/dist/OfficialAccount/CustomerService/CustomerServiceSession.d.ts +0 -8
  336. package/dist/OfficialAccount/CustomerService/CustomerServiceSession.js +0 -36
  337. package/dist/OfficialAccount/CustomerService/Messenger.d.ts +0 -18
  338. package/dist/OfficialAccount/CustomerService/Messenger.js +0 -62
  339. package/dist/OfficialAccount/DataCube/DataCubeClient.d.ts +0 -135
  340. package/dist/OfficialAccount/DataCube/DataCubeClient.js +0 -203
  341. package/dist/OfficialAccount/Device/DeviceClient.d.ts +0 -15
  342. package/dist/OfficialAccount/Device/DeviceClient.js +0 -70
  343. package/dist/OfficialAccount/Goods/GoodsClient.d.ts +0 -30
  344. package/dist/OfficialAccount/Goods/GoodsClient.js +0 -60
  345. package/dist/OfficialAccount/Material/MaterialClient.d.ts +0 -67
  346. package/dist/OfficialAccount/Material/MaterialClient.js +0 -193
  347. package/dist/OfficialAccount/Menu/MenuClient.d.ts +0 -27
  348. package/dist/OfficialAccount/Menu/MenuClient.js +0 -58
  349. package/dist/OfficialAccount/OCR/OCRClient.d.ts +0 -40
  350. package/dist/OfficialAccount/OCR/OCRClient.js +0 -85
  351. package/dist/OfficialAccount/POI/POIClient.d.ts +0 -39
  352. package/dist/OfficialAccount/POI/POIClient.js +0 -87
  353. package/dist/OfficialAccount/Semantic/SemanticClient.d.ts +0 -10
  354. package/dist/OfficialAccount/Semantic/SemanticClient.js +0 -24
  355. package/dist/OfficialAccount/Server/Guard.d.ts +0 -4
  356. package/dist/OfficialAccount/ShakeAround/Client.d.ts +0 -23
  357. package/dist/OfficialAccount/ShakeAround/Client.js +0 -43
  358. package/dist/OfficialAccount/ShakeAround/DeviceClient.d.ts +0 -51
  359. package/dist/OfficialAccount/ShakeAround/DeviceClient.js +0 -100
  360. package/dist/OfficialAccount/ShakeAround/GroupClient.d.ts +0 -44
  361. package/dist/OfficialAccount/ShakeAround/GroupClient.js +0 -84
  362. package/dist/OfficialAccount/ShakeAround/MaterialClient.d.ts +0 -9
  363. package/dist/OfficialAccount/ShakeAround/MaterialClient.js +0 -21
  364. package/dist/OfficialAccount/ShakeAround/PageClient.d.ts +0 -30
  365. package/dist/OfficialAccount/ShakeAround/PageClient.js +0 -56
  366. package/dist/OfficialAccount/ShakeAround/RelationClient.d.ts +0 -21
  367. package/dist/OfficialAccount/ShakeAround/RelationClient.js +0 -44
  368. package/dist/OfficialAccount/ShakeAround/ShakeAround.d.ts +0 -14
  369. package/dist/OfficialAccount/ShakeAround/ShakeAround.js +0 -25
  370. package/dist/OfficialAccount/ShakeAround/StatsClient.d.ts +0 -29
  371. package/dist/OfficialAccount/ShakeAround/StatsClient.js +0 -57
  372. package/dist/OfficialAccount/Store/StoreClient.d.ts +0 -63
  373. package/dist/OfficialAccount/Store/StoreClient.js +0 -104
  374. package/dist/OfficialAccount/SubscribeMessage/SubscribeMessageClient.d.ts +0 -39
  375. package/dist/OfficialAccount/SubscribeMessage/SubscribeMessageClient.js +0 -116
  376. package/dist/OfficialAccount/TemplateMessage/TemplateMessageClient.d.ts +0 -42
  377. package/dist/OfficialAccount/TemplateMessage/TemplateMessageClient.js +0 -114
  378. package/dist/OfficialAccount/User/TagClient.d.ts +0 -46
  379. package/dist/OfficialAccount/User/TagClient.js +0 -92
  380. package/dist/OfficialAccount/User/UserClient.d.ts +0 -47
  381. package/dist/OfficialAccount/User/UserClient.js +0 -95
  382. package/dist/OpenPlatform/Application.d.ts +0 -88
  383. package/dist/OpenPlatform/Application.js +0 -216
  384. package/dist/OpenPlatform/Auth/AccessToken.d.ts +0 -8
  385. package/dist/OpenPlatform/Auth/AccessToken.js +0 -58
  386. package/dist/OpenPlatform/Auth/VerifyTicket.d.ts +0 -8
  387. package/dist/OpenPlatform/Auth/VerifyTicket.js +0 -40
  388. package/dist/OpenPlatform/Authorizer/Aggregate/Account/Client.d.ts +0 -21
  389. package/dist/OpenPlatform/Authorizer/Aggregate/Account/Client.js +0 -45
  390. package/dist/OpenPlatform/Authorizer/Auth/AccessToken.d.ts +0 -13
  391. package/dist/OpenPlatform/Authorizer/Auth/AccessToken.js +0 -69
  392. package/dist/OpenPlatform/Authorizer/MiniProgram/Account/AccountClient.d.ts +0 -21
  393. package/dist/OpenPlatform/Authorizer/MiniProgram/Account/AccountClient.js +0 -42
  394. package/dist/OpenPlatform/Authorizer/MiniProgram/Application.d.ts +0 -21
  395. package/dist/OpenPlatform/Authorizer/MiniProgram/Application.js +0 -48
  396. package/dist/OpenPlatform/Authorizer/MiniProgram/Auth/Client.d.ts +0 -11
  397. package/dist/OpenPlatform/Authorizer/MiniProgram/Auth/Client.js +0 -39
  398. package/dist/OpenPlatform/Authorizer/MiniProgram/Code/CodeClient.d.ts +0 -85
  399. package/dist/OpenPlatform/Authorizer/MiniProgram/Code/CodeClient.js +0 -152
  400. package/dist/OpenPlatform/Authorizer/MiniProgram/Domain/DomainClient.d.ts +0 -14
  401. package/dist/OpenPlatform/Authorizer/MiniProgram/Domain/DomainClient.js +0 -27
  402. package/dist/OpenPlatform/Authorizer/MiniProgram/Material/MaterialClient.d.ts +0 -8
  403. package/dist/OpenPlatform/Authorizer/MiniProgram/Material/MaterialClient.js +0 -45
  404. package/dist/OpenPlatform/Authorizer/MiniProgram/Privacy/PrivacyClient.d.ts +0 -22
  405. package/dist/OpenPlatform/Authorizer/MiniProgram/Privacy/PrivacyClient.js +0 -37
  406. package/dist/OpenPlatform/Authorizer/MiniProgram/Security/SecurityClient.d.ts +0 -14
  407. package/dist/OpenPlatform/Authorizer/MiniProgram/Security/SecurityClient.js +0 -24
  408. package/dist/OpenPlatform/Authorizer/MiniProgram/Setting/SettingClient.d.ts +0 -72
  409. package/dist/OpenPlatform/Authorizer/MiniProgram/Setting/SettingClient.js +0 -133
  410. package/dist/OpenPlatform/Authorizer/MiniProgram/Tester/TesterClient.d.ts +0 -17
  411. package/dist/OpenPlatform/Authorizer/MiniProgram/Tester/TesterClient.js +0 -35
  412. package/dist/OpenPlatform/Authorizer/OfficialAccount/Account/Client.d.ts +0 -18
  413. package/dist/OpenPlatform/Authorizer/OfficialAccount/Account/Client.js +0 -38
  414. package/dist/OpenPlatform/Authorizer/OfficialAccount/Application.d.ts +0 -7
  415. package/dist/OpenPlatform/Authorizer/OfficialAccount/Application.js +0 -20
  416. package/dist/OpenPlatform/Authorizer/OfficialAccount/MiniProgram/MiniProgramClient.d.ts +0 -19
  417. package/dist/OpenPlatform/Authorizer/OfficialAccount/MiniProgram/MiniProgramClient.js +0 -37
  418. package/dist/OpenPlatform/Authorizer/Server/Guard.d.ts +0 -4
  419. package/dist/OpenPlatform/Authorizer/Server/Guard.js +0 -13
  420. package/dist/OpenPlatform/Base/OpenPlatformBase.d.ts +0 -40
  421. package/dist/OpenPlatform/Base/OpenPlatformBase.js +0 -83
  422. package/dist/OpenPlatform/CodeTemplate/CodeTemplateClient.d.ts +0 -23
  423. package/dist/OpenPlatform/CodeTemplate/CodeTemplateClient.js +0 -48
  424. package/dist/OpenPlatform/Component/ComponentClient.d.ts +0 -15
  425. package/dist/OpenPlatform/Component/ComponentClient.js +0 -33
  426. package/dist/OpenPlatform/Server/OpenPlatformGuard.d.ts +0 -11
  427. package/dist/OpenPlatform/Server/OpenPlatformGuard.js +0 -54
  428. package/dist/OpenWork/Application.d.ts +0 -37
  429. package/dist/OpenWork/Application.js +0 -119
  430. package/dist/OpenWork/Auth/ProviderAccessToken.d.ts +0 -9
  431. package/dist/OpenWork/Auth/ProviderAccessToken.js +0 -58
  432. package/dist/OpenWork/Auth/SuiteAccessToken.d.ts +0 -9
  433. package/dist/OpenWork/Auth/SuiteAccessToken.js +0 -59
  434. package/dist/OpenWork/Auth/SuiteTicket.d.ts +0 -8
  435. package/dist/OpenWork/Auth/SuiteTicket.js +0 -40
  436. package/dist/OpenWork/Corp/CorpClient.d.ts +0 -81
  437. package/dist/OpenWork/Corp/CorpClient.js +0 -165
  438. package/dist/OpenWork/MiniProgram/MiniProgramClient.d.ts +0 -5
  439. package/dist/OpenWork/MiniProgram/MiniProgramClient.js +0 -18
  440. package/dist/OpenWork/Provider/ProviderClient.d.ts +0 -81
  441. package/dist/OpenWork/Provider/ProviderClient.js +0 -173
  442. package/dist/OpenWork/Server/OpenWorkGuard.d.ts +0 -13
  443. package/dist/OpenWork/Server/OpenWorkGuard.js +0 -51
  444. package/dist/OpenWork/Work/Application.d.ts +0 -5
  445. package/dist/OpenWork/Work/Application.js +0 -22
  446. package/dist/OpenWork/Work/Auth/AccessToken.d.ts +0 -12
  447. package/dist/OpenWork/Work/Auth/AccessToken.js +0 -44
  448. package/dist/Payment/Application.d.ts +0 -76
  449. package/dist/Payment/Application.js +0 -184
  450. package/dist/Payment/Base/PaymentBase.d.ts +0 -13
  451. package/dist/Payment/Base/PaymentBase.js +0 -40
  452. package/dist/Payment/Bill/BillClient.d.ts +0 -10
  453. package/dist/Payment/Bill/BillClient.js +0 -43
  454. package/dist/Payment/Core/BaseClient.d.ts +0 -17
  455. package/dist/Payment/Core/BaseClient.js +0 -116
  456. package/dist/Payment/Coupon/CouponClient.d.ts +0 -6
  457. package/dist/Payment/Coupon/CouponClient.js +0 -37
  458. package/dist/Payment/Jssdk/JssdkClient.d.ts +0 -38
  459. package/dist/Payment/Jssdk/JssdkClient.js +0 -122
  460. package/dist/Payment/Merchant/MerchantClient.d.ts +0 -7
  461. package/dist/Payment/Merchant/MerchantClient.js +0 -40
  462. package/dist/Payment/Notify/Handler.d.ts +0 -25
  463. package/dist/Payment/Notify/Handler.js +0 -96
  464. package/dist/Payment/Notify/Paid.d.ts +0 -6
  465. package/dist/Payment/Notify/Paid.js +0 -32
  466. package/dist/Payment/Notify/Refunded.d.ts +0 -7
  467. package/dist/Payment/Notify/Refunded.js +0 -39
  468. package/dist/Payment/Notify/Scanned.d.ts +0 -9
  469. package/dist/Payment/Notify/Scanned.js +0 -54
  470. package/dist/Payment/Order/OrderClient.d.ts +0 -25
  471. package/dist/Payment/Order/OrderClient.js +0 -78
  472. package/dist/Payment/ProfitSharing/ProfitSharingClient.d.ts +0 -10
  473. package/dist/Payment/ProfitSharing/ProfitSharingClient.js +0 -59
  474. package/dist/Payment/Redpack/RedpackClient.d.ts +0 -23
  475. package/dist/Payment/Redpack/RedpackClient.js +0 -73
  476. package/dist/Payment/Refund/RefundClient.d.ts +0 -43
  477. package/dist/Payment/Refund/RefundClient.js +0 -80
  478. package/dist/Payment/Reverse/ReverseClient.d.ts +0 -14
  479. package/dist/Payment/Reverse/ReverseClient.js +0 -30
  480. package/dist/Payment/Sandbox/SandboxClient.d.ts +0 -8
  481. package/dist/Payment/Sandbox/SandboxClient.js +0 -40
  482. package/dist/Payment/Security/SecurityClient.d.ts +0 -7
  483. package/dist/Payment/Security/SecurityClient.js +0 -18
  484. package/dist/Payment/Transfer/TransferClient.d.ts +0 -23
  485. package/dist/Payment/Transfer/TransferClient.js +0 -78
  486. package/dist/Work/Agent/AgentClient.d.ts +0 -6
  487. package/dist/Work/Agent/AgentClient.js +0 -25
  488. package/dist/Work/Agent/WorkbenchClient.d.ts +0 -24
  489. package/dist/Work/Agent/WorkbenchClient.js +0 -39
  490. package/dist/Work/Application.d.ts +0 -84
  491. package/dist/Work/Application.js +0 -236
  492. package/dist/Work/Auth/AccessToken.d.ts +0 -5
  493. package/dist/Work/Auth/AccessToken.js +0 -36
  494. package/dist/Work/Base/WorkBase.d.ts +0 -4
  495. package/dist/Work/Base/WorkBase.js +0 -12
  496. package/dist/Work/Calendar/CalendarClient.d.ts +0 -7
  497. package/dist/Work/Calendar/CalendarClient.js +0 -32
  498. package/dist/Work/Chat/ChatClient.d.ts +0 -7
  499. package/dist/Work/Chat/ChatClient.js +0 -27
  500. package/dist/Work/CorpGroup/CorpGroupClient.d.ts +0 -40
  501. package/dist/Work/CorpGroup/CorpGroupClient.js +0 -68
  502. package/dist/Work/Department/DepartmentClient.d.ts +0 -7
  503. package/dist/Work/Department/DepartmentClient.js +0 -29
  504. package/dist/Work/ExternalContact/Client.d.ts +0 -223
  505. package/dist/Work/ExternalContact/Client.js +0 -366
  506. package/dist/Work/ExternalContact/ContactWayClient.d.ts +0 -44
  507. package/dist/Work/ExternalContact/ContactWayClient.js +0 -82
  508. package/dist/Work/ExternalContact/GroupChatWayClient.d.ts +0 -32
  509. package/dist/Work/ExternalContact/GroupChatWayClient.js +0 -54
  510. package/dist/Work/ExternalContact/InterceptClient.d.ts +0 -30
  511. package/dist/Work/ExternalContact/InterceptClient.js +0 -48
  512. package/dist/Work/ExternalContact/MessageClient.d.ts +0 -58
  513. package/dist/Work/ExternalContact/MessageClient.js +0 -158
  514. package/dist/Work/ExternalContact/MessageTemplateClient.d.ts +0 -14
  515. package/dist/Work/ExternalContact/MessageTemplateClient.js +0 -78
  516. package/dist/Work/ExternalContact/MomentClient.d.ts +0 -61
  517. package/dist/Work/ExternalContact/MomentClient.js +0 -104
  518. package/dist/Work/ExternalContact/ProductClient.d.ts +0 -39
  519. package/dist/Work/ExternalContact/ProductClient.js +0 -62
  520. package/dist/Work/ExternalContact/SchoolClient.d.ts +0 -28
  521. package/dist/Work/ExternalContact/SchoolClient.js +0 -177
  522. package/dist/Work/ExternalContact/StatisticsClient.d.ts +0 -28
  523. package/dist/Work/ExternalContact/StatisticsClient.js +0 -52
  524. package/dist/Work/GroupRobot/GroupRobotClient.d.ts +0 -7
  525. package/dist/Work/GroupRobot/GroupRobotClient.js +0 -18
  526. package/dist/Work/GroupRobot/Messages/Image.d.ts +0 -6
  527. package/dist/Work/GroupRobot/Messages/Image.js +0 -15
  528. package/dist/Work/GroupRobot/Messages/Markdown.d.ts +0 -6
  529. package/dist/Work/GroupRobot/Messages/Markdown.js +0 -14
  530. package/dist/Work/GroupRobot/Messages/Message.d.ts +0 -3
  531. package/dist/Work/GroupRobot/Messages/Message.js +0 -7
  532. package/dist/Work/GroupRobot/Messages/News.d.ts +0 -8
  533. package/dist/Work/GroupRobot/Messages/News.js +0 -32
  534. package/dist/Work/GroupRobot/Messages/NewsItem.d.ts +0 -6
  535. package/dist/Work/GroupRobot/Messages/NewsItem.js +0 -20
  536. package/dist/Work/GroupRobot/Messages/Text.d.ts +0 -8
  537. package/dist/Work/GroupRobot/Messages/Text.js +0 -24
  538. package/dist/Work/GroupRobot/Messages/index.d.ts +0 -6
  539. package/dist/Work/GroupRobot/Messages/index.js +0 -22
  540. package/dist/Work/GroupRobot/Messenger.d.ts +0 -11
  541. package/dist/Work/GroupRobot/Messenger.js +0 -39
  542. package/dist/Work/Invoice/InvoiceClient.d.ts +0 -7
  543. package/dist/Work/Invoice/InvoiceClient.js +0 -38
  544. package/dist/Work/Jssdk/JssdkClient.d.ts +0 -21
  545. package/dist/Work/Jssdk/JssdkClient.js +0 -106
  546. package/dist/Work/Kf/KfAccountClient.d.ts +0 -41
  547. package/dist/Work/Kf/KfAccountClient.js +0 -71
  548. package/dist/Work/Kf/KfMessageClient.d.ts +0 -44
  549. package/dist/Work/Kf/KfMessageClient.js +0 -73
  550. package/dist/Work/Kf/KfServicerClient.d.ts +0 -26
  551. package/dist/Work/Kf/KfServicerClient.js +0 -47
  552. package/dist/Work/Live/LiveClient.d.ts +0 -6
  553. package/dist/Work/Live/LiveClient.js +0 -32
  554. package/dist/Work/Media/MediaClient.d.ts +0 -52
  555. package/dist/Work/Media/MediaClient.js +0 -124
  556. package/dist/Work/Menu/MenuClient.d.ts +0 -6
  557. package/dist/Work/Menu/MenuClient.js +0 -24
  558. package/dist/Work/Message/MessageClient.d.ts +0 -7
  559. package/dist/Work/Message/MessageClient.js +0 -16
  560. package/dist/Work/Message/Messenger.d.ts +0 -18
  561. package/dist/Work/Message/Messenger.js +0 -69
  562. package/dist/Work/MiniProgram/Application.d.ts +0 -7
  563. package/dist/Work/MiniProgram/Application.js +0 -26
  564. package/dist/Work/MiniProgram/Auth/AuthClient.d.ts +0 -8
  565. package/dist/Work/MsgAudit/MsgAuditClient.d.ts +0 -7
  566. package/dist/Work/MsgAudit/MsgAuditClient.js +0 -32
  567. package/dist/Work/OA/OAClient.d.ts +0 -11
  568. package/dist/Work/OA/OAClient.js +0 -67
  569. package/dist/Work/Schedule/ScheduleClient.d.ts +0 -8
  570. package/dist/Work/Schedule/ScheduleClient.js +0 -39
  571. package/dist/Work/Server/Guard.d.ts +0 -6
  572. package/dist/Work/Server/Guard.js +0 -34
  573. package/dist/Work/User/TagClient.d.ts +0 -13
  574. package/dist/Work/User/TagClient.js +0 -53
  575. package/dist/Work/User/UserClient.d.ts +0 -16
  576. package/dist/Work/User/UserClient.js +0 -80
@@ -1,216 +0,0 @@
1
- 'use strict';
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const BaseApplication_1 = __importDefault(require("../Core/BaseApplication"));
16
- const Utils_1 = require("../Core/Utils");
17
- const AccessToken_1 = __importDefault(require("./Authorizer/Auth/AccessToken"));
18
- const Guard_1 = __importDefault(require("./Authorizer/Server/Guard"));
19
- const Application_1 = __importDefault(require("./Authorizer/OfficialAccount/Application"));
20
- const Client_1 = __importDefault(require("./Authorizer/OfficialAccount/Account/Client"));
21
- const Application_2 = __importDefault(require("./Authorizer/MiniProgram/Application"));
22
- const Client_2 = __importDefault(require("./Authorizer/MiniProgram/Auth/Client"));
23
- const VerifyTicket_1 = __importDefault(require("./Auth/VerifyTicket"));
24
- const AccessToken_2 = __importDefault(require("./Auth/AccessToken"));
25
- const OpenPlatformBase_1 = __importDefault(require("./Base/OpenPlatformBase"));
26
- const Encryptor_1 = __importDefault(require("../Core/Encryptor"));
27
- const OpenPlatformGuard_1 = __importDefault(require("./Server/OpenPlatformGuard"));
28
- const CodeTemplateClient_1 = __importDefault(require("./CodeTemplate/CodeTemplateClient"));
29
- const ComponentClient_1 = __importDefault(require("./Component/ComponentClient"));
30
- class OpenPlatform extends BaseApplication_1.default {
31
- constructor(config = {}, prepends = {}, id = null) {
32
- super(config, prepends, id);
33
- this.registerProviders();
34
- }
35
- registerProviders() {
36
- super.registerCommonProviders();
37
- this.offsetSet('verify_ticket', function (app) {
38
- return new VerifyTicket_1.default(app);
39
- });
40
- this.offsetSet('access_token', function (app) {
41
- return new AccessToken_2.default(app);
42
- });
43
- this.offsetSet('base', function (app) {
44
- return new OpenPlatformBase_1.default(app);
45
- });
46
- this.offsetSet('encryptor', function (app) {
47
- return new Encryptor_1.default(app.config['app_id'], app.config['token'], app.config['aes_key']);
48
- });
49
- this.offsetSet('server', function (app) {
50
- return new OpenPlatformGuard_1.default(app);
51
- });
52
- this.offsetSet('code_template', function (app) {
53
- return new CodeTemplateClient_1.default(app);
54
- });
55
- this.offsetSet('component', function (app) {
56
- return new ComponentClient_1.default(app);
57
- });
58
- }
59
- /**
60
- * 获取用户授权页 URL
61
- * @param callbackUrl 回调地址
62
- * @param optional 其它参数
63
- */
64
- getPreAuthorizationUrl(callbackUrl, optional = {}) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- if ((0, Utils_1.isString)(optional)) {
67
- optional = {
68
- pre_auth_code: optional,
69
- };
70
- }
71
- else {
72
- optional['pre_auth_code'] = (yield this.createPreAuthorizationCode())['pre_auth_code'];
73
- }
74
- return 'https://mp.weixin.qq.com/cgi-bin/componentloginpage?' + (0, Utils_1.buildQueryString)((0, Utils_1.merge)((0, Utils_1.merge)({}, optional), {
75
- component_appid: this.config['app_id'],
76
- redirect_uri: callbackUrl,
77
- }));
78
- });
79
- }
80
- /**
81
- * 获取移动端用户授权页 URL
82
- * @param callbackUrl 回调地址
83
- * @param optional 其它参数
84
- */
85
- getMobilePreAuthorizationUrl(callbackUrl, optional = {}) {
86
- return __awaiter(this, void 0, void 0, function* () {
87
- if ((0, Utils_1.isString)(optional)) {
88
- optional = {
89
- pre_auth_code: optional,
90
- };
91
- }
92
- else {
93
- optional['pre_auth_code'] = (yield this.createPreAuthorizationCode())['pre_auth_code'];
94
- }
95
- return 'https://mp.weixin.qq.com/safe/bindcomponent?' + (0, Utils_1.buildQueryString)((0, Utils_1.merge)((0, Utils_1.merge)({}, optional), {
96
- component_appid: this.config['app_id'],
97
- redirect_uri: callbackUrl,
98
- action: 'bindcomponent',
99
- no_scan: 1,
100
- }));
101
- });
102
- }
103
- getAuthorizerConfig(appId, refreshToken = null) {
104
- return (0, Utils_1.merge)((0, Utils_1.merge)({}, this.config), {
105
- component_app_id: this.config['app_id'],
106
- app_id: appId,
107
- refresh_token: refreshToken,
108
- });
109
- }
110
- getReplaceServices(accessToken = null) {
111
- let that = this;
112
- let services = {
113
- access_token: accessToken || function (app) {
114
- return new AccessToken_1.default(app, that);
115
- },
116
- server: function (app) {
117
- return new Guard_1.default(app);
118
- },
119
- };
120
- ['cache', 'log', 'request'].forEach(function (reuse) {
121
- if (that[reuse]) {
122
- services[reuse] = that[reuse];
123
- }
124
- });
125
- return services;
126
- }
127
- /**
128
- * 代理公众号实现业务,返回SDK实例
129
- * @param appId 授权方公众号 APPID,非开放平台第三方平台 APPID
130
- * @param refreshToken 为授权方的 refresh_token
131
- * @param accessToken
132
- */
133
- officialAccount(appId, refreshToken = null, accessToken = null) {
134
- let that = this;
135
- let services = (0, Utils_1.merge)((0, Utils_1.merge)({}, this.getReplaceServices(accessToken)), {
136
- encryptor: this.encryptor,
137
- account: function (app) {
138
- return new Client_1.default(app, that);
139
- },
140
- });
141
- let application = new Application_1.default(this.getAuthorizerConfig(appId, refreshToken), services);
142
- application.extend('oauth', function (client) {
143
- return client;
144
- });
145
- return application;
146
- }
147
- /**
148
- * 代理小程序实现业务,返回SDK实例
149
- * @param appId 授权方小程序 APPID,非开放平台第三方平台 APPID
150
- * @param refreshToken 为授权方的 refresh_token
151
- * @param accessToken
152
- */
153
- miniProgram(appId, refreshToken = null, accessToken = null) {
154
- let that = this;
155
- let services = (0, Utils_1.merge)((0, Utils_1.merge)({}, this.getReplaceServices(accessToken)), {
156
- auth: function (app) {
157
- return new Client_2.default(app, that);
158
- },
159
- });
160
- return new Application_2.default(this.getAuthorizerConfig(appId, refreshToken), services);
161
- }
162
- // map to `base` module
163
- /**
164
- * 使用授权码换取接口调用凭据和授权信息
165
- * @param authCode 授权码, 会在授权成功的回调返回给第三方平台
166
- */
167
- handleAuthorize(...arg) {
168
- return this.base.handleAuthorize.apply(this.base, arg);
169
- }
170
- /**
171
- * 获取授权方的帐号基本信息
172
- * @param appId 授权方app_id
173
- */
174
- getAuthorizer(...arg) {
175
- return this.base.getAuthorizer.apply(this.base, arg);
176
- }
177
- /**
178
- * 设置授权方的选项信息
179
- * @param appId 授权方app_id
180
- * @param name 选项名称
181
- */
182
- getAuthorizerOption(...arg) {
183
- return this.base.getAuthorizerOption.apply(this.base, arg);
184
- }
185
- /**
186
- * 设置授权方的选项信息
187
- * @param appId 授权方app_id
188
- * @param name 选项名称
189
- * @param value 选项值
190
- */
191
- setAuthorizerOption(...arg) {
192
- return this.base.setAuthorizerOption.apply(this.base, arg);
193
- }
194
- /**
195
- * 获取已授权的授权方列表
196
- * @param offset 起始位置,从0开始
197
- * @param count 获取记录数,最大500
198
- */
199
- getAuthorizers(...arg) {
200
- return this.base.getAuthorizers.apply(this.base, arg);
201
- }
202
- /**
203
- * 获取预授权码
204
- */
205
- createPreAuthorizationCode(...arg) {
206
- return this.base.createPreAuthorizationCode.apply(this.base, arg);
207
- }
208
- /**
209
- * 清零调用次数
210
- */
211
- clearQuota(...arg) {
212
- return this.base.clearQuota.apply(this.base, arg);
213
- }
214
- }
215
- exports.default = OpenPlatform;
216
- ;
@@ -1,8 +0,0 @@
1
- import BaseAccessToken, { AccessToken } from '../../Core/BaseAccessToken';
2
- export default class AuthAccessToken extends BaseAccessToken {
3
- protected requestMethod: string;
4
- protected tokenKey: string;
5
- protected endpointToGetToken: string;
6
- protected warpAccessToken(token: Record<string, any>): AccessToken;
7
- protected getCredentials(): Promise<object>;
8
- }
@@ -1,58 +0,0 @@
1
- 'use strict';
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- const BaseAccessToken_1 = __importStar(require("../../Core/BaseAccessToken"));
36
- class AuthAccessToken extends BaseAccessToken_1.default {
37
- constructor() {
38
- super(...arguments);
39
- this.requestMethod = 'POST';
40
- this.tokenKey = 'component_access_token';
41
- this.endpointToGetToken = 'cgi-bin/component/api_component_token';
42
- }
43
- warpAccessToken(token) {
44
- return new BaseAccessToken_1.AccessToken(token, {
45
- access_token: 'component_access_token',
46
- });
47
- }
48
- getCredentials() {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- return {
51
- component_appid: this.app.config.app_id,
52
- component_appsecret: this.app.config.secret,
53
- component_verify_ticket: yield this.app['verify_ticket'].getTicket(),
54
- };
55
- });
56
- }
57
- }
58
- exports.default = AuthAccessToken;
@@ -1,8 +0,0 @@
1
- import BaseApplication from '../../Core/BaseApplication';
2
- export default class VerifyTicket {
3
- protected app: BaseApplication;
4
- constructor(app: BaseApplication);
5
- setTicket(ticket: string): Promise<this>;
6
- getTicket(): Promise<string>;
7
- protected getCacheKey(): string;
8
- }
@@ -1,40 +0,0 @@
1
- 'use strict';
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- class VerifyTicket {
13
- constructor(app) {
14
- this.app = null;
15
- this.app = app;
16
- }
17
- setTicket(ticket) {
18
- return __awaiter(this, void 0, void 0, function* () {
19
- let cacher = this.app.getCache();
20
- yield cacher.set(this.getCacheKey(), ticket, 3600);
21
- if (!(yield cacher.has(this.getCacheKey()))) {
22
- throw new Error('Failed to cache verify ticket.');
23
- }
24
- return this;
25
- });
26
- }
27
- getTicket() {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- let cached = yield this.app.getCache().get(this.getCacheKey());
30
- if (cached) {
31
- return cached;
32
- }
33
- throw new Error('Credential "component_verify_ticket" does not exist in cache.');
34
- });
35
- }
36
- getCacheKey() {
37
- return 'easywechat.open_platform.verify_ticket.' + this.app.config.app_id;
38
- }
39
- }
40
- exports.default = VerifyTicket;
@@ -1,21 +0,0 @@
1
- import BaseClient from '../../../../Core/BaseClient';
2
- export default class Client extends BaseClient {
3
- /**
4
- * 绑定公众号或小程序
5
- */
6
- create(): Promise<any>;
7
- /**
8
- * 将公众号或小程序绑定到指定开放平台帐号下
9
- * @param openAppId 开放平台app_id
10
- */
11
- bindTo(openAppId: string): Promise<any>;
12
- /**
13
- * 将公众号/小程序从开放平台帐号下解绑
14
- * @param openAppId 开放平台app_id
15
- */
16
- unbindFrom(openAppId: string): Promise<any>;
17
- /**
18
- * 获取公众号/小程序所绑定的开放平台帐号
19
- */
20
- getBinding(): Promise<any>;
21
- }
@@ -1,45 +0,0 @@
1
- 'use strict';
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const BaseClient_1 = __importDefault(require("../../../../Core/BaseClient"));
7
- class Client extends BaseClient_1.default {
8
- /**
9
- * 绑定公众号或小程序
10
- */
11
- create() {
12
- return this.httpPostJson('cgi-bin/open/create', {
13
- appid: this.app.config.app_id,
14
- });
15
- }
16
- /**
17
- * 将公众号或小程序绑定到指定开放平台帐号下
18
- * @param openAppId 开放平台app_id
19
- */
20
- bindTo(openAppId) {
21
- return this.httpPostJson('cgi-bin/open/bind', {
22
- appid: this.app.config.app_id,
23
- open_appid: openAppId,
24
- });
25
- }
26
- /**
27
- * 将公众号/小程序从开放平台帐号下解绑
28
- * @param openAppId 开放平台app_id
29
- */
30
- unbindFrom(openAppId) {
31
- return this.httpPostJson('cgi-bin/open/unbind', {
32
- appid: this.app.config.app_id,
33
- open_appid: openAppId,
34
- });
35
- }
36
- /**
37
- * 获取公众号/小程序所绑定的开放平台帐号
38
- */
39
- getBinding() {
40
- return this.httpPostJson('cgi-bin/open/get', {
41
- appid: this.app.config.app_id,
42
- });
43
- }
44
- }
45
- exports.default = Client;
@@ -1,13 +0,0 @@
1
- import BaseAccessToken, { AccessToken } from '../../../Core/BaseAccessToken';
2
- import OpenPlatformApplication from '../../Application';
3
- import BaseApplicatioin from '../../../Core/BaseApplication';
4
- export default class AuthAccessToken extends BaseAccessToken {
5
- protected requestMethod: string;
6
- protected queryName: string;
7
- protected tokenKey: string;
8
- protected component: OpenPlatformApplication;
9
- constructor(app: BaseApplicatioin, component: OpenPlatformApplication);
10
- protected warpAccessToken(token: Record<string, any>): AccessToken;
11
- protected getCredentials(): Promise<object>;
12
- getEndpoint(): Promise<string>;
13
- }
@@ -1,69 +0,0 @@
1
- 'use strict';
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- const BaseAccessToken_1 = __importStar(require("../../../Core/BaseAccessToken"));
36
- const Utils_1 = require("../../../Core/Utils");
37
- class AuthAccessToken extends BaseAccessToken_1.default {
38
- constructor(app, component) {
39
- super(app);
40
- this.requestMethod = 'POST';
41
- this.queryName = 'access_token';
42
- this.tokenKey = 'authorizer_access_token';
43
- this.component = null;
44
- this.component = component;
45
- }
46
- warpAccessToken(token) {
47
- return new BaseAccessToken_1.AccessToken(token, {
48
- access_token: 'authorizer_access_token',
49
- refresh_token: 'authorizer_refresh_token',
50
- });
51
- }
52
- getCredentials() {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- return {
55
- component_appid: this.component.config.app_id,
56
- authorizer_appid: this.app.config.app_id,
57
- authorizer_refresh_token: this.app.config.refresh_token,
58
- };
59
- });
60
- }
61
- getEndpoint() {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- return 'cgi-bin/component/api_authorizer_token?' + (0, Utils_1.buildQueryString)({
64
- component_access_token: (yield this.component.access_token.getToken())['component_access_token'],
65
- });
66
- });
67
- }
68
- }
69
- exports.default = AuthAccessToken;
@@ -1,21 +0,0 @@
1
- import BaseClient from '../../Aggregate/Account/Client';
2
- export default class AccountClient extends BaseClient {
3
- /**
4
- * 获取基本信息
5
- */
6
- getBasicInfo(): Promise<any>;
7
- /**
8
- * 修改头像
9
- * @param mediaId 头像素材 media_id
10
- * @param left 裁剪框左上角 x 坐标(取值范围:[0, 1])
11
- * @param top 裁剪框左上角 y 坐标(取值范围:[0, 1])
12
- * @param right 裁剪框右下角 x 坐标(取值范围:[0, 1])
13
- * @param bottom 裁剪框右下角 y 坐标(取值范围:[0, 1])
14
- */
15
- updateAvatar(mediaId: string, left?: number, top?: number, right?: number, bottom?: number): Promise<any>;
16
- /**
17
- * 修改功能介绍
18
- * @param signature 功能介绍(简介)
19
- */
20
- updateSignature(signature: string): Promise<any>;
21
- }
@@ -1,42 +0,0 @@
1
- 'use strict';
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const Client_1 = __importDefault(require("../../Aggregate/Account/Client"));
7
- class AccountClient extends Client_1.default {
8
- /**
9
- * 获取基本信息
10
- */
11
- getBasicInfo() {
12
- return this.httpPostJson('cgi-bin/account/getaccountbasicinfo');
13
- }
14
- /**
15
- * 修改头像
16
- * @param mediaId 头像素材 media_id
17
- * @param left 裁剪框左上角 x 坐标(取值范围:[0, 1])
18
- * @param top 裁剪框左上角 y 坐标(取值范围:[0, 1])
19
- * @param right 裁剪框右下角 x 坐标(取值范围:[0, 1])
20
- * @param bottom 裁剪框右下角 y 坐标(取值范围:[0, 1])
21
- */
22
- updateAvatar(mediaId, left = 0, top = 0, right = 0, bottom = 0) {
23
- let params = {
24
- head_img_media_id: mediaId,
25
- x1: left,
26
- y1: top,
27
- x2: right,
28
- y2: bottom,
29
- };
30
- return this.httpPostJson('cgi-bin/account/modifyheadimage', params);
31
- }
32
- /**
33
- * 修改功能介绍
34
- * @param signature 功能介绍(简介)
35
- */
36
- updateSignature(signature) {
37
- return this.httpPostJson('cgi-bin/account/modifysignature', {
38
- signature: signature
39
- });
40
- }
41
- }
42
- exports.default = AccountClient;
@@ -1,21 +0,0 @@
1
- import BaseApplication from '../../../MiniProgram/Application';
2
- import CodeClient from './Code/CodeClient';
3
- import DomainClient from './Domain/DomainClient';
4
- import MaterialClient from './Material/MaterialClient';
5
- import PrivacyClient from './Privacy/PrivacyClient';
6
- import SecurityClient from './Security/SecurityClient';
7
- import AccountClient from './Account/AccountClient';
8
- import SettingClient from './Setting/SettingClient';
9
- import TesterClient from './Tester/TesterClient';
10
- export default class MiniProgram extends BaseApplication {
11
- code: CodeClient;
12
- domain: DomainClient;
13
- material: MaterialClient;
14
- privacy: PrivacyClient;
15
- security: SecurityClient;
16
- account: AccountClient;
17
- setting: SettingClient;
18
- tester: TesterClient;
19
- constructor(config?: Object, prepends?: Object, id?: String);
20
- registerExtraProviders(): void;
21
- }
@@ -1,48 +0,0 @@
1
- 'use strict';
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const Application_1 = __importDefault(require("../../../MiniProgram/Application"));
7
- const CodeClient_1 = __importDefault(require("./Code/CodeClient"));
8
- const DomainClient_1 = __importDefault(require("./Domain/DomainClient"));
9
- const MaterialClient_1 = __importDefault(require("./Material/MaterialClient"));
10
- const PrivacyClient_1 = __importDefault(require("./Privacy/PrivacyClient"));
11
- const SecurityClient_1 = __importDefault(require("./Security/SecurityClient"));
12
- const AccountClient_1 = __importDefault(require("./Account/AccountClient"));
13
- const SettingClient_1 = __importDefault(require("./Setting/SettingClient"));
14
- const TesterClient_1 = __importDefault(require("./Tester/TesterClient"));
15
- class MiniProgram extends Application_1.default {
16
- constructor(config = {}, prepends = {}, id = null) {
17
- super(config, prepends, id);
18
- this.registerExtraProviders();
19
- }
20
- registerExtraProviders() {
21
- this.offsetSet('code', function (app) {
22
- return new CodeClient_1.default(app);
23
- });
24
- this.offsetSet('domain', function (app) {
25
- return new DomainClient_1.default(app);
26
- });
27
- this.offsetSet('material', function (app) {
28
- return new MaterialClient_1.default(app);
29
- });
30
- this.offsetSet('privacy', function (app) {
31
- return new PrivacyClient_1.default(app);
32
- });
33
- this.offsetSet('security', function (app) {
34
- return new SecurityClient_1.default(app);
35
- });
36
- this.offsetSet('account', function (app) {
37
- return new AccountClient_1.default(app);
38
- });
39
- this.offsetSet('setting', function (app) {
40
- return new SettingClient_1.default(app);
41
- });
42
- this.offsetSet('tester', function (app) {
43
- return new TesterClient_1.default(app);
44
- });
45
- }
46
- }
47
- exports.default = MiniProgram;
48
- ;
@@ -1,11 +0,0 @@
1
- import BaseApplicatioin from '../../../../Core/BaseApplication';
2
- import BaseClient from '../../../../Core/BaseClient';
3
- export default class Client extends BaseClient {
4
- protected component: BaseApplicatioin;
5
- constructor(app: BaseApplicatioin, component: BaseApplicatioin);
6
- /**
7
- * 小程序登录,jscode换取session_key
8
- * @param code wx.login 获取的 code
9
- */
10
- session(code: string): Promise<any>;
11
- }