superposition-provider 0.113.0 → 0.115.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 +48 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +48 -2
- package/dist/index.js.map +1 -1
- package/dist/native-lib/libsuperposition_core-aarch64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-pc-windows-msvc.dll +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-unknown-linux-gnu.so +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3183,7 +3183,7 @@ var runtimeConfig = {};
|
|
|
3183
3183
|
|
|
3184
3184
|
var name = "superposition-sdk";
|
|
3185
3185
|
var description = "superposition-sdk client";
|
|
3186
|
-
var version = "0.
|
|
3186
|
+
var version = "0.115.0";
|
|
3187
3187
|
var repository = {
|
|
3188
3188
|
type: "git",
|
|
3189
3189
|
url: "git+https://github.com/juspay/superposition.git"
|
|
@@ -8802,7 +8802,7 @@ function requireModels_0 () {
|
|
|
8802
8802
|
if (hasRequiredModels_0) return models_0;
|
|
8803
8803
|
hasRequiredModels_0 = 1;
|
|
8804
8804
|
Object.defineProperty(models_0, "__esModule", { value: true });
|
|
8805
|
-
models_0.VariableSortOn = models_0.SecretSortOn = models_0.Stage = models_0.FunctionExecutionRequest = models_0.ExperimentSortOn = models_0.ExperimentGroupSortOn = models_0.WorkspaceStatus = models_0.Version = models_0.HttpMethod = models_0.OrgStatus = models_0.FunctionRuntimeVersion = models_0.FunctionTypes = models_0.ContextFilterSortOn = models_0.DimensionMatchStrategy = models_0.MergeStrategy = models_0.DimensionType = models_0.ExperimentStatusType = models_0.ExperimentType = models_0.WebhookFailed = models_0.ContextActionOut = models_0.ContextAction = models_0.ContextIdentifier = models_0.SortBy = models_0.AuditAction = models_0.VariantType = models_0.ResourceNotFound = models_0.InternalServerError = models_0.GroupType = void 0;
|
|
8805
|
+
models_0.VariableSortOn = models_0.SecretSortOn = models_0.Stage = models_0.FunctionExecutionRequest = models_0.ExperimentSortOn = models_0.ExperimentGroupSortOn = models_0.WorkspaceStatus = models_0.Version = models_0.HttpMethod = models_0.OrgStatus = models_0.FunctionRuntimeVersion = models_0.FunctionTypes = models_0.WorkspaceLockConflict = models_0.ContextFilterSortOn = models_0.DimensionMatchStrategy = models_0.MergeStrategy = models_0.DimensionType = models_0.ExperimentStatusType = models_0.ExperimentType = models_0.WebhookFailed = models_0.ContextActionOut = models_0.ContextAction = models_0.ContextIdentifier = models_0.SortBy = models_0.AuditAction = models_0.VariantType = models_0.ResourceNotFound = models_0.InternalServerError = models_0.GroupType = void 0;
|
|
8806
8806
|
const SuperpositionServiceException_1 = requireSuperpositionServiceException();
|
|
8807
8807
|
models_0.GroupType = {
|
|
8808
8808
|
SYSTEM_GENERATED: "SYSTEM_GENERATED",
|
|
@@ -8937,6 +8937,21 @@ function requireModels_0 () {
|
|
|
8937
8937
|
LAST_MODIFIED_AT: "last_modified_at",
|
|
8938
8938
|
WEIGHT: "weight",
|
|
8939
8939
|
};
|
|
8940
|
+
class WorkspaceLockConflict extends SuperpositionServiceException_1.SuperpositionServiceException {
|
|
8941
|
+
name = "WorkspaceLockConflict";
|
|
8942
|
+
$fault = "client";
|
|
8943
|
+
lock;
|
|
8944
|
+
constructor(opts) {
|
|
8945
|
+
super({
|
|
8946
|
+
name: "WorkspaceLockConflict",
|
|
8947
|
+
$fault: "client",
|
|
8948
|
+
...opts
|
|
8949
|
+
});
|
|
8950
|
+
Object.setPrototypeOf(this, WorkspaceLockConflict.prototype);
|
|
8951
|
+
this.lock = opts.lock;
|
|
8952
|
+
}
|
|
8953
|
+
}
|
|
8954
|
+
models_0.WorkspaceLockConflict = WorkspaceLockConflict;
|
|
8940
8955
|
models_0.FunctionTypes = {
|
|
8941
8956
|
CHANGE_REASON_VALIDATION: "CHANGE_REASON_VALIDATION",
|
|
8942
8957
|
CONTEXT_VALIDATION: "CONTEXT_VALIDATION",
|
|
@@ -11185,6 +11200,7 @@ function requireAws_restJson1 () {
|
|
|
11185
11200
|
'organisation_id': smithy_client_1.expectString,
|
|
11186
11201
|
'organisation_name': smithy_client_1.expectString,
|
|
11187
11202
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
11203
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
11188
11204
|
'workspace_name': smithy_client_1.expectString,
|
|
11189
11205
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
11190
11206
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -11903,6 +11919,7 @@ function requireAws_restJson1 () {
|
|
|
11903
11919
|
'organisation_id': smithy_client_1.expectString,
|
|
11904
11920
|
'organisation_name': smithy_client_1.expectString,
|
|
11905
11921
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
11922
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
11906
11923
|
'workspace_name': smithy_client_1.expectString,
|
|
11907
11924
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
11908
11925
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -12157,6 +12174,7 @@ function requireAws_restJson1 () {
|
|
|
12157
12174
|
'organisation_id': smithy_client_1.expectString,
|
|
12158
12175
|
'organisation_name': smithy_client_1.expectString,
|
|
12159
12176
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
12177
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
12160
12178
|
'workspace_name': smithy_client_1.expectString,
|
|
12161
12179
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
12162
12180
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -12707,6 +12725,7 @@ function requireAws_restJson1 () {
|
|
|
12707
12725
|
'organisation_id': smithy_client_1.expectString,
|
|
12708
12726
|
'organisation_name': smithy_client_1.expectString,
|
|
12709
12727
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
12728
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
12710
12729
|
'workspace_name': smithy_client_1.expectString,
|
|
12711
12730
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
12712
12731
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -12757,6 +12776,9 @@ function requireAws_restJson1 () {
|
|
|
12757
12776
|
case "WebhookFailed":
|
|
12758
12777
|
case "io.superposition#WebhookFailed":
|
|
12759
12778
|
throw await de_WebhookFailedRes(parsedOutput);
|
|
12779
|
+
case "WorkspaceLockConflict":
|
|
12780
|
+
case "io.superposition#WorkspaceLockConflict":
|
|
12781
|
+
throw await de_WorkspaceLockConflictRes(parsedOutput);
|
|
12760
12782
|
default:
|
|
12761
12783
|
const parsedBody = parsedOutput.body;
|
|
12762
12784
|
return throwDefaultError({
|
|
@@ -12804,6 +12826,20 @@ function requireAws_restJson1 () {
|
|
|
12804
12826
|
});
|
|
12805
12827
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
12806
12828
|
};
|
|
12829
|
+
const de_WorkspaceLockConflictRes = async (parsedOutput, context) => {
|
|
12830
|
+
const contents = (0, smithy_client_1.map)({});
|
|
12831
|
+
const data = parsedOutput.body;
|
|
12832
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
12833
|
+
'lock': _ => de_WorkspaceLock(_),
|
|
12834
|
+
'message': smithy_client_1.expectString,
|
|
12835
|
+
});
|
|
12836
|
+
Object.assign(contents, doc);
|
|
12837
|
+
const exception = new models_0_1.WorkspaceLockConflict({
|
|
12838
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
12839
|
+
...contents
|
|
12840
|
+
});
|
|
12841
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
12842
|
+
};
|
|
12807
12843
|
const se_BulkOperationList = (input, context) => {
|
|
12808
12844
|
return input.filter((e) => e != null).map(entry => {
|
|
12809
12845
|
return se_ContextAction(entry);
|
|
@@ -13394,6 +13430,15 @@ function requireAws_restJson1 () {
|
|
|
13394
13430
|
});
|
|
13395
13431
|
return retVal;
|
|
13396
13432
|
};
|
|
13433
|
+
const de_WorkspaceLock = (output, context) => {
|
|
13434
|
+
return (0, smithy_client_1.take)(output, {
|
|
13435
|
+
'acquired_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
13436
|
+
'expires_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
13437
|
+
'lock_id': smithy_client_1.expectString,
|
|
13438
|
+
'locked_by': smithy_client_1.expectString,
|
|
13439
|
+
'operation': smithy_client_1.expectString,
|
|
13440
|
+
});
|
|
13441
|
+
};
|
|
13397
13442
|
const de_WorkspaceResponse = (output, context) => {
|
|
13398
13443
|
return (0, smithy_client_1.take)(output, {
|
|
13399
13444
|
'allow_experiment_self_approval': smithy_client_1.expectBoolean,
|
|
@@ -13410,6 +13455,7 @@ function requireAws_restJson1 () {
|
|
|
13410
13455
|
'organisation_id': smithy_client_1.expectString,
|
|
13411
13456
|
'organisation_name': smithy_client_1.expectString,
|
|
13412
13457
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
13458
|
+
'workspace_lock': (_) => de_WorkspaceLock(_),
|
|
13413
13459
|
'workspace_name': smithy_client_1.expectString,
|
|
13414
13460
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
13415
13461
|
'workspace_status': smithy_client_1.expectString,
|