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.js CHANGED
@@ -9103,7 +9103,7 @@ function requireModels_0 () {
9103
9103
  if (hasRequiredModels_0) return models_0;
9104
9104
  hasRequiredModels_0 = 1;
9105
9105
  Object.defineProperty(models_0, "__esModule", { value: true });
9106
- 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;
9106
+ 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;
9107
9107
  const SuperpositionServiceException_1 = requireSuperpositionServiceException();
9108
9108
  models_0.GroupType = {
9109
9109
  SYSTEM_GENERATED: "SYSTEM_GENERATED",
@@ -9192,6 +9192,10 @@ function requireModels_0 () {
9192
9192
  MERGE: "MERGE",
9193
9193
  REPLACE: "REPLACE",
9194
9194
  };
9195
+ models_0.DimensionMatchStrategy = {
9196
+ Exact: "exact",
9197
+ Subset: "subset",
9198
+ };
9195
9199
  models_0.SortBy = {
9196
9200
  Asc: "asc",
9197
9201
  Desc: "desc",
@@ -9201,6 +9205,18 @@ function requireModels_0 () {
9201
9205
  LastModifiedAt: "last_modified_at",
9202
9206
  Weight: "weight",
9203
9207
  };
9208
+ var DimensionType;
9209
+ (function (DimensionType) {
9210
+ DimensionType.visit = (value, visitor) => {
9211
+ if (value.REGULAR !== undefined)
9212
+ return visitor.REGULAR(value.REGULAR);
9213
+ if (value.LOCAL_COHORT !== undefined)
9214
+ return visitor.LOCAL_COHORT(value.LOCAL_COHORT);
9215
+ if (value.REMOTE_COHORT !== undefined)
9216
+ return visitor.REMOTE_COHORT(value.REMOTE_COHORT);
9217
+ return visitor._(value.$unknown[0], value.$unknown[1]);
9218
+ };
9219
+ })(DimensionType || (models_0.DimensionType = DimensionType = {}));
9204
9220
  models_0.FunctionTypes = {
9205
9221
  Autocomplete: "AUTOCOMPLETE",
9206
9222
  Validation: "VALIDATION",
@@ -9473,9 +9489,9 @@ function requireAws_restJson1 () {
9473
9489
  body = JSON.stringify((0, smithy_client_1.take)(input, {
9474
9490
  'autocomplete_function_name': [],
9475
9491
  'change_reason': [],
9476
- 'dependencies': _ => (0, smithy_client_1._json)(_),
9477
9492
  'description': [],
9478
9493
  'dimension': [],
9494
+ 'dimension_type': _ => (0, smithy_client_1._json)(_),
9479
9495
  'function_name': [],
9480
9496
  'position': [],
9481
9497
  'schema': _ => se_Document(_),
@@ -10002,12 +10018,14 @@ function requireAws_restJson1 () {
10002
10018
  const query = (0, smithy_client_1.map)({
10003
10019
  [_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
10004
10020
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
10021
+ [_a]: [() => input.all !== void 0, () => (input[_a].toString())],
10005
10022
  [_p]: [, input[_p]],
10006
10023
  [_so]: [, input[_so]],
10007
10024
  [_sb]: [, input[_sb]],
10008
10025
  [_cb]: [, input[_cb]],
10009
10026
  [_lmb]: [, input[_lmb]],
10010
10027
  [_pl]: [, input[_pl]],
10028
+ [_dms]: [, input[_dms]],
10011
10029
  });
10012
10030
  let body;
10013
10031
  b.m("GET")
@@ -10078,6 +10096,7 @@ function requireAws_restJson1 () {
10078
10096
  [_so]: [, input[_so]],
10079
10097
  [_sb]: [, input[_sb]],
10080
10098
  [_geo]: [() => input.global_experiments_only !== void 0, () => (input[_geo].toString())],
10099
+ [_dms]: [, input[_dms]],
10081
10100
  });
10082
10101
  let body;
10083
10102
  b.m("GET")
@@ -10401,7 +10420,6 @@ function requireAws_restJson1 () {
10401
10420
  body = JSON.stringify((0, smithy_client_1.take)(input, {
10402
10421
  'autocomplete_function_name': [],
10403
10422
  'change_reason': [],
10404
- 'dependencies': _ => (0, smithy_client_1._json)(_),
10405
10423
  'description': [],
10406
10424
  'function_name': [],
10407
10425
  'position': [],
@@ -10762,11 +10780,10 @@ function requireAws_restJson1 () {
10762
10780
  'change_reason': smithy_client_1.expectString,
10763
10781
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
10764
10782
  'created_by': smithy_client_1.expectString,
10765
- 'dependencies': smithy_client_1._json,
10766
10783
  'dependency_graph': _ => de_Object(_),
10767
- 'dependents': smithy_client_1._json,
10768
10784
  'description': smithy_client_1.expectString,
10769
10785
  'dimension': smithy_client_1.expectString,
10786
+ 'dimension_type': _ => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
10770
10787
  'function_name': smithy_client_1.expectString,
10771
10788
  'last_modified_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
10772
10789
  'last_modified_by': smithy_client_1.expectString,
@@ -11117,6 +11134,7 @@ function requireAws_restJson1 () {
11117
11134
  const doc = (0, smithy_client_1.take)(data, {
11118
11135
  'contexts': _ => de_ContextList(_),
11119
11136
  'default_configs': _ => de_Object(_),
11137
+ 'dimensions': _ => de_DimensionData(_),
11120
11138
  'overrides': _ => de_OverridesMap(_),
11121
11139
  });
11122
11140
  Object.assign(contents, doc);
@@ -11202,11 +11220,10 @@ function requireAws_restJson1 () {
11202
11220
  'change_reason': smithy_client_1.expectString,
11203
11221
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11204
11222
  'created_by': smithy_client_1.expectString,
11205
- 'dependencies': smithy_client_1._json,
11206
11223
  'dependency_graph': _ => de_Object(_),
11207
- 'dependents': smithy_client_1._json,
11208
11224
  'description': smithy_client_1.expectString,
11209
11225
  'dimension': smithy_client_1.expectString,
11226
+ 'dimension_type': _ => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
11210
11227
  'function_name': smithy_client_1.expectString,
11211
11228
  'last_modified_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11212
11229
  'last_modified_by': smithy_client_1.expectString,
@@ -11851,11 +11868,10 @@ function requireAws_restJson1 () {
11851
11868
  'change_reason': smithy_client_1.expectString,
11852
11869
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11853
11870
  'created_by': smithy_client_1.expectString,
11854
- 'dependencies': smithy_client_1._json,
11855
11871
  'dependency_graph': _ => de_Object(_),
11856
- 'dependents': smithy_client_1._json,
11857
11872
  'description': smithy_client_1.expectString,
11858
11873
  'dimension': smithy_client_1.expectString,
11874
+ 'dimension_type': _ => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
11859
11875
  'function_name': smithy_client_1.expectString,
11860
11876
  'last_modified_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11861
11877
  'last_modified_by': smithy_client_1.expectString,
@@ -12467,17 +12483,25 @@ function requireAws_restJson1 () {
12467
12483
  'value': (_) => de_Document(_),
12468
12484
  });
12469
12485
  };
12486
+ const de_DimensionData = (output, context) => {
12487
+ return Object.entries(output).reduce((acc, [key, value]) => {
12488
+ if (value === null) {
12489
+ return acc;
12490
+ }
12491
+ acc[key] = de_Document(value);
12492
+ return acc;
12493
+ }, {});
12494
+ };
12470
12495
  const de_DimensionExt = (output, context) => {
12471
12496
  return (0, smithy_client_1.take)(output, {
12472
12497
  'autocomplete_function_name': smithy_client_1.expectString,
12473
12498
  'change_reason': smithy_client_1.expectString,
12474
12499
  'created_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12475
12500
  'created_by': smithy_client_1.expectString,
12476
- 'dependencies': smithy_client_1._json,
12477
12501
  'dependency_graph': (_) => de_Object(_),
12478
- 'dependents': smithy_client_1._json,
12479
12502
  'description': smithy_client_1.expectString,
12480
12503
  'dimension': smithy_client_1.expectString,
12504
+ 'dimension_type': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
12481
12505
  'function_name': smithy_client_1.expectString,
12482
12506
  'last_modified_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
12483
12507
  'last_modified_by': smithy_client_1.expectString,
@@ -12762,6 +12786,7 @@ function requireAws_restJson1 () {
12762
12786
  const _cb = "created_by";
12763
12787
  const _ci = "context_id";
12764
12788
  const _ct = "config_tags";
12789
+ const _dms = "dimension_match_strategy";
12765
12790
  const _egi = "experiment_group_ids";
12766
12791
  const _ei = "experiment_ids";
12767
12792
  const _en = "experiment_name";