glitch-javascript-sdk 0.1.6 → 0.1.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 +23 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/constants/VenueTypes.d.ts +16 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +23 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +18 -0
- package/package.json +2 -2
- package/src/api/Teams.ts +1 -1
- package/src/constants/VenueTypes.ts +19 -0
- package/src/index.ts +3 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select what kind of venue this is for the event.
|
|
3
|
+
* @readonly
|
|
4
|
+
* @enum {integer}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum VenueType {
|
|
7
|
+
/** @member {integer} */
|
|
8
|
+
/** A virtual only event. */
|
|
9
|
+
VIRTUAL = 1,
|
|
10
|
+
/** @member {integer} */
|
|
11
|
+
/** An in person only event (IRL). */
|
|
12
|
+
IN_PERSON = 2,
|
|
13
|
+
/** @member {integer} */
|
|
14
|
+
/** Combination of IRL and in-person. */
|
|
15
|
+
HYBRID = 3
|
|
16
|
+
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { TeamJoinProcess } from "./constants/TeamJoinProcess";
|
|
|
16
16
|
import TicketTypes from "./constants/TicketTypes";
|
|
17
17
|
import { TicketUsageTypes } from "./constants/TicketUsageTypes";
|
|
18
18
|
import { TicketVisibility } from "./constants/TicketVisbility";
|
|
19
|
+
import { VenueType } from "./constants/VenueTypes";
|
|
19
20
|
declare class Glitch {
|
|
20
21
|
static config: {
|
|
21
22
|
Config: typeof Config;
|
|
@@ -68,6 +69,7 @@ declare class Glitch {
|
|
|
68
69
|
TicketTypes: typeof TicketTypes;
|
|
69
70
|
TicketUsageTypes: typeof TicketUsageTypes;
|
|
70
71
|
TicketVisibility: typeof TicketVisibility;
|
|
72
|
+
VenueType: typeof VenueType;
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
export default Glitch;
|
package/dist/esm/index.js
CHANGED
|
@@ -31275,8 +31275,8 @@ var Teams = /** @class */ (function () {
|
|
|
31275
31275
|
* @returns promise
|
|
31276
31276
|
*/
|
|
31277
31277
|
Teams.uploadBannerImageFile = function (team_id, file, data) {
|
|
31278
|
-
TeamsRoute.routes.uploadBannerImage.url.replace('{team_id}', team_id);
|
|
31279
|
-
return Requests.uploadFile(
|
|
31278
|
+
var url = TeamsRoute.routes.uploadBannerImage.url.replace('{team_id}', team_id);
|
|
31279
|
+
return Requests.uploadFile(url, 'image', file, data);
|
|
31280
31280
|
};
|
|
31281
31281
|
/**
|
|
31282
31282
|
* Updates the banner image for the team using a Blob.
|
|
@@ -31606,6 +31606,7 @@ var Session = /** @class */ (function () {
|
|
|
31606
31606
|
Storage.set(Session._first_name_key, data.first_name);
|
|
31607
31607
|
Storage.set(Session._last_name_key, data.last_name);
|
|
31608
31608
|
Storage.set(Session._email_key, data.email);
|
|
31609
|
+
Config.setAuthToken(data.token.access_token);
|
|
31609
31610
|
};
|
|
31610
31611
|
Session._id_key = 'user_id';
|
|
31611
31612
|
Session._first_name_key = 'user_first_name';
|
|
@@ -31731,6 +31732,24 @@ var TicketVisibility;
|
|
|
31731
31732
|
TicketVisibility[TicketVisibility["SCHEDULED"] = 4] = "SCHEDULED";
|
|
31732
31733
|
})(TicketVisibility || (TicketVisibility = {}));
|
|
31733
31734
|
|
|
31735
|
+
/**
|
|
31736
|
+
* Select what kind of venue this is for the event.
|
|
31737
|
+
* @readonly
|
|
31738
|
+
* @enum {integer}
|
|
31739
|
+
*/
|
|
31740
|
+
var VenueType;
|
|
31741
|
+
(function (VenueType) {
|
|
31742
|
+
/** @member {integer} */
|
|
31743
|
+
/** A virtual only event. */
|
|
31744
|
+
VenueType[VenueType["VIRTUAL"] = 1] = "VIRTUAL";
|
|
31745
|
+
/** @member {integer} */
|
|
31746
|
+
/** An in person only event (IRL). */
|
|
31747
|
+
VenueType[VenueType["IN_PERSON"] = 2] = "IN_PERSON";
|
|
31748
|
+
/** @member {integer} */
|
|
31749
|
+
/** Combination of IRL and in-person. */
|
|
31750
|
+
VenueType[VenueType["HYBRID"] = 3] = "HYBRID";
|
|
31751
|
+
})(VenueType || (VenueType = {}));
|
|
31752
|
+
|
|
31734
31753
|
//Configuration
|
|
31735
31754
|
var Glitch = /** @class */ (function () {
|
|
31736
31755
|
function Glitch() {
|
|
@@ -31762,7 +31781,8 @@ var Glitch = /** @class */ (function () {
|
|
|
31762
31781
|
TeamJoinProcess: TeamJoinProcess,
|
|
31763
31782
|
TicketTypes: TicketTypes$1,
|
|
31764
31783
|
TicketUsageTypes: TicketUsageTypes,
|
|
31765
|
-
TicketVisibility: TicketVisibility
|
|
31784
|
+
TicketVisibility: TicketVisibility,
|
|
31785
|
+
VenueType: VenueType
|
|
31766
31786
|
};
|
|
31767
31787
|
return Glitch;
|
|
31768
31788
|
}());
|