diff --git a/package.json b/package.json index 1d40c9533..40ec4fb29 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "7.20.0", + "version": "7.21.0", "name": "@workos-inc/node", "author": "WorkOS", "description": "A Node wrapper for the WorkOS API", @@ -67,4 +67,4 @@ "default": "./lib/index.js" } } -} \ No newline at end of file +} diff --git a/src/organizations/interfaces/update-organization-options.interface.ts b/src/organizations/interfaces/update-organization-options.interface.ts index 7809139af..5ace747e9 100644 --- a/src/organizations/interfaces/update-organization-options.interface.ts +++ b/src/organizations/interfaces/update-organization-options.interface.ts @@ -2,7 +2,7 @@ import { DomainData } from './domain-data.interface'; export interface UpdateOrganizationOptions { organization: string; - name: string; + name?: string; domainData?: DomainData[]; /** @@ -16,7 +16,7 @@ export interface UpdateOrganizationOptions { } export interface SerializedUpdateOrganizationOptions { - name: string; + name?: string; domain_data?: DomainData[]; /** diff --git a/src/organizations/organizations.spec.ts b/src/organizations/organizations.spec.ts index c91f0ebef..337553700 100644 --- a/src/organizations/organizations.spec.ts +++ b/src/organizations/organizations.spec.ts @@ -273,12 +273,10 @@ describe('Organizations', () => { domainData: [ { domain: 'example.com', state: DomainDataState.Verified }, ], - name: 'Test Organization 2', }); expect(fetchBody()).toEqual({ domain_data: [{ domain: 'example.com', state: 'verified' }], - name: 'Test Organization 2', }); expect(subject.id).toEqual('org_01EHT88Z8J8795GZNQ4ZP1J81T'); expect(subject.name).toEqual('Test Organization 2'); diff --git a/src/sso/__snapshots__/sso.spec.ts.snap b/src/sso/__snapshots__/sso.spec.ts.snap index bef72a416..19db23443 100644 --- a/src/sso/__snapshots__/sso.spec.ts.snap +++ b/src/sso/__snapshots__/sso.spec.ts.snap @@ -21,7 +21,7 @@ exports[`SSO SSO getProfileAndToken with all information provided sends a reques "Accept": "application/json, text/plain, */*", "Authorization": "Bearer sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU", "Content-Type": "application/x-www-form-urlencoded;charset=utf-8", - "User-Agent": "workos-node/7.20.0/fetch", + "User-Agent": "workos-node/7.21.0/fetch", } `; @@ -58,7 +58,7 @@ exports[`SSO SSO getProfileAndToken without a groups attribute sends a request t "Accept": "application/json, text/plain, */*", "Authorization": "Bearer sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU", "Content-Type": "application/x-www-form-urlencoded;charset=utf-8", - "User-Agent": "workos-node/7.20.0/fetch", + "User-Agent": "workos-node/7.21.0/fetch", } `; diff --git a/src/workos.ts b/src/workos.ts index 729e62394..8eb4959ed 100644 --- a/src/workos.ts +++ b/src/workos.ts @@ -33,7 +33,7 @@ import { SubtleCryptoProvider } from './common/crypto/subtle-crypto-provider'; import { FetchHttpClient } from './common/net/fetch-client'; import { IronSessionProvider } from './common/iron-session/iron-session-provider'; -const VERSION = '7.20.0'; +const VERSION = '7.21.0'; const DEFAULT_HOSTNAME = 'api.workos.com';