mirror of https://github.com/Budibase/budibase.git
12 changed files with 99 additions and 139 deletions
@ -1,61 +0,0 @@ |
|||
exports.SEPARATOR = "_" |
|||
exports.UNICODE_MAX = "\ufff0" |
|||
|
|||
const PRE_APP = "app" |
|||
const PRE_DEV = "dev" |
|||
|
|||
/** |
|||
* Can be used to create a few different forms of querying a view. |
|||
*/ |
|||
exports.ViewModes = { |
|||
ALL: "all", |
|||
AUTOMATION: "auto", |
|||
STATUS: "status", |
|||
} |
|||
|
|||
exports.ViewNames = { |
|||
USER_BY_EMAIL: "by_email", |
|||
BY_API_KEY: "by_api_key", |
|||
USER_BY_BUILDERS: "by_builders", |
|||
LINK: "by_link", |
|||
ROUTING: "screen_routes", |
|||
AUTO_LOGS: "auto_log", |
|||
} |
|||
|
|||
exports.DocumentTypes = { |
|||
USER: "us", |
|||
WORKSPACE: "workspace", |
|||
CONFIG: "config", |
|||
TEMPLATE: "template", |
|||
APP: PRE_APP, |
|||
DEV: PRE_DEV, |
|||
APP_DEV: `${PRE_APP}${exports.SEPARATOR}${PRE_DEV}`, |
|||
APP_METADATA: `${PRE_APP}${exports.SEPARATOR}metadata`, |
|||
ROLE: "role", |
|||
MIGRATIONS: "migrations", |
|||
DEV_INFO: "devinfo", |
|||
AUTOMATION_LOG: "log_au", |
|||
} |
|||
|
|||
exports.StaticDatabases = { |
|||
GLOBAL: { |
|||
name: "global-db", |
|||
docs: { |
|||
apiKeys: "apikeys", |
|||
usageQuota: "usage_quota", |
|||
licenseInfo: "license_info", |
|||
}, |
|||
}, |
|||
// contains information about tenancy and so on
|
|||
PLATFORM_INFO: { |
|||
name: "global-info", |
|||
docs: { |
|||
tenants: "tenants", |
|||
install: "install", |
|||
}, |
|||
}, |
|||
} |
|||
|
|||
exports.APP_PREFIX = exports.DocumentTypes.APP + exports.SEPARATOR |
|||
exports.APP_DEV = exports.APP_DEV_PREFIX = |
|||
exports.DocumentTypes.APP_DEV + exports.SEPARATOR |
|||
@ -0,0 +1,58 @@ |
|||
export const SEPARATOR = "_" |
|||
export const UNICODE_MAX = "\ufff0" |
|||
|
|||
/** |
|||
* Can be used to create a few different forms of querying a view. |
|||
*/ |
|||
export enum AutomationViewModes { |
|||
ALL = "all", |
|||
AUTOMATION = "automation", |
|||
STATUS = "status", |
|||
} |
|||
|
|||
export enum ViewNames { |
|||
USER_BY_EMAIL = "by_email", |
|||
BY_API_KEY = "by_api_key", |
|||
USER_BY_BUILDERS = "by_builders", |
|||
LINK = "by_link", |
|||
ROUTING = "screen_routes", |
|||
AUTOMATION_LOGS = "automation_logs", |
|||
} |
|||
|
|||
export enum DocumentTypes { |
|||
USER = "us", |
|||
WORKSPACE = "workspace", |
|||
CONFIG = "config", |
|||
TEMPLATE = "template", |
|||
APP = "app", |
|||
DEV = "dev", |
|||
APP_DEV = "app_dev", |
|||
APP_METADATA = "app_metadata", |
|||
ROLE = "role", |
|||
MIGRATIONS = "migrations", |
|||
DEV_INFO = "devinfo", |
|||
AUTOMATION_LOG = "log_au", |
|||
} |
|||
|
|||
export const StaticDatabases = { |
|||
GLOBAL: { |
|||
name: "global-db", |
|||
docs: { |
|||
apiKeys: "apikeys", |
|||
usageQuota: "usage_quota", |
|||
licenseInfo: "license_info", |
|||
}, |
|||
}, |
|||
// contains information about tenancy and so on
|
|||
PLATFORM_INFO: { |
|||
name: "global-info", |
|||
docs: { |
|||
tenants: "tenants", |
|||
install: "install", |
|||
}, |
|||
}, |
|||
} |
|||
|
|||
export const APP_PREFIX = exports.DocumentTypes.APP + exports.SEPARATOR |
|||
export const APP_DEV = exports.DocumentTypes.APP_DEV + exports.SEPARATOR |
|||
export const APP_DEV_PREFIX = APP_DEV |
|||
@ -1,32 +0,0 @@ |
|||
export enum AutomationStatus { |
|||
SUCCESS = "success", |
|||
ERROR = "error", |
|||
STOPPED = "stopped", |
|||
} |
|||
|
|||
export interface AutomationResults { |
|||
automationId: string |
|||
status: string |
|||
trigger?: any |
|||
steps: { |
|||
stepId: string |
|||
inputs: { |
|||
[key: string]: any |
|||
} |
|||
outputs: { |
|||
[key: string]: any |
|||
} |
|||
}[] |
|||
} |
|||
|
|||
export interface AutomationLog extends AutomationResults { |
|||
createdAt: string |
|||
_id: string |
|||
_rev: string |
|||
} |
|||
|
|||
export interface AutomationLogPage { |
|||
data: AutomationLog[] |
|||
hasNextPage: boolean |
|||
nextPage?: string |
|||
} |
|||
Loading…
Reference in new issue