@planningcenter/core-automations 0.2.0 → 0.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/dist/cjs/core-automations.esm.js +1 -1
- package/dist/cjs/core-automations.esm.js.map +1 -1
- package/dist/cjs/core-automations.js +1 -1
- package/dist/cjs/core-automations.js.map +1 -1
- package/dist/cjs/core-automations.modern.mjs +1 -1
- package/dist/cjs/core-automations.modern.mjs.map +1 -1
- package/dist/cjs/core-automations.umd.js +1 -1
- package/dist/cjs/core-automations.umd.js.map +1 -1
- package/dist/types/assets/svg_automations.d.ts +3 -0
- package/dist/types/assets/svg_automations.d.ts.map +1 -0
- package/dist/types/automations.d.ts +23 -0
- package/dist/types/automations.d.ts.map +1 -0
- package/dist/types/definition.d.ts +7 -0
- package/dist/types/definition.d.ts.map +1 -0
- package/dist/types/field.d.ts +11 -0
- package/dist/types/field.d.ts.map +1 -0
- package/dist/types/fields.d.ts +10 -0
- package/dist/types/fields.d.ts.map +1 -0
- package/dist/types/history.d.ts +8 -0
- package/dist/types/history.d.ts.map +1 -0
- package/dist/types/history_modal.d.ts +8 -0
- package/dist/types/history_modal.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/new_automation.d.ts +13 -0
- package/dist/types/new_automation.d.ts.map +1 -0
- package/dist/types/new_automation_modal.d.ts +8 -0
- package/dist/types/new_automation_modal.d.ts.map +1 -0
- package/dist/types/src/assets/svg_automations.d.ts +3 -0
- package/dist/types/src/assets/svg_automations.d.ts.map +1 -0
- package/dist/types/src/automations.d.ts +21 -17
- package/dist/types/src/automations.d.ts.map +1 -1
- package/dist/types/src/definition.d.ts +7 -0
- package/dist/types/src/definition.d.ts.map +1 -0
- package/dist/types/src/field.d.ts +17 -0
- package/dist/types/src/field.d.ts.map +1 -0
- package/dist/types/src/fields.d.ts +15 -0
- package/dist/types/src/fields.d.ts.map +1 -0
- package/dist/types/src/history.d.ts +8 -0
- package/dist/types/src/history.d.ts.map +1 -0
- package/dist/types/src/history_modal.d.ts +8 -0
- package/dist/types/src/history_modal.d.ts.map +1 -0
- package/dist/types/src/new_automation.d.ts +13 -0
- package/dist/types/src/new_automation.d.ts.map +1 -0
- package/dist/types/src/new_automation_modal.d.ts +2 -2
- package/dist/types/src/new_automation_modal.d.ts.map +1 -1
- package/dist/types/src/utils/alerts.d.ts +7 -0
- package/dist/types/src/utils/alerts.d.ts.map +1 -0
- package/dist/types/src/utils/theme.d.ts +22 -0
- package/dist/types/src/utils/theme.d.ts.map +1 -0
- package/dist/types/src/utils/utils.d.ts +17 -0
- package/dist/types/src/utils/utils.d.ts.map +1 -0
- package/dist/types/tests/init.test.d.ts +1 -0
- package/dist/types/tests/init.test.d.ts.map +1 -0
- package/dist/types/utils/alerts.d.ts +7 -0
- package/dist/types/utils/alerts.d.ts.map +1 -0
- package/dist/types/utils/theme.d.ts +22 -0
- package/dist/types/utils/theme.d.ts.map +1 -0
- package/dist/types/utils/utils.d.ts +17 -0
- package/dist/types/utils/utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -33
package/README.md
CHANGED
|
@@ -28,9 +28,14 @@ import { Automations } from "@planningcenter/core-automations"
|
|
|
28
28
|
currentPersonId={123456789}
|
|
29
29
|
defaultApp="people"
|
|
30
30
|
theme={theme} // Tapestry-React theme object
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
trigger={{
|
|
32
|
+
conditions: { data: { relationships: { form: { data: { id: form.id } } } } },
|
|
33
|
+
events: [{
|
|
34
|
+
description: 'Submits this form',
|
|
35
|
+
name: 'people.v2.events.form_submission.created',
|
|
36
|
+
}],
|
|
37
|
+
resource: "vzfnx3tc87lx1c1d8Ak1clkrwqZfnA294t...",
|
|
38
|
+
}}
|
|
34
39
|
/>
|
|
35
40
|
```
|
|
36
41
|
|
|
@@ -46,9 +51,15 @@ import { Automations } from "@planningcenter/core-automations"
|
|
|
46
51
|
}}
|
|
47
52
|
- `defaultApp` (string): Which app should be selected by default?
|
|
48
53
|
- `theme` (object) optional: Accepts a [Tapestry-React theme object](https://planningcenter.github.io/tapestry-react/theming)
|
|
49
|
-
- `
|
|
50
|
-
- `
|
|
51
|
-
- `
|
|
54
|
+
- `trigger` (object):
|
|
55
|
+
- `resource` (string): An encrypted trigger resource
|
|
56
|
+
- `conditions` (object): The specific conditions for triggering this automation
|
|
57
|
+
- `events` (array[object]): An array of objects describing the possible trigger events (created/deleted/etc)
|
|
58
|
+
- `name` (string): The event name (matches the webhooks message `routing_key`)
|
|
59
|
+
- `description` (string): Human-readable description of this event (the words after "When a person...", e.g. "Joins this group")
|
|
60
|
+
- `afterCreateOptions` (object) optional: Options for performing an action after the automation is created:
|
|
61
|
+
- `label` (string): Description of the action to perform
|
|
62
|
+
- `onConfirm` (function): The function that will perform after the automation is created
|
|
52
63
|
|
|
53
64
|
### Theming
|
|
54
65
|
|