@phoenixlan/phoenix.js 1.0.1 → 2.1.0
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/build/agenda/index.d.ts +10 -0
- package/build/avatar/index.d.ts +14 -0
- package/build/crew/applications/index.d.ts +25 -0
- package/build/crew/index.d.ts +43 -0
- package/build/entrance/index.d.ts +6 -0
- package/build/errors/ApiGetError.d.ts +3 -0
- package/build/errors/ApiParameterError.d.ts +3 -0
- package/build/errors/ApiPostError.d.ts +3 -0
- package/build/errors/ApiPutError.d.ts +3 -0
- package/build/errors/AuthError.d.ts +3 -0
- package/build/errors/InitError.d.ts +3 -0
- package/build/errors/RefreshError.d.ts +3 -0
- package/build/errors/index.d.ts +7 -0
- package/build/events/index.d.ts +23 -0
- package/build/index.d.ts +15 -0
- package/build/index.es.js +864 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +899 -0
- package/build/index.js.map +1 -0
- package/build/meta/api.d.ts +2 -0
- package/build/meta/index.d.ts +1 -0
- package/build/payment/index.d.ts +24 -0
- package/build/payment/storeSession/index.d.ts +21 -0
- package/build/position/index.d.ts +4 -0
- package/build/row/index.d.ts +30 -0
- package/build/seatmap/index.d.ts +14 -0
- package/build/ticket/index.d.ts +13 -0
- package/build/ticketType/index.d.ts +9 -0
- package/build/tos/index.d.ts +2 -0
- package/build/user/index.d.ts +38 -0
- package/build/user/oauth/index.d.ts +12 -0
- package/package.json +1 -1
package/build/index.js
ADDED
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/*! *****************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
***************************************************************************** */
|
|
19
|
+
|
|
20
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
21
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
22
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
24
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
25
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
26
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
|
|
31
|
+
|
|
32
|
+
class ApiGetError extends Error {
|
|
33
|
+
constructor(message) {
|
|
34
|
+
super(message);
|
|
35
|
+
// Set the prototype explicitly.
|
|
36
|
+
Object.setPrototypeOf(this, ApiGetError.prototype);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class ApiPutError extends Error {
|
|
41
|
+
constructor(message) {
|
|
42
|
+
super(message);
|
|
43
|
+
// Set the prototype explicitly.
|
|
44
|
+
Object.setPrototypeOf(this, ApiPutError.prototype);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
class ApiPostError extends Error {
|
|
49
|
+
constructor(message) {
|
|
50
|
+
super(message);
|
|
51
|
+
// Set the prototype explicitly.
|
|
52
|
+
Object.setPrototypeOf(this, ApiPostError.prototype);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class AuthError extends Error {
|
|
57
|
+
constructor(message) {
|
|
58
|
+
super(message);
|
|
59
|
+
// Set the prototype explicitly.
|
|
60
|
+
Object.setPrototypeOf(this, AuthError.prototype);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
class InitError extends Error {
|
|
65
|
+
constructor(message) {
|
|
66
|
+
super(message);
|
|
67
|
+
// Set the prototype explicitly.
|
|
68
|
+
Object.setPrototypeOf(this, InitError.prototype);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
class RefreshError extends Error {
|
|
73
|
+
constructor(message) {
|
|
74
|
+
super(message);
|
|
75
|
+
// Set the prototype explicitly.
|
|
76
|
+
Object.setPrototypeOf(this, RefreshError.prototype);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
class ApiParameterError extends Error {
|
|
81
|
+
constructor(message) {
|
|
82
|
+
super(message);
|
|
83
|
+
// Set the prototype explicitly.
|
|
84
|
+
Object.setPrototypeOf(this, ApiParameterError.prototype);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
let BASE_URL = "";
|
|
89
|
+
const getApiServer = () => {
|
|
90
|
+
if (BASE_URL === "") {
|
|
91
|
+
throw new InitError("Base URL is not set - remember to init the api before using it");
|
|
92
|
+
}
|
|
93
|
+
return BASE_URL;
|
|
94
|
+
};
|
|
95
|
+
const init = (baseUrl) => {
|
|
96
|
+
BASE_URL = baseUrl;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
let TOKEN = "";
|
|
100
|
+
let REFRESH_TOKEN = "";
|
|
101
|
+
const authenticateByCode = (code) => __awaiter(void 0, void 0, void 0, function* () {
|
|
102
|
+
const result = yield fetch(`${getApiServer()}/oauth/token`, {
|
|
103
|
+
method: 'POST',
|
|
104
|
+
headers: {
|
|
105
|
+
'Content-Type': 'application/json'
|
|
106
|
+
},
|
|
107
|
+
body: JSON.stringify({
|
|
108
|
+
grant_type: 'code',
|
|
109
|
+
code
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
if (result.status !== 200) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
const response = yield result.json();
|
|
116
|
+
TOKEN = response.token;
|
|
117
|
+
REFRESH_TOKEN = response.refresh_token;
|
|
118
|
+
return true;
|
|
119
|
+
});
|
|
120
|
+
const refreshToken = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
121
|
+
const result = yield fetch(`${getApiServer()}/oauth/token`, {
|
|
122
|
+
method: 'POST',
|
|
123
|
+
headers: {
|
|
124
|
+
'Content-Type': 'application/json'
|
|
125
|
+
},
|
|
126
|
+
body: JSON.stringify({
|
|
127
|
+
grant_type: 'refresh_token',
|
|
128
|
+
refresh_token: REFRESH_TOKEN
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
if (result.status !== 200) {
|
|
132
|
+
throw new RefreshError("Unable to authenticate");
|
|
133
|
+
}
|
|
134
|
+
TOKEN = (yield result.json()).token;
|
|
135
|
+
});
|
|
136
|
+
const checkExpiry = (token) => {
|
|
137
|
+
const now = new Date().getTime() / 1000;
|
|
138
|
+
//If the token expires within 5 seconds, we treat it as expired
|
|
139
|
+
if (token.exp - 5 < now) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
return true;
|
|
143
|
+
};
|
|
144
|
+
const getToken = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
145
|
+
if (REFRESH_TOKEN === "") {
|
|
146
|
+
throw new AuthError("Not authenticated");
|
|
147
|
+
}
|
|
148
|
+
if (TOKEN === "") {
|
|
149
|
+
yield refreshToken();
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
//Check expiration
|
|
153
|
+
const decoded = o(TOKEN);
|
|
154
|
+
if (!checkExpiry(decoded)) {
|
|
155
|
+
yield refreshToken();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return TOKEN;
|
|
159
|
+
});
|
|
160
|
+
const getRefreshToken = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
161
|
+
return REFRESH_TOKEN;
|
|
162
|
+
});
|
|
163
|
+
const setAuthState = (token, refreshToken) => __awaiter(void 0, void 0, void 0, function* () {
|
|
164
|
+
TOKEN = token !== null && token !== void 0 ? token : "";
|
|
165
|
+
REFRESH_TOKEN = refreshToken;
|
|
166
|
+
yield getToken();
|
|
167
|
+
});
|
|
168
|
+
const getTokenPayload = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
169
|
+
return o(yield getToken());
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
173
|
+
__proto__: null,
|
|
174
|
+
authenticateByCode: authenticateByCode,
|
|
175
|
+
getToken: getToken,
|
|
176
|
+
getRefreshToken: getRefreshToken,
|
|
177
|
+
setAuthState: setAuthState,
|
|
178
|
+
getTokenPayload: getTokenPayload
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
const getOwnTickets = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
182
|
+
const response = yield fetch(`${getApiServer()}/user/${uuid}/tickets`, {
|
|
183
|
+
method: 'GET',
|
|
184
|
+
headers: {
|
|
185
|
+
'Content-Type': 'application/json',
|
|
186
|
+
"X-Phoenix-Auth": yield getToken()
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
if (response.status !== 200) {
|
|
190
|
+
throw new ApiGetError("Unable to get the user's tickets");
|
|
191
|
+
}
|
|
192
|
+
return (yield response.json());
|
|
193
|
+
});
|
|
194
|
+
const getAuthenticatedUser = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
195
|
+
const result = yield fetch(`${getApiServer()}/user/current`, {
|
|
196
|
+
method: 'GET',
|
|
197
|
+
headers: {
|
|
198
|
+
'Content-Type': 'application/json',
|
|
199
|
+
"X-Phoenix-Auth": yield getToken()
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
if (result.status !== 200) {
|
|
203
|
+
throw new AuthError("Unable to get authentication token");
|
|
204
|
+
}
|
|
205
|
+
return yield result.json();
|
|
206
|
+
});
|
|
207
|
+
const getUser = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
208
|
+
const result = yield fetch(`${getApiServer()}/user/${uuid}`, {
|
|
209
|
+
method: 'GET',
|
|
210
|
+
headers: {
|
|
211
|
+
'Content-Type': 'application/json',
|
|
212
|
+
"X-Phoenix-Auth": yield getToken()
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
if (result.status !== 200) {
|
|
216
|
+
throw new AuthError("Unable to get authentication token");
|
|
217
|
+
}
|
|
218
|
+
return yield result.json();
|
|
219
|
+
});
|
|
220
|
+
const searchUsers = (query) => __awaiter(void 0, void 0, void 0, function* () {
|
|
221
|
+
const result = yield fetch(`${getApiServer()}/user/search?query=${encodeURIComponent(query)}`, {
|
|
222
|
+
method: 'GET',
|
|
223
|
+
headers: {
|
|
224
|
+
"X-Phoenix-Auth": yield getToken()
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
if (result.status !== 200) {
|
|
228
|
+
throw new AuthError("Unable to search");
|
|
229
|
+
}
|
|
230
|
+
return yield result.json();
|
|
231
|
+
});
|
|
232
|
+
// TODO add users
|
|
233
|
+
const getUsers = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
234
|
+
const result = yield fetch(`${getApiServer()}/user`, {
|
|
235
|
+
method: 'GET',
|
|
236
|
+
headers: {
|
|
237
|
+
'Content-Type': 'application/json',
|
|
238
|
+
"X-Phoenix-Auth": yield getToken()
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
if (result.status !== 200) {
|
|
242
|
+
throw new AuthError("Unable to get users");
|
|
243
|
+
}
|
|
244
|
+
return yield result.json();
|
|
245
|
+
});
|
|
246
|
+
const getAuthenticationUrl = (callback, clientId) => {
|
|
247
|
+
return `${getApiServer()}/static/login.html?redirect_uri=${encodeURIComponent(callback)}&client_id=${encodeURIComponent(clientId)}`;
|
|
248
|
+
};
|
|
249
|
+
const getFullName = (user) => {
|
|
250
|
+
return `${user.firstname} ${user.lastname}`;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
254
|
+
__proto__: null,
|
|
255
|
+
getOwnTickets: getOwnTickets,
|
|
256
|
+
getAuthenticatedUser: getAuthenticatedUser,
|
|
257
|
+
getUser: getUser,
|
|
258
|
+
searchUsers: searchUsers,
|
|
259
|
+
getUsers: getUsers,
|
|
260
|
+
getAuthenticationUrl: getAuthenticationUrl,
|
|
261
|
+
getFullName: getFullName,
|
|
262
|
+
Oauth: index
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
const getCurrentEvent = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
266
|
+
const response = yield fetch(`${getApiServer()}/event/current`, {
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: {
|
|
269
|
+
'Content-Type': 'application/json',
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
if (response.status !== 200) {
|
|
273
|
+
throw new ApiGetError('Unable to get the current event');
|
|
274
|
+
}
|
|
275
|
+
return (yield response.json());
|
|
276
|
+
});
|
|
277
|
+
const getEvents = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
278
|
+
const response = yield fetch(`${getApiServer()}/event/`, {
|
|
279
|
+
method: 'GET',
|
|
280
|
+
headers: {
|
|
281
|
+
'Content-Type': 'application/json',
|
|
282
|
+
},
|
|
283
|
+
});
|
|
284
|
+
if (response.status !== 200) {
|
|
285
|
+
throw new ApiGetError('Unable to get all events');
|
|
286
|
+
}
|
|
287
|
+
return (yield response.json());
|
|
288
|
+
});
|
|
289
|
+
const getEvent = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
290
|
+
const response = yield fetch(`${getApiServer()}/event/${uuid}`, {
|
|
291
|
+
method: 'GET',
|
|
292
|
+
headers: {
|
|
293
|
+
'Content-Type': 'application/json',
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
if (response.status !== 200) {
|
|
297
|
+
throw new ApiGetError('Unable to get the event');
|
|
298
|
+
}
|
|
299
|
+
return (yield response.json());
|
|
300
|
+
});
|
|
301
|
+
const getEventTicketTypes = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
302
|
+
const response = yield fetch(`${getApiServer()}/event/${uuid}/ticketType`, {
|
|
303
|
+
method: 'GET',
|
|
304
|
+
headers: {
|
|
305
|
+
'Content-Type': 'application/json',
|
|
306
|
+
},
|
|
307
|
+
});
|
|
308
|
+
if (response.status !== 200) {
|
|
309
|
+
throw new ApiGetError("Unable to get the event's ticket types");
|
|
310
|
+
}
|
|
311
|
+
return (yield response.json());
|
|
312
|
+
});
|
|
313
|
+
const getEventTickets = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
314
|
+
const response = yield fetch(`${getApiServer()}/event/${uuid}/ticket`, {
|
|
315
|
+
method: 'GET',
|
|
316
|
+
headers: {
|
|
317
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
if (response.status !== 200) {
|
|
321
|
+
throw new ApiGetError("Unable to get the events tickets");
|
|
322
|
+
}
|
|
323
|
+
return (yield response.json());
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
var ApplicationState;
|
|
327
|
+
(function (ApplicationState) {
|
|
328
|
+
ApplicationState[ApplicationState["created"] = 1] = "created";
|
|
329
|
+
ApplicationState[ApplicationState["accepted"] = 2] = "accepted";
|
|
330
|
+
ApplicationState[ApplicationState["rejected"] = 3] = "rejected";
|
|
331
|
+
})(ApplicationState || (ApplicationState = {}));
|
|
332
|
+
const getAllApplications = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
333
|
+
const response = yield fetch(`${getApiServer()}/application`, {
|
|
334
|
+
method: 'GET',
|
|
335
|
+
headers: {
|
|
336
|
+
'Content-Type': 'application/json',
|
|
337
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
338
|
+
},
|
|
339
|
+
});
|
|
340
|
+
if (response.status !== 200) {
|
|
341
|
+
throw new ApiGetError('Unable to get applications');
|
|
342
|
+
}
|
|
343
|
+
return (yield response.json());
|
|
344
|
+
});
|
|
345
|
+
const getApplication = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
346
|
+
if (!uuid) {
|
|
347
|
+
throw new ApiParameterError('uuid cannot be null');
|
|
348
|
+
}
|
|
349
|
+
const response = yield fetch(`${getApiServer()}/application/${uuid}`, {
|
|
350
|
+
method: 'GET',
|
|
351
|
+
headers: {
|
|
352
|
+
'Content-Type': 'application/json',
|
|
353
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
354
|
+
},
|
|
355
|
+
});
|
|
356
|
+
if (response.status !== 200) {
|
|
357
|
+
throw new ApiGetError('Unable to get applications');
|
|
358
|
+
}
|
|
359
|
+
return (yield response.json());
|
|
360
|
+
});
|
|
361
|
+
const getAllApplicationsByEvent = (event) => __awaiter(void 0, void 0, void 0, function* () {
|
|
362
|
+
if (!event) {
|
|
363
|
+
throw new ApiParameterError('Event cannot be null');
|
|
364
|
+
}
|
|
365
|
+
const response = yield fetch(`${getApiServer()}/event/${event.uuid}/applications`, {
|
|
366
|
+
method: 'GET',
|
|
367
|
+
headers: {
|
|
368
|
+
'Content-Type': 'application/json',
|
|
369
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
370
|
+
},
|
|
371
|
+
});
|
|
372
|
+
if (response.status !== 200) {
|
|
373
|
+
throw new ApiGetError('Unable to get applications');
|
|
374
|
+
}
|
|
375
|
+
return (yield response.json());
|
|
376
|
+
});
|
|
377
|
+
const getUserApplications = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
378
|
+
const response = yield fetch(`${getApiServer()}/application/my`, {
|
|
379
|
+
method: 'GET',
|
|
380
|
+
headers: {
|
|
381
|
+
'Content-Type': 'application/json',
|
|
382
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
383
|
+
},
|
|
384
|
+
});
|
|
385
|
+
if (response.status !== 200) {
|
|
386
|
+
throw new ApiGetError('Unable to get applications');
|
|
387
|
+
}
|
|
388
|
+
return (yield response.json());
|
|
389
|
+
});
|
|
390
|
+
const createApplication = (crew_uuid, contents) => __awaiter(void 0, void 0, void 0, function* () {
|
|
391
|
+
const response = yield fetch(`${getApiServer()}/application`, {
|
|
392
|
+
method: 'PUT',
|
|
393
|
+
headers: {
|
|
394
|
+
'Content-Type': 'application/json',
|
|
395
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
396
|
+
},
|
|
397
|
+
body: JSON.stringify({
|
|
398
|
+
crew_uuid,
|
|
399
|
+
contents,
|
|
400
|
+
})
|
|
401
|
+
});
|
|
402
|
+
if (response.status !== 200) {
|
|
403
|
+
throw new ApiPutError('Unable to create application');
|
|
404
|
+
}
|
|
405
|
+
return (yield response.json());
|
|
406
|
+
});
|
|
407
|
+
const answerApplication = (uuid, answer, state) => __awaiter(void 0, void 0, void 0, function* () {
|
|
408
|
+
if (!uuid) {
|
|
409
|
+
throw new ApiParameterError('uuid cannot be null');
|
|
410
|
+
}
|
|
411
|
+
if (!answer) {
|
|
412
|
+
throw new ApiParameterError('Answer cannot be null');
|
|
413
|
+
}
|
|
414
|
+
const response = yield fetch(`${getApiServer()}/application/${uuid}`, {
|
|
415
|
+
method: 'PATCH',
|
|
416
|
+
headers: {
|
|
417
|
+
'Content-Type': 'application/json',
|
|
418
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
419
|
+
},
|
|
420
|
+
body: JSON.stringify({
|
|
421
|
+
answer: answer,
|
|
422
|
+
state: state === ApplicationState.accepted ? "accepted" : "rejected"
|
|
423
|
+
})
|
|
424
|
+
});
|
|
425
|
+
if (response.status !== 200) {
|
|
426
|
+
throw new ApiGetError('Unable to answer application');
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
431
|
+
__proto__: null,
|
|
432
|
+
getAllApplications: getAllApplications,
|
|
433
|
+
getApplication: getApplication,
|
|
434
|
+
getAllApplicationsByEvent: getAllApplicationsByEvent,
|
|
435
|
+
getUserApplications: getUserApplications,
|
|
436
|
+
createApplication: createApplication,
|
|
437
|
+
answerApplication: answerApplication
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
const getCrews = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
441
|
+
const response = yield fetch(`${getApiServer()}/crew/`, {
|
|
442
|
+
method: 'GET',
|
|
443
|
+
headers: {
|
|
444
|
+
'Content-Type': 'application/json',
|
|
445
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
446
|
+
},
|
|
447
|
+
});
|
|
448
|
+
if (response.status !== 200) {
|
|
449
|
+
throw new ApiGetError('Unable to get crews');
|
|
450
|
+
}
|
|
451
|
+
return (yield response.json());
|
|
452
|
+
});
|
|
453
|
+
const getCrew = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
454
|
+
const response = yield fetch(`${getApiServer()}/crew/${uuid}`, {
|
|
455
|
+
method: 'GET',
|
|
456
|
+
headers: {
|
|
457
|
+
'Content-Type': 'application/json',
|
|
458
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
459
|
+
},
|
|
460
|
+
});
|
|
461
|
+
if (response.status !== 200) {
|
|
462
|
+
throw new ApiGetError(`Unable to get crew: ${uuid}`);
|
|
463
|
+
}
|
|
464
|
+
return (yield response.json());
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
468
|
+
__proto__: null,
|
|
469
|
+
getCrews: getCrews,
|
|
470
|
+
getCrew: getCrew,
|
|
471
|
+
Applications: index$2
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
const createAvatar = (file, x, y, w, h, uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
475
|
+
const data = new FormData();
|
|
476
|
+
data.set("file", file);
|
|
477
|
+
data.set("x", x.toString());
|
|
478
|
+
data.set("y", y.toString());
|
|
479
|
+
data.set("w", w.toString());
|
|
480
|
+
data.set("h", h.toString());
|
|
481
|
+
const result = yield fetch(`${getApiServer()}/user/${uuid}/avatar`, {
|
|
482
|
+
method: 'POST',
|
|
483
|
+
headers: {
|
|
484
|
+
"X-Phoenix-Auth": yield getToken()
|
|
485
|
+
},
|
|
486
|
+
body: data,
|
|
487
|
+
});
|
|
488
|
+
if (result.status !== 200) {
|
|
489
|
+
throw new ApiPostError("Failed to create avatar");
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
const deleteAvatar = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
493
|
+
const result = yield fetch(`${getApiServer()}/avatar/${uuid}`, {
|
|
494
|
+
method: 'DELETE',
|
|
495
|
+
headers: {
|
|
496
|
+
"X-Phoenix-Auth": yield getToken()
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
if (result.status !== 200) {
|
|
500
|
+
throw new ApiPostError("Failed to delete avatar");
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
const getAvatar = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
504
|
+
const result = yield fetch(`${getApiServer()}/avatar/${uuid}`, {
|
|
505
|
+
method: 'GET',
|
|
506
|
+
headers: {
|
|
507
|
+
'Content-Type': 'application/json',
|
|
508
|
+
"X-Phoenix-Auth": yield getToken()
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
if (result.status !== 200) {
|
|
512
|
+
throw new ApiGetError("Unable to get avatar");
|
|
513
|
+
}
|
|
514
|
+
return yield result.json();
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
518
|
+
__proto__: null,
|
|
519
|
+
createAvatar: createAvatar,
|
|
520
|
+
deleteAvatar: deleteAvatar,
|
|
521
|
+
getAvatar: getAvatar
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
const getTosRules = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
525
|
+
const response = yield fetch(`${getApiServer()}/static/tos/rules.md`, {
|
|
526
|
+
method: 'GET',
|
|
527
|
+
headers: {
|
|
528
|
+
'Content-Type': 'application/json',
|
|
529
|
+
},
|
|
530
|
+
});
|
|
531
|
+
if (response.status !== 200) {
|
|
532
|
+
throw new ApiGetError(`Unable to get TOS rules`);
|
|
533
|
+
}
|
|
534
|
+
return (yield response.text());
|
|
535
|
+
});
|
|
536
|
+
const getTosPayment = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
537
|
+
const response = yield fetch(`${getApiServer()}/static/tos/payment.md`, {
|
|
538
|
+
method: 'GET',
|
|
539
|
+
headers: {
|
|
540
|
+
'Content-Type': 'application/json',
|
|
541
|
+
},
|
|
542
|
+
});
|
|
543
|
+
if (response.status !== 200) {
|
|
544
|
+
throw new ApiGetError(`Unable to get TOS payment`);
|
|
545
|
+
}
|
|
546
|
+
return (yield response.text());
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
const getPositions = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
550
|
+
const response = yield fetch(`${getApiServer()}/position/`, {
|
|
551
|
+
method: 'GET',
|
|
552
|
+
headers: {
|
|
553
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
554
|
+
},
|
|
555
|
+
});
|
|
556
|
+
if (!response.ok) {
|
|
557
|
+
throw new ApiGetError('Unable to get positions');
|
|
558
|
+
}
|
|
559
|
+
return (yield response.json());
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
563
|
+
__proto__: null,
|
|
564
|
+
getPositions: getPositions
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
const createSeatmap = (name, description) => __awaiter(void 0, void 0, void 0, function* () {
|
|
568
|
+
const response = yield fetch(`${getApiServer()}/seatmap`, {
|
|
569
|
+
method: 'PUT',
|
|
570
|
+
headers: {
|
|
571
|
+
'Content-Type': 'application/json',
|
|
572
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
573
|
+
},
|
|
574
|
+
body: JSON.stringify({
|
|
575
|
+
name,
|
|
576
|
+
description
|
|
577
|
+
})
|
|
578
|
+
});
|
|
579
|
+
if (!response.ok) {
|
|
580
|
+
throw new ApiGetError('Unable to create seatmap');
|
|
581
|
+
}
|
|
582
|
+
return (yield response.json());
|
|
583
|
+
});
|
|
584
|
+
const getSeatmap = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
585
|
+
const response = yield fetch(`${getApiServer()}/seatmap/${uuid}`, {
|
|
586
|
+
method: 'GET',
|
|
587
|
+
headers: {
|
|
588
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
589
|
+
},
|
|
590
|
+
});
|
|
591
|
+
if (!response.ok) {
|
|
592
|
+
throw new ApiGetError('Unable to get seatmap');
|
|
593
|
+
}
|
|
594
|
+
return (yield response.json());
|
|
595
|
+
});
|
|
596
|
+
const getSeatmaps = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
597
|
+
const response = yield fetch(`${getApiServer()}/seatmap/`, {
|
|
598
|
+
method: 'GET',
|
|
599
|
+
headers: {
|
|
600
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
601
|
+
},
|
|
602
|
+
});
|
|
603
|
+
if (!response.ok) {
|
|
604
|
+
throw new ApiGetError('Unable to get seatmaps');
|
|
605
|
+
}
|
|
606
|
+
return (yield response.json());
|
|
607
|
+
});
|
|
608
|
+
const addRow = (seatmapUuid, rowNumber, x, y, horizontal, entrance, ticketType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
609
|
+
const response = yield fetch(`${getApiServer()}/seatmap/${seatmapUuid}/row`, {
|
|
610
|
+
method: 'PUT',
|
|
611
|
+
headers: {
|
|
612
|
+
'Content-Type': 'application/json',
|
|
613
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
614
|
+
},
|
|
615
|
+
body: JSON.stringify({
|
|
616
|
+
row_number: rowNumber,
|
|
617
|
+
x,
|
|
618
|
+
y,
|
|
619
|
+
horizontal,
|
|
620
|
+
entrance,
|
|
621
|
+
ticket_type: ticketType
|
|
622
|
+
})
|
|
623
|
+
});
|
|
624
|
+
if (!response.ok) {
|
|
625
|
+
throw new ApiGetError('Unable to add row');
|
|
626
|
+
}
|
|
627
|
+
return true;
|
|
628
|
+
});
|
|
629
|
+
const uploadBackground = (uuid, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
630
|
+
const response = yield fetch(`${getApiServer()}/seatmap/${uuid}/background`, {
|
|
631
|
+
method: 'PUT',
|
|
632
|
+
headers: {
|
|
633
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
634
|
+
},
|
|
635
|
+
body
|
|
636
|
+
});
|
|
637
|
+
if (!response.ok) {
|
|
638
|
+
throw new ApiGetError('Unable to upload background');
|
|
639
|
+
}
|
|
640
|
+
return (yield response.json());
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
644
|
+
__proto__: null,
|
|
645
|
+
createSeatmap: createSeatmap,
|
|
646
|
+
getSeatmap: getSeatmap,
|
|
647
|
+
getSeatmaps: getSeatmaps,
|
|
648
|
+
addRow: addRow,
|
|
649
|
+
uploadBackground: uploadBackground
|
|
650
|
+
});
|
|
651
|
+
|
|
652
|
+
const getEntrances = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
653
|
+
const response = yield fetch(`${getApiServer()}/entrance/`, {
|
|
654
|
+
method: 'GET',
|
|
655
|
+
headers: {
|
|
656
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
657
|
+
},
|
|
658
|
+
});
|
|
659
|
+
if (!response.ok) {
|
|
660
|
+
throw new ApiGetError('Unable to get entrances');
|
|
661
|
+
}
|
|
662
|
+
return (yield response.json());
|
|
663
|
+
});
|
|
664
|
+
|
|
665
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
666
|
+
__proto__: null,
|
|
667
|
+
getEntrances: getEntrances
|
|
668
|
+
});
|
|
669
|
+
|
|
670
|
+
const getTicketTypes = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
671
|
+
const response = yield fetch(`${getApiServer()}/ticketType/`, {
|
|
672
|
+
method: 'GET',
|
|
673
|
+
headers: {
|
|
674
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
675
|
+
},
|
|
676
|
+
});
|
|
677
|
+
if (!response.ok) {
|
|
678
|
+
throw new ApiGetError('Unable to get ticket types');
|
|
679
|
+
}
|
|
680
|
+
return (yield response.json());
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
684
|
+
__proto__: null,
|
|
685
|
+
getTicketTypes: getTicketTypes
|
|
686
|
+
});
|
|
687
|
+
|
|
688
|
+
const createTicket = (recipient, ticketType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
689
|
+
const response = yield fetch(`${getApiServer()}/ticket`, {
|
|
690
|
+
method: 'POST',
|
|
691
|
+
headers: {
|
|
692
|
+
"Content-Type": "application/json",
|
|
693
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
694
|
+
},
|
|
695
|
+
body: JSON.stringify({
|
|
696
|
+
recipient,
|
|
697
|
+
ticket_type: ticketType
|
|
698
|
+
})
|
|
699
|
+
});
|
|
700
|
+
if (!response.ok) {
|
|
701
|
+
throw new ApiPostError('Unable to create ticket');
|
|
702
|
+
}
|
|
703
|
+
return true;
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
707
|
+
__proto__: null,
|
|
708
|
+
createTicket: createTicket
|
|
709
|
+
});
|
|
710
|
+
|
|
711
|
+
const updateRow = (uuid, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
712
|
+
const response = yield fetch(`${getApiServer()}/row/${uuid}`, {
|
|
713
|
+
method: 'PATCH',
|
|
714
|
+
headers: {
|
|
715
|
+
'Content-Type': 'application/json',
|
|
716
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
717
|
+
},
|
|
718
|
+
body: JSON.stringify(options)
|
|
719
|
+
});
|
|
720
|
+
if (!response.ok) {
|
|
721
|
+
throw new ApiGetError('Unable to create seatmap');
|
|
722
|
+
}
|
|
723
|
+
return (yield response.json());
|
|
724
|
+
});
|
|
725
|
+
const addSeat = (rowUuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
726
|
+
const response = yield fetch(`${getApiServer()}/row/${rowUuid}/seat`, {
|
|
727
|
+
method: 'PUT',
|
|
728
|
+
headers: {
|
|
729
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
730
|
+
},
|
|
731
|
+
});
|
|
732
|
+
if (!response.ok) {
|
|
733
|
+
throw new ApiGetError('Unable to add seat');
|
|
734
|
+
}
|
|
735
|
+
return true;
|
|
736
|
+
});
|
|
737
|
+
|
|
738
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
739
|
+
__proto__: null,
|
|
740
|
+
updateRow: updateRow,
|
|
741
|
+
addSeat: addSeat
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
/*
|
|
745
|
+
* @created 31/05/2021 - 15:43
|
|
746
|
+
* @project phoenixjs-1.0
|
|
747
|
+
* @author andreasjj
|
|
748
|
+
*/
|
|
749
|
+
const createStoreSession = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
750
|
+
const response = yield fetch(`${getApiServer()}/store_session`, {
|
|
751
|
+
method: 'PUT',
|
|
752
|
+
headers: {
|
|
753
|
+
'Content-Type': 'application/json',
|
|
754
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
755
|
+
},
|
|
756
|
+
body: JSON.stringify(data)
|
|
757
|
+
});
|
|
758
|
+
if (response.status !== 200) {
|
|
759
|
+
throw new ApiPutError("Unable to create store session");
|
|
760
|
+
}
|
|
761
|
+
return yield response.json();
|
|
762
|
+
});
|
|
763
|
+
|
|
764
|
+
const createPayment = (store_session, provider) => __awaiter(void 0, void 0, void 0, function* () {
|
|
765
|
+
const response = yield fetch(`${getApiServer()}/payment`, {
|
|
766
|
+
method: 'POST',
|
|
767
|
+
headers: {
|
|
768
|
+
'Content-Type': 'application/json',
|
|
769
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
770
|
+
},
|
|
771
|
+
body: JSON.stringify({
|
|
772
|
+
store_session,
|
|
773
|
+
provider,
|
|
774
|
+
})
|
|
775
|
+
});
|
|
776
|
+
if (response.status !== 200) {
|
|
777
|
+
throw new ApiPostError("Unable to create payment");
|
|
778
|
+
}
|
|
779
|
+
return yield response.json();
|
|
780
|
+
});
|
|
781
|
+
const initiatePayment = (paymentUuid, fallbackUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
782
|
+
const body = {};
|
|
783
|
+
if (fallbackUrl) {
|
|
784
|
+
body.fallback_url = fallbackUrl;
|
|
785
|
+
}
|
|
786
|
+
const response = yield fetch(`${getApiServer()}/payment/${paymentUuid}/initiate`, {
|
|
787
|
+
method: 'POST',
|
|
788
|
+
headers: {
|
|
789
|
+
'Content-Type': 'application/json',
|
|
790
|
+
"X-Phoenix-Auth": yield getToken(),
|
|
791
|
+
},
|
|
792
|
+
body: JSON.stringify(body)
|
|
793
|
+
});
|
|
794
|
+
if (response.status !== 200) {
|
|
795
|
+
throw new ApiPostError("Unable to create payment initiation");
|
|
796
|
+
}
|
|
797
|
+
return yield response.json();
|
|
798
|
+
});
|
|
799
|
+
const initiateVippsPayment = (paymentUuid, fallbackUrl) => __awaiter(void 0, void 0, void 0, function* () {
|
|
800
|
+
const payment = initiatePayment(paymentUuid, fallbackUrl);
|
|
801
|
+
return payment;
|
|
802
|
+
});
|
|
803
|
+
const initiateVisaPayment = (paymentUuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
804
|
+
const payment = initiatePayment(paymentUuid);
|
|
805
|
+
return payment;
|
|
806
|
+
});
|
|
807
|
+
const poll = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
808
|
+
const response = yield fetch(`${getApiServer()}/payment/${uuid}`, {
|
|
809
|
+
method: 'GET',
|
|
810
|
+
headers: {
|
|
811
|
+
'Content-Type': 'application/json',
|
|
812
|
+
'X-Phoenix-Auth': yield getToken(),
|
|
813
|
+
},
|
|
814
|
+
});
|
|
815
|
+
if (response.status !== 200) {
|
|
816
|
+
throw new ApiGetError("Unable to get payment data");
|
|
817
|
+
}
|
|
818
|
+
return yield response.json();
|
|
819
|
+
});
|
|
820
|
+
|
|
821
|
+
const getAgenda = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
822
|
+
const response = yield fetch(`${getApiServer()}/agenda/`, {
|
|
823
|
+
method: 'GET',
|
|
824
|
+
headers: {
|
|
825
|
+
'Content-Type': 'application/json',
|
|
826
|
+
},
|
|
827
|
+
});
|
|
828
|
+
if (response.status !== 200) {
|
|
829
|
+
throw new ApiGetError('Unable to get agenda');
|
|
830
|
+
}
|
|
831
|
+
return (yield response.json());
|
|
832
|
+
});
|
|
833
|
+
const createAgendaEntry = (title, description, event_uuid, time) => __awaiter(void 0, void 0, void 0, function* () {
|
|
834
|
+
const response = yield fetch(`${getApiServer()}/agenda`, {
|
|
835
|
+
method: 'PUT',
|
|
836
|
+
headers: {
|
|
837
|
+
'Content-Type': 'application/json',
|
|
838
|
+
'X-Phoenix-Auth': yield getToken(),
|
|
839
|
+
},
|
|
840
|
+
body: JSON.stringify({
|
|
841
|
+
title,
|
|
842
|
+
description,
|
|
843
|
+
event_uuid,
|
|
844
|
+
time
|
|
845
|
+
})
|
|
846
|
+
});
|
|
847
|
+
return response.status === 200;
|
|
848
|
+
});
|
|
849
|
+
const deleteAgendaEntry = (uuid) => __awaiter(void 0, void 0, void 0, function* () {
|
|
850
|
+
const response = yield fetch(`${getApiServer()}/agenda/${uuid}`, {
|
|
851
|
+
method: 'DELETE',
|
|
852
|
+
headers: {
|
|
853
|
+
'Content-Type': 'application/json',
|
|
854
|
+
'X-Phoenix-Auth': yield getToken()
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
return response.status === 200;
|
|
858
|
+
});
|
|
859
|
+
|
|
860
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
861
|
+
__proto__: null,
|
|
862
|
+
getAgenda: getAgenda,
|
|
863
|
+
createAgendaEntry: createAgendaEntry,
|
|
864
|
+
deleteAgendaEntry: deleteAgendaEntry
|
|
865
|
+
});
|
|
866
|
+
|
|
867
|
+
exports.Agenda = index$b;
|
|
868
|
+
exports.ApiGetError = ApiGetError;
|
|
869
|
+
exports.ApiParameterError = ApiParameterError;
|
|
870
|
+
exports.ApiPostError = ApiPostError;
|
|
871
|
+
exports.ApiPutError = ApiPutError;
|
|
872
|
+
exports.AuthError = AuthError;
|
|
873
|
+
exports.Avatar = index$4;
|
|
874
|
+
exports.Crew = index$3;
|
|
875
|
+
exports.Entrance = index$7;
|
|
876
|
+
exports.InitError = InitError;
|
|
877
|
+
exports.Position = index$5;
|
|
878
|
+
exports.RefreshError = RefreshError;
|
|
879
|
+
exports.Row = index$a;
|
|
880
|
+
exports.Seatmap = index$6;
|
|
881
|
+
exports.Ticket = index$9;
|
|
882
|
+
exports.TicketType = index$8;
|
|
883
|
+
exports.User = index$1;
|
|
884
|
+
exports.createPayment = createPayment;
|
|
885
|
+
exports.createStoreSession = createStoreSession;
|
|
886
|
+
exports.getApiServer = getApiServer;
|
|
887
|
+
exports.getCurrentEvent = getCurrentEvent;
|
|
888
|
+
exports.getEvent = getEvent;
|
|
889
|
+
exports.getEventTicketTypes = getEventTicketTypes;
|
|
890
|
+
exports.getEventTickets = getEventTickets;
|
|
891
|
+
exports.getEvents = getEvents;
|
|
892
|
+
exports.getTosPayment = getTosPayment;
|
|
893
|
+
exports.getTosRules = getTosRules;
|
|
894
|
+
exports.init = init;
|
|
895
|
+
exports.initiatePayment = initiatePayment;
|
|
896
|
+
exports.initiateVippsPayment = initiateVippsPayment;
|
|
897
|
+
exports.initiateVisaPayment = initiateVisaPayment;
|
|
898
|
+
exports.poll = poll;
|
|
899
|
+
//# sourceMappingURL=index.js.map
|