verae-zapier-middleware/store/tenants¶
Package: verae-zapier-middleware
Source: packages/verae-zapier-middleware/src/store/tenants.js
Lines: 138
What this module is¶
Implementation module in verae-zapier-middleware. The tables below are extracted from the source (signatures + JSDoc).
Exports¶
getTenant, getTenantByApiKey, listTenants, upsertTenant, createTenant, resolveLimits
Types / interfaces / classes¶
None extracted.
Functions¶
Name |
Parameters |
Param types (JSDoc) |
Returns |
Calls (same file / helpers) |
|---|---|---|---|---|
|
|
tenantId: |
`Tenant |
null` |
|
|
apiKey: |
`Tenant |
null` |
|
|
— |
|
see Call graph |
|
|
tenant: |
|
see Call graph |
|
`{ |
|||
id, |
||||
name, |
||||
plan = ‘free’, |
||||
veraeUsername, |
||||
veraePassword, |
||||
contract = null, |
||||
apiKey = generateApiKey(` |
params: |
null |
|
see Call graph |
|
|
tenant: |
`{ |
timestamps: number|null,
verifications: number|null,
batch: boolean,
batchMaxItems: number|null,
requestsPerMinute: number,
allowOverage: boolean,
overageRates: object
` — } | see Call graph |
Methods (class / object)¶
Name |
Parameters |
|---|---|
|
|
|
|
What it imports / requires¶
./db.js../lib/tokens.js../config.js../debug/logger.js
Call graph (identifiers invoked)¶
createDebugger, getTenant, getStore, getTenantByApiKey, listTenants, values, upsertTenant, persist, debug, createTenant, generateApiKey, toISOString, info, tenant, resolveLimits
Each identifier is a call site in this file. Follow the import list to see the defining module; open that module’s MD for parameter and return types.
Return values (how to read this)¶
HTTP route handlers return Express
res.json(...)bodies (see route docs).Zapier
performfunctions return a single object (creates) or an array (triggers/searches).Pricing functions return integer cents on
Quote.totalCents.