@superblocksteam/library 2.0.3-next.140 → 2.0.3-next.142
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/{allPaths-B4GCrz52.js → allPaths-CdDKgzqo.js} +2 -2
- package/dist/{allPaths-B4GCrz52.js.map → allPaths-CdDKgzqo.js.map} +1 -1
- package/dist/{allPaths-DwTDUyvP.js → allPaths-CoCcT2RS.js} +2 -2
- package/dist/{allPaths-DwTDUyvP.js.map → allPaths-CoCcT2RS.js.map} +1 -1
- package/dist/{allPathsLoader-DtkAwWTV.js → allPathsLoader-BsylPJdg.js} +3 -3
- package/dist/{allPathsLoader-DtkAwWTV.js.map → allPathsLoader-BsylPJdg.js.map} +1 -1
- package/dist/{allPathsLoader-Dxv5ra-q.js → allPathsLoader-CQuneYkr.js} +3 -3
- package/dist/{allPathsLoader-Dxv5ra-q.js.map → allPathsLoader-CQuneYkr.js.map} +1 -1
- package/dist/{index-CF-A-L3f.js → index-Crq-gtAN.js} +338 -249
- package/dist/{index-CF-A-L3f.js.map → index-Crq-gtAN.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-D9-UGIn0.js → splitPathsBySizeLoader-BWlBkTcI.js} +2 -2
- package/dist/{splitPathsBySizeLoader-D9-UGIn0.js.map → splitPathsBySizeLoader-BWlBkTcI.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-IfEMZadL.js → splitPathsBySizeLoader-CxGVNVcp.js} +2 -2
- package/dist/{splitPathsBySizeLoader-IfEMZadL.js.map → splitPathsBySizeLoader-CxGVNVcp.js.map} +1 -1
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +7 -6
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +6 -5
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +4 -4
- package/dist-types/lib/triggers/registry.d.ts +5 -5
- package/dist-types/lib/triggers/run-event-handlers.d.ts +1 -10
- package/dist-types/lib/user-facing/entities/api/props.d.ts +4 -4
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +1 -1
- package/package.json +3 -3
- package/dist-types/lib/user-facing/state/create-entity-proxy.d.ts +0 -1
|
@@ -2692,14 +2692,14 @@ function getLoaderFn$1(options) {
|
|
|
2692
2692
|
if (!(loader === "all")) return [3, 3];
|
|
2693
2693
|
return [4, import(
|
|
2694
2694
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2695
|
-
"./allPathsLoader-
|
|
2695
|
+
"./allPathsLoader-CQuneYkr.js"
|
|
2696
2696
|
)];
|
|
2697
2697
|
case 2:
|
|
2698
2698
|
return [2, _b2.sent().allPathsLoader];
|
|
2699
2699
|
case 3:
|
|
2700
2700
|
return [4, import(
|
|
2701
2701
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2702
|
-
"./splitPathsBySizeLoader-
|
|
2702
|
+
"./splitPathsBySizeLoader-CxGVNVcp.js"
|
|
2703
2703
|
)];
|
|
2704
2704
|
case 4:
|
|
2705
2705
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -20199,7 +20199,7 @@ function requirePlugin_pb$v() {
|
|
|
20199
20199
|
if (hasRequiredPlugin_pb$v) return plugin_pb$v;
|
|
20200
20200
|
hasRequiredPlugin_pb$v = 1;
|
|
20201
20201
|
Object.defineProperty(plugin_pb$v, "__esModule", { value: true });
|
|
20202
|
-
plugin_pb$v.Plugin = plugin_pb$v.SuperblocksMetadata = void 0;
|
|
20202
|
+
plugin_pb$v.Plugin_AddSheet = plugin_pb$v.Plugin = plugin_pb$v.SuperblocksMetadata = void 0;
|
|
20203
20203
|
const protobuf_1 = /* @__PURE__ */ requireCjs();
|
|
20204
20204
|
const _SuperblocksMetadata = class _SuperblocksMetadata extends protobuf_1.Message {
|
|
20205
20205
|
constructor(data2) {
|
|
@@ -20244,9 +20244,9 @@ function requirePlugin_pb$v() {
|
|
|
20244
20244
|
*/
|
|
20245
20245
|
__publicField(this, "spreadsheetId", "");
|
|
20246
20246
|
/**
|
|
20247
|
-
* @generated from field: string sheetTitle = 2;
|
|
20247
|
+
* @generated from field: optional string sheetTitle = 2;
|
|
20248
20248
|
*/
|
|
20249
|
-
__publicField(this, "sheetTitle"
|
|
20249
|
+
__publicField(this, "sheetTitle");
|
|
20250
20250
|
/**
|
|
20251
20251
|
* @generated from field: optional string range = 3;
|
|
20252
20252
|
*/
|
|
@@ -20300,6 +20300,10 @@ function requirePlugin_pb$v() {
|
|
|
20300
20300
|
* @generated from field: plugins.gsheets.v1.SuperblocksMetadata superblocksMetadata = 14;
|
|
20301
20301
|
*/
|
|
20302
20302
|
__publicField(this, "superblocksMetadata");
|
|
20303
|
+
/**
|
|
20304
|
+
* @generated from field: optional plugins.gsheets.v1.Plugin.AddSheet addSheet = 15;
|
|
20305
|
+
*/
|
|
20306
|
+
__publicField(this, "addSheet");
|
|
20303
20307
|
protobuf_1.proto3.util.initPartial(data2, this);
|
|
20304
20308
|
}
|
|
20305
20309
|
static fromBinary(bytes, options) {
|
|
@@ -20325,13 +20329,7 @@ function requirePlugin_pb$v() {
|
|
|
20325
20329
|
T: 9
|
|
20326
20330
|
/* ScalarType.STRING */
|
|
20327
20331
|
},
|
|
20328
|
-
{
|
|
20329
|
-
no: 2,
|
|
20330
|
-
name: "sheetTitle",
|
|
20331
|
-
kind: "scalar",
|
|
20332
|
-
T: 9
|
|
20333
|
-
/* ScalarType.STRING */
|
|
20334
|
-
},
|
|
20332
|
+
{ no: 2, name: "sheetTitle", kind: "scalar", T: 9, opt: true },
|
|
20335
20333
|
{ no: 3, name: "range", kind: "scalar", T: 9, opt: true },
|
|
20336
20334
|
{ no: 4, name: "rowNumber", kind: "scalar", T: 9, opt: true },
|
|
20337
20335
|
{
|
|
@@ -20361,10 +20359,56 @@ function requirePlugin_pb$v() {
|
|
|
20361
20359
|
{ no: 11, name: "action", kind: "scalar", T: 9, opt: true },
|
|
20362
20360
|
{ no: 12, name: "writeToDestinationType", kind: "scalar", T: 9, opt: true },
|
|
20363
20361
|
{ no: 13, name: "body", kind: "scalar", T: 9, opt: true },
|
|
20364
|
-
{ no: 14, name: "superblocksMetadata", kind: "message", T: SuperblocksMetadata }
|
|
20362
|
+
{ no: 14, name: "superblocksMetadata", kind: "message", T: SuperblocksMetadata },
|
|
20363
|
+
{ no: 15, name: "addSheet", kind: "message", T: Plugin_AddSheet, opt: true }
|
|
20365
20364
|
]));
|
|
20366
20365
|
let Plugin = _Plugin;
|
|
20367
20366
|
plugin_pb$v.Plugin = Plugin;
|
|
20367
|
+
const _Plugin_AddSheet = class _Plugin_AddSheet extends protobuf_1.Message {
|
|
20368
|
+
constructor(data2) {
|
|
20369
|
+
super();
|
|
20370
|
+
/**
|
|
20371
|
+
* @generated from field: string sheetTitle = 1;
|
|
20372
|
+
*/
|
|
20373
|
+
__publicField(this, "sheetTitle", "");
|
|
20374
|
+
/**
|
|
20375
|
+
* @generated from field: optional string rowCount = 2;
|
|
20376
|
+
*/
|
|
20377
|
+
__publicField(this, "rowCount");
|
|
20378
|
+
/**
|
|
20379
|
+
* @generated from field: optional string columnCount = 3;
|
|
20380
|
+
*/
|
|
20381
|
+
__publicField(this, "columnCount");
|
|
20382
|
+
protobuf_1.proto3.util.initPartial(data2, this);
|
|
20383
|
+
}
|
|
20384
|
+
static fromBinary(bytes, options) {
|
|
20385
|
+
return new _Plugin_AddSheet().fromBinary(bytes, options);
|
|
20386
|
+
}
|
|
20387
|
+
static fromJson(jsonValue, options) {
|
|
20388
|
+
return new _Plugin_AddSheet().fromJson(jsonValue, options);
|
|
20389
|
+
}
|
|
20390
|
+
static fromJsonString(jsonString, options) {
|
|
20391
|
+
return new _Plugin_AddSheet().fromJsonString(jsonString, options);
|
|
20392
|
+
}
|
|
20393
|
+
static equals(a3, b3) {
|
|
20394
|
+
return protobuf_1.proto3.util.equals(_Plugin_AddSheet, a3, b3);
|
|
20395
|
+
}
|
|
20396
|
+
};
|
|
20397
|
+
__publicField(_Plugin_AddSheet, "runtime", protobuf_1.proto3);
|
|
20398
|
+
__publicField(_Plugin_AddSheet, "typeName", "plugins.gsheets.v1.Plugin.AddSheet");
|
|
20399
|
+
__publicField(_Plugin_AddSheet, "fields", protobuf_1.proto3.util.newFieldList(() => [
|
|
20400
|
+
{
|
|
20401
|
+
no: 1,
|
|
20402
|
+
name: "sheetTitle",
|
|
20403
|
+
kind: "scalar",
|
|
20404
|
+
T: 9
|
|
20405
|
+
/* ScalarType.STRING */
|
|
20406
|
+
},
|
|
20407
|
+
{ no: 2, name: "rowCount", kind: "scalar", T: 9, opt: true },
|
|
20408
|
+
{ no: 3, name: "columnCount", kind: "scalar", T: 9, opt: true }
|
|
20409
|
+
]));
|
|
20410
|
+
let Plugin_AddSheet = _Plugin_AddSheet;
|
|
20411
|
+
plugin_pb$v.Plugin_AddSheet = Plugin_AddSheet;
|
|
20368
20412
|
return plugin_pb$v;
|
|
20369
20413
|
}
|
|
20370
20414
|
var plugin_pb$u = {};
|
|
@@ -27603,7 +27647,7 @@ function requireAuth_pb() {
|
|
|
27603
27647
|
if (hasRequiredAuth_pb) return auth_pb;
|
|
27604
27648
|
hasRequiredAuth_pb = 1;
|
|
27605
27649
|
Object.defineProperty(auth_pb, "__esModule", { value: true });
|
|
27606
|
-
auth_pb.Auth = auth_pb.AkeylessAuth_Email = auth_pb.AkeylessAuth_ApiKey = auth_pb.AkeylessAuth = auth_pb.GcpAuth = auth_pb.AwsAuth_AssumeRole = auth_pb.AwsAuth_Static = auth_pb.AwsAuth = auth_pb.Azure_ClientCredentials = auth_pb.Azure_Key = auth_pb.Azure = auth_pb.Basic = auth_pb.OAuth_AuthorizationCodeFlow = auth_pb.OAuth_ClientCredentialsFlow = auth_pb.OAuth_PasswordGrantFlow = auth_pb.OAuth = auth_pb.OAuthCommon = void 0;
|
|
27650
|
+
auth_pb.Auth = auth_pb.AkeylessAuth_Email = auth_pb.AkeylessAuth_ApiKey = auth_pb.AkeylessAuth = auth_pb.GcpAuth = auth_pb.AwsAuth_AssumeRole = auth_pb.AwsAuth_Static = auth_pb.AwsAuth = auth_pb.Azure_ClientCredentials = auth_pb.Azure_Key = auth_pb.Azure = auth_pb.Basic = auth_pb.OAuth_AuthorizationCodeFlow_SubjectTokenSource = auth_pb.OAuth_AuthorizationCodeFlow = auth_pb.OAuth_ClientCredentialsFlow = auth_pb.OAuth_PasswordGrantFlow = auth_pb.OAuth = auth_pb.OAuthCommon = void 0;
|
|
27607
27651
|
const protobuf_1 = /* @__PURE__ */ requireCjs();
|
|
27608
27652
|
const _OAuthCommon = class _OAuthCommon extends protobuf_1.Message {
|
|
27609
27653
|
constructor(data2) {
|
|
@@ -27926,6 +27970,14 @@ function requireAuth_pb() {
|
|
|
27926
27970
|
* @generated from field: string client_auth_method = 9;
|
|
27927
27971
|
*/
|
|
27928
27972
|
__publicField(this, "clientAuthMethod", "");
|
|
27973
|
+
/**
|
|
27974
|
+
* @generated from field: plugins.common.v1.OAuth.AuthorizationCodeFlow.SubjectTokenSource subject_token_source = 10;
|
|
27975
|
+
*/
|
|
27976
|
+
__publicField(this, "subjectTokenSource", OAuth_AuthorizationCodeFlow_SubjectTokenSource.UNSPECIFIED);
|
|
27977
|
+
/**
|
|
27978
|
+
* @generated from field: string subject_token_source_static_token = 11;
|
|
27979
|
+
*/
|
|
27980
|
+
__publicField(this, "subjectTokenSourceStaticToken", "");
|
|
27929
27981
|
protobuf_1.proto3.util.initPartial(data2, this);
|
|
27930
27982
|
}
|
|
27931
27983
|
static fromBinary(bytes, options) {
|
|
@@ -28006,10 +28058,29 @@ function requireAuth_pb() {
|
|
|
28006
28058
|
kind: "scalar",
|
|
28007
28059
|
T: 9
|
|
28008
28060
|
/* ScalarType.STRING */
|
|
28061
|
+
},
|
|
28062
|
+
{ no: 10, name: "subject_token_source", kind: "enum", T: protobuf_1.proto3.getEnumType(OAuth_AuthorizationCodeFlow_SubjectTokenSource) },
|
|
28063
|
+
{
|
|
28064
|
+
no: 11,
|
|
28065
|
+
name: "subject_token_source_static_token",
|
|
28066
|
+
kind: "scalar",
|
|
28067
|
+
T: 9
|
|
28068
|
+
/* ScalarType.STRING */
|
|
28009
28069
|
}
|
|
28010
28070
|
]));
|
|
28011
28071
|
let OAuth_AuthorizationCodeFlow = _OAuth_AuthorizationCodeFlow;
|
|
28012
28072
|
auth_pb.OAuth_AuthorizationCodeFlow = OAuth_AuthorizationCodeFlow;
|
|
28073
|
+
var OAuth_AuthorizationCodeFlow_SubjectTokenSource;
|
|
28074
|
+
(function(OAuth_AuthorizationCodeFlow_SubjectTokenSource2) {
|
|
28075
|
+
OAuth_AuthorizationCodeFlow_SubjectTokenSource2[OAuth_AuthorizationCodeFlow_SubjectTokenSource2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
28076
|
+
OAuth_AuthorizationCodeFlow_SubjectTokenSource2[OAuth_AuthorizationCodeFlow_SubjectTokenSource2["LOGIN_IDENTITY_PROVIDER"] = 1] = "LOGIN_IDENTITY_PROVIDER";
|
|
28077
|
+
OAuth_AuthorizationCodeFlow_SubjectTokenSource2[OAuth_AuthorizationCodeFlow_SubjectTokenSource2["STATIC_TOKEN"] = 2] = "STATIC_TOKEN";
|
|
28078
|
+
})(OAuth_AuthorizationCodeFlow_SubjectTokenSource || (auth_pb.OAuth_AuthorizationCodeFlow_SubjectTokenSource = OAuth_AuthorizationCodeFlow_SubjectTokenSource = {}));
|
|
28079
|
+
protobuf_1.proto3.util.setEnumType(OAuth_AuthorizationCodeFlow_SubjectTokenSource, "plugins.common.v1.OAuth.AuthorizationCodeFlow.SubjectTokenSource", [
|
|
28080
|
+
{ no: 0, name: "SUBJECT_TOKEN_SOURCE_UNSPECIFIED" },
|
|
28081
|
+
{ no: 1, name: "SUBJECT_TOKEN_SOURCE_LOGIN_IDENTITY_PROVIDER" },
|
|
28082
|
+
{ no: 2, name: "SUBJECT_TOKEN_SOURCE_STATIC_TOKEN" }
|
|
28083
|
+
]);
|
|
28013
28084
|
const _Basic = class _Basic extends protobuf_1.Message {
|
|
28014
28085
|
constructor(data2) {
|
|
28015
28086
|
super();
|
|
@@ -31428,7 +31499,7 @@ function requireApi_pb$1() {
|
|
|
31428
31499
|
if (hasRequiredApi_pb$1) return api_pb$1;
|
|
31429
31500
|
hasRequiredApi_pb$1 = 1;
|
|
31430
31501
|
Object.defineProperty(api_pb$1, "__esModule", { value: true });
|
|
31431
|
-
api_pb$1.Step = api_pb$1.Block_Send = api_pb$1.Block_Stream_Trigger = api_pb$1.Block_Stream_Options = api_pb$1.Block_Stream_Variables = api_pb$1.Block_Stream = api_pb$1.Block_Wait = api_pb$1.Block_Throw = api_pb$1.Block_Return = api_pb$1.Block_Break = api_pb$1.Block_TryCatch_Variables = api_pb$1.Block_TryCatch = api_pb$1.Block_Loop_Variables = api_pb$1.Block_Loop_Type = api_pb$1.Block_Loop = api_pb$1.Block_Conditional_Condition = api_pb$1.Block_Conditional = api_pb$1.Block_Parallel_Dynamic_Variables = api_pb$1.Block_Parallel_Dynamic = api_pb$1.Block_Parallel_Static = api_pb$1.Block_Parallel_Wait = api_pb$1.Block_Parallel = api_pb$1.Block = api_pb$1.Blocks = api_pb$1.Trigger_Job_Days = api_pb$1.Trigger_Job_Options = api_pb$1.Trigger_Job_Interval = api_pb$1.Trigger_Job = api_pb$1.Trigger_Workflow_Parameters_QueryParam = api_pb$1.Trigger_Workflow_Parameters = api_pb$1.Trigger_Workflow_Options = api_pb$1.Trigger_Workflow = api_pb$1.Trigger_Application_Options = api_pb$1.Trigger_Application = api_pb$1.Trigger = api_pb$1.Profiles_Modes_Settings = api_pb$1.Profiles_Modes = api_pb$1.Profiles = api_pb$1.Api = void 0;
|
|
31502
|
+
api_pb$1.Step = api_pb$1.Block_Send = api_pb$1.Block_Stream_Trigger = api_pb$1.Block_Stream_Options = api_pb$1.Block_Stream_Variables = api_pb$1.Block_Stream = api_pb$1.Block_Wait = api_pb$1.Block_Throw = api_pb$1.Block_Return = api_pb$1.Block_Break = api_pb$1.Block_TryCatch_Variables = api_pb$1.Block_TryCatch = api_pb$1.Block_Loop_Variables = api_pb$1.Block_Loop_Type = api_pb$1.Block_Loop = api_pb$1.Block_Conditional_Condition = api_pb$1.Block_Conditional = api_pb$1.Block_Parallel_Dynamic_Variables = api_pb$1.Block_Parallel_Dynamic = api_pb$1.Block_Parallel_Static = api_pb$1.Block_Parallel_Wait = api_pb$1.Block_Parallel = api_pb$1.Block = api_pb$1.Blocks = api_pb$1.Trigger_Job_Days = api_pb$1.Trigger_Job_Options = api_pb$1.Trigger_Job_Interval = api_pb$1.Trigger_Job = api_pb$1.Trigger_Workflow_Parameters_QueryParam = api_pb$1.Trigger_Workflow_Parameters = api_pb$1.Trigger_Workflow_Options = api_pb$1.Trigger_Workflow = api_pb$1.Trigger_Application_Options = api_pb$1.Trigger_Application = api_pb$1.Trigger = api_pb$1.Profiles_Modes_Settings = api_pb$1.Profiles_Modes = api_pb$1.Profiles = api_pb$1.Authorization = api_pb$1.Api = api_pb$1.AuthorizationType = void 0;
|
|
31432
31503
|
const protobuf_1 = /* @__PURE__ */ requireCjs();
|
|
31433
31504
|
const common_pb_1 = requireCommon_pb();
|
|
31434
31505
|
const utils_pb_1 = requireUtils_pb();
|
|
@@ -31469,6 +31540,17 @@ function requireApi_pb$1() {
|
|
|
31469
31540
|
const plugin_pb_34 = requirePlugin_pb$2();
|
|
31470
31541
|
const plugin_pb_35 = requirePlugin_pb$1();
|
|
31471
31542
|
const plugin_pb_36 = requirePlugin_pb();
|
|
31543
|
+
var AuthorizationType;
|
|
31544
|
+
(function(AuthorizationType2) {
|
|
31545
|
+
AuthorizationType2[AuthorizationType2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
31546
|
+
AuthorizationType2[AuthorizationType2["ALL_USERS"] = 1] = "ALL_USERS";
|
|
31547
|
+
AuthorizationType2[AuthorizationType2["JS_EXPRESSION"] = 2] = "JS_EXPRESSION";
|
|
31548
|
+
})(AuthorizationType || (api_pb$1.AuthorizationType = AuthorizationType = {}));
|
|
31549
|
+
protobuf_1.proto3.util.setEnumType(AuthorizationType, "api.v1.AuthorizationType", [
|
|
31550
|
+
{ no: 0, name: "AUTHORIZATION_TYPE_UNSPECIFIED" },
|
|
31551
|
+
{ no: 1, name: "AUTHORIZATION_TYPE_ALL_USERS" },
|
|
31552
|
+
{ no: 2, name: "AUTHORIZATION_TYPE_JS_EXPRESSION" }
|
|
31553
|
+
]);
|
|
31472
31554
|
const _Api = class _Api extends protobuf_1.Message {
|
|
31473
31555
|
constructor(data2) {
|
|
31474
31556
|
super();
|
|
@@ -31488,6 +31570,10 @@ function requireApi_pb$1() {
|
|
|
31488
31570
|
* @generated from field: optional utils.v1.Signature signature = 4;
|
|
31489
31571
|
*/
|
|
31490
31572
|
__publicField(this, "signature");
|
|
31573
|
+
/**
|
|
31574
|
+
* @generated from field: optional api.v1.Authorization authorization = 5;
|
|
31575
|
+
*/
|
|
31576
|
+
__publicField(this, "authorization");
|
|
31491
31577
|
protobuf_1.proto3.util.initPartial(data2, this);
|
|
31492
31578
|
}
|
|
31493
31579
|
static fromBinary(bytes, options) {
|
|
@@ -31509,10 +31595,45 @@ function requireApi_pb$1() {
|
|
|
31509
31595
|
{ no: 1, name: "metadata", kind: "message", T: common_pb_1.Metadata },
|
|
31510
31596
|
{ no: 2, name: "blocks", kind: "message", T: Block, repeated: true },
|
|
31511
31597
|
{ no: 3, name: "trigger", kind: "message", T: Trigger2 },
|
|
31512
|
-
{ no: 4, name: "signature", kind: "message", T: utils_pb_1.Signature, opt: true }
|
|
31598
|
+
{ no: 4, name: "signature", kind: "message", T: utils_pb_1.Signature, opt: true },
|
|
31599
|
+
{ no: 5, name: "authorization", kind: "message", T: Authorization, opt: true }
|
|
31513
31600
|
]));
|
|
31514
31601
|
let Api = _Api;
|
|
31515
31602
|
api_pb$1.Api = Api;
|
|
31603
|
+
const _Authorization = class _Authorization extends protobuf_1.Message {
|
|
31604
|
+
constructor(data2) {
|
|
31605
|
+
super();
|
|
31606
|
+
/**
|
|
31607
|
+
* @generated from field: api.v1.AuthorizationType type = 1;
|
|
31608
|
+
*/
|
|
31609
|
+
__publicField(this, "type", AuthorizationType.UNSPECIFIED);
|
|
31610
|
+
/**
|
|
31611
|
+
* @generated from field: optional string expression = 2;
|
|
31612
|
+
*/
|
|
31613
|
+
__publicField(this, "expression");
|
|
31614
|
+
protobuf_1.proto3.util.initPartial(data2, this);
|
|
31615
|
+
}
|
|
31616
|
+
static fromBinary(bytes, options) {
|
|
31617
|
+
return new _Authorization().fromBinary(bytes, options);
|
|
31618
|
+
}
|
|
31619
|
+
static fromJson(jsonValue, options) {
|
|
31620
|
+
return new _Authorization().fromJson(jsonValue, options);
|
|
31621
|
+
}
|
|
31622
|
+
static fromJsonString(jsonString, options) {
|
|
31623
|
+
return new _Authorization().fromJsonString(jsonString, options);
|
|
31624
|
+
}
|
|
31625
|
+
static equals(a3, b3) {
|
|
31626
|
+
return protobuf_1.proto3.util.equals(_Authorization, a3, b3);
|
|
31627
|
+
}
|
|
31628
|
+
};
|
|
31629
|
+
__publicField(_Authorization, "runtime", protobuf_1.proto3);
|
|
31630
|
+
__publicField(_Authorization, "typeName", "api.v1.Authorization");
|
|
31631
|
+
__publicField(_Authorization, "fields", protobuf_1.proto3.util.newFieldList(() => [
|
|
31632
|
+
{ no: 1, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(AuthorizationType) },
|
|
31633
|
+
{ no: 2, name: "expression", kind: "scalar", T: 9, opt: true }
|
|
31634
|
+
]));
|
|
31635
|
+
let Authorization = _Authorization;
|
|
31636
|
+
api_pb$1.Authorization = Authorization;
|
|
31516
31637
|
const _Profiles = class _Profiles extends protobuf_1.Message {
|
|
31517
31638
|
constructor(data2) {
|
|
31518
31639
|
super();
|
|
@@ -35635,7 +35756,7 @@ function requireService_pb$1() {
|
|
|
35635
35756
|
if (hasRequiredService_pb$1) return service_pb$1;
|
|
35636
35757
|
hasRequiredService_pb$1 = 1;
|
|
35637
35758
|
Object.defineProperty(service_pb$1, "__esModule", { value: true });
|
|
35638
|
-
service_pb$1.WorkflowResponse_ResponseMeta = service_pb$1.WorkflowResponse = service_pb$1.DownloadResponse = service_pb$1.DownloadRequest = service_pb$1.MetadataResponse_BucketsMetadata = service_pb$1.MetadataResponse_BucketMetadata = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Schema = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Table = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Template = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Key = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Column = service_pb$1.MetadataResponse_DatabaseSchemaMetadata = service_pb$1.MetadataResponse = service_pb$1.MetadataRequest = service_pb$1.MetadataRequestDeprecated = service_pb$1.Mock_Return = service_pb$1.Mock_On = service_pb$1.Mock_Params = service_pb$1.Mock = service_pb$1.TwoWayResponse = service_pb$1.TwoWayRequest = service_pb$1.Function_Response = service_pb$1.Function_Request = service_pb$1.Function = service_pb$1.DeleteResponse = service_pb$1.DeleteRequest = service_pb$1.TestResponse = service_pb$1.TestRequest = service_pb$1.CancelResponse = service_pb$1.CancelRequest = service_pb$1.OutputResponse = service_pb$1.OutputRequest = service_pb$1.StreamResponse = service_pb$1.AsyncResponse = service_pb$1.AwaitResponse_Status = service_pb$1.AwaitResponse = service_pb$1.StatusRequest = service_pb$1.Definition_Metadata = service_pb$1.Definition = service_pb$1.ExecuteRequest_File = service_pb$1.ExecuteRequest_Fetch = service_pb$1.ExecuteRequest_Options = service_pb$1.ExecuteRequest = service_pb$1.ValidateRequest = service_pb$1.HealthRequest = service_pb$1.ViewMode = void 0;
|
|
35759
|
+
service_pb$1.WorkflowResponse_ResponseMeta = service_pb$1.WorkflowResponse = service_pb$1.DownloadResponse = service_pb$1.DownloadRequest = service_pb$1.MetadataResponse_BucketsMetadata = service_pb$1.MetadataResponse_BucketMetadata = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Schema = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Table = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Template = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Key = service_pb$1.MetadataResponse_DatabaseSchemaMetadata_Column = service_pb$1.MetadataResponse_DatabaseSchemaMetadata = service_pb$1.MetadataResponse = service_pb$1.MetadataRequest = service_pb$1.MetadataRequestDeprecated = service_pb$1.Mock_Return = service_pb$1.Mock_On = service_pb$1.Mock_Params = service_pb$1.Mock = service_pb$1.TwoWayResponse = service_pb$1.TwoWayRequest = service_pb$1.Function_Response = service_pb$1.Function_Request = service_pb$1.Function = service_pb$1.DeleteResponse = service_pb$1.DeleteRequest = service_pb$1.TestResponse = service_pb$1.TestRequest = service_pb$1.CancelResponse = service_pb$1.CancelRequest = service_pb$1.OutputResponse = service_pb$1.OutputRequest = service_pb$1.StreamResponse = service_pb$1.AsyncResponse = service_pb$1.AwaitResponse_Status = service_pb$1.AwaitResponse = service_pb$1.StatusRequest = service_pb$1.Definition_Metadata = service_pb$1.Definition = service_pb$1.ExecuteRequest_File = service_pb$1.ExecuteRequest_FetchByPath = service_pb$1.ExecuteRequest_Fetch = service_pb$1.ExecuteRequest_Options = service_pb$1.ExecuteRequest = service_pb$1.ValidateRequest = service_pb$1.HealthRequest = service_pb$1.ViewMode = void 0;
|
|
35639
35760
|
const protobuf_1 = /* @__PURE__ */ requireCjs();
|
|
35640
35761
|
const api_pb_1 = requireApi_pb$1();
|
|
35641
35762
|
const common_pb_1 = requireCommon_pb();
|
|
@@ -35779,6 +35900,7 @@ function requireService_pb$1() {
|
|
|
35779
35900
|
{ no: 2, name: "inputs", kind: "map", K: 9, V: { kind: "message", T: protobuf_1.Value } },
|
|
35780
35901
|
{ no: 3, name: "definition", kind: "message", T: Definition, oneof: "request" },
|
|
35781
35902
|
{ no: 4, name: "fetch", kind: "message", T: ExecuteRequest_Fetch, oneof: "request" },
|
|
35903
|
+
{ no: 8, name: "fetch_by_path", kind: "message", T: ExecuteRequest_FetchByPath, oneof: "request" },
|
|
35782
35904
|
{ no: 5, name: "files", kind: "message", T: ExecuteRequest_File, repeated: true },
|
|
35783
35905
|
{ no: 6, name: "profile", kind: "message", T: common_pb_1.Profile },
|
|
35784
35906
|
{ no: 7, name: "mocks", kind: "message", T: Mock, repeated: true }
|
|
@@ -36015,6 +36137,92 @@ function requireService_pb$1() {
|
|
|
36015
36137
|
]));
|
|
36016
36138
|
let ExecuteRequest_Fetch = _ExecuteRequest_Fetch;
|
|
36017
36139
|
service_pb$1.ExecuteRequest_Fetch = ExecuteRequest_Fetch;
|
|
36140
|
+
const _ExecuteRequest_FetchByPath = class _ExecuteRequest_FetchByPath extends protobuf_1.Message {
|
|
36141
|
+
constructor(data2) {
|
|
36142
|
+
super();
|
|
36143
|
+
/**
|
|
36144
|
+
*
|
|
36145
|
+
* The integration profile to use.
|
|
36146
|
+
*
|
|
36147
|
+
* @generated from field: common.v1.Profile profile = 1;
|
|
36148
|
+
*/
|
|
36149
|
+
__publicField(this, "profile");
|
|
36150
|
+
/**
|
|
36151
|
+
*
|
|
36152
|
+
* Use unpublished changes.
|
|
36153
|
+
*
|
|
36154
|
+
* @generated from field: optional bool test = 2;
|
|
36155
|
+
*/
|
|
36156
|
+
__publicField(this, "test");
|
|
36157
|
+
/**
|
|
36158
|
+
*
|
|
36159
|
+
* The view mode that this resource should be executed against.
|
|
36160
|
+
*
|
|
36161
|
+
* @generated from field: api.v1.ViewMode view_mode = 3;
|
|
36162
|
+
*/
|
|
36163
|
+
__publicField(this, "viewMode", ViewMode2.UNSPECIFIED);
|
|
36164
|
+
/**
|
|
36165
|
+
*
|
|
36166
|
+
* The path to the API specification, relative from the root of a bundle.
|
|
36167
|
+
*
|
|
36168
|
+
* @generated from field: string path = 4;
|
|
36169
|
+
*/
|
|
36170
|
+
__publicField(this, "path", "");
|
|
36171
|
+
/**
|
|
36172
|
+
*
|
|
36173
|
+
* The application ID to use when fetching the API.
|
|
36174
|
+
*
|
|
36175
|
+
* @generated from field: optional string application_id = 5;
|
|
36176
|
+
*/
|
|
36177
|
+
__publicField(this, "applicationId");
|
|
36178
|
+
/**
|
|
36179
|
+
*
|
|
36180
|
+
* The commit ID to use when fetching the API.
|
|
36181
|
+
*
|
|
36182
|
+
* @generated from field: optional string commit_id = 6;
|
|
36183
|
+
*/
|
|
36184
|
+
__publicField(this, "commitId");
|
|
36185
|
+
/**
|
|
36186
|
+
*
|
|
36187
|
+
* The branch name to use when fetching the API
|
|
36188
|
+
*
|
|
36189
|
+
* @generated from field: optional string branch_name = 7;
|
|
36190
|
+
*/
|
|
36191
|
+
__publicField(this, "branchName");
|
|
36192
|
+
protobuf_1.proto3.util.initPartial(data2, this);
|
|
36193
|
+
}
|
|
36194
|
+
static fromBinary(bytes, options) {
|
|
36195
|
+
return new _ExecuteRequest_FetchByPath().fromBinary(bytes, options);
|
|
36196
|
+
}
|
|
36197
|
+
static fromJson(jsonValue, options) {
|
|
36198
|
+
return new _ExecuteRequest_FetchByPath().fromJson(jsonValue, options);
|
|
36199
|
+
}
|
|
36200
|
+
static fromJsonString(jsonString, options) {
|
|
36201
|
+
return new _ExecuteRequest_FetchByPath().fromJsonString(jsonString, options);
|
|
36202
|
+
}
|
|
36203
|
+
static equals(a3, b3) {
|
|
36204
|
+
return protobuf_1.proto3.util.equals(_ExecuteRequest_FetchByPath, a3, b3);
|
|
36205
|
+
}
|
|
36206
|
+
};
|
|
36207
|
+
__publicField(_ExecuteRequest_FetchByPath, "runtime", protobuf_1.proto3);
|
|
36208
|
+
__publicField(_ExecuteRequest_FetchByPath, "typeName", "api.v1.ExecuteRequest.FetchByPath");
|
|
36209
|
+
__publicField(_ExecuteRequest_FetchByPath, "fields", protobuf_1.proto3.util.newFieldList(() => [
|
|
36210
|
+
{ no: 1, name: "profile", kind: "message", T: common_pb_1.Profile },
|
|
36211
|
+
{ no: 2, name: "test", kind: "scalar", T: 8, opt: true },
|
|
36212
|
+
{ no: 3, name: "view_mode", kind: "enum", T: protobuf_1.proto3.getEnumType(ViewMode2) },
|
|
36213
|
+
{
|
|
36214
|
+
no: 4,
|
|
36215
|
+
name: "path",
|
|
36216
|
+
kind: "scalar",
|
|
36217
|
+
T: 9
|
|
36218
|
+
/* ScalarType.STRING */
|
|
36219
|
+
},
|
|
36220
|
+
{ no: 5, name: "application_id", kind: "scalar", T: 9, opt: true },
|
|
36221
|
+
{ no: 6, name: "commit_id", kind: "scalar", T: 9, opt: true },
|
|
36222
|
+
{ no: 7, name: "branch_name", kind: "scalar", T: 9, opt: true }
|
|
36223
|
+
]));
|
|
36224
|
+
let ExecuteRequest_FetchByPath = _ExecuteRequest_FetchByPath;
|
|
36225
|
+
service_pb$1.ExecuteRequest_FetchByPath = ExecuteRequest_FetchByPath;
|
|
36018
36226
|
const _ExecuteRequest_File = class _ExecuteRequest_File extends protobuf_1.Message {
|
|
36019
36227
|
constructor(data2) {
|
|
36020
36228
|
super();
|
|
@@ -38246,6 +38454,10 @@ function requireService_pb() {
|
|
|
38246
38454
|
* @generated from oneof security.v1.Resource.git_ref
|
|
38247
38455
|
*/
|
|
38248
38456
|
__publicField(this, "gitRef", { case: void 0 });
|
|
38457
|
+
/**
|
|
38458
|
+
* @generated from field: google.protobuf.Timestamp last_updated = 6;
|
|
38459
|
+
*/
|
|
38460
|
+
__publicField(this, "lastUpdated");
|
|
38249
38461
|
protobuf_1.proto3.util.initPartial(data2, this);
|
|
38250
38462
|
}
|
|
38251
38463
|
static fromBinary(bytes, options) {
|
|
@@ -38268,7 +38480,8 @@ function requireService_pb() {
|
|
|
38268
38480
|
{ no: 2, name: "literal", kind: "message", T: Resource_Literal, oneof: "config" },
|
|
38269
38481
|
{ no: 5, name: "api_literal", kind: "message", T: Resource_ApiLiteral, oneof: "config" },
|
|
38270
38482
|
{ no: 3, name: "commit_id", kind: "scalar", T: 9, oneof: "git_ref" },
|
|
38271
|
-
{ no: 4, name: "branch_name", kind: "scalar", T: 9, oneof: "git_ref" }
|
|
38483
|
+
{ no: 4, name: "branch_name", kind: "scalar", T: 9, oneof: "git_ref" },
|
|
38484
|
+
{ no: 6, name: "last_updated", kind: "message", T: protobuf_1.Timestamp }
|
|
38272
38485
|
]));
|
|
38273
38486
|
let Resource = _Resource;
|
|
38274
38487
|
service_pb.Resource = Resource;
|
|
@@ -56908,28 +57121,11 @@ __decoratorMetadata(_init, InteractionLayerManager);
|
|
|
56908
57121
|
const generateId$1 = () => {
|
|
56909
57122
|
return Math.random().toString(36).substring(2, 15);
|
|
56910
57123
|
};
|
|
56911
|
-
const getName = (name) => {
|
|
56912
|
-
return {
|
|
56913
|
-
isAnonymous: !name,
|
|
56914
|
-
value: name ?? Math.random().toString(36).substring(7),
|
|
56915
|
-
__isName: true
|
|
56916
|
-
};
|
|
56917
|
-
};
|
|
56918
|
-
const isName = (name) => {
|
|
56919
|
-
return typeof name === "object" && name != null && "__isName" in name;
|
|
56920
|
-
};
|
|
56921
|
-
const isNameEqual = (a3, b3) => {
|
|
56922
|
-
return a3.value === b3.value && a3.isAnonymous === b3.isAnonymous;
|
|
56923
|
-
};
|
|
56924
57124
|
const CancelApisTrigger = {
|
|
56925
57125
|
type: TriggerStepType.CANCEL_APIS,
|
|
56926
|
-
async execute(
|
|
57126
|
+
async execute(_context, step) {
|
|
56927
57127
|
const apis = step.apis;
|
|
56928
|
-
|
|
56929
|
-
context2.rootStore.apis.cancelApi(api2.name, {
|
|
56930
|
-
scopeId: context2.scopeId
|
|
56931
|
-
});
|
|
56932
|
-
}
|
|
57128
|
+
await Promise.all(apis.map((api2) => api2.cancel()));
|
|
56933
57129
|
},
|
|
56934
57130
|
create(apis, onCancel) {
|
|
56935
57131
|
return {
|
|
@@ -56942,12 +57138,29 @@ const CancelApisTrigger = {
|
|
|
56942
57138
|
const RunApisTrigger = {
|
|
56943
57139
|
type: TriggerStepType.RUN_APIS,
|
|
56944
57140
|
async execute(context2, step, onFinish) {
|
|
56945
|
-
const executions = step.apis.map(
|
|
56946
|
-
(api2) => context2.rootStore.apis.runApi(api2.name, {
|
|
56947
|
-
scopeId: context2.scopeId
|
|
56948
|
-
})
|
|
56949
|
-
);
|
|
57141
|
+
const executions = step.apis.map((api2) => api2.run());
|
|
56950
57142
|
return Promise.allSettled(executions).then((responses) => {
|
|
57143
|
+
const error = responses.find(
|
|
57144
|
+
(response) => {
|
|
57145
|
+
var _a2, _b2, _c2;
|
|
57146
|
+
return response.status === "rejected" || ((_a2 = response.value) == null ? void 0 : _a2.errors) && ((_c2 = (_b2 = response.value) == null ? void 0 : _b2.errors) == null ? void 0 : _c2.length) > 0;
|
|
57147
|
+
}
|
|
57148
|
+
);
|
|
57149
|
+
if (!error && step.onSuccess) {
|
|
57150
|
+
runEventHandlers({
|
|
57151
|
+
flow: step.onSuccess,
|
|
57152
|
+
name: context2.name,
|
|
57153
|
+
scopeId: context2.scopeId,
|
|
57154
|
+
additionalContext: context2.additionalContext
|
|
57155
|
+
});
|
|
57156
|
+
} else if (step.onError) {
|
|
57157
|
+
runEventHandlers({
|
|
57158
|
+
flow: step.onError,
|
|
57159
|
+
name: context2.name,
|
|
57160
|
+
scopeId: context2.scopeId,
|
|
57161
|
+
additionalContext: context2.additionalContext
|
|
57162
|
+
});
|
|
57163
|
+
}
|
|
56951
57164
|
onFinish == null ? void 0 : onFinish(responses);
|
|
56952
57165
|
});
|
|
56953
57166
|
},
|
|
@@ -57002,6 +57215,19 @@ const ControlSlideoutTrigger = {
|
|
|
57002
57215
|
};
|
|
57003
57216
|
}
|
|
57004
57217
|
};
|
|
57218
|
+
const getName = (name) => {
|
|
57219
|
+
return {
|
|
57220
|
+
isAnonymous: !name,
|
|
57221
|
+
value: name ?? Math.random().toString(36).substring(7),
|
|
57222
|
+
__isName: true
|
|
57223
|
+
};
|
|
57224
|
+
};
|
|
57225
|
+
const isName = (name) => {
|
|
57226
|
+
return typeof name === "object" && name != null && "__isName" in name;
|
|
57227
|
+
};
|
|
57228
|
+
const isNameEqual = (a3, b3) => {
|
|
57229
|
+
return a3.value === b3.value && a3.isAnonymous === b3.isAnonymous;
|
|
57230
|
+
};
|
|
57005
57231
|
const ResetComponentTrigger = {
|
|
57006
57232
|
type: TriggerStepType.RESET_COMPONENT,
|
|
57007
57233
|
async execute(context2, step) {
|
|
@@ -57261,22 +57487,6 @@ const EventRegistry = {
|
|
|
57261
57487
|
const getRootStore = () => Promise.resolve().then(() => rootStore$1).then(
|
|
57262
57488
|
(module2) => module2.default
|
|
57263
57489
|
);
|
|
57264
|
-
function isApiStep(step) {
|
|
57265
|
-
return step.type === TriggerStepType$1.RUN_APIS;
|
|
57266
|
-
}
|
|
57267
|
-
const runApiScopeHandlers = ({
|
|
57268
|
-
apiNames,
|
|
57269
|
-
scopeInfo,
|
|
57270
|
-
handlerName,
|
|
57271
|
-
additionalContext
|
|
57272
|
-
}) => {
|
|
57273
|
-
apiNames.forEach((apiName) => {
|
|
57274
|
-
const apiScopeInfo = scopeInfo[apiName];
|
|
57275
|
-
if ((apiScopeInfo == null ? void 0 : apiScopeInfo[handlerName]) && typeof apiScopeInfo[handlerName] === "function") {
|
|
57276
|
-
apiScopeInfo[handlerName](additionalContext);
|
|
57277
|
-
}
|
|
57278
|
-
});
|
|
57279
|
-
};
|
|
57280
57490
|
const runEventHandlers = async ({
|
|
57281
57491
|
flow: flow3,
|
|
57282
57492
|
name,
|
|
@@ -57295,49 +57505,7 @@ const runEventHandlers = async ({
|
|
|
57295
57505
|
const stepType = step.type;
|
|
57296
57506
|
const trigger2 = EventRegistry[stepType];
|
|
57297
57507
|
if (trigger2) {
|
|
57298
|
-
await trigger2.execute(context2, step
|
|
57299
|
-
if (isApiStep(step)) {
|
|
57300
|
-
const error = responses.find(
|
|
57301
|
-
(response) => {
|
|
57302
|
-
var _a2, _b2, _c2;
|
|
57303
|
-
return response.status === "rejected" || ((_a2 = response.value) == null ? void 0 : _a2.errors) && ((_c2 = (_b2 = response.value) == null ? void 0 : _b2.errors) == null ? void 0 : _c2.length) > 0;
|
|
57304
|
-
}
|
|
57305
|
-
);
|
|
57306
|
-
const joinedApiNames = step.apis.map((api2) => api2.name).join(", ");
|
|
57307
|
-
const scopeInfo = context2.rootStore.entityManager.getState(scopeId);
|
|
57308
|
-
if (!error) {
|
|
57309
|
-
if (step.onSuccess) {
|
|
57310
|
-
runEventHandlers({
|
|
57311
|
-
flow: step.onSuccess,
|
|
57312
|
-
name: getName(`${joinedApiNames} onSuccess`),
|
|
57313
|
-
scopeId: context2.scopeId,
|
|
57314
|
-
additionalContext
|
|
57315
|
-
});
|
|
57316
|
-
}
|
|
57317
|
-
runApiScopeHandlers({
|
|
57318
|
-
apiNames: step.apis.map((api2) => api2.name),
|
|
57319
|
-
scopeInfo,
|
|
57320
|
-
handlerName: "onSuccess",
|
|
57321
|
-
additionalContext
|
|
57322
|
-
});
|
|
57323
|
-
} else if (error) {
|
|
57324
|
-
if (error && step.onError) {
|
|
57325
|
-
runEventHandlers({
|
|
57326
|
-
flow: step.onError,
|
|
57327
|
-
name: getName(`${joinedApiNames} onError`),
|
|
57328
|
-
scopeId: context2.scopeId,
|
|
57329
|
-
additionalContext
|
|
57330
|
-
});
|
|
57331
|
-
}
|
|
57332
|
-
runApiScopeHandlers({
|
|
57333
|
-
apiNames: step.apis.map((api2) => api2.name),
|
|
57334
|
-
scopeInfo,
|
|
57335
|
-
handlerName: "onError",
|
|
57336
|
-
additionalContext
|
|
57337
|
-
});
|
|
57338
|
-
}
|
|
57339
|
-
}
|
|
57340
|
-
});
|
|
57508
|
+
await trigger2.execute(context2, step);
|
|
57341
57509
|
} else {
|
|
57342
57510
|
console.error(
|
|
57343
57511
|
`Trigger ${step.type} not found`
|
|
@@ -62588,7 +62756,11 @@ class SbEventFlow {
|
|
|
62588
62756
|
}
|
|
62589
62757
|
runApis(apis, onSuccess, onError2) {
|
|
62590
62758
|
return this.addStep(
|
|
62591
|
-
EventRegistry.executeApi.create(
|
|
62759
|
+
EventRegistry.executeApi.create(
|
|
62760
|
+
apis,
|
|
62761
|
+
onSuccess,
|
|
62762
|
+
onError2
|
|
62763
|
+
)
|
|
62592
62764
|
);
|
|
62593
62765
|
}
|
|
62594
62766
|
static cancelApis(apis, onCancel) {
|
|
@@ -63963,7 +64135,7 @@ class ApiManager {
|
|
|
63963
64135
|
instanceId: oldName
|
|
63964
64136
|
});
|
|
63965
64137
|
}
|
|
63966
|
-
async runApi(apiName,
|
|
64138
|
+
async runApi(apiName, scopeId) {
|
|
63967
64139
|
var _a2, _b2, _c2;
|
|
63968
64140
|
const api2 = this.apisByName[apiName];
|
|
63969
64141
|
editorBridge.setApiStarted(apiName);
|
|
@@ -64019,21 +64191,26 @@ class ApiManager {
|
|
|
64019
64191
|
});
|
|
64020
64192
|
const parsedResult = parseStreamResult(events2);
|
|
64021
64193
|
parsedResult && decodeBytestringsInV2ExecutionResponse(parsedResult);
|
|
64022
|
-
const name = {
|
|
64023
|
-
value: apiName,
|
|
64024
|
-
isAnonymous: false
|
|
64025
|
-
};
|
|
64026
|
-
const entity = this.rootStore.entityManager.getEntity(scopeId, name);
|
|
64027
|
-
if (entity) {
|
|
64028
|
-
entity.response = (_c2 = parsedResult == null ? void 0 : parsedResult.output) == null ? void 0 : _c2.result;
|
|
64029
|
-
} else {
|
|
64030
|
-
console.warn("API entity not found", apiName);
|
|
64031
|
-
}
|
|
64032
64194
|
delete this.runningApiControllers[apiName];
|
|
64033
64195
|
editorBridge.setApiResponse(apiName, parsedResult);
|
|
64034
|
-
|
|
64196
|
+
const error = this.findError(parsedResult);
|
|
64197
|
+
const data2 = ((_c2 = parsedResult == null ? void 0 : parsedResult.output) == null ? void 0 : _c2.result) ?? null;
|
|
64198
|
+
return { data: data2, error };
|
|
64035
64199
|
}
|
|
64036
|
-
|
|
64200
|
+
findError(apiResponse) {
|
|
64201
|
+
var _a2;
|
|
64202
|
+
if (apiResponse && "systemError" in apiResponse) {
|
|
64203
|
+
return void 0;
|
|
64204
|
+
}
|
|
64205
|
+
const firstUnhandledError = (_a2 = apiResponse == null ? void 0 : apiResponse.errors) == null ? void 0 : _a2.find(
|
|
64206
|
+
(error) => !(error == null ? void 0 : error.handled)
|
|
64207
|
+
);
|
|
64208
|
+
if (!firstUnhandledError) {
|
|
64209
|
+
return void 0;
|
|
64210
|
+
}
|
|
64211
|
+
return `Error in API: ${firstUnhandledError == null ? void 0 : firstUnhandledError.message}`;
|
|
64212
|
+
}
|
|
64213
|
+
async cancelApi(apiName, _scopeId) {
|
|
64037
64214
|
const abortController = this.runningApiControllers[apiName];
|
|
64038
64215
|
if (!abortController) {
|
|
64039
64216
|
console.warn(`No running API execution found for ${apiName}`);
|
|
@@ -64041,14 +64218,6 @@ class ApiManager {
|
|
|
64041
64218
|
}
|
|
64042
64219
|
abortController.abort();
|
|
64043
64220
|
delete this.runningApiControllers[apiName];
|
|
64044
|
-
const name = {
|
|
64045
|
-
value: apiName,
|
|
64046
|
-
isAnonymous: false
|
|
64047
|
-
};
|
|
64048
|
-
const entity = this.rootStore.entityManager.getEntity(scopeId, name);
|
|
64049
|
-
if (entity) {
|
|
64050
|
-
entity.response = null;
|
|
64051
|
-
}
|
|
64052
64221
|
editorBridge.setApiResponse(apiName, {
|
|
64053
64222
|
status: "STATUS_CANCELLED",
|
|
64054
64223
|
execution: null,
|
|
@@ -109667,10 +109836,10 @@ const Layers$1 = {
|
|
|
109667
109836
|
max: 99999
|
|
109668
109837
|
/* LayerMax */
|
|
109669
109838
|
};
|
|
109670
|
-
const createBindableEntityProxy = (
|
|
109839
|
+
const createBindableEntityProxy = (entityAccessor, identifier2) => {
|
|
109671
109840
|
return new Proxy(
|
|
109672
109841
|
{
|
|
109673
|
-
entity,
|
|
109842
|
+
entity: entityAccessor(),
|
|
109674
109843
|
[BindingMetaSymbol]: identifier2
|
|
109675
109844
|
},
|
|
109676
109845
|
{
|
|
@@ -109678,6 +109847,7 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109678
109847
|
if (prop === BindingMetaSymbol) {
|
|
109679
109848
|
return identifier2;
|
|
109680
109849
|
}
|
|
109850
|
+
const entity = entityAccessor();
|
|
109681
109851
|
if (prop === "toJSON") {
|
|
109682
109852
|
return () => {
|
|
109683
109853
|
if (!entity) return null;
|
|
@@ -109696,6 +109866,7 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109696
109866
|
return entity == null ? void 0 : entity[prop];
|
|
109697
109867
|
},
|
|
109698
109868
|
set(_target, prop, value) {
|
|
109869
|
+
const entity = entityAccessor();
|
|
109699
109870
|
if (!entity) {
|
|
109700
109871
|
return false;
|
|
109701
109872
|
}
|
|
@@ -109703,6 +109874,7 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109703
109874
|
return true;
|
|
109704
109875
|
},
|
|
109705
109876
|
deleteProperty(_target, prop) {
|
|
109877
|
+
const entity = entityAccessor();
|
|
109706
109878
|
if (!entity) {
|
|
109707
109879
|
return false;
|
|
109708
109880
|
}
|
|
@@ -109710,24 +109882,28 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109710
109882
|
return true;
|
|
109711
109883
|
},
|
|
109712
109884
|
has(_target, prop) {
|
|
109885
|
+
const entity = entityAccessor();
|
|
109713
109886
|
if (!entity) {
|
|
109714
109887
|
return false;
|
|
109715
109888
|
}
|
|
109716
109889
|
return prop in entity;
|
|
109717
109890
|
},
|
|
109718
109891
|
ownKeys(_target) {
|
|
109892
|
+
const entity = entityAccessor();
|
|
109719
109893
|
if (!entity) {
|
|
109720
109894
|
return [];
|
|
109721
109895
|
}
|
|
109722
109896
|
return Object.keys(entity);
|
|
109723
109897
|
},
|
|
109724
109898
|
getOwnPropertyDescriptor(_target, prop) {
|
|
109899
|
+
const entity = entityAccessor();
|
|
109725
109900
|
if (!entity) {
|
|
109726
109901
|
return void 0;
|
|
109727
109902
|
}
|
|
109728
109903
|
return Object.getOwnPropertyDescriptor(entity, prop);
|
|
109729
109904
|
},
|
|
109730
109905
|
defineProperty(_target, prop, descriptor) {
|
|
109906
|
+
const entity = entityAccessor();
|
|
109731
109907
|
if (!entity) {
|
|
109732
109908
|
return false;
|
|
109733
109909
|
}
|
|
@@ -109735,6 +109911,7 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109735
109911
|
return true;
|
|
109736
109912
|
},
|
|
109737
109913
|
preventExtensions(_target) {
|
|
109914
|
+
const entity = entityAccessor();
|
|
109738
109915
|
if (!entity) {
|
|
109739
109916
|
return false;
|
|
109740
109917
|
}
|
|
@@ -109742,18 +109919,21 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109742
109919
|
return true;
|
|
109743
109920
|
},
|
|
109744
109921
|
isExtensible(_target) {
|
|
109922
|
+
const entity = entityAccessor();
|
|
109745
109923
|
if (!entity) {
|
|
109746
109924
|
return false;
|
|
109747
109925
|
}
|
|
109748
109926
|
return Object.isExtensible(entity);
|
|
109749
109927
|
},
|
|
109750
109928
|
getPrototypeOf(_target) {
|
|
109929
|
+
const entity = entityAccessor();
|
|
109751
109930
|
if (!entity) {
|
|
109752
109931
|
return null;
|
|
109753
109932
|
}
|
|
109754
109933
|
return Object.getPrototypeOf(entity);
|
|
109755
109934
|
},
|
|
109756
109935
|
setPrototypeOf(_target, proto4) {
|
|
109936
|
+
const entity = entityAccessor();
|
|
109757
109937
|
if (!entity) {
|
|
109758
109938
|
return false;
|
|
109759
109939
|
}
|
|
@@ -109763,91 +109943,6 @@ const createBindableEntityProxy = (entity, identifier2) => {
|
|
|
109763
109943
|
}
|
|
109764
109944
|
);
|
|
109765
109945
|
};
|
|
109766
|
-
function createEntityProxy$1(entities, entityName) {
|
|
109767
|
-
return new Proxy(
|
|
109768
|
-
{},
|
|
109769
|
-
{
|
|
109770
|
-
get(_target, prop) {
|
|
109771
|
-
const entity = entities[entityName];
|
|
109772
|
-
return entity == null ? void 0 : entity[prop];
|
|
109773
|
-
},
|
|
109774
|
-
set(_target, prop, value) {
|
|
109775
|
-
const entity = entities[entityName];
|
|
109776
|
-
if (!entity) {
|
|
109777
|
-
return false;
|
|
109778
|
-
}
|
|
109779
|
-
entity[prop] = value;
|
|
109780
|
-
return true;
|
|
109781
|
-
},
|
|
109782
|
-
deleteProperty(_target, prop) {
|
|
109783
|
-
const entity = entities[entityName];
|
|
109784
|
-
if (!entity) {
|
|
109785
|
-
return false;
|
|
109786
|
-
}
|
|
109787
|
-
delete entity[prop];
|
|
109788
|
-
return true;
|
|
109789
|
-
},
|
|
109790
|
-
has(_target, prop) {
|
|
109791
|
-
const entity = entities[entityName];
|
|
109792
|
-
if (!entity) {
|
|
109793
|
-
return false;
|
|
109794
|
-
}
|
|
109795
|
-
return prop in entity;
|
|
109796
|
-
},
|
|
109797
|
-
ownKeys(_target) {
|
|
109798
|
-
const entity = entities[entityName];
|
|
109799
|
-
if (!entity) {
|
|
109800
|
-
return [];
|
|
109801
|
-
}
|
|
109802
|
-
return Object.keys(entity);
|
|
109803
|
-
},
|
|
109804
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
109805
|
-
const entity = entities[entityName];
|
|
109806
|
-
if (!entity) {
|
|
109807
|
-
return void 0;
|
|
109808
|
-
}
|
|
109809
|
-
return Object.getOwnPropertyDescriptor(entity, prop);
|
|
109810
|
-
},
|
|
109811
|
-
defineProperty(_target, prop, descriptor) {
|
|
109812
|
-
const entity = entities[entityName];
|
|
109813
|
-
if (!entity) {
|
|
109814
|
-
return false;
|
|
109815
|
-
}
|
|
109816
|
-
return Object.defineProperty(entity, prop, descriptor);
|
|
109817
|
-
},
|
|
109818
|
-
preventExtensions(_target) {
|
|
109819
|
-
const entity = entities[entityName];
|
|
109820
|
-
if (!entity) {
|
|
109821
|
-
return false;
|
|
109822
|
-
}
|
|
109823
|
-
Object.preventExtensions(entity);
|
|
109824
|
-
return true;
|
|
109825
|
-
},
|
|
109826
|
-
isExtensible(_target) {
|
|
109827
|
-
const entity = entities[entityName];
|
|
109828
|
-
if (!entity) {
|
|
109829
|
-
return false;
|
|
109830
|
-
}
|
|
109831
|
-
return Object.isExtensible(entity);
|
|
109832
|
-
},
|
|
109833
|
-
getPrototypeOf(_target) {
|
|
109834
|
-
const entity = entities[entityName];
|
|
109835
|
-
if (!entity) {
|
|
109836
|
-
return null;
|
|
109837
|
-
}
|
|
109838
|
-
return Object.getPrototypeOf(entity);
|
|
109839
|
-
},
|
|
109840
|
-
setPrototypeOf(_target, proto4) {
|
|
109841
|
-
const entity = entities[entityName];
|
|
109842
|
-
if (!entity) {
|
|
109843
|
-
return false;
|
|
109844
|
-
}
|
|
109845
|
-
Object.setPrototypeOf(entity, proto4);
|
|
109846
|
-
return true;
|
|
109847
|
-
}
|
|
109848
|
-
}
|
|
109849
|
-
);
|
|
109850
|
-
}
|
|
109851
109946
|
const existingScopeIds = /* @__PURE__ */ new Set();
|
|
109852
109947
|
function internalCreateScope(getInitialEntities, options) {
|
|
109853
109948
|
return createSbScope(getInitialEntities, options);
|
|
@@ -109885,25 +109980,19 @@ function createSbScope(getInitialEntities, options) {
|
|
|
109885
109980
|
if (typeof key2 !== "string") {
|
|
109886
109981
|
return void 0;
|
|
109887
109982
|
}
|
|
109888
|
-
|
|
109889
|
-
|
|
109890
|
-
|
|
109891
|
-
|
|
109892
|
-
|
|
109983
|
+
return createBindableEntityProxy(
|
|
109984
|
+
() => rootStore.entityManager.getEntity(scopeId, {
|
|
109985
|
+
value: key2,
|
|
109986
|
+
isAnonymous: false
|
|
109987
|
+
}),
|
|
109988
|
+
getBinding(key2)
|
|
109989
|
+
);
|
|
109893
109990
|
}
|
|
109894
109991
|
}
|
|
109895
109992
|
);
|
|
109896
|
-
const lazyEntities = new Proxy({}, {
|
|
109897
|
-
get(_target, key2) {
|
|
109898
|
-
if (typeof key2 !== "string") {
|
|
109899
|
-
return void 0;
|
|
109900
|
-
}
|
|
109901
|
-
return createEntityProxy$1(entities, key2);
|
|
109902
|
-
}
|
|
109903
|
-
});
|
|
109904
109993
|
return {
|
|
109905
109994
|
entities,
|
|
109906
|
-
initialEntities: getInitialEntities({ entities
|
|
109995
|
+
initialEntities: getInitialEntities({ entities }),
|
|
109907
109996
|
scopeInfo: {
|
|
109908
109997
|
scopeId,
|
|
109909
109998
|
name,
|
|
@@ -143484,14 +143573,14 @@ function getLoaderFn(options) {
|
|
|
143484
143573
|
if (!(loader === "all")) return [3, 3];
|
|
143485
143574
|
return [4, import(
|
|
143486
143575
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
143487
|
-
"./allPathsLoader-
|
|
143576
|
+
"./allPathsLoader-BsylPJdg.js"
|
|
143488
143577
|
)];
|
|
143489
143578
|
case 2:
|
|
143490
143579
|
return [2, _b2.sent().allPathsLoader];
|
|
143491
143580
|
case 3:
|
|
143492
143581
|
return [4, import(
|
|
143493
143582
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
143494
|
-
"./splitPathsBySizeLoader-
|
|
143583
|
+
"./splitPathsBySizeLoader-BWlBkTcI.js"
|
|
143495
143584
|
)];
|
|
143496
143585
|
case 4:
|
|
143497
143586
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -177402,31 +177491,32 @@ const propertiesDefinition = {
|
|
|
177402
177491
|
isRunning: Prop.boolean().default(false).readAndWrite()
|
|
177403
177492
|
}),
|
|
177404
177493
|
functions: Section.category("Derived").children({
|
|
177405
|
-
run: Prop.function(function(_s2) {
|
|
177494
|
+
run: Prop.function(async function(_s2) {
|
|
177495
|
+
var _a2, _b2;
|
|
177406
177496
|
const api2 = this;
|
|
177497
|
+
api2.error = null;
|
|
177407
177498
|
api2.isRunning = true;
|
|
177408
|
-
rootStore.apis.runApi(api2.name,
|
|
177409
|
-
|
|
177410
|
-
|
|
177411
|
-
|
|
177412
|
-
|
|
177413
|
-
|
|
177414
|
-
|
|
177415
|
-
|
|
177416
|
-
|
|
177417
|
-
|
|
177418
|
-
api2.
|
|
177419
|
-
|
|
177420
|
-
api2.
|
|
177421
|
-
|
|
177422
|
-
|
|
177499
|
+
const result = await rootStore.apis.runApi(api2.name, api2.scopeId).catch(
|
|
177500
|
+
(err) => ({
|
|
177501
|
+
error: err,
|
|
177502
|
+
data: null
|
|
177503
|
+
})
|
|
177504
|
+
);
|
|
177505
|
+
api2.isRunning = false;
|
|
177506
|
+
if (!result.error) {
|
|
177507
|
+
api2.response = result.data;
|
|
177508
|
+
await ((_a2 = api2.onSuccess) == null ? void 0 : _a2.call(api2));
|
|
177509
|
+
return api2.response;
|
|
177510
|
+
} else {
|
|
177511
|
+
api2.error = result.error;
|
|
177512
|
+
await ((_b2 = api2.onError) == null ? void 0 : _b2.call(api2));
|
|
177513
|
+
return null;
|
|
177514
|
+
}
|
|
177423
177515
|
}),
|
|
177424
|
-
cancel: Prop.function(function(_s2) {
|
|
177516
|
+
cancel: Prop.function(async function(_s2) {
|
|
177425
177517
|
const api2 = this;
|
|
177426
177518
|
api2.isRunning = false;
|
|
177427
|
-
rootStore.apis.cancelApi(api2.name,
|
|
177428
|
-
scopeId: api2.scopeId
|
|
177429
|
-
});
|
|
177519
|
+
await rootStore.apis.cancelApi(api2.name, api2.scopeId);
|
|
177430
177520
|
})
|
|
177431
177521
|
})
|
|
177432
177522
|
};
|
|
@@ -178410,9 +178500,8 @@ const EmbedWrapper = (props) => {
|
|
|
178410
178500
|
if (!api2 || api2.type !== "SbApi") {
|
|
178411
178501
|
throw new Error(`API ${apiName} not found`);
|
|
178412
178502
|
}
|
|
178413
|
-
const flow3 = SbEventFlow.start().runApis([api2]);
|
|
178414
178503
|
runEventHandlers({
|
|
178415
|
-
flow:
|
|
178504
|
+
flow: SbEventFlow.runApis([api2]),
|
|
178416
178505
|
name: getName(apiName),
|
|
178417
178506
|
scopeId,
|
|
178418
178507
|
additionalContext: {
|
|
@@ -191616,4 +191705,4 @@ export {
|
|
|
191616
191705
|
SbProvider as y,
|
|
191617
191706
|
SbEventFlow as z
|
|
191618
191707
|
};
|
|
191619
|
-
//# sourceMappingURL=index-
|
|
191708
|
+
//# sourceMappingURL=index-Crq-gtAN.js.map
|