superposition-provider 0.93.0 → 0.93.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -9334,13 +9334,9 @@ function requireAws_restJson1 () {
9334
9334
  });
9335
9335
  b.bp("/context/bulk-operations");
9336
9336
  let body;
9337
- if (input.bulk_operation !== undefined) {
9338
- body = se_BulkOperationReq(input.bulk_operation);
9339
- }
9340
- if (body === undefined) {
9341
- body = {};
9342
- }
9343
- body = JSON.stringify(body);
9337
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
9338
+ 'operations': _ => se_BulkOperationList(_),
9339
+ }));
9344
9340
  b.m("PUT")
9345
9341
  .h(headers)
9346
9342
  .b(body);
@@ -9378,12 +9374,13 @@ function requireAws_restJson1 () {
9378
9374
  });
9379
9375
  b.bp("/context");
9380
9376
  let body;
9381
- body = JSON.stringify((0, smithy_client_1.take)(input, {
9382
- 'change_reason': [],
9383
- 'context': _ => se_Condition(_),
9384
- 'description': [],
9385
- 'override': _ => se_Overrides(_),
9386
- }));
9377
+ if (input.request !== undefined) {
9378
+ body = se_ContextPut(input.request);
9379
+ }
9380
+ if (body === undefined) {
9381
+ body = {};
9382
+ }
9383
+ body = JSON.stringify(body);
9387
9384
  b.m("PUT")
9388
9385
  .h(headers)
9389
9386
  .b(body);
@@ -10280,11 +10277,13 @@ function requireAws_restJson1 () {
10280
10277
  b.bp("/context/move/{id}");
10281
10278
  b.p('id', () => input.id, '{id}', false);
10282
10279
  let body;
10283
- body = JSON.stringify((0, smithy_client_1.take)(input, {
10284
- 'change_reason': [],
10285
- 'context': _ => se_Condition(_),
10286
- 'description': [],
10287
- }));
10280
+ if (input.request !== undefined) {
10281
+ body = se_ContextMove(input.request);
10282
+ }
10283
+ if (body === undefined) {
10284
+ body = {};
10285
+ }
10286
+ body = JSON.stringify(body);
10288
10287
  b.m("PUT")
10289
10288
  .h(headers)
10290
10289
  .b(body);
@@ -10542,7 +10541,7 @@ function requireAws_restJson1 () {
10542
10541
  body = {};
10543
10542
  }
10544
10543
  body = JSON.stringify(body);
10545
- b.m("PUT")
10544
+ b.m("PATCH")
10546
10545
  .h(headers)
10547
10546
  .b(body);
10548
10547
  return b.build();
@@ -10725,8 +10724,11 @@ function requireAws_restJson1 () {
10725
10724
  const contents = (0, smithy_client_1.map)({
10726
10725
  $metadata: deserializeMetadata(output),
10727
10726
  });
10728
- const data = (0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context));
10729
- contents.bulk_operation_output = de_BulkOperationOut(data);
10727
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
10728
+ const doc = (0, smithy_client_1.take)(data, {
10729
+ 'output': _ => de_BulkOperationOutList(_),
10730
+ });
10731
+ Object.assign(contents, doc);
10730
10732
  return contents;
10731
10733
  };
10732
10734
  Aws_restJson1.de_BulkOperationCommand = de_BulkOperationCommand;
@@ -11040,7 +11042,7 @@ function requireAws_restJson1 () {
11040
11042
  };
11041
11043
  Aws_restJson1.de_CreateWorkspaceCommand = de_CreateWorkspaceCommand;
11042
11044
  const de_DeleteContextCommand = async (output, context) => {
11043
- if (output.statusCode !== 201 && output.statusCode >= 300) {
11045
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
11044
11046
  return de_CommandError(output, context);
11045
11047
  }
11046
11048
  const contents = (0, smithy_client_1.map)({
@@ -11051,7 +11053,7 @@ function requireAws_restJson1 () {
11051
11053
  };
11052
11054
  Aws_restJson1.de_DeleteContextCommand = de_DeleteContextCommand;
11053
11055
  const de_DeleteDefaultConfigCommand = async (output, context) => {
11054
- if (output.statusCode !== 201 && output.statusCode >= 300) {
11056
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
11055
11057
  return de_CommandError(output, context);
11056
11058
  }
11057
11059
  const contents = (0, smithy_client_1.map)({
@@ -11062,7 +11064,7 @@ function requireAws_restJson1 () {
11062
11064
  };
11063
11065
  Aws_restJson1.de_DeleteDefaultConfigCommand = de_DeleteDefaultConfigCommand;
11064
11066
  const de_DeleteDimensionCommand = async (output, context) => {
11065
- if (output.statusCode !== 201 && output.statusCode >= 300) {
11067
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
11066
11068
  return de_CommandError(output, context);
11067
11069
  }
11068
11070
  const contents = (0, smithy_client_1.map)({
@@ -11101,7 +11103,7 @@ function requireAws_restJson1 () {
11101
11103
  };
11102
11104
  Aws_restJson1.de_DeleteExperimentGroupCommand = de_DeleteExperimentGroupCommand;
11103
11105
  const de_DeleteFunctionCommand = async (output, context) => {
11104
- if (output.statusCode !== 200 && output.statusCode >= 300) {
11106
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
11105
11107
  return de_CommandError(output, context);
11106
11108
  }
11107
11109
  const contents = (0, smithy_client_1.map)({
@@ -11134,7 +11136,7 @@ function requireAws_restJson1 () {
11134
11136
  };
11135
11137
  Aws_restJson1.de_DeleteTypeTemplatesCommand = de_DeleteTypeTemplatesCommand;
11136
11138
  const de_DeleteWebhookCommand = async (output, context) => {
11137
- if (output.statusCode !== 201 && output.statusCode >= 300) {
11139
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
11138
11140
  return de_CommandError(output, context);
11139
11141
  }
11140
11142
  const contents = (0, smithy_client_1.map)({
@@ -11657,7 +11659,7 @@ function requireAws_restJson1 () {
11657
11659
  });
11658
11660
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
11659
11661
  const doc = (0, smithy_client_1.take)(data, {
11660
- 'data': _ => de_DimensionExtList(_),
11662
+ 'data': _ => de_DimensionList(_),
11661
11663
  'total_items': smithy_client_1.expectInt32,
11662
11664
  'total_pages': smithy_client_1.expectInt32,
11663
11665
  });
@@ -12374,11 +12376,6 @@ function requireAws_restJson1 () {
12374
12376
  return se_ContextAction(entry);
12375
12377
  });
12376
12378
  };
12377
- const se_BulkOperationReq = (input, context) => {
12378
- return (0, smithy_client_1.take)(input, {
12379
- 'operations': _ => se_BulkOperationList(_),
12380
- });
12381
- };
12382
12379
  const se_Condition = (input, context) => {
12383
12380
  return Object.entries(input).reduce((acc, [key, value]) => {
12384
12381
  if (value === null) {
@@ -12391,7 +12388,7 @@ function requireAws_restJson1 () {
12391
12388
  const se_ContextAction = (input, context) => {
12392
12389
  return models_0_1.ContextAction.visit(input, {
12393
12390
  DELETE: value => ({ "DELETE": value }),
12394
- MOVE: value => ({ "MOVE": se_ContextMove(value) }),
12391
+ MOVE: value => ({ "MOVE": se_ContextMoveBulkRequest(value) }),
12395
12392
  PUT: value => ({ "PUT": se_ContextPut(value) }),
12396
12393
  REPLACE: value => ({ "REPLACE": se_UpdateContextOverrideRequest(value) }),
12397
12394
  _: (name, value) => ({ name: value })
@@ -12418,7 +12415,12 @@ function requireAws_restJson1 () {
12418
12415
  'change_reason': [],
12419
12416
  'context': _ => se_Condition(_),
12420
12417
  'description': [],
12418
+ });
12419
+ };
12420
+ const se_ContextMoveBulkRequest = (input, context) => {
12421
+ return (0, smithy_client_1.take)(input, {
12421
12422
  'id': [],
12423
+ 'request': _ => se_ContextMove(_),
12422
12424
  });
12423
12425
  };
12424
12426
  const se_ContextPut = (input, context) => {
@@ -12483,14 +12485,14 @@ function requireAws_restJson1 () {
12483
12485
  'context_id': [],
12484
12486
  'id': [],
12485
12487
  'override_id': [],
12486
- 'overrides': _ => se_Document(_),
12488
+ 'overrides': _ => se_Overrides(_),
12487
12489
  'variant_type': [],
12488
12490
  });
12489
12491
  };
12490
12492
  const se_VariantUpdateRequest = (input, context) => {
12491
12493
  return (0, smithy_client_1.take)(input, {
12492
12494
  'id': [],
12493
- 'overrides': _ => se_Document(_),
12495
+ 'overrides': _ => se_Overrides(_),
12494
12496
  });
12495
12497
  };
12496
12498
  const se_Document = (input, context) => {
@@ -12499,6 +12501,7 @@ function requireAws_restJson1 () {
12499
12501
  const de_AuditLogFull = (output, context) => {
12500
12502
  return (0, smithy_client_1.take)(output, {
12501
12503
  'action': smithy_client_1.expectString,
12504
+ 'id': smithy_client_1.expectString,
12502
12505
  'new_data': (_) => de_Document(_),
12503
12506
  'original_data': (_) => de_Document(_),
12504
12507
  'query': smithy_client_1.expectString,
@@ -12522,11 +12525,6 @@ function requireAws_restJson1 () {
12522
12525
  });
12523
12526
  return retVal;
12524
12527
  };
12525
- const de_BulkOperationOut = (output, context) => {
12526
- return (0, smithy_client_1.take)(output, {
12527
- 'output': (_) => de_BulkOperationOutList(_),
12528
- });
12529
- };
12530
12528
  const de_BulkOperationOutList = (output, context) => {
12531
12529
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
12532
12530
  return de_ContextActionOut((0, core_1.awsExpectUnion)(entry));
@@ -12593,7 +12591,7 @@ function requireAws_restJson1 () {
12593
12591
  'weight': smithy_client_1.expectString,
12594
12592
  });
12595
12593
  };
12596
- const de_DefaultConfigFull = (output, context) => {
12594
+ const de_DefaultConfigResponse = (output, context) => {
12597
12595
  return (0, smithy_client_1.take)(output, {
12598
12596
  'autocomplete_function_name': smithy_client_1.expectString,
12599
12597
  'change_reason': smithy_client_1.expectString,
@@ -12617,34 +12615,34 @@ function requireAws_restJson1 () {
12617
12615
  return acc;
12618
12616
  }, {});
12619
12617
  };
12620
- const de_DimensionExt = (output, context) => {
12618
+ const de_DimensionInfo = (output, context) => {
12621
12619
  return (0, smithy_client_1.take)(output, {
12622
- 'autocomplete_function_name': smithy_client_1.expectString,
12623
- 'change_reason': smithy_client_1.expectString,
12624
- 'created_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12625
- 'created_by': smithy_client_1.expectString,
12626
12620
  'dependency_graph': smithy_client_1._json,
12627
- 'description': smithy_client_1.expectString,
12628
- 'dimension': smithy_client_1.expectString,
12629
12621
  'dimension_type': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
12630
- 'function_name': smithy_client_1.expectString,
12631
- 'last_modified_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12632
- 'last_modified_by': smithy_client_1.expectString,
12633
- 'mandatory': smithy_client_1.expectBoolean,
12634
12622
  'position': smithy_client_1.expectInt32,
12635
12623
  'schema': (_) => de_Object(_),
12636
12624
  });
12637
12625
  };
12638
- const de_DimensionExtList = (output, context) => {
12626
+ const de_DimensionList = (output, context) => {
12639
12627
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
12640
- return de_DimensionExt(entry);
12628
+ return de_DimensionResponse(entry);
12641
12629
  });
12642
12630
  return retVal;
12643
12631
  };
12644
- const de_DimensionInfo = (output, context) => {
12632
+ const de_DimensionResponse = (output, context) => {
12645
12633
  return (0, smithy_client_1.take)(output, {
12634
+ 'autocomplete_function_name': smithy_client_1.expectString,
12635
+ 'change_reason': smithy_client_1.expectString,
12636
+ 'created_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12637
+ 'created_by': smithy_client_1.expectString,
12646
12638
  'dependency_graph': smithy_client_1._json,
12639
+ 'description': smithy_client_1.expectString,
12640
+ 'dimension': smithy_client_1.expectString,
12647
12641
  'dimension_type': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
12642
+ 'function_name': smithy_client_1.expectString,
12643
+ 'last_modified_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12644
+ 'last_modified_by': smithy_client_1.expectString,
12645
+ 'mandatory': smithy_client_1.expectBoolean,
12648
12646
  'position': smithy_client_1.expectInt32,
12649
12647
  'schema': (_) => de_Object(_),
12650
12648
  });
@@ -12735,7 +12733,7 @@ function requireAws_restJson1 () {
12735
12733
  };
12736
12734
  const de_ListDefaultConfigOut = (output, context) => {
12737
12735
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
12738
- return de_DefaultConfigFull(entry);
12736
+ return de_DefaultConfigResponse(entry);
12739
12737
  });
12740
12738
  return retVal;
12741
12739
  };
@@ -12832,7 +12830,7 @@ function requireAws_restJson1 () {
12832
12830
  'context_id': smithy_client_1.expectString,
12833
12831
  'id': smithy_client_1.expectString,
12834
12832
  'override_id': smithy_client_1.expectString,
12835
- 'overrides': (_) => de_Document(_),
12833
+ 'overrides': (_) => de_Overrides(_),
12836
12834
  'variant_type': smithy_client_1.expectString,
12837
12835
  });
12838
12836
  };