glitch-javascript-sdk 0.1.7 → 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 +22 -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 +22 -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/index.d.ts
CHANGED
|
@@ -1272,6 +1272,23 @@ declare enum TicketVisibility {
|
|
|
1272
1272
|
SCHEDULED = 4
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
+
/**
|
|
1276
|
+
* Select what kind of venue this is for the event.
|
|
1277
|
+
* @readonly
|
|
1278
|
+
* @enum {integer}
|
|
1279
|
+
*/
|
|
1280
|
+
declare enum VenueType {
|
|
1281
|
+
/** @member {integer} */
|
|
1282
|
+
/** A virtual only event. */
|
|
1283
|
+
VIRTUAL = 1,
|
|
1284
|
+
/** @member {integer} */
|
|
1285
|
+
/** An in person only event (IRL). */
|
|
1286
|
+
IN_PERSON = 2,
|
|
1287
|
+
/** @member {integer} */
|
|
1288
|
+
/** Combination of IRL and in-person. */
|
|
1289
|
+
HYBRID = 3
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1275
1292
|
declare class Glitch {
|
|
1276
1293
|
static config: {
|
|
1277
1294
|
Config: typeof Config;
|
|
@@ -1324,6 +1341,7 @@ declare class Glitch {
|
|
|
1324
1341
|
TicketTypes: typeof TicketTypes;
|
|
1325
1342
|
TicketUsageTypes: typeof TicketUsageTypes;
|
|
1326
1343
|
TicketVisibility: typeof TicketVisibility;
|
|
1344
|
+
VenueType: typeof VenueType;
|
|
1327
1345
|
};
|
|
1328
1346
|
}
|
|
1329
1347
|
|
package/package.json
CHANGED
package/src/api/Teams.ts
CHANGED
|
@@ -120,7 +120,7 @@ class Teams {
|
|
|
120
120
|
|
|
121
121
|
let url = TeamsRoutes.routes.uploadBannerImage.url.replace('{team_id}', team_id);
|
|
122
122
|
|
|
123
|
-
return Requests.uploadFile(
|
|
123
|
+
return Requests.uploadFile(url, 'image', file, data);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Select what kind of venue this is for the event.
|
|
4
|
+
* @readonly
|
|
5
|
+
* @enum {integer}
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export enum VenueType {
|
|
9
|
+
/** @member {integer} */
|
|
10
|
+
/** A virtual only event. */
|
|
11
|
+
VIRTUAL = 1,
|
|
12
|
+
/** @member {integer} */
|
|
13
|
+
/** An in person only event (IRL). */
|
|
14
|
+
IN_PERSON = 2,
|
|
15
|
+
/** @member {integer} */
|
|
16
|
+
/** Combination of IRL and in-person. */
|
|
17
|
+
HYBRID = 3
|
|
18
|
+
}
|
|
19
|
+
|
package/src/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { TeamJoinProcess } from "./constants/TeamJoinProcess";
|
|
|
25
25
|
import TicketTypes from "./constants/TicketTypes";
|
|
26
26
|
import { TicketUsageTypes } from "./constants/TicketUsageTypes";
|
|
27
27
|
import { TicketVisibility } from "./constants/TicketVisbility";
|
|
28
|
+
import { VenueType } from "./constants/VenueTypes";
|
|
28
29
|
|
|
29
30
|
class Glitch {
|
|
30
31
|
|
|
@@ -58,7 +59,8 @@ class Glitch {
|
|
|
58
59
|
TeamJoinProcess : TeamJoinProcess,
|
|
59
60
|
TicketTypes : TicketTypes,
|
|
60
61
|
TicketUsageTypes : TicketUsageTypes,
|
|
61
|
-
TicketVisibility : TicketVisibility
|
|
62
|
+
TicketVisibility : TicketVisibility,
|
|
63
|
+
VenueType : VenueType
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
|