From cd6c887a3716d1746a79d6400ea8633e1e27e871 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Fri, 9 Feb 2024 11:57:05 +0100 Subject: [PATCH] Add support for show_as_button on organization connections --- .../managers/organizations-manager.ts | 3 +- src/management/__generated/models/index.ts | 75 ++++++++++++++++++- 2 files changed, 76 insertions(+), 2 deletions(-) diff --git a/src/management/__generated/managers/organizations-manager.ts b/src/management/__generated/managers/organizations-manager.ts index a2940a518..110db67f8 100644 --- a/src/management/__generated/managers/organizations-manager.ts +++ b/src/management/__generated/managers/organizations-manager.ts @@ -17,6 +17,7 @@ import type { PostInvitationsRequest, PostMembersRequest, PostOrganizationMemberRolesRequest, + PostOrganizations201Response, PostOrganizationsRequest, GetEnabledConnections200ResponseOneOf, GetInvitations200ResponseOneOf, @@ -831,7 +832,7 @@ export class OrganizationsManager extends BaseAPI { async create( bodyParameters: PostOrganizationsRequest, initOverrides?: InitOverride - ): Promise> { + ): Promise> { const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index d4662699a..520cc95dc 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -4888,6 +4888,11 @@ export interface GetEnabledConnections200ResponseOneOfInner { * */ assign_membership_on_login: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button: boolean; /** */ connection: GetEnabledConnections200ResponseOneOfInnerConnection; @@ -7539,7 +7544,12 @@ export interface PatchEnabledConnectionsByConnectionIdRequest { * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. * */ - assign_membership_on_login: boolean; + assign_membership_on_login?: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button?: boolean; } /** * @@ -8790,6 +8800,11 @@ export interface PostEnabledConnectionsRequest { * */ assign_membership_on_login?: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button?: boolean; } /** * @@ -9431,6 +9446,59 @@ export interface PostOrganizationMemberRolesRequest { */ roles: Array; } +/** + * + */ +export interface PostOrganizations201Response { + [key: string]: any | any; + /** + * Organization identifier + * + */ + id: string; + /** + * The name of this organization. + * + */ + name: string; + /** + * Friendly name of this organization. + * + */ + display_name: string; + /** + */ + branding: GetOrganizations200ResponseOneOfInnerBranding; + /** + * Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. + * + */ + metadata: { [key: string]: any }; + /** + */ + enabled_connections: Array; +} +/** + * + */ +export interface PostOrganizations201ResponseEnabledConnectionsInner { + [key: string]: any | any; + /** + * ID of the connection. + * + */ + connection_id: string; + /** + * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. + * + */ + assign_membership_on_login: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button: boolean; +} /** * */ @@ -9486,6 +9554,11 @@ export interface PostOrganizationsRequestEnabledConnectionsInner { * */ assign_membership_on_login?: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button?: boolean; } /** *