@aws-amplify/api-graphql 4.0.1-ssr-api.df60e41.0 → 4.0.1-unstable.04fd02c.0
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/lib/GraphQLAPI.js +1 -3
- package/lib/tsconfig.tsbuildinfo +51 -36
- package/lib/types/index.d.ts +10 -4
- package/lib-esm/GraphQLAPI.js +1 -3
- package/lib-esm/tsconfig.tsbuildinfo +51 -36
- package/lib-esm/types/index.d.ts +10 -4
- package/package.json +5 -5
- package/src/GraphQLAPI.ts +0 -1
- package/src/types/index.ts +16 -4
package/lib/GraphQLAPI.js
CHANGED
|
@@ -21,9 +21,7 @@ class GraphQLAPIClass extends internals_1.InternalGraphQLAPIClass {
|
|
|
21
21
|
* @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
|
|
22
22
|
* @returns An Observable if the query is a subscription query, else a promise of the graphql result.
|
|
23
23
|
*/
|
|
24
|
-
graphql(amplify,
|
|
25
|
-
// amplify: AmplifyClassV6 | (() => Promise<AmplifyClassV6>),
|
|
26
|
-
options, additionalHeaders) {
|
|
24
|
+
graphql(amplify, options, additionalHeaders) {
|
|
27
25
|
return super.graphql(amplify, options, additionalHeaders, {
|
|
28
26
|
category: utils_1.Category.API,
|
|
29
27
|
action: utils_1.ApiAction.GraphQl,
|
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -678,40 +678,40 @@
|
|
|
678
678
|
"signature": "e4e57c7707a3fcd8f9e05b019f657731c14ee6eac1e1c4b8658e64874b4389ca"
|
|
679
679
|
},
|
|
680
680
|
"../../core/lib-esm/providers/pinpoint/types/pinpoint.d.ts": {
|
|
681
|
-
"version": "
|
|
682
|
-
"signature": "
|
|
681
|
+
"version": "4cc17e63b37005257a65505022260d187220e3aa1953ce1658667361a68b0728",
|
|
682
|
+
"signature": "4cc17e63b37005257a65505022260d187220e3aa1953ce1658667361a68b0728"
|
|
683
683
|
},
|
|
684
684
|
"../../core/lib-esm/providers/pinpoint/types/index.d.ts": {
|
|
685
685
|
"version": "9192d7d0b94661bf5076dfc22a6bb30d0af8f775530092a06ec0ce671a51ee9b",
|
|
686
686
|
"signature": "9192d7d0b94661bf5076dfc22a6bb30d0af8f775530092a06ec0ce671a51ee9b"
|
|
687
687
|
},
|
|
688
688
|
"../../core/lib-esm/providers/kinesis/types/kinesis.d.ts": {
|
|
689
|
-
"version": "
|
|
690
|
-
"signature": "
|
|
689
|
+
"version": "394858539364c0851650d893728a3acc75c83377560f9ed9d9892f9a8f7b98da",
|
|
690
|
+
"signature": "394858539364c0851650d893728a3acc75c83377560f9ed9d9892f9a8f7b98da"
|
|
691
691
|
},
|
|
692
692
|
"../../core/lib-esm/providers/kinesis/types/index.d.ts": {
|
|
693
693
|
"version": "346f46738659ad5a6975ce42ec89c76a1ee362e145c6f4251f57a6db11594c16",
|
|
694
694
|
"signature": "346f46738659ad5a6975ce42ec89c76a1ee362e145c6f4251f57a6db11594c16"
|
|
695
695
|
},
|
|
696
696
|
"../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts": {
|
|
697
|
-
"version": "
|
|
698
|
-
"signature": "
|
|
697
|
+
"version": "8b3a38635593c02dd11469aa99f95690f6fdd03420b6d5e48fc58259e3eaa7d6",
|
|
698
|
+
"signature": "8b3a38635593c02dd11469aa99f95690f6fdd03420b6d5e48fc58259e3eaa7d6"
|
|
699
699
|
},
|
|
700
700
|
"../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts": {
|
|
701
701
|
"version": "1ee990513d8962dbe6706a80195eb0c03002939755151f3788df9dd359fdfc27",
|
|
702
702
|
"signature": "1ee990513d8962dbe6706a80195eb0c03002939755151f3788df9dd359fdfc27"
|
|
703
703
|
},
|
|
704
704
|
"../../core/lib-esm/providers/personalize/types/personalize.d.ts": {
|
|
705
|
-
"version": "
|
|
706
|
-
"signature": "
|
|
705
|
+
"version": "2f5e4893fde1a6847ee316a7f9995547358ff1902c33d085073af78f5b73bb9c",
|
|
706
|
+
"signature": "2f5e4893fde1a6847ee316a7f9995547358ff1902c33d085073af78f5b73bb9c"
|
|
707
707
|
},
|
|
708
708
|
"../../core/lib-esm/providers/personalize/types/index.d.ts": {
|
|
709
709
|
"version": "93423211853e84f94c106169a9c18b695136928967398c33c70a24a8123b09b6",
|
|
710
710
|
"signature": "93423211853e84f94c106169a9c18b695136928967398c33c70a24a8123b09b6"
|
|
711
711
|
},
|
|
712
712
|
"../../core/lib-esm/singleton/Analytics/types.d.ts": {
|
|
713
|
-
"version": "
|
|
714
|
-
"signature": "
|
|
713
|
+
"version": "d7de69076d1a10a1c430842efff47efd02ce2f337e05d83095db9819e9795677",
|
|
714
|
+
"signature": "d7de69076d1a10a1c430842efff47efd02ce2f337e05d83095db9819e9795677"
|
|
715
715
|
},
|
|
716
716
|
"../../core/lib-esm/singleton/Geo/types.d.ts": {
|
|
717
717
|
"version": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533",
|
|
@@ -750,8 +750,8 @@
|
|
|
750
750
|
"signature": "702d32653e4f248e6abac940c03a9f1ab1cf87bbde61493e1a491648cc7f73bf"
|
|
751
751
|
},
|
|
752
752
|
"../../core/lib-esm/singleton/Amplify.d.ts": {
|
|
753
|
-
"version": "
|
|
754
|
-
"signature": "
|
|
753
|
+
"version": "d3ccd5d88854c2e61a186e5032ca91168c633bc4a327688a6cdb6caf5aa74aaf",
|
|
754
|
+
"signature": "d3ccd5d88854c2e61a186e5032ca91168c633bc4a327688a6cdb6caf5aa74aaf"
|
|
755
755
|
},
|
|
756
756
|
"../../core/lib-esm/singleton/apis/fetchAuthSession.d.ts": {
|
|
757
757
|
"version": "df1a1f23d18a3dac758a03f4f8f6a3d14e83fb78a45431d15e6833fb53ed8055",
|
|
@@ -857,6 +857,10 @@
|
|
|
857
857
|
"version": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244",
|
|
858
858
|
"signature": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244"
|
|
859
859
|
},
|
|
860
|
+
"../../core/lib-esm/utils/WordArray.d.ts": {
|
|
861
|
+
"version": "bc5e4afbdc45e455dbfbb2de699b9edddeb3aaae648d8ca47e0d83ae77265b35",
|
|
862
|
+
"signature": "bc5e4afbdc45e455dbfbb2de699b9edddeb3aaae648d8ca47e0d83ae77265b35"
|
|
863
|
+
},
|
|
860
864
|
"../../core/lib-esm/utils/generateRandomString.d.ts": {
|
|
861
865
|
"version": "965d3c681888cb11242d0c6e581d8d96c2050cce857bb426f5d20279881f58b6",
|
|
862
866
|
"signature": "965d3c681888cb11242d0c6e581d8d96c2050cce857bb426f5d20279881f58b6"
|
|
@@ -925,13 +929,9 @@
|
|
|
925
929
|
"version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
926
930
|
"signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
927
931
|
},
|
|
928
|
-
"../../../node_modules/@types/uuid/index.d.ts": {
|
|
929
|
-
"version": "7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d",
|
|
930
|
-
"signature": "7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d"
|
|
931
|
-
},
|
|
932
932
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": {
|
|
933
|
-
"version": "
|
|
934
|
-
"signature": "
|
|
933
|
+
"version": "9283fca3fb1628d68f760102d209afd47c87c0922644d00560411ce72c77698c",
|
|
934
|
+
"signature": "9283fca3fb1628d68f760102d209afd47c87c0922644d00560411ce72c77698c"
|
|
935
935
|
},
|
|
936
936
|
"../../core/lib-esm/utils/amplifyUrl/polyfill.d.ts": {
|
|
937
937
|
"version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
@@ -946,8 +946,8 @@
|
|
|
946
946
|
"signature": "5de129155f3c75bb698d6e12b2617d6f5e5ecdcf23bcd42d09d3156d987361b9"
|
|
947
947
|
},
|
|
948
948
|
"../../core/lib-esm/Signer/Signer.d.ts": {
|
|
949
|
-
"version": "
|
|
950
|
-
"signature": "
|
|
949
|
+
"version": "688eae655079382ee52b7e9fc923bf9747040a05d6d0f8a3a7a1f630e8e103dd",
|
|
950
|
+
"signature": "688eae655079382ee52b7e9fc923bf9747040a05d6d0f8a3a7a1f630e8e103dd"
|
|
951
951
|
},
|
|
952
952
|
"../../core/lib-esm/Signer/index.d.ts": {
|
|
953
953
|
"version": "272253df8f67ca7faf3c05a52c92851034882c09d6f404a2c4a6dec317940f3d",
|
|
@@ -1049,6 +1049,10 @@
|
|
|
1049
1049
|
"version": "92395e3e6898e201a167d96559042af069933f1a96662305bdc01fda3627bfbf",
|
|
1050
1050
|
"signature": "92395e3e6898e201a167d96559042af069933f1a96662305bdc01fda3627bfbf"
|
|
1051
1051
|
},
|
|
1052
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts": {
|
|
1053
|
+
"version": "2a6faacb3d8b41430c82eea9b480c548d5a714154897d9450ae2109d910bd724",
|
|
1054
|
+
"signature": "2a6faacb3d8b41430c82eea9b480c548d5a714154897d9450ae2109d910bd724"
|
|
1055
|
+
},
|
|
1052
1056
|
"../../core/lib-esm/utils/sessionListener/types.d.ts": {
|
|
1053
1057
|
"version": "3eb29fe3517a6419a6e2714ff35ddcbf2a9b28f25d366a06f66596154ea1dc40",
|
|
1054
1058
|
"signature": "3eb29fe3517a6419a6e2714ff35ddcbf2a9b28f25d366a06f66596154ea1dc40"
|
|
@@ -1066,8 +1070,8 @@
|
|
|
1066
1070
|
"signature": "1a9624c46a3b64dc2615a8ffa78bdbe28aae8e2de0cabfcd9ba2b9eea6501e39"
|
|
1067
1071
|
},
|
|
1068
1072
|
"../../core/lib-esm/libraryUtils.d.ts": {
|
|
1069
|
-
"version": "
|
|
1070
|
-
"signature": "
|
|
1073
|
+
"version": "e3ab3cb9ced9d2a6a6610e70822121137437cce3c18ff8db351670fed9c37a6b",
|
|
1074
|
+
"signature": "e3ab3cb9ced9d2a6a6610e70822121137437cce3c18ff8db351670fed9c37a6b"
|
|
1071
1075
|
},
|
|
1072
1076
|
"../../../node_modules/graphql/version.d.ts": {
|
|
1073
1077
|
"version": "fd179d7b68260caf075aaabe202dfd39622403405beec3c7a697dec1df338cb2",
|
|
@@ -1506,8 +1510,8 @@
|
|
|
1506
1510
|
"signature": "69998b609508e9a6a8acbba64b5e4cdbe313c53451b349fe049d56786c2afd14"
|
|
1507
1511
|
},
|
|
1508
1512
|
"../src/types/index.ts": {
|
|
1509
|
-
"version": "
|
|
1510
|
-
"signature": "
|
|
1513
|
+
"version": "7bea74c811896ec50e87e38a02618b515152e886d88a968bb7221842019b6817",
|
|
1514
|
+
"signature": "572a0fdbc66fb235f7b57e561c8ac730fdbb962df52cc6b84217e552b7e11ea0"
|
|
1511
1515
|
},
|
|
1512
1516
|
"../../api-rest/lib-esm/errors/RestApiError.d.ts": {
|
|
1513
1517
|
"version": "c7401c76b7d4c6fed3f63c48bc367e0f1bb73239c9f6927cd3563eb2c852285b",
|
|
@@ -1598,7 +1602,7 @@
|
|
|
1598
1602
|
"signature": "60c49aaa36553821d12c4dabba54609c41f4254aed660ccaa5cc6495d4b24bd9"
|
|
1599
1603
|
},
|
|
1600
1604
|
"../src/GraphQLAPI.ts": {
|
|
1601
|
-
"version": "
|
|
1605
|
+
"version": "fd7264b00f23c62e647c1a1b9fe7fb29c123197b893130e9497443c3f02adbb0",
|
|
1602
1606
|
"signature": "65dc09cc82987a4f9bd0ccf039761444bc00610756a3f02e11e37d93341f6f0f"
|
|
1603
1607
|
},
|
|
1604
1608
|
"../src/index.ts": {
|
|
@@ -2832,6 +2836,10 @@
|
|
|
2832
2836
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2833
2837
|
"../../../node_modules/@types/node/index.d.ts"
|
|
2834
2838
|
],
|
|
2839
|
+
"../../core/lib-esm/utils/WordArray.d.ts": [
|
|
2840
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
2841
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
2842
|
+
],
|
|
2835
2843
|
"../../core/lib-esm/utils/generateRandomString.d.ts": [
|
|
2836
2844
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2837
2845
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -2918,12 +2926,7 @@
|
|
|
2918
2926
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2919
2927
|
"../../../node_modules/@types/node/index.d.ts"
|
|
2920
2928
|
],
|
|
2921
|
-
"../../../node_modules/@types/uuid/index.d.ts": [
|
|
2922
|
-
"../../../node_modules/@types/node/base.d.ts",
|
|
2923
|
-
"../../../node_modules/@types/node/index.d.ts"
|
|
2924
|
-
],
|
|
2925
2929
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": [
|
|
2926
|
-
"../../../node_modules/@types/uuid/index.d.ts",
|
|
2927
2930
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2928
2931
|
"../../../node_modules/@types/node/index.d.ts"
|
|
2929
2932
|
],
|
|
@@ -3069,6 +3072,10 @@
|
|
|
3069
3072
|
"../../../node_modules/@types/node/base.d.ts",
|
|
3070
3073
|
"../../../node_modules/@types/node/index.d.ts"
|
|
3071
3074
|
],
|
|
3075
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts": [
|
|
3076
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
3077
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
3078
|
+
],
|
|
3072
3079
|
"../../core/lib-esm/utils/sessionListener/types.d.ts": [
|
|
3073
3080
|
"../../../node_modules/@types/node/base.d.ts",
|
|
3074
3081
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -3089,6 +3096,7 @@
|
|
|
3089
3096
|
"../../../node_modules/@types/node/index.d.ts"
|
|
3090
3097
|
],
|
|
3091
3098
|
"../../core/lib-esm/libraryUtils.d.ts": [
|
|
3099
|
+
"../../core/lib-esm/utils/WordArray.d.ts",
|
|
3092
3100
|
"../../core/lib-esm/utils/index.d.ts",
|
|
3093
3101
|
"../../core/lib-esm/parseAWSExports.d.ts",
|
|
3094
3102
|
"../../core/lib-esm/singleton/types.d.ts",
|
|
@@ -3112,6 +3120,7 @@
|
|
|
3112
3120
|
"../../core/lib-esm/Hub/index.d.ts",
|
|
3113
3121
|
"../../core/lib-esm/utils/convert/index.d.ts",
|
|
3114
3122
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts",
|
|
3123
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts",
|
|
3115
3124
|
"../../core/lib-esm/utils/sessionListener/index.d.ts",
|
|
3116
3125
|
"../../core/lib-esm/utils/sessionListener/types.d.ts",
|
|
3117
3126
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -4279,6 +4288,7 @@
|
|
|
4279
4288
|
"../../../node_modules/@types/node/index.d.ts"
|
|
4280
4289
|
],
|
|
4281
4290
|
"../../core/lib-esm/libraryUtils.d.ts": [
|
|
4291
|
+
"../../core/lib-esm/utils/WordArray.d.ts",
|
|
4282
4292
|
"../../core/lib-esm/utils/index.d.ts",
|
|
4283
4293
|
"../../core/lib-esm/parseAWSExports.d.ts",
|
|
4284
4294
|
"../../core/lib-esm/singleton/types.d.ts",
|
|
@@ -4302,6 +4312,7 @@
|
|
|
4302
4312
|
"../../core/lib-esm/Hub/index.d.ts",
|
|
4303
4313
|
"../../core/lib-esm/utils/convert/index.d.ts",
|
|
4304
4314
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts",
|
|
4315
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts",
|
|
4305
4316
|
"../../core/lib-esm/utils/sessionListener/index.d.ts",
|
|
4306
4317
|
"../../core/lib-esm/utils/sessionListener/types.d.ts",
|
|
4307
4318
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -5865,6 +5876,10 @@
|
|
|
5865
5876
|
"../../../node_modules/@types/node/base.d.ts",
|
|
5866
5877
|
"../../../node_modules/@types/node/index.d.ts"
|
|
5867
5878
|
],
|
|
5879
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts": [
|
|
5880
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
5881
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
5882
|
+
],
|
|
5868
5883
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts": [
|
|
5869
5884
|
"../../../node_modules/@types/node/base.d.ts",
|
|
5870
5885
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -5991,11 +6006,6 @@
|
|
|
5991
6006
|
"../../../node_modules/@types/node/index.d.ts"
|
|
5992
6007
|
],
|
|
5993
6008
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": [
|
|
5994
|
-
"../../../node_modules/@types/uuid/index.d.ts",
|
|
5995
|
-
"../../../node_modules/@types/node/base.d.ts",
|
|
5996
|
-
"../../../node_modules/@types/node/index.d.ts"
|
|
5997
|
-
],
|
|
5998
|
-
"../../../node_modules/@types/uuid/index.d.ts": [
|
|
5999
6009
|
"../../../node_modules/@types/node/base.d.ts",
|
|
6000
6010
|
"../../../node_modules/@types/node/index.d.ts"
|
|
6001
6011
|
],
|
|
@@ -6080,6 +6090,10 @@
|
|
|
6080
6090
|
"../../../node_modules/@types/node/base.d.ts",
|
|
6081
6091
|
"../../../node_modules/@types/node/index.d.ts"
|
|
6082
6092
|
],
|
|
6093
|
+
"../../core/lib-esm/utils/WordArray.d.ts": [
|
|
6094
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
6095
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
6096
|
+
],
|
|
6083
6097
|
"../../core/lib-esm/ServiceWorker/index.d.ts": [
|
|
6084
6098
|
"../../core/lib-esm/ServiceWorker/ServiceWorker.d.ts",
|
|
6085
6099
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -6568,6 +6582,7 @@
|
|
|
6568
6582
|
"../../core/lib-esm/ServiceWorker/ServiceWorker.d.ts",
|
|
6569
6583
|
"../../core/lib-esm/ServiceWorker/index.d.ts",
|
|
6570
6584
|
"../../core/lib-esm/index.d.ts",
|
|
6585
|
+
"../../core/lib-esm/utils/WordArray.d.ts",
|
|
6571
6586
|
"../../core/lib-esm/utils/generateRandomString.d.ts",
|
|
6572
6587
|
"../../core/lib-esm/utils/getClientInfo/getClientInfo.d.ts",
|
|
6573
6588
|
"../../core/lib-esm/utils/getClientInfo/index.d.ts",
|
|
@@ -6585,7 +6600,6 @@
|
|
|
6585
6600
|
"../../core/lib-esm/utils/index.d.ts",
|
|
6586
6601
|
"../../core/lib-esm/parseAWSExports.d.ts",
|
|
6587
6602
|
"../../core/lib-esm/utils/amplifyUuid/polyfill.d.ts",
|
|
6588
|
-
"../../../node_modules/@types/uuid/index.d.ts",
|
|
6589
6603
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts",
|
|
6590
6604
|
"../../core/lib-esm/utils/amplifyUrl/polyfill.d.ts",
|
|
6591
6605
|
"../../core/lib-esm/utils/amplifyUrl/index.d.ts",
|
|
@@ -6616,6 +6630,7 @@
|
|
|
6616
6630
|
"../../core/lib-esm/utils/convert/base64/base64Encoder.d.ts",
|
|
6617
6631
|
"../../core/lib-esm/utils/convert/index.d.ts",
|
|
6618
6632
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts",
|
|
6633
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts",
|
|
6619
6634
|
"../../core/lib-esm/utils/sessionListener/types.d.ts",
|
|
6620
6635
|
"../../core/lib-esm/utils/sessionListener/SessionListener.d.ts",
|
|
6621
6636
|
"../../core/lib-esm/utils/sessionListener/constants.d.ts",
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AmplifyClassV6 } from '@aws-amplify/core';
|
|
1
|
+
import { AmplifyClassV6, ResourcesConfig } from '@aws-amplify/core';
|
|
2
2
|
import { Source, DocumentNode, GraphQLError } from 'graphql';
|
|
3
3
|
export { OperationTypeNode } from 'graphql';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -280,9 +280,6 @@ declare type ExcludeNeverFields<O> = {
|
|
|
280
280
|
[K in FilteredKeys<O>]: O[K];
|
|
281
281
|
};
|
|
282
282
|
export declare const __amplify: unique symbol;
|
|
283
|
-
/**
|
|
284
|
-
* TODO: Refactor these 2. Pull out `graphQL` into its own type
|
|
285
|
-
*/
|
|
286
283
|
export declare type V6Client<T extends Record<any, any> = never> = ExcludeNeverFields<{
|
|
287
284
|
[__amplify]: AmplifyClassV6;
|
|
288
285
|
graphql: GraphQLMethod;
|
|
@@ -301,3 +298,12 @@ export declare type GraphQLMethod = <FALLBACK_TYPES = unknown, TYPED_GQL_STRING
|
|
|
301
298
|
export declare type GraphQLMethodSSR = <FALLBACK_TYPES = unknown, TYPED_GQL_STRING extends string = string>(contextSpec: AmplifyServer.ContextSpec, options: GraphQLOptionsV6<FALLBACK_TYPES, TYPED_GQL_STRING>, additionalHeaders?: {
|
|
302
299
|
[key: string]: string;
|
|
303
300
|
} | undefined) => GraphQLResponseV6<FALLBACK_TYPES, TYPED_GQL_STRING>;
|
|
301
|
+
/**
|
|
302
|
+
* @private
|
|
303
|
+
*
|
|
304
|
+
* The knobs available for configuring `server/generateClient` internally.
|
|
305
|
+
*/
|
|
306
|
+
export declare type ServerClientGenerationParams = {
|
|
307
|
+
amplify: null | ((fn: (amplify: any) => Promise<any>) => Promise<AmplifyClassV6>);
|
|
308
|
+
config: ResourcesConfig;
|
|
309
|
+
};
|
package/lib-esm/GraphQLAPI.js
CHANGED
|
@@ -19,9 +19,7 @@ export class GraphQLAPIClass extends InternalGraphQLAPIClass {
|
|
|
19
19
|
* @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
|
|
20
20
|
* @returns An Observable if the query is a subscription query, else a promise of the graphql result.
|
|
21
21
|
*/
|
|
22
|
-
graphql(amplify,
|
|
23
|
-
// amplify: AmplifyClassV6 | (() => Promise<AmplifyClassV6>),
|
|
24
|
-
options, additionalHeaders) {
|
|
22
|
+
graphql(amplify, options, additionalHeaders) {
|
|
25
23
|
return super.graphql(amplify, options, additionalHeaders, {
|
|
26
24
|
category: Category.API,
|
|
27
25
|
action: ApiAction.GraphQl,
|
|
@@ -678,40 +678,40 @@
|
|
|
678
678
|
"signature": "e4e57c7707a3fcd8f9e05b019f657731c14ee6eac1e1c4b8658e64874b4389ca"
|
|
679
679
|
},
|
|
680
680
|
"../../core/lib-esm/providers/pinpoint/types/pinpoint.d.ts": {
|
|
681
|
-
"version": "
|
|
682
|
-
"signature": "
|
|
681
|
+
"version": "4cc17e63b37005257a65505022260d187220e3aa1953ce1658667361a68b0728",
|
|
682
|
+
"signature": "4cc17e63b37005257a65505022260d187220e3aa1953ce1658667361a68b0728"
|
|
683
683
|
},
|
|
684
684
|
"../../core/lib-esm/providers/pinpoint/types/index.d.ts": {
|
|
685
685
|
"version": "9192d7d0b94661bf5076dfc22a6bb30d0af8f775530092a06ec0ce671a51ee9b",
|
|
686
686
|
"signature": "9192d7d0b94661bf5076dfc22a6bb30d0af8f775530092a06ec0ce671a51ee9b"
|
|
687
687
|
},
|
|
688
688
|
"../../core/lib-esm/providers/kinesis/types/kinesis.d.ts": {
|
|
689
|
-
"version": "
|
|
690
|
-
"signature": "
|
|
689
|
+
"version": "394858539364c0851650d893728a3acc75c83377560f9ed9d9892f9a8f7b98da",
|
|
690
|
+
"signature": "394858539364c0851650d893728a3acc75c83377560f9ed9d9892f9a8f7b98da"
|
|
691
691
|
},
|
|
692
692
|
"../../core/lib-esm/providers/kinesis/types/index.d.ts": {
|
|
693
693
|
"version": "346f46738659ad5a6975ce42ec89c76a1ee362e145c6f4251f57a6db11594c16",
|
|
694
694
|
"signature": "346f46738659ad5a6975ce42ec89c76a1ee362e145c6f4251f57a6db11594c16"
|
|
695
695
|
},
|
|
696
696
|
"../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts": {
|
|
697
|
-
"version": "
|
|
698
|
-
"signature": "
|
|
697
|
+
"version": "8b3a38635593c02dd11469aa99f95690f6fdd03420b6d5e48fc58259e3eaa7d6",
|
|
698
|
+
"signature": "8b3a38635593c02dd11469aa99f95690f6fdd03420b6d5e48fc58259e3eaa7d6"
|
|
699
699
|
},
|
|
700
700
|
"../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts": {
|
|
701
701
|
"version": "1ee990513d8962dbe6706a80195eb0c03002939755151f3788df9dd359fdfc27",
|
|
702
702
|
"signature": "1ee990513d8962dbe6706a80195eb0c03002939755151f3788df9dd359fdfc27"
|
|
703
703
|
},
|
|
704
704
|
"../../core/lib-esm/providers/personalize/types/personalize.d.ts": {
|
|
705
|
-
"version": "
|
|
706
|
-
"signature": "
|
|
705
|
+
"version": "2f5e4893fde1a6847ee316a7f9995547358ff1902c33d085073af78f5b73bb9c",
|
|
706
|
+
"signature": "2f5e4893fde1a6847ee316a7f9995547358ff1902c33d085073af78f5b73bb9c"
|
|
707
707
|
},
|
|
708
708
|
"../../core/lib-esm/providers/personalize/types/index.d.ts": {
|
|
709
709
|
"version": "93423211853e84f94c106169a9c18b695136928967398c33c70a24a8123b09b6",
|
|
710
710
|
"signature": "93423211853e84f94c106169a9c18b695136928967398c33c70a24a8123b09b6"
|
|
711
711
|
},
|
|
712
712
|
"../../core/lib-esm/singleton/Analytics/types.d.ts": {
|
|
713
|
-
"version": "
|
|
714
|
-
"signature": "
|
|
713
|
+
"version": "d7de69076d1a10a1c430842efff47efd02ce2f337e05d83095db9819e9795677",
|
|
714
|
+
"signature": "d7de69076d1a10a1c430842efff47efd02ce2f337e05d83095db9819e9795677"
|
|
715
715
|
},
|
|
716
716
|
"../../core/lib-esm/singleton/Geo/types.d.ts": {
|
|
717
717
|
"version": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533",
|
|
@@ -750,8 +750,8 @@
|
|
|
750
750
|
"signature": "702d32653e4f248e6abac940c03a9f1ab1cf87bbde61493e1a491648cc7f73bf"
|
|
751
751
|
},
|
|
752
752
|
"../../core/lib-esm/singleton/Amplify.d.ts": {
|
|
753
|
-
"version": "
|
|
754
|
-
"signature": "
|
|
753
|
+
"version": "d3ccd5d88854c2e61a186e5032ca91168c633bc4a327688a6cdb6caf5aa74aaf",
|
|
754
|
+
"signature": "d3ccd5d88854c2e61a186e5032ca91168c633bc4a327688a6cdb6caf5aa74aaf"
|
|
755
755
|
},
|
|
756
756
|
"../../core/lib-esm/singleton/apis/fetchAuthSession.d.ts": {
|
|
757
757
|
"version": "df1a1f23d18a3dac758a03f4f8f6a3d14e83fb78a45431d15e6833fb53ed8055",
|
|
@@ -857,6 +857,10 @@
|
|
|
857
857
|
"version": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244",
|
|
858
858
|
"signature": "e1fd77a7ff2b25a4b4f01c191b41216c9e429e65d5f329e00bcd04f78c877244"
|
|
859
859
|
},
|
|
860
|
+
"../../core/lib-esm/utils/WordArray.d.ts": {
|
|
861
|
+
"version": "bc5e4afbdc45e455dbfbb2de699b9edddeb3aaae648d8ca47e0d83ae77265b35",
|
|
862
|
+
"signature": "bc5e4afbdc45e455dbfbb2de699b9edddeb3aaae648d8ca47e0d83ae77265b35"
|
|
863
|
+
},
|
|
860
864
|
"../../core/lib-esm/utils/generateRandomString.d.ts": {
|
|
861
865
|
"version": "965d3c681888cb11242d0c6e581d8d96c2050cce857bb426f5d20279881f58b6",
|
|
862
866
|
"signature": "965d3c681888cb11242d0c6e581d8d96c2050cce857bb426f5d20279881f58b6"
|
|
@@ -925,13 +929,9 @@
|
|
|
925
929
|
"version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
926
930
|
"signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
927
931
|
},
|
|
928
|
-
"../../../node_modules/@types/uuid/index.d.ts": {
|
|
929
|
-
"version": "7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d",
|
|
930
|
-
"signature": "7d2b7fe4adb76d8253f20e4dbdce044f1cdfab4902ec33c3604585f553883f7d"
|
|
931
|
-
},
|
|
932
932
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": {
|
|
933
|
-
"version": "
|
|
934
|
-
"signature": "
|
|
933
|
+
"version": "9283fca3fb1628d68f760102d209afd47c87c0922644d00560411ce72c77698c",
|
|
934
|
+
"signature": "9283fca3fb1628d68f760102d209afd47c87c0922644d00560411ce72c77698c"
|
|
935
935
|
},
|
|
936
936
|
"../../core/lib-esm/utils/amplifyUrl/polyfill.d.ts": {
|
|
937
937
|
"version": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
@@ -946,8 +946,8 @@
|
|
|
946
946
|
"signature": "5de129155f3c75bb698d6e12b2617d6f5e5ecdcf23bcd42d09d3156d987361b9"
|
|
947
947
|
},
|
|
948
948
|
"../../core/lib-esm/Signer/Signer.d.ts": {
|
|
949
|
-
"version": "
|
|
950
|
-
"signature": "
|
|
949
|
+
"version": "688eae655079382ee52b7e9fc923bf9747040a05d6d0f8a3a7a1f630e8e103dd",
|
|
950
|
+
"signature": "688eae655079382ee52b7e9fc923bf9747040a05d6d0f8a3a7a1f630e8e103dd"
|
|
951
951
|
},
|
|
952
952
|
"../../core/lib-esm/Signer/index.d.ts": {
|
|
953
953
|
"version": "272253df8f67ca7faf3c05a52c92851034882c09d6f404a2c4a6dec317940f3d",
|
|
@@ -1049,6 +1049,10 @@
|
|
|
1049
1049
|
"version": "92395e3e6898e201a167d96559042af069933f1a96662305bdc01fda3627bfbf",
|
|
1050
1050
|
"signature": "92395e3e6898e201a167d96559042af069933f1a96662305bdc01fda3627bfbf"
|
|
1051
1051
|
},
|
|
1052
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts": {
|
|
1053
|
+
"version": "2a6faacb3d8b41430c82eea9b480c548d5a714154897d9450ae2109d910bd724",
|
|
1054
|
+
"signature": "2a6faacb3d8b41430c82eea9b480c548d5a714154897d9450ae2109d910bd724"
|
|
1055
|
+
},
|
|
1052
1056
|
"../../core/lib-esm/utils/sessionListener/types.d.ts": {
|
|
1053
1057
|
"version": "3eb29fe3517a6419a6e2714ff35ddcbf2a9b28f25d366a06f66596154ea1dc40",
|
|
1054
1058
|
"signature": "3eb29fe3517a6419a6e2714ff35ddcbf2a9b28f25d366a06f66596154ea1dc40"
|
|
@@ -1066,8 +1070,8 @@
|
|
|
1066
1070
|
"signature": "1a9624c46a3b64dc2615a8ffa78bdbe28aae8e2de0cabfcd9ba2b9eea6501e39"
|
|
1067
1071
|
},
|
|
1068
1072
|
"../../core/lib-esm/libraryUtils.d.ts": {
|
|
1069
|
-
"version": "
|
|
1070
|
-
"signature": "
|
|
1073
|
+
"version": "e3ab3cb9ced9d2a6a6610e70822121137437cce3c18ff8db351670fed9c37a6b",
|
|
1074
|
+
"signature": "e3ab3cb9ced9d2a6a6610e70822121137437cce3c18ff8db351670fed9c37a6b"
|
|
1071
1075
|
},
|
|
1072
1076
|
"../../../node_modules/graphql/version.d.ts": {
|
|
1073
1077
|
"version": "fd179d7b68260caf075aaabe202dfd39622403405beec3c7a697dec1df338cb2",
|
|
@@ -1506,8 +1510,8 @@
|
|
|
1506
1510
|
"signature": "69998b609508e9a6a8acbba64b5e4cdbe313c53451b349fe049d56786c2afd14"
|
|
1507
1511
|
},
|
|
1508
1512
|
"../src/types/index.ts": {
|
|
1509
|
-
"version": "
|
|
1510
|
-
"signature": "
|
|
1513
|
+
"version": "7bea74c811896ec50e87e38a02618b515152e886d88a968bb7221842019b6817",
|
|
1514
|
+
"signature": "572a0fdbc66fb235f7b57e561c8ac730fdbb962df52cc6b84217e552b7e11ea0"
|
|
1511
1515
|
},
|
|
1512
1516
|
"../../api-rest/lib-esm/errors/RestApiError.d.ts": {
|
|
1513
1517
|
"version": "c7401c76b7d4c6fed3f63c48bc367e0f1bb73239c9f6927cd3563eb2c852285b",
|
|
@@ -1598,7 +1602,7 @@
|
|
|
1598
1602
|
"signature": "60c49aaa36553821d12c4dabba54609c41f4254aed660ccaa5cc6495d4b24bd9"
|
|
1599
1603
|
},
|
|
1600
1604
|
"../src/GraphQLAPI.ts": {
|
|
1601
|
-
"version": "
|
|
1605
|
+
"version": "fd7264b00f23c62e647c1a1b9fe7fb29c123197b893130e9497443c3f02adbb0",
|
|
1602
1606
|
"signature": "65dc09cc82987a4f9bd0ccf039761444bc00610756a3f02e11e37d93341f6f0f"
|
|
1603
1607
|
},
|
|
1604
1608
|
"../src/index.ts": {
|
|
@@ -2832,6 +2836,10 @@
|
|
|
2832
2836
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2833
2837
|
"../../../node_modules/@types/node/index.d.ts"
|
|
2834
2838
|
],
|
|
2839
|
+
"../../core/lib-esm/utils/WordArray.d.ts": [
|
|
2840
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
2841
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
2842
|
+
],
|
|
2835
2843
|
"../../core/lib-esm/utils/generateRandomString.d.ts": [
|
|
2836
2844
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2837
2845
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -2918,12 +2926,7 @@
|
|
|
2918
2926
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2919
2927
|
"../../../node_modules/@types/node/index.d.ts"
|
|
2920
2928
|
],
|
|
2921
|
-
"../../../node_modules/@types/uuid/index.d.ts": [
|
|
2922
|
-
"../../../node_modules/@types/node/base.d.ts",
|
|
2923
|
-
"../../../node_modules/@types/node/index.d.ts"
|
|
2924
|
-
],
|
|
2925
2929
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": [
|
|
2926
|
-
"../../../node_modules/@types/uuid/index.d.ts",
|
|
2927
2930
|
"../../../node_modules/@types/node/base.d.ts",
|
|
2928
2931
|
"../../../node_modules/@types/node/index.d.ts"
|
|
2929
2932
|
],
|
|
@@ -3069,6 +3072,10 @@
|
|
|
3069
3072
|
"../../../node_modules/@types/node/base.d.ts",
|
|
3070
3073
|
"../../../node_modules/@types/node/index.d.ts"
|
|
3071
3074
|
],
|
|
3075
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts": [
|
|
3076
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
3077
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
3078
|
+
],
|
|
3072
3079
|
"../../core/lib-esm/utils/sessionListener/types.d.ts": [
|
|
3073
3080
|
"../../../node_modules/@types/node/base.d.ts",
|
|
3074
3081
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -3089,6 +3096,7 @@
|
|
|
3089
3096
|
"../../../node_modules/@types/node/index.d.ts"
|
|
3090
3097
|
],
|
|
3091
3098
|
"../../core/lib-esm/libraryUtils.d.ts": [
|
|
3099
|
+
"../../core/lib-esm/utils/WordArray.d.ts",
|
|
3092
3100
|
"../../core/lib-esm/utils/index.d.ts",
|
|
3093
3101
|
"../../core/lib-esm/parseAWSExports.d.ts",
|
|
3094
3102
|
"../../core/lib-esm/singleton/types.d.ts",
|
|
@@ -3112,6 +3120,7 @@
|
|
|
3112
3120
|
"../../core/lib-esm/Hub/index.d.ts",
|
|
3113
3121
|
"../../core/lib-esm/utils/convert/index.d.ts",
|
|
3114
3122
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts",
|
|
3123
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts",
|
|
3115
3124
|
"../../core/lib-esm/utils/sessionListener/index.d.ts",
|
|
3116
3125
|
"../../core/lib-esm/utils/sessionListener/types.d.ts",
|
|
3117
3126
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -4279,6 +4288,7 @@
|
|
|
4279
4288
|
"../../../node_modules/@types/node/index.d.ts"
|
|
4280
4289
|
],
|
|
4281
4290
|
"../../core/lib-esm/libraryUtils.d.ts": [
|
|
4291
|
+
"../../core/lib-esm/utils/WordArray.d.ts",
|
|
4282
4292
|
"../../core/lib-esm/utils/index.d.ts",
|
|
4283
4293
|
"../../core/lib-esm/parseAWSExports.d.ts",
|
|
4284
4294
|
"../../core/lib-esm/singleton/types.d.ts",
|
|
@@ -4302,6 +4312,7 @@
|
|
|
4302
4312
|
"../../core/lib-esm/Hub/index.d.ts",
|
|
4303
4313
|
"../../core/lib-esm/utils/convert/index.d.ts",
|
|
4304
4314
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts",
|
|
4315
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts",
|
|
4305
4316
|
"../../core/lib-esm/utils/sessionListener/index.d.ts",
|
|
4306
4317
|
"../../core/lib-esm/utils/sessionListener/types.d.ts",
|
|
4307
4318
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -5865,6 +5876,10 @@
|
|
|
5865
5876
|
"../../../node_modules/@types/node/base.d.ts",
|
|
5866
5877
|
"../../../node_modules/@types/node/index.d.ts"
|
|
5867
5878
|
],
|
|
5879
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts": [
|
|
5880
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
5881
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
5882
|
+
],
|
|
5868
5883
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts": [
|
|
5869
5884
|
"../../../node_modules/@types/node/base.d.ts",
|
|
5870
5885
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -5991,11 +6006,6 @@
|
|
|
5991
6006
|
"../../../node_modules/@types/node/index.d.ts"
|
|
5992
6007
|
],
|
|
5993
6008
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": [
|
|
5994
|
-
"../../../node_modules/@types/uuid/index.d.ts",
|
|
5995
|
-
"../../../node_modules/@types/node/base.d.ts",
|
|
5996
|
-
"../../../node_modules/@types/node/index.d.ts"
|
|
5997
|
-
],
|
|
5998
|
-
"../../../node_modules/@types/uuid/index.d.ts": [
|
|
5999
6009
|
"../../../node_modules/@types/node/base.d.ts",
|
|
6000
6010
|
"../../../node_modules/@types/node/index.d.ts"
|
|
6001
6011
|
],
|
|
@@ -6080,6 +6090,10 @@
|
|
|
6080
6090
|
"../../../node_modules/@types/node/base.d.ts",
|
|
6081
6091
|
"../../../node_modules/@types/node/index.d.ts"
|
|
6082
6092
|
],
|
|
6093
|
+
"../../core/lib-esm/utils/WordArray.d.ts": [
|
|
6094
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
6095
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
6096
|
+
],
|
|
6083
6097
|
"../../core/lib-esm/ServiceWorker/index.d.ts": [
|
|
6084
6098
|
"../../core/lib-esm/ServiceWorker/ServiceWorker.d.ts",
|
|
6085
6099
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -6568,6 +6582,7 @@
|
|
|
6568
6582
|
"../../core/lib-esm/ServiceWorker/ServiceWorker.d.ts",
|
|
6569
6583
|
"../../core/lib-esm/ServiceWorker/index.d.ts",
|
|
6570
6584
|
"../../core/lib-esm/index.d.ts",
|
|
6585
|
+
"../../core/lib-esm/utils/WordArray.d.ts",
|
|
6571
6586
|
"../../core/lib-esm/utils/generateRandomString.d.ts",
|
|
6572
6587
|
"../../core/lib-esm/utils/getClientInfo/getClientInfo.d.ts",
|
|
6573
6588
|
"../../core/lib-esm/utils/getClientInfo/index.d.ts",
|
|
@@ -6585,7 +6600,6 @@
|
|
|
6585
6600
|
"../../core/lib-esm/utils/index.d.ts",
|
|
6586
6601
|
"../../core/lib-esm/parseAWSExports.d.ts",
|
|
6587
6602
|
"../../core/lib-esm/utils/amplifyUuid/polyfill.d.ts",
|
|
6588
|
-
"../../../node_modules/@types/uuid/index.d.ts",
|
|
6589
6603
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts",
|
|
6590
6604
|
"../../core/lib-esm/utils/amplifyUrl/polyfill.d.ts",
|
|
6591
6605
|
"../../core/lib-esm/utils/amplifyUrl/index.d.ts",
|
|
@@ -6616,6 +6630,7 @@
|
|
|
6616
6630
|
"../../core/lib-esm/utils/convert/base64/base64Encoder.d.ts",
|
|
6617
6631
|
"../../core/lib-esm/utils/convert/index.d.ts",
|
|
6618
6632
|
"../../core/lib-esm/utils/globalHelpers/index.d.ts",
|
|
6633
|
+
"../../core/lib-esm/utils/cryptoSecureRandomInt.d.ts",
|
|
6619
6634
|
"../../core/lib-esm/utils/sessionListener/types.d.ts",
|
|
6620
6635
|
"../../core/lib-esm/utils/sessionListener/SessionListener.d.ts",
|
|
6621
6636
|
"../../core/lib-esm/utils/sessionListener/constants.d.ts",
|
package/lib-esm/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AmplifyClassV6 } from '@aws-amplify/core';
|
|
1
|
+
import { AmplifyClassV6, ResourcesConfig } from '@aws-amplify/core';
|
|
2
2
|
import { Source, DocumentNode, GraphQLError } from 'graphql';
|
|
3
3
|
export { OperationTypeNode } from 'graphql';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -280,9 +280,6 @@ declare type ExcludeNeverFields<O> = {
|
|
|
280
280
|
[K in FilteredKeys<O>]: O[K];
|
|
281
281
|
};
|
|
282
282
|
export declare const __amplify: unique symbol;
|
|
283
|
-
/**
|
|
284
|
-
* TODO: Refactor these 2. Pull out `graphQL` into its own type
|
|
285
|
-
*/
|
|
286
283
|
export declare type V6Client<T extends Record<any, any> = never> = ExcludeNeverFields<{
|
|
287
284
|
[__amplify]: AmplifyClassV6;
|
|
288
285
|
graphql: GraphQLMethod;
|
|
@@ -301,3 +298,12 @@ export declare type GraphQLMethod = <FALLBACK_TYPES = unknown, TYPED_GQL_STRING
|
|
|
301
298
|
export declare type GraphQLMethodSSR = <FALLBACK_TYPES = unknown, TYPED_GQL_STRING extends string = string>(contextSpec: AmplifyServer.ContextSpec, options: GraphQLOptionsV6<FALLBACK_TYPES, TYPED_GQL_STRING>, additionalHeaders?: {
|
|
302
299
|
[key: string]: string;
|
|
303
300
|
} | undefined) => GraphQLResponseV6<FALLBACK_TYPES, TYPED_GQL_STRING>;
|
|
301
|
+
/**
|
|
302
|
+
* @private
|
|
303
|
+
*
|
|
304
|
+
* The knobs available for configuring `server/generateClient` internally.
|
|
305
|
+
*/
|
|
306
|
+
export declare type ServerClientGenerationParams = {
|
|
307
|
+
amplify: null | ((fn: (amplify: any) => Promise<any>) => Promise<AmplifyClassV6>);
|
|
308
|
+
config: ResourcesConfig;
|
|
309
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api-graphql",
|
|
3
|
-
"version": "4.0.1-
|
|
3
|
+
"version": "4.0.1-unstable.04fd02c.0+04fd02c",
|
|
4
4
|
"description": "Api-graphql category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"internals"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@aws-amplify/api-rest": "4.0.1-
|
|
51
|
-
"@aws-amplify/auth": "6.0.1-
|
|
52
|
-
"@aws-amplify/core": "6.0.1-
|
|
50
|
+
"@aws-amplify/api-rest": "4.0.1-unstable.04fd02c.0+04fd02c",
|
|
51
|
+
"@aws-amplify/auth": "6.0.1-unstable.04fd02c.0+04fd02c",
|
|
52
|
+
"@aws-amplify/core": "6.0.1-unstable.04fd02c.0+04fd02c",
|
|
53
53
|
"@aws-sdk/types": "3.387.0",
|
|
54
54
|
"graphql": "15.8.0",
|
|
55
55
|
"rxjs": "^7.8.1",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"<rootDir>/__tests__"
|
|
121
121
|
]
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "04fd02ca9eace7f3053cbbba8c8f517db08fc906"
|
|
124
124
|
}
|
package/src/GraphQLAPI.ts
CHANGED
|
@@ -33,7 +33,6 @@ export class GraphQLAPIClass extends InternalGraphQLAPIClass {
|
|
|
33
33
|
*/
|
|
34
34
|
graphql<T = any>(
|
|
35
35
|
amplify: AmplifyClassV6 | (() => Promise<AmplifyClassV6>),
|
|
36
|
-
// amplify: AmplifyClassV6 | (() => Promise<AmplifyClassV6>),
|
|
37
36
|
options: GraphQLOptions,
|
|
38
37
|
additionalHeaders?: { [key: string]: string }
|
|
39
38
|
): Observable<GraphQLResult<T>> | Promise<GraphQLResult<T>> {
|
package/src/types/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { AmplifyClassV6 } from '@aws-amplify/core';
|
|
3
|
+
import { AmplifyClassV6, ResourcesConfig } from '@aws-amplify/core';
|
|
4
4
|
import { Source, DocumentNode, GraphQLError } from 'graphql';
|
|
5
5
|
export { OperationTypeNode } from 'graphql';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
DocumentType,
|
|
11
11
|
} from '@aws-amplify/core/internals/utils';
|
|
12
12
|
import { AmplifyServer } from '@aws-amplify/core/internals/adapter-core';
|
|
13
|
+
|
|
13
14
|
export { CONTROL_MSG, ConnectionState } from './PubSub';
|
|
14
15
|
/**
|
|
15
16
|
* Loose/Unknown options for raw GraphQLAPICategory `graphql()`.
|
|
@@ -354,9 +355,6 @@ type ExcludeNeverFields<O> = {
|
|
|
354
355
|
|
|
355
356
|
export const __amplify = Symbol('amplify');
|
|
356
357
|
|
|
357
|
-
/**
|
|
358
|
-
* TODO: Refactor these 2. Pull out `graphQL` into its own type
|
|
359
|
-
*/
|
|
360
358
|
export type V6Client<T extends Record<any, any> = never> = ExcludeNeverFields<{
|
|
361
359
|
[__amplify]: AmplifyClassV6;
|
|
362
360
|
graphql: GraphQLMethod;
|
|
@@ -396,3 +394,17 @@ export type GraphQLMethodSSR = <
|
|
|
396
394
|
}
|
|
397
395
|
| undefined
|
|
398
396
|
) => GraphQLResponseV6<FALLBACK_TYPES, TYPED_GQL_STRING>;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @private
|
|
400
|
+
*
|
|
401
|
+
* The knobs available for configuring `server/generateClient` internally.
|
|
402
|
+
*/
|
|
403
|
+
export type ServerClientGenerationParams = {
|
|
404
|
+
amplify:
|
|
405
|
+
| null // null expected when used with `generateServerClient`
|
|
406
|
+
// closure expected with `generateServerClientUsingCookies`
|
|
407
|
+
| ((fn: (amplify: any) => Promise<any>) => Promise<AmplifyClassV6>);
|
|
408
|
+
// global env-sourced config use for retrieving modelIntro
|
|
409
|
+
config: ResourcesConfig;
|
|
410
|
+
};
|