glitch-javascript-sdk 0.3.6 → 0.3.8
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/cjs/index.js +192 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Auth.d.ts +1 -1
- package/dist/esm/api/Communities.d.ts +11 -0
- package/dist/esm/api/Posts.d.ts +10 -0
- package/dist/esm/api/Utility.d.ts +13 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/constants/SocialInteractions.d.ts +130 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +192 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/UtilityRoutes.d.ts +7 -0
- package/dist/esm/util/Session.d.ts +1 -0
- package/dist/index.d.ts +167 -1
- package/package.json +1 -1
- package/src/api/Auth.ts +2 -2
- package/src/api/Communities.ts +15 -1
- package/src/api/Posts.ts +14 -0
- package/src/api/Utility.ts +21 -0
- package/src/api/index.ts +3 -1
- package/src/constants/SocialInteractions.ts +131 -0
- package/src/index.ts +5 -1
- package/src/routes/CommunitiesRoute.ts +1 -0
- package/src/routes/PostsRoute.ts +1 -0
- package/src/routes/UtilityRoutes.ts +12 -0
- package/src/util/Session.ts +3 -1
package/dist/esm/api/Auth.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare class Auth {
|
|
|
40
40
|
*
|
|
41
41
|
* @returns promise
|
|
42
42
|
*/
|
|
43
|
-
static oneTimeLogin<T>(): AxiosPromise<Response<T>>;
|
|
43
|
+
static oneTimeLogin<T>(token: string): AxiosPromise<Response<T>>;
|
|
44
44
|
/**
|
|
45
45
|
* Execute the password reset process using a user's email address.
|
|
46
46
|
*
|
|
@@ -147,6 +147,17 @@ declare class Communities {
|
|
|
147
147
|
* @returns promise
|
|
148
148
|
*/
|
|
149
149
|
static acceptInvite<T>(community_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
150
|
+
/**
|
|
151
|
+
* Retrieves a user's invite that have been sent.
|
|
152
|
+
*
|
|
153
|
+
* @see https://api.glitch.fun/api/documentation#/communitys%20Route/communityAcceptInvite
|
|
154
|
+
*
|
|
155
|
+
* @param community_id The id of the community
|
|
156
|
+
* @param token The token required to get the invite.
|
|
157
|
+
*
|
|
158
|
+
* @returns promise
|
|
159
|
+
*/
|
|
160
|
+
static retrieveInvite<T>(community_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
150
161
|
/**
|
|
151
162
|
* List the users who are currently associated with the community.
|
|
152
163
|
*
|
package/dist/esm/api/Posts.d.ts
CHANGED
|
@@ -71,5 +71,15 @@ declare class Posts {
|
|
|
71
71
|
* @returns promise
|
|
72
72
|
*/
|
|
73
73
|
static delete<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
74
|
+
/**
|
|
75
|
+
* Toggle a social interaction and off for a post.
|
|
76
|
+
*
|
|
77
|
+
* @see hhttps://api.glitch.fun/api/documentation#/Post%20Route/postToggleInteraction
|
|
78
|
+
*
|
|
79
|
+
* @param data The data to be passed when toggling the interaction.
|
|
80
|
+
*
|
|
81
|
+
* @returns Promise
|
|
82
|
+
*/
|
|
83
|
+
static toggleInteraction<T>(post_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
74
84
|
}
|
|
75
85
|
export default Posts;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Response from "../util/Response";
|
|
2
|
+
import { AxiosPromise } from "axios";
|
|
3
|
+
declare class Utility {
|
|
4
|
+
/**
|
|
5
|
+
* Get all the social interactions and emojis that are available.
|
|
6
|
+
*
|
|
7
|
+
* @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilSocialInteraction
|
|
8
|
+
*
|
|
9
|
+
* @returns promise
|
|
10
|
+
*/
|
|
11
|
+
static listSocialInteractions<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
12
|
+
}
|
|
13
|
+
export default Utility;
|
package/dist/esm/api/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import Teams from "./Teams";
|
|
|
7
7
|
import Waitlists from "./Waitlist";
|
|
8
8
|
import Posts from "./Posts";
|
|
9
9
|
import Templates from "./Templates";
|
|
10
|
+
import Utility from "./Utility";
|
|
10
11
|
export { Auth };
|
|
11
12
|
export { Competitions };
|
|
12
13
|
export { Communities };
|
|
@@ -16,3 +17,4 @@ export { Teams };
|
|
|
16
17
|
export { Waitlists };
|
|
17
18
|
export { Posts };
|
|
18
19
|
export { Templates };
|
|
20
|
+
export { Utility };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export declare enum SocialInteractions {
|
|
2
|
+
LIKE = "\uD83D\uDC4D",
|
|
3
|
+
LOVE = "\u2764\uFE0F",
|
|
4
|
+
CARE = "\uD83E\uDD70",
|
|
5
|
+
HAHA = "\uD83D\uDE02",
|
|
6
|
+
WOW = "\uD83D\uDE2E",
|
|
7
|
+
SAD = "\uD83D\uDE1E",
|
|
8
|
+
CRY = "\uD83D\uDE22",
|
|
9
|
+
ANGRY = "\uD83D\uDE21",
|
|
10
|
+
THUMBS_UP = "\uD83D\uDC4D",
|
|
11
|
+
THUMBS_DOWN = "\uD83D\uDC4E",
|
|
12
|
+
SMILE = "\uD83D\uDE0A",
|
|
13
|
+
GRIN = "\uD83D\uDE01",
|
|
14
|
+
LAUGH = "\uD83D\uDE04",
|
|
15
|
+
JOY = "\uD83D\uDE03",
|
|
16
|
+
BLUSH = "\uD83D\uDE0A",
|
|
17
|
+
SURPRISE = "\uD83D\uDE2E",
|
|
18
|
+
SHOCK = "\uD83D\uDE32",
|
|
19
|
+
WOW_FACE = "\uD83D\uDE2F",
|
|
20
|
+
MIND_BLOWN = "\uD83E\uDD2F",
|
|
21
|
+
ASTONISHED = "\uD83D\uDE33",
|
|
22
|
+
CLAP = "\uD83D\uDC4F",
|
|
23
|
+
PARTY = "\uD83C\uDF89",
|
|
24
|
+
FIRE = "\uD83D\uDD25",
|
|
25
|
+
COOL = "\uD83D\uDE0E",
|
|
26
|
+
OK = "\uD83D\uDC4C",
|
|
27
|
+
EYES = "\uD83D\uDC40",
|
|
28
|
+
WINK = "\uD83D\uDE09",
|
|
29
|
+
TONGUE_OUT = "\uD83D\uDE1C",
|
|
30
|
+
SILLY = "\uD83E\uDD2A",
|
|
31
|
+
COFFEE = "\u2615",
|
|
32
|
+
TEA = "\uD83C\uDF75",
|
|
33
|
+
BEER = "\uD83C\uDF7A",
|
|
34
|
+
WINE = "\uD83C\uDF77",
|
|
35
|
+
COCKTAIL = "\uD83C\uDF78",
|
|
36
|
+
BALLOON = "\uD83C\uDF88",
|
|
37
|
+
GIFT = "\uD83C\uDF81",
|
|
38
|
+
CAMERA = "\uD83D\uDCF7",
|
|
39
|
+
VIDEO_CAMERA = "\uD83D\uDCF9",
|
|
40
|
+
MUSIC = "\uD83C\uDFB5",
|
|
41
|
+
HEADPHONES = "\uD83C\uDFA7",
|
|
42
|
+
TV = "\uD83D\uDCFA",
|
|
43
|
+
BOOK = "\uD83D\uDCDA",
|
|
44
|
+
PEN = "\uD83D\uDD8A\uFE0F",
|
|
45
|
+
PAPERCLIP = "\uD83D\uDCCE",
|
|
46
|
+
LOCK = "\uD83D\uDD12",
|
|
47
|
+
KEY = "\uD83D\uDD11",
|
|
48
|
+
MAGNIFYING_GLASS = "\uD83D\uDD0D",
|
|
49
|
+
EARTH_GLOBE = "\uD83C\uDF0D",
|
|
50
|
+
MAP = "\uD83D\uDDFA\uFE0F",
|
|
51
|
+
SUN = "\u2600\uFE0F",
|
|
52
|
+
MOON = "\uD83C\uDF19",
|
|
53
|
+
STARS = "\uD83C\uDF1F",
|
|
54
|
+
UMBRELLA = "\u2602\uFE0F",
|
|
55
|
+
RAINBOW = "\uD83C\uDF08",
|
|
56
|
+
CLOCK = "\u23F0",
|
|
57
|
+
HOURGLASS = "\u231B",
|
|
58
|
+
MONEY_BAG = "\uD83D\uDCB0",
|
|
59
|
+
SHOPPING_CART = "\uD83D\uDED2",
|
|
60
|
+
THUMBS_UP_SIGN = "\uD83D\uDC4D\uD83C\uDFFB",
|
|
61
|
+
THUMBS_DOWN_SIGN = "\uD83D\uDC4E\uD83C\uDFFB",
|
|
62
|
+
SMILING_FACE_WITH_HALO = "\uD83D\uDE07",
|
|
63
|
+
NERD_FACE = "\uD83E\uDD13",
|
|
64
|
+
ROLLING_ON_THE_FLOOR_LAUGHING = "\uD83E\uDD23",
|
|
65
|
+
UPSIDE_DOWN_FACE = "\uD83D\uDE43",
|
|
66
|
+
WAVING_HAND = "\uD83D\uDC4B",
|
|
67
|
+
RAISED_HAND = "\u270B",
|
|
68
|
+
VICTORY_HAND = "\u270C\uFE0F",
|
|
69
|
+
FOLDED_HANDS = "\uD83D\uDE4F",
|
|
70
|
+
PERSON_RAISING_HAND = "\uD83D\uDE4B",
|
|
71
|
+
PERSON_BOWING = "\uD83D\uDE47",
|
|
72
|
+
PERSON_SHRUGGING = "\uD83E\uDD37",
|
|
73
|
+
PERSON_WALKING = "\uD83D\uDEB6",
|
|
74
|
+
PERSON_RUNNING = "\uD83C\uDFC3",
|
|
75
|
+
PERSON_SWIMMING = "\uD83C\uDFCA",
|
|
76
|
+
PERSON_BIKING = "\uD83D\uDEB4",
|
|
77
|
+
PERSON_DANCING = "\uD83D\uDC83",
|
|
78
|
+
PEOPLE_HUGGING = "\uD83E\uDD17",
|
|
79
|
+
SPEECH_BUBBLE = "\uD83D\uDCAC",
|
|
80
|
+
THOUGHT_BUBBLE = "\uD83D\uDCAD",
|
|
81
|
+
BUST_IN_SILHOUETTE = "\uD83D\uDC64",
|
|
82
|
+
BUSTS_IN_SILHOUETTE = "\uD83D\uDC65",
|
|
83
|
+
MONKEY_FACE = "\uD83D\uDC35",
|
|
84
|
+
DOG_FACE = "\uD83D\uDC36",
|
|
85
|
+
CAT_FACE = "\uD83D\uDC31",
|
|
86
|
+
PIG_FACE = "\uD83D\uDC37",
|
|
87
|
+
COW_FACE = "\uD83D\uDC2E",
|
|
88
|
+
RABBIT_FACE = "\uD83D\uDC30",
|
|
89
|
+
BEAR_FACE = "\uD83D\uDC3B",
|
|
90
|
+
PANDA_FACE = "\uD83D\uDC3C",
|
|
91
|
+
PENGUIN = "\uD83D\uDC27",
|
|
92
|
+
BIRD = "\uD83D\uDC26",
|
|
93
|
+
BABY_CHICK = "\uD83D\uDC24",
|
|
94
|
+
HATCHING_CHICK = "\uD83D\uDC23",
|
|
95
|
+
BUG = "\uD83D\uDC1B",
|
|
96
|
+
BUTTERFLY = "\uD83E\uDD8B",
|
|
97
|
+
SNAIL = "\uD83D\uDC0C",
|
|
98
|
+
LADY_BEETLE = "\uD83D\uDC1E",
|
|
99
|
+
SPIDER = "\uD83D\uDD77\uFE0F",
|
|
100
|
+
WEB = "\uD83D\uDD78\uFE0F",
|
|
101
|
+
TURTLE = "\uD83D\uDC22",
|
|
102
|
+
FISH = "\uD83D\uDC1F",
|
|
103
|
+
WHALE = "\uD83D\uDC33",
|
|
104
|
+
DOLPHIN = "\uD83D\uDC2C",
|
|
105
|
+
OCTOPUS = "\uD83D\uDC19",
|
|
106
|
+
CACTUS = "\uD83C\uDF35",
|
|
107
|
+
TULIP = "\uD83C\uDF37",
|
|
108
|
+
ROSE = "\uD83C\uDF39",
|
|
109
|
+
SUNFLOWER = "\uD83C\uDF3B",
|
|
110
|
+
PALM_TREE = "\uD83C\uDF34",
|
|
111
|
+
EVERGREEN_TREE = "\uD83C\uDF32",
|
|
112
|
+
DECIDUOUS_TREE = "\uD83C\uDF33",
|
|
113
|
+
EGGPLANT = "\uD83C\uDF46",
|
|
114
|
+
TOMATO = "\uD83C\uDF45",
|
|
115
|
+
CARROT = "\uD83E\uDD55",
|
|
116
|
+
BROCCOLI = "\uD83E\uDD66",
|
|
117
|
+
CORN = "\uD83C\uDF3D",
|
|
118
|
+
HOT_PEPPER = "\uD83C\uDF36\uFE0F",
|
|
119
|
+
BREAD = "\uD83C\uDF5E",
|
|
120
|
+
CHEESE = "\uD83E\uDDC0",
|
|
121
|
+
HAMBURGER = "\uD83C\uDF54",
|
|
122
|
+
PIZZA = "\uD83C\uDF55",
|
|
123
|
+
TACO = "\uD83C\uDF2E",
|
|
124
|
+
SUSHI = "\uD83C\uDF63",
|
|
125
|
+
CUPCAKE = "\uD83E\uDDC1",
|
|
126
|
+
ICE_CREAM = "\uD83C\uDF68",
|
|
127
|
+
DONUT = "\uD83C\uDF69",
|
|
128
|
+
CAKE = "\uD83C\uDF82",
|
|
129
|
+
COOKIES = "\uD83C\uDF6A"
|
|
130
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Teams } from "./api";
|
|
|
8
8
|
import { Posts } from "./api";
|
|
9
9
|
import { Templates } from "./api";
|
|
10
10
|
import { Waitlists } from "./api";
|
|
11
|
+
import { Utility } from "./api";
|
|
11
12
|
import Requests from "./util/Requests";
|
|
12
13
|
import Parser from "./util/Parser";
|
|
13
14
|
import Session from "./util/Session";
|
|
@@ -17,6 +18,7 @@ import LabelManager from "./util/LabelManager";
|
|
|
17
18
|
import { Modes } from "./constants/Modes";
|
|
18
19
|
import { Roles } from "./constants/Roles";
|
|
19
20
|
import { TeamJoinProcess } from "./constants/TeamJoinProcess";
|
|
21
|
+
import { SocialInteractions } from "./constants/SocialInteractions";
|
|
20
22
|
import TicketTypes from "./constants/TicketTypes";
|
|
21
23
|
import { TicketUsageTypes } from "./constants/TicketUsageTypes";
|
|
22
24
|
import { TicketVisibility } from "./constants/TicketVisbility";
|
|
@@ -35,6 +37,7 @@ declare class Glitch {
|
|
|
35
37
|
Posts: typeof Posts;
|
|
36
38
|
Templates: typeof Templates;
|
|
37
39
|
Waitlists: typeof Waitlists;
|
|
40
|
+
Utility: typeof Utility;
|
|
38
41
|
};
|
|
39
42
|
static util: {
|
|
40
43
|
Requests: typeof Requests;
|
|
@@ -89,6 +92,7 @@ declare class Glitch {
|
|
|
89
92
|
VIDEO: "video";
|
|
90
93
|
}>;
|
|
91
94
|
Roles: typeof Roles;
|
|
95
|
+
SocialInteractions: typeof SocialInteractions;
|
|
92
96
|
TeamJoinProcess: typeof TeamJoinProcess;
|
|
93
97
|
TicketTypes: typeof TicketTypes;
|
|
94
98
|
TicketUsageTypes: typeof TicketUsageTypes;
|
package/dist/esm/index.js
CHANGED
|
@@ -30227,8 +30227,8 @@ var Auth = /** @class */ (function () {
|
|
|
30227
30227
|
*
|
|
30228
30228
|
* @returns promise
|
|
30229
30229
|
*/
|
|
30230
|
-
Auth.oneTimeLogin = function () {
|
|
30231
|
-
return Requests.processRoute(AuthRoutes.routes.one_time_login, {});
|
|
30230
|
+
Auth.oneTimeLogin = function (token) {
|
|
30231
|
+
return Requests.processRoute(AuthRoutes.routes.one_time_login, { token: token });
|
|
30232
30232
|
};
|
|
30233
30233
|
/**
|
|
30234
30234
|
* Execute the password reset process using a user's email address.
|
|
@@ -30883,6 +30883,7 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
30883
30883
|
listInvites: { url: '/communities/{community_id}/invites', method: HTTP_METHODS.GET },
|
|
30884
30884
|
sendInvite: { url: '/communities/{community_id}/sendInvite', method: HTTP_METHODS.POST },
|
|
30885
30885
|
acceptInvite: { url: '/communities/{community_id}/acceptInvite', method: HTTP_METHODS.POST },
|
|
30886
|
+
retrieveInvite: { url: '/communities/{community_id}/invites/{token}', method: HTTP_METHODS.GET },
|
|
30886
30887
|
listUsers: { url: '/communities/{community_id}/users', method: HTTP_METHODS.GET },
|
|
30887
30888
|
addUser: { url: '/communities/{community_id}/users', method: HTTP_METHODS.POST },
|
|
30888
30889
|
showUser: { url: '/communities/{community_id}/users/{user_id}', method: HTTP_METHODS.GET },
|
|
@@ -31075,7 +31076,20 @@ var Communities = /** @class */ (function () {
|
|
|
31075
31076
|
* @returns promise
|
|
31076
31077
|
*/
|
|
31077
31078
|
Communities.acceptInvite = function (community_id, token, params) {
|
|
31078
|
-
return Requests.processRoute(CommunitiesRoute.routes.acceptInvite, {}, { community_id: community_id }, params);
|
|
31079
|
+
return Requests.processRoute(CommunitiesRoute.routes.acceptInvite, { token: token }, { community_id: community_id }, params);
|
|
31080
|
+
};
|
|
31081
|
+
/**
|
|
31082
|
+
* Retrieves a user's invite that have been sent.
|
|
31083
|
+
*
|
|
31084
|
+
* @see https://api.glitch.fun/api/documentation#/communitys%20Route/communityAcceptInvite
|
|
31085
|
+
*
|
|
31086
|
+
* @param community_id The id of the community
|
|
31087
|
+
* @param token The token required to get the invite.
|
|
31088
|
+
*
|
|
31089
|
+
* @returns promise
|
|
31090
|
+
*/
|
|
31091
|
+
Communities.retrieveInvite = function (community_id, token, params) {
|
|
31092
|
+
return Requests.processRoute(CommunitiesRoute.routes.retrieveInvite, {}, { community_id: community_id, token: token }, params);
|
|
31079
31093
|
};
|
|
31080
31094
|
/**
|
|
31081
31095
|
* List the users who are currently associated with the community.
|
|
@@ -32015,6 +32029,7 @@ var PostsRoute = /** @class */ (function () {
|
|
|
32015
32029
|
view: { url: '/posts/{post_id}', method: HTTP_METHODS.GET },
|
|
32016
32030
|
update: { url: '/posts/{post_id}', method: HTTP_METHODS.PUT },
|
|
32017
32031
|
delete: { url: '/posts/{post_id}', method: HTTP_METHODS.DELETE },
|
|
32032
|
+
toggleInteraction: { url: '/posts/{post_id}/toggleInteraction', method: HTTP_METHODS.POST },
|
|
32018
32033
|
};
|
|
32019
32034
|
return PostsRoute;
|
|
32020
32035
|
}());
|
|
@@ -32106,6 +32121,18 @@ var Posts = /** @class */ (function () {
|
|
|
32106
32121
|
Posts.delete = function (post_id, params) {
|
|
32107
32122
|
return Requests.processRoute(PostsRoute.routes.delete, {}, { post_id: post_id }, params);
|
|
32108
32123
|
};
|
|
32124
|
+
/**
|
|
32125
|
+
* Toggle a social interaction and off for a post.
|
|
32126
|
+
*
|
|
32127
|
+
* @see hhttps://api.glitch.fun/api/documentation#/Post%20Route/postToggleInteraction
|
|
32128
|
+
*
|
|
32129
|
+
* @param data The data to be passed when toggling the interaction.
|
|
32130
|
+
*
|
|
32131
|
+
* @returns Promise
|
|
32132
|
+
*/
|
|
32133
|
+
Posts.toggleInteraction = function (post_id, data, params) {
|
|
32134
|
+
return Requests.processRoute(PostsRoute.routes.toggleInteraction, data, { post_id: post_id }, params);
|
|
32135
|
+
};
|
|
32109
32136
|
return Posts;
|
|
32110
32137
|
}());
|
|
32111
32138
|
|
|
@@ -32244,6 +32271,31 @@ var Templates = /** @class */ (function () {
|
|
|
32244
32271
|
return Templates;
|
|
32245
32272
|
}());
|
|
32246
32273
|
|
|
32274
|
+
var UtilityRoutes = /** @class */ (function () {
|
|
32275
|
+
function UtilityRoutes() {
|
|
32276
|
+
}
|
|
32277
|
+
UtilityRoutes.routes = {
|
|
32278
|
+
social_interactions: { url: '/util/socialinteractions', method: HTTP_METHODS.GET },
|
|
32279
|
+
};
|
|
32280
|
+
return UtilityRoutes;
|
|
32281
|
+
}());
|
|
32282
|
+
|
|
32283
|
+
var Utility = /** @class */ (function () {
|
|
32284
|
+
function Utility() {
|
|
32285
|
+
}
|
|
32286
|
+
/**
|
|
32287
|
+
* Get all the social interactions and emojis that are available.
|
|
32288
|
+
*
|
|
32289
|
+
* @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilSocialInteraction
|
|
32290
|
+
*
|
|
32291
|
+
* @returns promise
|
|
32292
|
+
*/
|
|
32293
|
+
Utility.listSocialInteractions = function (params) {
|
|
32294
|
+
return Requests.processRoute(UtilityRoutes.routes.social_interactions, undefined, undefined, params);
|
|
32295
|
+
};
|
|
32296
|
+
return Utility;
|
|
32297
|
+
}());
|
|
32298
|
+
|
|
32247
32299
|
var Parser = /** @class */ (function () {
|
|
32248
32300
|
function Parser() {
|
|
32249
32301
|
}
|
|
@@ -32381,12 +32433,14 @@ var Session = /** @class */ (function () {
|
|
|
32381
32433
|
Storage.set(Session._first_name_key, null);
|
|
32382
32434
|
Storage.set(Session._last_name_key, null);
|
|
32383
32435
|
Storage.set(Session._email_key, null);
|
|
32436
|
+
Storage.set(Session._username_key, null);
|
|
32384
32437
|
};
|
|
32385
32438
|
Session.processAuthentication = function (data) {
|
|
32386
32439
|
Storage.setAuthToken(data.token.access_token);
|
|
32387
32440
|
Storage.set(Session._id_key, data.id);
|
|
32388
32441
|
Storage.set(Session._first_name_key, data.first_name);
|
|
32389
32442
|
Storage.set(Session._last_name_key, data.last_name);
|
|
32443
|
+
Storage.set(Session._username_key, data.username);
|
|
32390
32444
|
Storage.set(Session._email_key, data.email);
|
|
32391
32445
|
Config.setAuthToken(data.token.access_token);
|
|
32392
32446
|
};
|
|
@@ -32508,6 +32562,138 @@ var TeamJoinProcess;
|
|
|
32508
32562
|
TeamJoinProcess[TeamJoinProcess["APPROVAL"] = 3] = "APPROVAL";
|
|
32509
32563
|
})(TeamJoinProcess || (TeamJoinProcess = {}));
|
|
32510
32564
|
|
|
32565
|
+
var SocialInteractions;
|
|
32566
|
+
(function (SocialInteractions) {
|
|
32567
|
+
SocialInteractions["LIKE"] = "\uD83D\uDC4D";
|
|
32568
|
+
SocialInteractions["LOVE"] = "\u2764\uFE0F";
|
|
32569
|
+
SocialInteractions["CARE"] = "\uD83E\uDD70";
|
|
32570
|
+
SocialInteractions["HAHA"] = "\uD83D\uDE02";
|
|
32571
|
+
SocialInteractions["WOW"] = "\uD83D\uDE2E";
|
|
32572
|
+
SocialInteractions["SAD"] = "\uD83D\uDE1E";
|
|
32573
|
+
SocialInteractions["CRY"] = "\uD83D\uDE22";
|
|
32574
|
+
SocialInteractions["ANGRY"] = "\uD83D\uDE21";
|
|
32575
|
+
SocialInteractions["THUMBS_UP"] = "\uD83D\uDC4D";
|
|
32576
|
+
SocialInteractions["THUMBS_DOWN"] = "\uD83D\uDC4E";
|
|
32577
|
+
SocialInteractions["SMILE"] = "\uD83D\uDE0A";
|
|
32578
|
+
SocialInteractions["GRIN"] = "\uD83D\uDE01";
|
|
32579
|
+
SocialInteractions["LAUGH"] = "\uD83D\uDE04";
|
|
32580
|
+
SocialInteractions["JOY"] = "\uD83D\uDE03";
|
|
32581
|
+
SocialInteractions["BLUSH"] = "\uD83D\uDE0A";
|
|
32582
|
+
SocialInteractions["SURPRISE"] = "\uD83D\uDE2E";
|
|
32583
|
+
SocialInteractions["SHOCK"] = "\uD83D\uDE32";
|
|
32584
|
+
SocialInteractions["WOW_FACE"] = "\uD83D\uDE2F";
|
|
32585
|
+
SocialInteractions["MIND_BLOWN"] = "\uD83E\uDD2F";
|
|
32586
|
+
SocialInteractions["ASTONISHED"] = "\uD83D\uDE33";
|
|
32587
|
+
SocialInteractions["CLAP"] = "\uD83D\uDC4F";
|
|
32588
|
+
SocialInteractions["PARTY"] = "\uD83C\uDF89";
|
|
32589
|
+
SocialInteractions["FIRE"] = "\uD83D\uDD25";
|
|
32590
|
+
SocialInteractions["COOL"] = "\uD83D\uDE0E";
|
|
32591
|
+
SocialInteractions["OK"] = "\uD83D\uDC4C";
|
|
32592
|
+
SocialInteractions["EYES"] = "\uD83D\uDC40";
|
|
32593
|
+
SocialInteractions["WINK"] = "\uD83D\uDE09";
|
|
32594
|
+
SocialInteractions["TONGUE_OUT"] = "\uD83D\uDE1C";
|
|
32595
|
+
SocialInteractions["SILLY"] = "\uD83E\uDD2A";
|
|
32596
|
+
SocialInteractions["COFFEE"] = "\u2615";
|
|
32597
|
+
SocialInteractions["TEA"] = "\uD83C\uDF75";
|
|
32598
|
+
SocialInteractions["BEER"] = "\uD83C\uDF7A";
|
|
32599
|
+
SocialInteractions["WINE"] = "\uD83C\uDF77";
|
|
32600
|
+
SocialInteractions["COCKTAIL"] = "\uD83C\uDF78";
|
|
32601
|
+
SocialInteractions["BALLOON"] = "\uD83C\uDF88";
|
|
32602
|
+
SocialInteractions["GIFT"] = "\uD83C\uDF81";
|
|
32603
|
+
SocialInteractions["CAMERA"] = "\uD83D\uDCF7";
|
|
32604
|
+
SocialInteractions["VIDEO_CAMERA"] = "\uD83D\uDCF9";
|
|
32605
|
+
SocialInteractions["MUSIC"] = "\uD83C\uDFB5";
|
|
32606
|
+
SocialInteractions["HEADPHONES"] = "\uD83C\uDFA7";
|
|
32607
|
+
SocialInteractions["TV"] = "\uD83D\uDCFA";
|
|
32608
|
+
SocialInteractions["BOOK"] = "\uD83D\uDCDA";
|
|
32609
|
+
SocialInteractions["PEN"] = "\uD83D\uDD8A\uFE0F";
|
|
32610
|
+
SocialInteractions["PAPERCLIP"] = "\uD83D\uDCCE";
|
|
32611
|
+
SocialInteractions["LOCK"] = "\uD83D\uDD12";
|
|
32612
|
+
SocialInteractions["KEY"] = "\uD83D\uDD11";
|
|
32613
|
+
SocialInteractions["MAGNIFYING_GLASS"] = "\uD83D\uDD0D";
|
|
32614
|
+
SocialInteractions["EARTH_GLOBE"] = "\uD83C\uDF0D";
|
|
32615
|
+
SocialInteractions["MAP"] = "\uD83D\uDDFA\uFE0F";
|
|
32616
|
+
SocialInteractions["SUN"] = "\u2600\uFE0F";
|
|
32617
|
+
SocialInteractions["MOON"] = "\uD83C\uDF19";
|
|
32618
|
+
SocialInteractions["STARS"] = "\uD83C\uDF1F";
|
|
32619
|
+
SocialInteractions["UMBRELLA"] = "\u2602\uFE0F";
|
|
32620
|
+
SocialInteractions["RAINBOW"] = "\uD83C\uDF08";
|
|
32621
|
+
SocialInteractions["CLOCK"] = "\u23F0";
|
|
32622
|
+
SocialInteractions["HOURGLASS"] = "\u231B";
|
|
32623
|
+
SocialInteractions["MONEY_BAG"] = "\uD83D\uDCB0";
|
|
32624
|
+
SocialInteractions["SHOPPING_CART"] = "\uD83D\uDED2";
|
|
32625
|
+
SocialInteractions["THUMBS_UP_SIGN"] = "\uD83D\uDC4D\uD83C\uDFFB";
|
|
32626
|
+
SocialInteractions["THUMBS_DOWN_SIGN"] = "\uD83D\uDC4E\uD83C\uDFFB";
|
|
32627
|
+
SocialInteractions["SMILING_FACE_WITH_HALO"] = "\uD83D\uDE07";
|
|
32628
|
+
SocialInteractions["NERD_FACE"] = "\uD83E\uDD13";
|
|
32629
|
+
SocialInteractions["ROLLING_ON_THE_FLOOR_LAUGHING"] = "\uD83E\uDD23";
|
|
32630
|
+
SocialInteractions["UPSIDE_DOWN_FACE"] = "\uD83D\uDE43";
|
|
32631
|
+
SocialInteractions["WAVING_HAND"] = "\uD83D\uDC4B";
|
|
32632
|
+
SocialInteractions["RAISED_HAND"] = "\u270B";
|
|
32633
|
+
SocialInteractions["VICTORY_HAND"] = "\u270C\uFE0F";
|
|
32634
|
+
SocialInteractions["FOLDED_HANDS"] = "\uD83D\uDE4F";
|
|
32635
|
+
SocialInteractions["PERSON_RAISING_HAND"] = "\uD83D\uDE4B";
|
|
32636
|
+
SocialInteractions["PERSON_BOWING"] = "\uD83D\uDE47";
|
|
32637
|
+
SocialInteractions["PERSON_SHRUGGING"] = "\uD83E\uDD37";
|
|
32638
|
+
SocialInteractions["PERSON_WALKING"] = "\uD83D\uDEB6";
|
|
32639
|
+
SocialInteractions["PERSON_RUNNING"] = "\uD83C\uDFC3";
|
|
32640
|
+
SocialInteractions["PERSON_SWIMMING"] = "\uD83C\uDFCA";
|
|
32641
|
+
SocialInteractions["PERSON_BIKING"] = "\uD83D\uDEB4";
|
|
32642
|
+
SocialInteractions["PERSON_DANCING"] = "\uD83D\uDC83";
|
|
32643
|
+
SocialInteractions["PEOPLE_HUGGING"] = "\uD83E\uDD17";
|
|
32644
|
+
SocialInteractions["SPEECH_BUBBLE"] = "\uD83D\uDCAC";
|
|
32645
|
+
SocialInteractions["THOUGHT_BUBBLE"] = "\uD83D\uDCAD";
|
|
32646
|
+
SocialInteractions["BUST_IN_SILHOUETTE"] = "\uD83D\uDC64";
|
|
32647
|
+
SocialInteractions["BUSTS_IN_SILHOUETTE"] = "\uD83D\uDC65";
|
|
32648
|
+
SocialInteractions["MONKEY_FACE"] = "\uD83D\uDC35";
|
|
32649
|
+
SocialInteractions["DOG_FACE"] = "\uD83D\uDC36";
|
|
32650
|
+
SocialInteractions["CAT_FACE"] = "\uD83D\uDC31";
|
|
32651
|
+
SocialInteractions["PIG_FACE"] = "\uD83D\uDC37";
|
|
32652
|
+
SocialInteractions["COW_FACE"] = "\uD83D\uDC2E";
|
|
32653
|
+
SocialInteractions["RABBIT_FACE"] = "\uD83D\uDC30";
|
|
32654
|
+
SocialInteractions["BEAR_FACE"] = "\uD83D\uDC3B";
|
|
32655
|
+
SocialInteractions["PANDA_FACE"] = "\uD83D\uDC3C";
|
|
32656
|
+
SocialInteractions["PENGUIN"] = "\uD83D\uDC27";
|
|
32657
|
+
SocialInteractions["BIRD"] = "\uD83D\uDC26";
|
|
32658
|
+
SocialInteractions["BABY_CHICK"] = "\uD83D\uDC24";
|
|
32659
|
+
SocialInteractions["HATCHING_CHICK"] = "\uD83D\uDC23";
|
|
32660
|
+
SocialInteractions["BUG"] = "\uD83D\uDC1B";
|
|
32661
|
+
SocialInteractions["BUTTERFLY"] = "\uD83E\uDD8B";
|
|
32662
|
+
SocialInteractions["SNAIL"] = "\uD83D\uDC0C";
|
|
32663
|
+
SocialInteractions["LADY_BEETLE"] = "\uD83D\uDC1E";
|
|
32664
|
+
SocialInteractions["SPIDER"] = "\uD83D\uDD77\uFE0F";
|
|
32665
|
+
SocialInteractions["WEB"] = "\uD83D\uDD78\uFE0F";
|
|
32666
|
+
SocialInteractions["TURTLE"] = "\uD83D\uDC22";
|
|
32667
|
+
SocialInteractions["FISH"] = "\uD83D\uDC1F";
|
|
32668
|
+
SocialInteractions["WHALE"] = "\uD83D\uDC33";
|
|
32669
|
+
SocialInteractions["DOLPHIN"] = "\uD83D\uDC2C";
|
|
32670
|
+
SocialInteractions["OCTOPUS"] = "\uD83D\uDC19";
|
|
32671
|
+
SocialInteractions["CACTUS"] = "\uD83C\uDF35";
|
|
32672
|
+
SocialInteractions["TULIP"] = "\uD83C\uDF37";
|
|
32673
|
+
SocialInteractions["ROSE"] = "\uD83C\uDF39";
|
|
32674
|
+
SocialInteractions["SUNFLOWER"] = "\uD83C\uDF3B";
|
|
32675
|
+
SocialInteractions["PALM_TREE"] = "\uD83C\uDF34";
|
|
32676
|
+
SocialInteractions["EVERGREEN_TREE"] = "\uD83C\uDF32";
|
|
32677
|
+
SocialInteractions["DECIDUOUS_TREE"] = "\uD83C\uDF33";
|
|
32678
|
+
SocialInteractions["EGGPLANT"] = "\uD83C\uDF46";
|
|
32679
|
+
SocialInteractions["TOMATO"] = "\uD83C\uDF45";
|
|
32680
|
+
SocialInteractions["CARROT"] = "\uD83E\uDD55";
|
|
32681
|
+
SocialInteractions["BROCCOLI"] = "\uD83E\uDD66";
|
|
32682
|
+
SocialInteractions["CORN"] = "\uD83C\uDF3D";
|
|
32683
|
+
SocialInteractions["HOT_PEPPER"] = "\uD83C\uDF36\uFE0F";
|
|
32684
|
+
SocialInteractions["BREAD"] = "\uD83C\uDF5E";
|
|
32685
|
+
SocialInteractions["CHEESE"] = "\uD83E\uDDC0";
|
|
32686
|
+
SocialInteractions["HAMBURGER"] = "\uD83C\uDF54";
|
|
32687
|
+
SocialInteractions["PIZZA"] = "\uD83C\uDF55";
|
|
32688
|
+
SocialInteractions["TACO"] = "\uD83C\uDF2E";
|
|
32689
|
+
SocialInteractions["SUSHI"] = "\uD83C\uDF63";
|
|
32690
|
+
SocialInteractions["CUPCAKE"] = "\uD83E\uDDC1";
|
|
32691
|
+
SocialInteractions["ICE_CREAM"] = "\uD83C\uDF68";
|
|
32692
|
+
SocialInteractions["DONUT"] = "\uD83C\uDF69";
|
|
32693
|
+
SocialInteractions["CAKE"] = "\uD83C\uDF82";
|
|
32694
|
+
SocialInteractions["COOKIES"] = "\uD83C\uDF6A";
|
|
32695
|
+
})(SocialInteractions || (SocialInteractions = {}));
|
|
32696
|
+
|
|
32511
32697
|
var TicketTypes;
|
|
32512
32698
|
(function (TicketTypes) {
|
|
32513
32699
|
TicketTypes[TicketTypes["PAID"] = 1] = "PAID";
|
|
@@ -32566,7 +32752,8 @@ var Glitch = /** @class */ (function () {
|
|
|
32566
32752
|
Teams: Teams,
|
|
32567
32753
|
Posts: Posts,
|
|
32568
32754
|
Templates: Templates,
|
|
32569
|
-
Waitlists: Waitlists
|
|
32755
|
+
Waitlists: Waitlists,
|
|
32756
|
+
Utility: Utility,
|
|
32570
32757
|
};
|
|
32571
32758
|
Glitch.util = {
|
|
32572
32759
|
Requests: Requests,
|
|
@@ -32584,6 +32771,7 @@ var Glitch = /** @class */ (function () {
|
|
|
32584
32771
|
Modes: Modes,
|
|
32585
32772
|
PostTypes: PostTypes,
|
|
32586
32773
|
Roles: Roles,
|
|
32774
|
+
SocialInteractions: SocialInteractions,
|
|
32587
32775
|
TeamJoinProcess: TeamJoinProcess,
|
|
32588
32776
|
TicketTypes: TicketTypes$1,
|
|
32589
32777
|
TicketUsageTypes: TicketUsageTypes,
|