1 | import Authentication from '@bearer/types/lib/authentications';
|
2 | export declare type BearerEnv = 'dev' | 'staging' | 'production';
|
3 | export declare type BaseConfig = {
|
4 | DeploymentUrl: string;
|
5 | IntegrationServiceHost: string;
|
6 | IntegrationServiceUrl: string;
|
7 | BearerEnv: string;
|
8 | DeveloperPortalAPIUrl: string;
|
9 | DeveloperPortalUrl: string;
|
10 | CdnHost: string;
|
11 | };
|
12 | export declare type BearerConfig = {
|
13 | OrgId: string;
|
14 | Username: string;
|
15 | ExpiresAt: number;
|
16 | authorization: {
|
17 | AuthenticationResult?: {
|
18 | IdToken: string;
|
19 | RefreshToken: string;
|
20 | TokenType: string;
|
21 | ExpiresIn: number;
|
22 | AccessToken: string;
|
23 | };
|
24 | };
|
25 | open: false;
|
26 | configs: string[];
|
27 | config: string;
|
28 | };
|
29 | export declare type IntegrationConfig = {
|
30 | integrationId: string;
|
31 | integrationUuid: string | null;
|
32 | orgId: string;
|
33 | integrationTitle: string;
|
34 | open: boolean;
|
35 | configs: string[];
|
36 | rootPathRc: string | null;
|
37 | storeBearerConfig: any;
|
38 | config: string;
|
39 | };
|
40 | export declare type Config = BaseConfig & {
|
41 | runPath: string;
|
42 | isYarnInstalled: boolean;
|
43 | isIntegrationLocation: boolean;
|
44 | command: 'yarn' | 'npm';
|
45 | bearerConfig: BearerConfig;
|
46 | integrationConfig: IntegrationConfig;
|
47 | orgId: string | undefined;
|
48 | integrationTitle: string | undefined;
|
49 | integrationId: string | undefined;
|
50 | integrationUuid: string;
|
51 | rootPathRc: string | null;
|
52 | hasIntegrationLinked: boolean;
|
53 | setIntegrationConfig(config: any): void;
|
54 | storeBearerConfig(config: any): void;
|
55 | };
|
56 | export declare type AuthConfig = {
|
57 | authType: Authentication;
|
58 | setupViews?: any[];
|
59 | };
|
60 | export declare type IntegrationBuildEnv = {
|
61 | BEARER_INTEGRATION_ID: string;
|
62 | BEARER_INTEGRATION_TAG_NAME: string;
|
63 | BEARER_INTEGRATION_HOST: string;
|
64 | BEARER_AUTHORIZATION_HOST: string;
|
65 | CDN_HOST: string;
|
66 | };
|