@unito/integrations-platform-client 0.47.0 → 0.48.1
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/src/api.d.ts +4 -2
- package/dist/src/api.js +1 -1
- package/dist/src/index.cjs +2 -13
- package/package.json +1 -1
- package/dist/src/httpError.d.ts +0 -6
- package/dist/src/httpError.js +0 -11
package/dist/src/api.d.ts
CHANGED
|
@@ -308,6 +308,8 @@ export declare function getCredentials({ pagination, filters, }?: {
|
|
|
308
308
|
authorizationId?: number;
|
|
309
309
|
/** The integration id of the credential. */
|
|
310
310
|
integrationId?: number;
|
|
311
|
+
/** List of credential ids. */
|
|
312
|
+
id?: number[];
|
|
311
313
|
/** The scope of the credential. */
|
|
312
314
|
credentialScope?: 'development' | 'compliance' | 'production' | 'service';
|
|
313
315
|
/** The id of the Unito User for which this credential belongs to. */
|
|
@@ -356,7 +358,7 @@ export declare function deleteCredential(credentialId: number, opts?: Oazapfts.R
|
|
|
356
358
|
*/
|
|
357
359
|
export declare function postTrack(body: {
|
|
358
360
|
jwtToken: string;
|
|
359
|
-
event: 'AUTH_START' | 'AUTH_SUBMIT';
|
|
361
|
+
event: 'AUTH_START' | 'AUTH_SUBMIT' | 'AUTH_ACTION' | 'AUTH_BLOCKED' | 'AUTH_CHOOSE_CONNECTION_START' | 'AUTH_CHOOSE_CONNECTION_SUBMIT';
|
|
360
362
|
payload?: {
|
|
361
363
|
[key: string]: any;
|
|
362
364
|
};
|
|
@@ -488,5 +490,5 @@ export declare function regenerateApiKey(userId: number, opts?: Oazapfts.Request
|
|
|
488
490
|
* Get a user by its email address
|
|
489
491
|
*/
|
|
490
492
|
export declare function getUserByEmail(email: string, opts?: Oazapfts.RequestOpts): Promise<User>;
|
|
491
|
-
import { HttpError } from '
|
|
493
|
+
import { HttpError } from 'oazapfts';
|
|
492
494
|
export { HttpError };
|
package/dist/src/api.js
CHANGED
package/dist/src/index.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var Oazapfts = require('oazapfts/lib/runtime');
|
|
4
4
|
var QS = require('oazapfts/lib/runtime/query');
|
|
5
|
+
var oazapfts$1 = require('oazapfts');
|
|
5
6
|
|
|
6
7
|
function _interopNamespaceDefault(e) {
|
|
7
8
|
var n = Object.create(null);
|
|
@@ -23,18 +24,6 @@ function _interopNamespaceDefault(e) {
|
|
|
23
24
|
var Oazapfts__namespace = /*#__PURE__*/_interopNamespaceDefault(Oazapfts);
|
|
24
25
|
var QS__namespace = /*#__PURE__*/_interopNamespaceDefault(QS);
|
|
25
26
|
|
|
26
|
-
class HttpError extends Error {
|
|
27
|
-
status;
|
|
28
|
-
data;
|
|
29
|
-
headers;
|
|
30
|
-
constructor(status, data, headers) {
|
|
31
|
-
super(`Error: ${status}`);
|
|
32
|
-
this.status = status;
|
|
33
|
-
this.data = data;
|
|
34
|
-
this.headers = headers;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
27
|
/**
|
|
39
28
|
* Integrations Platform API
|
|
40
29
|
* 0.1.0
|
|
@@ -417,7 +406,7 @@ function getUserByEmail(email, opts) {
|
|
|
417
406
|
|
|
418
407
|
var api = {
|
|
419
408
|
__proto__: null,
|
|
420
|
-
HttpError: HttpError,
|
|
409
|
+
HttpError: oazapfts$1.HttpError,
|
|
421
410
|
createCredential: createCredential,
|
|
422
411
|
createIntegration: createIntegration,
|
|
423
412
|
createUser: createUser,
|
package/package.json
CHANGED
package/dist/src/httpError.d.ts
DELETED