UNPKG

1.96 kBTypeScriptView Raw
1import { APIConfig, GraphQLProviderConfig, LibraryAPIOptions } from './API/types';
2import { AnalyticsConfig } from './Analytics/types';
3import { AuthConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, AuthUserPoolConfig, CognitoIdentityPoolConfig, GetCredentialsOptions, LibraryAuthOptions } from './Auth/types';
4import { GeoConfig } from './Geo/types';
5import { PredictionsConfig } from './Predictions/types';
6import { LibraryStorageOptions, StorageAccessLevel, StorageConfig } from './Storage/types';
7import { NotificationsConfig } from './Notifications/types';
8import { InteractionsConfig } from './Interactions/types';
9export { AmplifyOutputs } from './AmplifyOutputs/types';
10/**
11 * Compatibility type representing the Amplify Gen 1 configuration file schema. This type should not be used directly.
12 */
13export interface LegacyConfig {
14 /**
15 * @deprecated The field should not be used.
16 */
17 aws_project_region?: string;
18}
19export type AtLeastOne<T, U = {
20 [K in keyof T]: Pick<T, K>;
21}> = Partial<T> & U[keyof U];
22/**
23 * Amplify library configuration type. Used to specify back-end resource configuration across the library.
24 */
25export interface ResourcesConfig {
26 API?: APIConfig;
27 Analytics?: AnalyticsConfig;
28 Auth?: AuthConfig;
29 Interactions?: InteractionsConfig;
30 Notifications?: NotificationsConfig;
31 Predictions?: PredictionsConfig;
32 Storage?: StorageConfig;
33 Geo?: GeoConfig;
34}
35/**
36 * Amplify library options type. Used to customize library behavior.
37 */
38export interface LibraryOptions {
39 API?: LibraryAPIOptions;
40 Auth?: LibraryAuthOptions;
41 Storage?: LibraryStorageOptions;
42 ssr?: boolean;
43}
44export { APIConfig, AuthConfig, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions, GraphQLProviderConfig, InteractionsConfig, PredictionsConfig, StorageAccessLevel, StorageConfig, AnalyticsConfig, CognitoIdentityPoolConfig, GeoConfig, };