@aws-amplify/api-graphql 4.0.1-console-preview.b5a42af.0 → 4.0.1-console-preview.9607e4a.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.
@@ -614,8 +614,8 @@
614
614
  "signature": "622028afad3e12a65acced3c75ae7726bf56d49c199ec3607be2564fca27aac3"
615
615
  },
616
616
  "../../core/lib-esm/clients/types/http.d.ts": {
617
- "version": "b94fa6ecdfcf5c1c31d4baa822d7ecb40c9db548399b205563379f38d265372a",
618
- "signature": "b94fa6ecdfcf5c1c31d4baa822d7ecb40c9db548399b205563379f38d265372a"
617
+ "version": "1c4fdf9ba0d187c61e19d216ab3a3ba297b1c9b2a5a68367b1d8e7c070520c8e",
618
+ "signature": "1c4fdf9ba0d187c61e19d216ab3a3ba297b1c9b2a5a68367b1d8e7c070520c8e"
619
619
  },
620
620
  "../../core/lib-esm/clients/handlers/fetch.d.ts": {
621
621
  "version": "9e6390c460ca50e0b768107f2be5a14f3da4adb6e775ada0f239d2b3be5732c5",
@@ -1102,16 +1102,40 @@
1102
1102
  "signature": "4200db79a41dd88ecb68d2cc68f0e8124e71a610824b407b2b7d7bdb1b4b4210"
1103
1103
  },
1104
1104
  "../../core/lib-esm/providers/pinpoint/types/pinpoint.d.ts": {
1105
- "version": "d0beffa24a6ee04f6ac49081bb4e2b20acddef834efe61a188c73f88d2b78608",
1106
- "signature": "d0beffa24a6ee04f6ac49081bb4e2b20acddef834efe61a188c73f88d2b78608"
1105
+ "version": "79e4895890b313e8330023d329d975ed765f1ea52b8019fef4e2ee73e4cf8974",
1106
+ "signature": "79e4895890b313e8330023d329d975ed765f1ea52b8019fef4e2ee73e4cf8974"
1107
1107
  },
1108
1108
  "../../core/lib-esm/providers/pinpoint/types/index.d.ts": {
1109
1109
  "version": "4719d02184cf8209c2bb62e01d319f4452260159efdcdb04ceccb80468db87b8",
1110
1110
  "signature": "4719d02184cf8209c2bb62e01d319f4452260159efdcdb04ceccb80468db87b8"
1111
1111
  },
1112
+ "../../core/lib-esm/providers/kinesis/types/kinesis.d.ts": {
1113
+ "version": "934af09dfd245b15258ce15f4498ab9e8b1e3fa4244044c677018e3ddd23e3e7",
1114
+ "signature": "934af09dfd245b15258ce15f4498ab9e8b1e3fa4244044c677018e3ddd23e3e7"
1115
+ },
1116
+ "../../core/lib-esm/providers/kinesis/types/index.d.ts": {
1117
+ "version": "346f46738659ad5a6975ce42ec89c76a1ee362e145c6f4251f57a6db11594c16",
1118
+ "signature": "346f46738659ad5a6975ce42ec89c76a1ee362e145c6f4251f57a6db11594c16"
1119
+ },
1120
+ "../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts": {
1121
+ "version": "7dc9c291678d23e9d84cd887dd02f53f601ca76d7ebf88cdff0e14632b03dfac",
1122
+ "signature": "7dc9c291678d23e9d84cd887dd02f53f601ca76d7ebf88cdff0e14632b03dfac"
1123
+ },
1124
+ "../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts": {
1125
+ "version": "1ee990513d8962dbe6706a80195eb0c03002939755151f3788df9dd359fdfc27",
1126
+ "signature": "1ee990513d8962dbe6706a80195eb0c03002939755151f3788df9dd359fdfc27"
1127
+ },
1128
+ "../../core/lib-esm/providers/personalize/types/personalize.d.ts": {
1129
+ "version": "993a054df1475502be18b0105062c831c4fc1f0924f64498e5c07dda71add987",
1130
+ "signature": "993a054df1475502be18b0105062c831c4fc1f0924f64498e5c07dda71add987"
1131
+ },
1132
+ "../../core/lib-esm/providers/personalize/types/index.d.ts": {
1133
+ "version": "93423211853e84f94c106169a9c18b695136928967398c33c70a24a8123b09b6",
1134
+ "signature": "93423211853e84f94c106169a9c18b695136928967398c33c70a24a8123b09b6"
1135
+ },
1112
1136
  "../../core/lib-esm/singleton/Analytics/types.d.ts": {
1113
- "version": "918cf1ba151c31cb372e2366b88a84bbad57953a8e8becbdf5629257a280b665",
1114
- "signature": "918cf1ba151c31cb372e2366b88a84bbad57953a8e8becbdf5629257a280b665"
1137
+ "version": "0c25f785089696f525f26d37c5cbd6656175dc7eb2c331fcbaa34ff4af0424dc",
1138
+ "signature": "0c25f785089696f525f26d37c5cbd6656175dc7eb2c331fcbaa34ff4af0424dc"
1115
1139
  },
1116
1140
  "../../core/lib-esm/singleton/Geo/types.d.ts": {
1117
1141
  "version": "0496344cca8596e5fcfbcf489ea39fd6ea82a4d6a010f968685edf5b4f6c2533",
@@ -1174,8 +1198,8 @@
1174
1198
  "signature": "edf7f975df241cc98c9f4c51aab781f4ecfc884ff6ce03cfd3c59a19a7e729b8"
1175
1199
  },
1176
1200
  "../../core/lib-esm/Platform/types.d.ts": {
1177
- "version": "419f10aa9fe307eb5e0b0d410a096d22126c75b36c7a9eb0c17d96c15a5e346f",
1178
- "signature": "419f10aa9fe307eb5e0b0d410a096d22126c75b36c7a9eb0c17d96c15a5e346f"
1201
+ "version": "b40c5c4fbafe286f2af07f72a600875f3dffa17d0d10554e282c51b0353f4c0a",
1202
+ "signature": "b40c5c4fbafe286f2af07f72a600875f3dffa17d0d10554e282c51b0353f4c0a"
1179
1203
  },
1180
1204
  "../../core/lib-esm/Platform/index.d.ts": {
1181
1205
  "version": "52470c64ff42d847d24be31b19aff4d39c4a74b2073de6cc7fb95545ef8d87a5",
@@ -1290,16 +1314,16 @@
1290
1314
  "signature": "92395e3e6898e201a167d96559042af069933f1a96662305bdc01fda3627bfbf"
1291
1315
  },
1292
1316
  "../../core/lib-esm/libraryUtils.d.ts": {
1293
- "version": "dbfa5cdfe9f79a5264488a3eaae0add2a26bbc274affcc5495ff5d2514bf1c92",
1294
- "signature": "dbfa5cdfe9f79a5264488a3eaae0add2a26bbc274affcc5495ff5d2514bf1c92"
1317
+ "version": "77d9972e4e2dd35f88e03335d8d0d9592a754693e4ea00d27f0ccc44f43c1c59",
1318
+ "signature": "77d9972e4e2dd35f88e03335d8d0d9592a754693e4ea00d27f0ccc44f43c1c59"
1295
1319
  },
1296
1320
  "../src/types/PubSub.ts": {
1297
- "version": "70ac482472a54d226119a9a20fbb3f3baa04e9e305526ab90559626561206a64",
1298
- "signature": "ad2b3dd90d30fe70b81a40ed52c2f676547c6d6cfb740278e8798c15d780ddde"
1321
+ "version": "14b4a96cd324440e30040d2a8d147af5f71ac1603546e16a9e0b56aa705aeb05",
1322
+ "signature": "69998b609508e9a6a8acbba64b5e4cdbe313c53451b349fe049d56786c2afd14"
1299
1323
  },
1300
1324
  "../src/types/index.ts": {
1301
- "version": "1a24da5de1c918dce87fce82bb02abaedff4cd560562426bb7f557db231347af",
1302
- "signature": "bf4518dec4c41828155000b934a567d87e78a1fcbf84be908a4d545918e2ae23"
1325
+ "version": "93ad3a1a8ee1d0a593f245ad2a9e4558de336823e21ecb3310584dec9ad26193",
1326
+ "signature": "1ec49e2a63d9fe4506977191b899c08704ef20f62611498215f2235e6e8f5113"
1303
1327
  },
1304
1328
  "../../core/lib-esm/singleton/apis/fetchAuthSession.d.ts": {
1305
1329
  "version": "df1a1f23d18a3dac758a03f4f8f6a3d14e83fb78a45431d15e6833fb53ed8055",
@@ -1377,17 +1401,33 @@
1377
1401
  "version": "961b863ef850a0b1d97c21a273560ee4434a313849b41f4dc9505804f9a6108c",
1378
1402
  "signature": "961b863ef850a0b1d97c21a273560ee4434a313849b41f4dc9505804f9a6108c"
1379
1403
  },
1404
+ "../../api-rest/lib-esm/errors/RestApiError.d.ts": {
1405
+ "version": "c7401c76b7d4c6fed3f63c48bc367e0f1bb73239c9f6927cd3563eb2c852285b",
1406
+ "signature": "c7401c76b7d4c6fed3f63c48bc367e0f1bb73239c9f6927cd3563eb2c852285b"
1407
+ },
1408
+ "../../api-rest/lib-esm/errors/CancelledError.d.ts": {
1409
+ "version": "a4034567779613484830d1c1af7974c86ad15e72d02e7d8210ba172d5125aa75",
1410
+ "signature": "a4034567779613484830d1c1af7974c86ad15e72d02e7d8210ba172d5125aa75"
1411
+ },
1380
1412
  "../../api-rest/lib-esm/types/index.d.ts": {
1381
- "version": "355f4a6a20c7e7e71008bc0b3d2cf884955f5a282f5454559a846dbb25de0c90",
1382
- "signature": "355f4a6a20c7e7e71008bc0b3d2cf884955f5a282f5454559a846dbb25de0c90"
1413
+ "version": "169cd28bdae65ec83843d65788241d23127f85d7505c5321e5d39bd7963c351b",
1414
+ "signature": "169cd28bdae65ec83843d65788241d23127f85d7505c5321e5d39bd7963c351b"
1415
+ },
1416
+ "../../api-rest/lib-esm/apis/index.d.ts": {
1417
+ "version": "c1cc2140f3a7d5009ad8239fcf08148403151aa4f81e10bbdc3dbf56e40aaeac",
1418
+ "signature": "c1cc2140f3a7d5009ad8239fcf08148403151aa4f81e10bbdc3dbf56e40aaeac"
1419
+ },
1420
+ "../../api-rest/lib-esm/index.d.ts": {
1421
+ "version": "43435b5a5cad6dad7db911c06f882350195c64d195fa123d983a9a53f6e4c213",
1422
+ "signature": "43435b5a5cad6dad7db911c06f882350195c64d195fa123d983a9a53f6e4c213"
1383
1423
  },
1384
- "../../api-rest/lib-esm/common/internalPost.d.ts": {
1385
- "version": "c0d71d3612c629c3aeac8ae585aa7414079db966b12d68c6e8bed53b0f95c9de",
1386
- "signature": "c0d71d3612c629c3aeac8ae585aa7414079db966b12d68c6e8bed53b0f95c9de"
1424
+ "../../api-rest/lib-esm/apis/common/internalPost.d.ts": {
1425
+ "version": "b8e39c8a045b834fd828b6bb5e4b4473735c53aa19dddc9b4d855f803af3b075",
1426
+ "signature": "b8e39c8a045b834fd828b6bb5e4b4473735c53aa19dddc9b4d855f803af3b075"
1387
1427
  },
1388
1428
  "../../api-rest/lib-esm/internals/index.d.ts": {
1389
- "version": "97c6154ece4cb52c6751865e7f2b6a724259be9e009723aea5c4b1f2a1fa5d0d",
1390
- "signature": "97c6154ece4cb52c6751865e7f2b6a724259be9e009723aea5c4b1f2a1fa5d0d"
1429
+ "version": "6aab8143bd3d7dac7f4d5caaf4570c72c0368d5bbb82f38e3dca090a92902310",
1430
+ "signature": "6aab8143bd3d7dac7f4d5caaf4570c72c0368d5bbb82f38e3dca090a92902310"
1391
1431
  },
1392
1432
  "../../../node_modules/@types/uuid/index.d.ts": {
1393
1433
  "version": "f875e913ef24873eb2a469605402595f1c783070b52a98e53686b32c0f827f7f",
@@ -1410,24 +1450,24 @@
1410
1450
  "signature": "b0afc2803af9e818fad28464e4e62ee1b255d282f8f19ba8a2459b7bab4d789e"
1411
1451
  },
1412
1452
  "../src/Providers/AWSAppSyncRealTimeProvider/index.ts": {
1413
- "version": "29954fb873eeb8da70ded5f56ee4d1c21818db5d9ca5d9f69c4a6a40abf51d85",
1453
+ "version": "70307fdb8b8731ddf884d9974e4c6995a8882d434a9e89d0bcaf865a4e6f1fab",
1414
1454
  "signature": "1e99d3031c6655bc40f2a8d877d7a10a8747d29046f6e4b0e1dba3590cd2fdf8"
1415
1455
  },
1416
1456
  "../src/internals/InternalGraphQLAPI.ts": {
1417
- "version": "1a2400e965cd867002a5eebdc3b5fa844f1ff01222bc7f91068499383dfa66f6",
1418
- "signature": "186c82c1cbd4eb233c4fde8e8f264511fbba3187e270c384c570343dee075ee4"
1457
+ "version": "4b77a15f276dd6a438831595b4ebe9edd9da3f3ec60504a9dc6d727ba25179db",
1458
+ "signature": "2935cf9761be3485380b77cbe856f428a1c342ca4377ad1dfa72af6eac46db2e"
1419
1459
  },
1420
1460
  "../src/internals/v6.ts": {
1421
- "version": "49f318f6c79f74c78ad69e2b9bc41d3c61503c0ddb0acbd59480de34ca229adf",
1422
- "signature": "a72d34503d7f8c6383f9c790bf2dc0eb5632aecede931722ec8533c9037f710b"
1461
+ "version": "2acd7dbd0aa7c028f597a68a21cce2b24e9ed4a254a650ed144a162a9653f476",
1462
+ "signature": "0f47c5d42e6526f88680ae26a132a26f9c9a6bca2870018b3c9eaaa236ed2c7f"
1423
1463
  },
1424
1464
  "../src/internals/index.ts": {
1425
- "version": "8bdbe39fe773b405ea146a0c24f05e9076e3e077db0300a5d252ad5077152346",
1426
- "signature": "4cf4241ff35fcbf795831cf65599dc51999e569b729313d8eee29cd3d6e68fbc"
1465
+ "version": "fb1777ce66d6451dc4e6ceca4ebc3cf547156a8a24758affec39bb1e23acf966",
1466
+ "signature": "60c49aaa36553821d12c4dabba54609c41f4254aed660ccaa5cc6495d4b24bd9"
1427
1467
  },
1428
1468
  "../src/GraphQLAPI.ts": {
1429
- "version": "fcbfe3d72cbf74861bbbeab1263aa9ce5e05eead438668b39bc37ef3d9969c99",
1430
- "signature": "a1d545a3fcdb3875893950744ce5980f5612fcc22df50dd60bde9f31fe1bdbc5"
1469
+ "version": "e728905616fa216dfc13c3f044c4f349ff3a534c3849888b6614cf40e2cc899b",
1470
+ "signature": "5db56760293eb5283bccc3ec49e63afe428213aad441147f90fe6e28f655f1a6"
1431
1471
  },
1432
1472
  "../src/index.ts": {
1433
1473
  "version": "98d8433766c112c8658d03649ac495f403979234c503594a7b7baf3b5f8e5a02",
@@ -1455,7 +1495,7 @@
1455
1495
  },
1456
1496
  "../src/utils/resolveCredentials.ts": {
1457
1497
  "version": "22c610d9879b27de3f79333284f54ce4f330b35e930837627cdfc0d276bf8a57",
1458
- "signature": "d56e9d5742bdb7916c1aee7a741bcc0ebd76efb1e9b0b8acacb597e7915e8f36"
1498
+ "signature": "f848a594e5ecbebed6b9e7a2b62c57466dbf0faede2b27e3538a1c7fe2efb2e1"
1459
1499
  },
1460
1500
  "../src/utils/index.ts": {
1461
1501
  "version": "6601832367b2c1359b16db86700174171375fa7d1403c5558910962ce36fa70a",
@@ -1501,6 +1541,7 @@
1501
1541
  "node"
1502
1542
  ],
1503
1543
  "strict": false,
1544
+ "strictNullChecks": true,
1504
1545
  "skipLibCheck": true,
1505
1546
  "module": 1,
1506
1547
  "outDir": "./",
@@ -3183,8 +3224,38 @@
3183
3224
  "../../../node_modules/@types/node/base.d.ts",
3184
3225
  "../../../node_modules/@types/node/index.d.ts"
3185
3226
  ],
3227
+ "../../core/lib-esm/providers/kinesis/types/kinesis.d.ts": [
3228
+ "../../../node_modules/@types/node/base.d.ts",
3229
+ "../../../node_modules/@types/node/index.d.ts"
3230
+ ],
3231
+ "../../core/lib-esm/providers/kinesis/types/index.d.ts": [
3232
+ "../../core/lib-esm/providers/kinesis/types/kinesis.d.ts",
3233
+ "../../../node_modules/@types/node/base.d.ts",
3234
+ "../../../node_modules/@types/node/index.d.ts"
3235
+ ],
3236
+ "../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts": [
3237
+ "../../../node_modules/@types/node/base.d.ts",
3238
+ "../../../node_modules/@types/node/index.d.ts"
3239
+ ],
3240
+ "../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts": [
3241
+ "../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts",
3242
+ "../../../node_modules/@types/node/base.d.ts",
3243
+ "../../../node_modules/@types/node/index.d.ts"
3244
+ ],
3245
+ "../../core/lib-esm/providers/personalize/types/personalize.d.ts": [
3246
+ "../../../node_modules/@types/node/base.d.ts",
3247
+ "../../../node_modules/@types/node/index.d.ts"
3248
+ ],
3249
+ "../../core/lib-esm/providers/personalize/types/index.d.ts": [
3250
+ "../../core/lib-esm/providers/personalize/types/personalize.d.ts",
3251
+ "../../../node_modules/@types/node/base.d.ts",
3252
+ "../../../node_modules/@types/node/index.d.ts"
3253
+ ],
3186
3254
  "../../core/lib-esm/singleton/Analytics/types.d.ts": [
3187
3255
  "../../core/lib-esm/providers/pinpoint/types/index.d.ts",
3256
+ "../../core/lib-esm/providers/kinesis/types/index.d.ts",
3257
+ "../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts",
3258
+ "../../core/lib-esm/providers/personalize/types/index.d.ts",
3188
3259
  "../../../node_modules/@types/node/base.d.ts",
3189
3260
  "../../../node_modules/@types/node/index.d.ts"
3190
3261
  ],
@@ -3560,12 +3631,34 @@
3560
3631
  "../../../node_modules/@types/node/base.d.ts",
3561
3632
  "../../../node_modules/@types/node/index.d.ts"
3562
3633
  ],
3634
+ "../../api-rest/lib-esm/errors/RestApiError.d.ts": [
3635
+ "../../core/lib-esm/libraryUtils.d.ts",
3636
+ "../../../node_modules/@types/node/base.d.ts",
3637
+ "../../../node_modules/@types/node/index.d.ts"
3638
+ ],
3639
+ "../../api-rest/lib-esm/errors/CancelledError.d.ts": [
3640
+ "../../core/lib-esm/libraryUtils.d.ts",
3641
+ "../../api-rest/lib-esm/errors/RestApiError.d.ts",
3642
+ "../../../node_modules/@types/node/base.d.ts",
3643
+ "../../../node_modules/@types/node/index.d.ts"
3644
+ ],
3563
3645
  "../../api-rest/lib-esm/types/index.d.ts": [
3564
3646
  "../../core/lib-esm/libraryUtils.d.ts",
3565
3647
  "../../../node_modules/@types/node/base.d.ts",
3566
3648
  "../../../node_modules/@types/node/index.d.ts"
3567
3649
  ],
3568
- "../../api-rest/lib-esm/common/internalPost.d.ts": [
3650
+ "../../api-rest/lib-esm/apis/index.d.ts": [
3651
+ "../../api-rest/lib-esm/types/index.d.ts",
3652
+ "../../../node_modules/@types/node/base.d.ts",
3653
+ "../../../node_modules/@types/node/index.d.ts"
3654
+ ],
3655
+ "../../api-rest/lib-esm/index.d.ts": [
3656
+ "../../api-rest/lib-esm/errors/CancelledError.d.ts",
3657
+ "../../api-rest/lib-esm/apis/index.d.ts",
3658
+ "../../../node_modules/@types/node/base.d.ts",
3659
+ "../../../node_modules/@types/node/index.d.ts"
3660
+ ],
3661
+ "../../api-rest/lib-esm/apis/common/internalPost.d.ts": [
3569
3662
  "../../core/lib-esm/index.d.ts",
3570
3663
  "../../api-rest/lib-esm/types/index.d.ts",
3571
3664
  "../../../node_modules/@types/node/base.d.ts",
@@ -3573,7 +3666,7 @@
3573
3666
  ],
3574
3667
  "../../api-rest/lib-esm/internals/index.d.ts": [
3575
3668
  "../../api-rest/lib-esm/types/index.d.ts",
3576
- "../../api-rest/lib-esm/common/internalPost.d.ts",
3669
+ "../../api-rest/lib-esm/apis/common/internalPost.d.ts",
3577
3670
  "../../../node_modules/@types/node/base.d.ts",
3578
3671
  "../../../node_modules/@types/node/index.d.ts"
3579
3672
  ],
@@ -3620,6 +3713,7 @@
3620
3713
  "../../core/lib-esm/index.d.ts",
3621
3714
  "../../core/lib-esm/libraryUtils.d.ts",
3622
3715
  "../src/types/index.ts",
3716
+ "../../api-rest/lib-esm/index.d.ts",
3623
3717
  "../../api-rest/lib-esm/internals/index.d.ts",
3624
3718
  "../src/Providers/AWSAppSyncRealTimeProvider/index.ts",
3625
3719
  "../../../node_modules/@types/node/base.d.ts",
@@ -4656,16 +4750,38 @@
4656
4750
  ],
4657
4751
  "../../api-rest/lib-esm/internals/index.d.ts": [
4658
4752
  "../../api-rest/lib-esm/types/index.d.ts",
4659
- "../../api-rest/lib-esm/common/internalPost.d.ts",
4753
+ "../../api-rest/lib-esm/apis/common/internalPost.d.ts",
4660
4754
  "../../../node_modules/@types/node/base.d.ts",
4661
4755
  "../../../node_modules/@types/node/index.d.ts"
4662
4756
  ],
4663
- "../../api-rest/lib-esm/common/internalPost.d.ts": [
4757
+ "../../api-rest/lib-esm/apis/common/internalPost.d.ts": [
4664
4758
  "../../core/lib-esm/index.d.ts",
4665
4759
  "../../api-rest/lib-esm/types/index.d.ts",
4666
4760
  "../../../node_modules/@types/node/base.d.ts",
4667
4761
  "../../../node_modules/@types/node/index.d.ts"
4668
4762
  ],
4763
+ "../../api-rest/lib-esm/apis/index.d.ts": [
4764
+ "../../api-rest/lib-esm/types/index.d.ts",
4765
+ "../../../node_modules/@types/node/base.d.ts",
4766
+ "../../../node_modules/@types/node/index.d.ts"
4767
+ ],
4768
+ "../../api-rest/lib-esm/index.d.ts": [
4769
+ "../../api-rest/lib-esm/errors/CancelledError.d.ts",
4770
+ "../../api-rest/lib-esm/apis/index.d.ts",
4771
+ "../../../node_modules/@types/node/base.d.ts",
4772
+ "../../../node_modules/@types/node/index.d.ts"
4773
+ ],
4774
+ "../../api-rest/lib-esm/errors/CancelledError.d.ts": [
4775
+ "../../core/lib-esm/libraryUtils.d.ts",
4776
+ "../../api-rest/lib-esm/errors/RestApiError.d.ts",
4777
+ "../../../node_modules/@types/node/base.d.ts",
4778
+ "../../../node_modules/@types/node/index.d.ts"
4779
+ ],
4780
+ "../../api-rest/lib-esm/errors/RestApiError.d.ts": [
4781
+ "../../core/lib-esm/libraryUtils.d.ts",
4782
+ "../../../node_modules/@types/node/base.d.ts",
4783
+ "../../../node_modules/@types/node/index.d.ts"
4784
+ ],
4669
4785
  "../../core/lib-esm/utils/isBrowser.d.ts": [
4670
4786
  "../../../node_modules/@types/node/base.d.ts",
4671
4787
  "../../../node_modules/@types/node/index.d.ts"
@@ -4834,6 +4950,9 @@
4834
4950
  ],
4835
4951
  "../../core/lib-esm/singleton/Analytics/types.d.ts": [
4836
4952
  "../../core/lib-esm/providers/pinpoint/types/index.d.ts",
4953
+ "../../core/lib-esm/providers/kinesis/types/index.d.ts",
4954
+ "../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts",
4955
+ "../../core/lib-esm/providers/personalize/types/index.d.ts",
4837
4956
  "../../../node_modules/@types/node/base.d.ts",
4838
4957
  "../../../node_modules/@types/node/index.d.ts"
4839
4958
  ],
@@ -5708,6 +5827,33 @@
5708
5827
  "../../../node_modules/@types/node/base.d.ts",
5709
5828
  "../../../node_modules/@types/node/index.d.ts"
5710
5829
  ],
5830
+ "../../core/lib-esm/providers/personalize/types/index.d.ts": [
5831
+ "../../core/lib-esm/providers/personalize/types/personalize.d.ts",
5832
+ "../../../node_modules/@types/node/base.d.ts",
5833
+ "../../../node_modules/@types/node/index.d.ts"
5834
+ ],
5835
+ "../../core/lib-esm/providers/personalize/types/personalize.d.ts": [
5836
+ "../../../node_modules/@types/node/base.d.ts",
5837
+ "../../../node_modules/@types/node/index.d.ts"
5838
+ ],
5839
+ "../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts": [
5840
+ "../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts",
5841
+ "../../../node_modules/@types/node/base.d.ts",
5842
+ "../../../node_modules/@types/node/index.d.ts"
5843
+ ],
5844
+ "../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts": [
5845
+ "../../../node_modules/@types/node/base.d.ts",
5846
+ "../../../node_modules/@types/node/index.d.ts"
5847
+ ],
5848
+ "../../core/lib-esm/providers/kinesis/types/index.d.ts": [
5849
+ "../../core/lib-esm/providers/kinesis/types/kinesis.d.ts",
5850
+ "../../../node_modules/@types/node/base.d.ts",
5851
+ "../../../node_modules/@types/node/index.d.ts"
5852
+ ],
5853
+ "../../core/lib-esm/providers/kinesis/types/kinesis.d.ts": [
5854
+ "../../../node_modules/@types/node/base.d.ts",
5855
+ "../../../node_modules/@types/node/index.d.ts"
5856
+ ],
5711
5857
  "../../core/lib-esm/singleton/Auth/types.d.ts": [
5712
5858
  "../../../node_modules/@types/node/base.d.ts",
5713
5859
  "../../../node_modules/@types/node/index.d.ts"
@@ -6095,6 +6241,12 @@
6095
6241
  "../../core/lib-esm/singleton/Auth/types.d.ts",
6096
6242
  "../../core/lib-esm/providers/pinpoint/types/pinpoint.d.ts",
6097
6243
  "../../core/lib-esm/providers/pinpoint/types/index.d.ts",
6244
+ "../../core/lib-esm/providers/kinesis/types/kinesis.d.ts",
6245
+ "../../core/lib-esm/providers/kinesis/types/index.d.ts",
6246
+ "../../core/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts",
6247
+ "../../core/lib-esm/providers/kinesis-firehose/types/index.d.ts",
6248
+ "../../core/lib-esm/providers/personalize/types/personalize.d.ts",
6249
+ "../../core/lib-esm/providers/personalize/types/index.d.ts",
6098
6250
  "../../core/lib-esm/singleton/Analytics/types.d.ts",
6099
6251
  "../../core/lib-esm/singleton/Geo/types.d.ts",
6100
6252
  "../../core/lib-esm/singleton/Storage/types.d.ts",
@@ -6162,8 +6314,12 @@
6162
6314
  "../../core/lib-esm/Cache/InMemoryCache.d.ts",
6163
6315
  "../../core/lib-esm/I18n/index.d.ts",
6164
6316
  "../../core/lib-esm/index.d.ts",
6317
+ "../../api-rest/lib-esm/errors/RestApiError.d.ts",
6318
+ "../../api-rest/lib-esm/errors/CancelledError.d.ts",
6165
6319
  "../../api-rest/lib-esm/types/index.d.ts",
6166
- "../../api-rest/lib-esm/common/internalPost.d.ts",
6320
+ "../../api-rest/lib-esm/apis/index.d.ts",
6321
+ "../../api-rest/lib-esm/index.d.ts",
6322
+ "../../api-rest/lib-esm/apis/common/internalPost.d.ts",
6167
6323
  "../../api-rest/lib-esm/internals/index.d.ts",
6168
6324
  "../../../node_modules/@types/uuid/index.d.ts",
6169
6325
  "../src/Providers/constants.ts",
@@ -23,5 +23,5 @@ export declare enum ConnectionState {
23
23
  Disconnected = "Disconnected",
24
24
  ConnectedPendingKeepAlive = "ConnectedPendingKeepAlive"
25
25
  }
26
- export declare type PubSubContent = Record<string, unknown> | string;
26
+ export declare type PubSubContent = Record<string, unknown>;
27
27
  export declare type PubSubContentObserver = Observer<PubSubContent>;
@@ -9,7 +9,7 @@ export { CONTROL_MSG, ConnectionState } from './PubSub';
9
9
  export interface GraphQLOptions {
10
10
  query: string | DocumentNode;
11
11
  variables?: Record<string, DocumentType>;
12
- authMode?: string;
12
+ authMode?: APIAuthMode;
13
13
  authToken?: string;
14
14
  /**
15
15
  * @deprecated This property should not be used
@@ -17,7 +17,7 @@ export interface GraphQLOptions {
17
17
  userAgentSuffix?: string;
18
18
  }
19
19
  export interface GraphQLResult<T = object> {
20
- data?: T;
20
+ data: T;
21
21
  errors?: GraphQLError[];
22
22
  extensions?: {
23
23
  [key: string]: any;
@@ -30,6 +30,66 @@ export declare type GraphQLQuery<T> = T & {
30
30
  export declare type GraphQLSubscription<T> = T & {
31
31
  readonly [queryType]: 'subscription';
32
32
  };
33
+ /**
34
+ * Accepts a code generated model type and returns a supertype that
35
+ * can accept return values from the relevant graphql operations.
36
+ *
37
+ * For example:
38
+ *
39
+ * ```typescript
40
+ * import { GraphQLReturnType } from 'aws-amplify/api';
41
+ * import { MyModel } from './API';
42
+ * import { getMyModel } from './graphql/queries';
43
+ *
44
+ * const [item, setItem] = useState<GraphQLReturnType<MyModel>>();
45
+ * setItem(await client.graphql({ query: getMyModel }).data.getMyModel!)
46
+ * ```
47
+ *
48
+ * Trying to assign the result of a `getMyModel` operation directly to a
49
+ * `MyModel` variables won't necessarily work, because normally-required related
50
+ * models might not be part of the selection set.
51
+ *
52
+ * This util simply makes related model properties optional recursively.
53
+ */
54
+ export declare type GraphQLReturnType<T> = T extends {} ? {
55
+ [K in keyof T]?: GraphQLReturnType<T[K]>;
56
+ } : T;
57
+ /**
58
+ * Describes a paged list result from AppSync, which can either
59
+ * live at the top query or property (e.g., related model) level.
60
+ */
61
+ declare type PagedList<T, TYPENAME> = {
62
+ __typename: TYPENAME;
63
+ nextToken?: string | null | undefined;
64
+ items: Array<T>;
65
+ };
66
+ /**
67
+ * Recursively looks through a result type and removes nulls and
68
+ * and undefined from `PagedList` types.
69
+ *
70
+ * Although a graphql response might contain empty values in an
71
+ * array, this will only be the case when we also have errors,
72
+ * which will then be *thrown*.
73
+ */
74
+ declare type WithListsFixed<T> = T extends PagedList<infer IT, infer NAME> ? PagedList<Exclude<IT, null | undefined>, NAME> : T extends {} ? {
75
+ [K in keyof T]: WithListsFixed<T[K]>;
76
+ } : T;
77
+ /**
78
+ * Returns an updated response type to always return a value.
79
+ */
80
+ declare type NeverEmpty<T> = {
81
+ [K in keyof T]-?: Exclude<WithListsFixed<T[K]>, undefined | null>;
82
+ };
83
+ /**
84
+ * Replaces all list result types in a query result with types to exclude
85
+ * nulls and undefined from list member unions.
86
+ *
87
+ * If empty members are present, there will also be errors present,
88
+ * and the response will instead be *thrown*.
89
+ */
90
+ declare type FixedQueryResult<T> = Exclude<T[keyof T], null | undefined> extends PagedList<any, any> ? {
91
+ [K in keyof T]-?: WithListsFixed<Exclude<T[K], null | undefined>>;
92
+ } : T;
33
93
  /**
34
94
  * The return value from a `graphql({query})` call when `query` is a subscription.
35
95
  *
@@ -68,7 +128,7 @@ export declare type GraphqlSubscriptionResult<T> = Observable<GraphqlSubscriptio
68
128
  * ```
69
129
  */
70
130
  export declare type GraphqlSubscriptionMessage<T> = {
71
- data?: T;
131
+ data: T;
72
132
  };
73
133
  export interface AWSAppSyncRealTimeProviderOptions {
74
134
  appSyncGraphqlEndpoint?: string;
@@ -128,7 +188,7 @@ export declare type GraphQLVariablesV6<FALLBACK_TYPES = unknown, TYPED_GQL_STRIN
128
188
  * The expected return type with respect to the given `FALLBACK_TYPE`
129
189
  * and `TYPED_GQL_STRING`.
130
190
  */
131
- export declare type GraphQLResponseV6<FALLBACK_TYPE = unknown, TYPED_GQL_STRING extends string = string> = TYPED_GQL_STRING extends GeneratedQuery<infer IN, infer QUERY_OUT> ? Promise<GraphQLResult<QUERY_OUT>> : TYPED_GQL_STRING extends GeneratedMutation<infer IN, infer MUTATION_OUT> ? Promise<GraphQLResult<MUTATION_OUT>> : TYPED_GQL_STRING extends GeneratedSubscription<infer IN, infer SUB_OUT> ? GraphqlSubscriptionResult<SUB_OUT> : FALLBACK_TYPE extends GraphQLQuery<infer T> ? Promise<GraphQLResult<FALLBACK_TYPE>> : FALLBACK_TYPE extends GraphQLSubscription<infer T> ? GraphqlSubscriptionResult<FALLBACK_TYPE> : FALLBACK_TYPE extends GraphQLOperationType<infer IN, infer CUSTOM_OUT> ? CUSTOM_OUT : UnknownGraphQLResponse;
191
+ export declare type GraphQLResponseV6<FALLBACK_TYPE = unknown, TYPED_GQL_STRING extends string = string> = TYPED_GQL_STRING extends GeneratedQuery<infer IN, infer QUERY_OUT> ? Promise<GraphQLResult<FixedQueryResult<QUERY_OUT>>> : TYPED_GQL_STRING extends GeneratedMutation<infer IN, infer MUTATION_OUT> ? Promise<GraphQLResult<NeverEmpty<MUTATION_OUT>>> : TYPED_GQL_STRING extends GeneratedSubscription<infer IN, infer SUB_OUT> ? GraphqlSubscriptionResult<NeverEmpty<SUB_OUT>> : FALLBACK_TYPE extends GraphQLQuery<infer T> ? Promise<GraphQLResult<FALLBACK_TYPE>> : FALLBACK_TYPE extends GraphQLSubscription<infer T> ? GraphqlSubscriptionResult<FALLBACK_TYPE> : FALLBACK_TYPE extends GraphQLOperationType<infer IN, infer CUSTOM_OUT> ? CUSTOM_OUT : UnknownGraphQLResponse;
132
192
  /**
133
193
  * The shape customers can use to provide `T` to `graphql<T>()` to specify both
134
194
  * `IN` and `OUT` types (the type of `variables` and the return type, respectively).
@@ -5,8 +5,8 @@ export declare const resolveCredentials: () => Promise<{
5
5
  credentials: {
6
6
  accessKeyId: string;
7
7
  secretAccessKey: string;
8
- sessionToken?: string;
9
- expiration?: Date;
8
+ sessionToken?: string | undefined;
9
+ expiration?: Date | undefined;
10
10
  };
11
- identityId: string;
11
+ identityId: string | undefined;
12
12
  }>;
@@ -1,10 +1,10 @@
1
1
  import { GraphQLOptions, GraphQLResult } from './types';
2
2
  import { InternalGraphQLAPIClass } from './internals';
3
3
  import { Observable } from 'rxjs';
4
- export declare const graphqlOperation: (query: any, variables?: {}, authToken?: string) => {
4
+ export declare const graphqlOperation: (query: any, variables?: {}, authToken?: string | undefined) => {
5
5
  query: any;
6
6
  variables: {};
7
- authToken: string;
7
+ authToken: string | undefined;
8
8
  };
9
9
  /**
10
10
  * Export Cloud Logic APIs
@@ -21,5 +21,17 @@ export declare class GraphQLAPIClass extends InternalGraphQLAPIClass {
21
21
  graphql<T = any>(options: GraphQLOptions, additionalHeaders?: {
22
22
  [key: string]: string;
23
23
  }): Observable<GraphQLResult<T>> | Promise<GraphQLResult<T>>;
24
+ /**
25
+ * Checks to see if an error thrown is from an api request cancellation
26
+ * @param error - Any error
27
+ * @returns A boolean indicating if the error was from an api request cancellation
28
+ */
29
+ isCancelError(error: any): boolean;
30
+ /**
31
+ * Cancels an inflight request. Only applicable for graphql queries and mutations
32
+ * @param {any} request - request to cancel
33
+ * @returns A boolean indicating if the request was cancelled
34
+ */
35
+ cancel(request: Promise<any>, message?: string): boolean;
24
36
  }
25
37
  export declare const GraphQLAPI: GraphQLAPIClass;
@@ -29,6 +29,22 @@ var GraphQLAPIClass = /** @class */ (function (_super) {
29
29
  GraphQLAPIClass.prototype.graphql = function (options, additionalHeaders) {
30
30
  return _super.prototype.graphql.call(this, options, additionalHeaders);
31
31
  };
32
+ /**
33
+ * Checks to see if an error thrown is from an api request cancellation
34
+ * @param error - Any error
35
+ * @returns A boolean indicating if the error was from an api request cancellation
36
+ */
37
+ GraphQLAPIClass.prototype.isCancelError = function (error) {
38
+ return _super.prototype.isCancelError.call(this, error);
39
+ };
40
+ /**
41
+ * Cancels an inflight request. Only applicable for graphql queries and mutations
42
+ * @param {any} request - request to cancel
43
+ * @returns A boolean indicating if the request was cancelled
44
+ */
45
+ GraphQLAPIClass.prototype.cancel = function (request, message) {
46
+ return _super.prototype.cancel.call(this, request, message);
47
+ };
32
48
  return GraphQLAPIClass;
33
49
  }(InternalGraphQLAPIClass));
34
50
  export { GraphQLAPIClass };
@@ -779,6 +779,7 @@ var AWSAppSyncRealTimeProvider = /** @class */ (function () {
779
779
  url: new URL(request.url),
780
780
  body: request.data,
781
781
  }, {
782
+ // TODO: What do we need to do to remove these !'s?
782
783
  credentials: creds,
783
784
  signingRegion: endpointInfo.region,
784
785
  signingService: endpointInfo.service,
@@ -2,10 +2,10 @@ import { OperationTypeNode } from 'graphql';
2
2
  import { Observable } from 'rxjs';
3
3
  import { CustomUserAgentDetails } from '@aws-amplify/core/internals/utils';
4
4
  import { GraphQLResult, GraphQLOperation, GraphQLOptions } from '../types';
5
- export declare const graphqlOperation: (query: any, variables?: {}, authToken?: string) => {
5
+ export declare const graphqlOperation: (query: any, variables?: {}, authToken?: string | undefined) => {
6
6
  query: any;
7
7
  variables: {};
8
- authToken: string;
8
+ authToken: string | undefined;
9
9
  };
10
10
  /**
11
11
  * Export Cloud Logic APIs
@@ -41,6 +41,18 @@ export declare class InternalGraphQLAPIClass {
41
41
  [key: string]: string;
42
42
  }, customUserAgentDetails?: CustomUserAgentDetails): Observable<GraphQLResult<T>> | Promise<GraphQLResult<T>>;
43
43
  private _graphql;
44
+ /**
45
+ * Checks to see if an error thrown is from an api request cancellation
46
+ * @param {any} error - Any error
47
+ * @return {boolean} - A boolean indicating if the error was from an api request cancellation
48
+ */
49
+ isCancelError(error: any): boolean;
50
+ /**
51
+ * Cancels an inflight request. Only applicable for graphql queries and mutations
52
+ * @param {any} request - request to cancel
53
+ * @returns - A boolean indicating if the request was cancelled
54
+ */
55
+ cancel(request: Promise<any>, message?: string): boolean;
44
56
  private _graphqlSubscribe;
45
57
  }
46
58
  export declare const InternalGraphQLAPI: InternalGraphQLAPIClass;