@ones-open/cli 1.0.1-16596.1816 → 1.0.1-8523.1883
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 +569 -194
- package/dist/index.js +567 -192
- package/dist/types/actions/build/index.d.ts.map +1 -1
- package/dist/types/actions/install/index.d.ts.map +1 -1
- package/dist/types/actions/login/index.d.ts.map +1 -1
- package/dist/types/actions/tunnel/hosted-token.d.ts +5 -0
- package/dist/types/actions/tunnel/hosted-token.d.ts.map +1 -0
- package/dist/types/actions/tunnel/index.d.ts +1 -0
- package/dist/types/actions/tunnel/index.d.ts.map +1 -1
- package/dist/types/actions/tunnel/tunnel-client.d.ts +20 -0
- package/dist/types/actions/tunnel/tunnel-client.d.ts.map +1 -0
- package/dist/types/actions/tunnel/tunnel.d.ts +3 -1
- package/dist/types/actions/tunnel/tunnel.d.ts.map +1 -1
- package/dist/types/actions/whoami/index.d.ts.map +1 -1
- package/dist/types/common/config/types.d.ts +1 -0
- 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/locales/en/index.d.ts +2 -0
- package/dist/types/common/locales/en/index.d.ts.map +1 -1
- package/dist/types/common/package/schema.d.ts +2 -234
- package/dist/types/common/package/schema.d.ts.map +1 -1
- package/dist/types/common/package/utils.d.ts +4 -1
- package/dist/types/common/package/utils.d.ts.map +1 -1
- package/dist/types/common/public/consts.d.ts +2 -0
- package/dist/types/common/public/consts.d.ts.map +1 -0
- package/dist/types/common/public/index.d.ts +1 -0
- package/dist/types/common/public/index.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 +2 -1
- package/dist/types/common/request/fetch.d.ts.map +1 -1
- package/dist/types/common/request/types.d.ts +22 -2
- package/dist/types/common/request/types.d.ts.map +1 -1
- package/dist/types/common/store/schema.d.ts +5 -2
- package/dist/types/common/store/schema.d.ts.map +1 -1
- package/dist/types/common/store/utils.d.ts +2 -0
- package/dist/types/common/store/utils.d.ts.map +1 -1
- package/package.json +7 -4
- package/public/logo.svg +4 -0
- /package/{dist → public}/callback.html +0 -0
|
@@ -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":"AAgBA,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,uBA6DzE,CAAA"}
|
|
@@ -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":"AAOA,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/login/index.ts"],"names":[],"mappings":"AAgBA,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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/login/index.ts"],"names":[],"mappings":"AAgBA,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,kBA+EzE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AppManifestJSON } from '../../common/package';
|
|
2
|
+
export declare const getHostedTokenScopes: (ones?: AppManifestJSON["ones"]) => string[];
|
|
3
|
+
export declare const getRelayScope: () => string;
|
|
4
|
+
export declare const getHostToken: (baseUrl: string, userToken: string, appID: string, scopes: string[]) => Promise<string>;
|
|
5
|
+
//# sourceMappingURL=hosted-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-token.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/hosted-token.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAmBvD,eAAO,MAAM,oBAAoB,GAAI,OAAO,eAAe,CAAC,MAAM,CAAC,KAAG,MAAM,EAa3E,CAAA;AAED,eAAO,MAAM,aAAa,QAAO,MAEhC,CAAA;AAED,eAAO,MAAM,YAAY,GACvB,SAAS,MAAM,EACf,WAAW,MAAM,EACjB,OAAO,MAAM,EACb,QAAQ,MAAM,EAAE,KACf,OAAO,CAAC,MAAM,CAuChB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommandArguments } from '../../common/command';
|
|
2
2
|
import type { TunnelCommandOptions } from '../../command';
|
|
3
|
+
export { buildTunnelUrl, invokeTunnel, ONES_CLI_MANIFEST_PATH } from './tunnel';
|
|
3
4
|
export declare const tunnel: (...args: CommandArguments<TunnelCommandOptions>) => Promise<void>;
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/index.ts"],"names":[],"mappings":"AAIA,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,kBAO3E,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAA0B,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAE7E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAE/E,eAAO,MAAM,MAAM,GAAU,GAAG,MAAM,gBAAgB,CAAC,oBAAoB,CAAC,kBAO3E,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class TunnelClient {
|
|
2
|
+
private ws;
|
|
3
|
+
private localPort;
|
|
4
|
+
private baseUrl;
|
|
5
|
+
private appID;
|
|
6
|
+
private hostedToken;
|
|
7
|
+
constructor(localPort: number, baseUrl: string, appID: string, hostedToken: string);
|
|
8
|
+
connect(): Promise<void>;
|
|
9
|
+
close(): void;
|
|
10
|
+
private buildProxyUrl;
|
|
11
|
+
private parseMessage;
|
|
12
|
+
private handleMessage;
|
|
13
|
+
private getRequestPayload;
|
|
14
|
+
private forwardRequest;
|
|
15
|
+
private normalizeHeaders;
|
|
16
|
+
private collectHeaders;
|
|
17
|
+
private normalizeBody;
|
|
18
|
+
private normalizeResponseBody;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=tunnel-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnel-client.d.ts","sourceRoot":"","sources":["../../../../src/actions/tunnel/tunnel-client.ts"],"names":[],"mappings":"AA4BA,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;gBAEf,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAO5E,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IA8B9B,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,YAAY;YAcN,aAAa;IA4C3B,OAAO,CAAC,iBAAiB;YAQX,cAAc;IA2B5B,OAAO,CAAC,gBAAgB;IAcxB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,qBAAqB;CAU9B"}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ONES_CLI_MANIFEST_PATH = "/__ones_cli_manifest__";
|
|
2
|
+
export declare const buildTunnelUrl: () => Promise<string>;
|
|
3
|
+
export declare const invokeTunnel: (port: number) => Promise<void>;
|
|
2
4
|
//# 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":"AAOA,eAAO,MAAM,sBAAsB,2BAA2B,CAAA;AAqB9D,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,MAAM,CAIrD,CAAA;AAED,eAAO,MAAM,YAAY,GAAU,MAAM,MAAM,kBAiB9C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/whoami/index.ts"],"names":[],"mappings":"
|
|
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,kBAiB3E,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;
|
|
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;KACf,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;AASrC,eAAO,MAAM,SAAS,cAAe,CAAA"}
|
|
@@ -10,6 +10,8 @@ export declare enum ErrorCode {
|
|
|
10
10
|
APP_MANIFEST_JSON_PARSE_ERROR = "E08",
|
|
11
11
|
BUILD_SCRIPT_NOT_FOUND = "E09",
|
|
12
12
|
DEV_SCRIPT_NOT_FOUND = "E10",
|
|
13
|
-
STORE_PERMISSION = "E11"
|
|
13
|
+
STORE_PERMISSION = "E11",
|
|
14
|
+
HOSTED_TOKEN_REQUEST_FAILED = "E12",
|
|
15
|
+
HOSTED_TOKEN_EMPTY = "E13"
|
|
14
16
|
}
|
|
15
17
|
//# 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,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;
|
|
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,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;CAC3B"}
|
|
@@ -25,6 +25,8 @@ declare const _default: {
|
|
|
25
25
|
readonly 'error.build.scriptNotFound': "build script not found";
|
|
26
26
|
readonly 'error.dev.scriptNotFound': "dev script not found";
|
|
27
27
|
readonly 'error.store.permission': "permission denied, please check the file permission with \"{filePath}\"";
|
|
28
|
+
readonly 'error.hostedToken.requestFailed': "failed to request hosted token";
|
|
29
|
+
readonly 'error.hostedToken.empty': "hosted token is empty";
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|
|
30
32
|
//# 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,wBA6BU"}
|
|
@@ -1,235 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
scripts: z.ZodOptional<z.ZodObject<{
|
|
4
|
-
dev: z.ZodOptional<z.ZodString>;
|
|
5
|
-
build: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
dev?: string | undefined;
|
|
8
|
-
build?: string | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
dev?: string | undefined;
|
|
11
|
-
build?: string | undefined;
|
|
12
|
-
}>>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
scripts?: {
|
|
15
|
-
dev?: string | undefined;
|
|
16
|
-
build?: string | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
scripts?: {
|
|
20
|
-
dev?: string | undefined;
|
|
21
|
-
build?: string | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export type AppPackageJSON = z.infer<typeof AppPackageJSONSchema>;
|
|
25
|
-
export declare const AppManifestJSONSchema: z.ZodObject<{
|
|
26
|
-
app: z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
version: z.ZodString;
|
|
30
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
31
|
-
desc: z.ZodOptional<z.ZodString>;
|
|
32
|
-
base_url: z.ZodOptional<z.ZodString>;
|
|
33
|
-
auth: z.ZodObject<{
|
|
34
|
-
type: z.ZodLiteral<"jwt">;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
type: "jwt";
|
|
37
|
-
}, {
|
|
38
|
-
type: "jwt";
|
|
39
|
-
}>;
|
|
40
|
-
ones_version: z.ZodOptional<z.ZodObject<{
|
|
41
|
-
min: z.ZodString;
|
|
42
|
-
max: z.ZodString;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
min: string;
|
|
45
|
-
max: string;
|
|
46
|
-
}, {
|
|
47
|
-
min: string;
|
|
48
|
-
max: string;
|
|
49
|
-
}>>;
|
|
50
|
-
lifecycle_callback: z.ZodObject<{
|
|
51
|
-
install: z.ZodString;
|
|
52
|
-
enabled: z.ZodOptional<z.ZodString>;
|
|
53
|
-
disabled: z.ZodOptional<z.ZodString>;
|
|
54
|
-
uninstalled: z.ZodOptional<z.ZodString>;
|
|
55
|
-
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
install: string;
|
|
57
|
-
enabled?: string | undefined;
|
|
58
|
-
disabled?: string | undefined;
|
|
59
|
-
uninstalled?: string | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
install: string;
|
|
62
|
-
enabled?: string | undefined;
|
|
63
|
-
disabled?: string | undefined;
|
|
64
|
-
uninstalled?: string | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
oauth: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
type: z.ZodOptional<z.ZodArray<z.ZodEnum<["app", "user"]>, "many">>;
|
|
68
|
-
scope: z.ZodArray<z.ZodString, "many">;
|
|
69
|
-
redirect_url: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
scope: string[];
|
|
72
|
-
type?: ("app" | "user")[] | undefined;
|
|
73
|
-
redirect_url?: string | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
scope: string[];
|
|
76
|
-
type?: ("app" | "user")[] | undefined;
|
|
77
|
-
redirect_url?: string | undefined;
|
|
78
|
-
}>>;
|
|
79
|
-
events: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
url: z.ZodString;
|
|
81
|
-
types: z.ZodArray<z.ZodObject<{
|
|
82
|
-
eventType: z.ZodString;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
eventType: string;
|
|
85
|
-
}, {
|
|
86
|
-
eventType: string;
|
|
87
|
-
}>, "many">;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
url: string;
|
|
90
|
-
types: {
|
|
91
|
-
eventType: string;
|
|
92
|
-
}[];
|
|
93
|
-
}, {
|
|
94
|
-
url: string;
|
|
95
|
-
types: {
|
|
96
|
-
eventType: string;
|
|
97
|
-
}[];
|
|
98
|
-
}>>;
|
|
99
|
-
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
version: string;
|
|
104
|
-
auth: {
|
|
105
|
-
type: "jwt";
|
|
106
|
-
};
|
|
107
|
-
lifecycle_callback: {
|
|
108
|
-
install: string;
|
|
109
|
-
enabled?: string | undefined;
|
|
110
|
-
disabled?: string | undefined;
|
|
111
|
-
uninstalled?: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
logo?: string | undefined;
|
|
114
|
-
desc?: string | undefined;
|
|
115
|
-
base_url?: string | undefined;
|
|
116
|
-
ones_version?: {
|
|
117
|
-
min: string;
|
|
118
|
-
max: string;
|
|
119
|
-
} | undefined;
|
|
120
|
-
oauth?: {
|
|
121
|
-
scope: string[];
|
|
122
|
-
type?: ("app" | "user")[] | undefined;
|
|
123
|
-
redirect_url?: string | undefined;
|
|
124
|
-
} | undefined;
|
|
125
|
-
events?: {
|
|
126
|
-
url: string;
|
|
127
|
-
types: {
|
|
128
|
-
eventType: string;
|
|
129
|
-
}[];
|
|
130
|
-
} | undefined;
|
|
131
|
-
extensions?: Record<string, unknown> | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
id: string;
|
|
134
|
-
name: string;
|
|
135
|
-
version: string;
|
|
136
|
-
auth: {
|
|
137
|
-
type: "jwt";
|
|
138
|
-
};
|
|
139
|
-
lifecycle_callback: {
|
|
140
|
-
install: string;
|
|
141
|
-
enabled?: string | undefined;
|
|
142
|
-
disabled?: string | undefined;
|
|
143
|
-
uninstalled?: string | undefined;
|
|
144
|
-
};
|
|
145
|
-
logo?: string | undefined;
|
|
146
|
-
desc?: string | undefined;
|
|
147
|
-
base_url?: string | undefined;
|
|
148
|
-
ones_version?: {
|
|
149
|
-
min: string;
|
|
150
|
-
max: string;
|
|
151
|
-
} | undefined;
|
|
152
|
-
oauth?: {
|
|
153
|
-
scope: string[];
|
|
154
|
-
type?: ("app" | "user")[] | undefined;
|
|
155
|
-
redirect_url?: string | undefined;
|
|
156
|
-
} | undefined;
|
|
157
|
-
events?: {
|
|
158
|
-
url: string;
|
|
159
|
-
types: {
|
|
160
|
-
eventType: string;
|
|
161
|
-
}[];
|
|
162
|
-
} | undefined;
|
|
163
|
-
extensions?: Record<string, unknown> | undefined;
|
|
164
|
-
}>;
|
|
165
|
-
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
app: {
|
|
167
|
-
id: string;
|
|
168
|
-
name: string;
|
|
169
|
-
version: string;
|
|
170
|
-
auth: {
|
|
171
|
-
type: "jwt";
|
|
172
|
-
};
|
|
173
|
-
lifecycle_callback: {
|
|
174
|
-
install: string;
|
|
175
|
-
enabled?: string | undefined;
|
|
176
|
-
disabled?: string | undefined;
|
|
177
|
-
uninstalled?: string | undefined;
|
|
178
|
-
};
|
|
179
|
-
logo?: string | undefined;
|
|
180
|
-
desc?: string | undefined;
|
|
181
|
-
base_url?: string | undefined;
|
|
182
|
-
ones_version?: {
|
|
183
|
-
min: string;
|
|
184
|
-
max: string;
|
|
185
|
-
} | undefined;
|
|
186
|
-
oauth?: {
|
|
187
|
-
scope: string[];
|
|
188
|
-
type?: ("app" | "user")[] | undefined;
|
|
189
|
-
redirect_url?: string | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
events?: {
|
|
192
|
-
url: string;
|
|
193
|
-
types: {
|
|
194
|
-
eventType: string;
|
|
195
|
-
}[];
|
|
196
|
-
} | undefined;
|
|
197
|
-
extensions?: Record<string, unknown> | undefined;
|
|
198
|
-
};
|
|
199
|
-
}, {
|
|
200
|
-
app: {
|
|
201
|
-
id: string;
|
|
202
|
-
name: string;
|
|
203
|
-
version: string;
|
|
204
|
-
auth: {
|
|
205
|
-
type: "jwt";
|
|
206
|
-
};
|
|
207
|
-
lifecycle_callback: {
|
|
208
|
-
install: string;
|
|
209
|
-
enabled?: string | undefined;
|
|
210
|
-
disabled?: string | undefined;
|
|
211
|
-
uninstalled?: string | undefined;
|
|
212
|
-
};
|
|
213
|
-
logo?: string | undefined;
|
|
214
|
-
desc?: string | undefined;
|
|
215
|
-
base_url?: string | undefined;
|
|
216
|
-
ones_version?: {
|
|
217
|
-
min: string;
|
|
218
|
-
max: string;
|
|
219
|
-
} | undefined;
|
|
220
|
-
oauth?: {
|
|
221
|
-
scope: string[];
|
|
222
|
-
type?: ("app" | "user")[] | undefined;
|
|
223
|
-
redirect_url?: string | undefined;
|
|
224
|
-
} | undefined;
|
|
225
|
-
events?: {
|
|
226
|
-
url: string;
|
|
227
|
-
types: {
|
|
228
|
-
eventType: string;
|
|
229
|
-
}[];
|
|
230
|
-
} | undefined;
|
|
231
|
-
extensions?: Record<string, unknown> | undefined;
|
|
232
|
-
};
|
|
233
|
-
}>;
|
|
234
|
-
export type AppManifestJSON = z.infer<typeof AppManifestJSONSchema>;
|
|
1
|
+
export { AppPackageJSONSchema, AppManifestJSONSchema, AppRcJSONSchema } from 'create-ones-app';
|
|
2
|
+
export type { AppPackageJSON, AppManifestJSON, AppRcJSON } from 'create-ones-app';
|
|
235
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,EAAE,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/common/package/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC9F,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { PackageJSON } from './types';
|
|
2
|
-
import type { AppPackageJSON, AppManifestJSON } from './schema';
|
|
2
|
+
import type { AppPackageJSON, AppManifestJSON, AppRcJSON } from './schema';
|
|
3
3
|
export declare const getPackageJSONPath: () => string;
|
|
4
4
|
export declare const getPackageJSON: () => PackageJSON;
|
|
5
|
+
export declare const getAppWorkspacePath: () => string;
|
|
5
6
|
export declare const getAppPackageJSONPath: () => string;
|
|
6
7
|
export declare const getAppPackageJSON: () => AppPackageJSON;
|
|
7
8
|
export declare const getAppManifestJSONPath: () => string;
|
|
8
9
|
export declare const getAppManifestJSON: () => AppManifestJSON;
|
|
10
|
+
export declare const getAppRcJSONPath: () => string;
|
|
11
|
+
export declare const getAppRcJSON: () => Promise<AppRcJSON>;
|
|
9
12
|
//# 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":"AAUA,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,gBAAgB,cAE5B,CAAA;AAUD,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,SAAS,CA+BtD,CAAA"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/public/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAA"}
|
|
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"}
|
|
@@ -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;;;;;;;;;CASf,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { FetchAppBaseCall, FetchTokenInfoCall, FetchAppListCall, FetchAppInstallCall, FetchAppUninstallCall, FetchAppEnableCall, FetchAppDisableCall } from './types';
|
|
1
|
+
import type { FetchAppBaseCall, FetchTokenInfoCall, FetchHostedTokenCall, FetchAppListCall, FetchAppInstallCall, FetchAppUninstallCall, FetchAppEnableCall, FetchAppDisableCall } from './types';
|
|
2
2
|
export declare const fetchAppBase: FetchAppBaseCall;
|
|
3
3
|
export declare const fetchAppList: FetchAppListCall;
|
|
4
4
|
export declare const fetchTokenInfo: FetchTokenInfoCall;
|
|
5
|
+
export declare const fetchHostedToken: FetchHostedTokenCall;
|
|
5
6
|
export declare const fetchAppInstall: FetchAppInstallCall;
|
|
6
7
|
export declare const fetchAppUninstall: FetchAppUninstallCall;
|
|
7
8
|
export declare const fetchAppEnable: FetchAppEnableCall;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/request/fetch.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/common/request/fetch.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAWV,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,YAAY,EAAE,gBAW1B,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,eAAe,EAAE,mBAU7B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,qBAW/B,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,kBAW5B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,mBAW7B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
export interface FetchAppBaseParams extends AxiosRequestConfig {
|
|
2
|
+
export interface FetchAppBaseParams<D = any> extends AxiosRequestConfig<D> {
|
|
3
3
|
pathMap?: Record<string, string>;
|
|
4
4
|
queryMap?: Record<string, string>;
|
|
5
5
|
}
|
|
@@ -9,11 +9,28 @@ export interface FetchTokenInfoResponse {
|
|
|
9
9
|
email?: string;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
+
export interface FetchHostedTokenParams {
|
|
13
|
+
app_id: string;
|
|
14
|
+
scopes: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface FetchHostedTokenResponse {
|
|
17
|
+
hosted_token?: string;
|
|
18
|
+
token_type?: 'Bearer';
|
|
19
|
+
expires_in?: number;
|
|
20
|
+
app_id?: string;
|
|
21
|
+
scopes?: string[];
|
|
22
|
+
}
|
|
12
23
|
export interface FetchAppListResponse {
|
|
13
24
|
data?: {
|
|
14
25
|
installation_id?: string;
|
|
15
26
|
}[];
|
|
16
27
|
}
|
|
28
|
+
export interface FetchAppInstallParams {
|
|
29
|
+
manifest_url: string;
|
|
30
|
+
options?: {
|
|
31
|
+
enable?: boolean;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
17
34
|
export type FetchAppInstallResponse = {
|
|
18
35
|
code?: 'OK';
|
|
19
36
|
};
|
|
@@ -32,11 +49,14 @@ export interface FetchAppBaseCall {
|
|
|
32
49
|
export interface FetchTokenInfoCall {
|
|
33
50
|
(): Promise<FetchTokenInfoResponse>;
|
|
34
51
|
}
|
|
52
|
+
export interface FetchHostedTokenCall {
|
|
53
|
+
(params: FetchHostedTokenParams): Promise<FetchHostedTokenResponse>;
|
|
54
|
+
}
|
|
35
55
|
export interface FetchAppListCall {
|
|
36
56
|
(appID: string): Promise<FetchAppListResponse>;
|
|
37
57
|
}
|
|
38
58
|
export interface FetchAppInstallCall {
|
|
39
|
-
(): Promise<FetchAppInstallResponse>;
|
|
59
|
+
(params: FetchAppInstallParams): Promise<FetchAppInstallResponse>;
|
|
40
60
|
}
|
|
41
61
|
export interface FetchAppUninstallCall {
|
|
42
62
|
(): Promise<FetchAppUninstallResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/request/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/common/request/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE/C,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,QAAQ,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE;QACL,eAAe,CAAC,EAAE,MAAM,CAAA;KACzB,EAAE,CAAA;CACJ;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,OAAO,CAAA;KACjB,CAAA;CACF;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,IAAI,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,IAAI,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,IAAI,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,IAAI,CAAA;CACZ,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,MAAM,SAAS,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;CACjF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAA;CACpE;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;CAC/C;AAED,MAAM,WAAW,mBAAmB;IAClC,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;CAClE;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAAA;CACrC"}
|
|
@@ -5,18 +5,21 @@ export declare const StoreJSONSchema: z.ZodObject<{
|
|
|
5
5
|
base_url: z.ZodOptional<z.ZodString>;
|
|
6
6
|
region_url: z.ZodOptional<z.ZodString>;
|
|
7
7
|
ones_token: z.ZodOptional<z.ZodString>;
|
|
8
|
+
host_token: z.ZodOptional<z.ZodString>;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
version?: string | undefined;
|
|
10
|
-
base_url?: string | undefined;
|
|
11
11
|
timestamp?: number | undefined;
|
|
12
|
+
base_url?: string | undefined;
|
|
12
13
|
region_url?: string | undefined;
|
|
13
14
|
ones_token?: string | undefined;
|
|
15
|
+
host_token?: string | undefined;
|
|
14
16
|
}, {
|
|
15
17
|
version?: string | undefined;
|
|
16
|
-
base_url?: string | undefined;
|
|
17
18
|
timestamp?: number | undefined;
|
|
19
|
+
base_url?: string | undefined;
|
|
18
20
|
region_url?: string | undefined;
|
|
19
21
|
ones_token?: string | undefined;
|
|
22
|
+
host_token?: string | undefined;
|
|
20
23
|
}>;
|
|
21
24
|
export type StoreJSON = z.infer<typeof StoreJSONSchema>;
|
|
22
25
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/common/store/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/common/store/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAO1B,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -8,4 +8,6 @@ export declare const getRegionURL: () => Promise<string>;
|
|
|
8
8
|
export declare const setRegionURL: (regionURL: string) => Promise<void>;
|
|
9
9
|
export declare const getONESToken: () => Promise<string>;
|
|
10
10
|
export declare const setONESToken: (token: string) => Promise<void>;
|
|
11
|
+
export declare const getHostToken: () => Promise<string>;
|
|
12
|
+
export declare const setHostToken: (token: string) => Promise<void>;
|
|
11
13
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/store/utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AASzC,eAAO,MAAM,QAAQ,QAAa,OAAO,CAAC,SAAS,CA2BlD,CAAA;AAED,eAAO,MAAM,QAAQ,GAAU,OAAO,SAAS,KAAG,OAAO,CAAC,IAAI,CA4B7D,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,OAAO,SAAS,KAAG,OAAO,CAAC,IAAI,CAM/D,CAAA;AAED,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,MAAM,CAGjD,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9D,CAAA;AAED,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAGnD,CAAA;AAED,eAAO,MAAM,YAAY,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAElE,CAAA;AAED,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAGnD,CAAA;AAED,eAAO,MAAM,YAAY,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9D,CAAA"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/common/store/utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AASzC,eAAO,MAAM,QAAQ,QAAa,OAAO,CAAC,SAAS,CA2BlD,CAAA;AAED,eAAO,MAAM,QAAQ,GAAU,OAAO,SAAS,KAAG,OAAO,CAAC,IAAI,CA4B7D,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,OAAO,SAAS,KAAG,OAAO,CAAC,IAAI,CAM/D,CAAA;AAED,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,MAAM,CAGjD,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9D,CAAA;AAED,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAGnD,CAAA;AAED,eAAO,MAAM,YAAY,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,IAAI,CAElE,CAAA;AAED,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAGnD,CAAA;AAED,eAAO,MAAM,YAAY,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9D,CAAA;AAED,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,MAAM,CAGnD,CAAA;AAED,eAAO,MAAM,YAAY,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,IAAI,CAE9D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ones-open/cli",
|
|
3
|
-
"version": "1.0.1-
|
|
3
|
+
"version": "1.0.1-8523.1883+70dc0f93",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/types/index.d.ts",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"dist",
|
|
40
40
|
"index.d.ts",
|
|
41
41
|
"index.js",
|
|
42
|
+
"public",
|
|
42
43
|
"template"
|
|
43
44
|
],
|
|
44
45
|
"bin": {
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"access": "public"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
54
|
+
"@types/archiver": "^7.0.0",
|
|
53
55
|
"@types/fs-extra": "^11.0.4",
|
|
54
56
|
"@types/lodash-es": "^4.17.12"
|
|
55
57
|
},
|
|
@@ -60,7 +62,7 @@
|
|
|
60
62
|
"chalk": "^5.0.1",
|
|
61
63
|
"commander": "~9.4.0",
|
|
62
64
|
"cosmiconfig": "^8.3.6",
|
|
63
|
-
"create-ones-app": "1.0.1-
|
|
65
|
+
"create-ones-app": "1.0.1-8523.1883+70dc0f93",
|
|
64
66
|
"env-paths": "3.0.0",
|
|
65
67
|
"execa": "^6.1.0",
|
|
66
68
|
"fs-extra": "^11.3.0",
|
|
@@ -70,7 +72,8 @@
|
|
|
70
72
|
"ora": "^9.1.0",
|
|
71
73
|
"type-fest": "4.41.0",
|
|
72
74
|
"uuid": "^13.0.0",
|
|
75
|
+
"ws": "^8.18.3",
|
|
73
76
|
"zod": "^3.22.2"
|
|
74
77
|
},
|
|
75
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "70dc0f93d9bc7dcf008453f7c37d4781df841732"
|
|
76
79
|
}
|
package/public/logo.svg
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="16" height="16" rx="2" fill="#0064FF"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.43816 2.66672C6.82458 2.66672 6.31279 3.17606 6.31279 3.82228V4.4445C6.31279 4.68996 6.11381 4.88894 5.86835 4.88894H3.55556V6.70091H4.56017C5.68056 6.70091 6.57443 7.62426 6.57443 8.74535C6.57443 9.83706 5.70842 10.8718 4.56017 10.8718H3.55556V12.4445H10.6667V10.4274C10.6667 10.1819 10.8657 9.98296 11.1111 9.98296H12.208C12.7937 9.98296 13.3333 9.42095 13.3333 8.74535C13.3333 8.09914 12.8215 7.5898 12.208 7.5898H11.1111C10.8657 7.5898 10.6667 7.39081 10.6667 7.14535V4.88894H9.00797C8.76251 4.88894 8.56353 4.68996 8.56353 4.4445V3.82228C8.56353 3.17606 8.05174 2.66672 7.43816 2.66672ZM5.4239 3.82228C5.4239 2.70118 6.31778 1.77783 7.43816 1.77783C8.55854 1.77783 9.45242 2.70118 9.45242 3.82228V4.00005H11.1111C11.3566 4.00005 11.5556 4.19904 11.5556 4.4445V6.70091H12.208C13.3284 6.70091 14.2222 7.62426 14.2222 8.74535C14.2222 9.83706 13.3562 10.8718 12.208 10.8718H11.5556V12.8889C11.5556 13.1344 11.3566 13.3334 11.1111 13.3334H3.11112C2.86566 13.3334 2.66667 13.1344 2.66667 12.8889V10.4274C2.66667 10.1819 2.86566 9.98296 3.11112 9.98296H4.56017C5.14589 9.98296 5.68554 9.42095 5.68554 8.74535C5.68554 8.09914 5.17375 7.5898 4.56017 7.5898H3.11112C2.86566 7.5898 2.66667 7.39081 2.66667 7.14535V4.4445C2.66667 4.32662 2.7135 4.21358 2.79685 4.13023C2.8802 4.04688 2.99324 4.00005 3.11112 4.00005H5.4239V3.82228Z" fill="white"/>
|
|
4
|
+
</svg>
|
|
File without changes
|