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
package/dist/cjs/index.js
CHANGED
|
@@ -17053,8 +17053,8 @@ var Teams = /** @class */ (function () {
|
|
|
17053
17053
|
* @returns promise
|
|
17054
17054
|
*/
|
|
17055
17055
|
Teams.uploadBannerImageFile = function (team_id, file, data) {
|
|
17056
|
-
TeamsRoute.routes.uploadBannerImage.url.replace('{team_id}', team_id);
|
|
17057
|
-
return Requests.uploadFile(
|
|
17056
|
+
var url = TeamsRoute.routes.uploadBannerImage.url.replace('{team_id}', team_id);
|
|
17057
|
+
return Requests.uploadFile(url, 'image', file, data);
|
|
17058
17058
|
};
|
|
17059
17059
|
/**
|
|
17060
17060
|
* Updates the banner image for the team using a Blob.
|
|
@@ -17384,6 +17384,7 @@ var Session = /** @class */ (function () {
|
|
|
17384
17384
|
Storage.set(Session._first_name_key, data.first_name);
|
|
17385
17385
|
Storage.set(Session._last_name_key, data.last_name);
|
|
17386
17386
|
Storage.set(Session._email_key, data.email);
|
|
17387
|
+
Config.setAuthToken(data.token.access_token);
|
|
17387
17388
|
};
|
|
17388
17389
|
Session._id_key = 'user_id';
|
|
17389
17390
|
Session._first_name_key = 'user_first_name';
|
|
@@ -17509,6 +17510,24 @@ var TicketVisibility;
|
|
|
17509
17510
|
TicketVisibility[TicketVisibility["SCHEDULED"] = 4] = "SCHEDULED";
|
|
17510
17511
|
})(TicketVisibility || (TicketVisibility = {}));
|
|
17511
17512
|
|
|
17513
|
+
/**
|
|
17514
|
+
* Select what kind of venue this is for the event.
|
|
17515
|
+
* @readonly
|
|
17516
|
+
* @enum {integer}
|
|
17517
|
+
*/
|
|
17518
|
+
var VenueType;
|
|
17519
|
+
(function (VenueType) {
|
|
17520
|
+
/** @member {integer} */
|
|
17521
|
+
/** A virtual only event. */
|
|
17522
|
+
VenueType[VenueType["VIRTUAL"] = 1] = "VIRTUAL";
|
|
17523
|
+
/** @member {integer} */
|
|
17524
|
+
/** An in person only event (IRL). */
|
|
17525
|
+
VenueType[VenueType["IN_PERSON"] = 2] = "IN_PERSON";
|
|
17526
|
+
/** @member {integer} */
|
|
17527
|
+
/** Combination of IRL and in-person. */
|
|
17528
|
+
VenueType[VenueType["HYBRID"] = 3] = "HYBRID";
|
|
17529
|
+
})(VenueType || (VenueType = {}));
|
|
17530
|
+
|
|
17512
17531
|
//Configuration
|
|
17513
17532
|
var Glitch = /** @class */ (function () {
|
|
17514
17533
|
function Glitch() {
|
|
@@ -17540,7 +17559,8 @@ var Glitch = /** @class */ (function () {
|
|
|
17540
17559
|
TeamJoinProcess: TeamJoinProcess,
|
|
17541
17560
|
TicketTypes: TicketTypes$1,
|
|
17542
17561
|
TicketUsageTypes: TicketUsageTypes,
|
|
17543
|
-
TicketVisibility: TicketVisibility
|
|
17562
|
+
TicketVisibility: TicketVisibility,
|
|
17563
|
+
VenueType: VenueType
|
|
17544
17564
|
};
|
|
17545
17565
|
return Glitch;
|
|
17546
17566
|
}());
|