snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
This commit is contained in:
173
server/system/automation/reminders_handler.yaml
Normal file
173
server/system/automation/reminders_handler.yaml
Normal file
@@ -0,0 +1,173 @@
|
||||
imports:
|
||||
- github.com/cortezaproject/corteza/server/system/types
|
||||
- time
|
||||
|
||||
params:
|
||||
lookup: &lookup
|
||||
meta: { label: Lookup }
|
||||
required: true
|
||||
types:
|
||||
- { wf: ID, }
|
||||
- { wf: Reminder, suffix: res }
|
||||
reminder: &reminder
|
||||
types:
|
||||
- { wf: Reminder }
|
||||
rvReminder: &rvReminder
|
||||
wf: Reminder
|
||||
rvTotal: &rvTotal
|
||||
wf: UnsignedInteger
|
||||
filterParams: &filterParams
|
||||
resource:
|
||||
meta: { label: Resource }
|
||||
types:
|
||||
- { wf: String }
|
||||
assignedTo:
|
||||
meta: { label: Assigned to }
|
||||
types:
|
||||
- { wf: ID }
|
||||
excludeDismissed:
|
||||
meta: { label: Exclude dismissed }
|
||||
types:
|
||||
- { wf: Boolean }
|
||||
scheduledOnly:
|
||||
meta: { label: Scheduled only }
|
||||
types:
|
||||
- { wf: Boolean }
|
||||
sort:
|
||||
meta: { label: Sort }
|
||||
types:
|
||||
- { wf: String }
|
||||
limit:
|
||||
meta: { label: Limit }
|
||||
types:
|
||||
- { wf: UnsignedInteger }
|
||||
incTotal:
|
||||
meta: { label: Include total }
|
||||
types:
|
||||
- { wf: Boolean }
|
||||
pageCursor:
|
||||
meta: { label: Page cursor }
|
||||
types:
|
||||
- { wf: String }
|
||||
labels: &labels
|
||||
reminders: "step,workflow"
|
||||
functions:
|
||||
lookup:
|
||||
meta:
|
||||
short: Reminder lookup
|
||||
description: Find specific reminder by ID
|
||||
labels:
|
||||
<<: *labels
|
||||
params:
|
||||
lookup: *lookup
|
||||
results:
|
||||
reminder: *rvReminder
|
||||
search:
|
||||
meta:
|
||||
short: Reminders search
|
||||
description: Search reminders
|
||||
labels:
|
||||
<<: *labels
|
||||
params: *filterParams
|
||||
results:
|
||||
reminders:
|
||||
<<: *rvReminder
|
||||
isArray: true
|
||||
total: *rvTotal
|
||||
each:
|
||||
kind: iterator
|
||||
meta:
|
||||
short: Iterate reminders
|
||||
params: *filterParams
|
||||
results:
|
||||
reminder: *rvReminder
|
||||
total: *rvTotal
|
||||
create:
|
||||
meta:
|
||||
short: Reminder create
|
||||
labels:
|
||||
<<: *labels
|
||||
create: "step"
|
||||
params:
|
||||
resource:
|
||||
meta: { label: Resource }
|
||||
types:
|
||||
- { wf: String}
|
||||
assignedTo:
|
||||
meta: { label: Assigned to }
|
||||
types:
|
||||
- { wf: ID }
|
||||
assignedBy:
|
||||
meta: { label: Assigned by }
|
||||
types:
|
||||
- { wf: ID }
|
||||
remindAt:
|
||||
meta: { label: Remind at }
|
||||
types:
|
||||
- { wf: DateTime}
|
||||
required: true
|
||||
payload:
|
||||
meta: { label: Payload }
|
||||
types:
|
||||
- { wf: Bytes }
|
||||
results:
|
||||
reminder: *rvReminder
|
||||
update:
|
||||
meta:
|
||||
short: Reminder update
|
||||
labels:
|
||||
<<: *labels
|
||||
update: "step"
|
||||
params:
|
||||
lookup: *lookup
|
||||
resource:
|
||||
meta: { label: Resource }
|
||||
types:
|
||||
- { wf: String}
|
||||
assignedTo:
|
||||
meta: { label: Assigned to }
|
||||
types:
|
||||
- { wf: ID }
|
||||
assignedBy:
|
||||
meta: { label: Assigned by }
|
||||
types:
|
||||
- { wf: ID }
|
||||
remindAt:
|
||||
meta: { label: Remind at }
|
||||
types:
|
||||
- { wf: DateTime}
|
||||
payload:
|
||||
meta: { label: Payload }
|
||||
types:
|
||||
- { wf: Bytes }
|
||||
results:
|
||||
reminder: *rvReminder
|
||||
dismiss:
|
||||
meta:
|
||||
short: Dismiss reminder
|
||||
labels:
|
||||
<<: *labels
|
||||
dismiss: "step"
|
||||
params:
|
||||
lookup: *lookup
|
||||
snooze:
|
||||
meta:
|
||||
short: Snooze reminder
|
||||
labels:
|
||||
<<: *labels
|
||||
snooze: "step"
|
||||
params:
|
||||
lookup: *lookup
|
||||
remindAt:
|
||||
meta: { label: Remind at }
|
||||
types:
|
||||
- { wf: DateTime }
|
||||
required: true
|
||||
delete:
|
||||
meta:
|
||||
short: Reminder delete
|
||||
labels:
|
||||
<<: *labels
|
||||
delete: "step"
|
||||
params:
|
||||
lookup: *lookup
|
||||
Reference in New Issue
Block a user