@ones-open/cli 0.0.8

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 (210) hide show
  1. package/LICENSE +201 -0
  2. package/bin/ones.js +4 -0
  3. package/dist/index.cjs +1889 -0
  4. package/dist/index.js +1888 -0
  5. package/dist/types/actions/build/index.d.ts +4 -0
  6. package/dist/types/actions/build/index.d.ts.map +1 -0
  7. package/dist/types/actions/build/normalize.d.ts +6 -0
  8. package/dist/types/actions/build/normalize.d.ts.map +1 -0
  9. package/dist/types/actions/build/regexp.d.ts +2 -0
  10. package/dist/types/actions/build/regexp.d.ts.map +1 -0
  11. package/dist/types/actions/dev/enums.d.ts +11 -0
  12. package/dist/types/actions/dev/enums.d.ts.map +1 -0
  13. package/dist/types/actions/dev/index.d.ts +4 -0
  14. package/dist/types/actions/dev/index.d.ts.map +1 -0
  15. package/dist/types/actions/dev/normalize.d.ts +6 -0
  16. package/dist/types/actions/dev/normalize.d.ts.map +1 -0
  17. package/dist/types/actions/dev/types.d.ts +10 -0
  18. package/dist/types/actions/dev/types.d.ts.map +1 -0
  19. package/dist/types/actions/disable/index.d.ts +4 -0
  20. package/dist/types/actions/disable/index.d.ts.map +1 -0
  21. package/dist/types/actions/disable/normalize.d.ts +6 -0
  22. package/dist/types/actions/disable/normalize.d.ts.map +1 -0
  23. package/dist/types/actions/enable/index.d.ts +4 -0
  24. package/dist/types/actions/enable/index.d.ts.map +1 -0
  25. package/dist/types/actions/enable/normalize.d.ts +6 -0
  26. package/dist/types/actions/enable/normalize.d.ts.map +1 -0
  27. package/dist/types/actions/index.d.ts +15 -0
  28. package/dist/types/actions/index.d.ts.map +1 -0
  29. package/dist/types/actions/install/index.d.ts +5 -0
  30. package/dist/types/actions/install/index.d.ts.map +1 -0
  31. package/dist/types/actions/install/install.d.ts +3 -0
  32. package/dist/types/actions/install/install.d.ts.map +1 -0
  33. package/dist/types/actions/install/normalize.d.ts +6 -0
  34. package/dist/types/actions/install/normalize.d.ts.map +1 -0
  35. package/dist/types/actions/legacy/index.d.ts +4 -0
  36. package/dist/types/actions/legacy/index.d.ts.map +1 -0
  37. package/dist/types/actions/legacy/normalize.d.ts +6 -0
  38. package/dist/types/actions/legacy/normalize.d.ts.map +1 -0
  39. package/dist/types/actions/login/consts.d.ts +2 -0
  40. package/dist/types/actions/login/consts.d.ts.map +1 -0
  41. package/dist/types/actions/login/index.d.ts +4 -0
  42. package/dist/types/actions/login/index.d.ts.map +1 -0
  43. package/dist/types/actions/login/normalize.d.ts +6 -0
  44. package/dist/types/actions/login/normalize.d.ts.map +1 -0
  45. package/dist/types/actions/login/regexp.d.ts +2 -0
  46. package/dist/types/actions/login/regexp.d.ts.map +1 -0
  47. package/dist/types/actions/logout/index.d.ts +4 -0
  48. package/dist/types/actions/logout/index.d.ts.map +1 -0
  49. package/dist/types/actions/logout/normalize.d.ts +6 -0
  50. package/dist/types/actions/logout/normalize.d.ts.map +1 -0
  51. package/dist/types/actions/tunnel/consts.d.ts +4 -0
  52. package/dist/types/actions/tunnel/consts.d.ts.map +1 -0
  53. package/dist/types/actions/tunnel/index.d.ts +7 -0
  54. package/dist/types/actions/tunnel/index.d.ts.map +1 -0
  55. package/dist/types/actions/tunnel/normalize.d.ts +6 -0
  56. package/dist/types/actions/tunnel/normalize.d.ts.map +1 -0
  57. package/dist/types/actions/tunnel/regexp.d.ts +2 -0
  58. package/dist/types/actions/tunnel/regexp.d.ts.map +1 -0
  59. package/dist/types/actions/tunnel/tunnel-client.d.ts +25 -0
  60. package/dist/types/actions/tunnel/tunnel-client.d.ts.map +1 -0
  61. package/dist/types/actions/tunnel/tunnel.d.ts +3 -0
  62. package/dist/types/actions/tunnel/tunnel.d.ts.map +1 -0
  63. package/dist/types/actions/tunnel/types.d.ts +31 -0
  64. package/dist/types/actions/tunnel/types.d.ts.map +1 -0
  65. package/dist/types/actions/tunnel/utils.d.ts +7 -0
  66. package/dist/types/actions/tunnel/utils.d.ts.map +1 -0
  67. package/dist/types/actions/uninstall/index.d.ts +4 -0
  68. package/dist/types/actions/uninstall/index.d.ts.map +1 -0
  69. package/dist/types/actions/uninstall/normalize.d.ts +6 -0
  70. package/dist/types/actions/uninstall/normalize.d.ts.map +1 -0
  71. package/dist/types/actions/whoami/index.d.ts +4 -0
  72. package/dist/types/actions/whoami/index.d.ts.map +1 -0
  73. package/dist/types/actions/whoami/normalize.d.ts +6 -0
  74. package/dist/types/actions/whoami/normalize.d.ts.map +1 -0
  75. package/dist/types/cli/index.d.ts +2 -0
  76. package/dist/types/cli/index.d.ts.map +1 -0
  77. package/dist/types/command/app/index.d.ts +4 -0
  78. package/dist/types/command/app/index.d.ts.map +1 -0
  79. package/dist/types/command/build/index.d.ts +10 -0
  80. package/dist/types/command/build/index.d.ts.map +1 -0
  81. package/dist/types/command/dev/index.d.ts +11 -0
  82. package/dist/types/command/dev/index.d.ts.map +1 -0
  83. package/dist/types/command/disable/index.d.ts +8 -0
  84. package/dist/types/command/disable/index.d.ts.map +1 -0
  85. package/dist/types/command/enable/index.d.ts +8 -0
  86. package/dist/types/command/enable/index.d.ts.map +1 -0
  87. package/dist/types/command/index.d.ts +16 -0
  88. package/dist/types/command/index.d.ts.map +1 -0
  89. package/dist/types/command/install/index.d.ts +8 -0
  90. package/dist/types/command/install/index.d.ts.map +1 -0
  91. package/dist/types/command/legacy/index.d.ts +8 -0
  92. package/dist/types/command/legacy/index.d.ts.map +1 -0
  93. package/dist/types/command/login/index.d.ts +8 -0
  94. package/dist/types/command/login/index.d.ts.map +1 -0
  95. package/dist/types/command/logout/index.d.ts +8 -0
  96. package/dist/types/command/logout/index.d.ts.map +1 -0
  97. package/dist/types/command/tunnel/index.d.ts +9 -0
  98. package/dist/types/command/tunnel/index.d.ts.map +1 -0
  99. package/dist/types/command/uninstall/index.d.ts +8 -0
  100. package/dist/types/command/uninstall/index.d.ts.map +1 -0
  101. package/dist/types/command/whoami/index.d.ts +8 -0
  102. package/dist/types/command/whoami/index.d.ts.map +1 -0
  103. package/dist/types/common/base/index.d.ts +5 -0
  104. package/dist/types/common/base/index.d.ts.map +1 -0
  105. package/dist/types/common/base/utils.d.ts +7 -0
  106. package/dist/types/common/base/utils.d.ts.map +1 -0
  107. package/dist/types/common/command/index.d.ts +6 -0
  108. package/dist/types/common/command/index.d.ts.map +1 -0
  109. package/dist/types/common/command/types.d.ts +2 -0
  110. package/dist/types/common/command/types.d.ts.map +1 -0
  111. package/dist/types/common/command/utils.d.ts +2 -0
  112. package/dist/types/common/command/utils.d.ts.map +1 -0
  113. package/dist/types/common/config/consts.d.ts +5 -0
  114. package/dist/types/common/config/consts.d.ts.map +1 -0
  115. package/dist/types/common/config/index.d.ts +7 -0
  116. package/dist/types/common/config/index.d.ts.map +1 -0
  117. package/dist/types/common/config/types.d.ts +8 -0
  118. package/dist/types/common/config/types.d.ts.map +1 -0
  119. package/dist/types/common/config/utils.d.ts +3 -0
  120. package/dist/types/common/config/utils.d.ts.map +1 -0
  121. package/dist/types/common/context/index.d.ts +6 -0
  122. package/dist/types/common/context/index.d.ts.map +1 -0
  123. package/dist/types/common/context/types.d.ts +2 -0
  124. package/dist/types/common/context/types.d.ts.map +1 -0
  125. package/dist/types/common/context/utils.d.ts +2 -0
  126. package/dist/types/common/context/utils.d.ts.map +1 -0
  127. package/dist/types/common/error/enums.d.ts +20 -0
  128. package/dist/types/common/error/enums.d.ts.map +1 -0
  129. package/dist/types/common/error/index.d.ts +7 -0
  130. package/dist/types/common/error/index.d.ts.map +1 -0
  131. package/dist/types/common/error/types.d.ts +2 -0
  132. package/dist/types/common/error/types.d.ts.map +1 -0
  133. package/dist/types/common/error/utils.d.ts +2 -0
  134. package/dist/types/common/error/utils.d.ts.map +1 -0
  135. package/dist/types/common/locales/en/index.d.ts +41 -0
  136. package/dist/types/common/locales/en/index.d.ts.map +1 -0
  137. package/dist/types/common/locales/index.d.ts +6 -0
  138. package/dist/types/common/locales/index.d.ts.map +1 -0
  139. package/dist/types/common/locales/types.d.ts +4 -0
  140. package/dist/types/common/locales/types.d.ts.map +1 -0
  141. package/dist/types/common/locales/utils.d.ts +6 -0
  142. package/dist/types/common/locales/utils.d.ts.map +1 -0
  143. package/dist/types/common/package/index.d.ts +7 -0
  144. package/dist/types/common/package/index.d.ts.map +1 -0
  145. package/dist/types/common/package/schema.d.ts +3 -0
  146. package/dist/types/common/package/schema.d.ts.map +1 -0
  147. package/dist/types/common/package/types.d.ts +2 -0
  148. package/dist/types/common/package/types.d.ts.map +1 -0
  149. package/dist/types/common/package/utils.d.ts +16 -0
  150. package/dist/types/common/package/utils.d.ts.map +1 -0
  151. package/dist/types/common/public/consts.d.ts +2 -0
  152. package/dist/types/common/public/consts.d.ts.map +1 -0
  153. package/dist/types/common/public/index.d.ts +6 -0
  154. package/dist/types/common/public/index.d.ts.map +1 -0
  155. package/dist/types/common/public/utils.d.ts +2 -0
  156. package/dist/types/common/public/utils.d.ts.map +1 -0
  157. package/dist/types/common/request/consts.d.ts +16 -0
  158. package/dist/types/common/request/consts.d.ts.map +1 -0
  159. package/dist/types/common/request/fetch.d.ts +13 -0
  160. package/dist/types/common/request/fetch.d.ts.map +1 -0
  161. package/dist/types/common/request/index.d.ts +8 -0
  162. package/dist/types/common/request/index.d.ts.map +1 -0
  163. package/dist/types/common/request/types.d.ts +98 -0
  164. package/dist/types/common/request/types.d.ts.map +1 -0
  165. package/dist/types/common/request/utils.d.ts +11 -0
  166. package/dist/types/common/request/utils.d.ts.map +1 -0
  167. package/dist/types/common/store/index.d.ts +6 -0
  168. package/dist/types/common/store/index.d.ts.map +1 -0
  169. package/dist/types/common/store/schema.d.ts +75 -0
  170. package/dist/types/common/store/schema.d.ts.map +1 -0
  171. package/dist/types/common/store/utils.d.ts +13 -0
  172. package/dist/types/common/store/utils.d.ts.map +1 -0
  173. package/dist/types/common/template/index.d.ts +5 -0
  174. package/dist/types/common/template/index.d.ts.map +1 -0
  175. package/dist/types/common/template/utils.d.ts +3 -0
  176. package/dist/types/common/template/utils.d.ts.map +1 -0
  177. package/dist/types/index.d.ts +2 -0
  178. package/dist/types/index.d.ts.map +1 -0
  179. package/index.d.ts +2 -0
  180. package/index.js +2 -0
  181. package/package.json +83 -0
  182. package/public/callback.html +65 -0
  183. package/public/logo.svg +4 -0
  184. package/template/legacy/README.md +13 -0
  185. package/template/legacy/_backend_npmrc +5 -0
  186. package/template/legacy/_backend_tsconfig.json +23 -0
  187. package/template/legacy/_eslintignore +2 -0
  188. package/template/legacy/_eslintrc.js +97 -0
  189. package/template/legacy/_gitignore +21 -0
  190. package/template/legacy/_gitlab-ci.yml +3 -0
  191. package/template/legacy/_husky_pre-commit +1 -0
  192. package/template/legacy/_npmrc +5 -0
  193. package/template/legacy/_prettierignore +15 -0
  194. package/template/legacy/_prettierrc +6 -0
  195. package/template/legacy/_web_npmrc +5 -0
  196. package/template/legacy/_web_tsconfig.json +20 -0
  197. package/template/legacy/backend/package.json +10 -0
  198. package/template/legacy/backend/src/index.ts +139 -0
  199. package/template/legacy/backend/src/ones.d.ts +6 -0
  200. package/template/legacy/config/ci-deploy.yaml +11 -0
  201. package/template/legacy/config/local.yaml +30 -0
  202. package/template/legacy/config/plugin.yaml +25 -0
  203. package/template/legacy/config/upgrade.yaml +8 -0
  204. package/template/legacy/op.config.mjs +4 -0
  205. package/template/legacy/package-lock.json +17446 -0
  206. package/template/legacy/package.json +73 -0
  207. package/template/legacy/web/browserslist +4 -0
  208. package/template/legacy/web/package.json +29 -0
  209. package/template/legacy/web/public/logo.svg +5 -0
  210. package/template/legacy/workspace/plugin.sql +2 -0
@@ -0,0 +1,8 @@
1
+ import { Command } from 'commander';
2
+ export declare const logoutCommandArguments: readonly [];
3
+ export type LogoutCommandArguments = typeof logoutCommandArguments;
4
+ export interface LogoutCommandOptions {
5
+ }
6
+ declare const $logout: Command;
7
+ export { $logout };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/logout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,sBAAsB,aAAc,CAAA;AAEjD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,oBAAoB;CAAG;AAExC,QAAA,MAAM,OAAO,SAA0E,CAAA;AAKvF,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Command } from 'commander';
2
+ export declare const tunnelCommandArguments: readonly ["port"];
3
+ export type TunnelCommandArguments = typeof tunnelCommandArguments;
4
+ export interface TunnelCommandOptions {
5
+ clearStorage?: boolean;
6
+ }
7
+ declare const $tunnel: Command;
8
+ export { $tunnel };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/tunnel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,sBAAsB,mBAAoB,CAAA;AAEvD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,QAAA,MAAM,OAAO,SAII,CAAA;AAKjB,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Command } from 'commander';
2
+ export declare const uninstallCommandArguments: readonly [];
3
+ export type UninstallCommandArguments = typeof uninstallCommandArguments;
4
+ export interface UninstallCommandOptions {
5
+ }
6
+ declare const $uninstall: Command;
7
+ export { $uninstall };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/uninstall/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,yBAAyB,aAAc,CAAA;AAEpD,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,MAAM,WAAW,uBAAuB;CAAG;AAE3C,QAAA,MAAM,UAAU,SAAmF,CAAA;AAKnG,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Command } from 'commander';
2
+ export declare const whoamiCommandArguments: readonly [];
3
+ export type WhoamiCommandArguments = typeof whoamiCommandArguments;
4
+ export interface WhoamiCommandOptions {
5
+ }
6
+ declare const $whoami: Command;
7
+ export { $whoami };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/whoami/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,sBAAsB,aAAc,CAAA;AAEjD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,oBAAoB;CAAG;AAExC,QAAA,MAAM,OAAO,SAA0E,CAAA;AAKvF,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 基础工具
3
+ */
4
+ export * from './utils';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/base/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare function createPromise<T>(): {
2
+ promise: Promise<T>;
3
+ resolve: (value: T | PromiseLike<T>) => void;
4
+ reject: (reason?: any) => void;
5
+ };
6
+ export declare const sleep: (number: number) => Promise<unknown>;
7
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/base/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,CAAC;;qBACP,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI;sBAC1B,GAAG,KAAK,IAAI;EAUpC;AAED,eAAO,MAAM,KAAK,GAAI,QAAQ,MAAM,qBAInC,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 处理命令行参数和选项的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/command/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { AnyCommandArguments, AnyCommandOptions, CommandArguments, CommandOptions, } from 'create-ones-app';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/command/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { getCommandOptions, addCommandUsage, addCommandOutput } from 'create-ones-app';
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/command/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const minPortNumber = 1;
2
+ export declare const maxPortNumber = 65535;
3
+ export declare const randomPortRangeStartNumber = 10000;
4
+ export declare const randomPortRangeEndNumber = 65535;
5
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/common/config/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,IAAI,CAAA;AAC9B,eAAO,MAAM,aAAa,QAAQ,CAAA;AAClC,eAAO,MAAM,0BAA0B,QAAQ,CAAA;AAC/C,eAAO,MAAM,wBAAwB,QAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 对 config 读写的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './types';
6
+ export * from './consts';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/config/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,8 @@
1
+ export interface Config {
2
+ defaultPort: {
3
+ login: number;
4
+ hosted: number;
5
+ devWebServer: number;
6
+ };
7
+ }
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/config/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,WAAW,EAAE;QACX,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;CACF"}
@@ -0,0 +1,3 @@
1
+ import type { Config } from './types';
2
+ export declare const getConfig: () => Config;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/config/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAYrC,eAAO,MAAM,SAAS,cAAe,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 处理命令过程中上下文的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/context/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { Context, ContextKey } from 'create-ones-app';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/context/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { getContext, setContext } from 'create-ones-app';
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/context/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,20 @@
1
+ export declare enum ErrorCode {
2
+ UNKNOWN_ERROR = "E00",
3
+ COMMAND_ERROR = "E01",
4
+ TEMPLATE_NOT_FOUND = "E02",
5
+ MISSING_PROJECT_PATH = "E03",
6
+ MISSING_BASE_URL = "E04",
7
+ MISSING_PORT = "E05",
8
+ INCORRECT_BASE_URL = "E06",
9
+ INCORRECT_PORT = "E07",
10
+ APP_PACKAGE_JSON_PARSE_ERROR = "E08",
11
+ APP_MANIFEST_JSON_PARSE_ERROR = "E09",
12
+ BUILD_SCRIPT_NOT_FOUND = "E10",
13
+ DEV_SCRIPT_NOT_FOUND = "E11",
14
+ STORE_PERMISSION = "E12",
15
+ HOSTED_TOKEN_REQUEST_FAILED = "E13",
16
+ HOSTED_TOKEN_EMPTY = "E14",
17
+ INCORRECT_DEV_COMMAND = "E15",
18
+ INCORRECT_BUILD_COMMAND = "E16"
19
+ }
20
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/common/error/enums.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS;IACnB,aAAa,QAAgC;IAC7C,aAAa,QAAgC;IAC7C,kBAAkB,QAAqC;IACvD,oBAAoB,QAAuC;IAC3D,gBAAgB,QAAQ;IACxB,YAAY,QAAQ;IACpB,kBAAkB,QAAQ;IAC1B,cAAc,QAAQ;IACtB,4BAA4B,QAAQ;IACpC,6BAA6B,QAAQ;IACrC,sBAAsB,QAAQ;IAC9B,oBAAoB,QAAQ;IAC5B,gBAAgB,QAAQ;IACxB,2BAA2B,QAAQ;IACnC,kBAAkB,QAAQ;IAC1B,qBAAqB,QAAQ;IAC7B,uBAAuB,QAAQ;CAChC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 处理错误码的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './types';
6
+ export * from './enums';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/error/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { Error } from 'create-ones-app';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/error/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { throwError } from 'create-ones-app';
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/error/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,41 @@
1
+ declare const _default: {
2
+ readonly 'desc.ones': "ONES CLI/{env}";
3
+ readonly 'desc.build': "Build your ONES App";
4
+ readonly 'desc.build.output': "Specify the output file path";
5
+ readonly 'desc.build.command': "Specify the build command";
6
+ readonly 'desc.dev': "Start your local development server and connect to ONES";
7
+ readonly 'desc.dev.install': "Install your ONES App after the server is ready";
8
+ readonly 'desc.dev.command': "Specify the dev command";
9
+ readonly 'desc.dev.clearStorage': "Clear development storage namespace before applying hosted storage";
10
+ readonly 'desc.tunnel': "Start a tunnel to connect your local server with ONES";
11
+ readonly 'desc.tunnel.port': "Specify the port number for tunnel";
12
+ readonly 'desc.login': "Log in to your ONES account";
13
+ readonly 'desc.login.baseUrl': "Specify the ONES URL for login";
14
+ readonly 'desc.logout': "Log out of your ONES account";
15
+ readonly 'desc.whoami': "Display the account information of the logged in user";
16
+ readonly 'desc.app': "Manage app installations";
17
+ readonly 'desc.install': "Install your ONES App";
18
+ readonly 'desc.enable': "Enable your ONES App";
19
+ readonly 'desc.disable': "Disable your ONES App";
20
+ readonly 'desc.uninstall': "Uninstall your ONES App";
21
+ readonly 'desc.legacy': "Legacy command";
22
+ readonly 'desc.legacy.create': "Create a new ONES plugin";
23
+ readonly 'desc.legacy.create.projectPath': "Specify the project path";
24
+ readonly 'error.login.missingBaseURL': "Missing base URL";
25
+ readonly 'error.login.incorrectBaseURL': "Incorrect base URL";
26
+ readonly 'error.tunnel.missingPort': "Missing port";
27
+ readonly 'error.tunnel.incorrectPort': "Incorrect port";
28
+ readonly 'error.schema.app.package.parseError': "App package JSON parse error";
29
+ readonly 'error.schema.app.manifest.parseError': "App \"opkx.json\" JSON parse error";
30
+ readonly 'error.schema.app.manifest.validateError': "App \"opkx.json\" JSON validation failed: \"{err}\". Please check this issue, or upgrade your ONES CLI to the latest version if the problem persists.";
31
+ readonly 'error.build.scriptNotFound': "Npm \"build\" script not found";
32
+ readonly 'error.build.incorrectCommand': "Incorrect build command";
33
+ readonly 'error.dev.scriptNotFound': "Npm \"dev\" script not found";
34
+ readonly 'error.dev.incorrectCommand': "Incorrect dev command";
35
+ readonly 'error.store.permission': "Permission denied, please check the file permission with \"{filePath}\"";
36
+ readonly 'error.hostedToken.requestFailed': "Failed to request hosted token";
37
+ readonly 'error.hostedToken.empty': "Hosted token is empty";
38
+ readonly 'error.legacy.create.missingProjectPath': "Project path is required";
39
+ };
40
+ export default _default;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/locales/en/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuCU"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 处理国际化的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/locales/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { default as Locale } from './en';
2
+ export type { default as Locale } from './en';
3
+ export type LocaleMap = Record<string, typeof Locale>;
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/locales/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AAE7C,YAAY,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AAC7C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,MAAM,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const getCurrentLanguageList: () => string[];
2
+ export declare const translate: (key: string, params?: Record<string, unknown>) => any;
3
+ export declare const i18n: {
4
+ readonly t: (key: string, params?: Record<string, unknown>) => any;
5
+ };
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/locales/utils.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB,gBAElC,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAiBtE,CAAA;AAED,eAAO,MAAM,IAAI;sBAnBc,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAqB7D,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 对 package.json 读写的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './types';
6
+ export * from './schema';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/package/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { AppPackageJSONSchema, AppManifestJSONSchema, AppManifestStrictJSONSchema, AppRcJSONSchema, } from 'create-ones-app';
2
+ export type { AppPackageJSON, AppManifestJSON, AppRcJSON } from 'create-ones-app';
3
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/common/package/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,eAAe,GAChB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { PackageJSON } from 'create-ones-app';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/package/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { PackageJSON } from './types';
2
+ import type { AppPackageJSON, AppManifestJSON, AppRcJSON } from './schema';
3
+ export declare const getPackageJSONPath: () => string;
4
+ export declare const getPackageJSON: () => PackageJSON;
5
+ export declare const getAppWorkspacePath: () => string;
6
+ export declare const getAppPackageJSONPath: () => string;
7
+ export declare const getAppPackageJSON: () => AppPackageJSON;
8
+ export declare const getAppManifestJSONPath: () => string;
9
+ export declare const getAppManifestJSON: () => AppManifestJSON;
10
+ export declare const validateAppManifestJSON: () => undefined;
11
+ export declare const getAppRcJSONPath: () => string;
12
+ export declare const defaultDevCommand: string[];
13
+ export declare const defaultBuildCommand: string[];
14
+ export declare const defaultAppRcJSON: AppRcJSON;
15
+ export declare const getAppRcJSON: () => Promise<AppRcJSON>;
16
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/package/utils.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAE1E,eAAO,MAAM,kBAAkB,cAG9B,CAAA;AAED,eAAO,MAAM,cAAc,QAAO,WAUjC,CAAA;AAED,eAAO,MAAM,mBAAmB,cAE/B,CAAA;AAED,eAAO,MAAM,qBAAqB,cAEjC,CAAA;AAED,eAAO,MAAM,iBAAiB,QAAO,cAepC,CAAA;AAED,eAAO,MAAM,sBAAsB,cAElC,CAAA;AAED,eAAO,MAAM,kBAAkB,QAAO,eAgBrC,CAAA;AAED,eAAO,MAAM,uBAAuB,iBAanC,CAAA;AAED,eAAO,MAAM,gBAAgB,cAE5B,CAAA;AAED,eAAO,MAAM,iBAAiB,UAAwB,CAAA;AAEtD,eAAO,MAAM,mBAAmB,UAA0B,CAAA;AAE1D,eAAO,MAAM,gBAAgB,EAAE,SAO9B,CAAA;AAID,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,SAAS,CA2BtD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { PUBLIC_FILENAME } from 'create-ones-app';
2
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/common/public/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 对静态资源读写的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './consts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/public/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const getPublicPath: () => string;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/public/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,cAGzB,CAAA"}
@@ -0,0 +1,16 @@
1
+ export declare const API: {
2
+ TOKEN_INFO: string;
3
+ HOSTED_TOKEN: string;
4
+ HOSTED_ABILITY_STORAGE_DEV_DECLARE: string;
5
+ APP_LIST: string;
6
+ APP_INSTALL: string;
7
+ APP_UPGRADE: string;
8
+ APP_UNINSTALL: string;
9
+ APP_ENABLE: string;
10
+ APP_DISABLE: string;
11
+ OAUTH_TOKEN: string;
12
+ REFRESH_TOKEN: string;
13
+ };
14
+ export declare const REQUEST_TIMEOUT = 10000;
15
+ export declare const OAUTH_TOKEN_CLIENT_ID = "ones.v1.cli";
16
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/common/request/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;;;;;;;;CAaf,CAAA;AAED,eAAO,MAAM,eAAe,QAAQ,CAAA;AAEpC,eAAO,MAAM,qBAAqB,gBAAgB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { FetchAppBaseCall, FetchTokenInfoCall, FetchHostedTokenCall, FetchHostedAbilityStorageDevDeclareCall, FetchAppListCall, FetchAppInstallCall, FetchAppUninstallCall, FetchAppEnableCall, FetchAppDisableCall, FetchHostedAbilityBaseCall } from './types';
2
+ export declare const fetchAppBase: FetchAppBaseCall;
3
+ export declare const fetchHostedAbilityBase: FetchHostedAbilityBaseCall;
4
+ export declare const fetchAppList: FetchAppListCall;
5
+ export declare const fetchTokenInfo: FetchTokenInfoCall;
6
+ export declare const fetchHostedToken: FetchHostedTokenCall;
7
+ export declare const fetchHostedAbilityStorageDevDeclare: FetchHostedAbilityStorageDevDeclareCall;
8
+ export declare const fetchAppInstall: FetchAppInstallCall;
9
+ export declare const fetchAppUninstall: FetchAppUninstallCall;
10
+ export declare const fetchAppEnable: FetchAppEnableCall;
11
+ export declare const fetchAppDisable: FetchAppDisableCall;
12
+ export declare const checkTokenInfo: () => Promise<boolean>;
13
+ //# sourceMappingURL=fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/request/fetch.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAaV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,uCAAuC,EACvC,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EAEnB,0BAA0B,EAC3B,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,YAAY,EAAE,gBAY1B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,0BAepC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,gBAQ1B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,kBAK5B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,oBAM9B,CAAA;AAED,eAAO,MAAM,mCAAmC,EAAE,uCAejD,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,mBAmB7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,qBAe/B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,kBAe5B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,mBAe7B,CAAA;AAED,eAAO,MAAM,cAAc,wBAe1B,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 处理请求的工具
3
+ */
4
+ export * from './consts';
5
+ export * from './fetch';
6
+ export * from './utils';
7
+ export * from './types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/request/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,98 @@
1
+ import type { AxiosRequestConfig } from 'axios';
2
+ import type { AppManifestJSON } from '../../common/package';
3
+ export interface FetchAppBaseParams<D = any> extends AxiosRequestConfig<D> {
4
+ pathMap?: Record<string, string>;
5
+ queryMap?: Record<string, string>;
6
+ }
7
+ export interface FetchHostedAbilityBaseParams<D = any> extends AxiosRequestConfig<D> {
8
+ pathMap?: Record<string, string>;
9
+ queryMap?: Record<string, string>;
10
+ }
11
+ export interface FetchTokenInfoResponse {
12
+ user?: {
13
+ name?: string;
14
+ email?: string;
15
+ };
16
+ org?: {
17
+ uuid?: string;
18
+ visibility?: boolean;
19
+ };
20
+ teams?: {
21
+ uuid?: string;
22
+ }[];
23
+ }
24
+ export interface FetchHostedTokenParams {
25
+ app_id: string;
26
+ scopes: string[];
27
+ clear_storage: boolean;
28
+ }
29
+ export interface FetchHostedTokenResponse {
30
+ code?: string;
31
+ data?: {
32
+ hosted_token?: string;
33
+ token_type?: 'Bearer';
34
+ expires_in?: number;
35
+ app_id?: string;
36
+ scopes?: string[];
37
+ };
38
+ }
39
+ export interface FetchHostedAbilityStorageDevDeclareParams {
40
+ opkx_content: AppManifestJSON;
41
+ }
42
+ export interface FetchHostedAbilityStorageDevDeclareResponse {
43
+ code?: string;
44
+ }
45
+ export interface FetchAppListResponse {
46
+ data?: {
47
+ installation_id?: string;
48
+ }[];
49
+ }
50
+ export interface FetchAppInstallParams {
51
+ manifest_url: string;
52
+ options?: {
53
+ enable?: boolean;
54
+ };
55
+ }
56
+ export type FetchAppInstallResponse = {
57
+ code?: 'OK';
58
+ };
59
+ export type FetchAppUninstallResponse = {
60
+ code?: 'OK';
61
+ };
62
+ export type FetchAppEnableResponse = {
63
+ code?: 'OK';
64
+ };
65
+ export type FetchAppDisableResponse = {
66
+ code?: 'OK';
67
+ };
68
+ export interface FetchAppBaseCall {
69
+ <Params extends FetchAppBaseParams, Response>(params: Params): Promise<Response>;
70
+ }
71
+ export interface FetchHostedAbilityBaseCall {
72
+ <Params extends FetchHostedAbilityBaseParams, Response>(params: Params): Promise<Response>;
73
+ }
74
+ export interface FetchTokenInfoCall {
75
+ (): Promise<FetchTokenInfoResponse>;
76
+ }
77
+ export interface FetchHostedTokenCall {
78
+ (params: FetchHostedTokenParams): Promise<FetchHostedTokenResponse>;
79
+ }
80
+ export interface FetchHostedAbilityStorageDevDeclareCall {
81
+ (appID: string, params: FetchHostedAbilityStorageDevDeclareParams): Promise<FetchHostedAbilityStorageDevDeclareResponse>;
82
+ }
83
+ export interface FetchAppListCall {
84
+ (appID: string): Promise<FetchAppListResponse>;
85
+ }
86
+ export interface FetchAppInstallCall {
87
+ (params: FetchAppInstallParams): Promise<FetchAppInstallResponse>;
88
+ }
89
+ export interface FetchAppUninstallCall {
90
+ (): Promise<FetchAppUninstallResponse>;
91
+ }
92
+ export interface FetchAppEnableCall {
93
+ (): Promise<FetchAppEnableResponse>;
94
+ }
95
+ export interface FetchAppDisableCall {
96
+ (): Promise<FetchAppDisableResponse>;
97
+ }
98
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/request/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ import type { AxiosError } from 'axios';
2
+ export declare const getPath: (path: string, map: Record<string, string>) => string;
3
+ export declare const consoleUnauthorizedMessage: () => never;
4
+ export declare const consoleAppNotInstalledMessage: () => never;
5
+ export declare const getURL: (path: string, pathMap?: Record<string, string>, queryMap?: Record<string, string>) => Promise<string | undefined>;
6
+ export declare const getHostedFetchHeaders: (value?: Record<string, unknown>) => Promise<Record<string, unknown>>;
7
+ export declare const getAvailableONESTokeAccessToken: () => Promise<string>;
8
+ export declare const getHeaders: (value?: Record<string, unknown>) => Promise<Record<string, unknown>>;
9
+ export declare const handleError: (error: AxiosError<unknown>) => {};
10
+ export declare const startWaiting: () => () => void;
11
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/request/utils.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGvC,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,EAAE,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,WAUhE,CAAA;AAED,eAAO,MAAM,0BAA0B,aAItC,CAAA;AAED,eAAO,MAAM,6BAA6B,aAGzC,CAAA;AAED,eAAO,MAAM,MAAM,GACjB,MAAM,MAAM,EACZ,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,gCAQlC,CAAA;AAED,eAAO,MAAM,qBAAqB,GAChC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYjC,CAAA;AAED,eAAO,MAAM,+BAA+B,QAAa,OAAO,CAAC,MAAM,CAkDtE,CAAA;AAED,eAAO,MAAM,UAAU,GACrB,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYjC,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,UAAU,CAAC,OAAO,CAAC,OAiBrD,CAAA;AAED,eAAO,MAAM,YAAY,kBAcxB,CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 对 store 读写的工具
3
+ */
4
+ export * from './utils';
5
+ export * from './schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/store/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}