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.esm.js
CHANGED
|
@@ -3180,7 +3180,7 @@ var runtimeConfig = {};
|
|
|
3180
3180
|
|
|
3181
3181
|
var name = "superposition-sdk";
|
|
3182
3182
|
var description = "superposition-sdk client";
|
|
3183
|
-
var version = "0.
|
|
3183
|
+
var version = "0.115.0";
|
|
3184
3184
|
var repository = {
|
|
3185
3185
|
type: "git",
|
|
3186
3186
|
url: "git+https://github.com/juspay/superposition.git"
|
|
@@ -8799,7 +8799,7 @@ function requireModels_0 () {
|
|
|
8799
8799
|
if (hasRequiredModels_0) return models_0;
|
|
8800
8800
|
hasRequiredModels_0 = 1;
|
|
8801
8801
|
Object.defineProperty(models_0, "__esModule", { value: true });
|
|
8802
|
-
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;
|
|
8802
|
+
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;
|
|
8803
8803
|
const SuperpositionServiceException_1 = requireSuperpositionServiceException();
|
|
8804
8804
|
models_0.GroupType = {
|
|
8805
8805
|
SYSTEM_GENERATED: "SYSTEM_GENERATED",
|
|
@@ -8934,6 +8934,21 @@ function requireModels_0 () {
|
|
|
8934
8934
|
LAST_MODIFIED_AT: "last_modified_at",
|
|
8935
8935
|
WEIGHT: "weight",
|
|
8936
8936
|
};
|
|
8937
|
+
class WorkspaceLockConflict extends SuperpositionServiceException_1.SuperpositionServiceException {
|
|
8938
|
+
name = "WorkspaceLockConflict";
|
|
8939
|
+
$fault = "client";
|
|
8940
|
+
lock;
|
|
8941
|
+
constructor(opts) {
|
|
8942
|
+
super({
|
|
8943
|
+
name: "WorkspaceLockConflict",
|
|
8944
|
+
$fault: "client",
|
|
8945
|
+
...opts
|
|
8946
|
+
});
|
|
8947
|
+
Object.setPrototypeOf(this, WorkspaceLockConflict.prototype);
|
|
8948
|
+
this.lock = opts.lock;
|
|
8949
|
+
}
|
|
8950
|
+
}
|
|
8951
|
+
models_0.WorkspaceLockConflict = WorkspaceLockConflict;
|
|
8937
8952
|
models_0.FunctionTypes = {
|
|
8938
8953
|
CHANGE_REASON_VALIDATION: "CHANGE_REASON_VALIDATION",
|
|
8939
8954
|
CONTEXT_VALIDATION: "CONTEXT_VALIDATION",
|
|
@@ -11182,6 +11197,7 @@ function requireAws_restJson1 () {
|
|
|
11182
11197
|
'organisation_id': smithy_client_1.expectString,
|
|
11183
11198
|
'organisation_name': smithy_client_1.expectString,
|
|
11184
11199
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
11200
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
11185
11201
|
'workspace_name': smithy_client_1.expectString,
|
|
11186
11202
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
11187
11203
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -11900,6 +11916,7 @@ function requireAws_restJson1 () {
|
|
|
11900
11916
|
'organisation_id': smithy_client_1.expectString,
|
|
11901
11917
|
'organisation_name': smithy_client_1.expectString,
|
|
11902
11918
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
11919
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
11903
11920
|
'workspace_name': smithy_client_1.expectString,
|
|
11904
11921
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
11905
11922
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -12154,6 +12171,7 @@ function requireAws_restJson1 () {
|
|
|
12154
12171
|
'organisation_id': smithy_client_1.expectString,
|
|
12155
12172
|
'organisation_name': smithy_client_1.expectString,
|
|
12156
12173
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
12174
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
12157
12175
|
'workspace_name': smithy_client_1.expectString,
|
|
12158
12176
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
12159
12177
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -12704,6 +12722,7 @@ function requireAws_restJson1 () {
|
|
|
12704
12722
|
'organisation_id': smithy_client_1.expectString,
|
|
12705
12723
|
'organisation_name': smithy_client_1.expectString,
|
|
12706
12724
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
12725
|
+
'workspace_lock': _ => de_WorkspaceLock(_),
|
|
12707
12726
|
'workspace_name': smithy_client_1.expectString,
|
|
12708
12727
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
12709
12728
|
'workspace_status': smithy_client_1.expectString,
|
|
@@ -12754,6 +12773,9 @@ function requireAws_restJson1 () {
|
|
|
12754
12773
|
case "WebhookFailed":
|
|
12755
12774
|
case "io.superposition#WebhookFailed":
|
|
12756
12775
|
throw await de_WebhookFailedRes(parsedOutput);
|
|
12776
|
+
case "WorkspaceLockConflict":
|
|
12777
|
+
case "io.superposition#WorkspaceLockConflict":
|
|
12778
|
+
throw await de_WorkspaceLockConflictRes(parsedOutput);
|
|
12757
12779
|
default:
|
|
12758
12780
|
const parsedBody = parsedOutput.body;
|
|
12759
12781
|
return throwDefaultError({
|
|
@@ -12801,6 +12823,20 @@ function requireAws_restJson1 () {
|
|
|
12801
12823
|
});
|
|
12802
12824
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
12803
12825
|
};
|
|
12826
|
+
const de_WorkspaceLockConflictRes = async (parsedOutput, context) => {
|
|
12827
|
+
const contents = (0, smithy_client_1.map)({});
|
|
12828
|
+
const data = parsedOutput.body;
|
|
12829
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
12830
|
+
'lock': _ => de_WorkspaceLock(_),
|
|
12831
|
+
'message': smithy_client_1.expectString,
|
|
12832
|
+
});
|
|
12833
|
+
Object.assign(contents, doc);
|
|
12834
|
+
const exception = new models_0_1.WorkspaceLockConflict({
|
|
12835
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
12836
|
+
...contents
|
|
12837
|
+
});
|
|
12838
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
12839
|
+
};
|
|
12804
12840
|
const se_BulkOperationList = (input, context) => {
|
|
12805
12841
|
return input.filter((e) => e != null).map(entry => {
|
|
12806
12842
|
return se_ContextAction(entry);
|
|
@@ -13391,6 +13427,15 @@ function requireAws_restJson1 () {
|
|
|
13391
13427
|
});
|
|
13392
13428
|
return retVal;
|
|
13393
13429
|
};
|
|
13430
|
+
const de_WorkspaceLock = (output, context) => {
|
|
13431
|
+
return (0, smithy_client_1.take)(output, {
|
|
13432
|
+
'acquired_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
13433
|
+
'expires_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
13434
|
+
'lock_id': smithy_client_1.expectString,
|
|
13435
|
+
'locked_by': smithy_client_1.expectString,
|
|
13436
|
+
'operation': smithy_client_1.expectString,
|
|
13437
|
+
});
|
|
13438
|
+
};
|
|
13394
13439
|
const de_WorkspaceResponse = (output, context) => {
|
|
13395
13440
|
return (0, smithy_client_1.take)(output, {
|
|
13396
13441
|
'allow_experiment_self_approval': smithy_client_1.expectBoolean,
|
|
@@ -13407,6 +13452,7 @@ function requireAws_restJson1 () {
|
|
|
13407
13452
|
'organisation_id': smithy_client_1.expectString,
|
|
13408
13453
|
'organisation_name': smithy_client_1.expectString,
|
|
13409
13454
|
'workspace_admin_email': smithy_client_1.expectString,
|
|
13455
|
+
'workspace_lock': (_) => de_WorkspaceLock(_),
|
|
13410
13456
|
'workspace_name': smithy_client_1.expectString,
|
|
13411
13457
|
'workspace_schema_name': smithy_client_1.expectString,
|
|
13412
13458
|
'workspace_status': smithy_client_1.expectString,
|