@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 +1 -1
- 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
|
@@ -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 '
|
|
493
|
+
import { HttpError } from 'oazapfts';
|
|
494
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