@workos-inc/node 7.20.0 → 7.21.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
1
  import { DomainData } from './domain-data.interface';
2
2
  export interface UpdateOrganizationOptions {
3
3
  organization: string;
4
- name: string;
4
+ name?: string;
5
5
  domainData?: DomainData[];
6
6
  /**
7
7
  * @deprecated If you need to allow sign-ins from any email domain, contact support@workos.com.
@@ -13,7 +13,7 @@ export interface UpdateOrganizationOptions {
13
13
  domains?: string[];
14
14
  }
15
15
  export interface SerializedUpdateOrganizationOptions {
16
- name: string;
16
+ name?: string;
17
17
  domain_data?: DomainData[];
18
18
  /**
19
19
  * @deprecated If you need to allow sign-ins from any email domain, contact support@workos.com.
@@ -216,11 +216,9 @@ describe('Organizations', () => {
216
216
  domainData: [
217
217
  { domain: 'example.com', state: interfaces_1.DomainDataState.Verified },
218
218
  ],
219
- name: 'Test Organization 2',
220
219
  });
221
220
  expect((0, test_utils_1.fetchBody)()).toEqual({
222
221
  domain_data: [{ domain: 'example.com', state: 'verified' }],
223
- name: 'Test Organization 2',
224
222
  });
225
223
  expect(subject.id).toEqual('org_01EHT88Z8J8795GZNQ4ZP1J81T');
226
224
  expect(subject.name).toEqual('Test Organization 2');
package/lib/workos.js CHANGED
@@ -27,7 +27,7 @@ const bad_request_exception_1 = require("./common/exceptions/bad-request.excepti
27
27
  const http_client_1 = require("./common/net/http-client");
28
28
  const subtle_crypto_provider_1 = require("./common/crypto/subtle-crypto-provider");
29
29
  const fetch_client_1 = require("./common/net/fetch-client");
30
- const VERSION = '7.20.0';
30
+ const VERSION = '7.21.0';
31
31
  const DEFAULT_HOSTNAME = 'api.workos.com';
32
32
  const HEADER_AUTHORIZATION = 'Authorization';
33
33
  const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.20.0",
2
+ "version": "7.21.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",
@@ -67,4 +67,4 @@
67
67
  "default": "./lib/index.js"
68
68
  }
69
69
  }
70
- }
70
+ }