@sendery/sdk 0.1.5 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6
4
+
5
+ - See the GitHub release notes for this version.
6
+
3
7
  ## 0.1.5
4
8
 
5
- - Register and list event definitions with readable data fields and recipient roles for the visual trigger builder.
9
+ - Register and list event definitions with readable data fields and recipient roles for the visual workflow builder.
6
10
 
7
11
  - Add application events, stable-key retries, event status lookup, and object-data deletion. Framework integrations use the project client.
8
12
 
package/README.md CHANGED
@@ -133,7 +133,7 @@ Learn how to [retry emails without duplicate sends](https://sendery.co/en/docs/i
133
133
 
134
134
  [MIT](LICENSE).
135
135
 
136
- ## Events and triggers
136
+ ## Events and workflows
137
137
 
138
138
  Send events such as account signups or orders from your app. Your team can use them to automate emails in Sendery, choosing the content, recipients, and timing. Available on all plans.
139
139
 
@@ -147,4 +147,4 @@ const receipt = await sendery.event({
147
147
  }).retry().send();
148
148
  ```
149
149
 
150
- Retries reuse the same event data and idempotency key. To retry across jobs or process restarts, supply and persist your own key. A successful response confirms that Sendery accepted the event. [Learn what you can automate with triggers](https://sendery.co/en/docs/build-trigger).
150
+ Retries reuse the same event data and idempotency key. To retry across jobs or process restarts, supply and persist your own key. A successful response confirms that Sendery accepted the event. [Learn what you can automate with workflows](https://sendery.co/en/docs/build-workflow).
package/dist/index.d.ts CHANGED
@@ -72,11 +72,11 @@ export interface EventInput {
72
72
  export interface EventReceipt extends SendReceipt {
73
73
  name?: string;
74
74
  received_at?: string;
75
- matched_triggers?: number;
75
+ matched_workflows?: number;
76
76
  environment?: "sandbox" | "live";
77
77
  runs?: {
78
78
  id: string;
79
- trigger_id: number;
79
+ workflow_id: number;
80
80
  status: string;
81
81
  due_at: string | null;
82
82
  error_code: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendery/sdk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "Server-side Sendery template email SDK for JavaScript and TypeScript",
6
6
  "license": "MIT",