skapi-js 1.0.54 → 1.0.55
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/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.d.ts +2 -2
- package/js/main/skapi.js +3 -3
- package/js/methods/user.js +1 -3
- package/package.json +1 -1
package/js/main/skapi.d.ts
CHANGED
package/js/main/skapi.js
CHANGED
|
@@ -23,7 +23,7 @@ export default class Skapi {
|
|
|
23
23
|
set user(value) {
|
|
24
24
|
}
|
|
25
25
|
constructor(service, owner, options, __etc) {
|
|
26
|
-
this.version = '1.0.
|
|
26
|
+
this.version = '1.0.55';
|
|
27
27
|
this.session = null;
|
|
28
28
|
this.connection = null;
|
|
29
29
|
this.host = 'skapi';
|
|
@@ -209,8 +209,8 @@ export default class Skapi {
|
|
|
209
209
|
clientSecretRequest(params) {
|
|
210
210
|
return clientSecretRequest.bind(this)(params);
|
|
211
211
|
}
|
|
212
|
-
consumeTicket(params
|
|
213
|
-
return consumeTicket.bind(this)(params
|
|
212
|
+
consumeTicket(params) {
|
|
213
|
+
return consumeTicket.bind(this)(params);
|
|
214
214
|
}
|
|
215
215
|
getConsumedTickets(params, fetchOptions) {
|
|
216
216
|
return getConsumedTickets.bind(this)(params, fetchOptions);
|
package/js/methods/user.js
CHANGED
|
@@ -48,10 +48,8 @@ export async function consumeTicket(params) {
|
|
|
48
48
|
if (!params.ticket_id) {
|
|
49
49
|
throw new SkapiError('Ticket ID is required.', { code: 'INVALID_PARAMETER' });
|
|
50
50
|
}
|
|
51
|
-
let ticket_id = params.ticket_id;
|
|
52
|
-
delete params.ticket_id;
|
|
53
51
|
await this.__connection;
|
|
54
|
-
let resp = await request.bind(this)(
|
|
52
|
+
let resp = await request.bind(this)('ticket', Object.assign({ exec: 'consume' }, params), { auth: true });
|
|
55
53
|
return map_ticket_obj(resp);
|
|
56
54
|
}
|
|
57
55
|
export async function getTickets(params, fetchOptions) {
|