@workos-inc/node 7.51.0 → 7.52.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/lib/user-management/fixtures/list-organization-memberships.json +1 -0
- package/lib/user-management/interfaces/organization-membership.interface.d.ts +2 -0
- package/lib/user-management/serializers/organization-membership.serializer.js +1 -0
- package/lib/user-management/user-management.spec.js +1 -0
- package/lib/workos.js +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"id": "om_01H5JQDV7R7ATEYZDEG0W5PRYS",
|
|
7
7
|
"user_id": "user_01H5JQDV7R7ATEYZDEG0W5PRYS",
|
|
8
8
|
"organization_id": "organization_01H5JQDV7R7ATEYZDEG0W5PRYS",
|
|
9
|
+
"organization_name": "Example Organization",
|
|
9
10
|
"status": "active",
|
|
10
11
|
"created_at": "2023-07-18T02:07:19.911Z",
|
|
11
12
|
"updated_at": "2023-07-18T02:07:19.911Z"
|
|
@@ -4,6 +4,7 @@ export interface OrganizationMembership {
|
|
|
4
4
|
object: 'organization_membership';
|
|
5
5
|
id: string;
|
|
6
6
|
organizationId: string;
|
|
7
|
+
organizationName: string;
|
|
7
8
|
status: OrganizationMembershipStatus;
|
|
8
9
|
userId: string;
|
|
9
10
|
createdAt: string;
|
|
@@ -14,6 +15,7 @@ export interface OrganizationMembershipResponse {
|
|
|
14
15
|
object: 'organization_membership';
|
|
15
16
|
id: string;
|
|
16
17
|
organization_id: string;
|
|
18
|
+
organization_name: string;
|
|
17
19
|
status: OrganizationMembershipStatus;
|
|
18
20
|
user_id: string;
|
|
19
21
|
created_at: string;
|
|
@@ -6,6 +6,7 @@ const deserializeOrganizationMembership = (organizationMembership) => ({
|
|
|
6
6
|
id: organizationMembership.id,
|
|
7
7
|
userId: organizationMembership.user_id,
|
|
8
8
|
organizationId: organizationMembership.organization_id,
|
|
9
|
+
organizationName: organizationMembership.organization_name,
|
|
9
10
|
status: organizationMembership.status,
|
|
10
11
|
createdAt: organizationMembership.created_at,
|
|
11
12
|
updatedAt: organizationMembership.updated_at,
|
|
@@ -1271,6 +1271,7 @@ describe('UserManagement', () => {
|
|
|
1271
1271
|
{
|
|
1272
1272
|
object: 'organization_membership',
|
|
1273
1273
|
organizationId: 'organization_01H5JQDV7R7ATEYZDEG0W5PRYS',
|
|
1274
|
+
organizationName: 'Example Organization',
|
|
1274
1275
|
userId: 'user_01H5JQDV7R7ATEYZDEG0W5PRYS',
|
|
1275
1276
|
status: 'active',
|
|
1276
1277
|
},
|
package/lib/workos.js
CHANGED
|
@@ -31,7 +31,7 @@ const widgets_1 = require("./widgets/widgets");
|
|
|
31
31
|
const actions_1 = require("./actions/actions");
|
|
32
32
|
const vault_1 = require("./vault/vault");
|
|
33
33
|
const conflict_exception_1 = require("./common/exceptions/conflict.exception");
|
|
34
|
-
const VERSION = '7.
|
|
34
|
+
const VERSION = '7.52.0';
|
|
35
35
|
const DEFAULT_HOSTNAME = 'api.workos.com';
|
|
36
36
|
const HEADER_AUTHORIZATION = 'Authorization';
|
|
37
37
|
const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
|
package/package.json
CHANGED