@workos-inc/node 3.2.1 → 3.3.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.
@@ -2,8 +2,10 @@ export interface UpdateUserOptions {
2
2
  userId: string;
3
3
  firstName?: string;
4
4
  lastName?: string;
5
+ emailVerifiedAt?: string;
5
6
  }
6
7
  export interface SerializedUpdateUserOptions {
7
8
  first_name?: string;
8
9
  last_name?: string;
10
+ email_verified_at?: string;
9
11
  }
@@ -4,5 +4,6 @@ exports.serializeUpdateUserOptions = void 0;
4
4
  const serializeUpdateUserOptions = (options) => ({
5
5
  first_name: options.firstName,
6
6
  last_name: options.lastName,
7
+ email_verified_at: options.emailVerifiedAt,
7
8
  });
8
9
  exports.serializeUpdateUserOptions = serializeUpdateUserOptions;
@@ -335,11 +335,13 @@ describe('UserManagement', () => {
335
335
  userId,
336
336
  firstName: 'Dane',
337
337
  lastName: 'Williams',
338
+ emailVerifiedAt: '2023-07-17T20:07:20.055Z',
338
339
  });
339
340
  expect(mock.history.put[0].url).toEqual(`/users/${userId}`);
340
341
  expect(JSON.parse(mock.history.put[0].data)).toEqual({
341
342
  first_name: 'Dane',
342
343
  last_name: 'Williams',
344
+ email_verified_at: '2023-07-17T20:07:20.055Z',
343
345
  });
344
346
  expect(resp).toMatchObject({
345
347
  email: 'test01@example.com',
package/lib/workos.js CHANGED
@@ -27,7 +27,7 @@ const mfa_1 = require("./mfa/mfa");
27
27
  const audit_logs_1 = require("./audit-logs/audit-logs");
28
28
  const users_1 = require("./users/users");
29
29
  const bad_request_exception_1 = require("./common/exceptions/bad-request.exception");
30
- const VERSION = '3.2.1';
30
+ const VERSION = '3.3.0';
31
31
  const DEFAULT_HOSTNAME = 'api.workos.com';
32
32
  class WorkOS {
33
33
  constructor(key, options = {}) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.1",
2
+ "version": "3.3.0",
3
3
  "name": "@workos-inc/node",
4
4
  "author": "WorkOS",
5
5
  "description": "A Node wrapper for the WorkOS API",