1 | /**
|
2 | * pet
|
3 | */
|
4 | export const CREATE_PET = "CREATE_PET";
|
5 | export const GET_PET = "GET_PET";
|
6 | export const LIST_PETS = "LIST_PETS";
|
7 |
|
8 | /**
|
9 | * github
|
10 | */
|
11 | export const LIST_REPOS = "LIST_REPOS";
|
12 |
|
13 | /**
|
14 | * user
|
15 | */
|
16 | export const LOGIN = "LOGIN";
|
17 | export const LOGOUT = "LOGOUT";
|
18 |
|
19 | // Add success and failure for string prototype
|
20 | Object.assign(String.prototype, {
|
21 | success() {
|
22 | return `${this}_SUCCESS`;
|
23 | },
|
24 | failure() {
|
25 | return `${this}_FAILURE`;
|
26 | },
|
27 | glob() {
|
28 | return `${this}_*`;
|
29 | },
|
30 | });
|