@workos-inc/node 1.5.0 → 1.6.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.
@@ -1,7 +1,7 @@
1
- export { GenericServerException } from './generic-server.exception';
2
- export { NoApiKeyProvidedException } from './no-api-key-provided.exception';
3
- export { NotFoundException } from './not-found.exception';
4
- export { UnauthorizedException } from './unauthorized.exception';
5
- export { UnprocessableEntityException } from './unprocessable-entity.exception';
6
- export { OauthException } from './oauth.exception';
7
- export { SignatureVerificationException } from './signature-verification.exception';
1
+ export * from './generic-server.exception';
2
+ export * from './no-api-key-provided.exception';
3
+ export * from './not-found.exception';
4
+ export * from './oauth.exception';
5
+ export * from './signature-verification.exception';
6
+ export * from './unauthorized.exception';
7
+ export * from './unprocessable-entity.exception';
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SignatureVerificationException = exports.OauthException = exports.UnprocessableEntityException = exports.UnauthorizedException = exports.NotFoundException = exports.NoApiKeyProvidedException = exports.GenericServerException = void 0;
4
- var generic_server_exception_1 = require("./generic-server.exception");
5
- Object.defineProperty(exports, "GenericServerException", { enumerable: true, get: function () { return generic_server_exception_1.GenericServerException; } });
6
- var no_api_key_provided_exception_1 = require("./no-api-key-provided.exception");
7
- Object.defineProperty(exports, "NoApiKeyProvidedException", { enumerable: true, get: function () { return no_api_key_provided_exception_1.NoApiKeyProvidedException; } });
8
- var not_found_exception_1 = require("./not-found.exception");
9
- Object.defineProperty(exports, "NotFoundException", { enumerable: true, get: function () { return not_found_exception_1.NotFoundException; } });
10
- var unauthorized_exception_1 = require("./unauthorized.exception");
11
- Object.defineProperty(exports, "UnauthorizedException", { enumerable: true, get: function () { return unauthorized_exception_1.UnauthorizedException; } });
12
- var unprocessable_entity_exception_1 = require("./unprocessable-entity.exception");
13
- Object.defineProperty(exports, "UnprocessableEntityException", { enumerable: true, get: function () { return unprocessable_entity_exception_1.UnprocessableEntityException; } });
14
- var oauth_exception_1 = require("./oauth.exception");
15
- Object.defineProperty(exports, "OauthException", { enumerable: true, get: function () { return oauth_exception_1.OauthException; } });
16
- var signature_verification_exception_1 = require("./signature-verification.exception");
17
- Object.defineProperty(exports, "SignatureVerificationException", { enumerable: true, get: function () { return signature_verification_exception_1.SignatureVerificationException; } });
13
+ __exportStar(require("./generic-server.exception"), exports);
14
+ __exportStar(require("./no-api-key-provided.exception"), exports);
15
+ __exportStar(require("./not-found.exception"), exports);
16
+ __exportStar(require("./oauth.exception"), exports);
17
+ __exportStar(require("./signature-verification.exception"), exports);
18
+ __exportStar(require("./unauthorized.exception"), exports);
19
+ __exportStar(require("./unprocessable-entity.exception"), exports);
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { WorkOS } from './workos';
2
2
  export * from './audit-trail/interfaces';
3
+ export * from './common/exceptions';
3
4
  export * from './common/interfaces';
4
5
  export * from './directory-sync/interfaces';
5
6
  export * from './passwordless/interfaces';
package/lib/index.js CHANGED
@@ -14,6 +14,7 @@ exports.WorkOS = void 0;
14
14
  const workos_1 = require("./workos");
15
15
  Object.defineProperty(exports, "WorkOS", { enumerable: true, get: function () { return workos_1.WorkOS; } });
16
16
  __exportStar(require("./audit-trail/interfaces"), exports);
17
+ __exportStar(require("./common/exceptions"), exports);
17
18
  __exportStar(require("./common/interfaces"), exports);
18
19
  __exportStar(require("./directory-sync/interfaces"), exports);
19
20
  __exportStar(require("./passwordless/interfaces"), exports);
@@ -1,5 +1,6 @@
1
1
  export declare enum ConnectionType {
2
2
  ADFSSAML = "ADFSSAML",
3
+ Auth0SAML = "Auth0SAML",
3
4
  AzureSAML = "AzureSAML",
4
5
  GenericOIDC = "GenericOIDC",
5
6
  GenericSAML = "GenericSAML",
@@ -4,6 +4,7 @@ exports.ConnectionType = void 0;
4
4
  var ConnectionType;
5
5
  (function (ConnectionType) {
6
6
  ConnectionType["ADFSSAML"] = "ADFSSAML";
7
+ ConnectionType["Auth0SAML"] = "Auth0SAML";
7
8
  ConnectionType["AzureSAML"] = "AzureSAML";
8
9
  ConnectionType["GenericOIDC"] = "GenericOIDC";
9
10
  ConnectionType["GenericSAML"] = "GenericSAML";
package/lib/workos.js CHANGED
@@ -22,7 +22,7 @@ const passwordless_1 = require("./passwordless/passwordless");
22
22
  const portal_1 = require("./portal/portal");
23
23
  const sso_1 = require("./sso/sso");
24
24
  const webhooks_1 = require("./webhooks/webhooks");
25
- const VERSION = '1.5.0';
25
+ const VERSION = '1.6.0';
26
26
  const DEFAULT_HOSTNAME = 'api.workos.com';
27
27
  class WorkOS {
28
28
  constructor(key, options = {}) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.0",
2
+ "version": "1.6.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "volta": {
12
12
  "node": "14.18.1",
13
- "yarn": "1.22.15"
13
+ "yarn": "1.22.17"
14
14
  },
15
15
  "main": "lib/index.js",
16
16
  "typings": "lib/index.d.ts",
@@ -40,13 +40,13 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/jest": "27.0.2",
43
- "@types/node": "14.17.22",
43
+ "@types/node": "14.17.32",
44
44
  "@types/pluralize": "0.0.29",
45
45
  "axios-mock-adapter": "1.20.0",
46
- "jest": "27.2.5",
46
+ "jest": "27.3.1",
47
47
  "prettier": "2.4.1",
48
48
  "supertest": "6.1.6",
49
- "ts-jest": "27.0.5",
49
+ "ts-jest": "27.0.7",
50
50
  "tslint": "6.1.3",
51
51
  "typescript": "4.4.4"
52
52
  }