superposition-provider 0.89.0 → 0.91.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/index.esm.js CHANGED
@@ -9100,7 +9100,7 @@ function requireModels_0 () {
9100
9100
  if (hasRequiredModels_0) return models_0;
9101
9101
  hasRequiredModels_0 = 1;
9102
9102
  Object.defineProperty(models_0, "__esModule", { value: true });
9103
- models_0.WorkspaceNotFound = models_0.WebhookNotFound = models_0.OrganisationNotFound = models_0.Stage = models_0.FunctionExecutionRequest = models_0.ExperimentSortOn = models_0.ExperimentGroupSortOn = models_0.TypeTemplatesNotFound = models_0.FunctionNotFound = models_0.WorkspaceStatus = models_0.Version = models_0.HttpMethod = models_0.OrgStatus = models_0.FunctionTypes = models_0.ContextFilterSortOn = models_0.SortBy = models_0.MergeStrategy = models_0.ExperimentStatusType = models_0.ExperimentType = models_0.ContextActionOut = models_0.ContextAction = models_0.ContextIdentifier = models_0.VariantType = models_0.ResourceNotFound = models_0.InternalServerError = models_0.GroupType = void 0;
9103
+ models_0.WorkspaceNotFound = models_0.WebhookNotFound = models_0.OrganisationNotFound = models_0.Stage = models_0.FunctionExecutionRequest = models_0.ExperimentSortOn = models_0.ExperimentGroupSortOn = models_0.TypeTemplatesNotFound = models_0.FunctionNotFound = models_0.WorkspaceStatus = models_0.Version = models_0.HttpMethod = models_0.OrgStatus = models_0.FunctionTypes = models_0.DimensionType = models_0.ContextFilterSortOn = models_0.SortBy = models_0.DimensionMatchStrategy = models_0.MergeStrategy = models_0.ExperimentStatusType = models_0.ExperimentType = models_0.ContextActionOut = models_0.ContextAction = models_0.ContextIdentifier = models_0.VariantType = models_0.ResourceNotFound = models_0.InternalServerError = models_0.GroupType = void 0;
9104
9104
  const SuperpositionServiceException_1 = requireSuperpositionServiceException();
9105
9105
  models_0.GroupType = {
9106
9106
  SYSTEM_GENERATED: "SYSTEM_GENERATED",
@@ -9189,6 +9189,10 @@ function requireModels_0 () {
9189
9189
  MERGE: "MERGE",
9190
9190
  REPLACE: "REPLACE",
9191
9191
  };
9192
+ models_0.DimensionMatchStrategy = {
9193
+ Exact: "exact",
9194
+ Subset: "subset",
9195
+ };
9192
9196
  models_0.SortBy = {
9193
9197
  Asc: "asc",
9194
9198
  Desc: "desc",
@@ -9198,6 +9202,18 @@ function requireModels_0 () {
9198
9202
  LastModifiedAt: "last_modified_at",
9199
9203
  Weight: "weight",
9200
9204
  };
9205
+ var DimensionType;
9206
+ (function (DimensionType) {
9207
+ DimensionType.visit = (value, visitor) => {
9208
+ if (value.REGULAR !== undefined)
9209
+ return visitor.REGULAR(value.REGULAR);
9210
+ if (value.LOCAL_COHORT !== undefined)
9211
+ return visitor.LOCAL_COHORT(value.LOCAL_COHORT);
9212
+ if (value.REMOTE_COHORT !== undefined)
9213
+ return visitor.REMOTE_COHORT(value.REMOTE_COHORT);
9214
+ return visitor._(value.$unknown[0], value.$unknown[1]);
9215
+ };
9216
+ })(DimensionType || (models_0.DimensionType = DimensionType = {}));
9201
9217
  models_0.FunctionTypes = {
9202
9218
  Autocomplete: "AUTOCOMPLETE",
9203
9219
  Validation: "VALIDATION",
@@ -9470,9 +9486,9 @@ function requireAws_restJson1 () {
9470
9486
  body = JSON.stringify((0, smithy_client_1.take)(input, {
9471
9487
  'autocomplete_function_name': [],
9472
9488
  'change_reason': [],
9473
- 'dependencies': _ => (0, smithy_client_1._json)(_),
9474
9489
  'description': [],
9475
9490
  'dimension': [],
9491
+ 'dimension_type': _ => (0, smithy_client_1._json)(_),
9476
9492
  'function_name': [],
9477
9493
  'position': [],
9478
9494
  'schema': _ => se_Document(_),
@@ -9999,12 +10015,14 @@ function requireAws_restJson1 () {
9999
10015
  const query = (0, smithy_client_1.map)({
10000
10016
  [_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
10001
10017
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
10018
+ [_a]: [() => input.all !== void 0, () => (input[_a].toString())],
10002
10019
  [_p]: [, input[_p]],
10003
10020
  [_so]: [, input[_so]],
10004
10021
  [_sb]: [, input[_sb]],
10005
10022
  [_cb]: [, input[_cb]],
10006
10023
  [_lmb]: [, input[_lmb]],
10007
10024
  [_pl]: [, input[_pl]],
10025
+ [_dms]: [, input[_dms]],
10008
10026
  });
10009
10027
  let body;
10010
10028
  b.m("GET")
@@ -10075,6 +10093,7 @@ function requireAws_restJson1 () {
10075
10093
  [_so]: [, input[_so]],
10076
10094
  [_sb]: [, input[_sb]],
10077
10095
  [_geo]: [() => input.global_experiments_only !== void 0, () => (input[_geo].toString())],
10096
+ [_dms]: [, input[_dms]],
10078
10097
  });
10079
10098
  let body;
10080
10099
  b.m("GET")
@@ -10398,7 +10417,6 @@ function requireAws_restJson1 () {
10398
10417
  body = JSON.stringify((0, smithy_client_1.take)(input, {
10399
10418
  'autocomplete_function_name': [],
10400
10419
  'change_reason': [],
10401
- 'dependencies': _ => (0, smithy_client_1._json)(_),
10402
10420
  'description': [],
10403
10421
  'function_name': [],
10404
10422
  'position': [],
@@ -10759,11 +10777,10 @@ function requireAws_restJson1 () {
10759
10777
  'change_reason': smithy_client_1.expectString,
10760
10778
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
10761
10779
  'created_by': smithy_client_1.expectString,
10762
- 'dependencies': smithy_client_1._json,
10763
10780
  'dependency_graph': _ => de_Object(_),
10764
- 'dependents': smithy_client_1._json,
10765
10781
  'description': smithy_client_1.expectString,
10766
10782
  'dimension': smithy_client_1.expectString,
10783
+ 'dimension_type': _ => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
10767
10784
  'function_name': smithy_client_1.expectString,
10768
10785
  'last_modified_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
10769
10786
  'last_modified_by': smithy_client_1.expectString,
@@ -11114,6 +11131,7 @@ function requireAws_restJson1 () {
11114
11131
  const doc = (0, smithy_client_1.take)(data, {
11115
11132
  'contexts': _ => de_ContextList(_),
11116
11133
  'default_configs': _ => de_Object(_),
11134
+ 'dimensions': _ => de_DimensionData(_),
11117
11135
  'overrides': _ => de_OverridesMap(_),
11118
11136
  });
11119
11137
  Object.assign(contents, doc);
@@ -11199,11 +11217,10 @@ function requireAws_restJson1 () {
11199
11217
  'change_reason': smithy_client_1.expectString,
11200
11218
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11201
11219
  'created_by': smithy_client_1.expectString,
11202
- 'dependencies': smithy_client_1._json,
11203
11220
  'dependency_graph': _ => de_Object(_),
11204
- 'dependents': smithy_client_1._json,
11205
11221
  'description': smithy_client_1.expectString,
11206
11222
  'dimension': smithy_client_1.expectString,
11223
+ 'dimension_type': _ => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
11207
11224
  'function_name': smithy_client_1.expectString,
11208
11225
  'last_modified_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11209
11226
  'last_modified_by': smithy_client_1.expectString,
@@ -11848,11 +11865,10 @@ function requireAws_restJson1 () {
11848
11865
  'change_reason': smithy_client_1.expectString,
11849
11866
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11850
11867
  'created_by': smithy_client_1.expectString,
11851
- 'dependencies': smithy_client_1._json,
11852
11868
  'dependency_graph': _ => de_Object(_),
11853
- 'dependents': smithy_client_1._json,
11854
11869
  'description': smithy_client_1.expectString,
11855
11870
  'dimension': smithy_client_1.expectString,
11871
+ 'dimension_type': _ => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
11856
11872
  'function_name': smithy_client_1.expectString,
11857
11873
  'last_modified_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11858
11874
  'last_modified_by': smithy_client_1.expectString,
@@ -12464,17 +12480,25 @@ function requireAws_restJson1 () {
12464
12480
  'value': (_) => de_Document(_),
12465
12481
  });
12466
12482
  };
12483
+ const de_DimensionData = (output, context) => {
12484
+ return Object.entries(output).reduce((acc, [key, value]) => {
12485
+ if (value === null) {
12486
+ return acc;
12487
+ }
12488
+ acc[key] = de_Document(value);
12489
+ return acc;
12490
+ }, {});
12491
+ };
12467
12492
  const de_DimensionExt = (output, context) => {
12468
12493
  return (0, smithy_client_1.take)(output, {
12469
12494
  'autocomplete_function_name': smithy_client_1.expectString,
12470
12495
  'change_reason': smithy_client_1.expectString,
12471
12496
  'created_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12472
12497
  'created_by': smithy_client_1.expectString,
12473
- 'dependencies': smithy_client_1._json,
12474
12498
  'dependency_graph': (_) => de_Object(_),
12475
- 'dependents': smithy_client_1._json,
12476
12499
  'description': smithy_client_1.expectString,
12477
12500
  'dimension': smithy_client_1.expectString,
12501
+ 'dimension_type': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
12478
12502
  'function_name': smithy_client_1.expectString,
12479
12503
  'last_modified_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12480
12504
  'last_modified_by': smithy_client_1.expectString,
@@ -12759,6 +12783,7 @@ function requireAws_restJson1 () {
12759
12783
  const _cb = "created_by";
12760
12784
  const _ci = "context_id";
12761
12785
  const _ct = "config_tags";
12786
+ const _dms = "dimension_match_strategy";
12762
12787
  const _egi = "experiment_group_ids";
12763
12788
  const _ei = "experiment_ids";
12764
12789
  const _en = "experiment_name";