@justworkflowit/cdk-constructs 0.0.94 → 0.0.95
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.
|
@@ -4468,7 +4468,7 @@ function nv2(input) {
|
|
|
4468
4468
|
var NumericValue2;
|
|
4469
4469
|
var init_NumericValue = __esm({
|
|
4470
4470
|
"../node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js"() {
|
|
4471
|
-
NumericValue2 = class {
|
|
4471
|
+
NumericValue2 = class _NumericValue {
|
|
4472
4472
|
constructor(string, type) {
|
|
4473
4473
|
this.string = string;
|
|
4474
4474
|
this.type = type;
|
|
@@ -4493,15 +4493,19 @@ var init_NumericValue = __esm({
|
|
|
4493
4493
|
toString() {
|
|
4494
4494
|
return this.string;
|
|
4495
4495
|
}
|
|
4496
|
-
[Symbol.hasInstance](object) {
|
|
4496
|
+
static [Symbol.hasInstance](object) {
|
|
4497
4497
|
if (!object || typeof object !== "object") {
|
|
4498
4498
|
return false;
|
|
4499
4499
|
}
|
|
4500
4500
|
const _nv = object;
|
|
4501
|
+
const prototypeMatch = _NumericValue.prototype.isPrototypeOf(object.constructor?.prototype);
|
|
4502
|
+
if (prototypeMatch) {
|
|
4503
|
+
return prototypeMatch;
|
|
4504
|
+
}
|
|
4501
4505
|
if (typeof _nv.string === "string" && typeof _nv.type === "string" && _nv.constructor?.name === "NumericValue") {
|
|
4502
4506
|
return true;
|
|
4503
4507
|
}
|
|
4504
|
-
return
|
|
4508
|
+
return prototypeMatch;
|
|
4505
4509
|
}
|
|
4506
4510
|
};
|
|
4507
4511
|
}
|
|
@@ -25182,7 +25186,7 @@ var require_package = __commonJS({
|
|
|
25182
25186
|
module2.exports = {
|
|
25183
25187
|
name: "@aws-sdk/client-s3",
|
|
25184
25188
|
description: "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
25185
|
-
version: "3.
|
|
25189
|
+
version: "3.850.0",
|
|
25186
25190
|
scripts: {
|
|
25187
25191
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
25188
25192
|
"build:cjs": "node ../../scripts/compilation/inline client-s3",
|
|
@@ -56749,7 +56753,7 @@ var require_models_0 = __commonJS({
|
|
|
56749
56753
|
"../JustWorkflowItApiClient/dist-cjs/models/models_0.js"(exports2) {
|
|
56750
56754
|
"use strict";
|
|
56751
56755
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56752
|
-
exports2.WorkflowVersionSelector = exports2.WorkflowVersionAlias = exports2.JobStatus = exports2.ExecutionStatus = exports2.OrgRole = exports2.PermissionEnum = exports2.ValidationError = exports2.UnhandledError = exports2.NotFoundError = exports2.AuthorizationError = exports2.AuthenticationError = void 0;
|
|
56756
|
+
exports2.WorkflowVersionSelector = exports2.WorkflowVersionAlias = 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;
|
|
56753
56757
|
var JustWorkflowItServiceException_1 = require_JustWorkflowItServiceException();
|
|
56754
56758
|
var AuthenticationError = class _AuthenticationError extends JustWorkflowItServiceException_1.JustWorkflowItServiceException {
|
|
56755
56759
|
name = "AuthenticationError";
|
|
@@ -56869,6 +56873,7 @@ var require_models_0 = __commonJS({
|
|
|
56869
56873
|
JOB_READ: "job:read",
|
|
56870
56874
|
JOB_SUBMIT: "job:submit",
|
|
56871
56875
|
JOB_UPDATE: "job:update",
|
|
56876
|
+
METRICS_READ: "metrics:read",
|
|
56872
56877
|
ORGANIZATION_DELETE: "organization:delete",
|
|
56873
56878
|
ORGANIZATION_READ: "organization:read",
|
|
56874
56879
|
ORGANIZATION_UPDATE: "organization:update",
|
|
@@ -56900,6 +56905,25 @@ var require_models_0 = __commonJS({
|
|
|
56900
56905
|
RUNNING: "RUNNING",
|
|
56901
56906
|
SUCCEEDED: "SUCCEEDED"
|
|
56902
56907
|
};
|
|
56908
|
+
exports2.MetricAggregation = {
|
|
56909
|
+
avg: "avg",
|
|
56910
|
+
count: "count"
|
|
56911
|
+
};
|
|
56912
|
+
exports2.TimeBucket = {
|
|
56913
|
+
day: "day",
|
|
56914
|
+
hour: "hour"
|
|
56915
|
+
};
|
|
56916
|
+
exports2.WorkflowMetricType = {
|
|
56917
|
+
job_duration_seconds: "job_duration_seconds",
|
|
56918
|
+
job_timeout_count: "job_timeout_count",
|
|
56919
|
+
jobs_completed_successfully: "jobs_completed_successfully",
|
|
56920
|
+
jobs_failed: "jobs_failed",
|
|
56921
|
+
jobs_submitted: "jobs_submitted",
|
|
56922
|
+
resource_utilization: "resource_utilization",
|
|
56923
|
+
step_duration_seconds: "step_duration_seconds",
|
|
56924
|
+
step_failures: "step_failures",
|
|
56925
|
+
step_retries: "step_retries"
|
|
56926
|
+
};
|
|
56903
56927
|
exports2.WorkflowVersionAlias = {
|
|
56904
56928
|
LIVE: "$LIVE"
|
|
56905
56929
|
};
|
|
@@ -56923,8 +56947,8 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
56923
56947
|
"../JustWorkflowItApiClient/dist-cjs/protocols/Aws_restJson1.js"(exports2) {
|
|
56924
56948
|
"use strict";
|
|
56925
56949
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56926
|
-
exports2.
|
|
56927
|
-
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_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 = void 0;
|
|
56950
|
+
exports2.de_CreateRoleCommand = exports2.de_CreateResourcePoolCommand = 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_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_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;
|
|
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;
|
|
56928
56952
|
var JustWorkflowItServiceException_1 = require_JustWorkflowItServiceException();
|
|
56929
56953
|
var models_0_1 = require_models_0();
|
|
56930
56954
|
var core_1 = (init_dist_es7(), __toCommonJS(dist_es_exports7));
|
|
@@ -57175,6 +57199,23 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57175
57199
|
return b3.build();
|
|
57176
57200
|
};
|
|
57177
57201
|
exports2.se_GetWorkflowCommand = se_GetWorkflowCommand;
|
|
57202
|
+
var se_GetWorkflowMetricTimeSeriesCommand = async (input, context) => {
|
|
57203
|
+
const b3 = (0, core_2.requestBuilder)(input, context);
|
|
57204
|
+
const headers = {};
|
|
57205
|
+
b3.bp("/organizations/{organizationId}/workflow-metrics/timeseries");
|
|
57206
|
+
b3.p("organizationId", () => input.organizationId, "{organizationId}", false);
|
|
57207
|
+
const query = (0, smithy_client_1.map)({
|
|
57208
|
+
[_m2]: [, (0, smithy_client_1.expectNonNull)(input[_m2], `metric`)],
|
|
57209
|
+
[_a2]: [, (0, smithy_client_1.expectNonNull)(input[_a2], `aggregation`)],
|
|
57210
|
+
[_b]: [, (0, smithy_client_1.expectNonNull)(input[_b], `bucket`)],
|
|
57211
|
+
[_s]: [(0, smithy_client_1.expectNonNull)(input.since, `since`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_s]).toString()],
|
|
57212
|
+
[_u]: [(0, smithy_client_1.expectNonNull)(input.until, `until`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_u]).toString()]
|
|
57213
|
+
});
|
|
57214
|
+
let body;
|
|
57215
|
+
b3.m("GET").h(headers).q(query).b(body);
|
|
57216
|
+
return b3.build();
|
|
57217
|
+
};
|
|
57218
|
+
exports2.se_GetWorkflowMetricTimeSeriesCommand = se_GetWorkflowMetricTimeSeriesCommand;
|
|
57178
57219
|
var se_GetWorkflowStateCommand = async (input, context) => {
|
|
57179
57220
|
const b3 = (0, core_2.requestBuilder)(input, context);
|
|
57180
57221
|
const headers = {};
|
|
@@ -57214,7 +57255,7 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57214
57255
|
b3.bp("/organizations/{organizationId}/jobs");
|
|
57215
57256
|
b3.p("organizationId", () => input.organizationId, "{organizationId}", false);
|
|
57216
57257
|
const query = (0, smithy_client_1.map)({
|
|
57217
|
-
[
|
|
57258
|
+
[_st]: [, input[_st]],
|
|
57218
57259
|
[_pT]: [, input[_pT]],
|
|
57219
57260
|
[_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()]
|
|
57220
57261
|
});
|
|
@@ -57746,6 +57787,21 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
57746
57787
|
return contents;
|
|
57747
57788
|
};
|
|
57748
57789
|
exports2.de_GetWorkflowCommand = de_GetWorkflowCommand;
|
|
57790
|
+
var de_GetWorkflowMetricTimeSeriesCommand = async (output, context) => {
|
|
57791
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
57792
|
+
return de_CommandError3(output, context);
|
|
57793
|
+
}
|
|
57794
|
+
const contents = (0, smithy_client_1.map)({
|
|
57795
|
+
$metadata: deserializeMetadata3(output)
|
|
57796
|
+
});
|
|
57797
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
57798
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
57799
|
+
"results": (_2) => de_AggregatedMetricResultList(_2, context)
|
|
57800
|
+
});
|
|
57801
|
+
Object.assign(contents, doc);
|
|
57802
|
+
return contents;
|
|
57803
|
+
};
|
|
57804
|
+
exports2.de_GetWorkflowMetricTimeSeriesCommand = de_GetWorkflowMetricTimeSeriesCommand;
|
|
57749
57805
|
var de_GetWorkflowStateCommand = async (output, context) => {
|
|
57750
57806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
57751
57807
|
return de_CommandError3(output, context);
|
|
@@ -58183,6 +58239,18 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
58183
58239
|
var se_Document = (input, context) => {
|
|
58184
58240
|
return input;
|
|
58185
58241
|
};
|
|
58242
|
+
var de_AggregatedMetricResult = (output, context) => {
|
|
58243
|
+
return (0, smithy_client_1.take)(output, {
|
|
58244
|
+
"timestamp": (_2) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_2)),
|
|
58245
|
+
"value": smithy_client_1.limitedParseDouble
|
|
58246
|
+
});
|
|
58247
|
+
};
|
|
58248
|
+
var de_AggregatedMetricResultList = (output, context) => {
|
|
58249
|
+
const retVal = (output || []).filter((e3) => e3 != null).map((entry) => {
|
|
58250
|
+
return de_AggregatedMetricResult(entry, context);
|
|
58251
|
+
});
|
|
58252
|
+
return retVal;
|
|
58253
|
+
};
|
|
58186
58254
|
var de_ApiAuthTokenSummary = (output, context) => {
|
|
58187
58255
|
return (0, smithy_client_1.take)(output, {
|
|
58188
58256
|
"apiAuthTokenId": smithy_client_1.expectString,
|
|
@@ -58322,9 +58390,14 @@ var require_Aws_restJson1 = __commonJS({
|
|
|
58322
58390
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
58323
58391
|
cfId: output.headers["x-amz-cf-id"]
|
|
58324
58392
|
});
|
|
58393
|
+
var _a2 = "aggregation";
|
|
58394
|
+
var _b = "bucket";
|
|
58395
|
+
var _m2 = "metric";
|
|
58325
58396
|
var _pS = "pageSize";
|
|
58326
58397
|
var _pT = "pageToken";
|
|
58327
|
-
var _s = "
|
|
58398
|
+
var _s = "since";
|
|
58399
|
+
var _st = "status";
|
|
58400
|
+
var _u = "until";
|
|
58328
58401
|
}
|
|
58329
58402
|
});
|
|
58330
58403
|
|
|
@@ -58746,6 +58819,28 @@ var require_GetWorkflowCommand = __commonJS({
|
|
|
58746
58819
|
}
|
|
58747
58820
|
});
|
|
58748
58821
|
|
|
58822
|
+
// ../JustWorkflowItApiClient/dist-cjs/commands/GetWorkflowMetricTimeSeriesCommand.js
|
|
58823
|
+
var require_GetWorkflowMetricTimeSeriesCommand = __commonJS({
|
|
58824
|
+
"../JustWorkflowItApiClient/dist-cjs/commands/GetWorkflowMetricTimeSeriesCommand.js"(exports2) {
|
|
58825
|
+
"use strict";
|
|
58826
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
58827
|
+
exports2.GetWorkflowMetricTimeSeriesCommand = exports2.$Command = void 0;
|
|
58828
|
+
var Aws_restJson1_1 = require_Aws_restJson1();
|
|
58829
|
+
var middleware_serde_1 = require_dist_cjs5();
|
|
58830
|
+
var smithy_client_1 = require_dist_cjs20();
|
|
58831
|
+
Object.defineProperty(exports2, "$Command", { enumerable: true, get: function() {
|
|
58832
|
+
return smithy_client_1.Command;
|
|
58833
|
+
} });
|
|
58834
|
+
var GetWorkflowMetricTimeSeriesCommand = class extends smithy_client_1.Command.classBuilder().m(function(Command, cs, config, o3) {
|
|
58835
|
+
return [
|
|
58836
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize)
|
|
58837
|
+
];
|
|
58838
|
+
}).s("JustWorkflowItService", "GetWorkflowMetricTimeSeries", {}).n("JustWorkflowItClient", "GetWorkflowMetricTimeSeriesCommand").f(void 0, void 0).ser(Aws_restJson1_1.se_GetWorkflowMetricTimeSeriesCommand).de(Aws_restJson1_1.de_GetWorkflowMetricTimeSeriesCommand).build() {
|
|
58839
|
+
};
|
|
58840
|
+
exports2.GetWorkflowMetricTimeSeriesCommand = GetWorkflowMetricTimeSeriesCommand;
|
|
58841
|
+
}
|
|
58842
|
+
});
|
|
58843
|
+
|
|
58749
58844
|
// ../JustWorkflowItApiClient/dist-cjs/commands/GetWorkflowStateCommand.js
|
|
58750
58845
|
var require_GetWorkflowStateCommand = __commonJS({
|
|
58751
58846
|
"../JustWorkflowItApiClient/dist-cjs/commands/GetWorkflowStateCommand.js"(exports2) {
|
|
@@ -59234,6 +59329,7 @@ var require_JustWorkflowIt = __commonJS({
|
|
|
59234
59329
|
var GetResourcePoolCommand_1 = require_GetResourcePoolCommand();
|
|
59235
59330
|
var GetRoleCommand_1 = require_GetRoleCommand();
|
|
59236
59331
|
var GetWorkflowCommand_1 = require_GetWorkflowCommand();
|
|
59332
|
+
var GetWorkflowMetricTimeSeriesCommand_1 = require_GetWorkflowMetricTimeSeriesCommand();
|
|
59237
59333
|
var GetWorkflowStateCommand_1 = require_GetWorkflowStateCommand();
|
|
59238
59334
|
var GetWorkflowVersionCommand_1 = require_GetWorkflowVersionCommand();
|
|
59239
59335
|
var ListApiAuthTokensCommand_1 = require_ListApiAuthTokensCommand();
|
|
@@ -59276,6 +59372,7 @@ var require_JustWorkflowIt = __commonJS({
|
|
|
59276
59372
|
GetResourcePoolCommand: GetResourcePoolCommand_1.GetResourcePoolCommand,
|
|
59277
59373
|
GetRoleCommand: GetRoleCommand_1.GetRoleCommand,
|
|
59278
59374
|
GetWorkflowCommand: GetWorkflowCommand_1.GetWorkflowCommand,
|
|
59375
|
+
GetWorkflowMetricTimeSeriesCommand: GetWorkflowMetricTimeSeriesCommand_1.GetWorkflowMetricTimeSeriesCommand,
|
|
59279
59376
|
GetWorkflowStateCommand: GetWorkflowStateCommand_1.GetWorkflowStateCommand,
|
|
59280
59377
|
GetWorkflowVersionCommand: GetWorkflowVersionCommand_1.GetWorkflowVersionCommand,
|
|
59281
59378
|
ListApiAuthTokensCommand: ListApiAuthTokensCommand_1.ListApiAuthTokensCommand,
|
|
@@ -59330,6 +59427,7 @@ var require_commands = __commonJS({
|
|
|
59330
59427
|
tslib_1.__exportStar(require_GetResourcePoolCommand(), exports2);
|
|
59331
59428
|
tslib_1.__exportStar(require_GetRoleCommand(), exports2);
|
|
59332
59429
|
tslib_1.__exportStar(require_GetWorkflowCommand(), exports2);
|
|
59430
|
+
tslib_1.__exportStar(require_GetWorkflowMetricTimeSeriesCommand(), exports2);
|
|
59333
59431
|
tslib_1.__exportStar(require_GetWorkflowStateCommand(), exports2);
|
|
59334
59432
|
tslib_1.__exportStar(require_GetWorkflowVersionCommand(), exports2);
|
|
59335
59433
|
tslib_1.__exportStar(require_ListApiAuthTokensCommand(), exports2);
|