@unito/integrations-platform-client 0.48.0 → 0.48.2
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 +3 -2
- package/dist/src/api.js +3 -3
- package/dist/src/index.cjs +3 -15
- package/package.json +4 -4
- package/dist/src/httpError.d.ts +0 -6
- package/dist/src/httpError.js +0 -11
package/dist/src/api.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
7
|
-
import * as Oazapfts from 'oazapfts/
|
|
7
|
+
import * as Oazapfts from '@oazapfts/runtime';
|
|
8
8
|
export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
|
|
9
9
|
export declare const servers: {
|
|
10
10
|
local: string;
|
|
@@ -369,6 +369,7 @@ export declare function postTrack(body: {
|
|
|
369
369
|
export declare function encryptData(body: {
|
|
370
370
|
data: string;
|
|
371
371
|
integrationName: string;
|
|
372
|
+
sensitive?: boolean;
|
|
372
373
|
}, opts?: Oazapfts.RequestOpts): Promise<{
|
|
373
374
|
encryptedData: string;
|
|
374
375
|
}>;
|
|
@@ -490,5 +491,5 @@ export declare function regenerateApiKey(userId: number, opts?: Oazapfts.Request
|
|
|
490
491
|
* Get a user by its email address
|
|
491
492
|
*/
|
|
492
493
|
export declare function getUserByEmail(email: string, opts?: Oazapfts.RequestOpts): Promise<User>;
|
|
493
|
-
import { HttpError } from '
|
|
494
|
+
import { HttpError } from '@oazapfts/runtime';
|
|
494
495
|
export { HttpError };
|
package/dist/src/api.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
7
|
-
import * as Oazapfts from 'oazapfts/
|
|
8
|
-
import * as QS from 'oazapfts/
|
|
7
|
+
import * as Oazapfts from '@oazapfts/runtime';
|
|
8
|
+
import * as QS from '@oazapfts/runtime/query';
|
|
9
9
|
export const defaults = {
|
|
10
10
|
headers: {},
|
|
11
11
|
baseUrl: 'http://localhost:9000',
|
|
@@ -379,5 +379,5 @@ export function getUserByEmail(email, opts) {
|
|
|
379
379
|
...opts,
|
|
380
380
|
}));
|
|
381
381
|
}
|
|
382
|
-
import { HttpError } from '
|
|
382
|
+
import { HttpError } from '@oazapfts/runtime';
|
|
383
383
|
export { HttpError };
|
package/dist/src/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Oazapfts = require('oazapfts/
|
|
4
|
-
var QS = require('oazapfts/
|
|
3
|
+
var Oazapfts = require('@oazapfts/runtime');
|
|
4
|
+
var QS = require('@oazapfts/runtime/query');
|
|
5
5
|
|
|
6
6
|
function _interopNamespaceDefault(e) {
|
|
7
7
|
var n = Object.create(null);
|
|
@@ -23,18 +23,6 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
var Oazapfts__namespace = /*#__PURE__*/_interopNamespaceDefault(Oazapfts);
|
|
24
24
|
var QS__namespace = /*#__PURE__*/_interopNamespaceDefault(QS);
|
|
25
25
|
|
|
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
26
|
/**
|
|
39
27
|
* Integrations Platform API
|
|
40
28
|
* 0.1.0
|
|
@@ -417,7 +405,7 @@ function getUserByEmail(email, opts) {
|
|
|
417
405
|
|
|
418
406
|
var api = {
|
|
419
407
|
__proto__: null,
|
|
420
|
-
HttpError: HttpError,
|
|
408
|
+
HttpError: Oazapfts.HttpError,
|
|
421
409
|
createCredential: createCredential,
|
|
422
410
|
createIntegration: createIntegration,
|
|
423
411
|
createUser: createUser,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unito/integrations-platform-client",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
4
4
|
"description": "The Unito Integrations Platform Client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "18.x",
|
|
39
39
|
"@types/sinon": "17.x",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "
|
|
41
|
-
"@typescript-eslint/parser": "
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "7.x",
|
|
41
|
+
"@typescript-eslint/parser": "7.x",
|
|
42
42
|
"c8": "9.x",
|
|
43
43
|
"eslint": "8.x",
|
|
44
44
|
"prettier": "3.x",
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
"typescript": "5.x"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"oazapfts": "
|
|
51
|
+
"@oazapfts/runtime": "1.x"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/dist/src/httpError.d.ts
DELETED