@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 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 './httpError.js';
493
+ import { HttpError } from 'oazapfts';
492
494
  export { HttpError };
package/dist/src/api.js CHANGED
@@ -379,5 +379,5 @@ export function getUserByEmail(email, opts) {
379
379
  ...opts,
380
380
  }));
381
381
  }
382
- import { HttpError } from './httpError.js';
382
+ import { HttpError } from 'oazapfts';
383
383
  export { HttpError };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integrations-platform-client",
3
- "version": "0.47.0",
3
+ "version": "0.48.1",
4
4
  "description": "The Unito Integrations Platform Client",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",
@@ -1,6 +0,0 @@
1
- export declare class HttpError extends Error {
2
- status: number;
3
- data?: unknown;
4
- headers: Headers;
5
- constructor(status: number, data: unknown, headers: Headers);
6
- }
@@ -1,11 +0,0 @@
1
- export class HttpError extends Error {
2
- status;
3
- data;
4
- headers;
5
- constructor(status, data, headers) {
6
- super(`Error: ${status}`);
7
- this.status = status;
8
- this.data = data;
9
- this.headers = headers;
10
- }
11
- }