skapi-js 1.0.54 → 1.0.56

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.
@@ -61,8 +61,8 @@ export default class Skapi {
61
61
  }): Promise<any>;
62
62
  consumeTicket(params: {
63
63
  ticket_id: string;
64
- }, placeholder: {
65
- [key: string]: string;
64
+ } & {
65
+ [key: string]: any;
66
66
  }): Promise<any>;
67
67
  getConsumedTickets(params: {
68
68
  ticket_id?: string;
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.54';
26
+ this.version = '1.0.56';
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, placeholder) {
213
- return consumeTicket.bind(this)(params, placeholder);
212
+ consumeTicket(params) {
213
+ return consumeTicket.bind(this)(params);
214
214
  }
215
215
  getConsumedTickets(params, fetchOptions) {
216
216
  return getConsumedTickets.bind(this)(params, fetchOptions);
@@ -19,17 +19,18 @@ export declare function getConsumedTickets(params: {
19
19
  export declare function registerTicket(params: {
20
20
  ticket_id: string;
21
21
  condition?: {
22
+ method?: 'GET' | 'POST';
22
23
  headers?: {
23
24
  key: string;
24
- value: string;
25
+ value: string | string[];
25
26
  operator: 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'ne' | '>' | '>=' | '<' | '<=' | '=' | '!=';
26
27
  }[];
27
28
  ip?: {
28
- value: string;
29
+ value: string | string[];
29
30
  operator: 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'ne' | '>' | '>=' | '<' | '<=' | '=' | '!=';
30
31
  };
31
32
  user_agent?: {
32
- value: string;
33
+ value: string | string[];
33
34
  operator: 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'ne' | '>' | '>=' | '<' | '<=' | '=' | '!=';
34
35
  };
35
36
  data?: {
@@ -46,7 +47,7 @@ export declare function registerTicket(params: {
46
47
  }[];
47
48
  user?: {
48
49
  key: string;
49
- value: string;
50
+ value: string | string[];
50
51
  operator: 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'ne' | '>' | '>=' | '<' | '<=' | '=' | '!=';
51
52
  }[];
52
53
  record_access?: string;
@@ -61,8 +62,7 @@ export declare function registerTicket(params: {
61
62
  match: {
62
63
  key: string;
63
64
  operator: 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'ne' | '>' | '>=' | '<' | '<=' | '=' | '!=';
64
- value: any;
65
- setValueWhenMatch?: any | any[];
65
+ value: any | any[];
66
66
  }[];
67
67
  };
68
68
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "description": "Skapi: Backend API Library for HTML frontend.",
5
5
  "main": "./dist/skapi.module.js",
6
6
  "types": "./js/Main.d.ts",