@we-scrum/enums 1.0.18 → 1.0.22

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.
Files changed (46) hide show
  1. package/{content-type-enum.d.ts → dist/content-type-enum.d.ts} +0 -0
  2. package/{content-type-enum.js → dist/content-type-enum.js} +0 -0
  3. package/{content-type-enum.js.map → dist/content-type-enum.js.map} +0 -0
  4. package/{crafting-master-enum.d.ts → dist/crafting-master-enum.d.ts} +0 -0
  5. package/{crafting-master-enum.js → dist/crafting-master-enum.js} +0 -0
  6. package/{crafting-master-enum.js.map → dist/crafting-master-enum.js.map} +0 -0
  7. package/{index.d.ts → dist/index.d.ts} +0 -0
  8. package/{index.js → dist/index.js} +0 -0
  9. package/{index.js.map → dist/index.js.map} +0 -0
  10. package/{object-property-type-enum.d.ts → dist/object-property-type-enum.d.ts} +0 -0
  11. package/{object-property-type-enum.js → dist/object-property-type-enum.js} +0 -0
  12. package/{object-property-type-enum.js.map → dist/object-property-type-enum.js.map} +0 -0
  13. package/{operation-enum.d.ts → dist/operation-enum.d.ts} +0 -0
  14. package/{operation-enum.js → dist/operation-enum.js} +0 -0
  15. package/{operation-enum.js.map → dist/operation-enum.js.map} +0 -0
  16. package/{progress-status-enum.d.ts → dist/progress-status-enum.d.ts} +0 -0
  17. package/{progress-status-enum.js → dist/progress-status-enum.js} +0 -0
  18. package/{progress-status-enum.js.map → dist/progress-status-enum.js.map} +0 -0
  19. package/{route-method-enum.d.ts → dist/route-method-enum.d.ts} +0 -0
  20. package/{route-method-enum.js → dist/route-method-enum.js} +0 -0
  21. package/{route-method-enum.js.map → dist/route-method-enum.js.map} +0 -0
  22. package/{route-query-param-type-enum.d.ts → dist/route-query-param-type-enum.d.ts} +0 -0
  23. package/{route-query-param-type-enum.js → dist/route-query-param-type-enum.js} +0 -0
  24. package/{route-query-param-type-enum.js.map → dist/route-query-param-type-enum.js.map} +0 -0
  25. package/{search-result-type-enum.d.ts → dist/search-result-type-enum.d.ts} +0 -0
  26. package/{search-result-type-enum.js → dist/search-result-type-enum.js} +0 -0
  27. package/{search-result-type-enum.js.map → dist/search-result-type-enum.js.map} +0 -0
  28. package/{story-status-enum.d.ts → dist/story-status-enum.d.ts} +0 -0
  29. package/{story-status-enum.js → dist/story-status-enum.js} +0 -0
  30. package/{story-status-enum.js.map → dist/story-status-enum.js.map} +0 -0
  31. package/{user-role-enum.d.ts → dist/user-role-enum.d.ts} +0 -0
  32. package/{user-role-enum.js → dist/user-role-enum.js} +0 -0
  33. package/{user-role-enum.js.map → dist/user-role-enum.js.map} +0 -0
  34. package/package.json +5 -5
  35. package/src/content-type-enum.ts +13 -0
  36. package/src/crafting-master-enum.ts +13 -0
  37. package/src/index.ts +10 -0
  38. package/src/object-property-type-enum.ts +23 -0
  39. package/src/operation-enum.ts +15 -0
  40. package/src/progress-status-enum.ts +33 -0
  41. package/src/route-method-enum.ts +13 -0
  42. package/src/route-query-param-type-enum.ts +19 -0
  43. package/src/search-result-type-enum.ts +19 -0
  44. package/src/story-status-enum.ts +19 -0
  45. package/src/user-role-enum.ts +17 -0
  46. package/tsconfig.json +20 -0
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@we-scrum/enums",
3
- "version": "1.0.18",
3
+ "version": "1.0.22",
4
4
  "description": "We-Scrum enums",
5
- "main": "index.js",
6
- "typings": "index.d.ts",
5
+ "main": "dist/index.js",
6
+ "typings": "dist/index.d.ts",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/BUONJG/we-scrum.git"
@@ -16,10 +16,10 @@
16
16
  "author": "",
17
17
  "license": "ISC",
18
18
  "peerDependencies": {
19
- "@my-devkit/core": "1.0.57"
19
+ "@my-devkit/core": "1.0.63"
20
20
  },
21
21
  "devDependencies": {
22
- "@my-devkit/core": "1.0.57",
22
+ "@my-devkit/core": "1.0.63",
23
23
  "ts-cleaner": "^1.0.5",
24
24
  "typescript": "^4.5.2"
25
25
  }
@@ -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,13 @@
1
+ import { EnumHelper } from '@my-devkit/core';
2
+
3
+ export enum RouteMethod {
4
+ GET = 'GET',
5
+ POST = 'POST'
6
+ }
7
+
8
+ export namespace RouteMethod {
9
+ export const helper = new EnumHelper('RouteMethod', [
10
+ RouteMethod.GET,
11
+ RouteMethod.POST
12
+ ]);
13
+ }
@@ -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
+ }