6
6
7
7
import { S3Client } from ' @aws-sdk/client-s3' ;
8
8
9
+ declare namespace __export__get_amplify_clients_configuration {
10
+ export {
11
+ DataClientEnv ,
12
+ getResourceConfig ,
13
+ getLibraryOptions ,
14
+ InvalidConfig ,
15
+ DataClientError ,
16
+ DataClientConfig ,
17
+ DataClientReturn ,
18
+ getAmplifyDataClientConfig
19
+ }
20
+ }
21
+ export { __export__get_amplify_clients_configuration }
22
+
23
+ declare namespace __export__runtime {
24
+ export {
25
+ getAmplifyDataClientConfig
26
+ }
27
+ }
28
+ export { __export__runtime }
29
+
9
30
// @public (undocumented)
10
- export type DataClientConfig = {
31
+ type DataClientConfig = {
11
32
resourceConfig: ReturnType <typeof getResourceConfig >;
12
33
libraryOptions: ReturnType <typeof getLibraryOptions >;
13
34
};
14
35
15
36
// @public (undocumented)
16
- export type DataClientEnv = {
37
+ type DataClientEnv = {
17
38
AMPLIFY_DATA_GRAPHQL_ENDPOINT: string ;
18
39
AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME: string ;
19
40
AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY: string ;
@@ -24,19 +45,19 @@ export type DataClientEnv = {
24
45
};
25
46
26
47
// @public (undocumented)
27
- export type DataClientError = {
48
+ type DataClientError = {
28
49
resourceConfig: InvalidConfig ;
29
50
libraryOptions: InvalidConfig ;
30
51
};
31
52
32
53
// @public (undocumented)
33
- export type DataClientReturn <T > = T extends DataClientEnv ? DataClientConfig : DataClientError ;
54
+ type DataClientReturn <T > = T extends DataClientEnv ? DataClientConfig : DataClientError ;
34
55
35
56
// @public
36
- export const getAmplifyDataClientConfig: <T >(env : T , s3Client ? : S3Client ) => Promise <DataClientReturn <T >>;
57
+ const getAmplifyDataClientConfig: <T >(env : T , s3Client ? : S3Client ) => Promise <DataClientReturn <T >>;
37
58
38
59
// @public
39
- export const getLibraryOptions: (env : DataClientEnv ) => {
60
+ const getLibraryOptions: (env : DataClientEnv ) => {
40
61
Auth: {
41
62
credentialsProvider: {
42
63
getCredentialsAndIdentityId: () => Promise <{
@@ -52,7 +73,7 @@ export const getLibraryOptions: (env: DataClientEnv) => {
52
73
};
53
74
54
75
// @public
55
- export const getResourceConfig: (env : DataClientEnv , modelIntrospectionSchema : object ) => {
76
+ const getResourceConfig: (env : DataClientEnv , modelIntrospectionSchema : object ) => {
56
77
API: {
57
78
GraphQL: {
58
79
endpoint: string ;
@@ -64,7 +85,7 @@ export const getResourceConfig: (env: DataClientEnv, modelIntrospectionSchema: o
64
85
};
65
86
66
87
// @public (undocumented)
67
- export type InvalidConfig = unknown & {
88
+ type InvalidConfig = unknown & {
68
89
invalidType: ' This function needs to be granted `authorization((allow) => [allow.resource(fcn)])` on the data schema.' ;
69
90
};
70
91
0 commit comments