@swell/cli 2.0.1-alpha.17 → 2.0.1-alpha.18
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/app-command.d.ts +1 -1
- package/dist/app-command.js +3 -3
- package/dist/commands/app/dev.d.ts +3 -5
- package/dist/commands/app/dev.js +3 -6
- package/dist/commands/app/frontend/deploy.d.ts +1 -3
- package/dist/commands/app/frontend/deploy.js +2 -5
- package/dist/commands/app/frontend/dev.d.ts +4 -6
- package/dist/commands/app/frontend/dev.js +12 -15
- package/dist/commands/app/info.js +1 -3
- package/dist/commands/app/init.js +2 -2
- package/dist/commands/app/install.js +0 -1
- package/dist/commands/app/pull.d.ts +3 -3
- package/dist/commands/app/pull.js +16 -16
- package/dist/commands/app/push.d.ts +4 -4
- package/dist/commands/app/push.js +28 -31
- package/dist/commands/app/release.d.ts +3 -3
- package/dist/commands/app/release.js +43 -45
- package/dist/commands/app/version.d.ts +4 -4
- package/dist/commands/app/version.js +28 -28
- package/dist/commands/create/app.d.ts +15 -15
- package/dist/commands/create/app.js +66 -66
- package/dist/commands/create/frontend.js +4 -7
- package/dist/commands/env.d.ts +12 -0
- package/dist/commands/env.js +31 -0
- package/dist/commands/login.js +1 -3
- package/dist/commands/logs.js +0 -2
- package/dist/commands/theme/dev.d.ts +6 -8
- package/dist/commands/theme/dev.js +30 -33
- package/dist/commands/theme/init.d.ts +1 -1
- package/dist/commands/theme/init.js +1 -1
- package/dist/commands/theme/pull.d.ts +7 -7
- package/dist/commands/theme/pull.js +21 -21
- package/dist/commands/theme/push.d.ts +7 -7
- package/dist/commands/theme/push.js +24 -27
- package/dist/create-app-command.d.ts +7 -7
- package/dist/create-app-command.js +146 -147
- package/dist/create-config-command.js +0 -2
- package/dist/env/local.d.ts +8 -0
- package/dist/env/local.js +7 -0
- package/dist/env/production.d.ts +8 -0
- package/dist/env/production.js +7 -0
- package/dist/env/review.d.ts +8 -0
- package/dist/env/review.js +7 -0
- package/dist/env/staging.d.ts +8 -0
- package/dist/env/staging.js +7 -0
- package/dist/lib/api.d.ts +3 -3
- package/dist/lib/api.js +35 -35
- package/dist/lib/app-config.d.ts +2 -2
- package/dist/lib/app-config.js +12 -11
- package/dist/lib/apps/app-config.d.ts +19 -19
- package/dist/lib/apps/app-config.js +59 -65
- package/dist/lib/apps/index.d.ts +56 -56
- package/dist/lib/apps/index.js +40 -42
- package/dist/lib/apps/paths.d.ts +1 -1
- package/dist/lib/apps/paths.js +4 -4
- package/dist/lib/config.d.ts +4 -1
- package/dist/lib/config.js +35 -1
- package/dist/lib/constants.js +7 -8
- package/dist/lib/create/index.js +2 -2
- package/dist/lib/stores.d.ts +4 -2
- package/dist/lib/stores.js +4 -2
- package/dist/push-app-command.d.ts +34 -34
- package/dist/push-app-command.js +391 -402
- package/dist/remote-app-command.d.ts +24 -24
- package/dist/remote-app-command.js +245 -259
- package/oclif.manifest.json +152 -119
- package/package.json +2 -1
|
@@ -5,53 +5,53 @@ import { App, AppConfig, AppVersion } from './lib/apps/index.js';
|
|
|
5
5
|
* configurations.
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class RemoteAppCommand extends AppCommand {
|
|
8
|
-
static orientation: AppCommandOrientation;
|
|
9
8
|
static delayOrientation: boolean;
|
|
10
|
-
|
|
9
|
+
static orientation: AppCommandOrientation;
|
|
11
10
|
app: App;
|
|
12
11
|
appCreated: boolean;
|
|
12
|
+
appType: string;
|
|
13
13
|
storefront?: any;
|
|
14
14
|
themeSyncApp?: boolean;
|
|
15
|
+
appFrontendUrl(storeId: string, installedAppId: string): string;
|
|
16
|
+
cleanRemoteConfigs(remoteConfigs: AppConfig[], deleteDeprecated?: boolean): Promise<AppConfig[]>;
|
|
15
17
|
dashboardUrl(flags?: {
|
|
16
18
|
[flag: string]: any;
|
|
17
19
|
}, storeId?: string): string;
|
|
18
|
-
|
|
19
|
-
storefrontFrontendUrl(storeId: string, storefront?: any, branchId?: string, preview?: boolean, editor?: boolean): string;
|
|
20
|
-
localFrontendUrl(storeId: string, sessionId: string): string;
|
|
20
|
+
deleteConfig(configId: string, filePath?: string, appConfigId?: string): Promise<any>;
|
|
21
21
|
protected getApp(id?: string): Promise<App>;
|
|
22
22
|
protected getAppWithConfig(id?: string): Promise<App>;
|
|
23
|
+
getConfigData(configId: string): Promise<any>;
|
|
23
24
|
protected getCreateUpdateApp(updateApp?: App | null): Promise<App>;
|
|
24
25
|
protected getInstalledApp(): Promise<any>;
|
|
25
|
-
protected
|
|
26
|
-
protected updateInstalledApp(version: string, spinner?: any): Promise<void>;
|
|
27
|
-
protected getVersions(version?: null | string | undefined): Promise<AppVersion[]>;
|
|
26
|
+
protected getLocalAppConfigs(): AppConfig[];
|
|
28
27
|
protected getVersion(version?: null | string | undefined): Promise<AppVersion>;
|
|
29
|
-
protected
|
|
28
|
+
protected getVersions(version?: null | string | undefined): Promise<AppVersion[]>;
|
|
30
29
|
protected handleRequestErrors(request: () => any, spinnerError?: () => void): Promise<any>;
|
|
31
30
|
init(): Promise<void>;
|
|
31
|
+
protected installApp(version: string, spinner?: any): Promise<any>;
|
|
32
|
+
isConfigDeprecated(config: AppConfig): boolean;
|
|
33
|
+
localFrontendUrl(storeId: string, sessionId: string): string;
|
|
32
34
|
logOrientation(): Promise<void>;
|
|
33
35
|
postConfigData(configJson: any): Promise<any>;
|
|
34
|
-
getConfigData(configId: string): Promise<any>;
|
|
35
|
-
deleteConfig(configId: string, filePath?: string, appConfigId?: string): Promise<any>;
|
|
36
|
-
protected pushRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
37
|
-
protected pullRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
38
|
-
protected removeRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
39
|
-
protected removeLocalFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
40
|
-
protected showErrors(errors: any, spinnerError?: () => void): void;
|
|
41
|
-
protected swellRcPath(): string;
|
|
42
|
-
protected getLocalAppConfigs(): AppConfig[];
|
|
43
|
-
protected pushAppConfigs(force?: boolean): Promise<{
|
|
44
|
-
pushed: string[];
|
|
45
|
-
removed: string[];
|
|
46
|
-
}>;
|
|
47
36
|
protected pullAppConfigs(force?: boolean, confirmRemove?: boolean): Promise<{
|
|
48
37
|
pulled: string[];
|
|
49
38
|
removed: string[];
|
|
50
39
|
}>;
|
|
51
40
|
pullAppJsonAndRemoteConfigs(): Promise<AppConfig[]>;
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
protected pullRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
42
|
+
protected pushAppConfigs(force?: boolean): Promise<{
|
|
43
|
+
pushed: string[];
|
|
44
|
+
removed: string[];
|
|
45
|
+
}>;
|
|
46
|
+
protected pushRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
47
|
+
protected removeLocalFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
48
|
+
protected removeRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
49
|
+
protected showErrors(errors: any, spinnerError?: () => void): void;
|
|
50
|
+
storefrontFrontendUrl(storeId: string, storefront?: any, branchId?: string, preview?: boolean): string;
|
|
51
|
+
protected swellRcPath(): string;
|
|
54
52
|
protected timestampStyled(): string;
|
|
53
|
+
protected updateInstalledApp(version: string, spinner?: any): Promise<void>;
|
|
54
|
+
protected updateVersion(version: string, body: any, spinner?: any): Promise<void>;
|
|
55
55
|
/**
|
|
56
56
|
* Reads the .swellrc file and sets up the remote app configuration.
|
|
57
57
|
*
|