@justworkflowit/cdk-constructs 0.0.96 → 0.0.98
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.
|
@@ -56753,7 +56753,7 @@ var require_models_0 = __commonJS({
|
|
|
56753
56753
|
"../JustWorkflowItApiClient/dist-cjs/models/models_0.js"(exports2) {
|
|
56754
56754
|
"use strict";
|
|
56755
56755
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56756
|
-
exports2.WorkflowVersionSelector = exports2.
|
|
56756
|
+
exports2.WorkflowVersionSelector = exports2.WorkflowMetricType = exports2.TimeBucket = exports2.MetricAggregation = exports2.JobStatus = exports2.ExecutionStatus = exports2.OrgRole = exports2.PermissionEnum = exports2.ValidationError = exports2.UnhandledError = exports2.NotFoundError = exports2.AuthorizationError = exports2.AuthenticationError = void 0;
|
|
56757
56757
|
var JustWorkflowItServiceException_1 = require_JustWorkflowItServiceException();
|
|
56758
56758
|
var AuthenticationError = class _AuthenticationError extends JustWorkflowItServiceException_1.JustWorkflowItServiceException {
|
|
56759
56759
|
name = "AuthenticationError";
|
|
@@ -56924,9 +56924,6 @@ var require_models_0 = __commonJS({
|
|
|
56924
56924
|
step_failures: "step_failures",
|
|
56925
56925
|
step_retries: "step_retries"
|
|
56926
56926
|
};
|
|
56927
|
-
exports2.WorkflowVersionAlias = {
|
|
56928
|
-
LIVE: "$LIVE"
|
|
56929
|
-
};
|
|
56930
56927
|
var WorkflowVersionSelector;
|
|
56931
56928
|
(function(WorkflowVersionSelector2) {
|
|
56932
56929
|
WorkflowVersionSelector2.visit = (value, visitor) => {
|
|
@@ -56934,8 +56931,8 @@ var require_models_0 = __commonJS({
|
|
|
56934
56931
|
return visitor.versionId(value.versionId);
|
|
56935
56932
|
if (value.versionNumber !== void 0)
|
|
56936
56933
|
return visitor.versionNumber(value.versionNumber);
|
|
56937
|
-
if (value.
|
|
56938
|
-
return visitor.
|
|
56934
|
+
if (value.tag !== void 0)
|
|
56935
|
+
return visitor.tag(value.tag);
|
|
56939
56936
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
56940
56937
|
};
|
|
56941
56938
|
})(WorkflowVersionSelector || (exports2.WorkflowVersionSelector = WorkflowVersionSelector = {}));
|
|
@@ -56947,8 +56944,8 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
56947
56944
|
"../JustWorkflowItApiClient/dist-cjs/protocols/Aws_restJson1.js"(exports2) {
|
|
56948
56945
|
"use strict";
|
|
56949
56946
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56950
|
-
exports2.
|
|
56951
|
-
exports2.de_UpdateRoleCommand = exports2.de_UpdateResourcePoolCommand = exports2.de_UpdateOrganizationMembershipCommand = exports2.de_UpdateOrganizationCommand = exports2.de_UpdateApiAuthTokenCommand = exports2.de_SubmitJobCommand = exports2.de_RevokeApiAuthTokenCommand = exports2.de_ResumeJobCommand = exports2.de_RemoveOrganizationMembershipCommand = exports2.de_RejectOrganizationInvitationCommand = exports2.de_RegisterWorkflowVersionCommand = exports2.de_RegisterWorkflowCommand = exports2.de_ListWorkflowVersionsCommand = exports2.de_ListWorkflowsCommand = exports2.de_ListRolesCommand = exports2.de_ListResourcePoolsCommand = exports2.de_ListOrganizationsCommand = exports2.de_ListJobsCommand = exports2.de_ListApiAuthTokensCommand = exports2.de_GetWorkflowVersionCommand = exports2.de_GetWorkflowStateCommand = exports2.de_GetWorkflowMetricTimeSeriesCommand = exports2.de_GetWorkflowCommand = exports2.de_GetRoleCommand = exports2.de_GetResourcePoolCommand = exports2.de_GetOrganizationInvitationCommand = exports2.de_GetOrganizationCommand = exports2.de_GetJobCommand = exports2.de_GetApiAuthTokenCommand = exports2.de_DeleteRoleCommand = exports2.de_DeleteResourcePoolCommand = exports2.de_DeleteOrganizationCommand = void 0;
|
|
56947
|
+
exports2.de_CreateOrganizationInvitationCommand = exports2.de_CreateOrganizationCommand = exports2.de_CreateInterestCommand = exports2.de_CreateApiAuthTokenCommand = exports2.de_CancelOrganizationInvitationCommand = exports2.de_CancelJobCommand = exports2.de_AcceptOrganizationInvitationCommand = exports2.se_UpdateRoleCommand = exports2.se_UpdateResourcePoolCommand = exports2.se_UpdateOrganizationMembershipCommand = exports2.se_UpdateOrganizationCommand = exports2.se_UpdateApiAuthTokenCommand = exports2.se_SubmitJobCommand = exports2.se_SetWorkflowVersionTagCommand = exports2.se_RevokeApiAuthTokenCommand = exports2.se_ResumeJobCommand = exports2.se_RemoveOrganizationMembershipCommand = exports2.se_RejectOrganizationInvitationCommand = exports2.se_RegisterWorkflowVersionCommand = exports2.se_RegisterWorkflowCommand = exports2.se_ListWorkflowVersionsCommand = exports2.se_ListWorkflowsCommand = exports2.se_ListRolesCommand = exports2.se_ListResourcePoolsCommand = exports2.se_ListOrganizationsCommand = exports2.se_ListJobsCommand = exports2.se_ListApiAuthTokensCommand = exports2.se_GetWorkflowVersionCommand = exports2.se_GetWorkflowStateCommand = exports2.se_GetWorkflowMetricTimeSeriesCommand = exports2.se_GetWorkflowCommand = exports2.se_GetTaggedWorkflowVersionCommand = exports2.se_GetRoleCommand = exports2.se_GetResourcePoolCommand = exports2.se_GetOrganizationInvitationCommand = exports2.se_GetOrganizationCommand = exports2.se_GetJobCommand = exports2.se_GetApiAuthTokenCommand = exports2.se_DeleteRoleCommand = exports2.se_DeleteResourcePoolCommand = exports2.se_DeleteOrganizationCommand = exports2.se_CreateRoleCommand = exports2.se_CreateResourcePoolCommand = exports2.se_CreateOrganizationInvitationCommand = exports2.se_CreateOrganizationCommand = exports2.se_CreateInterestCommand = exports2.se_CreateApiAuthTokenCommand = exports2.se_CancelOrganizationInvitationCommand = exports2.se_CancelJobCommand = exports2.se_AcceptOrganizationInvitationCommand = void 0;
|
|
56948
|
+
exports2.de_UpdateRoleCommand = exports2.de_UpdateResourcePoolCommand = exports2.de_UpdateOrganizationMembershipCommand = exports2.de_UpdateOrganizationCommand = exports2.de_UpdateApiAuthTokenCommand = exports2.de_SubmitJobCommand = exports2.de_SetWorkflowVersionTagCommand = exports2.de_RevokeApiAuthTokenCommand = exports2.de_ResumeJobCommand = exports2.de_RemoveOrganizationMembershipCommand = exports2.de_RejectOrganizationInvitationCommand = exports2.de_RegisterWorkflowVersionCommand = exports2.de_RegisterWorkflowCommand = exports2.de_ListWorkflowVersionsCommand = exports2.de_ListWorkflowsCommand = exports2.de_ListRolesCommand = exports2.de_ListResourcePoolsCommand = exports2.de_ListOrganizationsCommand = exports2.de_ListJobsCommand = exports2.de_ListApiAuthTokensCommand = exports2.de_GetWorkflowVersionCommand = exports2.de_GetWorkflowStateCommand = exports2.de_GetWorkflowMetricTimeSeriesCommand = exports2.de_GetWorkflowCommand = exports2.de_GetTaggedWorkflowVersionCommand = exports2.de_GetRoleCommand = exports2.de_GetResourcePoolCommand = exports2.de_GetOrganizationInvitationCommand = exports2.de_GetOrganizationCommand = exports2.de_GetJobCommand = exports2.de_GetApiAuthTokenCommand = exports2.de_DeleteRoleCommand = exports2.de_DeleteResourcePoolCommand = exports2.de_DeleteOrganizationCommand = exports2.de_CreateRoleCommand = exports2.de_CreateResourcePoolCommand = void 0;
|
|
56952
56949
|
var JustWorkflowItServiceException_1 = require_JustWorkflowItServiceException();
|
|
56953
56950
|
var models_0_1 = require_models_0();
|
|
56954
56951
|
var core_1 = (init_dist_es7(), __toCommonJS(dist_es_exports7));
|
|
@@ -57188,6 +57185,18 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57188
57185
|
return b3.build();
|
|
57189
57186
|
};
|
|
57190
57187
|
exports2.se_GetRoleCommand = se_GetRoleCommand;
|
|
57188
|
+
var se_GetTaggedWorkflowVersionCommand = async (input, context) => {
|
|
57189
|
+
const b3 = (0, core_2.requestBuilder)(input, context);
|
|
57190
|
+
const headers = {};
|
|
57191
|
+
b3.bp("/organizations/{organizationId}/workflows/{workflowId}/tags/{tag}");
|
|
57192
|
+
b3.p("organizationId", () => input.organizationId, "{organizationId}", false);
|
|
57193
|
+
b3.p("workflowId", () => input.workflowId, "{workflowId}", false);
|
|
57194
|
+
b3.p("tag", () => input.tag, "{tag}", false);
|
|
57195
|
+
let body;
|
|
57196
|
+
b3.m("GET").h(headers).b(body);
|
|
57197
|
+
return b3.build();
|
|
57198
|
+
};
|
|
57199
|
+
exports2.se_GetTaggedWorkflowVersionCommand = se_GetTaggedWorkflowVersionCommand;
|
|
57191
57200
|
var se_GetWorkflowCommand = async (input, context) => {
|
|
57192
57201
|
const b3 = (0, core_2.requestBuilder)(input, context);
|
|
57193
57202
|
const headers = {};
|
|
@@ -57389,6 +57398,23 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57389
57398
|
return b3.build();
|
|
57390
57399
|
};
|
|
57391
57400
|
exports2.se_RevokeApiAuthTokenCommand = se_RevokeApiAuthTokenCommand;
|
|
57401
|
+
var se_SetWorkflowVersionTagCommand = async (input, context) => {
|
|
57402
|
+
const b3 = (0, core_2.requestBuilder)(input, context);
|
|
57403
|
+
const headers = {
|
|
57404
|
+
"content-type": "application/json"
|
|
57405
|
+
};
|
|
57406
|
+
b3.bp("/organizations/{organizationId}/workflows/{workflowId}/tags/{tag}");
|
|
57407
|
+
b3.p("organizationId", () => input.organizationId, "{organizationId}", false);
|
|
57408
|
+
b3.p("workflowId", () => input.workflowId, "{workflowId}", false);
|
|
57409
|
+
b3.p("tag", () => input.tag, "{tag}", false);
|
|
57410
|
+
let body;
|
|
57411
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
57412
|
+
"versionId": []
|
|
57413
|
+
}));
|
|
57414
|
+
b3.m("PUT").h(headers).b(body);
|
|
57415
|
+
return b3.build();
|
|
57416
|
+
};
|
|
57417
|
+
exports2.se_SetWorkflowVersionTagCommand = se_SetWorkflowVersionTagCommand;
|
|
57392
57418
|
var se_SubmitJobCommand = async (input, context) => {
|
|
57393
57419
|
const b3 = (0, core_2.requestBuilder)(input, context);
|
|
57394
57420
|
const headers = {
|
|
@@ -57770,6 +57796,22 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57770
57796
|
return contents;
|
|
57771
57797
|
};
|
|
57772
57798
|
exports2.de_GetRoleCommand = de_GetRoleCommand;
|
|
57799
|
+
var de_GetTaggedWorkflowVersionCommand = async (output, context) => {
|
|
57800
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
57801
|
+
return de_CommandError3(output, context);
|
|
57802
|
+
}
|
|
57803
|
+
const contents = (0, smithy_client_1.map)({
|
|
57804
|
+
$metadata: deserializeMetadata3(output)
|
|
57805
|
+
});
|
|
57806
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
57807
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
57808
|
+
"versionId": smithy_client_1.expectString,
|
|
57809
|
+
"versionNumber": smithy_client_1.expectInt32
|
|
57810
|
+
});
|
|
57811
|
+
Object.assign(contents, doc);
|
|
57812
|
+
return contents;
|
|
57813
|
+
};
|
|
57814
|
+
exports2.de_GetTaggedWorkflowVersionCommand = de_GetTaggedWorkflowVersionCommand;
|
|
57773
57815
|
var de_GetWorkflowCommand = async (output, context) => {
|
|
57774
57816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
57775
57817
|
return de_CommandError3(output, context);
|
|
@@ -57828,6 +57870,7 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57828
57870
|
const doc = (0, smithy_client_1.take)(data, {
|
|
57829
57871
|
"createdAt": (_2) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_2)),
|
|
57830
57872
|
"definition": smithy_client_1.expectString,
|
|
57873
|
+
"tags": smithy_client_1._json,
|
|
57831
57874
|
"versionId": smithy_client_1.expectString,
|
|
57832
57875
|
"versionNumber": smithy_client_1.expectInt32,
|
|
57833
57876
|
"workflowId": smithy_client_1.expectString
|
|
@@ -58027,6 +58070,21 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
58027
58070
|
return contents;
|
|
58028
58071
|
};
|
|
58029
58072
|
exports2.de_RevokeApiAuthTokenCommand = de_RevokeApiAuthTokenCommand;
|
|
58073
|
+
var de_SetWorkflowVersionTagCommand = async (output, context) => {
|
|
58074
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
58075
|
+
return de_CommandError3(output, context);
|
|
58076
|
+
}
|
|
58077
|
+
const contents = (0, smithy_client_1.map)({
|
|
58078
|
+
$metadata: deserializeMetadata3(output)
|
|
58079
|
+
});
|
|
58080
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
58081
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
58082
|
+
"success": smithy_client_1.expectBoolean
|
|
58083
|
+
});
|
|
58084
|
+
Object.assign(contents, doc);
|
|
58085
|
+
return contents;
|
|
58086
|
+
};
|
|
58087
|
+
exports2.de_SetWorkflowVersionTagCommand = de_SetWorkflowVersionTagCommand;
|
|
58030
58088
|
var de_SubmitJobCommand = async (output, context) => {
|
|
58031
58089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
58032
58090
|
return de_CommandError3(output, context);
|
|
@@ -58371,6 +58429,7 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
58371
58429
|
return (0, smithy_client_1.take)(output, {
|
|
58372
58430
|
"createdAt": (_2) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_2)),
|
|
58373
58431
|
"definition": smithy_client_1.expectString,
|
|
58432
|
+
"tags": smithy_client_1._json,
|
|
58374
58433
|
"versionId": smithy_client_1.expectString,
|
|
58375
58434
|
"versionNumber": smithy_client_1.expectInt32
|
|
58376
58435
|
});
|
|
@@ -58797,6 +58856,28 @@ var require_GetRoleCommand = __commonJS({
|
|
|
58797
58856
|
}
|
|
58798
58857
|
});
|
|
58799
58858
|
|
|
58859
|
+
// ../JustWorkflowItApiClient/dist-cjs/commands/GetTaggedWorkflowVersionCommand.js
|
|
58860
|
+
var require_GetTaggedWorkflowVersionCommand = __commonJS({
|
|
58861
|
+
"../JustWorkflowItApiClient/dist-cjs/commands/GetTaggedWorkflowVersionCommand.js"(exports2) {
|
|
58862
|
+
"use strict";
|
|
58863
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58864
|
+
exports2.GetTaggedWorkflowVersionCommand = exports2.$Command = void 0;
|
|
58865
|
+
var Aws_restJson1_1 = require_Aws_restJson1();
|
|
58866
|
+
var middleware_serde_1 = require_dist_cjs5();
|
|
58867
|
+
var smithy_client_1 = require_dist_cjs20();
|
|
58868
|
+
Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() {
|
|
58869
|
+
return smithy_client_1.Command;
|
|
58870
|
+
} });
|
|
58871
|
+
var GetTaggedWorkflowVersionCommand = class extends smithy_client_1.Command.classBuilder().m(function(Command, cs, config, o3) {
|
|
58872
|
+
return [
|
|
58873
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize)
|
|
58874
|
+
];
|
|
58875
|
+
}).s("JustWorkflowItService", "GetTaggedWorkflowVersion", {}).n("JustWorkflowItClient", "GetTaggedWorkflowVersionCommand").f(void 0, void 0).ser(Aws_restJson1_1.se_GetTaggedWorkflowVersionCommand).de(Aws_restJson1_1.de_GetTaggedWorkflowVersionCommand).build() {
|
|
58876
|
+
};
|
|
58877
|
+
exports2.GetTaggedWorkflowVersionCommand = GetTaggedWorkflowVersionCommand;
|
|
58878
|
+
}
|
|
58879
|
+
});
|
|
58880
|
+
|
|
58800
58881
|
// ../JustWorkflowItApiClient/dist-cjs/commands/GetWorkflowCommand.js
|
|
58801
58882
|
var require_GetWorkflowCommand = __commonJS({
|
|
58802
58883
|
"../JustWorkflowItApiClient/dist-cjs/commands/GetWorkflowCommand.js"(exports2) {
|
|
@@ -59171,6 +59252,28 @@ var require_RevokeApiAuthTokenCommand = __commonJS({
|
|
|
59171
59252
|
}
|
|
59172
59253
|
});
|
|
59173
59254
|
|
|
59255
|
+
// ../JustWorkflowItApiClient/dist-cjs/commands/SetWorkflowVersionTagCommand.js
|
|
59256
|
+
var require_SetWorkflowVersionTagCommand = __commonJS({
|
|
59257
|
+
"../JustWorkflowItApiClient/dist-cjs/commands/SetWorkflowVersionTagCommand.js"(exports2) {
|
|
59258
|
+
"use strict";
|
|
59259
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
59260
|
+
exports2.SetWorkflowVersionTagCommand = exports2.$Command = void 0;
|
|
59261
|
+
var Aws_restJson1_1 = require_Aws_restJson1();
|
|
59262
|
+
var middleware_serde_1 = require_dist_cjs5();
|
|
59263
|
+
var smithy_client_1 = require_dist_cjs20();
|
|
59264
|
+
Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() {
|
|
59265
|
+
return smithy_client_1.Command;
|
|
59266
|
+
} });
|
|
59267
|
+
var SetWorkflowVersionTagCommand = class extends smithy_client_1.Command.classBuilder().m(function(Command, cs, config, o3) {
|
|
59268
|
+
return [
|
|
59269
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize)
|
|
59270
|
+
];
|
|
59271
|
+
}).s("JustWorkflowItService", "SetWorkflowVersionTag", {}).n("JustWorkflowItClient", "SetWorkflowVersionTagCommand").f(void 0, void 0).ser(Aws_restJson1_1.se_SetWorkflowVersionTagCommand).de(Aws_restJson1_1.de_SetWorkflowVersionTagCommand).build() {
|
|
59272
|
+
};
|
|
59273
|
+
exports2.SetWorkflowVersionTagCommand = SetWorkflowVersionTagCommand;
|
|
59274
|
+
}
|
|
59275
|
+
});
|
|
59276
|
+
|
|
59174
59277
|
// ../JustWorkflowItApiClient/dist-cjs/commands/SubmitJobCommand.js
|
|
59175
59278
|
var require_SubmitJobCommand = __commonJS({
|
|
59176
59279
|
"../JustWorkflowItApiClient/dist-cjs/commands/SubmitJobCommand.js"(exports2) {
|
|
@@ -59328,6 +59431,7 @@ var require_JustWorkflowIt = __commonJS({
|
|
|
59328
59431
|
var GetOrganizationInvitationCommand_1 = require_GetOrganizationInvitationCommand();
|
|
59329
59432
|
var GetResourcePoolCommand_1 = require_GetResourcePoolCommand();
|
|
59330
59433
|
var GetRoleCommand_1 = require_GetRoleCommand();
|
|
59434
|
+
var GetTaggedWorkflowVersionCommand_1 = require_GetTaggedWorkflowVersionCommand();
|
|
59331
59435
|
var GetWorkflowCommand_1 = require_GetWorkflowCommand();
|
|
59332
59436
|
var GetWorkflowMetricTimeSeriesCommand_1 = require_GetWorkflowMetricTimeSeriesCommand();
|
|
59333
59437
|
var GetWorkflowStateCommand_1 = require_GetWorkflowStateCommand();
|
|
@@ -59345,6 +59449,7 @@ var require_JustWorkflowIt = __commonJS({
|
|
|
59345
59449
|
var RemoveOrganizationMembershipCommand_1 = require_RemoveOrganizationMembershipCommand();
|
|
59346
59450
|
var ResumeJobCommand_1 = require_ResumeJobCommand();
|
|
59347
59451
|
var RevokeApiAuthTokenCommand_1 = require_RevokeApiAuthTokenCommand();
|
|
59452
|
+
var SetWorkflowVersionTagCommand_1 = require_SetWorkflowVersionTagCommand();
|
|
59348
59453
|
var SubmitJobCommand_1 = require_SubmitJobCommand();
|
|
59349
59454
|
var UpdateApiAuthTokenCommand_1 = require_UpdateApiAuthTokenCommand();
|
|
59350
59455
|
var UpdateOrganizationCommand_1 = require_UpdateOrganizationCommand();
|
|
@@ -59371,6 +59476,7 @@ var require_JustWorkflowIt = __commonJS({
|
|
|
59371
59476
|
GetOrganizationInvitationCommand: GetOrganizationInvitationCommand_1.GetOrganizationInvitationCommand,
|
|
59372
59477
|
GetResourcePoolCommand: GetResourcePoolCommand_1.GetResourcePoolCommand,
|
|
59373
59478
|
GetRoleCommand: GetRoleCommand_1.GetRoleCommand,
|
|
59479
|
+
GetTaggedWorkflowVersionCommand: GetTaggedWorkflowVersionCommand_1.GetTaggedWorkflowVersionCommand,
|
|
59374
59480
|
GetWorkflowCommand: GetWorkflowCommand_1.GetWorkflowCommand,
|
|
59375
59481
|
GetWorkflowMetricTimeSeriesCommand: GetWorkflowMetricTimeSeriesCommand_1.GetWorkflowMetricTimeSeriesCommand,
|
|
59376
59482
|
GetWorkflowStateCommand: GetWorkflowStateCommand_1.GetWorkflowStateCommand,
|
|
@@ -59388,6 +59494,7 @@ var require_JustWorkflowIt = __commonJS({
|
|
|
59388
59494
|
RemoveOrganizationMembershipCommand: RemoveOrganizationMembershipCommand_1.RemoveOrganizationMembershipCommand,
|
|
59389
59495
|
ResumeJobCommand: ResumeJobCommand_1.ResumeJobCommand,
|
|
59390
59496
|
RevokeApiAuthTokenCommand: RevokeApiAuthTokenCommand_1.RevokeApiAuthTokenCommand,
|
|
59497
|
+
SetWorkflowVersionTagCommand: SetWorkflowVersionTagCommand_1.SetWorkflowVersionTagCommand,
|
|
59391
59498
|
SubmitJobCommand: SubmitJobCommand_1.SubmitJobCommand,
|
|
59392
59499
|
UpdateApiAuthTokenCommand: UpdateApiAuthTokenCommand_1.UpdateApiAuthTokenCommand,
|
|
59393
59500
|
UpdateOrganizationCommand: UpdateOrganizationCommand_1.UpdateOrganizationCommand,
|
|
@@ -59426,6 +59533,7 @@ var require_commands = __commonJS({
|
|
|
59426
59533
|
tslib_1.__exportStar(require_GetOrganizationInvitationCommand(), exports2);
|
|
59427
59534
|
tslib_1.__exportStar(require_GetResourcePoolCommand(), exports2);
|
|
59428
59535
|
tslib_1.__exportStar(require_GetRoleCommand(), exports2);
|
|
59536
|
+
tslib_1.__exportStar(require_GetTaggedWorkflowVersionCommand(), exports2);
|
|
59429
59537
|
tslib_1.__exportStar(require_GetWorkflowCommand(), exports2);
|
|
59430
59538
|
tslib_1.__exportStar(require_GetWorkflowMetricTimeSeriesCommand(), exports2);
|
|
59431
59539
|
tslib_1.__exportStar(require_GetWorkflowStateCommand(), exports2);
|
|
@@ -59443,6 +59551,7 @@ var require_commands = __commonJS({
|
|
|
59443
59551
|
tslib_1.__exportStar(require_RemoveOrganizationMembershipCommand(), exports2);
|
|
59444
59552
|
tslib_1.__exportStar(require_ResumeJobCommand(), exports2);
|
|
59445
59553
|
tslib_1.__exportStar(require_RevokeApiAuthTokenCommand(), exports2);
|
|
59554
|
+
tslib_1.__exportStar(require_SetWorkflowVersionTagCommand(), exports2);
|
|
59446
59555
|
tslib_1.__exportStar(require_SubmitJobCommand(), exports2);
|
|
59447
59556
|
tslib_1.__exportStar(require_UpdateApiAuthTokenCommand(), exports2);
|
|
59448
59557
|
tslib_1.__exportStar(require_UpdateOrganizationCommand(), exports2);
|
|
@@ -66103,22 +66212,46 @@ async function deployWorkflows(organizationId, bucket, keys) {
|
|
|
66103
66212
|
const definitionJson = JSON.parse(definitionStr);
|
|
66104
66213
|
const workflowName = definitionJson?.workflowName;
|
|
66105
66214
|
if (!workflowName) {
|
|
66106
|
-
throw Error(`File ${key} \u2014 missing "workflowName"`);
|
|
66215
|
+
throw new Error(`File ${key} \u2014 missing "workflowName"`);
|
|
66107
66216
|
}
|
|
66108
|
-
const workflowResponse = await api.listWorkflows({
|
|
66109
|
-
|
|
66110
|
-
|
|
66111
|
-
|
|
66217
|
+
const workflowResponse = await api.listWorkflows({ organizationId });
|
|
66218
|
+
const matchingWorkflow = workflowResponse.workflows.find(
|
|
66219
|
+
(w3) => w3.name.toUpperCase() === workflowName.toUpperCase()
|
|
66220
|
+
);
|
|
66112
66221
|
if (!matchingWorkflow) {
|
|
66113
|
-
throw Error(`No matching workflow found for workflow name ${workflowName}`);
|
|
66222
|
+
throw new Error(`No matching workflow found for workflow name ${workflowName}`);
|
|
66114
66223
|
}
|
|
66115
66224
|
const { workflowId } = matchingWorkflow;
|
|
66116
|
-
await api.registerWorkflowVersion({
|
|
66117
|
-
workflowId,
|
|
66225
|
+
const registered = await api.registerWorkflowVersion({
|
|
66118
66226
|
organizationId,
|
|
66227
|
+
workflowId,
|
|
66119
66228
|
definition: definitionStr
|
|
66120
66229
|
});
|
|
66121
|
-
|
|
66230
|
+
let live = null;
|
|
66231
|
+
try {
|
|
66232
|
+
live = await api.getTaggedWorkflowVersion({
|
|
66233
|
+
organizationId,
|
|
66234
|
+
workflowId,
|
|
66235
|
+
tag: "$LIVE"
|
|
66236
|
+
});
|
|
66237
|
+
} catch (err) {
|
|
66238
|
+
if (err?.body?.message?.includes("NotFound")) {
|
|
66239
|
+
console.log(`\u2139\uFE0F No $LIVE version found yet for ${workflowName}`);
|
|
66240
|
+
} else {
|
|
66241
|
+
throw err;
|
|
66242
|
+
}
|
|
66243
|
+
}
|
|
66244
|
+
if (live?.versionId === registered.versionId) {
|
|
66245
|
+
console.log(`\u{1F7E1} Skipped ${workflowName} \u2014 already tagged as $LIVE`);
|
|
66246
|
+
continue;
|
|
66247
|
+
}
|
|
66248
|
+
await api.setWorkflowVersionTag({
|
|
66249
|
+
organizationId,
|
|
66250
|
+
workflowId,
|
|
66251
|
+
tag: "$LIVE",
|
|
66252
|
+
versionId: registered.versionId
|
|
66253
|
+
});
|
|
66254
|
+
console.log(`\u2705 Registered and tagged new $LIVE version for: ${workflowName}`);
|
|
66122
66255
|
} catch (err) {
|
|
66123
66256
|
console.error(`\u274C Error processing ${key}`, err);
|
|
66124
66257
|
throw err;
|