@unito/integrations-platform-client 0.46.2 → 0.48.0
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 -10
- package/dist/src/api.js +0 -16
- package/dist/src/index.cjs +0 -18
- package/package.json +1 -3
package/dist/src/api.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ export declare function getIntegrationByName(integrationName: string, opts?: Oaz
|
|
|
231
231
|
*/
|
|
232
232
|
export declare function inviteUser(integrationId: number, body?: {
|
|
233
233
|
email?: string;
|
|
234
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
234
|
+
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
235
235
|
/**
|
|
236
236
|
* Invite a unito organization to an integration
|
|
237
237
|
*/
|
|
@@ -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,13 +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
|
-
/**
|
|
492
|
-
* Whether the service is ready to serve requests
|
|
493
|
-
*/
|
|
494
|
-
export declare function getHealthReady(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
495
|
-
/**
|
|
496
|
-
* Whether the service is responsive
|
|
497
|
-
*/
|
|
498
|
-
export declare function getHealthAlive(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
499
493
|
import { HttpError } from './httpError.js';
|
|
500
494
|
export { HttpError };
|
package/dist/src/api.js
CHANGED
|
@@ -379,21 +379,5 @@ export function getUserByEmail(email, opts) {
|
|
|
379
379
|
...opts,
|
|
380
380
|
}));
|
|
381
381
|
}
|
|
382
|
-
/**
|
|
383
|
-
* Whether the service is ready to serve requests
|
|
384
|
-
*/
|
|
385
|
-
export function getHealthReady(opts) {
|
|
386
|
-
return oazapfts.ok(oazapfts.fetchText('/health/ready', {
|
|
387
|
-
...opts,
|
|
388
|
-
}));
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* Whether the service is responsive
|
|
392
|
-
*/
|
|
393
|
-
export function getHealthAlive(opts) {
|
|
394
|
-
return oazapfts.ok(oazapfts.fetchText('/health/alive', {
|
|
395
|
-
...opts,
|
|
396
|
-
}));
|
|
397
|
-
}
|
|
398
382
|
import { HttpError } from './httpError.js';
|
|
399
383
|
export { HttpError };
|
package/dist/src/index.cjs
CHANGED
|
@@ -414,22 +414,6 @@ function getUserByEmail(email, opts) {
|
|
|
414
414
|
...opts,
|
|
415
415
|
}));
|
|
416
416
|
}
|
|
417
|
-
/**
|
|
418
|
-
* Whether the service is ready to serve requests
|
|
419
|
-
*/
|
|
420
|
-
function getHealthReady(opts) {
|
|
421
|
-
return oazapfts.ok(oazapfts.fetchText('/health/ready', {
|
|
422
|
-
...opts,
|
|
423
|
-
}));
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Whether the service is responsive
|
|
427
|
-
*/
|
|
428
|
-
function getHealthAlive(opts) {
|
|
429
|
-
return oazapfts.ok(oazapfts.fetchText('/health/alive', {
|
|
430
|
-
...opts,
|
|
431
|
-
}));
|
|
432
|
-
}
|
|
433
417
|
|
|
434
418
|
var api = {
|
|
435
419
|
__proto__: null,
|
|
@@ -445,8 +429,6 @@ var api = {
|
|
|
445
429
|
encryptData: encryptData,
|
|
446
430
|
getCredentialById: getCredentialById,
|
|
447
431
|
getCredentials: getCredentials,
|
|
448
|
-
getHealthAlive: getHealthAlive,
|
|
449
|
-
getHealthReady: getHealthReady,
|
|
450
432
|
getIntegrationById: getIntegrationById,
|
|
451
433
|
getIntegrationByName: getIntegrationByName,
|
|
452
434
|
getIntegrationEvents: getIntegrationEvents,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unito/integrations-platform-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"description": "The Unito Integrations Platform Client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -36,8 +36,6 @@
|
|
|
36
36
|
"license": "LicenseRef-LICENSE",
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "18.x",
|
|
39
|
-
"@types/node-fetch": "2.x",
|
|
40
|
-
"@types/prettier": "2.x",
|
|
41
39
|
"@types/sinon": "17.x",
|
|
42
40
|
"@typescript-eslint/eslint-plugin": "6.x",
|
|
43
41
|
"@typescript-eslint/parser": "6.x",
|