@ones-open/cli 1.0.1-5596.1908 → 1.0.1-6087.2002
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1027 -555
- package/dist/index.js +1030 -558
- package/dist/types/actions/build/index.d.ts.map +1 -1
- package/dist/types/actions/build/normalize.d.ts.map +1 -1
- package/dist/types/actions/dev/enums.d.ts +5 -0
- package/dist/types/actions/dev/enums.d.ts.map +1 -1
- package/dist/types/actions/dev/index.d.ts.map +1 -1
- package/dist/types/actions/dev/normalize.d.ts.map +1 -1
- package/dist/types/actions/dev/types.d.ts +10 -0
- package/dist/types/actions/dev/types.d.ts.map +1 -0
- package/dist/types/actions/disable/index.d.ts.map +1 -1
- package/dist/types/actions/enable/index.d.ts.map +1 -1
- package/dist/types/actions/install/index.d.ts +1 -1
- package/dist/types/actions/install/index.d.ts.map +1 -1
- package/dist/types/actions/install/install.d.ts +2 -2
- package/dist/types/actions/install/install.d.ts.map +1 -1
- package/dist/types/actions/legacy/index.d.ts.map +1 -1
- package/dist/types/actions/legacy/normalize.d.ts.map +1 -1
- package/dist/types/actions/login/index.d.ts +1 -1
- package/dist/types/actions/login/index.d.ts.map +1 -1
- package/dist/types/actions/tunnel/consts.d.ts +3 -0
- package/dist/types/actions/tunnel/consts.d.ts.map +1 -1
- package/dist/types/actions/tunnel/index.d.ts +3 -1
- package/dist/types/actions/tunnel/index.d.ts.map +1 -1
- package/dist/types/actions/tunnel/normalize.d.ts.map +1 -1
- package/dist/types/actions/tunnel/tunnel-client.d.ts +3 -1
- package/dist/types/actions/tunnel/tunnel-client.d.ts.map +1 -1
- package/dist/types/actions/tunnel/tunnel.d.ts +2 -3
- package/dist/types/actions/tunnel/tunnel.d.ts.map +1 -1
- package/dist/types/actions/tunnel/types.d.ts +34 -0
- package/dist/types/actions/tunnel/types.d.ts.map +1 -0
- package/dist/types/actions/tunnel/utils.d.ts +7 -0
- package/dist/types/actions/tunnel/utils.d.ts.map +1 -0
- package/dist/types/actions/uninstall/index.d.ts.map +1 -1
- package/dist/types/actions/whoami/index.d.ts.map +1 -1
- package/dist/types/cli/index.d.ts.map +1 -1
- package/dist/types/command/build/index.d.ts +1 -0
- package/dist/types/command/build/index.d.ts.map +1 -1
- package/dist/types/command/dev/index.d.ts +2 -0
- package/dist/types/command/dev/index.d.ts.map +1 -1
- package/dist/types/command/legacy/index.d.ts +1 -1
- package/dist/types/command/legacy/index.d.ts.map +1 -1
- package/dist/types/command/tunnel/index.d.ts +1 -0
- package/dist/types/command/tunnel/index.d.ts.map +1 -1
- package/dist/types/common/config/types.d.ts +2 -1
- package/dist/types/common/config/types.d.ts.map +1 -1
- package/dist/types/common/config/utils.d.ts.map +1 -1
- package/dist/types/common/error/enums.d.ts +3 -1
- package/dist/types/common/error/enums.d.ts.map +1 -1
- package/dist/types/common/error/utils.d.ts +1 -0
- package/dist/types/common/error/utils.d.ts.map +1 -1
- package/dist/types/common/locales/en/index.d.ts +37 -28
- package/dist/types/common/locales/en/index.d.ts.map +1 -1
- package/dist/types/common/package/schema.d.ts +1 -1
- package/dist/types/common/package/schema.d.ts.map +1 -1
- package/dist/types/common/package/utils.d.ts +4 -0
- package/dist/types/common/package/utils.d.ts.map +1 -1
- package/dist/types/common/request/consts.d.ts +2 -0
- package/dist/types/common/request/consts.d.ts.map +1 -1
- package/dist/types/common/request/fetch.d.ts +4 -1
- package/dist/types/common/request/fetch.d.ts.map +1 -1
- package/dist/types/common/request/types.d.ts +26 -5
- package/dist/types/common/request/types.d.ts.map +1 -1
- package/dist/types/common/request/utils.d.ts +5 -2
- package/dist/types/common/request/utils.d.ts.map +1 -1
- package/dist/types/common/template/index.d.ts +5 -0
- package/dist/types/common/template/index.d.ts.map +1 -0
- package/dist/types/common/template/utils.d.ts +3 -0
- package/dist/types/common/template/utils.d.ts.map +1 -0
- package/package.json +6 -3
- package/template/legacy/README.md +13 -0
- package/template/legacy/_backend_npmrc +5 -0
- package/template/legacy/_backend_tsconfig.json +23 -0
- package/template/legacy/_eslintignore +2 -0
- package/template/legacy/_eslintrc.js +97 -0
- package/template/legacy/_gitignore +21 -0
- package/template/legacy/_gitlab-ci.yml +3 -0
- package/template/legacy/_husky_pre-commit +1 -0
- package/template/legacy/_npmrc +5 -0
- package/template/legacy/_prettierignore +15 -0
- package/template/legacy/_prettierrc +6 -0
- package/template/legacy/_web_npmrc +5 -0
- package/template/legacy/_web_tsconfig.json +20 -0
- package/template/legacy/backend/package.json +10 -0
- package/template/legacy/backend/src/index.ts +139 -0
- package/template/legacy/backend/src/ones.d.ts +6 -0
- package/template/legacy/config/ci-deploy.yaml +11 -0
- package/template/legacy/config/local.yaml +30 -0
- package/template/legacy/config/plugin.yaml +25 -0
- package/template/legacy/config/upgrade.yaml +8 -0
- package/template/legacy/op.config.mjs +4 -0
- package/template/legacy/package-lock.json +17446 -0
- package/template/legacy/package.json +73 -0
- package/template/legacy/web/browserslist +4 -0
- package/template/legacy/web/package.json +29 -0
- package/template/legacy/web/public/logo.svg +5 -0
- package/template/legacy/workspace/plugin.sql +2 -0
- package/dist/types/actions/tunnel/hosted-token.d.ts +0 -5
- package/dist/types/actions/tunnel/hosted-token.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/build/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/build/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAI3E,eAAO,MAAM,KAAK,GAAU,GAAG,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,uBA4GzE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/build/normalize.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE3E,KAAK,gBAAgB,GAAG,cAAc,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAA;AAO7F,eAAO,MAAM,SAAS,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/build/normalize.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE3E,KAAK,gBAAgB,GAAG,cAAc,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAA;AAO7F,eAAO,MAAM,SAAS,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAqB7F,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IAExB,IAAI,SAAS;IAEb,IAAI,SAAS;IAEb,KAAK,UAAU;CAChB"}
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IAExB,IAAI,SAAS;IAEb,IAAI,SAAS;IAEb,KAAK,UAAU;CAChB;AAED,oBAAY,iBAAiB;IAC3B,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,IAAI,SAAS;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/index.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAuB,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAIvE,eAAO,MAAM,GAAG,GAAU,GAAG,MAAM,gBAAgB,CAAC,iBAAiB,CAAC,uBA0MrE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/normalize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/normalize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAEvE,KAAK,gBAAgB,GAAG,cAAc,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAA;AAOzF,eAAO,MAAM,SAAS,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAmB7F,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ProcessEnv = typeof process.env;
|
|
2
|
+
export interface DevEnv extends ProcessEnv {
|
|
3
|
+
ONES_HOSTED_PORT: string;
|
|
4
|
+
ONES_DEV_WEB_SERVER_PORT: string;
|
|
5
|
+
ONES_HOSTED_TOKEN: string;
|
|
6
|
+
ONES_HOSTED_APP_ID: string;
|
|
7
|
+
ONES_HOSTED_BASE_URL: string;
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/actions/dev/types.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,OAAO,OAAO,CAAC,GAAG,CAAA;AAEpC,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,gBAAgB,EAAE,MAAM,CAAA;IACxB,wBAAwB,EAAE,MAAM,CAAA;IAChC,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/disable/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/disable/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA2B,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAE/E,eAAO,MAAM,OAAO,GAAU,GAAG,MAAM,gBAAgB,CAAC,qBAAqB,CAAC,kBAiB7E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/enable/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/enable/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,eAAO,MAAM,MAAM,GAAU,GAAG,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,kBAiB3E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandArguments } from '../../common/command';
|
|
2
2
|
import type { InstallCommandOptions } from '../../command';
|
|
3
|
-
export { invokeInstall } from './install';
|
|
3
|
+
export { invokeInstall, displayAppDetail } from './install';
|
|
4
4
|
export declare const install: (...args: CommandArguments<InstallCommandOptions>) => Promise<void>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/install/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/install/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA2B,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAE/E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAoC3D,eAAO,MAAM,OAAO,GAAU,GAAG,MAAM,gBAAgB,CAAC,qBAAqB,CAAC,kBAyB7E,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const invokeInstall: () => Promise<
|
|
1
|
+
export declare const displayAppDetail: (installationID: string) => Promise<void>;
|
|
2
|
+
export declare const invokeInstall: (manifestUrl: string) => Promise<boolean>;
|
|
3
3
|
//# sourceMappingURL=install.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/actions/install/install.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/actions/install/install.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,GAAU,gBAAgB,MAAM,kBAc5D,CAAA;AAED,eAAO,MAAM,aAAa,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,OAAO,CAyBxE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/legacy/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/legacy/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAI7E,eAAO,MAAM,MAAM,GAAU,GAAG,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,kBAgC3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/legacy/normalize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/legacy/normalize.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,KAAK,gBAAgB,GAAG,cAAc,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAA;AAE/F,eAAO,MAAM,SAAS,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAiB7F,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommandArguments } from '../../common/command';
|
|
2
2
|
import type { LoginCommandOptions } from '../../command';
|
|
3
|
-
export declare const login: (...args: CommandArguments<LoginCommandOptions>) => Promise<
|
|
3
|
+
export declare const login: (...args: CommandArguments<LoginCommandOptions>) => Promise<undefined>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/login/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/login/index.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAyB,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAE3E,eAAO,MAAM,KAAK,GAAU,GAAG,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,uBA6FzE,CAAA"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export declare const minPortNumber = 1;
|
|
2
2
|
export declare const maxPortNumber = 65535;
|
|
3
|
+
export declare const MANIFEST_PATH = "/manifest";
|
|
4
|
+
export declare const ONES_CLI_INTERNAL_MANIFEST_PATH = "/__ones_cli_internal_manifest__";
|
|
5
|
+
export declare const MAX_RELAY_BODY_BYTES: number;
|
|
3
6
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,IAAI,CAAA;AAC9B,eAAO,MAAM,aAAa,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,IAAI,CAAA;AAC9B,eAAO,MAAM,aAAa,QAAQ,CAAA;AAElC,eAAO,MAAM,aAAa,cAAc,CAAA;AACxC,eAAO,MAAM,+BAA+B,oCAAoC,CAAA;AAEhF,eAAO,MAAM,oBAAoB,QAAmB,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { CommandArguments } from '../../common/command';
|
|
2
2
|
import type { TunnelCommandOptions } from '../../command';
|
|
3
|
-
export {
|
|
3
|
+
export { invokeTunnel } from './tunnel';
|
|
4
|
+
export { buildTunnelUrl } from './utils';
|
|
5
|
+
export { MANIFEST_PATH, ONES_CLI_INTERNAL_MANIFEST_PATH } from './consts';
|
|
4
6
|
export declare const tunnel: (...args: CommandArguments<TunnelCommandOptions>) => Promise<void>;
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAEzE,eAAO,MAAM,MAAM,GAAU,GAAG,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,kBAgB3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/normalize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/normalize.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,KAAK,gBAAgB,GAAG,cAAc,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAA;AAE/F,eAAO,MAAM,SAAS,GAAU,SAAS,gBAAgB,KAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CA8B7F,CAAA"}
|
|
@@ -4,7 +4,9 @@ export declare class TunnelClient {
|
|
|
4
4
|
private baseUrl;
|
|
5
5
|
private appID;
|
|
6
6
|
private hostedToken;
|
|
7
|
-
|
|
7
|
+
private enableInternalManifestRoute;
|
|
8
|
+
private replaceExisting;
|
|
9
|
+
constructor(localPort: number, baseUrl: string, appID: string, hostedToken: string, enableInternalManifestRoute?: boolean, replaceExisting?: boolean);
|
|
8
10
|
connect(): Promise<void>;
|
|
9
11
|
close(): void;
|
|
10
12
|
private buildProxyUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel-client.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/tunnel-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tunnel-client.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/tunnel-client.ts"],"names":[],"mappings":"AAaA,qBAAa,YAAY;IACvB,OAAO,CAAC,EAAE,CAAyB;IACnC,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,2BAA2B,CAAS;IAC5C,OAAO,CAAC,eAAe,CAAS;gBAG9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,2BAA2B,UAAO,EAClC,eAAe,UAAO;IAUlB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA+B9B,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,YAAY;YAcN,aAAa;IA8C3B,OAAO,CAAC,iBAAiB;YAQX,cAAc;IAiC5B,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,YAAY;IAmBpB,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,QAAQ;CAYjB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const invokeTunnel: (port: number) => Promise<void>;
|
|
1
|
+
import type { InvokeTunnelOptions } from './types';
|
|
2
|
+
export declare const invokeTunnel: (port: number, options?: InvokeTunnelOptions) => Promise<undefined>;
|
|
4
3
|
//# sourceMappingURL=tunnel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/tunnel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/tunnel.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,eAAO,MAAM,YAAY,GAAU,MAAM,MAAM,EAAE,UAAS,mBAAwB,uBA0CjF,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { StoreJSON } from '../../common/store';
|
|
2
|
+
import type { AppManifestJSON } from '../../common/package';
|
|
3
|
+
export type TunnelHeaders = Record<string, string[]>;
|
|
4
|
+
export type TunnelQuery = Record<string, string | string[]>;
|
|
5
|
+
export interface TunnelEnvelope {
|
|
6
|
+
id: string;
|
|
7
|
+
payload?: TunnelRequestPayload | TunnelResponsePayload;
|
|
8
|
+
}
|
|
9
|
+
export interface TunnelRequestPayload {
|
|
10
|
+
app_id?: string;
|
|
11
|
+
method: string;
|
|
12
|
+
path: string;
|
|
13
|
+
headers?: TunnelHeaders;
|
|
14
|
+
query?: TunnelQuery;
|
|
15
|
+
body?: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface TunnelResponsePayload {
|
|
18
|
+
status: number;
|
|
19
|
+
headers?: TunnelHeaders;
|
|
20
|
+
body?: unknown;
|
|
21
|
+
}
|
|
22
|
+
export type InvokeTunnelOptions = {
|
|
23
|
+
enableInternalManifestRoute?: boolean;
|
|
24
|
+
rebuildWhenExists?: boolean;
|
|
25
|
+
useStorageForDev?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type TunnelContext = {
|
|
28
|
+
appID: string;
|
|
29
|
+
regionURL: string;
|
|
30
|
+
onesToken: string;
|
|
31
|
+
store: StoreJSON;
|
|
32
|
+
appManifestJSON: AppManifestJSON;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;AAE3D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,CAAC,EAAE,oBAAoB,GAAG,qBAAqB,CAAA;CACvD;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,2BAA2B,CAAC,EAAE,OAAO,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,EAAE,eAAe,CAAA;CACjC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TunnelContext } from './types';
|
|
2
|
+
import type { AppManifestJSON } from '../../common/package';
|
|
3
|
+
export declare const getTunnelContext: () => Promise<TunnelContext>;
|
|
4
|
+
export declare const getStorageTokenScopes: (ones?: AppManifestJSON["ones"]) => string[];
|
|
5
|
+
export declare const getRelayScope: () => string;
|
|
6
|
+
export declare const buildTunnelUrl: () => Promise<string>;
|
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,aAAa,CAiB9D,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,eAAe,CAAC,MAAM,CAAC,KAAG,MAAM,EAa5E,CAAA;AAED,eAAO,MAAM,aAAa,QAAO,MAEhC,CAAA;AAED,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,MAAM,CAKrD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/uninstall/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/uninstall/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA6B,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAEnF,eAAO,MAAM,SAAS,GAAU,GAAG,MAAM,gBAAgB,CAAC,uBAAuB,CAAC,kBAiBjF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/whoami/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,eAAO,MAAM,MAAM,GAAU,GAAG,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/whoami/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,eAAO,MAAM,MAAM,GAAU,GAAG,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,kBAoB3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/index.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,cAAc,qBAM1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,qBAAqB,aAAc,CAAA;AAEhD,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,qBAAqB,aAAc,CAAA;AAEhD,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,MAAM,SAII,CAAA;AAKhB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -3,6 +3,8 @@ export declare const devCommandArguments: readonly [];
|
|
|
3
3
|
export type DevCommandArguments = typeof devCommandArguments;
|
|
4
4
|
export interface DevCommandOptions {
|
|
5
5
|
install?: string;
|
|
6
|
+
command?: string;
|
|
7
|
+
useStorage?: boolean;
|
|
6
8
|
}
|
|
7
9
|
declare const $dev: Command;
|
|
8
10
|
export { $dev };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/dev/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,mBAAmB,aAAc,CAAA;AAE9C,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/dev/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,mBAAmB,aAAc,CAAA;AAE9C,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,IAAI,SAKI,CAAA;AAKd,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
export declare const legacyCommandArguments: readonly [];
|
|
2
|
+
export declare const legacyCommandArguments: readonly ["projectPath"];
|
|
3
3
|
export type LegacyCommandArguments = typeof legacyCommandArguments;
|
|
4
4
|
export interface LegacyCommandOptions {
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/legacy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/command/legacy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,eAAO,MAAM,sBAAsB,0BAA2B,CAAA;AAE9D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,oBAAoB;CAAG;AAUxC,QAAA,MAAM,OAAO,SAA2D,CAAA;AAOxE,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { Command } from 'commander';
|
|
|
2
2
|
export declare const tunnelCommandArguments: readonly ["port"];
|
|
3
3
|
export type TunnelCommandArguments = typeof tunnelCommandArguments;
|
|
4
4
|
export interface TunnelCommandOptions {
|
|
5
|
+
useStorage?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const $tunnel: Command;
|
|
7
8
|
export { $tunnel };
|
|
@@ -1 +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;
|
|
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,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,OAAO,SAII,CAAA;AAKjB,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/config/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/config/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAUrC,eAAO,MAAM,SAAS,cAAe,CAAA"}
|
|
@@ -13,6 +13,8 @@ export declare enum ErrorCode {
|
|
|
13
13
|
DEV_SCRIPT_NOT_FOUND = "E11",
|
|
14
14
|
STORE_PERMISSION = "E12",
|
|
15
15
|
HOSTED_TOKEN_REQUEST_FAILED = "E13",
|
|
16
|
-
HOSTED_TOKEN_EMPTY = "E14"
|
|
16
|
+
HOSTED_TOKEN_EMPTY = "E14",
|
|
17
|
+
INCORRECT_DEV_COMMAND = "E15",
|
|
18
|
+
INCORRECT_BUILD_COMMAND = "E16"
|
|
17
19
|
}
|
|
18
20
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/error/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/error/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,SAAS,MAAM,KAAG,IAG5D,CAAA"}
|
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly 'desc.ones': "
|
|
3
|
-
readonly 'desc.build': "
|
|
4
|
-
readonly 'desc.build.output': "
|
|
5
|
-
readonly 'desc.
|
|
6
|
-
readonly 'desc.dev
|
|
7
|
-
readonly 'desc.
|
|
8
|
-
readonly 'desc.
|
|
9
|
-
readonly 'desc.
|
|
10
|
-
readonly 'desc.
|
|
11
|
-
readonly 'desc.
|
|
12
|
-
readonly 'desc.
|
|
13
|
-
readonly 'desc.
|
|
14
|
-
readonly 'desc.
|
|
15
|
-
readonly 'desc.
|
|
16
|
-
readonly 'desc.
|
|
17
|
-
readonly 'desc.
|
|
18
|
-
readonly 'desc.
|
|
19
|
-
readonly '
|
|
20
|
-
readonly '
|
|
21
|
-
readonly '
|
|
22
|
-
readonly '
|
|
23
|
-
readonly '
|
|
24
|
-
readonly 'error.
|
|
25
|
-
readonly 'error.
|
|
26
|
-
readonly 'error.
|
|
27
|
-
readonly 'error.
|
|
28
|
-
readonly 'error.
|
|
29
|
-
readonly 'error.
|
|
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.useStorage': "Use hosted storage ability";
|
|
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': "Please check for this error or upgrade your ONES CLI to the latest version";
|
|
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";
|
|
30
39
|
};
|
|
31
40
|
export default _default;
|
|
32
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/locales/en/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/locales/en/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuCU"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppPackageJSONSchema, AppManifestJSONSchema, AppRcJSONSchema } from 'create-ones-app';
|
|
1
|
+
export { AppPackageJSONSchema, AppManifestJSONSchema, AppManifestStrictJSONSchema, AppRcJSONSchema, } from 'create-ones-app';
|
|
2
2
|
export type { AppPackageJSON, AppManifestJSON, AppRcJSON } from 'create-ones-app';
|
|
3
3
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/common/package/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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"}
|
|
@@ -7,6 +7,10 @@ export declare const getAppPackageJSONPath: () => string;
|
|
|
7
7
|
export declare const getAppPackageJSON: () => AppPackageJSON;
|
|
8
8
|
export declare const getAppManifestJSONPath: () => string;
|
|
9
9
|
export declare const getAppManifestJSON: () => AppManifestJSON;
|
|
10
|
+
export declare const validateAppManifestJSON: () => void;
|
|
10
11
|
export declare const getAppRcJSONPath: () => string;
|
|
12
|
+
export declare const defaultDevCommand: string[];
|
|
13
|
+
export declare const defaultBuildCommand: string[];
|
|
14
|
+
export declare const defaultAppRcJSON: AppRcJSON;
|
|
11
15
|
export declare const getAppRcJSON: () => Promise<AppRcJSON>;
|
|
12
16
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/package/utils.ts"],"names":[],"mappings":"
|
|
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,eAerC,CAAA;AAED,eAAO,MAAM,uBAAuB,YAWnC,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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const API: {
|
|
2
2
|
TOKEN_INFO: string;
|
|
3
3
|
HOSTED_TOKEN: string;
|
|
4
|
+
HOSTED_ABILITY_STORAGE_DEV_DECLARE: string;
|
|
4
5
|
APP_LIST: string;
|
|
5
6
|
APP_INSTALL: string;
|
|
6
7
|
APP_UPGRADE: string;
|
|
@@ -8,4 +9,5 @@ export declare const API: {
|
|
|
8
9
|
APP_ENABLE: string;
|
|
9
10
|
APP_DISABLE: string;
|
|
10
11
|
};
|
|
12
|
+
export declare const REQUEST_TIMEOUT = 5000;
|
|
11
13
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/common/request/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../src/common/request/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG;;;;;;;;;;CAWf,CAAA;AAED,eAAO,MAAM,eAAe,OAAO,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type { FetchAppBaseCall, FetchTokenInfoCall, FetchHostedTokenCall, FetchAppListCall, FetchAppInstallCall, FetchAppUninstallCall, FetchAppEnableCall, FetchAppDisableCall } from './types';
|
|
1
|
+
import type { FetchAppBaseCall, FetchTokenInfoCall, FetchHostedTokenCall, FetchHostedAbilityStorageDevDeclareCall, FetchAppListCall, FetchAppInstallCall, FetchAppUninstallCall, FetchAppEnableCall, FetchAppDisableCall, FetchHostedAbilityBaseCall } from './types';
|
|
2
2
|
export declare const fetchAppBase: FetchAppBaseCall;
|
|
3
|
+
export declare const fetchHostedAbilityBase: FetchHostedAbilityBaseCall;
|
|
3
4
|
export declare const fetchAppList: FetchAppListCall;
|
|
4
5
|
export declare const fetchTokenInfo: FetchTokenInfoCall;
|
|
5
6
|
export declare const fetchHostedToken: FetchHostedTokenCall;
|
|
7
|
+
export declare const fetchHostedAbilityStorageDevDeclare: FetchHostedAbilityStorageDevDeclareCall;
|
|
6
8
|
export declare const fetchAppInstall: FetchAppInstallCall;
|
|
7
9
|
export declare const fetchAppUninstall: FetchAppUninstallCall;
|
|
8
10
|
export declare const fetchAppEnable: FetchAppEnableCall;
|
|
9
11
|
export declare const fetchAppDisable: FetchAppDisableCall;
|
|
12
|
+
export declare const checkTokenInfo: () => Promise<boolean>;
|
|
10
13
|
//# sourceMappingURL=fetch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/request/fetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/request/fetch.ts"],"names":[],"mappings":"AAWA,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,wBAgB1B,CAAA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { AppManifestJSON } from '../../common/package';
|
|
2
3
|
export interface FetchAppBaseParams<D = any> extends AxiosRequestConfig<D> {
|
|
3
4
|
pathMap?: Record<string, string>;
|
|
4
5
|
queryMap?: Record<string, string>;
|
|
5
6
|
}
|
|
7
|
+
export interface FetchHostedAbilityBaseParams<D = any> extends AxiosRequestConfig<D> {
|
|
8
|
+
pathMap?: Record<string, string>;
|
|
9
|
+
queryMap?: Record<string, string>;
|
|
10
|
+
}
|
|
6
11
|
export interface FetchTokenInfoResponse {
|
|
7
12
|
user?: {
|
|
8
13
|
name?: string;
|
|
@@ -19,13 +24,23 @@ export interface FetchTokenInfoResponse {
|
|
|
19
24
|
export interface FetchHostedTokenParams {
|
|
20
25
|
app_id: string;
|
|
21
26
|
scopes: string[];
|
|
27
|
+
confirm_for_dev: boolean;
|
|
22
28
|
}
|
|
23
29
|
export interface FetchHostedTokenResponse {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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;
|
|
29
44
|
}
|
|
30
45
|
export interface FetchAppListResponse {
|
|
31
46
|
data?: {
|
|
@@ -53,12 +68,18 @@ export type FetchAppDisableResponse = {
|
|
|
53
68
|
export interface FetchAppBaseCall {
|
|
54
69
|
<Params extends FetchAppBaseParams, Response>(params: Params): Promise<Response>;
|
|
55
70
|
}
|
|
71
|
+
export interface FetchHostedAbilityBaseCall {
|
|
72
|
+
<Params extends FetchHostedAbilityBaseParams, Response>(params: Params): Promise<Response>;
|
|
73
|
+
}
|
|
56
74
|
export interface FetchTokenInfoCall {
|
|
57
75
|
(): Promise<FetchTokenInfoResponse>;
|
|
58
76
|
}
|
|
59
77
|
export interface FetchHostedTokenCall {
|
|
60
78
|
(params: FetchHostedTokenParams): Promise<FetchHostedTokenResponse>;
|
|
61
79
|
}
|
|
80
|
+
export interface FetchHostedAbilityStorageDevDeclareCall {
|
|
81
|
+
(appID: string, params: FetchHostedAbilityStorageDevDeclareParams): Promise<FetchHostedAbilityStorageDevDeclareResponse>;
|
|
82
|
+
}
|
|
62
83
|
export interface FetchAppListCall {
|
|
63
84
|
(appID: string): Promise<FetchAppListResponse>;
|
|
64
85
|
}
|