@swell/cli 2.0.1-alpha.16 → 2.0.1-alpha.17

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 (76) hide show
  1. package/dist/app-command.d.ts +1 -1
  2. package/dist/app-command.js +8 -8
  3. package/dist/commands/app/dev.d.ts +18 -0
  4. package/dist/commands/app/dev.js +31 -0
  5. package/dist/commands/app/frontend/deploy.d.ts +17 -0
  6. package/dist/commands/app/frontend/deploy.js +44 -0
  7. package/dist/commands/app/frontend/dev.d.ts +21 -0
  8. package/dist/commands/app/frontend/dev.js +111 -0
  9. package/dist/commands/app/info.js +15 -8
  10. package/dist/commands/app/init.d.ts +12 -0
  11. package/dist/commands/app/init.js +34 -0
  12. package/dist/commands/app/install.d.ts +0 -3
  13. package/dist/commands/app/install.js +12 -20
  14. package/dist/commands/app/pull.d.ts +15 -0
  15. package/dist/commands/app/pull.js +50 -0
  16. package/dist/commands/app/push.d.ts +10 -13
  17. package/dist/commands/app/push.js +64 -135
  18. package/dist/commands/app/release.d.ts +13 -0
  19. package/dist/commands/app/release.js +150 -0
  20. package/dist/commands/app/version.d.ts +7 -6
  21. package/dist/commands/app/version.js +61 -40
  22. package/dist/commands/app/watch.d.ts +2 -4
  23. package/dist/commands/app/watch.js +3 -83
  24. package/dist/commands/create/app.d.ts +35 -11
  25. package/dist/commands/create/app.js +141 -138
  26. package/dist/commands/create/frontend.d.ts +12 -0
  27. package/dist/commands/create/frontend.js +41 -0
  28. package/dist/commands/create/function.d.ts +2 -2
  29. package/dist/commands/create/function.js +2 -2
  30. package/dist/commands/create/notification.d.ts +2 -2
  31. package/dist/commands/create/notification.js +2 -2
  32. package/dist/commands/login.js +6 -4
  33. package/dist/commands/logs.js +0 -1
  34. package/dist/commands/theme/dev.d.ts +23 -0
  35. package/dist/commands/theme/dev.js +167 -0
  36. package/dist/commands/theme/init.d.ts +9 -0
  37. package/dist/commands/theme/init.js +15 -0
  38. package/dist/commands/theme/pull.d.ts +20 -0
  39. package/dist/commands/theme/pull.js +65 -0
  40. package/dist/commands/theme/push.d.ts +19 -0
  41. package/dist/commands/theme/push.js +92 -0
  42. package/dist/create-app-command.d.ts +20 -0
  43. package/dist/create-app-command.js +254 -0
  44. package/dist/create-collection-command.d.ts +3 -3
  45. package/dist/create-collection-command.js +4 -4
  46. package/dist/{create-command.d.ts → create-config-command.d.ts} +1 -1
  47. package/dist/{create-command.js → create-config-command.js} +3 -3
  48. package/dist/lib/api.d.ts +3 -2
  49. package/dist/lib/api.js +47 -21
  50. package/dist/lib/app-config.d.ts +12 -5
  51. package/dist/lib/app-config.js +59 -24
  52. package/dist/lib/apps/app-config.d.ts +22 -8
  53. package/dist/lib/apps/app-config.js +202 -68
  54. package/dist/lib/apps/index.d.ts +93 -13
  55. package/dist/lib/apps/index.js +150 -50
  56. package/dist/lib/apps/paths.d.ts +14 -7
  57. package/dist/lib/apps/paths.js +73 -28
  58. package/dist/lib/config.d.ts +5 -1
  59. package/dist/lib/config.js +14 -0
  60. package/dist/lib/constants.d.ts +5 -0
  61. package/dist/lib/constants.js +20 -0
  62. package/dist/lib/create/content.d.ts +1 -1
  63. package/dist/lib/create/index.js +5 -1
  64. package/dist/lib/info.js +2 -2
  65. package/dist/lib/stores.d.ts +1 -1
  66. package/dist/lib/stores.js +3 -3
  67. package/dist/lib/style.d.ts +2 -0
  68. package/dist/lib/style.js +2 -0
  69. package/dist/push-app-command.d.ts +73 -0
  70. package/dist/push-app-command.js +765 -0
  71. package/dist/remote-app-command.d.ts +33 -7
  72. package/dist/remote-app-command.js +423 -151
  73. package/oclif.manifest.json +794 -81
  74. package/package.json +13 -2
  75. package/dist/commands/app/_pull.d.ts +0 -8
  76. package/dist/commands/app/_pull.js +0 -45
@@ -6,26 +6,52 @@ import { App, AppConfig, AppVersion } from './lib/apps/index.js';
6
6
  */
7
7
  export declare abstract class RemoteAppCommand extends AppCommand {
8
8
  static orientation: AppCommandOrientation;
9
+ static delayOrientation: boolean;
10
+ appType: string;
9
11
  app: App;
12
+ appCreated: boolean;
13
+ storefront?: any;
14
+ themeSyncApp?: boolean;
10
15
  dashboardUrl(flags?: {
11
16
  [flag: string]: any;
12
17
  }, storeId?: string): string;
13
- protected deleteConfig(configId: string): Promise<any>;
18
+ appFrontendUrl(storeId: string, installedAppId: string): string;
19
+ storefrontFrontendUrl(storeId: string, storefront?: any, branchId?: string, preview?: boolean, editor?: boolean): string;
20
+ localFrontendUrl(storeId: string, sessionId: string): string;
14
21
  protected getApp(id?: string): Promise<App>;
15
22
  protected getAppWithConfig(id?: string): Promise<App>;
16
- protected getCreateUpdateApp(updateApp?: App): Promise<App>;
23
+ protected getCreateUpdateApp(updateApp?: App | null): Promise<App>;
24
+ protected getInstalledApp(): Promise<any>;
25
+ protected installApp(version: string, spinner?: any): Promise<any>;
26
+ protected updateInstalledApp(version: string, spinner?: any): Promise<void>;
17
27
  protected getVersions(version?: null | string | undefined): Promise<AppVersion[]>;
28
+ protected getVersion(version?: null | string | undefined): Promise<AppVersion>;
29
+ protected updateVersion(version: string, body: any, spinner?: any): Promise<void>;
18
30
  protected handleRequestErrors(request: () => any, spinnerError?: () => void): Promise<any>;
19
31
  init(): Promise<void>;
20
- protected postConfig(configJson: any): Promise<any>;
21
- protected pushConfigFile(appConfig: AppConfig): Promise<any>;
22
- protected removeConfig(config: AppConfig): Promise<any>;
32
+ logOrientation(): Promise<void>;
33
+ 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>;
23
40
  protected showErrors(errors: any, spinnerError?: () => void): void;
24
41
  protected swellRcPath(): string;
25
- protected syncAppConfigs(): Promise<{
26
- installed: string[];
42
+ protected getLocalAppConfigs(): AppConfig[];
43
+ protected pushAppConfigs(force?: boolean): Promise<{
44
+ pushed: string[];
27
45
  removed: string[];
28
46
  }>;
47
+ protected pullAppConfigs(force?: boolean, confirmRemove?: boolean): Promise<{
48
+ pulled: string[];
49
+ removed: string[];
50
+ }>;
51
+ pullAppJsonAndRemoteConfigs(): Promise<AppConfig[]>;
52
+ isConfigDeprecated(config: AppConfig): boolean;
53
+ cleanRemoteConfigs(remoteConfigs: AppConfig[], deleteDeprecated?: boolean): Promise<AppConfig[]>;
54
+ protected timestampStyled(): string;
29
55
  /**
30
56
  * Reads the .swellrc file and sets up the remote app configuration.
31
57
  *