@aws-sdk/client-taxsettings 3.1076.0 → 3.1078.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/dist-cjs/index.js +27 -165
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/BatchDeleteTaxRegistrationCommand.js +2 -14
- package/dist-es/commands/BatchGetTaxExemptionsCommand.js +2 -14
- package/dist-es/commands/BatchPutTaxRegistrationCommand.js +2 -14
- package/dist-es/commands/DeleteSupplementalTaxRegistrationCommand.js +2 -14
- package/dist-es/commands/DeleteTaxRegistrationCommand.js +2 -14
- package/dist-es/commands/GetTaxExemptionTypesCommand.js +2 -14
- package/dist-es/commands/GetTaxInheritanceCommand.js +2 -14
- package/dist-es/commands/GetTaxRegistrationCommand.js +2 -14
- package/dist-es/commands/GetTaxRegistrationDocumentCommand.js +2 -14
- package/dist-es/commands/ListSupplementalTaxRegistrationsCommand.js +2 -14
- package/dist-es/commands/ListTaxExemptionsCommand.js +2 -14
- package/dist-es/commands/ListTaxRegistrationsCommand.js +2 -14
- package/dist-es/commands/PutSupplementalTaxRegistrationCommand.js +2 -14
- package/dist-es/commands/PutTaxExemptionCommand.js +2 -14
- package/dist-es/commands/PutTaxInheritanceCommand.js +2 -14
- package/dist-es/commands/PutTaxRegistrationCommand.js +2 -14
- package/dist-es/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/BatchDeleteTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/commands/BatchGetTaxExemptionsCommand.d.ts +3 -8
- package/dist-types/commands/BatchPutTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/commands/DeleteSupplementalTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/commands/DeleteTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/commands/GetTaxExemptionTypesCommand.d.ts +3 -8
- package/dist-types/commands/GetTaxInheritanceCommand.d.ts +3 -8
- package/dist-types/commands/GetTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/commands/GetTaxRegistrationDocumentCommand.d.ts +3 -8
- package/dist-types/commands/ListSupplementalTaxRegistrationsCommand.d.ts +3 -8
- package/dist-types/commands/ListTaxExemptionsCommand.d.ts +3 -8
- package/dist-types/commands/ListTaxRegistrationsCommand.d.ts +3 -8
- package/dist-types/commands/PutSupplementalTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/commands/PutTaxExemptionCommand.d.ts +3 -8
- package/dist-types/commands/PutTaxInheritanceCommand.d.ts +3 -8
- package/dist-types/commands/PutTaxRegistrationCommand.d.ts +3 -8
- package/dist-types/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
- package/dist-types/ts3.4/commands/BatchDeleteTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/BatchGetTaxExemptionsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/BatchPutTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteSupplementalTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/DeleteTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetTaxExemptionTypesCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetTaxInheritanceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/GetTaxRegistrationDocumentCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListSupplementalTaxRegistrationsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTaxExemptionsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/ListTaxRegistrationsCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutSupplementalTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutTaxExemptionCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutTaxInheritanceCommand.d.ts +7 -16
- package/dist-types/ts3.4/commands/PutTaxRegistrationCommand.d.ts +7 -16
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
-
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client,
|
|
4
|
-
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
5
6
|
exports.__Client = Client;
|
|
6
7
|
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
8
|
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
|
|
|
10
11
|
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
12
|
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
13
|
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
-
const { toUtf8, fromUtf8, toBase64, fromBase64,
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
15
|
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
16
|
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
16
18
|
|
|
17
19
|
const defaultTaxSettingsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
20
|
return {
|
|
@@ -67,7 +69,7 @@ const commonParams = {
|
|
|
67
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
68
70
|
};
|
|
69
71
|
|
|
70
|
-
var version = "3.
|
|
72
|
+
var version = "3.1077.0";
|
|
71
73
|
var packageInfo = {
|
|
72
74
|
version: version};
|
|
73
75
|
|
|
@@ -1088,6 +1090,7 @@ const getRuntimeConfig$1 = (config) => {
|
|
|
1088
1090
|
serviceTarget: "TaxSettings",
|
|
1089
1091
|
},
|
|
1090
1092
|
serviceId: config?.serviceId ?? "TaxSettings",
|
|
1093
|
+
sha256: config?.sha256 ?? Sha256,
|
|
1091
1094
|
urlParser: config?.urlParser ?? parseUrl,
|
|
1092
1095
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
1093
1096
|
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
@@ -1121,7 +1124,6 @@ const getRuntimeConfig = (config) => {
|
|
|
1121
1124
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
1122
1125
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
1123
1126
|
}, config),
|
|
1124
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
1125
1127
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
1126
1128
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
1127
1129
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
@@ -1209,196 +1211,56 @@ class TaxSettingsClient extends Client {
|
|
|
1209
1211
|
}
|
|
1210
1212
|
}
|
|
1211
1213
|
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
})
|
|
1218
|
-
.s("TaxSettings", "BatchDeleteTaxRegistration", {})
|
|
1219
|
-
.n("TaxSettingsClient", "BatchDeleteTaxRegistrationCommand")
|
|
1220
|
-
.sc(BatchDeleteTaxRegistration$)
|
|
1221
|
-
.build() {
|
|
1214
|
+
const command = makeBuilder(commonParams, "TaxSettings", "TaxSettingsClient", getEndpointPlugin);
|
|
1215
|
+
const _ep0 = {};
|
|
1216
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
1217
|
+
|
|
1218
|
+
class BatchDeleteTaxRegistrationCommand extends command(_ep0, _mw0, "BatchDeleteTaxRegistration", BatchDeleteTaxRegistration$) {
|
|
1222
1219
|
}
|
|
1223
1220
|
|
|
1224
|
-
class BatchGetTaxExemptionsCommand extends
|
|
1225
|
-
.classBuilder()
|
|
1226
|
-
.ep(commonParams)
|
|
1227
|
-
.m(function (Command, cs, config, o) {
|
|
1228
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1229
|
-
})
|
|
1230
|
-
.s("TaxSettings", "BatchGetTaxExemptions", {})
|
|
1231
|
-
.n("TaxSettingsClient", "BatchGetTaxExemptionsCommand")
|
|
1232
|
-
.sc(BatchGetTaxExemptions$)
|
|
1233
|
-
.build() {
|
|
1221
|
+
class BatchGetTaxExemptionsCommand extends command(_ep0, _mw0, "BatchGetTaxExemptions", BatchGetTaxExemptions$) {
|
|
1234
1222
|
}
|
|
1235
1223
|
|
|
1236
|
-
class BatchPutTaxRegistrationCommand extends
|
|
1237
|
-
.classBuilder()
|
|
1238
|
-
.ep(commonParams)
|
|
1239
|
-
.m(function (Command, cs, config, o) {
|
|
1240
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1241
|
-
})
|
|
1242
|
-
.s("TaxSettings", "BatchPutTaxRegistration", {})
|
|
1243
|
-
.n("TaxSettingsClient", "BatchPutTaxRegistrationCommand")
|
|
1244
|
-
.sc(BatchPutTaxRegistration$)
|
|
1245
|
-
.build() {
|
|
1224
|
+
class BatchPutTaxRegistrationCommand extends command(_ep0, _mw0, "BatchPutTaxRegistration", BatchPutTaxRegistration$) {
|
|
1246
1225
|
}
|
|
1247
1226
|
|
|
1248
|
-
class DeleteSupplementalTaxRegistrationCommand extends
|
|
1249
|
-
.classBuilder()
|
|
1250
|
-
.ep(commonParams)
|
|
1251
|
-
.m(function (Command, cs, config, o) {
|
|
1252
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1253
|
-
})
|
|
1254
|
-
.s("TaxSettings", "DeleteSupplementalTaxRegistration", {})
|
|
1255
|
-
.n("TaxSettingsClient", "DeleteSupplementalTaxRegistrationCommand")
|
|
1256
|
-
.sc(DeleteSupplementalTaxRegistration$)
|
|
1257
|
-
.build() {
|
|
1227
|
+
class DeleteSupplementalTaxRegistrationCommand extends command(_ep0, _mw0, "DeleteSupplementalTaxRegistration", DeleteSupplementalTaxRegistration$) {
|
|
1258
1228
|
}
|
|
1259
1229
|
|
|
1260
|
-
class DeleteTaxRegistrationCommand extends
|
|
1261
|
-
.classBuilder()
|
|
1262
|
-
.ep(commonParams)
|
|
1263
|
-
.m(function (Command, cs, config, o) {
|
|
1264
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1265
|
-
})
|
|
1266
|
-
.s("TaxSettings", "DeleteTaxRegistration", {})
|
|
1267
|
-
.n("TaxSettingsClient", "DeleteTaxRegistrationCommand")
|
|
1268
|
-
.sc(DeleteTaxRegistration$)
|
|
1269
|
-
.build() {
|
|
1230
|
+
class DeleteTaxRegistrationCommand extends command(_ep0, _mw0, "DeleteTaxRegistration", DeleteTaxRegistration$) {
|
|
1270
1231
|
}
|
|
1271
1232
|
|
|
1272
|
-
class GetTaxExemptionTypesCommand extends
|
|
1273
|
-
.classBuilder()
|
|
1274
|
-
.ep(commonParams)
|
|
1275
|
-
.m(function (Command, cs, config, o) {
|
|
1276
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1277
|
-
})
|
|
1278
|
-
.s("TaxSettings", "GetTaxExemptionTypes", {})
|
|
1279
|
-
.n("TaxSettingsClient", "GetTaxExemptionTypesCommand")
|
|
1280
|
-
.sc(GetTaxExemptionTypes$)
|
|
1281
|
-
.build() {
|
|
1233
|
+
class GetTaxExemptionTypesCommand extends command(_ep0, _mw0, "GetTaxExemptionTypes", GetTaxExemptionTypes$) {
|
|
1282
1234
|
}
|
|
1283
1235
|
|
|
1284
|
-
class GetTaxInheritanceCommand extends
|
|
1285
|
-
.classBuilder()
|
|
1286
|
-
.ep(commonParams)
|
|
1287
|
-
.m(function (Command, cs, config, o) {
|
|
1288
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1289
|
-
})
|
|
1290
|
-
.s("TaxSettings", "GetTaxInheritance", {})
|
|
1291
|
-
.n("TaxSettingsClient", "GetTaxInheritanceCommand")
|
|
1292
|
-
.sc(GetTaxInheritance$)
|
|
1293
|
-
.build() {
|
|
1236
|
+
class GetTaxInheritanceCommand extends command(_ep0, _mw0, "GetTaxInheritance", GetTaxInheritance$) {
|
|
1294
1237
|
}
|
|
1295
1238
|
|
|
1296
|
-
class GetTaxRegistrationCommand extends
|
|
1297
|
-
.classBuilder()
|
|
1298
|
-
.ep(commonParams)
|
|
1299
|
-
.m(function (Command, cs, config, o) {
|
|
1300
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1301
|
-
})
|
|
1302
|
-
.s("TaxSettings", "GetTaxRegistration", {})
|
|
1303
|
-
.n("TaxSettingsClient", "GetTaxRegistrationCommand")
|
|
1304
|
-
.sc(GetTaxRegistration$)
|
|
1305
|
-
.build() {
|
|
1239
|
+
class GetTaxRegistrationCommand extends command(_ep0, _mw0, "GetTaxRegistration", GetTaxRegistration$) {
|
|
1306
1240
|
}
|
|
1307
1241
|
|
|
1308
|
-
class GetTaxRegistrationDocumentCommand extends
|
|
1309
|
-
.classBuilder()
|
|
1310
|
-
.ep(commonParams)
|
|
1311
|
-
.m(function (Command, cs, config, o) {
|
|
1312
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1313
|
-
})
|
|
1314
|
-
.s("TaxSettings", "GetTaxRegistrationDocument", {})
|
|
1315
|
-
.n("TaxSettingsClient", "GetTaxRegistrationDocumentCommand")
|
|
1316
|
-
.sc(GetTaxRegistrationDocument$)
|
|
1317
|
-
.build() {
|
|
1242
|
+
class GetTaxRegistrationDocumentCommand extends command(_ep0, _mw0, "GetTaxRegistrationDocument", GetTaxRegistrationDocument$) {
|
|
1318
1243
|
}
|
|
1319
1244
|
|
|
1320
|
-
class ListSupplementalTaxRegistrationsCommand extends
|
|
1321
|
-
.classBuilder()
|
|
1322
|
-
.ep(commonParams)
|
|
1323
|
-
.m(function (Command, cs, config, o) {
|
|
1324
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1325
|
-
})
|
|
1326
|
-
.s("TaxSettings", "ListSupplementalTaxRegistrations", {})
|
|
1327
|
-
.n("TaxSettingsClient", "ListSupplementalTaxRegistrationsCommand")
|
|
1328
|
-
.sc(ListSupplementalTaxRegistrations$)
|
|
1329
|
-
.build() {
|
|
1245
|
+
class ListSupplementalTaxRegistrationsCommand extends command(_ep0, _mw0, "ListSupplementalTaxRegistrations", ListSupplementalTaxRegistrations$) {
|
|
1330
1246
|
}
|
|
1331
1247
|
|
|
1332
|
-
class ListTaxExemptionsCommand extends
|
|
1333
|
-
.classBuilder()
|
|
1334
|
-
.ep(commonParams)
|
|
1335
|
-
.m(function (Command, cs, config, o) {
|
|
1336
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1337
|
-
})
|
|
1338
|
-
.s("TaxSettings", "ListTaxExemptions", {})
|
|
1339
|
-
.n("TaxSettingsClient", "ListTaxExemptionsCommand")
|
|
1340
|
-
.sc(ListTaxExemptions$)
|
|
1341
|
-
.build() {
|
|
1248
|
+
class ListTaxExemptionsCommand extends command(_ep0, _mw0, "ListTaxExemptions", ListTaxExemptions$) {
|
|
1342
1249
|
}
|
|
1343
1250
|
|
|
1344
|
-
class ListTaxRegistrationsCommand extends
|
|
1345
|
-
.classBuilder()
|
|
1346
|
-
.ep(commonParams)
|
|
1347
|
-
.m(function (Command, cs, config, o) {
|
|
1348
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1349
|
-
})
|
|
1350
|
-
.s("TaxSettings", "ListTaxRegistrations", {})
|
|
1351
|
-
.n("TaxSettingsClient", "ListTaxRegistrationsCommand")
|
|
1352
|
-
.sc(ListTaxRegistrations$)
|
|
1353
|
-
.build() {
|
|
1251
|
+
class ListTaxRegistrationsCommand extends command(_ep0, _mw0, "ListTaxRegistrations", ListTaxRegistrations$) {
|
|
1354
1252
|
}
|
|
1355
1253
|
|
|
1356
|
-
class PutSupplementalTaxRegistrationCommand extends
|
|
1357
|
-
.classBuilder()
|
|
1358
|
-
.ep(commonParams)
|
|
1359
|
-
.m(function (Command, cs, config, o) {
|
|
1360
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1361
|
-
})
|
|
1362
|
-
.s("TaxSettings", "PutSupplementalTaxRegistration", {})
|
|
1363
|
-
.n("TaxSettingsClient", "PutSupplementalTaxRegistrationCommand")
|
|
1364
|
-
.sc(PutSupplementalTaxRegistration$)
|
|
1365
|
-
.build() {
|
|
1254
|
+
class PutSupplementalTaxRegistrationCommand extends command(_ep0, _mw0, "PutSupplementalTaxRegistration", PutSupplementalTaxRegistration$) {
|
|
1366
1255
|
}
|
|
1367
1256
|
|
|
1368
|
-
class PutTaxExemptionCommand extends
|
|
1369
|
-
.classBuilder()
|
|
1370
|
-
.ep(commonParams)
|
|
1371
|
-
.m(function (Command, cs, config, o) {
|
|
1372
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1373
|
-
})
|
|
1374
|
-
.s("TaxSettings", "PutTaxExemption", {})
|
|
1375
|
-
.n("TaxSettingsClient", "PutTaxExemptionCommand")
|
|
1376
|
-
.sc(PutTaxExemption$)
|
|
1377
|
-
.build() {
|
|
1257
|
+
class PutTaxExemptionCommand extends command(_ep0, _mw0, "PutTaxExemption", PutTaxExemption$) {
|
|
1378
1258
|
}
|
|
1379
1259
|
|
|
1380
|
-
class PutTaxInheritanceCommand extends
|
|
1381
|
-
.classBuilder()
|
|
1382
|
-
.ep(commonParams)
|
|
1383
|
-
.m(function (Command, cs, config, o) {
|
|
1384
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1385
|
-
})
|
|
1386
|
-
.s("TaxSettings", "PutTaxInheritance", {})
|
|
1387
|
-
.n("TaxSettingsClient", "PutTaxInheritanceCommand")
|
|
1388
|
-
.sc(PutTaxInheritance$)
|
|
1389
|
-
.build() {
|
|
1260
|
+
class PutTaxInheritanceCommand extends command(_ep0, _mw0, "PutTaxInheritance", PutTaxInheritance$) {
|
|
1390
1261
|
}
|
|
1391
1262
|
|
|
1392
|
-
class PutTaxRegistrationCommand extends
|
|
1393
|
-
.classBuilder()
|
|
1394
|
-
.ep(commonParams)
|
|
1395
|
-
.m(function (Command, cs, config, o) {
|
|
1396
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
1397
|
-
})
|
|
1398
|
-
.s("TaxSettings", "PutTaxRegistration", {})
|
|
1399
|
-
.n("TaxSettingsClient", "PutTaxRegistrationCommand")
|
|
1400
|
-
.sc(PutTaxRegistration$)
|
|
1401
|
-
.build() {
|
|
1263
|
+
class PutTaxRegistrationCommand extends command(_ep0, _mw0, "PutTaxRegistration", PutTaxRegistration$) {
|
|
1402
1264
|
}
|
|
1403
1265
|
|
|
1404
1266
|
const paginateListSupplementalTaxRegistrations = createPaginator(TaxSettingsClient, ListSupplementalTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { makeBuilder } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "./endpoint/EndpointParameters";
|
|
4
|
+
export const command = makeBuilder(commonParams, "TaxSettings", "TaxSettingsClient", getEndpointPlugin);
|
|
5
|
+
export const _ep0 = {};
|
|
6
|
+
export const _mw0 = (Command, cs, config, o) => [];
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { BatchDeleteTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class BatchDeleteTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "BatchDeleteTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "BatchDeleteTaxRegistrationCommand")
|
|
14
|
-
.sc(BatchDeleteTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class BatchDeleteTaxRegistrationCommand extends command(_ep0, _mw0, "BatchDeleteTaxRegistration", BatchDeleteTaxRegistration$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { BatchGetTaxExemptions$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class BatchGetTaxExemptionsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "BatchGetTaxExemptions", {})
|
|
13
|
-
.n("TaxSettingsClient", "BatchGetTaxExemptionsCommand")
|
|
14
|
-
.sc(BatchGetTaxExemptions$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class BatchGetTaxExemptionsCommand extends command(_ep0, _mw0, "BatchGetTaxExemptions", BatchGetTaxExemptions$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { BatchPutTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class BatchPutTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "BatchPutTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "BatchPutTaxRegistrationCommand")
|
|
14
|
-
.sc(BatchPutTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class BatchPutTaxRegistrationCommand extends command(_ep0, _mw0, "BatchPutTaxRegistration", BatchPutTaxRegistration$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteSupplementalTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteSupplementalTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "DeleteSupplementalTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "DeleteSupplementalTaxRegistrationCommand")
|
|
14
|
-
.sc(DeleteSupplementalTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteSupplementalTaxRegistrationCommand extends command(_ep0, _mw0, "DeleteSupplementalTaxRegistration", DeleteSupplementalTaxRegistration$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { DeleteTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class DeleteTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "DeleteTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "DeleteTaxRegistrationCommand")
|
|
14
|
-
.sc(DeleteTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class DeleteTaxRegistrationCommand extends command(_ep0, _mw0, "DeleteTaxRegistration", DeleteTaxRegistration$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetTaxExemptionTypes$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetTaxExemptionTypesCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "GetTaxExemptionTypes", {})
|
|
13
|
-
.n("TaxSettingsClient", "GetTaxExemptionTypesCommand")
|
|
14
|
-
.sc(GetTaxExemptionTypes$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetTaxExemptionTypesCommand extends command(_ep0, _mw0, "GetTaxExemptionTypes", GetTaxExemptionTypes$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetTaxInheritance$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetTaxInheritanceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "GetTaxInheritance", {})
|
|
13
|
-
.n("TaxSettingsClient", "GetTaxInheritanceCommand")
|
|
14
|
-
.sc(GetTaxInheritance$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetTaxInheritanceCommand extends command(_ep0, _mw0, "GetTaxInheritance", GetTaxInheritance$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "GetTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "GetTaxRegistrationCommand")
|
|
14
|
-
.sc(GetTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetTaxRegistrationCommand extends command(_ep0, _mw0, "GetTaxRegistration", GetTaxRegistration$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { GetTaxRegistrationDocument$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class GetTaxRegistrationDocumentCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "GetTaxRegistrationDocument", {})
|
|
13
|
-
.n("TaxSettingsClient", "GetTaxRegistrationDocumentCommand")
|
|
14
|
-
.sc(GetTaxRegistrationDocument$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class GetTaxRegistrationDocumentCommand extends command(_ep0, _mw0, "GetTaxRegistrationDocument", GetTaxRegistrationDocument$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListSupplementalTaxRegistrations$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListSupplementalTaxRegistrationsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "ListSupplementalTaxRegistrations", {})
|
|
13
|
-
.n("TaxSettingsClient", "ListSupplementalTaxRegistrationsCommand")
|
|
14
|
-
.sc(ListSupplementalTaxRegistrations$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListSupplementalTaxRegistrationsCommand extends command(_ep0, _mw0, "ListSupplementalTaxRegistrations", ListSupplementalTaxRegistrations$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListTaxExemptions$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListTaxExemptionsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "ListTaxExemptions", {})
|
|
13
|
-
.n("TaxSettingsClient", "ListTaxExemptionsCommand")
|
|
14
|
-
.sc(ListTaxExemptions$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListTaxExemptionsCommand extends command(_ep0, _mw0, "ListTaxExemptions", ListTaxExemptions$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { ListTaxRegistrations$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class ListTaxRegistrationsCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "ListTaxRegistrations", {})
|
|
13
|
-
.n("TaxSettingsClient", "ListTaxRegistrationsCommand")
|
|
14
|
-
.sc(ListTaxRegistrations$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class ListTaxRegistrationsCommand extends command(_ep0, _mw0, "ListTaxRegistrations", ListTaxRegistrations$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { PutSupplementalTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class PutSupplementalTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "PutSupplementalTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "PutSupplementalTaxRegistrationCommand")
|
|
14
|
-
.sc(PutSupplementalTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class PutSupplementalTaxRegistrationCommand extends command(_ep0, _mw0, "PutSupplementalTaxRegistration", PutSupplementalTaxRegistration$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { PutTaxExemption$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class PutTaxExemptionCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "PutTaxExemption", {})
|
|
13
|
-
.n("TaxSettingsClient", "PutTaxExemptionCommand")
|
|
14
|
-
.sc(PutTaxExemption$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class PutTaxExemptionCommand extends command(_ep0, _mw0, "PutTaxExemption", PutTaxExemption$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { PutTaxInheritance$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class PutTaxInheritanceCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "PutTaxInheritance", {})
|
|
13
|
-
.n("TaxSettingsClient", "PutTaxInheritanceCommand")
|
|
14
|
-
.sc(PutTaxInheritance$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class PutTaxInheritanceCommand extends command(_ep0, _mw0, "PutTaxInheritance", PutTaxInheritance$) {
|
|
16
4
|
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
-
import { commonParams } from "../endpoint/EndpointParameters";
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
4
2
|
import { PutTaxRegistration$ } from "../schemas/schemas_0";
|
|
5
|
-
export
|
|
6
|
-
export class PutTaxRegistrationCommand extends $Command
|
|
7
|
-
.classBuilder()
|
|
8
|
-
.ep(commonParams)
|
|
9
|
-
.m(function (Command, cs, config, o) {
|
|
10
|
-
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
-
})
|
|
12
|
-
.s("TaxSettings", "PutTaxRegistration", {})
|
|
13
|
-
.n("TaxSettingsClient", "PutTaxRegistrationCommand")
|
|
14
|
-
.sc(PutTaxRegistration$)
|
|
15
|
-
.build() {
|
|
3
|
+
export class PutTaxRegistrationCommand extends command(_ep0, _mw0, "PutTaxRegistration", PutTaxRegistration$) {
|
|
16
4
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
2
|
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
|
|
4
3
|
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
5
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
23
22
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
23
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
24
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
25
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
26
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
27
|
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
|
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
6
6
|
import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
|
|
7
7
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
|
|
8
|
-
import { calculateBodyLength
|
|
8
|
+
import { calculateBodyLength } from "@smithy/core/serde";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
11
|
export const getRuntimeConfig = (config) => {
|
|
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
35
35
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
36
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
37
|
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
38
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
39
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
40
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|