@rothenbergt/backstage-plugin-roadmap-common 0.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/README.md +5 -0
- package/dist/index.cjs.js +12 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.esm.js +3 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/permissions/index.cjs.js +21 -0
- package/dist/permissions/index.cjs.js.map +1 -0
- package/dist/permissions/index.esm.js +17 -0
- package/dist/permissions/index.esm.js.map +1 -0
- package/dist/types/index.cjs.js +13 -0
- package/dist/types/index.cjs.js.map +1 -0
- package/dist/types/index.esm.js +11 -0
- package/dist/types/index.esm.js.map +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./types/index.cjs.js');
|
|
4
|
+
var index$1 = require('./permissions/index.cjs.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.FeatureStatus = index.FeatureStatus;
|
|
9
|
+
exports.roadmapAdminPermission = index$1.roadmapAdminPermission;
|
|
10
|
+
exports.roadmapCreatePermission = index$1.roadmapCreatePermission;
|
|
11
|
+
exports.roadmapPermissions = index$1.roadmapPermissions;
|
|
12
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
declare enum FeatureStatus {
|
|
4
|
+
Suggested = "Suggested",
|
|
5
|
+
Planned = "Planned",
|
|
6
|
+
InProgress = "In Progress",
|
|
7
|
+
Completed = "Completed",
|
|
8
|
+
Declined = "Declined"
|
|
9
|
+
}
|
|
10
|
+
interface Feature {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
status: FeatureStatus;
|
|
15
|
+
votes: number;
|
|
16
|
+
author: string;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
}
|
|
20
|
+
interface NewFeature {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
}
|
|
24
|
+
interface Comment {
|
|
25
|
+
id: string;
|
|
26
|
+
author: string;
|
|
27
|
+
featureId: string;
|
|
28
|
+
text: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
updated_at: string;
|
|
31
|
+
}
|
|
32
|
+
interface NewComment {
|
|
33
|
+
text: string;
|
|
34
|
+
featureId: string;
|
|
35
|
+
author?: string;
|
|
36
|
+
}
|
|
37
|
+
interface Column {
|
|
38
|
+
title: string;
|
|
39
|
+
features: Feature[];
|
|
40
|
+
}
|
|
41
|
+
interface VoteResponse {
|
|
42
|
+
voteAdded: boolean;
|
|
43
|
+
voteCount: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare const roadmapAdminPermission: _backstage_plugin_permission_common.BasicPermission;
|
|
47
|
+
declare const roadmapCreatePermission: _backstage_plugin_permission_common.BasicPermission;
|
|
48
|
+
declare const roadmapPermissions: _backstage_plugin_permission_common.BasicPermission[];
|
|
49
|
+
|
|
50
|
+
export { type Column, type Comment, type Feature, FeatureStatus, type NewComment, type NewFeature, type VoteResponse, roadmapAdminPermission, roadmapCreatePermission, roadmapPermissions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pluginPermissionCommon = require('@backstage/plugin-permission-common');
|
|
4
|
+
|
|
5
|
+
const roadmapAdminPermission = pluginPermissionCommon.createPermission({
|
|
6
|
+
name: "roadmap.admin",
|
|
7
|
+
attributes: { action: "update" }
|
|
8
|
+
});
|
|
9
|
+
const roadmapCreatePermission = pluginPermissionCommon.createPermission({
|
|
10
|
+
name: "roadmap.create",
|
|
11
|
+
attributes: { action: "create" }
|
|
12
|
+
});
|
|
13
|
+
const roadmapPermissions = [
|
|
14
|
+
roadmapAdminPermission,
|
|
15
|
+
roadmapCreatePermission
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
exports.roadmapAdminPermission = roadmapAdminPermission;
|
|
19
|
+
exports.roadmapCreatePermission = roadmapCreatePermission;
|
|
20
|
+
exports.roadmapPermissions = roadmapPermissions;
|
|
21
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/permissions/index.ts"],"sourcesContent":["import { createPermission } from '@backstage/plugin-permission-common';\n\nexport const roadmapAdminPermission = createPermission({\n name: 'roadmap.admin',\n attributes: { action: 'update' },\n});\n\nexport const roadmapCreatePermission = createPermission({\n name: 'roadmap.create',\n attributes: { action: 'create' },\n});\n\nexport const roadmapPermissions = [\n roadmapAdminPermission,\n roadmapCreatePermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAEO,MAAM,yBAAyBA,uCAAiB,CAAA;AAAA,EACrD,IAAM,EAAA,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS;AACjC,CAAC;AAEM,MAAM,0BAA0BA,uCAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,gBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS;AACjC,CAAC;AAEM,MAAM,kBAAqB,GAAA;AAAA,EAChC,sBAAA;AAAA,EACA;AACF;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createPermission } from '@backstage/plugin-permission-common';
|
|
2
|
+
|
|
3
|
+
const roadmapAdminPermission = createPermission({
|
|
4
|
+
name: "roadmap.admin",
|
|
5
|
+
attributes: { action: "update" }
|
|
6
|
+
});
|
|
7
|
+
const roadmapCreatePermission = createPermission({
|
|
8
|
+
name: "roadmap.create",
|
|
9
|
+
attributes: { action: "create" }
|
|
10
|
+
});
|
|
11
|
+
const roadmapPermissions = [
|
|
12
|
+
roadmapAdminPermission,
|
|
13
|
+
roadmapCreatePermission
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export { roadmapAdminPermission, roadmapCreatePermission, roadmapPermissions };
|
|
17
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/permissions/index.ts"],"sourcesContent":["import { createPermission } from '@backstage/plugin-permission-common';\n\nexport const roadmapAdminPermission = createPermission({\n name: 'roadmap.admin',\n attributes: { action: 'update' },\n});\n\nexport const roadmapCreatePermission = createPermission({\n name: 'roadmap.create',\n attributes: { action: 'create' },\n});\n\nexport const roadmapPermissions = [\n roadmapAdminPermission,\n roadmapCreatePermission,\n];\n"],"names":[],"mappings":";;AAEO,MAAM,yBAAyB,gBAAiB,CAAA;AAAA,EACrD,IAAM,EAAA,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS;AACjC,CAAC;AAEM,MAAM,0BAA0B,gBAAiB,CAAA;AAAA,EACtD,IAAM,EAAA,gBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS;AACjC,CAAC;AAEM,MAAM,kBAAqB,GAAA;AAAA,EAChC,sBAAA;AAAA,EACA;AACF;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var FeatureStatus = /* @__PURE__ */ ((FeatureStatus2) => {
|
|
4
|
+
FeatureStatus2["Suggested"] = "Suggested";
|
|
5
|
+
FeatureStatus2["Planned"] = "Planned";
|
|
6
|
+
FeatureStatus2["InProgress"] = "In Progress";
|
|
7
|
+
FeatureStatus2["Completed"] = "Completed";
|
|
8
|
+
FeatureStatus2["Declined"] = "Declined";
|
|
9
|
+
return FeatureStatus2;
|
|
10
|
+
})(FeatureStatus || {});
|
|
11
|
+
|
|
12
|
+
exports.FeatureStatus = FeatureStatus;
|
|
13
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/types/index.ts"],"sourcesContent":["export enum FeatureStatus {\n Suggested = 'Suggested',\n Planned = 'Planned',\n InProgress = 'In Progress',\n Completed = 'Completed',\n Declined = 'Declined',\n}\n\nexport interface Feature {\n id: string;\n title: string;\n description: string;\n status: FeatureStatus;\n votes: number;\n author: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface NewFeature {\n title: string;\n description: string;\n}\n\nexport interface Comment {\n id: string;\n author: string;\n featureId: string;\n text: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface NewComment {\n text: string;\n featureId: string;\n author?: string;\n}\n\nexport interface Column {\n title: string;\n features: Feature[];\n}\n\nexport interface VoteResponse {\n voteAdded: boolean;\n voteCount: number;\n}\n"],"names":["FeatureStatus"],"mappings":";;AAAY,IAAA,aAAA,qBAAAA,cAAL,KAAA;AACL,EAAAA,eAAA,WAAY,CAAA,GAAA,WAAA;AACZ,EAAAA,eAAA,SAAU,CAAA,GAAA,SAAA;AACV,EAAAA,eAAA,YAAa,CAAA,GAAA,aAAA;AACb,EAAAA,eAAA,WAAY,CAAA,GAAA,WAAA;AACZ,EAAAA,eAAA,UAAW,CAAA,GAAA,UAAA;AALD,EAAAA,OAAAA,cAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var FeatureStatus = /* @__PURE__ */ ((FeatureStatus2) => {
|
|
2
|
+
FeatureStatus2["Suggested"] = "Suggested";
|
|
3
|
+
FeatureStatus2["Planned"] = "Planned";
|
|
4
|
+
FeatureStatus2["InProgress"] = "In Progress";
|
|
5
|
+
FeatureStatus2["Completed"] = "Completed";
|
|
6
|
+
FeatureStatus2["Declined"] = "Declined";
|
|
7
|
+
return FeatureStatus2;
|
|
8
|
+
})(FeatureStatus || {});
|
|
9
|
+
|
|
10
|
+
export { FeatureStatus };
|
|
11
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../src/types/index.ts"],"sourcesContent":["export enum FeatureStatus {\n Suggested = 'Suggested',\n Planned = 'Planned',\n InProgress = 'In Progress',\n Completed = 'Completed',\n Declined = 'Declined',\n}\n\nexport interface Feature {\n id: string;\n title: string;\n description: string;\n status: FeatureStatus;\n votes: number;\n author: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface NewFeature {\n title: string;\n description: string;\n}\n\nexport interface Comment {\n id: string;\n author: string;\n featureId: string;\n text: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface NewComment {\n text: string;\n featureId: string;\n author?: string;\n}\n\nexport interface Column {\n title: string;\n features: Feature[];\n}\n\nexport interface VoteResponse {\n voteAdded: boolean;\n voteCount: number;\n}\n"],"names":["FeatureStatus"],"mappings":"AAAY,IAAA,aAAA,qBAAAA,cAAL,KAAA;AACL,EAAAA,eAAA,WAAY,CAAA,GAAA,WAAA;AACZ,EAAAA,eAAA,SAAU,CAAA,GAAA,SAAA;AACV,EAAAA,eAAA,YAAa,CAAA,GAAA,aAAA;AACb,EAAAA,eAAA,WAAY,CAAA,GAAA,WAAA;AACZ,EAAAA,eAAA,UAAW,CAAA,GAAA,UAAA;AALD,EAAAA,OAAAA,cAAAA;AAAA,CAAA,EAAA,aAAA,IAAA,EAAA;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rothenbergt/backstage-plugin-roadmap-common",
|
|
3
|
+
"description": "Common functionalities for the roadmap plugin",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"main": "dist/index.cjs.js",
|
|
11
|
+
"module": "dist/index.esm.js",
|
|
12
|
+
"types": "dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"backstage": {
|
|
15
|
+
"role": "common-library"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "backstage-cli package build",
|
|
20
|
+
"lint": "backstage-cli package lint",
|
|
21
|
+
"test": "backstage-cli package test",
|
|
22
|
+
"clean": "backstage-cli package clean",
|
|
23
|
+
"prepack": "backstage-cli package prepack",
|
|
24
|
+
"postpack": "backstage-cli package postpack"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@backstage/cli": "^0.31.0"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@backstage/plugin-permission-common": "^0.8.4"
|
|
34
|
+
},
|
|
35
|
+
"module": "dist/index.esm.js"
|
|
36
|
+
}
|