@we-scrum/enums 1.0.15 → 1.0.19
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/{content-type-enum.d.ts → dist/content-type-enum.d.ts} +0 -0
- package/{content-type-enum.js → dist/content-type-enum.js} +0 -0
- package/{content-type-enum.js.map → dist/content-type-enum.js.map} +0 -0
- package/{crafting-master-enum.d.ts → dist/crafting-master-enum.d.ts} +0 -0
- package/{crafting-master-enum.js → dist/crafting-master-enum.js} +0 -0
- package/{crafting-master-enum.js.map → dist/crafting-master-enum.js.map} +0 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{index.js → dist/index.js} +0 -0
- package/{index.js.map → dist/index.js.map} +0 -0
- package/{object-property-type-enum.d.ts → dist/object-property-type-enum.d.ts} +0 -0
- package/{object-property-type-enum.js → dist/object-property-type-enum.js} +0 -0
- package/{object-property-type-enum.js.map → dist/object-property-type-enum.js.map} +0 -0
- package/{operation-enum.d.ts → dist/operation-enum.d.ts} +0 -0
- package/{operation-enum.js → dist/operation-enum.js} +0 -0
- package/{operation-enum.js.map → dist/operation-enum.js.map} +0 -0
- package/{progress-status-enum.d.ts → dist/progress-status-enum.d.ts} +0 -0
- package/{progress-status-enum.js → dist/progress-status-enum.js} +0 -0
- package/{progress-status-enum.js.map → dist/progress-status-enum.js.map} +0 -0
- package/{route-method-enum.d.ts → dist/route-method-enum.d.ts} +0 -0
- package/{route-method-enum.js → dist/route-method-enum.js} +0 -0
- package/{route-method-enum.js.map → dist/route-method-enum.js.map} +0 -0
- package/{route-query-param-type-enum.d.ts → dist/route-query-param-type-enum.d.ts} +0 -0
- package/{route-query-param-type-enum.js → dist/route-query-param-type-enum.js} +0 -0
- package/{route-query-param-type-enum.js.map → dist/route-query-param-type-enum.js.map} +0 -0
- package/{search-result-type-enum.d.ts → dist/search-result-type-enum.d.ts} +0 -0
- package/{search-result-type-enum.js → dist/search-result-type-enum.js} +0 -0
- package/{search-result-type-enum.js.map → dist/search-result-type-enum.js.map} +0 -0
- package/{story-status-enum.d.ts → dist/story-status-enum.d.ts} +0 -0
- package/{story-status-enum.js → dist/story-status-enum.js} +0 -0
- package/{story-status-enum.js.map → dist/story-status-enum.js.map} +0 -0
- package/{user-role-enum.d.ts → dist/user-role-enum.d.ts} +0 -0
- package/{user-role-enum.js → dist/user-role-enum.js} +0 -0
- package/{user-role-enum.js.map → dist/user-role-enum.js.map} +0 -0
- package/package.json +6 -6
- package/src/content-type-enum.ts +13 -0
- package/src/crafting-master-enum.ts +13 -0
- package/src/index.ts +10 -0
- package/src/object-property-type-enum.ts +23 -0
- package/src/operation-enum.ts +15 -0
- package/src/progress-status-enum.ts +33 -0
- package/src/route-method-enum.ts +13 -0
- package/src/route-query-param-type-enum.ts +19 -0
- package/src/search-result-type-enum.ts +19 -0
- package/src/story-status-enum.ts +19 -0
- package/src/user-role-enum.ts +17 -0
- package/tsconfig.json +20 -0
- package/we-scrum-enums-1.0.15.tgz +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-scrum/enums",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "We-Scrum enums",
|
|
5
|
-
"
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "https://github.com/BUONJG/we-scrum.git"
|
|
@@ -15,12 +16,11 @@
|
|
|
15
16
|
"author": "",
|
|
16
17
|
"license": "ISC",
|
|
17
18
|
"peerDependencies": {
|
|
18
|
-
"@my-devkit/core": "1.0.
|
|
19
|
+
"@my-devkit/core": "1.0.58"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@my-devkit/core": "1.0.
|
|
22
|
+
"@my-devkit/core": "1.0.58",
|
|
22
23
|
"ts-cleaner": "^1.0.5",
|
|
23
24
|
"typescript": "^4.5.2"
|
|
24
|
-
}
|
|
25
|
-
"module": "index.js"
|
|
25
|
+
}
|
|
26
26
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum ContentType {
|
|
4
|
+
MarkDown = 'MarkDown',
|
|
5
|
+
Html = 'Html'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export namespace ContentType {
|
|
9
|
+
export const helper = new EnumHelper('ContentType', [
|
|
10
|
+
ContentType.MarkDown,
|
|
11
|
+
ContentType.Html
|
|
12
|
+
]);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum CraftingMaster {
|
|
4
|
+
WeScrum = 'WeScrum',
|
|
5
|
+
AzureDevOps = 'AzureDevOps'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export namespace CraftingMaster {
|
|
9
|
+
export const helper = new EnumHelper<CraftingMaster>('CraftingMaster', [
|
|
10
|
+
CraftingMaster.WeScrum,
|
|
11
|
+
CraftingMaster.AzureDevOps
|
|
12
|
+
]);
|
|
13
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './content-type-enum';
|
|
2
|
+
export * from './crafting-master-enum';
|
|
3
|
+
export * from './object-property-type-enum';
|
|
4
|
+
export * from './operation-enum';
|
|
5
|
+
export * from './progress-status-enum';
|
|
6
|
+
export * from './route-method-enum';
|
|
7
|
+
export * from './route-query-param-type-enum';
|
|
8
|
+
export * from './search-result-type-enum';
|
|
9
|
+
export * from './story-status-enum';
|
|
10
|
+
export * from './user-role-enum';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum ObjectPropertyType {
|
|
4
|
+
String = 'String',
|
|
5
|
+
Number = 'Number',
|
|
6
|
+
Boolean = 'Boolean',
|
|
7
|
+
Date = 'Date',
|
|
8
|
+
Enumeration = 'Enumeration',
|
|
9
|
+
Object = 'Object',
|
|
10
|
+
Any = 'Any'
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export namespace ObjectPropertyType {
|
|
14
|
+
export const helper = new EnumHelper('ObjectPropertyType', [
|
|
15
|
+
ObjectPropertyType.String,
|
|
16
|
+
ObjectPropertyType.Number,
|
|
17
|
+
ObjectPropertyType.Boolean,
|
|
18
|
+
ObjectPropertyType.Date,
|
|
19
|
+
ObjectPropertyType.Enumeration,
|
|
20
|
+
ObjectPropertyType.Object,
|
|
21
|
+
ObjectPropertyType.Any
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum Operation {
|
|
4
|
+
Create = 'Create',
|
|
5
|
+
Update = 'Update',
|
|
6
|
+
Delete = 'Delete'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export namespace Operation {
|
|
10
|
+
export const helper = new EnumHelper('Operation', [
|
|
11
|
+
Operation.Create,
|
|
12
|
+
Operation.Update,
|
|
13
|
+
Operation.Delete
|
|
14
|
+
]);
|
|
15
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum ProgressStatus {
|
|
4
|
+
ToDo = 'ToDo',
|
|
5
|
+
Doing = 'Doing',
|
|
6
|
+
Done = 'Done'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class ProgressStatusHelper extends EnumHelper<ProgressStatus> {
|
|
10
|
+
|
|
11
|
+
public getIcon(status: ProgressStatus): ProgressStatus.ProgressStatusIcon {
|
|
12
|
+
switch (status) {
|
|
13
|
+
case ProgressStatus.ToDo:
|
|
14
|
+
return 'timer-sand';
|
|
15
|
+
case ProgressStatus.Doing:
|
|
16
|
+
return 'update';
|
|
17
|
+
case ProgressStatus.Done:
|
|
18
|
+
return 'check';
|
|
19
|
+
|
|
20
|
+
default:
|
|
21
|
+
return 'help-rhombus-outline';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace ProgressStatus {
|
|
27
|
+
export type ProgressStatusIcon = 'timer-sand' | 'update' | 'check' | 'help-rhombus-outline';
|
|
28
|
+
export const helper = new ProgressStatusHelper('ProgressStatus', [
|
|
29
|
+
ProgressStatus.ToDo,
|
|
30
|
+
ProgressStatus.Doing,
|
|
31
|
+
ProgressStatus.Done
|
|
32
|
+
]);
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum RouteQueryParamType {
|
|
4
|
+
String = 'String',
|
|
5
|
+
Number = 'Number',
|
|
6
|
+
Boolean = 'Boolean',
|
|
7
|
+
Date = 'Date',
|
|
8
|
+
Enumeration = 'Enumeration'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace RouteQueryParamType {
|
|
12
|
+
export const helper = new EnumHelper('RouteQueryParamType', [
|
|
13
|
+
RouteQueryParamType.String,
|
|
14
|
+
RouteQueryParamType.Number,
|
|
15
|
+
RouteQueryParamType.Boolean,
|
|
16
|
+
RouteQueryParamType.Date,
|
|
17
|
+
RouteQueryParamType.Enumeration
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum SearchResultType {
|
|
4
|
+
Story = 'Story',
|
|
5
|
+
Object = 'Object',
|
|
6
|
+
Route = 'Route',
|
|
7
|
+
Enumeration = 'Enumeration',
|
|
8
|
+
RecentSearch = 'RecentSearch'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace SearchResultType {
|
|
12
|
+
export const helper = new EnumHelper('SearchResultType', [
|
|
13
|
+
SearchResultType.Route,
|
|
14
|
+
SearchResultType.Story,
|
|
15
|
+
SearchResultType.Object,
|
|
16
|
+
SearchResultType.Enumeration,
|
|
17
|
+
SearchResultType.RecentSearch
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum StoryStatus {
|
|
4
|
+
Backlog = 'Backlog',
|
|
5
|
+
Crafting = 'Crafting',
|
|
6
|
+
Analysis = 'Analysis',
|
|
7
|
+
Development = 'Development',
|
|
8
|
+
Done = 'Done'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export namespace StoryStatus {
|
|
12
|
+
export const helper = new EnumHelper('StoryStatus', [
|
|
13
|
+
StoryStatus.Backlog,
|
|
14
|
+
StoryStatus.Crafting,
|
|
15
|
+
StoryStatus.Analysis,
|
|
16
|
+
StoryStatus.Development,
|
|
17
|
+
StoryStatus.Done
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum UserRole {
|
|
4
|
+
Owner = 'Owner',
|
|
5
|
+
Analyst = 'Analyst',
|
|
6
|
+
Developer = 'Developer',
|
|
7
|
+
ReadOnly = 'ReadOnly'
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace UserRole {
|
|
11
|
+
export const helper = new EnumHelper('UserRole', [
|
|
12
|
+
UserRole.Owner,
|
|
13
|
+
UserRole.Analyst,
|
|
14
|
+
UserRole.Developer,
|
|
15
|
+
UserRole.ReadOnly
|
|
16
|
+
]);
|
|
17
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"lib": [
|
|
6
|
+
"es2016",
|
|
7
|
+
"dom"
|
|
8
|
+
],
|
|
9
|
+
"outDir": "./dist",
|
|
10
|
+
"baseUrl": "src",
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"emitDecoratorMetadata": true,
|
|
15
|
+
"experimentalDecorators": true,
|
|
16
|
+
"typeRoots": [
|
|
17
|
+
"node_modules/@types"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
Binary file
|