@xemahq/platform-common 0.28.2 → 0.30.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/database/biome-database.d.ts +2 -11
- package/dist/database/biome-database.d.ts.map +1 -1
- package/dist/database/biome-database.js +4 -24
- package/dist/database/biome-database.js.map +1 -1
- package/dist/database/idempotency-record-schema.d.ts +6 -0
- package/dist/database/idempotency-record-schema.d.ts.map +1 -0
- package/dist/database/idempotency-record-schema.js +102 -0
- package/dist/database/idempotency-record-schema.js.map +1 -0
- package/dist/database/release-intent-schema.d.ts +6 -0
- package/dist/database/release-intent-schema.d.ts.map +1 -0
- package/dist/database/release-intent-schema.js +129 -0
- package/dist/database/release-intent-schema.js.map +1 -0
- package/dist/database/schema-source-reader.d.ts +7 -0
- package/dist/database/schema-source-reader.d.ts.map +1 -0
- package/dist/database/schema-source-reader.js +49 -0
- package/dist/database/schema-source-reader.js.map +1 -0
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -29
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-session.types.d.ts +0 -9
- package/dist/lib/agent-session.types.d.ts.map +1 -1
- package/dist/lib/agent-session.types.js +1 -11
- package/dist/lib/agent-session.types.js.map +1 -1
- package/dist/lib/auth/org-authority-observations.d.ts +2 -0
- package/dist/lib/auth/org-authority-observations.d.ts.map +1 -1
- package/dist/lib/auth/org-authority-observations.js +31 -12
- package/dist/lib/auth/org-authority-observations.js.map +1 -1
- package/dist/lib/auth/org-authority.d.ts +8 -11
- package/dist/lib/auth/org-authority.d.ts.map +1 -1
- package/dist/lib/auth/org-authority.js +12 -31
- package/dist/lib/auth/org-authority.js.map +1 -1
- package/dist/lib/auth/org-claim.d.ts.map +1 -1
- package/dist/lib/auth/org-claim.js.map +1 -1
- package/dist/lib/auth/org-role.d.ts +2 -6
- package/dist/lib/auth/org-role.d.ts.map +1 -1
- package/dist/lib/auth/org-role.js +10 -19
- package/dist/lib/auth/org-role.js.map +1 -1
- package/dist/lib/edge-stream/index.d.ts.map +1 -1
- package/dist/lib/edge-stream/index.js.map +1 -1
- package/dist/lib/errors/artifact-store-errors.d.ts +14 -0
- package/dist/lib/errors/artifact-store-errors.d.ts.map +1 -0
- package/dist/lib/errors/artifact-store-errors.js +41 -0
- package/dist/lib/errors/artifact-store-errors.js.map +1 -0
- package/dist/lib/errors/index.d.ts +3 -0
- package/dist/lib/errors/index.d.ts.map +1 -0
- package/dist/lib/{interaction-widgets → errors}/index.js +2 -3
- package/dist/lib/errors/index.js.map +1 -0
- package/dist/lib/errors/knowledge-graph-errors.d.ts +5 -0
- package/dist/lib/errors/knowledge-graph-errors.d.ts.map +1 -0
- package/dist/lib/errors/knowledge-graph-errors.js +17 -0
- package/dist/lib/errors/knowledge-graph-errors.js.map +1 -0
- package/dist/lib/manifest/manifest.enums.d.ts.map +1 -1
- package/dist/lib/manifest/manifest.enums.js.map +1 -1
- package/dist/lib/mcp-bridge-token.d.ts +0 -2
- package/dist/lib/mcp-bridge-token.d.ts.map +1 -1
- package/dist/lib/mcp-bridge-token.js +0 -8
- package/dist/lib/mcp-bridge-token.js.map +1 -1
- package/dist/lib/request-context.d.ts.map +1 -1
- package/dist/lib/request-context.js.map +1 -1
- package/dist/lib/to-json-column-value.d.ts +6 -0
- package/dist/lib/to-json-column-value.d.ts.map +1 -1
- package/dist/lib/to-json-column-value.js +19 -2
- package/dist/lib/to-json-column-value.js.map +1 -1
- package/dist/nestjs/auth/actor-classification.d.ts +4 -4
- package/dist/nestjs/auth/actor-classification.d.ts.map +1 -1
- package/dist/nestjs/auth/actor-classification.js +19 -11
- package/dist/nestjs/auth/actor-classification.js.map +1 -1
- package/dist/nestjs/auth/holds-org-authority.d.ts +12 -0
- package/dist/nestjs/auth/holds-org-authority.d.ts.map +1 -0
- package/dist/nestjs/auth/holds-org-authority.js +20 -0
- package/dist/nestjs/auth/holds-org-authority.js.map +1 -0
- package/dist/nestjs/auth/index.d.ts +4 -3
- package/dist/nestjs/auth/index.d.ts.map +1 -1
- package/dist/nestjs/auth/index.js +8 -6
- package/dist/nestjs/auth/index.js.map +1 -1
- package/dist/nestjs/auth/org-role.guard.d.ts.map +1 -1
- package/dist/nestjs/auth/org-role.guard.js +2 -2
- package/dist/nestjs/auth/org-role.guard.js.map +1 -1
- package/dist/nestjs/auth/service-or-org-role.guard.d.ts.map +1 -1
- package/dist/nestjs/auth/service-or-org-role.guard.js +2 -2
- package/dist/nestjs/auth/service-or-org-role.guard.js.map +1 -1
- package/dist/nestjs/capability-edge-tenancy.d.ts +16 -0
- package/dist/nestjs/capability-edge-tenancy.d.ts.map +1 -0
- package/dist/nestjs/capability-edge-tenancy.js +44 -0
- package/dist/nestjs/capability-edge-tenancy.js.map +1 -0
- package/dist/nestjs/global-exception.filter.d.ts +1 -4
- package/dist/nestjs/global-exception.filter.d.ts.map +1 -1
- package/dist/nestjs/global-exception.filter.js +53 -179
- package/dist/nestjs/global-exception.filter.js.map +1 -1
- package/dist/nestjs/idempotency/idempotency.service.d.ts.map +1 -1
- package/dist/nestjs/idempotency/idempotency.service.js +2 -1
- package/dist/nestjs/idempotency/idempotency.service.js.map +1 -1
- package/dist/nestjs/index.d.ts +11 -7
- package/dist/nestjs/index.d.ts.map +1 -1
- package/dist/nestjs/index.js +35 -10
- package/dist/nestjs/index.js.map +1 -1
- package/dist/nestjs/jwt-verification.guard.d.ts +4 -1
- package/dist/nestjs/jwt-verification.guard.d.ts.map +1 -1
- package/dist/nestjs/jwt-verification.guard.js +17 -4
- package/dist/nestjs/jwt-verification.guard.js.map +1 -1
- package/dist/nestjs/org-scope.d.ts +9 -0
- package/dist/nestjs/org-scope.d.ts.map +1 -0
- package/dist/nestjs/org-scope.js +26 -0
- package/dist/nestjs/org-scope.js.map +1 -0
- package/dist/nestjs/pagination.d.ts +26 -0
- package/dist/nestjs/pagination.d.ts.map +1 -1
- package/dist/nestjs/pagination.js +122 -7
- package/dist/nestjs/pagination.js.map +1 -1
- package/dist/nestjs/problem-details.dto.d.ts +15 -0
- package/dist/nestjs/problem-details.dto.d.ts.map +1 -0
- package/dist/nestjs/problem-details.dto.js +103 -0
- package/dist/nestjs/problem-details.dto.js.map +1 -0
- package/dist/nestjs/refusal.d.ts +27 -0
- package/dist/nestjs/refusal.d.ts.map +1 -0
- package/dist/nestjs/refusal.js +231 -0
- package/dist/nestjs/refusal.js.map +1 -0
- package/dist/nestjs/request-context.middleware.d.ts +1 -0
- package/dist/nestjs/request-context.middleware.d.ts.map +1 -1
- package/dist/nestjs/request-context.middleware.js +48 -19
- package/dist/nestjs/request-context.middleware.js.map +1 -1
- package/dist/nestjs/swagger.decorators.d.ts +1 -0
- package/dist/nestjs/swagger.decorators.d.ts.map +1 -1
- package/dist/nestjs/swagger.decorators.js +22 -2
- package/dist/nestjs/swagger.decorators.js.map +1 -1
- package/package.json +9 -3
- package/prisma-url.d.ts +38 -0
- package/prisma-url.js +84 -0
- package/dist/lib/briefcase/index.d.ts +0 -18
- package/dist/lib/briefcase/index.d.ts.map +0 -1
- package/dist/lib/briefcase/index.js +0 -72
- package/dist/lib/briefcase/index.js.map +0 -1
- package/dist/lib/errors/pipeline-errors.d.ts +0 -178
- package/dist/lib/errors/pipeline-errors.d.ts.map +0 -1
- package/dist/lib/errors/pipeline-errors.js +0 -316
- package/dist/lib/errors/pipeline-errors.js.map +0 -1
- package/dist/lib/interaction-widgets/factories.d.ts +0 -83
- package/dist/lib/interaction-widgets/factories.d.ts.map +0 -1
- package/dist/lib/interaction-widgets/factories.js +0 -173
- package/dist/lib/interaction-widgets/factories.js.map +0 -1
- package/dist/lib/interaction-widgets/index.d.ts +0 -4
- package/dist/lib/interaction-widgets/index.d.ts.map +0 -1
- package/dist/lib/interaction-widgets/index.js.map +0 -1
- package/dist/lib/interaction-widgets/validation.d.ts +0 -10
- package/dist/lib/interaction-widgets/validation.d.ts.map +0 -1
- package/dist/lib/interaction-widgets/validation.js +0 -214
- package/dist/lib/interaction-widgets/validation.js.map +0 -1
- package/dist/lib/interaction-widgets/widget-types.d.ts +0 -163
- package/dist/lib/interaction-widgets/widget-types.d.ts.map +0 -1
- package/dist/lib/interaction-widgets/widget-types.js +0 -22
- package/dist/lib/interaction-widgets/widget-types.js.map +0 -1
- package/dist/lib/run-events/action-types.d.ts +0 -40
- package/dist/lib/run-events/action-types.d.ts.map +0 -1
- package/dist/lib/run-events/action-types.js +0 -40
- package/dist/lib/run-events/action-types.js.map +0 -1
- package/dist/lib/run-events/event-families.d.ts +0 -95
- package/dist/lib/run-events/event-families.d.ts.map +0 -1
- package/dist/lib/run-events/event-families.js +0 -282
- package/dist/lib/run-events/event-families.js.map +0 -1
- package/dist/lib/run-events/index.d.ts +0 -7
- package/dist/lib/run-events/index.d.ts.map +0 -1
- package/dist/lib/run-events/index.js +0 -23
- package/dist/lib/run-events/index.js.map +0 -1
- package/dist/lib/run-events/run-event.types.d.ts +0 -60
- package/dist/lib/run-events/run-event.types.d.ts.map +0 -1
- package/dist/lib/run-events/run-event.types.js +0 -57
- package/dist/lib/run-events/run-event.types.js.map +0 -1
- package/dist/lib/run-events/run-live-snapshot.types.d.ts +0 -69
- package/dist/lib/run-events/run-live-snapshot.types.d.ts.map +0 -1
- package/dist/lib/run-events/run-live-snapshot.types.js +0 -17
- package/dist/lib/run-events/run-live-snapshot.types.js.map +0 -1
- package/dist/lib/run-events/snapshot-reducer.d.ts +0 -4
- package/dist/lib/run-events/snapshot-reducer.d.ts.map +0 -1
- package/dist/lib/run-events/snapshot-reducer.js +0 -313
- package/dist/lib/run-events/snapshot-reducer.js.map +0 -1
- package/dist/lib/run-events/stream-contracts.d.ts +0 -79
- package/dist/lib/run-events/stream-contracts.d.ts.map +0 -1
- package/dist/lib/run-events/stream-contracts.js +0 -27
- package/dist/lib/run-events/stream-contracts.js.map +0 -1
- package/dist/lib/tag-taxonomy/concern-tags.d.ts +0 -3
- package/dist/lib/tag-taxonomy/concern-tags.d.ts.map +0 -1
- package/dist/lib/tag-taxonomy/concern-tags.js +0 -26
- package/dist/lib/tag-taxonomy/concern-tags.js.map +0 -1
- package/dist/lib/tag-taxonomy/index.d.ts +0 -14
- package/dist/lib/tag-taxonomy/index.d.ts.map +0 -1
- package/dist/lib/tag-taxonomy/index.js +0 -59
- package/dist/lib/tag-taxonomy/index.js.map +0 -1
- package/dist/lib/tag-taxonomy/lifecycle-tags.d.ts +0 -3
- package/dist/lib/tag-taxonomy/lifecycle-tags.d.ts.map +0 -1
- package/dist/lib/tag-taxonomy/lifecycle-tags.js +0 -57
- package/dist/lib/tag-taxonomy/lifecycle-tags.js.map +0 -1
- package/dist/lib/tag-taxonomy/stack-tags.d.ts +0 -3
- package/dist/lib/tag-taxonomy/stack-tags.d.ts.map +0 -1
- package/dist/lib/tag-taxonomy/stack-tags.js +0 -26
- package/dist/lib/tag-taxonomy/stack-tags.js.map +0 -1
- package/dist/lib/tag-taxonomy/team-tags.d.ts +0 -3
- package/dist/lib/tag-taxonomy/team-tags.d.ts.map +0 -1
- package/dist/lib/tag-taxonomy/team-tags.js +0 -84
- package/dist/lib/tag-taxonomy/team-tags.js.map +0 -1
- package/dist/lib/tag-taxonomy/types.d.ts +0 -14
- package/dist/lib/tag-taxonomy/types.d.ts.map +0 -1
- package/dist/lib/tag-taxonomy/types.js +0 -3
- package/dist/lib/tag-taxonomy/types.js.map +0 -1
- package/dist/nestjs/error-response.dto.d.ts +0 -10
- package/dist/nestjs/error-response.dto.d.ts.map +0 -1
- package/dist/nestjs/error-response.dto.js +0 -46
- package/dist/nestjs/error-response.dto.js.map +0 -1
- package/dist/schemas/xema/analysis.json +0 -51
- package/dist/schemas/xema/clarification-contract.json +0 -49
- package/dist/schemas/xema/context.json +0 -79
- package/dist/schemas/xema/index.d.ts +0 -8
- package/dist/schemas/xema/index.d.ts.map +0 -1
- package/dist/schemas/xema/index.js +0 -28
- package/dist/schemas/xema/index.js.map +0 -1
- package/dist/schemas/xema/review-history.json +0 -42
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemoryEffectivenessUpdateError = exports.AgentBudgetExceededError = exports.EntityExtractionError = exports.ContractIncompleteError = exports.KbWritePhaseMissingError = exports.KbSpaceSlugMissingError = exports.UserReviewActionInvalidError = exports.RegionRefResolutionError = exports.DeliverableFetchError = exports.CapabilityReviewerConfigError = exports.CapabilityReviewerResolutionError = exports.CoordinatorRejectionContextMissingError = exports.PhaseDagMissingDependencyError = exports.WorkItemPayloadInvalidError = exports.OptionalProjectionIncompleteError = exports.ArtifactPayloadShapeError = exports.ArtifactSchemaVersionMismatchError = exports.ManifestSlugMissingError = exports.ManifestSlugMismatchError = exports.ManifestParseError = exports.FrontmatterEncodingError = exports.FrontmatterParseError = exports.PoolReleaseError = exports.SessionTerminationError = exports.SessionCreatedTimeoutError = exports.CallbackHeadersError = exports.ProjectVariableInjectionError = exports.McpToolAuthorizationError = exports.McpInjectionError = exports.CredentialRefreshError = exports.PipelineError = void 0;
|
|
4
|
-
class PipelineError extends Error {
|
|
5
|
-
causeError;
|
|
6
|
-
constructor(message, cause) {
|
|
7
|
-
super(message);
|
|
8
|
-
this.name = new.target.name;
|
|
9
|
-
this.causeError = cause;
|
|
10
|
-
Object.setPrototypeOf(this, new.target.prototype);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.PipelineError = PipelineError;
|
|
14
|
-
class CredentialRefreshError extends PipelineError {
|
|
15
|
-
scope;
|
|
16
|
-
allocationId;
|
|
17
|
-
consecutiveFailures;
|
|
18
|
-
kind = 'credential-refresh';
|
|
19
|
-
constructor(message, scope, allocationId, consecutiveFailures, cause) {
|
|
20
|
-
super(message, cause);
|
|
21
|
-
this.scope = scope;
|
|
22
|
-
this.allocationId = allocationId;
|
|
23
|
-
this.consecutiveFailures = consecutiveFailures;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.CredentialRefreshError = CredentialRefreshError;
|
|
27
|
-
class McpInjectionError extends PipelineError {
|
|
28
|
-
proxyUrl;
|
|
29
|
-
kind = 'mcp-injection';
|
|
30
|
-
constructor(message, proxyUrl, cause) {
|
|
31
|
-
super(message, cause);
|
|
32
|
-
this.proxyUrl = proxyUrl;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.McpInjectionError = McpInjectionError;
|
|
36
|
-
class McpToolAuthorizationError extends PipelineError {
|
|
37
|
-
allocationId;
|
|
38
|
-
reason;
|
|
39
|
-
kind = 'mcp-tool-authorization';
|
|
40
|
-
constructor(message, allocationId, reason, cause) {
|
|
41
|
-
super(message, cause);
|
|
42
|
-
this.allocationId = allocationId;
|
|
43
|
-
this.reason = reason;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.McpToolAuthorizationError = McpToolAuthorizationError;
|
|
47
|
-
class ProjectVariableInjectionError extends PipelineError {
|
|
48
|
-
kind = 'project-variable-injection';
|
|
49
|
-
constructor(message, cause) {
|
|
50
|
-
super(message, cause);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.ProjectVariableInjectionError = ProjectVariableInjectionError;
|
|
54
|
-
class CallbackHeadersError extends PipelineError {
|
|
55
|
-
kind = 'callback-headers';
|
|
56
|
-
constructor(message, cause) {
|
|
57
|
-
super(message, cause);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.CallbackHeadersError = CallbackHeadersError;
|
|
61
|
-
class SessionCreatedTimeoutError extends PipelineError {
|
|
62
|
-
groupKey;
|
|
63
|
-
kind = 'session-created-timeout';
|
|
64
|
-
constructor(message, groupKey) {
|
|
65
|
-
super(message);
|
|
66
|
-
this.groupKey = groupKey;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.SessionCreatedTimeoutError = SessionCreatedTimeoutError;
|
|
70
|
-
class SessionTerminationError extends PipelineError {
|
|
71
|
-
failedSessionIds;
|
|
72
|
-
kind = 'session-termination';
|
|
73
|
-
constructor(message, failedSessionIds, cause) {
|
|
74
|
-
super(message, cause);
|
|
75
|
-
this.failedSessionIds = failedSessionIds;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.SessionTerminationError = SessionTerminationError;
|
|
79
|
-
class PoolReleaseError extends PipelineError {
|
|
80
|
-
allocationId;
|
|
81
|
-
kind = 'pool-release';
|
|
82
|
-
constructor(message, allocationId, cause) {
|
|
83
|
-
super(message, cause);
|
|
84
|
-
this.allocationId = allocationId;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.PoolReleaseError = PoolReleaseError;
|
|
88
|
-
class FrontmatterParseError extends PipelineError {
|
|
89
|
-
source;
|
|
90
|
-
kind = 'frontmatter-parse';
|
|
91
|
-
constructor(message, source, cause) {
|
|
92
|
-
super(message, cause);
|
|
93
|
-
this.source = source;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
exports.FrontmatterParseError = FrontmatterParseError;
|
|
97
|
-
class FrontmatterEncodingError extends PipelineError {
|
|
98
|
-
detectedEncoding;
|
|
99
|
-
kind = 'frontmatter-encoding';
|
|
100
|
-
constructor(message, detectedEncoding) {
|
|
101
|
-
super(message);
|
|
102
|
-
this.detectedEncoding = detectedEncoding;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.FrontmatterEncodingError = FrontmatterEncodingError;
|
|
106
|
-
class ManifestParseError extends PipelineError {
|
|
107
|
-
path;
|
|
108
|
-
rawContent;
|
|
109
|
-
kind = 'manifest-parse';
|
|
110
|
-
constructor(message, path, rawContent, cause) {
|
|
111
|
-
super(message, cause);
|
|
112
|
-
this.path = path;
|
|
113
|
-
this.rawContent = rawContent;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
exports.ManifestParseError = ManifestParseError;
|
|
117
|
-
class ManifestSlugMismatchError extends PipelineError {
|
|
118
|
-
manifestSlug;
|
|
119
|
-
availableSlugs;
|
|
120
|
-
kind = 'manifest-slug-mismatch';
|
|
121
|
-
constructor(message, manifestSlug, availableSlugs) {
|
|
122
|
-
super(message);
|
|
123
|
-
this.manifestSlug = manifestSlug;
|
|
124
|
-
this.availableSlugs = availableSlugs;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.ManifestSlugMismatchError = ManifestSlugMismatchError;
|
|
128
|
-
class ManifestSlugMissingError extends PipelineError {
|
|
129
|
-
context;
|
|
130
|
-
kind = 'manifest-slug-missing';
|
|
131
|
-
constructor(message, context) {
|
|
132
|
-
super(message);
|
|
133
|
-
this.context = context;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
exports.ManifestSlugMissingError = ManifestSlugMissingError;
|
|
137
|
-
class ArtifactSchemaVersionMismatchError extends PipelineError {
|
|
138
|
-
kind_;
|
|
139
|
-
got;
|
|
140
|
-
expected;
|
|
141
|
-
kind = 'artifact-schema-version-mismatch';
|
|
142
|
-
constructor(message, kind_, got, expected) {
|
|
143
|
-
super(message);
|
|
144
|
-
this.kind_ = kind_;
|
|
145
|
-
this.got = got;
|
|
146
|
-
this.expected = expected;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.ArtifactSchemaVersionMismatchError = ArtifactSchemaVersionMismatchError;
|
|
150
|
-
class ArtifactPayloadShapeError extends PipelineError {
|
|
151
|
-
artifactType;
|
|
152
|
-
outputKind;
|
|
153
|
-
zodIssues;
|
|
154
|
-
kind = 'artifact-payload-shape-invalid';
|
|
155
|
-
constructor(message, artifactType, outputKind, zodIssues) {
|
|
156
|
-
super(message);
|
|
157
|
-
this.artifactType = artifactType;
|
|
158
|
-
this.outputKind = outputKind;
|
|
159
|
-
this.zodIssues = zodIssues;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
exports.ArtifactPayloadShapeError = ArtifactPayloadShapeError;
|
|
163
|
-
class OptionalProjectionIncompleteError extends PipelineError {
|
|
164
|
-
declaredPages;
|
|
165
|
-
producedPages;
|
|
166
|
-
kind = 'optional-projection-incomplete';
|
|
167
|
-
constructor(message, declaredPages, producedPages) {
|
|
168
|
-
super(message);
|
|
169
|
-
this.declaredPages = declaredPages;
|
|
170
|
-
this.producedPages = producedPages;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
exports.OptionalProjectionIncompleteError = OptionalProjectionIncompleteError;
|
|
174
|
-
class WorkItemPayloadInvalidError extends PipelineError {
|
|
175
|
-
workItemId;
|
|
176
|
-
zodIssues;
|
|
177
|
-
kind = 'work-item-payload-invalid';
|
|
178
|
-
constructor(message, workItemId, zodIssues) {
|
|
179
|
-
super(message);
|
|
180
|
-
this.workItemId = workItemId;
|
|
181
|
-
this.zodIssues = zodIssues;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
exports.WorkItemPayloadInvalidError = WorkItemPayloadInvalidError;
|
|
185
|
-
class PhaseDagMissingDependencyError extends PipelineError {
|
|
186
|
-
groupKey;
|
|
187
|
-
missingDependency;
|
|
188
|
-
kind = 'phase-dag-missing-dependency';
|
|
189
|
-
constructor(message, groupKey, missingDependency) {
|
|
190
|
-
super(message);
|
|
191
|
-
this.groupKey = groupKey;
|
|
192
|
-
this.missingDependency = missingDependency;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
exports.PhaseDagMissingDependencyError = PhaseDagMissingDependencyError;
|
|
196
|
-
class CoordinatorRejectionContextMissingError extends PipelineError {
|
|
197
|
-
groupKey;
|
|
198
|
-
attemptNumber;
|
|
199
|
-
kind = 'coordinator-rejection-context-missing';
|
|
200
|
-
constructor(message, groupKey, attemptNumber) {
|
|
201
|
-
super(message);
|
|
202
|
-
this.groupKey = groupKey;
|
|
203
|
-
this.attemptNumber = attemptNumber;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
exports.CoordinatorRejectionContextMissingError = CoordinatorRejectionContextMissingError;
|
|
207
|
-
class CapabilityReviewerResolutionError extends PipelineError {
|
|
208
|
-
kind = 'capability-reviewer-resolution';
|
|
209
|
-
constructor(message, cause) {
|
|
210
|
-
super(message, cause);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
exports.CapabilityReviewerResolutionError = CapabilityReviewerResolutionError;
|
|
214
|
-
class CapabilityReviewerConfigError extends PipelineError {
|
|
215
|
-
groupKey;
|
|
216
|
-
requiredCount;
|
|
217
|
-
producedCount;
|
|
218
|
-
kind = 'capability-reviewer-config';
|
|
219
|
-
constructor(message, groupKey, requiredCount, producedCount) {
|
|
220
|
-
super(message);
|
|
221
|
-
this.groupKey = groupKey;
|
|
222
|
-
this.requiredCount = requiredCount;
|
|
223
|
-
this.producedCount = producedCount;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
exports.CapabilityReviewerConfigError = CapabilityReviewerConfigError;
|
|
227
|
-
class DeliverableFetchError extends PipelineError {
|
|
228
|
-
failedDeliverables;
|
|
229
|
-
kind = 'deliverable-fetch';
|
|
230
|
-
constructor(message, failedDeliverables, cause) {
|
|
231
|
-
super(message, cause);
|
|
232
|
-
this.failedDeliverables = failedDeliverables;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
exports.DeliverableFetchError = DeliverableFetchError;
|
|
236
|
-
class RegionRefResolutionError extends PipelineError {
|
|
237
|
-
pageId;
|
|
238
|
-
reason;
|
|
239
|
-
kind = 'region-ref-resolution';
|
|
240
|
-
constructor(message, pageId, reason) {
|
|
241
|
-
super(message);
|
|
242
|
-
this.pageId = pageId;
|
|
243
|
-
this.reason = reason;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
exports.RegionRefResolutionError = RegionRefResolutionError;
|
|
247
|
-
class UserReviewActionInvalidError extends PipelineError {
|
|
248
|
-
zodIssues;
|
|
249
|
-
kind = 'user-review-action-invalid';
|
|
250
|
-
constructor(message, zodIssues) {
|
|
251
|
-
super(message);
|
|
252
|
-
this.zodIssues = zodIssues;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
exports.UserReviewActionInvalidError = UserReviewActionInvalidError;
|
|
256
|
-
class KbSpaceSlugMissingError extends PipelineError {
|
|
257
|
-
context;
|
|
258
|
-
kind = 'kb-space-slug-missing';
|
|
259
|
-
constructor(message, context) {
|
|
260
|
-
super(message);
|
|
261
|
-
this.context = context;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
exports.KbSpaceSlugMissingError = KbSpaceSlugMissingError;
|
|
265
|
-
class KbWritePhaseMissingError extends PipelineError {
|
|
266
|
-
kind = 'kb-write-phase-missing';
|
|
267
|
-
constructor(message) {
|
|
268
|
-
super(message);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
exports.KbWritePhaseMissingError = KbWritePhaseMissingError;
|
|
272
|
-
class ContractIncompleteError extends PipelineError {
|
|
273
|
-
contractType;
|
|
274
|
-
missingFields;
|
|
275
|
-
kind = 'contract-incomplete';
|
|
276
|
-
constructor(message, contractType, missingFields) {
|
|
277
|
-
super(message);
|
|
278
|
-
this.contractType = contractType;
|
|
279
|
-
this.missingFields = missingFields;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
exports.ContractIncompleteError = ContractIncompleteError;
|
|
283
|
-
class EntityExtractionError extends PipelineError {
|
|
284
|
-
kind = 'entity-extraction';
|
|
285
|
-
constructor(message, cause) {
|
|
286
|
-
super(message, cause);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
exports.EntityExtractionError = EntityExtractionError;
|
|
290
|
-
class AgentBudgetExceededError extends PipelineError {
|
|
291
|
-
dimension;
|
|
292
|
-
observed;
|
|
293
|
-
limit;
|
|
294
|
-
agentSlug;
|
|
295
|
-
stageKey;
|
|
296
|
-
kind = 'composition-budget-exceeded';
|
|
297
|
-
constructor(message, dimension, observed, limit, agentSlug, stageKey) {
|
|
298
|
-
super(message);
|
|
299
|
-
this.dimension = dimension;
|
|
300
|
-
this.observed = observed;
|
|
301
|
-
this.limit = limit;
|
|
302
|
-
this.agentSlug = agentSlug;
|
|
303
|
-
this.stageKey = stageKey;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
exports.AgentBudgetExceededError = AgentBudgetExceededError;
|
|
307
|
-
class MemoryEffectivenessUpdateError extends PipelineError {
|
|
308
|
-
failed;
|
|
309
|
-
kind = 'memory-effectiveness-update';
|
|
310
|
-
constructor(message, failed) {
|
|
311
|
-
super(message);
|
|
312
|
-
this.failed = failed;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
exports.MemoryEffectivenessUpdateError = MemoryEffectivenessUpdateError;
|
|
316
|
-
//# sourceMappingURL=pipeline-errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-errors.js","sourceRoot":"","sources":["../../../src/lib/errors/pipeline-errors.ts"],"names":[],"mappings":";;;AA0BA,MAAsB,aAAc,SAAQ,KAAK;IAKtC,UAAU,CAAU;IAE7B,YAAsB,OAAe,EAAE,KAAe;QACpD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;CACF;AAfD,sCAeC;AAWD,MAAa,sBAAuB,SAAQ,aAAa;IAI5C;IACA;IACA;IALF,IAAI,GAAG,oBAA6B,CAAC;IAC9C,YACE,OAAe,EACN,KAAoB,EACpB,YAAgC,EAChC,mBAA2B,EACpC,KAAe;QAEf,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QALb,UAAK,GAAL,KAAK,CAAe;QACpB,iBAAY,GAAZ,YAAY,CAAoB;QAChC,wBAAmB,GAAnB,mBAAmB,CAAQ;IAItC,CAAC;CACF;AAXD,wDAWC;AAGD,MAAa,iBAAkB,SAAQ,aAAa;IAEZ;IAD7B,IAAI,GAAG,eAAwB,CAAC;IACzC,YAAY,OAAe,EAAW,QAAgB,EAAE,KAAe;QACrE,KAAK,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APF,IAAI,GAAG,6BAAsC,CAAC;IACvD,YACE,OAAe,EACN,SAAmD,EACnD,QAAgB,EAChB,KAAa,EACb,SAAiB,EACjB,QAAuB;QAEhC,KAAK,CAAC,OAAO,CAAC,CAAC;QANN,cAAS,GAAT,SAAS,CAA0C;QACnD,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,cAAS,GAAT,SAAS,CAAQ;QACjB,aAAQ,GAAR,QAAQ,CAAe;IAGlC,CAAC;CACF;AAZD,4DAYC;AAGD,MAAa,8BAA+B,SAAQ,aAAa;IAIpD;IAHF,IAAI,GAAG,6BAAsC,CAAC;IACvD,YACE,OAAe,EACN,MAAqD;QAE9D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFN,WAAM,GAAN,MAAM,CAA+C;IAGhE,CAAC;CACF;AARD,wEAQC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { type Widget, type WidgetOption, type InteractionPayload, type SingleSelectWidget, type MultiSelectWidget, type TextInputWidget, type TextAreaWidget, type BooleanWidget, type RatingWidget, type ConfirmWidget, type SliderWidget, type RankedListWidget, type ProsConsWidget, type ChecklistWidget, type ComparisonTableWidget, type TagInputWidget } from './widget-types';
|
|
2
|
-
interface WidgetDefaults {
|
|
3
|
-
id?: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
allowAuto?: boolean;
|
|
7
|
-
allowFreeText?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function singleSelect(title: string, options: WidgetOption[], opts?: WidgetDefaults & {
|
|
10
|
-
defaultValue?: string;
|
|
11
|
-
}): SingleSelectWidget;
|
|
12
|
-
export declare function multiSelect(title: string, options: WidgetOption[], opts?: WidgetDefaults & {
|
|
13
|
-
defaultValues?: string[];
|
|
14
|
-
minSelections?: number;
|
|
15
|
-
maxSelections?: number;
|
|
16
|
-
}): MultiSelectWidget;
|
|
17
|
-
export declare function textInput(title: string, opts?: WidgetDefaults & {
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
defaultValue?: string;
|
|
20
|
-
maxLength?: number;
|
|
21
|
-
}): TextInputWidget;
|
|
22
|
-
export declare function textArea(title: string, opts?: WidgetDefaults & {
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
defaultValue?: string;
|
|
25
|
-
maxLength?: number;
|
|
26
|
-
rows?: number;
|
|
27
|
-
}): TextAreaWidget;
|
|
28
|
-
export declare function boolean(title: string, opts?: WidgetDefaults & {
|
|
29
|
-
trueLabel?: string;
|
|
30
|
-
falseLabel?: string;
|
|
31
|
-
defaultValue?: boolean;
|
|
32
|
-
}): BooleanWidget;
|
|
33
|
-
export declare function rating(title: string, min: number, max: number, opts?: WidgetDefaults & {
|
|
34
|
-
step?: number;
|
|
35
|
-
defaultValue?: number;
|
|
36
|
-
labels?: Record<number, string>;
|
|
37
|
-
}): RatingWidget;
|
|
38
|
-
export declare function confirm(title: string, opts?: WidgetDefaults & {
|
|
39
|
-
confirmLabel?: string;
|
|
40
|
-
declineLabel?: string;
|
|
41
|
-
defaultValue?: boolean;
|
|
42
|
-
}): ConfirmWidget;
|
|
43
|
-
export declare function slider(title: string, min: number, max: number, opts?: WidgetDefaults & {
|
|
44
|
-
step?: number;
|
|
45
|
-
defaultValue?: number;
|
|
46
|
-
labels?: Record<number, string>;
|
|
47
|
-
unit?: string;
|
|
48
|
-
}): SliderWidget;
|
|
49
|
-
export declare function rankedList(title: string, items: WidgetOption[], opts?: WidgetDefaults & {
|
|
50
|
-
defaultOrder?: string[];
|
|
51
|
-
maxRanked?: number;
|
|
52
|
-
}): RankedListWidget;
|
|
53
|
-
export declare function prosCons(title: string, subject: string, opts?: WidgetDefaults & {
|
|
54
|
-
defaultPros?: string[];
|
|
55
|
-
defaultCons?: string[];
|
|
56
|
-
allowUserEntries?: boolean;
|
|
57
|
-
}): ProsConsWidget;
|
|
58
|
-
export declare function checklist(title: string, items: (WidgetOption & {
|
|
59
|
-
checked?: boolean;
|
|
60
|
-
})[], opts?: WidgetDefaults & {
|
|
61
|
-
allowUserItems?: boolean;
|
|
62
|
-
}): ChecklistWidget;
|
|
63
|
-
export declare function comparisonTable(title: string, columns: {
|
|
64
|
-
key: string;
|
|
65
|
-
label: string;
|
|
66
|
-
}[], rows: {
|
|
67
|
-
key: string;
|
|
68
|
-
label: string;
|
|
69
|
-
description?: string;
|
|
70
|
-
}[], opts?: WidgetDefaults & {
|
|
71
|
-
defaultValues?: Record<string, string>;
|
|
72
|
-
editable?: boolean;
|
|
73
|
-
}): ComparisonTableWidget;
|
|
74
|
-
export declare function tagInput(title: string, opts?: WidgetDefaults & {
|
|
75
|
-
suggestions?: string[];
|
|
76
|
-
defaultTags?: string[];
|
|
77
|
-
maxTags?: number;
|
|
78
|
-
allowCustomTags?: boolean;
|
|
79
|
-
placeholder?: string;
|
|
80
|
-
}): TagInputWidget;
|
|
81
|
-
export declare function buildInteractionPayload(widgets: Widget[]): InteractionPayload;
|
|
82
|
-
export {};
|
|
83
|
-
//# sourceMappingURL=factories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/lib/interaction-widgets/factories.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAIxB,UAAU,cAAc;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC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AAK,EAAE,MAAM,EACb,KAAK,EAAE,CAAC,YAAY,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,EAC/C,IAAI,CAAC,EAAE,cAAc,GAAG;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GACA,eAAe,CAQjB;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EACzC,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EAC5D,IAAI,CAAC,EAAE,cAAc,GAAG;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GACA,qBAAqB,CAUvB;AAED,wBAAgB,QAAQ,CACtB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,cAAc,GAAG;IACtB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACA,cAAc,CAWhB;AAID,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,kBAAkB,CAK7E"}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.singleSelect = singleSelect;
|
|
4
|
-
exports.multiSelect = multiSelect;
|
|
5
|
-
exports.textInput = textInput;
|
|
6
|
-
exports.textArea = textArea;
|
|
7
|
-
exports.boolean = boolean;
|
|
8
|
-
exports.rating = rating;
|
|
9
|
-
exports.confirm = confirm;
|
|
10
|
-
exports.slider = slider;
|
|
11
|
-
exports.rankedList = rankedList;
|
|
12
|
-
exports.prosCons = prosCons;
|
|
13
|
-
exports.checklist = checklist;
|
|
14
|
-
exports.comparisonTable = comparisonTable;
|
|
15
|
-
exports.tagInput = tagInput;
|
|
16
|
-
exports.buildInteractionPayload = buildInteractionPayload;
|
|
17
|
-
const node_crypto_1 = require("node:crypto");
|
|
18
|
-
const widget_types_1 = require("./widget-types");
|
|
19
|
-
function defaults(overrides) {
|
|
20
|
-
return {
|
|
21
|
-
id: overrides?.id ?? (0, node_crypto_1.randomUUID)(),
|
|
22
|
-
description: overrides?.description,
|
|
23
|
-
required: overrides?.required ?? false,
|
|
24
|
-
allowAuto: overrides?.allowAuto ?? true,
|
|
25
|
-
allowFreeText: overrides?.allowFreeText ?? true,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function singleSelect(title, options, opts) {
|
|
29
|
-
return {
|
|
30
|
-
...defaults(opts),
|
|
31
|
-
type: widget_types_1.WidgetType.SINGLE_SELECT,
|
|
32
|
-
title,
|
|
33
|
-
options,
|
|
34
|
-
defaultValue: opts?.defaultValue,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function multiSelect(title, options, opts) {
|
|
38
|
-
return {
|
|
39
|
-
...defaults(opts),
|
|
40
|
-
type: widget_types_1.WidgetType.MULTI_SELECT,
|
|
41
|
-
title,
|
|
42
|
-
options,
|
|
43
|
-
defaultValues: opts?.defaultValues,
|
|
44
|
-
minSelections: opts?.minSelections,
|
|
45
|
-
maxSelections: opts?.maxSelections,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function textInput(title, opts) {
|
|
49
|
-
return {
|
|
50
|
-
...defaults(opts),
|
|
51
|
-
type: widget_types_1.WidgetType.TEXT_INPUT,
|
|
52
|
-
title,
|
|
53
|
-
placeholder: opts?.placeholder,
|
|
54
|
-
defaultValue: opts?.defaultValue,
|
|
55
|
-
maxLength: opts?.maxLength,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function textArea(title, opts) {
|
|
59
|
-
return {
|
|
60
|
-
...defaults(opts),
|
|
61
|
-
type: widget_types_1.WidgetType.TEXT_AREA,
|
|
62
|
-
title,
|
|
63
|
-
placeholder: opts?.placeholder,
|
|
64
|
-
defaultValue: opts?.defaultValue,
|
|
65
|
-
maxLength: opts?.maxLength,
|
|
66
|
-
rows: opts?.rows,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function boolean(title, opts) {
|
|
70
|
-
return {
|
|
71
|
-
...defaults(opts),
|
|
72
|
-
type: widget_types_1.WidgetType.BOOLEAN,
|
|
73
|
-
title,
|
|
74
|
-
trueLabel: opts?.trueLabel,
|
|
75
|
-
falseLabel: opts?.falseLabel,
|
|
76
|
-
defaultValue: opts?.defaultValue,
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function rating(title, min, max, opts) {
|
|
80
|
-
return {
|
|
81
|
-
...defaults(opts),
|
|
82
|
-
type: widget_types_1.WidgetType.RATING,
|
|
83
|
-
title,
|
|
84
|
-
min,
|
|
85
|
-
max,
|
|
86
|
-
step: opts?.step,
|
|
87
|
-
defaultValue: opts?.defaultValue,
|
|
88
|
-
labels: opts?.labels,
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function confirm(title, opts) {
|
|
92
|
-
return {
|
|
93
|
-
...defaults(opts),
|
|
94
|
-
type: widget_types_1.WidgetType.CONFIRM,
|
|
95
|
-
title,
|
|
96
|
-
confirmLabel: opts?.confirmLabel,
|
|
97
|
-
declineLabel: opts?.declineLabel,
|
|
98
|
-
defaultValue: opts?.defaultValue,
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
function slider(title, min, max, opts) {
|
|
102
|
-
return {
|
|
103
|
-
...defaults(opts),
|
|
104
|
-
type: widget_types_1.WidgetType.SLIDER,
|
|
105
|
-
title,
|
|
106
|
-
min,
|
|
107
|
-
max,
|
|
108
|
-
step: opts?.step,
|
|
109
|
-
defaultValue: opts?.defaultValue,
|
|
110
|
-
labels: opts?.labels,
|
|
111
|
-
unit: opts?.unit,
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
function rankedList(title, items, opts) {
|
|
115
|
-
return {
|
|
116
|
-
...defaults(opts),
|
|
117
|
-
type: widget_types_1.WidgetType.RANKED_LIST,
|
|
118
|
-
title,
|
|
119
|
-
items,
|
|
120
|
-
defaultOrder: opts?.defaultOrder,
|
|
121
|
-
maxRanked: opts?.maxRanked,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
function prosCons(title, subject, opts) {
|
|
125
|
-
return {
|
|
126
|
-
...defaults(opts),
|
|
127
|
-
type: widget_types_1.WidgetType.PROS_CONS,
|
|
128
|
-
title,
|
|
129
|
-
subject,
|
|
130
|
-
defaultPros: opts?.defaultPros,
|
|
131
|
-
defaultCons: opts?.defaultCons,
|
|
132
|
-
allowUserEntries: opts?.allowUserEntries ?? true,
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
function checklist(title, items, opts) {
|
|
136
|
-
return {
|
|
137
|
-
...defaults(opts),
|
|
138
|
-
type: widget_types_1.WidgetType.CHECKLIST,
|
|
139
|
-
title,
|
|
140
|
-
items,
|
|
141
|
-
allowUserItems: opts?.allowUserItems ?? true,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function comparisonTable(title, columns, rows, opts) {
|
|
145
|
-
return {
|
|
146
|
-
...defaults(opts),
|
|
147
|
-
type: widget_types_1.WidgetType.COMPARISON_TABLE,
|
|
148
|
-
title,
|
|
149
|
-
columns,
|
|
150
|
-
rows,
|
|
151
|
-
defaultValues: opts?.defaultValues,
|
|
152
|
-
editable: opts?.editable ?? true,
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function tagInput(title, opts) {
|
|
156
|
-
return {
|
|
157
|
-
...defaults(opts),
|
|
158
|
-
type: widget_types_1.WidgetType.TAG_INPUT,
|
|
159
|
-
title,
|
|
160
|
-
suggestions: opts?.suggestions,
|
|
161
|
-
defaultTags: opts?.defaultTags,
|
|
162
|
-
maxTags: opts?.maxTags,
|
|
163
|
-
allowCustomTags: opts?.allowCustomTags ?? true,
|
|
164
|
-
placeholder: opts?.placeholder,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
function buildInteractionPayload(widgets) {
|
|
168
|
-
return {
|
|
169
|
-
schemaVersion: widget_types_1.WIDGET_SCHEMA_VERSION,
|
|
170
|
-
widgets,
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
//# sourceMappingURL=factories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factories.js","sourceRoot":"","sources":["../../../src/lib/interaction-widgets/factories.ts"],"names":[],"mappings":";;AAsDA,oCAYC;AAED,kCAkBC;AAED,8BAgBC;AAED,4BAkBC;AAED,0BAgBC;AAED,wBAoBC;AAED,0BAgBC;AAID,wBAsBC;AAED,gCAgBC;AAED,4BAkBC;AAED,8BAcC;AAED,0CAkBC;AAED,4BAoBC;AAID,0DAKC;AAnTD,6CAAyC;AACzC,iDAmBwB;AAYxB,SAAS,QAAQ,CACf,SAA0B;IAI1B,OAAO;QACL,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,IAAA,wBAAU,GAAE;QACjC,WAAW,EAAE,SAAS,EAAE,WAAW;QACnC,QAAQ,EAAE,SAAS,EAAE,QAAQ,IAAI,KAAK;QACtC,SAAS,EAAE,SAAS,EAAE,SAAS,IAAI,IAAI;QACvC,aAAa,EAAE,SAAS,EAAE,aAAa,IAAI,IAAI;KAChD,CAAC;AACJ,CAAC;AAID,SAAgB,YAAY,CAC1B,KAAa,EACb,OAAuB,EACvB,IAAiD;IAEjD,OAAO;QACL,GAAG,QAAQ,CAAC,IAAI,CAAC;QACjB,IAAI,EAAE,yBAAU,CAAC,aAAa;QAC9B,KAAK;QACL,OAAO;QACP,YAAY,EAA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
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/interaction-widgets/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/interaction-widgets/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Widget } from './widget-types';
|
|
2
|
-
export interface ValidationError {
|
|
3
|
-
path: string;
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function validateWidget(widget: unknown, index: number): ValidationError[];
|
|
7
|
-
export declare function validateInteractionPayload(payload: unknown): ValidationError[];
|
|
8
|
-
export declare function validateWidgetAnswer(answer: unknown, widgets: Widget[], index: number): ValidationError[];
|
|
9
|
-
export declare function validateWidgetResponsePayload(response: unknown, widgets: Widget[]): ValidationError[];
|
|
10
|
-
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/lib/interaction-widgets/validation.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,MAAM,EAIZ,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,MAAM,GACZ,eAAe,EAAE,CA6HnB;AAID,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,GACf,eAAe,EAAE,CAqCnB;AAID,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,EAAE,EACjB,KAAK,EAAE,MAAM,GACZ,eAAe,EAAE,CAwCnB;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EAAE,GAChB,eAAe,EAAE,CA2CnB"}
|