@basis-theory/basis-theory-elements-interfaces
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -20,2 +20,23 @@ import type { Auditable } from './shared'; | ||
} | ||
export type { Tenant, UpdateTenant, TenantUsageReport, TokenReport, TokenTypeMetrics, }; | ||
interface TenantInvitation extends Auditable { | ||
id: string; | ||
tenantId: string; | ||
email: string; | ||
status: string; | ||
expiresAt: string; | ||
} | ||
declare type CreateTenantInvitation = Pick<TenantInvitation, 'email'>; | ||
interface User { | ||
id: string; | ||
email?: string; | ||
firstName?: string; | ||
lastName?: string; | ||
picture?: string; | ||
} | ||
interface TenantMember extends Auditable { | ||
id: string; | ||
tenantId: string; | ||
user: User; | ||
role: string; | ||
} | ||
export type { Tenant, UpdateTenant, TenantUsageReport, TokenReport, TokenTypeMetrics, TenantInvitation, CreateTenantInvitation, TenantMember, User, }; |
{ | ||
"name": "@basis-theory/basis-theory-elements-interfaces", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"repository": "https://github.com/Basis-Theory/basis-theory-elements-interfaces", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -1,3 +0,10 @@ | ||
import type { Tenant, TenantUsageReport, UpdateTenant } from '../../models'; | ||
import type { RequestOptions } from './shared'; | ||
import type { CreateTenantInvitation, Tenant, TenantInvitation, TenantMember, TenantUsageReport, UpdateTenant } from '../../models'; | ||
import type { PaginatedList, RequestOptions } from './shared'; | ||
import { PaginatedQuery } from './shared'; | ||
interface ListTenantInvitationsQuery extends PaginatedQuery { | ||
status?: 'PENDING' | 'EXPIRED'; | ||
} | ||
interface ListTenantMembersQuery extends PaginatedQuery { | ||
userId?: string | string[]; | ||
} | ||
interface Tenants { | ||
@@ -8,3 +15,10 @@ retrieve(options?: RequestOptions): Promise<Tenant>; | ||
retrieveUsageReport(options?: RequestOptions): Promise<TenantUsageReport>; | ||
createInvitation(model: CreateTenantInvitation, options?: RequestOptions): Promise<TenantInvitation>; | ||
resendInvitation(invitationId: string, options?: RequestOptions): Promise<TenantInvitation>; | ||
listInvitations(query?: ListTenantInvitationsQuery, options?: RequestOptions): Promise<PaginatedList<TenantInvitation>>; | ||
retrieveInvitation(invitationId: string, options?: RequestOptions): Promise<TenantInvitation>; | ||
deleteInvitation(invitationId: string, options?: RequestOptions): Promise<void>; | ||
listMembers(query?: ListTenantMembersQuery, options?: RequestOptions): Promise<PaginatedList<TenantMember>>; | ||
deleteMember(memberId: string, options?: RequestOptions): Promise<void>; | ||
} | ||
export type { Tenants }; | ||
export type { Tenants, ListTenantInvitationsQuery, ListTenantMembersQuery }; |
56681
1099