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.
- 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.d.ts +6 -6
- 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.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
|
|
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.d.ts
CHANGED
|
@@ -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
|
};
|