index.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. import { BaseConfig } from '@ionic/cli-framework';
  2. import { BaseIntegration } from '../';
  3. import { App, EnterpriseProjectIntegration, IntegrationAddDetails, IntegrationName } from '../../../definitions';
  4. interface ProductKey {
  5. id: number;
  6. key: string;
  7. registries: string[];
  8. updated: string;
  9. created: string;
  10. org: any;
  11. app: any;
  12. packages: any[];
  13. }
  14. export declare class EnterpriseIntegrationConfig extends BaseConfig<EnterpriseProjectIntegration> {
  15. provideDefaults(c: Partial<Readonly<EnterpriseProjectIntegration>>): EnterpriseProjectIntegration;
  16. }
  17. export declare class Integration extends BaseIntegration<EnterpriseProjectIntegration> {
  18. readonly name: IntegrationName;
  19. readonly summary = "Ionic Enterprise Edition provides premier native solutions, UI, & support for companies building cross-platform apps.";
  20. readonly archiveUrl: undefined;
  21. enable(config?: EnterpriseProjectIntegration): Promise<void>;
  22. add(details: IntegrationAddDetails): Promise<void>;
  23. protected validatePK(pk: string, appId?: string): Promise<EnterpriseProjectIntegration>;
  24. protected chooseAppToLink(org: any): Promise<string>;
  25. protected registerKey(key: ProductKey, appId: string): Promise<ProductKey>;
  26. protected getAppClient(): Promise<import("../../../lib/app").AppClient>;
  27. protected createNewApp(org: any): Promise<string>;
  28. protected chooseApp(apps: App[], org: any): Promise<string>;
  29. protected getPK(pk: string): Promise<ProductKey>;
  30. protected updateNPMRC(): Promise<void>;
  31. get config(): EnterpriseIntegrationConfig;
  32. }
  33. export {};