@ttoss/aws-appsync-nodejs 1.6.3 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +27 -0
- package/package.json +5 -5
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AwsCredentialIdentity } from '@aws-sdk/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Implementation of the AppSync client for NodeJS, based on the AWS Amplify
|
|
5
|
+
* documentation: https://docs.amplify.aws/lib/graphqlapi/graphql-from-nodejs/q/platform/js/
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
type Config = {
|
|
9
|
+
apiEndpoint: string;
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
awsCredentials?: AwsCredentialIdentity;
|
|
12
|
+
};
|
|
13
|
+
type Query = (query: string, variables: Record<string, unknown>) => Promise<{
|
|
14
|
+
data: Record<string, unknown> | null;
|
|
15
|
+
errors?: {
|
|
16
|
+
message: string;
|
|
17
|
+
path: string | null;
|
|
18
|
+
locations: any[];
|
|
19
|
+
}[];
|
|
20
|
+
}>;
|
|
21
|
+
declare const appSyncClient: {
|
|
22
|
+
query: Query;
|
|
23
|
+
setConfig: (config: Config) => void;
|
|
24
|
+
readonly config: Config;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Config, Query, appSyncClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/aws-appsync-nodejs",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@aws-sdk/types": "^3.310.0",
|
|
27
|
-
"@types/jest": "^29.5.
|
|
28
|
-
"jest": "^29.
|
|
29
|
-
"tsup": "^
|
|
30
|
-
"@ttoss/config": "^1.30.
|
|
27
|
+
"@types/jest": "^29.5.3",
|
|
28
|
+
"jest": "^29.6.1",
|
|
29
|
+
"tsup": "^7.1.0",
|
|
30
|
+
"@ttoss/config": "^1.30.5"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [],
|
|
33
33
|
"engines": {
|