@unito/integrations-platform-client 0.48.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
@@ -490,5 +490,5 @@ export declare function regenerateApiKey(userId: number, opts?: Oazapfts.Request
490
490
  * Get a user by its email address
491
491
  */
492
492
  export declare function getUserByEmail(email: string, opts?: Oazapfts.RequestOpts): Promise<User>;
493
- import { HttpError } from './httpError.js';
493
+ import { HttpError } from 'oazapfts';
494
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.48.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
- }