@owox/backend 0.38.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/helpers/read-bounded-body.helper.d.ts +1 -0
- package/dist/src/common/helpers/read-bounded-body.helper.js +28 -0
- package/dist/src/common/scheduler/system-tasks/system-trigger-type.d.ts +3 -1
- package/dist/src/common/scheduler/system-tasks/system-trigger-type.js +2 -0
- package/dist/src/config/data-source-options.config.d.ts +4 -3
- package/dist/src/config/data-source-options.config.js +10 -3
- package/dist/src/config/plugin-collections-body-parser.config.js +3 -0
- package/dist/src/data-marts/credentials/credential.types.d.ts +26 -2
- package/dist/src/data-marts/credentials/credential.types.js +18 -6
- package/dist/src/data-marts/credentials/dto/credential-api.dto.d.ts +5 -1
- package/dist/src/data-marts/credentials/dto/credential-api.dto.js +21 -0
- package/dist/src/data-marts/credentials/dto/credential.dto.d.ts +2 -1
- package/dist/src/data-marts/credentials/entities/credential.entity.d.ts +2 -1
- package/dist/src/data-marts/credentials/entities/credential.entity.js +5 -0
- package/dist/src/data-marts/credentials/facades/credential-consumer-binding.facade.impl.js +6 -1
- package/dist/src/data-marts/credentials/mappers/credential.mapper.js +2 -0
- package/dist/src/data-marts/credentials/services/builtin-credential-definitions.js +8 -0
- package/dist/src/data-marts/credentials/services/credential-external-definition-registry.service.d.ts +4 -0
- package/dist/src/data-marts/credentials/services/credential-external-definition-registry.service.js +36 -17
- package/dist/src/data-marts/credentials/services/credential-fetch.service.d.ts +8 -0
- package/dist/src/data-marts/credentials/services/credential-fetch.service.js +115 -46
- package/dist/src/data-marts/credentials/services/credential-validation-probe.service.d.ts +3 -1
- package/dist/src/data-marts/credentials/services/credential-validation-probe.service.js +10 -2
- package/dist/src/data-marts/credentials/services/credential.service.d.ts +4 -0
- package/dist/src/data-marts/credentials/services/credential.service.js +36 -0
- package/dist/src/data-marts/credentials/services/google-service-account-key.d.ts +6 -0
- package/dist/src/data-marts/credentials/services/google-service-account-key.js +46 -0
- package/dist/src/data-marts/credentials/services/google-service-account-token.service.d.ts +25 -0
- package/dist/src/data-marts/credentials/services/google-service-account-token.service.js +177 -0
- package/dist/src/data-marts/credentials/use-cases/create-credential.service.d.ts +1 -0
- package/dist/src/data-marts/credentials/use-cases/create-credential.service.js +10 -2
- package/dist/src/data-marts/credentials/use-cases/update-credential.service.d.ts +1 -0
- package/dist/src/data-marts/credentials/use-cases/update-credential.service.js +28 -4
- package/dist/src/data-marts/credentials/use-cases/validate-credential.service.js +2 -5
- package/dist/src/data-marts/data-marts.module.js +4 -0
- package/dist/src/data-marts/data-storage-types/snowflake/adapters/snowflake-api.adapter.js +1 -0
- package/dist/src/data-marts/dto/presentation/run-data-mart-request-api.dto.js +4 -2
- package/dist/src/data-marts/services/connector/backfill-segment.d.ts +22 -0
- package/dist/src/data-marts/services/connector/backfill-segment.js +91 -0
- package/dist/src/data-marts/services/connector/connector-execution.service.d.ts +1 -0
- package/dist/src/data-marts/services/connector/connector-execution.service.js +3 -0
- package/dist/src/data-marts/services/connector/connector-executor.service.d.ts +4 -1
- package/dist/src/data-marts/services/connector/connector-executor.service.js +107 -23
- package/dist/src/data-marts/services/connector/connector-run.service.d.ts +3 -0
- package/dist/src/data-marts/services/connector/connector-run.service.js +98 -4
- package/dist/src/data-marts/services/data-mart-run.service.d.ts +1 -0
- package/dist/src/data-marts/services/data-mart-run.service.js +9 -0
- package/dist/src/data-marts/system-triggers/processors/repair-backfill-chains-processor.d.ts +14 -0
- package/dist/src/data-marts/system-triggers/processors/repair-backfill-chains-processor.js +45 -0
- package/dist/src/data-marts/use-cases/cancel-data-mart-run.service.d.ts +4 -0
- package/dist/src/data-marts/use-cases/cancel-data-mart-run.service.js +46 -1
- package/dist/src/data-marts/utils/manual-backfill-range.d.ts +52 -0
- package/dist/src/data-marts/utils/manual-backfill-range.js +110 -8
- package/dist/src/ee/mcp/instructions/mcp-system-instructions.d.ts +1 -1
- package/dist/src/ee/mcp/instructions/mcp-system-instructions.js +1 -0
- package/dist/src/idp/decorators/auth-context.decorator.js +1 -0
- package/dist/src/idp/guards/idp.guard.d.ts +3 -0
- package/dist/src/idp/guards/idp.guard.js +38 -8
- package/dist/src/idp/oauth/controllers/oauth-authorization.controller.js +8 -6
- package/dist/src/idp/oauth/mcp-client-integration.d.ts +1 -0
- package/dist/src/idp/oauth/mcp-client-integration.js +15 -0
- package/dist/src/idp/ports/plugin-runtime-authorizer.port.d.ts +6 -0
- package/dist/src/idp/types/auth.types.d.ts +1 -0
- package/dist/src/migrations/1790900000000-add-plugin-version-backend.d.ts +6 -0
- package/dist/src/migrations/1790900000000-add-plugin-version-backend.js +21 -0
- package/dist/src/migrations/1790900000001-create-plugin-action-execution.d.ts +6 -0
- package/dist/src/migrations/1790900000001-create-plugin-action-execution.js +77 -0
- package/dist/src/migrations/1791000000000-add-credential-public-metadata.d.ts +6 -0
- package/dist/src/migrations/1791000000000-add-credential-public-metadata.js +23 -0
- package/dist/src/plugin-host/collections/dto/domain/plugin-collection.types.d.ts +1 -0
- package/dist/src/plugin-host/collections/errors/plugin-collection.errors.d.ts +6 -0
- package/dist/src/plugin-host/collections/errors/plugin-collection.errors.js +19 -1
- package/dist/src/plugin-host/collections/services/plugin-collection-declaration.service.js +3 -3
- package/dist/src/plugin-host/collections/use-cases/put-plugin-collection-document.service.js +7 -0
- package/dist/src/plugin-host/constants/plugin-action-limits.d.ts +34 -0
- package/dist/src/plugin-host/constants/plugin-action-limits.js +51 -0
- package/dist/src/plugin-host/controllers/plugin-action-runtime.controller.d.ts +20 -0
- package/dist/src/plugin-host/controllers/plugin-action-runtime.controller.js +123 -0
- package/dist/src/plugin-host/controllers/plugin-credential-runtime.controller.js +11 -19
- package/dist/src/plugin-host/controllers/plugin-history.controller.d.ts +10 -0
- package/dist/src/plugin-host/controllers/plugin-history.controller.js +57 -0
- package/dist/src/plugin-host/controllers/plugin-release-check.controller.d.ts +10 -0
- package/dist/src/plugin-host/controllers/plugin-release-check.controller.js +58 -0
- package/dist/src/plugin-host/dto/domain/check-plugin-release.command.d.ts +22 -0
- package/dist/src/plugin-host/dto/domain/check-plugin-release.command.js +17 -0
- package/dist/src/plugin-host/dto/domain/list-plugin-history.command.d.ts +10 -0
- package/dist/src/plugin-host/dto/domain/list-plugin-history.command.js +18 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.command.d.ts +23 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.command.js +44 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.dto.d.ts +36 -0
- package/dist/src/plugin-host/dto/domain/plugin-action-execution.dto.js +3 -0
- package/dist/src/plugin-host/dto/domain/plugin-history.dto.d.ts +29 -0
- package/dist/src/plugin-host/dto/domain/plugin-history.dto.js +3 -0
- package/dist/src/plugin-host/dto/domain/plugin-view.dto.d.ts +1 -0
- package/dist/src/plugin-host/dto/presentation/plugin-action-api.dto.d.ts +44 -0
- package/dist/src/plugin-host/dto/presentation/plugin-action-api.dto.js +208 -0
- package/dist/src/plugin-host/dto/presentation/plugin-gallery-api.dto.d.ts +2 -0
- package/dist/src/plugin-host/dto/presentation/plugin-gallery-api.dto.js +7 -0
- package/dist/src/plugin-host/dto/presentation/plugin-history-api.dto.d.ts +29 -0
- package/dist/src/plugin-host/dto/presentation/plugin-history-api.dto.js +148 -0
- package/dist/src/plugin-host/dto/presentation/publication-api.dto.d.ts +17 -0
- package/dist/src/plugin-host/dto/presentation/publication-api.dto.js +95 -1
- package/dist/src/plugin-host/entities/plugin-action-execution.entity.d.ts +24 -0
- package/dist/src/plugin-host/entities/plugin-action-execution.entity.js +136 -0
- package/dist/src/plugin-host/entities/plugin-version.entity.d.ts +2 -1
- package/dist/src/plugin-host/entities/plugin-version.entity.js +5 -0
- package/dist/src/plugin-host/enums/plugin-action-execution-status.enum.d.ts +9 -0
- package/dist/src/plugin-host/enums/plugin-action-execution-status.enum.js +22 -0
- package/dist/src/plugin-host/enums/release-rejection-code.enum.d.ts +3 -0
- package/dist/src/plugin-host/enums/release-rejection-code.enum.js +6 -0
- package/dist/src/plugin-host/errors/plugin-action.errors.d.ts +45 -0
- package/dist/src/plugin-host/errors/plugin-action.errors.js +70 -0
- package/dist/src/plugin-host/errors/plugin-host.errors.d.ts +6 -0
- package/dist/src/plugin-host/errors/plugin-host.errors.js +10 -1
- package/dist/src/plugin-host/filters/plugin-host-exception.filter.js +2 -2
- package/dist/src/plugin-host/mappers/plugin-action-execution.mapper.d.ts +3 -0
- package/dist/src/plugin-host/mappers/plugin-action-execution.mapper.js +22 -0
- package/dist/src/plugin-host/mappers/plugin-presentation.mapper.d.ts +16 -1
- package/dist/src/plugin-host/mappers/plugin-presentation.mapper.js +80 -1
- package/dist/src/plugin-host/plugin-host.module.js +32 -0
- package/dist/src/plugin-host/services/action-input-validator.service.d.ts +23 -0
- package/dist/src/plugin-host/services/action-input-validator.service.js +277 -0
- package/dist/src/plugin-host/services/external-credential-definition-sync.service.d.ts +3 -0
- package/dist/src/plugin-host/services/external-credential-definition-sync.service.js +47 -15
- package/dist/src/plugin-host/services/plugin-action-dispatcher.service.d.ts +13 -0
- package/dist/src/plugin-host/services/plugin-action-dispatcher.service.js +140 -0
- package/dist/src/plugin-host/services/plugin-action-execution.service.d.ts +69 -0
- package/dist/src/plugin-host/services/plugin-action-execution.service.js +239 -0
- package/dist/src/plugin-host/services/plugin-action-starter.service.d.ts +22 -0
- package/dist/src/plugin-host/services/plugin-action-starter.service.js +81 -0
- package/dist/src/plugin-host/services/plugin-audit.service.d.ts +13 -0
- package/dist/src/plugin-host/services/plugin-audit.service.js +78 -0
- package/dist/src/plugin-host/services/plugin-publication.service.d.ts +2 -0
- package/dist/src/plugin-host/services/plugin-publication.service.js +18 -10
- package/dist/src/plugin-host/services/plugin-runtime-authorizer.service.d.ts +5 -2
- package/dist/src/plugin-host/services/plugin-runtime-authorizer.service.js +31 -3
- package/dist/src/plugin-host/services/plugin-version.service.d.ts +2 -1
- package/dist/src/plugin-host/services/release-candidate-rules.service.d.ts +51 -0
- package/dist/src/plugin-host/services/release-candidate-rules.service.js +198 -0
- package/dist/src/plugin-host/services/remote-url-validator.service.d.ts +7 -0
- package/dist/src/plugin-host/services/remote-url-validator.service.js +4 -0
- package/dist/src/plugin-host/system-triggers/plugin-action-execution-sweep.processor.d.ts +14 -0
- package/dist/src/plugin-host/system-triggers/plugin-action-execution-sweep.processor.js +50 -0
- package/dist/src/plugin-host/use-cases/cancel-plugin-action-execution.service.d.ts +8 -0
- package/dist/src/plugin-host/use-cases/cancel-plugin-action-execution.service.js +39 -0
- package/dist/src/plugin-host/use-cases/check-plugin-release.service.d.ts +22 -0
- package/dist/src/plugin-host/use-cases/check-plugin-release.service.js +152 -0
- package/dist/src/plugin-host/use-cases/get-current-plugin-action-execution.service.d.ts +14 -0
- package/dist/src/plugin-host/use-cases/get-current-plugin-action-execution.service.js +85 -0
- package/dist/src/plugin-host/use-cases/get-plugin-action-execution.service.d.ts +9 -0
- package/dist/src/plugin-host/use-cases/get-plugin-action-execution.service.js +67 -0
- package/dist/src/plugin-host/use-cases/get-plugin-installation-entry.service.js +2 -7
- package/dist/src/plugin-host/use-cases/install-plugin.service.js +4 -0
- package/dist/src/plugin-host/use-cases/list-plugin-history.service.d.ts +25 -0
- package/dist/src/plugin-host/use-cases/list-plugin-history.service.js +147 -0
- package/dist/src/plugin-host/use-cases/plugin-publisher-access.d.ts +5 -0
- package/dist/src/plugin-host/use-cases/plugin-publisher-access.js +28 -0
- package/dist/src/plugin-host/use-cases/start-plugin-action-execution.service.d.ts +12 -0
- package/dist/src/plugin-host/use-cases/start-plugin-action-execution.service.js +64 -0
- package/dist/src/plugin-host/use-cases/sync-plugin-releases.service.d.ts +3 -5
- package/dist/src/plugin-host/use-cases/sync-plugin-releases.service.js +15 -59
- package/dist/src/plugin-host/use-cases/uninstall-plugin.service.js +3 -1
- package/dist/src/plugin-host/use-cases/update-plugin.service.d.ts +0 -1
- package/dist/src/plugin-host/use-cases/update-plugin.service.js +3 -25
- package/dist/src/plugin-host/utils/action-input-schema.util.d.ts +14 -0
- package/dist/src/plugin-host/utils/action-input-schema.util.js +133 -0
- package/dist/src/plugin-host/utils/credential-handles.util.d.ts +3 -0
- package/dist/src/plugin-host/utils/credential-handles.util.js +13 -0
- package/dist/src/plugin-host/utils/execution-token.util.d.ts +5 -0
- package/dist/src/plugin-host/utils/execution-token.util.js +13 -0
- package/dist/src/plugin-host/utils/json-shape.util.d.ts +1 -0
- package/dist/src/plugin-host/utils/json-shape.util.js +21 -0
- package/dist/src/plugin-host/utils/plugin-action-outcome.util.d.ts +10 -0
- package/dist/src/plugin-host/utils/plugin-action-outcome.util.js +67 -0
- package/dist/src/plugin-host/utils/plugin-manifest.util.d.ts +121 -0
- package/dist/src/plugin-host/utils/plugin-manifest.util.js +111 -1
- package/dist/src/plugin-host/utils/request-abort-signal.util.d.ts +5 -0
- package/dist/src/plugin-host/utils/request-abort-signal.util.js +19 -0
- package/package.json +10 -8
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PluginActionWorkerContextApiDto = exports.PluginActionWorkerPluginApiDto = exports.PluginActionExecutionApiDto = exports.PluginActionExecutionErrorApiDto = exports.StartedPluginActionExecutionApiDto = exports.PluginActionExecutionQueryApiDto = exports.StartPluginActionExecutionApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const plugin_action_limits_1 = require("../../constants/plugin-action-limits");
|
|
17
|
+
const plugin_action_execution_status_enum_1 = require("../../enums/plugin-action-execution-status.enum");
|
|
18
|
+
class StartPluginActionExecutionApiDto {
|
|
19
|
+
input;
|
|
20
|
+
}
|
|
21
|
+
exports.StartPluginActionExecutionApiDto = StartPluginActionExecutionApiDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
24
|
+
description: 'Checked against the action input schema. Absent means null. At most 256 KiB as JSON.',
|
|
25
|
+
}),
|
|
26
|
+
(0, class_validator_1.Allow)(),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], StartPluginActionExecutionApiDto.prototype, "input", void 0);
|
|
29
|
+
const { maxWaitSeconds } = plugin_action_limits_1.PLUGIN_ACTION_LIMITS;
|
|
30
|
+
class PluginActionExecutionQueryApiDto {
|
|
31
|
+
waitSeconds;
|
|
32
|
+
}
|
|
33
|
+
exports.PluginActionExecutionQueryApiDto = PluginActionExecutionQueryApiDto;
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
36
|
+
type: 'integer',
|
|
37
|
+
minimum: 0,
|
|
38
|
+
default: 0,
|
|
39
|
+
description: `Holds the answer until the execution ends or the time passes. Above ${maxWaitSeconds}, ${maxWaitSeconds} is used.`,
|
|
40
|
+
}),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
43
|
+
if (value === undefined)
|
|
44
|
+
return value;
|
|
45
|
+
return typeof value === 'string' && /^\d+$/.test(value)
|
|
46
|
+
? Math.min(Number(value), maxWaitSeconds)
|
|
47
|
+
: Number.NaN;
|
|
48
|
+
}),
|
|
49
|
+
(0, class_validator_1.IsInt)({ message: 'waitSeconds must be a whole number of seconds' }),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], PluginActionExecutionQueryApiDto.prototype, "waitSeconds", void 0);
|
|
52
|
+
class StartedPluginActionExecutionApiDto {
|
|
53
|
+
id;
|
|
54
|
+
status;
|
|
55
|
+
}
|
|
56
|
+
exports.StartedPluginActionExecutionApiDto = StartedPluginActionExecutionApiDto;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], StartedPluginActionExecutionApiDto.prototype, "id", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({ enum: [plugin_action_execution_status_enum_1.PluginActionExecutionStatus.RUNNING] }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], StartedPluginActionExecutionApiDto.prototype, "status", void 0);
|
|
65
|
+
class PluginActionExecutionErrorApiDto {
|
|
66
|
+
code;
|
|
67
|
+
message;
|
|
68
|
+
}
|
|
69
|
+
exports.PluginActionExecutionErrorApiDto = PluginActionExecutionErrorApiDto;
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({
|
|
72
|
+
description: "The failure code for FAILED, set by the plugin's backend or by OWOX (`BACKEND_*`), or the status for CANCELLED and TIMED_OUT.",
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], PluginActionExecutionErrorApiDto.prototype, "code", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], PluginActionExecutionErrorApiDto.prototype, "message", void 0);
|
|
80
|
+
class PluginActionExecutionApiDto {
|
|
81
|
+
id;
|
|
82
|
+
action;
|
|
83
|
+
status;
|
|
84
|
+
trigger;
|
|
85
|
+
startedAt;
|
|
86
|
+
deadlineAt;
|
|
87
|
+
finishedAt;
|
|
88
|
+
result;
|
|
89
|
+
error;
|
|
90
|
+
}
|
|
91
|
+
exports.PluginActionExecutionApiDto = PluginActionExecutionApiDto;
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], PluginActionExecutionApiDto.prototype, "id", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)(),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], PluginActionExecutionApiDto.prototype, "action", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({ enum: plugin_action_execution_status_enum_1.PluginActionExecutionStatus }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], PluginActionExecutionApiDto.prototype, "status", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)({ enum: ['frontend'] }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], PluginActionExecutionApiDto.prototype, "trigger", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], PluginActionExecutionApiDto.prototype, "startedAt", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], PluginActionExecutionApiDto.prototype, "deadlineAt", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)({ type: Date, nullable: true }),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], PluginActionExecutionApiDto.prototype, "finishedAt", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, swagger_1.ApiProperty)({ description: 'SUCCEEDED only. Cleared 24 hours after the execution ends.' }),
|
|
122
|
+
__metadata("design:type", Object)
|
|
123
|
+
], PluginActionExecutionApiDto.prototype, "result", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)({
|
|
126
|
+
type: PluginActionExecutionErrorApiDto,
|
|
127
|
+
nullable: true,
|
|
128
|
+
description: 'FAILED, CANCELLED and TIMED_OUT only.',
|
|
129
|
+
}),
|
|
130
|
+
__metadata("design:type", Object)
|
|
131
|
+
], PluginActionExecutionApiDto.prototype, "error", void 0);
|
|
132
|
+
class PluginActionWorkerPluginApiDto {
|
|
133
|
+
id;
|
|
134
|
+
repositoryId;
|
|
135
|
+
}
|
|
136
|
+
exports.PluginActionWorkerPluginApiDto = PluginActionWorkerPluginApiDto;
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiProperty)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], PluginActionWorkerPluginApiDto.prototype, "id", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, swagger_1.ApiProperty)({
|
|
143
|
+
description: 'The GitHub repository id of the plugin, the same on every deployment and after a rename or transfer.',
|
|
144
|
+
}),
|
|
145
|
+
__metadata("design:type", String)
|
|
146
|
+
], PluginActionWorkerPluginApiDto.prototype, "repositoryId", void 0);
|
|
147
|
+
class PluginActionWorkerContextApiDto {
|
|
148
|
+
executionId;
|
|
149
|
+
action;
|
|
150
|
+
input;
|
|
151
|
+
trigger;
|
|
152
|
+
deadlineAt;
|
|
153
|
+
plugin;
|
|
154
|
+
pluginVersion;
|
|
155
|
+
installationId;
|
|
156
|
+
projectId;
|
|
157
|
+
userId;
|
|
158
|
+
credentialHandles;
|
|
159
|
+
}
|
|
160
|
+
exports.PluginActionWorkerContextApiDto = PluginActionWorkerContextApiDto;
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, swagger_1.ApiProperty)(),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], PluginActionWorkerContextApiDto.prototype, "executionId", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiProperty)(),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], PluginActionWorkerContextApiDto.prototype, "action", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, swagger_1.ApiProperty)({ description: 'The input the execution was started with.' }),
|
|
171
|
+
__metadata("design:type", Object)
|
|
172
|
+
], PluginActionWorkerContextApiDto.prototype, "input", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, swagger_1.ApiProperty)({ enum: ['frontend'] }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], PluginActionWorkerContextApiDto.prototype, "trigger", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, swagger_1.ApiProperty)(),
|
|
179
|
+
__metadata("design:type", Date)
|
|
180
|
+
], PluginActionWorkerContextApiDto.prototype, "deadlineAt", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, swagger_1.ApiProperty)({ type: PluginActionWorkerPluginApiDto }),
|
|
183
|
+
__metadata("design:type", PluginActionWorkerPluginApiDto)
|
|
184
|
+
], PluginActionWorkerContextApiDto.prototype, "plugin", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, swagger_1.ApiProperty)({ description: 'Semver of the release the execution started on.' }),
|
|
187
|
+
__metadata("design:type", String)
|
|
188
|
+
], PluginActionWorkerContextApiDto.prototype, "pluginVersion", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, swagger_1.ApiProperty)(),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], PluginActionWorkerContextApiDto.prototype, "installationId", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, swagger_1.ApiProperty)(),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], PluginActionWorkerContextApiDto.prototype, "projectId", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, swagger_1.ApiProperty)(),
|
|
199
|
+
__metadata("design:type", String)
|
|
200
|
+
], PluginActionWorkerContextApiDto.prototype, "userId", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, swagger_1.ApiProperty)({
|
|
203
|
+
type: [Object],
|
|
204
|
+
description: "Handles for the exact Credentials of the plugin's current release. AI Credentials are not available in a backend action.",
|
|
205
|
+
}),
|
|
206
|
+
__metadata("design:type", Array)
|
|
207
|
+
], PluginActionWorkerContextApiDto.prototype, "credentialHandles", void 0);
|
|
208
|
+
//# sourceMappingURL=plugin-action-api.dto.js.map
|
|
@@ -45,6 +45,7 @@ class PluginGalleryEntryApiDto {
|
|
|
45
45
|
addedAt;
|
|
46
46
|
nextCheckAt;
|
|
47
47
|
credentialRequirements;
|
|
48
|
+
backendOrigin;
|
|
48
49
|
}
|
|
49
50
|
exports.PluginGalleryEntryApiDto = PluginGalleryEntryApiDto;
|
|
50
51
|
__decorate([
|
|
@@ -112,4 +113,10 @@ __decorate([
|
|
|
112
113
|
}),
|
|
113
114
|
__metadata("design:type", Array)
|
|
114
115
|
], PluginGalleryEntryApiDto.prototype, "credentialRequirements", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
118
|
+
description: 'Origin of the server the current version runs backend actions on. Omitted when it declares none.',
|
|
119
|
+
}),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], PluginGalleryEntryApiDto.prototype, "backendOrigin", void 0);
|
|
115
122
|
//# sourceMappingURL=plugin-gallery-api.dto.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type PluginHistoryType } from '../../dto/domain/list-plugin-history.command';
|
|
2
|
+
import { PluginPublicationScope } from '../../enums/plugin-publication-scope.enum';
|
|
3
|
+
export declare class ListPluginHistoryQueryApiDto {
|
|
4
|
+
type?: PluginHistoryType;
|
|
5
|
+
limit?: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class PluginHistoryPluginApiDto {
|
|
9
|
+
pluginId: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
ownerName: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class PluginHistoryActorApiDto {
|
|
14
|
+
kind: 'you' | 'member' | 'deployment';
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class PluginHistoryEventApiDto {
|
|
18
|
+
id: string;
|
|
19
|
+
occurredAt: string;
|
|
20
|
+
action: string;
|
|
21
|
+
scope: PluginPublicationScope | null;
|
|
22
|
+
plugin: PluginHistoryPluginApiDto;
|
|
23
|
+
actor: PluginHistoryActorApiDto | null;
|
|
24
|
+
version: string | null;
|
|
25
|
+
}
|
|
26
|
+
export declare class PluginHistoryPageApiDto {
|
|
27
|
+
items: PluginHistoryEventApiDto[];
|
|
28
|
+
nextCursor: string | null;
|
|
29
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PluginHistoryPageApiDto = exports.PluginHistoryEventApiDto = exports.PluginHistoryActorApiDto = exports.PluginHistoryPluginApiDto = exports.ListPluginHistoryQueryApiDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const list_plugin_history_command_1 = require("../../dto/domain/list-plugin-history.command");
|
|
17
|
+
const plugin_audit_action_enum_1 = require("../../enums/plugin-audit-action.enum");
|
|
18
|
+
const plugin_publication_scope_enum_1 = require("../../enums/plugin-publication-scope.enum");
|
|
19
|
+
const HISTORY_TYPES = ['all', 'installations', 'publications'];
|
|
20
|
+
const HISTORY_ACTIONS = Object.values(plugin_audit_action_enum_1.PluginAuditAction).filter(action => action !== plugin_audit_action_enum_1.PluginAuditAction.UPDATE_CHECK);
|
|
21
|
+
class ListPluginHistoryQueryApiDto {
|
|
22
|
+
type;
|
|
23
|
+
limit;
|
|
24
|
+
cursor;
|
|
25
|
+
}
|
|
26
|
+
exports.ListPluginHistoryQueryApiDto = ListPluginHistoryQueryApiDto;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiPropertyOptional)({ enum: HISTORY_TYPES, default: 'all' }),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsIn)(HISTORY_TYPES),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], ListPluginHistoryQueryApiDto.prototype, "type", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
35
|
+
type: 'integer',
|
|
36
|
+
minimum: 1,
|
|
37
|
+
maximum: 100,
|
|
38
|
+
default: list_plugin_history_command_1.PLUGIN_HISTORY_DEFAULT_LIMIT,
|
|
39
|
+
}),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
42
|
+
if (value === undefined || typeof value === 'number') {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return typeof value === 'string' && /^\d+$/.test(value) ? Number(value) : Number.NaN;
|
|
46
|
+
}),
|
|
47
|
+
(0, class_validator_1.IsInt)(),
|
|
48
|
+
(0, class_validator_1.Min)(1),
|
|
49
|
+
(0, class_validator_1.Max)(100),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ListPluginHistoryQueryApiDto.prototype, "limit", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'nextCursor of the previous page.' }),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsUUID)('all'),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ListPluginHistoryQueryApiDto.prototype, "cursor", void 0);
|
|
58
|
+
class PluginHistoryPluginApiDto {
|
|
59
|
+
pluginId;
|
|
60
|
+
displayName;
|
|
61
|
+
ownerName;
|
|
62
|
+
}
|
|
63
|
+
exports.PluginHistoryPluginApiDto = PluginHistoryPluginApiDto;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PluginHistoryPluginApiDto.prototype, "pluginId", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], PluginHistoryPluginApiDto.prototype, "displayName", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], PluginHistoryPluginApiDto.prototype, "ownerName", void 0);
|
|
76
|
+
class PluginHistoryActorApiDto {
|
|
77
|
+
kind;
|
|
78
|
+
name;
|
|
79
|
+
}
|
|
80
|
+
exports.PluginHistoryActorApiDto = PluginHistoryActorApiDto;
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({ enum: ['you', 'member', 'deployment'] }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], PluginHistoryActorApiDto.prototype, "kind", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Set for kind member only.' }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], PluginHistoryActorApiDto.prototype, "name", void 0);
|
|
89
|
+
class PluginHistoryEventApiDto {
|
|
90
|
+
id;
|
|
91
|
+
occurredAt;
|
|
92
|
+
action;
|
|
93
|
+
scope;
|
|
94
|
+
plugin;
|
|
95
|
+
actor;
|
|
96
|
+
version;
|
|
97
|
+
}
|
|
98
|
+
exports.PluginHistoryEventApiDto = PluginHistoryEventApiDto;
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, swagger_1.ApiProperty)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], PluginHistoryEventApiDto.prototype, "id", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({ format: 'date-time' }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], PluginHistoryEventApiDto.prototype, "occurredAt", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({ enum: HISTORY_ACTIONS }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], PluginHistoryEventApiDto.prototype, "action", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, swagger_1.ApiProperty)({
|
|
113
|
+
enum: plugin_publication_scope_enum_1.PluginPublicationScope,
|
|
114
|
+
nullable: true,
|
|
115
|
+
description: 'Set for publish and unpublish only.',
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", Object)
|
|
118
|
+
], PluginHistoryEventApiDto.prototype, "scope", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({ type: PluginHistoryPluginApiDto }),
|
|
121
|
+
__metadata("design:type", PluginHistoryPluginApiDto)
|
|
122
|
+
], PluginHistoryEventApiDto.prototype, "plugin", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({
|
|
125
|
+
type: PluginHistoryActorApiDto,
|
|
126
|
+
nullable: true,
|
|
127
|
+
description: 'Null when the actor is not disclosed: an automatic update, or someone outside this project.',
|
|
128
|
+
}),
|
|
129
|
+
__metadata("design:type", Object)
|
|
130
|
+
], PluginHistoryEventApiDto.prototype, "actor", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiProperty)({ type: String, nullable: true, description: 'The version an update made current.' }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], PluginHistoryEventApiDto.prototype, "version", void 0);
|
|
135
|
+
class PluginHistoryPageApiDto {
|
|
136
|
+
items;
|
|
137
|
+
nextCursor;
|
|
138
|
+
}
|
|
139
|
+
exports.PluginHistoryPageApiDto = PluginHistoryPageApiDto;
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({ type: [PluginHistoryEventApiDto] }),
|
|
142
|
+
__metadata("design:type", Array)
|
|
143
|
+
], PluginHistoryPageApiDto.prototype, "items", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, swagger_1.ApiProperty)({ type: String, nullable: true }),
|
|
146
|
+
__metadata("design:type", Object)
|
|
147
|
+
], PluginHistoryPageApiDto.prototype, "nextCursor", void 0);
|
|
148
|
+
//# sourceMappingURL=plugin-history-api.dto.js.map
|
|
@@ -36,3 +36,20 @@ export declare class PublicationResponseApiDto {
|
|
|
36
36
|
export declare class UpdatePluginByRepositoryApiDto {
|
|
37
37
|
repository: string;
|
|
38
38
|
}
|
|
39
|
+
export declare class CheckPluginReleaseApiDto extends UpdatePluginByRepositoryApiDto {
|
|
40
|
+
ref: string;
|
|
41
|
+
version?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class PluginReleaseCheckIssueApiDto {
|
|
44
|
+
code: ReleaseRejectionCode;
|
|
45
|
+
detail: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class PluginReleaseCheckResultApiDto {
|
|
48
|
+
pluginId: string;
|
|
49
|
+
repository: string;
|
|
50
|
+
commitSha: string | null;
|
|
51
|
+
candidateVersion: string | null;
|
|
52
|
+
baselineVersion: string | null;
|
|
53
|
+
collectionsEvaluated: boolean;
|
|
54
|
+
issues: PluginReleaseCheckIssueApiDto[];
|
|
55
|
+
}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdatePluginByRepositoryApiDto = exports.PublicationResponseApiDto = exports.PluginPublisherDiagnosticsApiDto = exports.ReleaseRejectionApiDto = exports.PublishPluginApiDto = void 0;
|
|
12
|
+
exports.PluginReleaseCheckResultApiDto = exports.PluginReleaseCheckIssueApiDto = exports.CheckPluginReleaseApiDto = exports.UpdatePluginByRepositoryApiDto = exports.PublicationResponseApiDto = exports.PluginPublisherDiagnosticsApiDto = exports.ReleaseRejectionApiDto = exports.PublishPluginApiDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const github_access_mode_enum_1 = require("../../enums/github-access-mode.enum");
|
|
@@ -191,4 +191,98 @@ __decorate([
|
|
|
191
191
|
(0, class_validator_1.MaxLength)(512),
|
|
192
192
|
__metadata("design:type", String)
|
|
193
193
|
], UpdatePluginByRepositoryApiDto.prototype, "repository", void 0);
|
|
194
|
+
class CheckPluginReleaseApiDto extends UpdatePluginByRepositoryApiDto {
|
|
195
|
+
ref;
|
|
196
|
+
version;
|
|
197
|
+
}
|
|
198
|
+
exports.CheckPluginReleaseApiDto = CheckPluginReleaseApiDto;
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, swagger_1.ApiProperty)({ description: 'Branch, tag, or commit SHA to check.', example: 'main' }),
|
|
201
|
+
(0, class_validator_1.IsString)(),
|
|
202
|
+
(0, class_validator_1.MinLength)(1),
|
|
203
|
+
(0, class_validator_1.MaxLength)(255),
|
|
204
|
+
(0, class_validator_1.Matches)(/^[^\s\p{Cc}\p{Cs}]+$/u, {
|
|
205
|
+
message: 'ref must not contain whitespace or control characters',
|
|
206
|
+
}),
|
|
207
|
+
__metadata("design:type", String)
|
|
208
|
+
], CheckPluginReleaseApiDto.prototype, "ref", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
211
|
+
description: 'Version the release would carry, X.Y.Z optionally prefixed with v. Defaults to the next version after the current one: the next patch below 1.0.0, the next minor from 1.0.0.',
|
|
212
|
+
example: '1.5.0',
|
|
213
|
+
}),
|
|
214
|
+
(0, class_validator_1.IsOptional)(),
|
|
215
|
+
(0, class_validator_1.IsString)(),
|
|
216
|
+
(0, class_validator_1.MinLength)(1),
|
|
217
|
+
(0, class_validator_1.MaxLength)(64),
|
|
218
|
+
__metadata("design:type", String)
|
|
219
|
+
], CheckPluginReleaseApiDto.prototype, "version", void 0);
|
|
220
|
+
class PluginReleaseCheckIssueApiDto {
|
|
221
|
+
code;
|
|
222
|
+
detail;
|
|
223
|
+
}
|
|
224
|
+
exports.PluginReleaseCheckIssueApiDto = PluginReleaseCheckIssueApiDto;
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)({ enum: release_rejection_code_enum_1.ReleaseRejectionCode }),
|
|
227
|
+
__metadata("design:type", String)
|
|
228
|
+
], PluginReleaseCheckIssueApiDto.prototype, "code", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, swagger_1.ApiProperty)(),
|
|
231
|
+
__metadata("design:type", String)
|
|
232
|
+
], PluginReleaseCheckIssueApiDto.prototype, "detail", void 0);
|
|
233
|
+
class PluginReleaseCheckResultApiDto {
|
|
234
|
+
pluginId;
|
|
235
|
+
repository;
|
|
236
|
+
commitSha;
|
|
237
|
+
candidateVersion;
|
|
238
|
+
baselineVersion;
|
|
239
|
+
collectionsEvaluated;
|
|
240
|
+
issues;
|
|
241
|
+
}
|
|
242
|
+
exports.PluginReleaseCheckResultApiDto = PluginReleaseCheckResultApiDto;
|
|
243
|
+
__decorate([
|
|
244
|
+
(0, swagger_1.ApiProperty)(),
|
|
245
|
+
__metadata("design:type", String)
|
|
246
|
+
], PluginReleaseCheckResultApiDto.prototype, "pluginId", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, swagger_1.ApiProperty)({ description: 'Canonical owner/name.' }),
|
|
249
|
+
__metadata("design:type", String)
|
|
250
|
+
], PluginReleaseCheckResultApiDto.prototype, "repository", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, swagger_1.ApiProperty)({
|
|
253
|
+
type: String,
|
|
254
|
+
nullable: true,
|
|
255
|
+
description: 'Null when the ref does not resolve.',
|
|
256
|
+
}),
|
|
257
|
+
__metadata("design:type", Object)
|
|
258
|
+
], PluginReleaseCheckResultApiDto.prototype, "commitSha", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, swagger_1.ApiProperty)({
|
|
261
|
+
type: String,
|
|
262
|
+
nullable: true,
|
|
263
|
+
description: 'Without the v prefix. Null when no version was given and none is current.',
|
|
264
|
+
}),
|
|
265
|
+
__metadata("design:type", Object)
|
|
266
|
+
], PluginReleaseCheckResultApiDto.prototype, "candidateVersion", void 0);
|
|
267
|
+
__decorate([
|
|
268
|
+
(0, swagger_1.ApiProperty)({
|
|
269
|
+
type: String,
|
|
270
|
+
nullable: true,
|
|
271
|
+
description: "Highest recorded version in the candidate's compatibility line. Null when there is none or the ref does not resolve; set with collectionsEvaluated false when the manifest is invalid.",
|
|
272
|
+
}),
|
|
273
|
+
__metadata("design:type", Object)
|
|
274
|
+
], PluginReleaseCheckResultApiDto.prototype, "baselineVersion", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, swagger_1.ApiProperty)({
|
|
277
|
+
description: 'Whether collections were compared against the baseline.',
|
|
278
|
+
}),
|
|
279
|
+
__metadata("design:type", Boolean)
|
|
280
|
+
], PluginReleaseCheckResultApiDto.prototype, "collectionsEvaluated", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, swagger_1.ApiProperty)({
|
|
283
|
+
type: [PluginReleaseCheckIssueApiDto],
|
|
284
|
+
description: 'Reasons a release from this ref would be rejected; an invalid manifest or an unresolvable ref stops evaluation.',
|
|
285
|
+
}),
|
|
286
|
+
__metadata("design:type", Array)
|
|
287
|
+
], PluginReleaseCheckResultApiDto.prototype, "issues", void 0);
|
|
194
288
|
//# sourceMappingURL=publication-api.dto.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PluginActionExecutionStatus, type PluginActionTrigger } from '../enums/plugin-action-execution-status.enum';
|
|
2
|
+
export declare class PluginActionExecution {
|
|
3
|
+
id: string;
|
|
4
|
+
pluginId: string;
|
|
5
|
+
pluginVersionId: string;
|
|
6
|
+
installationId: string;
|
|
7
|
+
projectId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
action: string;
|
|
10
|
+
input: unknown;
|
|
11
|
+
trigger: PluginActionTrigger;
|
|
12
|
+
status: PluginActionExecutionStatus;
|
|
13
|
+
role: string;
|
|
14
|
+
tokenHash: string | null;
|
|
15
|
+
deadlineAt: Date | null;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
startedAt: Date | null;
|
|
18
|
+
finishedAt: Date | null;
|
|
19
|
+
errorCode: string | null;
|
|
20
|
+
errorMessage: string | null;
|
|
21
|
+
result: unknown;
|
|
22
|
+
payloadsClearedAt: Date | null;
|
|
23
|
+
payloadBytes: number;
|
|
24
|
+
}
|