@aws-sdk/client-marketplace-agreement 3.927.0 → 3.929.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 CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class MarketplaceAgreementClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,12 +110,12 @@ class MarketplaceAgreementClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class MarketplaceAgreementServiceException extends smithyClient.ServiceException {
113
+ let MarketplaceAgreementServiceException$1 = class MarketplaceAgreementServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, MarketplaceAgreementServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  exports.AcceptedTerm = void 0;
121
121
  (function (AcceptedTerm) {
@@ -145,7 +145,7 @@ exports.AcceptedTerm = void 0;
145
145
  return visitor._(value.$unknown[0], value.$unknown[1]);
146
146
  };
147
147
  })(exports.AcceptedTerm || (exports.AcceptedTerm = {}));
148
- class AccessDeniedException extends MarketplaceAgreementServiceException {
148
+ let AccessDeniedException$1 = class AccessDeniedException extends MarketplaceAgreementServiceException$1 {
149
149
  name = "AccessDeniedException";
150
150
  $fault = "client";
151
151
  requestId;
@@ -158,7 +158,7 @@ class AccessDeniedException extends MarketplaceAgreementServiceException {
158
158
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
159
159
  this.requestId = opts.requestId;
160
160
  }
161
- }
161
+ };
162
162
  const AgreementStatus = {
163
163
  ACTIVE: "ACTIVE",
164
164
  ARCHIVED: "ARCHIVED",
@@ -170,7 +170,7 @@ const AgreementStatus = {
170
170
  SUPERSEDED: "SUPERSEDED",
171
171
  TERMINATED: "TERMINATED",
172
172
  };
173
- class InternalServerException extends MarketplaceAgreementServiceException {
173
+ let InternalServerException$1 = class InternalServerException extends MarketplaceAgreementServiceException$1 {
174
174
  name = "InternalServerException";
175
175
  $fault = "server";
176
176
  requestId;
@@ -183,11 +183,11 @@ class InternalServerException extends MarketplaceAgreementServiceException {
183
183
  Object.setPrototypeOf(this, InternalServerException.prototype);
184
184
  this.requestId = opts.requestId;
185
185
  }
186
- }
186
+ };
187
187
  const ResourceType = {
188
188
  AGREEMENT: "Agreement",
189
189
  };
190
- class ResourceNotFoundException extends MarketplaceAgreementServiceException {
190
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends MarketplaceAgreementServiceException$1 {
191
191
  name = "ResourceNotFoundException";
192
192
  $fault = "client";
193
193
  requestId;
@@ -204,8 +204,8 @@ class ResourceNotFoundException extends MarketplaceAgreementServiceException {
204
204
  this.resourceId = opts.resourceId;
205
205
  this.resourceType = opts.resourceType;
206
206
  }
207
- }
208
- class ThrottlingException extends MarketplaceAgreementServiceException {
207
+ };
208
+ let ThrottlingException$1 = class ThrottlingException extends MarketplaceAgreementServiceException$1 {
209
209
  name = "ThrottlingException";
210
210
  $fault = "client";
211
211
  requestId;
@@ -218,7 +218,7 @@ class ThrottlingException extends MarketplaceAgreementServiceException {
218
218
  Object.setPrototypeOf(this, ThrottlingException.prototype);
219
219
  this.requestId = opts.requestId;
220
220
  }
221
- }
221
+ };
222
222
  const ValidationExceptionReason = {
223
223
  INVALID_AGREEMENT_ID: "INVALID_AGREEMENT_ID",
224
224
  INVALID_CATALOG: "INVALID_CATALOG",
@@ -232,7 +232,7 @@ const ValidationExceptionReason = {
232
232
  OTHER: "OTHER",
233
233
  UNSUPPORTED_FILTERS: "UNSUPPORTED_FILTERS",
234
234
  };
235
- class ValidationException extends MarketplaceAgreementServiceException {
235
+ let ValidationException$1 = class ValidationException extends MarketplaceAgreementServiceException$1 {
236
236
  name = "ValidationException";
237
237
  $fault = "client";
238
238
  requestId;
@@ -249,330 +249,390 @@ class ValidationException extends MarketplaceAgreementServiceException {
249
249
  this.reason = opts.reason;
250
250
  this.fields = opts.fields;
251
251
  }
252
- }
252
+ };
253
253
  const SortOrder = {
254
254
  ASCENDING: "ASCENDING",
255
255
  DESCENDING: "DESCENDING",
256
256
  };
257
257
 
258
- const se_DescribeAgreementCommand = async (input, context) => {
259
- const headers = sharedHeaders("DescribeAgreement");
260
- let body;
261
- body = JSON.stringify(smithyClient._json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- const se_GetAgreementTermsCommand = async (input, context) => {
265
- const headers = sharedHeaders("GetAgreementTerms");
266
- let body;
267
- body = JSON.stringify(smithyClient._json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- const se_SearchAgreementsCommand = async (input, context) => {
271
- const headers = sharedHeaders("SearchAgreements");
272
- let body;
273
- body = JSON.stringify(smithyClient._json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- const de_DescribeAgreementCommand = async (output, context) => {
277
- if (output.statusCode >= 300) {
278
- return de_CommandError(output, context);
279
- }
280
- const data = await core$1.parseJsonBody(output.body, context);
281
- let contents = {};
282
- contents = de_DescribeAgreementOutput(data);
283
- const response = {
284
- $metadata: deserializeMetadata(output),
285
- ...contents,
286
- };
287
- return response;
288
- };
289
- const de_GetAgreementTermsCommand = async (output, context) => {
290
- if (output.statusCode >= 300) {
291
- return de_CommandError(output, context);
292
- }
293
- const data = await core$1.parseJsonBody(output.body, context);
294
- let contents = {};
295
- contents = de_GetAgreementTermsOutput(data);
296
- const response = {
297
- $metadata: deserializeMetadata(output),
298
- ...contents,
299
- };
300
- return response;
301
- };
302
- const de_SearchAgreementsCommand = async (output, context) => {
303
- if (output.statusCode >= 300) {
304
- return de_CommandError(output, context);
305
- }
306
- const data = await core$1.parseJsonBody(output.body, context);
307
- let contents = {};
308
- contents = de_SearchAgreementsOutput(data);
309
- const response = {
310
- $metadata: deserializeMetadata(output),
311
- ...contents,
312
- };
313
- return response;
314
- };
315
- const de_CommandError = async (output, context) => {
316
- const parsedOutput = {
317
- ...output,
318
- body: await core$1.parseJsonErrorBody(output.body, context),
319
- };
320
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
321
- switch (errorCode) {
322
- case "AccessDeniedException":
323
- case "com.amazonaws.marketplaceagreement#AccessDeniedException":
324
- throw await de_AccessDeniedExceptionRes(parsedOutput);
325
- case "InternalServerException":
326
- case "com.amazonaws.marketplaceagreement#InternalServerException":
327
- throw await de_InternalServerExceptionRes(parsedOutput);
328
- case "ResourceNotFoundException":
329
- case "com.amazonaws.marketplaceagreement#ResourceNotFoundException":
330
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
331
- case "ThrottlingException":
332
- case "com.amazonaws.marketplaceagreement#ThrottlingException":
333
- throw await de_ThrottlingExceptionRes(parsedOutput);
334
- case "ValidationException":
335
- case "com.amazonaws.marketplaceagreement#ValidationException":
336
- throw await de_ValidationExceptionRes(parsedOutput);
337
- default:
338
- const parsedBody = parsedOutput.body;
339
- return throwDefaultError({
340
- output,
341
- parsedBody,
342
- errorCode,
343
- });
344
- }
345
- };
346
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
347
- const body = parsedOutput.body;
348
- const deserialized = smithyClient._json(body);
349
- const exception = new AccessDeniedException({
350
- $metadata: deserializeMetadata(parsedOutput),
351
- ...deserialized,
352
- });
353
- return smithyClient.decorateServiceException(exception, body);
354
- };
355
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
356
- const body = parsedOutput.body;
357
- const deserialized = smithyClient._json(body);
358
- const exception = new InternalServerException({
359
- $metadata: deserializeMetadata(parsedOutput),
360
- ...deserialized,
361
- });
362
- return smithyClient.decorateServiceException(exception, body);
363
- };
364
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
365
- const body = parsedOutput.body;
366
- const deserialized = smithyClient._json(body);
367
- const exception = new ResourceNotFoundException({
368
- $metadata: deserializeMetadata(parsedOutput),
369
- ...deserialized,
370
- });
371
- return smithyClient.decorateServiceException(exception, body);
372
- };
373
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
374
- const body = parsedOutput.body;
375
- const deserialized = smithyClient._json(body);
376
- const exception = new ThrottlingException({
377
- $metadata: deserializeMetadata(parsedOutput),
378
- ...deserialized,
379
- });
380
- return smithyClient.decorateServiceException(exception, body);
381
- };
382
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
383
- const body = parsedOutput.body;
384
- const deserialized = smithyClient._json(body);
385
- const exception = new ValidationException({
386
- $metadata: deserializeMetadata(parsedOutput),
387
- ...deserialized,
388
- });
389
- return smithyClient.decorateServiceException(exception, body);
390
- };
391
- const de_AcceptedTerm = (output, context) => {
392
- if (output.byolPricingTerm != null) {
393
- return {
394
- byolPricingTerm: smithyClient._json(output.byolPricingTerm),
395
- };
396
- }
397
- if (output.configurableUpfrontPricingTerm != null) {
398
- return {
399
- configurableUpfrontPricingTerm: smithyClient._json(output.configurableUpfrontPricingTerm),
400
- };
401
- }
402
- if (output.fixedUpfrontPricingTerm != null) {
403
- return {
404
- fixedUpfrontPricingTerm: smithyClient._json(output.fixedUpfrontPricingTerm),
405
- };
406
- }
407
- if (output.freeTrialPricingTerm != null) {
408
- return {
409
- freeTrialPricingTerm: smithyClient._json(output.freeTrialPricingTerm),
410
- };
411
- }
412
- if (output.legalTerm != null) {
413
- return {
414
- legalTerm: smithyClient._json(output.legalTerm),
415
- };
416
- }
417
- if (output.paymentScheduleTerm != null) {
418
- return {
419
- paymentScheduleTerm: de_PaymentScheduleTerm(output.paymentScheduleTerm),
420
- };
421
- }
422
- if (output.recurringPaymentTerm != null) {
423
- return {
424
- recurringPaymentTerm: smithyClient._json(output.recurringPaymentTerm),
425
- };
426
- }
427
- if (output.renewalTerm != null) {
428
- return {
429
- renewalTerm: smithyClient._json(output.renewalTerm),
430
- };
431
- }
432
- if (output.supportTerm != null) {
433
- return {
434
- supportTerm: smithyClient._json(output.supportTerm),
435
- };
436
- }
437
- if (output.usageBasedPricingTerm != null) {
438
- return {
439
- usageBasedPricingTerm: smithyClient._json(output.usageBasedPricingTerm),
440
- };
441
- }
442
- if (output.validityTerm != null) {
443
- return {
444
- validityTerm: de_ValidityTerm(output.validityTerm),
445
- };
446
- }
447
- return { $unknown: Object.entries(output)[0] };
448
- };
449
- const de_AcceptedTermList = (output, context) => {
450
- const retVal = (output || [])
451
- .filter((e) => e != null)
452
- .map((entry) => {
453
- return de_AcceptedTerm(core$1.awsExpectUnion(entry));
454
- });
455
- return retVal;
456
- };
457
- const de_AgreementViewSummary = (output, context) => {
458
- return smithyClient.take(output, {
459
- acceptanceTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
460
- acceptor: smithyClient._json,
461
- agreementId: smithyClient.expectString,
462
- agreementType: smithyClient.expectString,
463
- endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
464
- proposalSummary: smithyClient._json,
465
- proposer: smithyClient._json,
466
- startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
467
- status: smithyClient.expectString,
468
- });
469
- };
470
- const de_AgreementViewSummaryList = (output, context) => {
471
- const retVal = (output || [])
472
- .filter((e) => e != null)
473
- .map((entry) => {
474
- return de_AgreementViewSummary(entry);
475
- });
476
- return retVal;
477
- };
478
- const de_DescribeAgreementOutput = (output, context) => {
479
- return smithyClient.take(output, {
480
- acceptanceTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
481
- acceptor: smithyClient._json,
482
- agreementId: smithyClient.expectString,
483
- agreementType: smithyClient.expectString,
484
- endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
485
- estimatedCharges: smithyClient._json,
486
- proposalSummary: smithyClient._json,
487
- proposer: smithyClient._json,
488
- startTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
489
- status: smithyClient.expectString,
490
- });
491
- };
492
- const de_GetAgreementTermsOutput = (output, context) => {
493
- return smithyClient.take(output, {
494
- acceptedTerms: (_) => de_AcceptedTermList(_),
495
- nextToken: smithyClient.expectString,
496
- });
497
- };
498
- const de_PaymentScheduleTerm = (output, context) => {
499
- return smithyClient.take(output, {
500
- currencyCode: smithyClient.expectString,
501
- schedule: (_) => de_ScheduleList(_),
502
- type: smithyClient.expectString,
503
- });
504
- };
505
- const de_ScheduleItem = (output, context) => {
506
- return smithyClient.take(output, {
507
- chargeAmount: smithyClient.expectString,
508
- chargeDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
509
- });
510
- };
511
- const de_ScheduleList = (output, context) => {
512
- const retVal = (output || [])
513
- .filter((e) => e != null)
514
- .map((entry) => {
515
- return de_ScheduleItem(entry);
516
- });
517
- return retVal;
518
- };
519
- const de_SearchAgreementsOutput = (output, context) => {
520
- return smithyClient.take(output, {
521
- agreementViewSummaries: (_) => de_AgreementViewSummaryList(_),
522
- nextToken: smithyClient.expectString,
523
- });
524
- };
525
- const de_ValidityTerm = (output, context) => {
526
- return smithyClient.take(output, {
527
- agreementDuration: smithyClient.expectString,
528
- agreementEndDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
529
- agreementStartDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
530
- type: smithyClient.expectString,
531
- });
532
- };
533
- const deserializeMetadata = (output) => ({
534
- httpStatusCode: output.statusCode,
535
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
536
- extendedRequestId: output.headers["x-amz-id-2"],
537
- cfId: output.headers["x-amz-cf-id"],
538
- });
539
- const throwDefaultError = smithyClient.withBaseException(MarketplaceAgreementServiceException);
540
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
541
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
542
- const contents = {
543
- protocol,
544
- hostname,
545
- port,
546
- method: "POST",
547
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
548
- headers,
549
- };
550
- if (body !== undefined) {
551
- contents.body = body;
552
- }
553
- return new protocolHttp.HttpRequest(contents);
554
- };
555
- function sharedHeaders(operation) {
556
- return {
557
- "content-type": "application/x-amz-json-1.0",
558
- "x-amz-target": `AWSMPCommerceService_v20200301.${operation}`,
559
- };
560
- }
258
+ const _A = "Acceptor";
259
+ const _ADE = "AccessDeniedException";
260
+ const _AT = "AcceptedTerm";
261
+ const _ATL = "AcceptedTermList";
262
+ const _AVS = "AgreementViewSummary";
263
+ const _AVSL = "AgreementViewSummaryList";
264
+ const _BPT = "ByolPricingTerm";
265
+ const _C = "Constraints";
266
+ const _CUPT = "ConfigurableUpfrontPricingTerm";
267
+ const _CUPTC = "ConfigurableUpfrontPricingTermConfiguration";
268
+ const _CURCI = "ConfigurableUpfrontRateCardItem";
269
+ const _CURCL = "ConfigurableUpfrontRateCardList";
270
+ const _D = "Dimension";
271
+ const _DA = "DescribeAgreement";
272
+ const _DAI = "DescribeAgreementInput";
273
+ const _DAO = "DescribeAgreementOutput";
274
+ const _DI = "DocumentItem";
275
+ const _DL = "DimensionList";
276
+ const _DLo = "DocumentList";
277
+ const _EC = "EstimatedCharges";
278
+ const _F = "Filter";
279
+ const _FL = "FilterList";
280
+ const _FTPT = "FreeTrialPricingTerm";
281
+ const _FUPT = "FixedUpfrontPricingTerm";
282
+ const _GAT = "GetAgreementTerms";
283
+ const _GATI = "GetAgreementTermsInput";
284
+ const _GATO = "GetAgreementTermsOutput";
285
+ const _GI = "GrantItem";
286
+ const _GL = "GrantList";
287
+ const _ISE = "InternalServerException";
288
+ const _LT = "LegalTerm";
289
+ const _P = "Proposer";
290
+ const _PS = "ProposalSummary";
291
+ const _PST = "PaymentScheduleTerm";
292
+ const _R = "Resource";
293
+ const _RCI = "RateCardItem";
294
+ const _RCL = "RateCardList";
295
+ const _RNFE = "ResourceNotFoundException";
296
+ const _RPT = "RecurringPaymentTerm";
297
+ const _RT = "RenewalTerm";
298
+ const _RTC = "RenewalTermConfiguration";
299
+ const _Re = "Resources";
300
+ const _S = "Selector";
301
+ const _SA = "SearchAgreements";
302
+ const _SAI = "SearchAgreementsInput";
303
+ const _SAO = "SearchAgreementsOutput";
304
+ const _SI = "ScheduleItem";
305
+ const _SL = "ScheduleList";
306
+ const _ST = "SupportTerm";
307
+ const _So = "Sort";
308
+ const _TE = "ThrottlingException";
309
+ const _UBPT = "UsageBasedPricingTerm";
310
+ const _UBRCI = "UsageBasedRateCardItem";
311
+ const _UBRCL = "UsageBasedRateCardList";
312
+ const _VE = "ValidationException";
313
+ const _VEF = "ValidationExceptionField";
314
+ const _VEFL = "ValidationExceptionFieldList";
315
+ const _VT = "ValidityTerm";
316
+ const _a = "acceptor";
317
+ const _aD = "agreementDuration";
318
+ const _aED = "agreementEndDate";
319
+ const _aI = "accountId";
320
+ const _aIg = "agreementId";
321
+ const _aSD = "agreementStartDate";
322
+ const _aT = "acceptanceTime";
323
+ const _aTc = "acceptedTerms";
324
+ const _aTg = "agreementType";
325
+ const _aV = "agreementValue";
326
+ const _aVS = "agreementViewSummaries";
327
+ const _bP = "billingPeriod";
328
+ const _bPT = "byolPricingTerm";
329
+ const _c = "client";
330
+ const _cA = "chargeAmount";
331
+ const _cC = "currencyCode";
332
+ const _cD = "chargeDate";
333
+ const _cUPT = "configurableUpfrontPricingTerm";
334
+ const _ca = "catalog";
335
+ const _co = "configuration";
336
+ const _con = "constraints";
337
+ const _d = "dimensions";
338
+ const _dK = "dimensionKey";
339
+ const _dV = "dimensionValue";
340
+ const _do = "documents";
341
+ const _du = "duration";
342
+ const _e = "error";
343
+ const _eAR = "enableAutoRenew";
344
+ const _eC = "estimatedCharges";
345
+ const _eT = "endTime";
346
+ const _f = "filters";
347
+ const _fTPT = "freeTrialPricingTerm";
348
+ const _fUPT = "fixedUpfrontPricingTerm";
349
+ const _fi = "fields";
350
+ const _g = "grants";
351
+ const _hE = "httpError";
352
+ const _i = "id";
353
+ const _lT = "legalTerm";
354
+ const _m = "message";
355
+ const _mDS = "multipleDimensionSelection";
356
+ const _mQ = "maxQuantity";
357
+ const _mR = "maxResults";
358
+ const _n = "name";
359
+ const _nT = "nextToken";
360
+ const _oI = "offerId";
361
+ const _p = "proposer";
362
+ const _pS = "proposalSummary";
363
+ const _pST = "paymentScheduleTerm";
364
+ const _pr = "price";
365
+ const _qC = "quantityConfiguration";
366
+ const _r = "resources";
367
+ const _rC = "rateCards";
368
+ const _rCa = "rateCard";
369
+ const _rI = "requestId";
370
+ const _rIe = "resourceId";
371
+ const _rP = "refundPolicy";
372
+ const _rPT = "recurringPaymentTerm";
373
+ const _rT = "resourceType";
374
+ const _rTe = "renewalTerm";
375
+ const _re = "reason";
376
+ const _s = "status";
377
+ const _sB = "sortBy";
378
+ const _sO = "sortOrder";
379
+ const _sT = "startTime";
380
+ const _sTu = "supportTerm";
381
+ const _sV = "selectorValue";
382
+ const _sc = "schedule";
383
+ const _se = "selector";
384
+ const _ser = "server";
385
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.marketplaceagreement";
386
+ const _so = "sort";
387
+ const _t = "type";
388
+ const _u = "url";
389
+ const _uBPT = "usageBasedPricingTerm";
390
+ const _v = "version";
391
+ const _vT = "validityTerm";
392
+ const _va = "values";
393
+ const _val = "value";
394
+ const n0 = "com.amazonaws.marketplaceagreement";
395
+ var Acceptor = [3, n0, _A, 0, [_aI], [0]];
396
+ var AccessDeniedException = [
397
+ -3,
398
+ n0,
399
+ _ADE,
400
+ {
401
+ [_e]: _c,
402
+ [_hE]: 403,
403
+ },
404
+ [_rI, _m],
405
+ [0, 0],
406
+ ];
407
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
408
+ var AgreementViewSummary = [
409
+ 3,
410
+ n0,
411
+ _AVS,
412
+ 0,
413
+ [_aIg, _aT, _sT, _eT, _aTg, _a, _p, _pS, _s],
414
+ [0, 4, 4, 4, 0, () => Acceptor, () => Proposer, () => ProposalSummary, 0],
415
+ ];
416
+ var ByolPricingTerm = [3, n0, _BPT, 0, [_t], [0]];
417
+ var ConfigurableUpfrontPricingTerm = [
418
+ 3,
419
+ n0,
420
+ _CUPT,
421
+ 0,
422
+ [_t, _cC, _rC, _co],
423
+ [0, 0, () => ConfigurableUpfrontRateCardList, () => ConfigurableUpfrontPricingTermConfiguration],
424
+ ];
425
+ var ConfigurableUpfrontPricingTermConfiguration = [
426
+ 3,
427
+ n0,
428
+ _CUPTC,
429
+ 0,
430
+ [_sV, _d],
431
+ [0, () => DimensionList],
432
+ ];
433
+ var ConfigurableUpfrontRateCardItem = [
434
+ 3,
435
+ n0,
436
+ _CURCI,
437
+ 0,
438
+ [_se, _con, _rCa],
439
+ [() => Selector, () => Constraints, () => RateCardList],
440
+ ];
441
+ var Constraints = [3, n0, _C, 0, [_mDS, _qC], [0, 0]];
442
+ var DescribeAgreementInput = [3, n0, _DAI, 0, [_aIg], [0]];
443
+ var DescribeAgreementOutput = [
444
+ 3,
445
+ n0,
446
+ _DAO,
447
+ 0,
448
+ [_aIg, _a, _p, _sT, _eT, _aT, _aTg, _eC, _pS, _s],
449
+ [0, () => Acceptor, () => Proposer, 4, 4, 4, 0, () => EstimatedCharges, () => ProposalSummary, 0],
450
+ ];
451
+ var Dimension = [3, n0, _D, 0, [_dK, _dV], [0, 1]];
452
+ var DocumentItem = [3, n0, _DI, 0, [_t, _u, _v], [0, 0, 0]];
453
+ var EstimatedCharges = [3, n0, _EC, 0, [_cC, _aV], [0, 0]];
454
+ var Filter = [3, n0, _F, 0, [_n, _va], [0, 64 | 0]];
455
+ var FixedUpfrontPricingTerm = [
456
+ 3,
457
+ n0,
458
+ _FUPT,
459
+ 0,
460
+ [_t, _cC, _du, _pr, _g],
461
+ [0, 0, 0, 0, () => GrantList],
462
+ ];
463
+ var FreeTrialPricingTerm = [3, n0, _FTPT, 0, [_t, _du, _g], [0, 0, () => GrantList]];
464
+ var GetAgreementTermsInput = [3, n0, _GATI, 0, [_aIg, _mR, _nT], [0, 1, 0]];
465
+ var GetAgreementTermsOutput = [3, n0, _GATO, 0, [_aTc, _nT], [() => AcceptedTermList, 0]];
466
+ var GrantItem = [3, n0, _GI, 0, [_dK, _mQ], [0, 1]];
467
+ var InternalServerException = [
468
+ -3,
469
+ n0,
470
+ _ISE,
471
+ {
472
+ [_e]: _ser,
473
+ [_hE]: 500,
474
+ },
475
+ [_rI, _m],
476
+ [0, 0],
477
+ ];
478
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
479
+ var LegalTerm = [3, n0, _LT, 0, [_t, _do], [0, () => DocumentList]];
480
+ var PaymentScheduleTerm = [3, n0, _PST, 0, [_t, _cC, _sc], [0, 0, () => ScheduleList]];
481
+ var ProposalSummary = [3, n0, _PS, 0, [_r, _oI], [() => Resources, 0]];
482
+ var Proposer = [3, n0, _P, 0, [_aI], [0]];
483
+ var RateCardItem = [3, n0, _RCI, 0, [_dK, _pr], [0, 0]];
484
+ var RecurringPaymentTerm = [3, n0, _RPT, 0, [_t, _cC, _bP, _pr], [0, 0, 0, 0]];
485
+ var RenewalTerm = [3, n0, _RT, 0, [_t, _co], [0, () => RenewalTermConfiguration]];
486
+ var RenewalTermConfiguration = [3, n0, _RTC, 0, [_eAR], [2]];
487
+ var Resource = [3, n0, _R, 0, [_i, _t], [0, 0]];
488
+ var ResourceNotFoundException = [
489
+ -3,
490
+ n0,
491
+ _RNFE,
492
+ {
493
+ [_e]: _c,
494
+ [_hE]: 404,
495
+ },
496
+ [_rI, _m, _rIe, _rT],
497
+ [0, 0, 0, 0],
498
+ ];
499
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
500
+ var ScheduleItem = [3, n0, _SI, 0, [_cD, _cA], [4, 0]];
501
+ var SearchAgreementsInput = [
502
+ 3,
503
+ n0,
504
+ _SAI,
505
+ 0,
506
+ [_ca, _f, _so, _mR, _nT],
507
+ [0, () => FilterList, () => Sort, 1, 0],
508
+ ];
509
+ var SearchAgreementsOutput = [
510
+ 3,
511
+ n0,
512
+ _SAO,
513
+ 0,
514
+ [_aVS, _nT],
515
+ [() => AgreementViewSummaryList, 0],
516
+ ];
517
+ var Selector = [3, n0, _S, 0, [_t, _val], [0, 0]];
518
+ var Sort = [3, n0, _So, 0, [_sB, _sO], [0, 0]];
519
+ var SupportTerm = [3, n0, _ST, 0, [_t, _rP], [0, 0]];
520
+ var ThrottlingException = [
521
+ -3,
522
+ n0,
523
+ _TE,
524
+ {
525
+ [_e]: _c,
526
+ [_hE]: 429,
527
+ },
528
+ [_rI, _m],
529
+ [0, 0],
530
+ ];
531
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
532
+ var UsageBasedPricingTerm = [
533
+ 3,
534
+ n0,
535
+ _UBPT,
536
+ 0,
537
+ [_t, _cC, _rC],
538
+ [0, 0, () => UsageBasedRateCardList],
539
+ ];
540
+ var UsageBasedRateCardItem = [3, n0, _UBRCI, 0, [_rCa], [() => RateCardList]];
541
+ var ValidationException = [
542
+ -3,
543
+ n0,
544
+ _VE,
545
+ {
546
+ [_e]: _c,
547
+ [_hE]: 400,
548
+ },
549
+ [_rI, _m, _re, _fi],
550
+ [0, 0, 0, () => ValidationExceptionFieldList],
551
+ ];
552
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
553
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
554
+ var ValidityTerm = [3, n0, _VT, 0, [_t, _aD, _aSD, _aED], [0, 0, 4, 4]];
555
+ var MarketplaceAgreementServiceException = [
556
+ -3,
557
+ _sm,
558
+ "MarketplaceAgreementServiceException",
559
+ 0,
560
+ [],
561
+ [],
562
+ ];
563
+ schema.TypeRegistry.for(_sm).registerError(MarketplaceAgreementServiceException, MarketplaceAgreementServiceException$1);
564
+ var AcceptedTermList = [1, n0, _ATL, 0, () => AcceptedTerm];
565
+ var AgreementViewSummaryList = [1, n0, _AVSL, 0, () => AgreementViewSummary];
566
+ var ConfigurableUpfrontRateCardList = [
567
+ 1,
568
+ n0,
569
+ _CURCL,
570
+ 0,
571
+ () => ConfigurableUpfrontRateCardItem,
572
+ ];
573
+ var DimensionList = [1, n0, _DL, 0, () => Dimension];
574
+ var DocumentList = [1, n0, _DLo, 0, () => DocumentItem];
575
+ var FilterList = [1, n0, _FL, 0, () => Filter];
576
+ var GrantList = [1, n0, _GL, 0, () => GrantItem];
577
+ var RateCardList = [1, n0, _RCL, 0, () => RateCardItem];
578
+ var Resources = [1, n0, _Re, 0, () => Resource];
579
+ var ScheduleList = [1, n0, _SL, 0, () => ScheduleItem];
580
+ var UsageBasedRateCardList = [1, n0, _UBRCL, 0, () => UsageBasedRateCardItem];
581
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
582
+ var AcceptedTerm = [
583
+ 3,
584
+ n0,
585
+ _AT,
586
+ 0,
587
+ [_lT, _sTu, _rTe, _uBPT, _cUPT, _bPT, _rPT, _vT, _pST, _fTPT, _fUPT],
588
+ [
589
+ () => LegalTerm,
590
+ () => SupportTerm,
591
+ () => RenewalTerm,
592
+ () => UsageBasedPricingTerm,
593
+ () => ConfigurableUpfrontPricingTerm,
594
+ () => ByolPricingTerm,
595
+ () => RecurringPaymentTerm,
596
+ () => ValidityTerm,
597
+ () => PaymentScheduleTerm,
598
+ () => FreeTrialPricingTerm,
599
+ () => FixedUpfrontPricingTerm,
600
+ ],
601
+ ];
602
+ var DescribeAgreement = [
603
+ 9,
604
+ n0,
605
+ _DA,
606
+ 0,
607
+ () => DescribeAgreementInput,
608
+ () => DescribeAgreementOutput,
609
+ ];
610
+ var GetAgreementTerms = [
611
+ 9,
612
+ n0,
613
+ _GAT,
614
+ 0,
615
+ () => GetAgreementTermsInput,
616
+ () => GetAgreementTermsOutput,
617
+ ];
618
+ var SearchAgreements = [
619
+ 9,
620
+ n0,
621
+ _SA,
622
+ 0,
623
+ () => SearchAgreementsInput,
624
+ () => SearchAgreementsOutput,
625
+ ];
561
626
 
562
627
  class DescribeAgreementCommand extends smithyClient.Command
563
628
  .classBuilder()
564
629
  .ep(commonParams)
565
630
  .m(function (Command, cs, config, o) {
566
- return [
567
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
568
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
569
- ];
631
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
570
632
  })
571
633
  .s("AWSMPCommerceService_v20200301", "DescribeAgreement", {})
572
634
  .n("MarketplaceAgreementClient", "DescribeAgreementCommand")
573
- .f(void 0, void 0)
574
- .ser(se_DescribeAgreementCommand)
575
- .de(de_DescribeAgreementCommand)
635
+ .sc(DescribeAgreement)
576
636
  .build() {
577
637
  }
578
638
 
@@ -580,16 +640,11 @@ class GetAgreementTermsCommand extends smithyClient.Command
580
640
  .classBuilder()
581
641
  .ep(commonParams)
582
642
  .m(function (Command, cs, config, o) {
583
- return [
584
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
585
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
586
- ];
643
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
587
644
  })
588
645
  .s("AWSMPCommerceService_v20200301", "GetAgreementTerms", {})
589
646
  .n("MarketplaceAgreementClient", "GetAgreementTermsCommand")
590
- .f(void 0, void 0)
591
- .ser(se_GetAgreementTermsCommand)
592
- .de(de_GetAgreementTermsCommand)
647
+ .sc(GetAgreementTerms)
593
648
  .build() {
594
649
  }
595
650
 
@@ -597,16 +652,11 @@ class SearchAgreementsCommand extends smithyClient.Command
597
652
  .classBuilder()
598
653
  .ep(commonParams)
599
654
  .m(function (Command, cs, config, o) {
600
- return [
601
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
602
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
603
- ];
655
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
604
656
  })
605
657
  .s("AWSMPCommerceService_v20200301", "SearchAgreements", {})
606
658
  .n("MarketplaceAgreementClient", "SearchAgreementsCommand")
607
- .f(void 0, void 0)
608
- .ser(se_SearchAgreementsCommand)
609
- .de(de_SearchAgreementsCommand)
659
+ .sc(SearchAgreements)
610
660
  .build() {
611
661
  }
612
662
 
@@ -631,20 +681,20 @@ Object.defineProperty(exports, "__Client", {
631
681
  enumerable: true,
632
682
  get: function () { return smithyClient.Client; }
633
683
  });
634
- exports.AccessDeniedException = AccessDeniedException;
684
+ exports.AccessDeniedException = AccessDeniedException$1;
635
685
  exports.AgreementStatus = AgreementStatus;
636
686
  exports.DescribeAgreementCommand = DescribeAgreementCommand;
637
687
  exports.GetAgreementTermsCommand = GetAgreementTermsCommand;
638
- exports.InternalServerException = InternalServerException;
688
+ exports.InternalServerException = InternalServerException$1;
639
689
  exports.MarketplaceAgreement = MarketplaceAgreement;
640
690
  exports.MarketplaceAgreementClient = MarketplaceAgreementClient;
641
- exports.MarketplaceAgreementServiceException = MarketplaceAgreementServiceException;
642
- exports.ResourceNotFoundException = ResourceNotFoundException;
691
+ exports.MarketplaceAgreementServiceException = MarketplaceAgreementServiceException$1;
692
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
643
693
  exports.ResourceType = ResourceType;
644
694
  exports.SearchAgreementsCommand = SearchAgreementsCommand;
645
695
  exports.SortOrder = SortOrder;
646
- exports.ThrottlingException = ThrottlingException;
647
- exports.ValidationException = ValidationException;
696
+ exports.ThrottlingException = ThrottlingException$1;
697
+ exports.ValidationException = ValidationException$1;
648
698
  exports.ValidationExceptionReason = ValidationExceptionReason;
649
699
  exports.paginateGetAgreementTerms = paginateGetAgreementTerms;
650
700
  exports.paginateSearchAgreements = paginateSearchAgreements;