External module "src/crud/organization"
Functions
Const checkDomainAvailability
- checkDomainAvailability(username: string): Promise<boolean>
-
Parameters
Returns Promise<boolean>
Const createApiKey
- createApiKey(apiKey: ApiKey): Promise<any>
-
Parameters
Returns Promise<any>
Const createDomain
-
Parameters
Const createOrganization
- createOrganization(organization: Organization): Promise<any>
-
Parameters
Returns Promise<any>
Const createWebhook
-
Parameters
Const deleteAllOrganizationMemberships
- deleteAllOrganizationMemberships(organizationId: string): Promise<any>
-
Parameters
Returns Promise<any>
Const deleteApiKey
- deleteApiKey(organizationId: string, apiKeyId: string): Promise<any>
-
Parameters
-
organizationId: string
-
apiKeyId: string
Returns Promise<any>
Const deleteDomain
- deleteDomain(organizationId: string, domainId: string): Promise<any>
-
Parameters
-
organizationId: string
-
domainId: string
Returns Promise<any>
Const deleteOrganization
- deleteOrganization(id: string): Promise<any>
-
Parameters
Returns Promise<any>
Const deleteOrganizationMembership
- deleteOrganizationMembership(organizationId: string, id: string): Promise<any>
-
Parameters
-
organizationId: string
-
id: string
Returns Promise<any>
Const deleteWebhook
- deleteWebhook(organizationId: string, webhookId: string): Promise<any>
-
Parameters
-
organizationId: string
-
webhookId: string
Returns Promise<any>
Const getAllOrganizations
-
Const getApiKey
- getApiKey(organizationId: string, apiKeyId: string): Promise<ApiKey>
-
Parameters
-
organizationId: string
-
apiKeyId: string
Returns Promise<ApiKey>
Const getApiKeyLogs
- getApiKeyLogs(organizationId: string, apiKeyId: string, query: KeyValue): Promise<any>
-
Parameters
-
organizationId: string
-
apiKeyId: string
-
Returns Promise<any>
Const getDomain
- getDomain(organizationId: string, domainId: string): Promise<Domain>
-
Parameters
-
organizationId: string
-
domainId: string
Returns Promise<Domain>
Const getDomainByDomainName
- getDomainByDomainName(domain: string): Promise<Domain>
-
Parameters
Returns Promise<Domain>
Const getOrganization
-
Parameters
Const getOrganizationApiKeys
- getOrganizationApiKeys(organizationId: string, query: KeyValue): Promise<object>
-
Parameters
Returns Promise<object>
Const getOrganizationDomains
- getOrganizationDomains(organizationId: string, query: KeyValue): Promise<object>
-
Parameters
Returns Promise<object>
Const getOrganizationEventWebhooks
- getOrganizationEventWebhooks(organizationId: string, event: Webhooks): Promise<Webhook[]>
-
Parameters
Returns Promise<Webhook[]>
Const getOrganizationIdFromUsername
- getOrganizationIdFromUsername(username: string): Promise<string>
-
Parameters
Returns Promise<string>
Const getOrganizationMembership
- getOrganizationMembership(organizationId: string, id: string): Promise<Membership>
-
Parameters
-
organizationId: string
-
id: string
Const getOrganizationMembershipDetailed
- getOrganizationMembershipDetailed(organizationId: string, id: string): Promise<any>
-
Parameters
-
organizationId: string
-
id: string
Returns Promise<any>
Const getOrganizationMemberships
- getOrganizationMemberships(organizationId: string, query?: KeyValue): Promise<any>
-
Parameters
Returns Promise<any>
Const getOrganizationWebhooks
- getOrganizationWebhooks(organizationId: string, query: KeyValue): Promise<object>
-
Parameters
Returns Promise<object>
Const getWebhook
- getWebhook(organizationId: string, webhookId: string): Promise<Webhook>
-
Parameters
-
organizationId: string
-
webhookId: string
Returns Promise<Webhook>
Const updateApiKey
- updateApiKey(organizationId: string, apiKeyId: string, data: KeyValue): Promise<any>
-
Parameters
-
organizationId: string
-
apiKeyId: string
-
Returns Promise<any>
Const updateDomain
- updateDomain(organizationId: string, domainId: string, data: KeyValue): Promise<any>
-
Parameters
-
organizationId: string
-
domainId: string
-
Returns Promise<any>
Const updateOrganization
- updateOrganization(id: string, organization: KeyValue): Promise<any>
-
Parameters
Returns Promise<any>
Const updateOrganizationMembership
- updateOrganizationMembership(organizationId: string, id: string, membership: KeyValue): Promise<any>
-
Parameters
-
organizationId: string
-
id: string
-
Returns Promise<any>
Const updateOrganizationProfilePicture
- updateOrganizationProfilePicture(organizationId: string): Promise<any>
-
Parameters
Returns Promise<any>
Const updateWebhook
- updateWebhook(organizationId: string, webhookId: string, data: KeyValue): Promise<any>
-
Parameters
-
organizationId: string
-
webhookId: string
-
Returns Promise<any>
Get a user by their username