@unito/integrations-platform-client 0.46.1 → 0.47.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 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<Integration>;
234
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
235
235
  /**
236
236
  * Invite a unito organization to an integration
237
237
  */
@@ -488,13 +488,5 @@ export declare function regenerateApiKey(userId: number, opts?: Oazapfts.Request
488
488
  * Get a user by its email address
489
489
  */
490
490
  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
491
  import { HttpError } from './httpError.js';
500
492
  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 };
@@ -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,
@@ -475,3 +457,4 @@ var api = {
475
457
  };
476
458
 
477
459
  module.exports = api;
460
+ module.exports.default = api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integrations-platform-client",
3
- "version": "0.46.1",
3
+ "version": "0.47.0",
4
4
  "description": "The Unito Integrations Platform Client",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "prepare": "npm run compile",
24
24
  "lint": "eslint --fix src test --ext .ts && prettier --write src test",
25
25
  "compile:esm": "tsc",
26
- "compile:cjs": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs --no-freeze",
26
+ "compile:cjs": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs --no-freeze && echo \"module.exports.default = api;\" >> dist/src/index.cjs",
27
27
  "compile": "rm -rf dist && npm run compile:esm && npm run compile:cjs",
28
28
  "test": "NODE_ENV=test node --loader ts-node/esm --test ./test/*.test.ts",
29
29
  "test:debug": "NODE_ENV=test node --loader ts-node/esm --inspect-brk --test ./test/*.test.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",