1 | import { APIConfig, GraphQLProviderConfig, LibraryAPIOptions } from './API/types';
|
2 | import { AnalyticsConfig } from './Analytics/types';
|
3 | import { AuthConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, AuthUserPoolConfig, CognitoIdentityPoolConfig, GetCredentialsOptions, LibraryAuthOptions } from './Auth/types';
|
4 | import { GeoConfig } from './Geo/types';
|
5 | import { PredictionsConfig } from './Predictions/types';
|
6 | import { LibraryStorageOptions, StorageAccessLevel, StorageConfig } from './Storage/types';
|
7 | import { NotificationsConfig } from './Notifications/types';
|
8 | import { InteractionsConfig } from './Interactions/types';
|
9 |
|
10 |
|
11 |
|
12 | export interface LegacyConfig {
|
13 | |
14 |
|
15 |
|
16 | aws_project_region?: string;
|
17 | }
|
18 | export type AtLeastOne<T, U = {
|
19 | [K in keyof T]: Pick<T, K>;
|
20 | }> = Partial<T> & U[keyof U];
|
21 |
|
22 |
|
23 |
|
24 | export interface ResourcesConfig {
|
25 | API?: APIConfig;
|
26 | Analytics?: AnalyticsConfig;
|
27 | Auth?: AuthConfig;
|
28 | Interactions?: InteractionsConfig;
|
29 | Notifications?: NotificationsConfig;
|
30 | Predictions?: PredictionsConfig;
|
31 | Storage?: StorageConfig;
|
32 | Geo?: GeoConfig;
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 | export interface LibraryOptions {
|
38 | API?: LibraryAPIOptions;
|
39 | Auth?: LibraryAuthOptions;
|
40 | Storage?: LibraryStorageOptions;
|
41 | ssr?: boolean;
|
42 | }
|
43 | export { APIConfig, AuthConfig, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions, GraphQLProviderConfig, InteractionsConfig, PredictionsConfig, StorageAccessLevel, StorageConfig, AnalyticsConfig, CognitoIdentityPoolConfig, GeoConfig, };
|