@rothenbergt/backstage-plugin-roadmap-common 1.0.0 → 1.1.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/index.cjs.js +15 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.esm.js +1 -1
- package/dist/types/index.cjs.js +4 -0
- package/dist/types/index.cjs.js.map +1 -1
- package/dist/types/index.esm.js +3 -1
- package/dist/types/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index
|
|
3
|
+
var index = require('./types/index.cjs.js');
|
|
4
4
|
var index$2 = require('./permissions/index.cjs.js');
|
|
5
|
-
var index = require('./events/index.cjs.js');
|
|
5
|
+
var index$1 = require('./events/index.cjs.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.
|
|
9
|
+
exports.DEFAULT_ROADMAP_PAGE_SUBTITLE = index.DEFAULT_ROADMAP_PAGE_SUBTITLE;
|
|
10
|
+
exports.DEFAULT_ROADMAP_PAGE_TITLE = index.DEFAULT_ROADMAP_PAGE_TITLE;
|
|
11
|
+
exports.FeatureStatus = index.FeatureStatus;
|
|
10
12
|
exports.roadmapAdminPermission = index$2.roadmapAdminPermission;
|
|
11
13
|
exports.roadmapCreatePermission = index$2.roadmapCreatePermission;
|
|
12
14
|
exports.roadmapPermissions = index$2.roadmapPermissions;
|
|
13
|
-
exports.EVENTS_ACTION_CHANGE_FEATURE_STATUS = index.EVENTS_ACTION_CHANGE_FEATURE_STATUS;
|
|
14
|
-
exports.EVENTS_ACTION_CREATE_COMMENT = index.EVENTS_ACTION_CREATE_COMMENT;
|
|
15
|
-
exports.EVENTS_ACTION_CREATE_FEATURE = index.EVENTS_ACTION_CREATE_FEATURE;
|
|
16
|
-
exports.EVENTS_ACTION_DELETE_COMMENT = index.EVENTS_ACTION_DELETE_COMMENT;
|
|
17
|
-
exports.EVENTS_ACTION_DELETE_FEATURE = index.EVENTS_ACTION_DELETE_FEATURE;
|
|
18
|
-
exports.EVENTS_ACTION_REORDER_BOARD = index.EVENTS_ACTION_REORDER_BOARD;
|
|
19
|
-
exports.EVENTS_ACTION_TOGGLE_VOTE = index.EVENTS_ACTION_TOGGLE_VOTE;
|
|
20
|
-
exports.EVENTS_ACTION_UPDATE_FEATURE = index.EVENTS_ACTION_UPDATE_FEATURE;
|
|
21
|
-
exports.EVENTS_TOPIC_ROADMAP = index.EVENTS_TOPIC_ROADMAP;
|
|
22
|
-
exports.SIGNALS_CHANNEL_ROADMAP = index.SIGNALS_CHANNEL_ROADMAP;
|
|
15
|
+
exports.EVENTS_ACTION_CHANGE_FEATURE_STATUS = index$1.EVENTS_ACTION_CHANGE_FEATURE_STATUS;
|
|
16
|
+
exports.EVENTS_ACTION_CREATE_COMMENT = index$1.EVENTS_ACTION_CREATE_COMMENT;
|
|
17
|
+
exports.EVENTS_ACTION_CREATE_FEATURE = index$1.EVENTS_ACTION_CREATE_FEATURE;
|
|
18
|
+
exports.EVENTS_ACTION_DELETE_COMMENT = index$1.EVENTS_ACTION_DELETE_COMMENT;
|
|
19
|
+
exports.EVENTS_ACTION_DELETE_FEATURE = index$1.EVENTS_ACTION_DELETE_FEATURE;
|
|
20
|
+
exports.EVENTS_ACTION_REORDER_BOARD = index$1.EVENTS_ACTION_REORDER_BOARD;
|
|
21
|
+
exports.EVENTS_ACTION_TOGGLE_VOTE = index$1.EVENTS_ACTION_TOGGLE_VOTE;
|
|
22
|
+
exports.EVENTS_ACTION_UPDATE_FEATURE = index$1.EVENTS_ACTION_UPDATE_FEATURE;
|
|
23
|
+
exports.EVENTS_TOPIC_ROADMAP = index$1.EVENTS_TOPIC_ROADMAP;
|
|
24
|
+
exports.SIGNALS_CHANNEL_ROADMAP = index$1.SIGNALS_CHANNEL_ROADMAP;
|
|
23
25
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -118,12 +118,36 @@ interface RoadmapUiCapabilities {
|
|
|
118
118
|
creatorEditDeleteSuggested: boolean;
|
|
119
119
|
adminReorder: boolean;
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Roadmap page header title used when `roadmap.page.title` is not set.
|
|
123
|
+
*
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
declare const DEFAULT_ROADMAP_PAGE_TITLE = "Public Roadmap";
|
|
127
|
+
/**
|
|
128
|
+
* Roadmap page header subtitle used when `roadmap.page.subtitle` is not set.
|
|
129
|
+
*
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
declare const DEFAULT_ROADMAP_PAGE_SUBTITLE = "Shape the Future with Us";
|
|
121
133
|
/**
|
|
122
134
|
* Response for GET /features/board-config.
|
|
123
135
|
*
|
|
124
136
|
* @public
|
|
125
137
|
*/
|
|
126
138
|
interface RoadmapBoardConfigResponse {
|
|
139
|
+
/**
|
|
140
|
+
* Page header title from `roadmap.page.title`. Optional because backends
|
|
141
|
+
* older than this field do not send it; fall back to
|
|
142
|
+
* {@link DEFAULT_ROADMAP_PAGE_TITLE}.
|
|
143
|
+
*/
|
|
144
|
+
title?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Page header subtitle from `roadmap.page.subtitle`. Optional because
|
|
147
|
+
* backends older than this field do not send it; fall back to
|
|
148
|
+
* {@link DEFAULT_ROADMAP_PAGE_SUBTITLE}.
|
|
149
|
+
*/
|
|
150
|
+
subtitle?: string;
|
|
127
151
|
columns: RoadmapBoardColumnResolved[];
|
|
128
152
|
capabilities: RoadmapUiCapabilities;
|
|
129
153
|
}
|
|
@@ -200,4 +224,4 @@ type RoadmapSignal = {
|
|
|
200
224
|
feature?: Feature;
|
|
201
225
|
};
|
|
202
226
|
|
|
203
|
-
export { type Column, type Comment, EVENTS_ACTION_CHANGE_FEATURE_STATUS, EVENTS_ACTION_CREATE_COMMENT, EVENTS_ACTION_CREATE_FEATURE, EVENTS_ACTION_DELETE_COMMENT, EVENTS_ACTION_DELETE_FEATURE, EVENTS_ACTION_REORDER_BOARD, EVENTS_ACTION_TOGGLE_VOTE, EVENTS_ACTION_UPDATE_FEATURE, EVENTS_TOPIC_ROADMAP, type Feature, FeatureStatus, type NewComment, type NewFeature, type RoadmapBoardColumnResolved, type RoadmapBoardConfigResponse, type RoadmapRetentionAnchor, type RoadmapSignal, type RoadmapSignalKind, type RoadmapUiCapabilities, SIGNALS_CHANNEL_ROADMAP, type VoteResponse, roadmapAdminPermission, roadmapCreatePermission, roadmapPermissions };
|
|
227
|
+
export { type Column, type Comment, DEFAULT_ROADMAP_PAGE_SUBTITLE, DEFAULT_ROADMAP_PAGE_TITLE, EVENTS_ACTION_CHANGE_FEATURE_STATUS, EVENTS_ACTION_CREATE_COMMENT, EVENTS_ACTION_CREATE_FEATURE, EVENTS_ACTION_DELETE_COMMENT, EVENTS_ACTION_DELETE_FEATURE, EVENTS_ACTION_REORDER_BOARD, EVENTS_ACTION_TOGGLE_VOTE, EVENTS_ACTION_UPDATE_FEATURE, EVENTS_TOPIC_ROADMAP, type Feature, FeatureStatus, type NewComment, type NewFeature, type RoadmapBoardColumnResolved, type RoadmapBoardConfigResponse, type RoadmapRetentionAnchor, type RoadmapSignal, type RoadmapSignalKind, type RoadmapUiCapabilities, SIGNALS_CHANNEL_ROADMAP, type VoteResponse, roadmapAdminPermission, roadmapCreatePermission, roadmapPermissions };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FeatureStatus } from './types/index.esm.js';
|
|
1
|
+
export { DEFAULT_ROADMAP_PAGE_SUBTITLE, DEFAULT_ROADMAP_PAGE_TITLE, FeatureStatus } from './types/index.esm.js';
|
|
2
2
|
export { roadmapAdminPermission, roadmapCreatePermission, roadmapPermissions } from './permissions/index.esm.js';
|
|
3
3
|
export { EVENTS_ACTION_CHANGE_FEATURE_STATUS, EVENTS_ACTION_CREATE_COMMENT, EVENTS_ACTION_CREATE_FEATURE, EVENTS_ACTION_DELETE_COMMENT, EVENTS_ACTION_DELETE_FEATURE, EVENTS_ACTION_REORDER_BOARD, EVENTS_ACTION_TOGGLE_VOTE, EVENTS_ACTION_UPDATE_FEATURE, EVENTS_TOPIC_ROADMAP, SIGNALS_CHANNEL_ROADMAP } from './events/index.esm.js';
|
|
4
4
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/types/index.cjs.js
CHANGED
|
@@ -8,6 +8,10 @@ var FeatureStatus = /* @__PURE__ */ ((FeatureStatus2) => {
|
|
|
8
8
|
FeatureStatus2["Declined"] = "Declined";
|
|
9
9
|
return FeatureStatus2;
|
|
10
10
|
})(FeatureStatus || {});
|
|
11
|
+
const DEFAULT_ROADMAP_PAGE_TITLE = "Public Roadmap";
|
|
12
|
+
const DEFAULT_ROADMAP_PAGE_SUBTITLE = "Shape the Future with Us";
|
|
11
13
|
|
|
14
|
+
exports.DEFAULT_ROADMAP_PAGE_SUBTITLE = DEFAULT_ROADMAP_PAGE_SUBTITLE;
|
|
15
|
+
exports.DEFAULT_ROADMAP_PAGE_TITLE = DEFAULT_ROADMAP_PAGE_TITLE;
|
|
12
16
|
exports.FeatureStatus = FeatureStatus;
|
|
13
17
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * Lifecycle status of a roadmap feature.\n *\n * @public\n */\nexport enum FeatureStatus {\n Suggested = 'Suggested',\n Planned = 'Planned',\n InProgress = 'In Progress',\n Completed = 'Completed',\n Declined = 'Declined',\n}\n\n/**\n * A roadmap feature as returned by the roadmap API.\n *\n * Type alias (not interface) so it satisfies JsonObject for events/signals.\n *\n * @public\n */\nexport type Feature = {\n id: string;\n title: string;\n description: string;\n status: FeatureStatus;\n votes: number;\n author: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n /** Sort order within status (database datasource). */\n boardPosition?: number;\n};\n\n/**\n * Payload for suggesting a new feature.\n *\n * @public\n */\nexport interface NewFeature {\n title: string;\n description: string;\n}\n\n/**\n * A comment on a roadmap feature.\n *\n * @public\n */\nexport interface Comment {\n id: string;\n author: string;\n featureId: string;\n text: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n}\n\n/**\n * Payload for adding a comment to a feature.\n *\n * @public\n */\nexport interface NewComment {\n text: string;\n featureId: string;\n author?: string;\n}\n\n/**\n * A board column with the features it contains.\n *\n * @public\n */\nexport interface Column {\n title: string;\n features: Feature[];\n}\n\n/**\n * Result of toggling a vote on a feature.\n *\n * @public\n */\nexport interface VoteResponse {\n voteAdded: boolean;\n voteCount: number;\n}\n\n/**\n * Which timestamp drives retention for a column.\n *\n * @public\n */\nexport type RoadmapRetentionAnchor = 'created' | 'updated';\n\n/**\n * One column entry after defaults are merged (used by API + UI).\n *\n * @public\n */\nexport interface RoadmapBoardColumnResolved {\n status: FeatureStatus;\n title: string;\n visible: boolean;\n /** When set (positive), items older than this many days are hidden from the default list (database only). */\n retentionDays?: number;\n retentionAnchor: RoadmapRetentionAnchor;\n}\n\n/**\n * Capabilities exposed to the frontend (GitLab = read-only extensions off).\n *\n * @public\n */\nexport interface RoadmapUiCapabilities {\n retentionFiltering: boolean;\n includeBeyondRetentionQuery: boolean;\n adminEditTitleDescription: boolean;\n adminDeleteFeature: boolean;\n adminDeleteComment: boolean;\n creatorEditDeleteSuggested: boolean;\n adminReorder: boolean;\n}\n\n/**\n * Response for GET /features/board-config.\n *\n * @public\n */\nexport interface RoadmapBoardConfigResponse {\n columns: RoadmapBoardColumnResolved[];\n capabilities: RoadmapUiCapabilities;\n}\n"],"names":["FeatureStatus"],"mappings":";;AAKO,IAAK,aAAA,qBAAAA,cAAAA,KAAL;AACL,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,eAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,UAAA,CAAA,GAAW,UAAA;AALD,EAAA,OAAAA,cAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * Lifecycle status of a roadmap feature.\n *\n * @public\n */\nexport enum FeatureStatus {\n Suggested = 'Suggested',\n Planned = 'Planned',\n InProgress = 'In Progress',\n Completed = 'Completed',\n Declined = 'Declined',\n}\n\n/**\n * A roadmap feature as returned by the roadmap API.\n *\n * Type alias (not interface) so it satisfies JsonObject for events/signals.\n *\n * @public\n */\nexport type Feature = {\n id: string;\n title: string;\n description: string;\n status: FeatureStatus;\n votes: number;\n author: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n /** Sort order within status (database datasource). */\n boardPosition?: number;\n};\n\n/**\n * Payload for suggesting a new feature.\n *\n * @public\n */\nexport interface NewFeature {\n title: string;\n description: string;\n}\n\n/**\n * A comment on a roadmap feature.\n *\n * @public\n */\nexport interface Comment {\n id: string;\n author: string;\n featureId: string;\n text: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n}\n\n/**\n * Payload for adding a comment to a feature.\n *\n * @public\n */\nexport interface NewComment {\n text: string;\n featureId: string;\n author?: string;\n}\n\n/**\n * A board column with the features it contains.\n *\n * @public\n */\nexport interface Column {\n title: string;\n features: Feature[];\n}\n\n/**\n * Result of toggling a vote on a feature.\n *\n * @public\n */\nexport interface VoteResponse {\n voteAdded: boolean;\n voteCount: number;\n}\n\n/**\n * Which timestamp drives retention for a column.\n *\n * @public\n */\nexport type RoadmapRetentionAnchor = 'created' | 'updated';\n\n/**\n * One column entry after defaults are merged (used by API + UI).\n *\n * @public\n */\nexport interface RoadmapBoardColumnResolved {\n status: FeatureStatus;\n title: string;\n visible: boolean;\n /** When set (positive), items older than this many days are hidden from the default list (database only). */\n retentionDays?: number;\n retentionAnchor: RoadmapRetentionAnchor;\n}\n\n/**\n * Capabilities exposed to the frontend (GitLab = read-only extensions off).\n *\n * @public\n */\nexport interface RoadmapUiCapabilities {\n retentionFiltering: boolean;\n includeBeyondRetentionQuery: boolean;\n adminEditTitleDescription: boolean;\n adminDeleteFeature: boolean;\n adminDeleteComment: boolean;\n creatorEditDeleteSuggested: boolean;\n adminReorder: boolean;\n}\n\n/**\n * Roadmap page header title used when `roadmap.page.title` is not set.\n *\n * @public\n */\nexport const DEFAULT_ROADMAP_PAGE_TITLE = 'Public Roadmap';\n\n/**\n * Roadmap page header subtitle used when `roadmap.page.subtitle` is not set.\n *\n * @public\n */\nexport const DEFAULT_ROADMAP_PAGE_SUBTITLE = 'Shape the Future with Us';\n\n/**\n * Response for GET /features/board-config.\n *\n * @public\n */\nexport interface RoadmapBoardConfigResponse {\n /**\n * Page header title from `roadmap.page.title`. Optional because backends\n * older than this field do not send it; fall back to\n * {@link DEFAULT_ROADMAP_PAGE_TITLE}.\n */\n title?: string;\n /**\n * Page header subtitle from `roadmap.page.subtitle`. Optional because\n * backends older than this field do not send it; fall back to\n * {@link DEFAULT_ROADMAP_PAGE_SUBTITLE}.\n */\n subtitle?: string;\n columns: RoadmapBoardColumnResolved[];\n capabilities: RoadmapUiCapabilities;\n}\n"],"names":["FeatureStatus"],"mappings":";;AAKO,IAAK,aAAA,qBAAAA,cAAAA,KAAL;AACL,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,eAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,UAAA,CAAA,GAAW,UAAA;AALD,EAAA,OAAAA,cAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA;AAgIL,MAAM,0BAAA,GAA6B;AAOnC,MAAM,6BAAA,GAAgC;;;;;;"}
|
package/dist/types/index.esm.js
CHANGED
|
@@ -6,6 +6,8 @@ var FeatureStatus = /* @__PURE__ */ ((FeatureStatus2) => {
|
|
|
6
6
|
FeatureStatus2["Declined"] = "Declined";
|
|
7
7
|
return FeatureStatus2;
|
|
8
8
|
})(FeatureStatus || {});
|
|
9
|
+
const DEFAULT_ROADMAP_PAGE_TITLE = "Public Roadmap";
|
|
10
|
+
const DEFAULT_ROADMAP_PAGE_SUBTITLE = "Shape the Future with Us";
|
|
9
11
|
|
|
10
|
-
export { FeatureStatus };
|
|
12
|
+
export { DEFAULT_ROADMAP_PAGE_SUBTITLE, DEFAULT_ROADMAP_PAGE_TITLE, FeatureStatus };
|
|
11
13
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * Lifecycle status of a roadmap feature.\n *\n * @public\n */\nexport enum FeatureStatus {\n Suggested = 'Suggested',\n Planned = 'Planned',\n InProgress = 'In Progress',\n Completed = 'Completed',\n Declined = 'Declined',\n}\n\n/**\n * A roadmap feature as returned by the roadmap API.\n *\n * Type alias (not interface) so it satisfies JsonObject for events/signals.\n *\n * @public\n */\nexport type Feature = {\n id: string;\n title: string;\n description: string;\n status: FeatureStatus;\n votes: number;\n author: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n /** Sort order within status (database datasource). */\n boardPosition?: number;\n};\n\n/**\n * Payload for suggesting a new feature.\n *\n * @public\n */\nexport interface NewFeature {\n title: string;\n description: string;\n}\n\n/**\n * A comment on a roadmap feature.\n *\n * @public\n */\nexport interface Comment {\n id: string;\n author: string;\n featureId: string;\n text: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n}\n\n/**\n * Payload for adding a comment to a feature.\n *\n * @public\n */\nexport interface NewComment {\n text: string;\n featureId: string;\n author?: string;\n}\n\n/**\n * A board column with the features it contains.\n *\n * @public\n */\nexport interface Column {\n title: string;\n features: Feature[];\n}\n\n/**\n * Result of toggling a vote on a feature.\n *\n * @public\n */\nexport interface VoteResponse {\n voteAdded: boolean;\n voteCount: number;\n}\n\n/**\n * Which timestamp drives retention for a column.\n *\n * @public\n */\nexport type RoadmapRetentionAnchor = 'created' | 'updated';\n\n/**\n * One column entry after defaults are merged (used by API + UI).\n *\n * @public\n */\nexport interface RoadmapBoardColumnResolved {\n status: FeatureStatus;\n title: string;\n visible: boolean;\n /** When set (positive), items older than this many days are hidden from the default list (database only). */\n retentionDays?: number;\n retentionAnchor: RoadmapRetentionAnchor;\n}\n\n/**\n * Capabilities exposed to the frontend (GitLab = read-only extensions off).\n *\n * @public\n */\nexport interface RoadmapUiCapabilities {\n retentionFiltering: boolean;\n includeBeyondRetentionQuery: boolean;\n adminEditTitleDescription: boolean;\n adminDeleteFeature: boolean;\n adminDeleteComment: boolean;\n creatorEditDeleteSuggested: boolean;\n adminReorder: boolean;\n}\n\n/**\n * Response for GET /features/board-config.\n *\n * @public\n */\nexport interface RoadmapBoardConfigResponse {\n columns: RoadmapBoardColumnResolved[];\n capabilities: RoadmapUiCapabilities;\n}\n"],"names":["FeatureStatus"],"mappings":"AAKO,IAAK,aAAA,qBAAAA,cAAAA,KAAL;AACL,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,eAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,UAAA,CAAA,GAAW,UAAA;AALD,EAAA,OAAAA,cAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/types/index.ts"],"sourcesContent":["/**\n * Lifecycle status of a roadmap feature.\n *\n * @public\n */\nexport enum FeatureStatus {\n Suggested = 'Suggested',\n Planned = 'Planned',\n InProgress = 'In Progress',\n Completed = 'Completed',\n Declined = 'Declined',\n}\n\n/**\n * A roadmap feature as returned by the roadmap API.\n *\n * Type alias (not interface) so it satisfies JsonObject for events/signals.\n *\n * @public\n */\nexport type Feature = {\n id: string;\n title: string;\n description: string;\n status: FeatureStatus;\n votes: number;\n author: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n /** Sort order within status (database datasource). */\n boardPosition?: number;\n};\n\n/**\n * Payload for suggesting a new feature.\n *\n * @public\n */\nexport interface NewFeature {\n title: string;\n description: string;\n}\n\n/**\n * A comment on a roadmap feature.\n *\n * @public\n */\nexport interface Comment {\n id: string;\n author: string;\n featureId: string;\n text: string;\n /** ISO 8601 UTC timestamp. */\n createdAt: string;\n /** ISO 8601 UTC timestamp. */\n updatedAt: string;\n}\n\n/**\n * Payload for adding a comment to a feature.\n *\n * @public\n */\nexport interface NewComment {\n text: string;\n featureId: string;\n author?: string;\n}\n\n/**\n * A board column with the features it contains.\n *\n * @public\n */\nexport interface Column {\n title: string;\n features: Feature[];\n}\n\n/**\n * Result of toggling a vote on a feature.\n *\n * @public\n */\nexport interface VoteResponse {\n voteAdded: boolean;\n voteCount: number;\n}\n\n/**\n * Which timestamp drives retention for a column.\n *\n * @public\n */\nexport type RoadmapRetentionAnchor = 'created' | 'updated';\n\n/**\n * One column entry after defaults are merged (used by API + UI).\n *\n * @public\n */\nexport interface RoadmapBoardColumnResolved {\n status: FeatureStatus;\n title: string;\n visible: boolean;\n /** When set (positive), items older than this many days are hidden from the default list (database only). */\n retentionDays?: number;\n retentionAnchor: RoadmapRetentionAnchor;\n}\n\n/**\n * Capabilities exposed to the frontend (GitLab = read-only extensions off).\n *\n * @public\n */\nexport interface RoadmapUiCapabilities {\n retentionFiltering: boolean;\n includeBeyondRetentionQuery: boolean;\n adminEditTitleDescription: boolean;\n adminDeleteFeature: boolean;\n adminDeleteComment: boolean;\n creatorEditDeleteSuggested: boolean;\n adminReorder: boolean;\n}\n\n/**\n * Roadmap page header title used when `roadmap.page.title` is not set.\n *\n * @public\n */\nexport const DEFAULT_ROADMAP_PAGE_TITLE = 'Public Roadmap';\n\n/**\n * Roadmap page header subtitle used when `roadmap.page.subtitle` is not set.\n *\n * @public\n */\nexport const DEFAULT_ROADMAP_PAGE_SUBTITLE = 'Shape the Future with Us';\n\n/**\n * Response for GET /features/board-config.\n *\n * @public\n */\nexport interface RoadmapBoardConfigResponse {\n /**\n * Page header title from `roadmap.page.title`. Optional because backends\n * older than this field do not send it; fall back to\n * {@link DEFAULT_ROADMAP_PAGE_TITLE}.\n */\n title?: string;\n /**\n * Page header subtitle from `roadmap.page.subtitle`. Optional because\n * backends older than this field do not send it; fall back to\n * {@link DEFAULT_ROADMAP_PAGE_SUBTITLE}.\n */\n subtitle?: string;\n columns: RoadmapBoardColumnResolved[];\n capabilities: RoadmapUiCapabilities;\n}\n"],"names":["FeatureStatus"],"mappings":"AAKO,IAAK,aAAA,qBAAAA,cAAAA,KAAL;AACL,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,eAAA,YAAA,CAAA,GAAa,aAAA;AACb,EAAAA,eAAA,WAAA,CAAA,GAAY,WAAA;AACZ,EAAAA,eAAA,UAAA,CAAA,GAAW,UAAA;AALD,EAAA,OAAAA,cAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA;AAgIL,MAAM,0BAAA,GAA6B;AAOnC,MAAM,6BAAA,GAAgC;;;;"}
|
package/package.json
CHANGED