dymo-api 1.0.51 → 1.0.53

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.
@@ -73,7 +73,7 @@ exports.isValidData = isValidData;
73
73
  *
74
74
  * @param token - A string or null representing the authentication token. Must not be null.
75
75
  * @param data - An object adhering to the SendEmail interface, containing the following fields:
76
- * 'from', 'to', 'subject', 'html' or 'react', and optionally 'attachments', 'options', 'priority', and 'composeTailwindClasses'.
76
+ * 'from', 'to', 'subject', 'html' or 'react', and optionally 'attachments', 'options', 'priority', 'waitToResponse', and 'composeTailwindClasses'.
77
77
  *
78
78
  * @returns A promise that resolves to the response data from the sending endpoint.
79
79
  *
@@ -173,6 +173,7 @@ class DymoAPI {
173
173
  * @param {React.ReactElement} [data.react] - The React component to be rendered as the email content.
174
174
  * @param {Object} [data.options] - Content configuration options.
175
175
  * @param {"high" | "normal" | "low" | undefined} [data.options.priority="normal"] - Email priority (default: normal).
176
+ * @param {boolean} [data.options.waitToResponse=true] - Wait until the email is sent (default: true).
176
177
  * @param {boolean} [data.options.composeTailwindClasses] - Whether to compose tailwind classes.
177
178
  * @param {Attachment[]} [data.attachments] - An array of attachments to be included in the email.
178
179
  * @param {string} data.attachments[].filename - The name of the attached file.
@@ -73,7 +73,7 @@ exports.isValidData = isValidData;
73
73
  *
74
74
  * @param token - A string or null representing the authentication token. Must not be null.
75
75
  * @param data - An object adhering to the SendEmail interface, containing the following fields:
76
- * 'from', 'to', 'subject', 'html' or 'react', and optionally 'attachments', 'options', 'priority', and 'composeTailwindClasses'.
76
+ * 'from', 'to', 'subject', 'html' or 'react', and optionally 'attachments', 'options', 'priority', 'waitToResponse', and 'composeTailwindClasses'.
77
77
  *
78
78
  * @returns A promise that resolves to the response data from the sending endpoint.
79
79
  *
@@ -173,6 +173,7 @@ class DymoAPI {
173
173
  * @param {React.ReactElement} [data.react] - The React component to be rendered as the email content.
174
174
  * @param {Object} [data.options] - Content configuration options.
175
175
  * @param {"high" | "normal" | "low" | undefined} [data.options.priority="normal"] - Email priority (default: normal).
176
+ * @param {boolean} [data.options.waitToResponse=true] - Wait until the email is sent (default: true).
176
177
  * @param {boolean} [data.options.composeTailwindClasses] - Whether to compose tailwind classes.
177
178
  * @param {Attachment[]} [data.attachments] - An array of attachments to be included in the email.
178
179
  * @param {string} data.attachments[].filename - The name of the attached file.
@@ -17,7 +17,7 @@ export declare const isValidData: (token: string | null, data: Interfaces.Valida
17
17
  *
18
18
  * @param token - A string or null representing the authentication token. Must not be null.
19
19
  * @param data - An object adhering to the SendEmail interface, containing the following fields:
20
- * 'from', 'to', 'subject', 'html' or 'react', and optionally 'attachments', 'options', 'priority', and 'composeTailwindClasses'.
20
+ * 'from', 'to', 'subject', 'html' or 'react', and optionally 'attachments', 'options', 'priority', 'waitToResponse', and 'composeTailwindClasses'.
21
21
  *
22
22
  * @returns A promise that resolves to the response data from the sending endpoint.
23
23
  *
@@ -104,6 +104,7 @@ declare class DymoAPI {
104
104
  * @param {React.ReactElement} [data.react] - The React component to be rendered as the email content.
105
105
  * @param {Object} [data.options] - Content configuration options.
106
106
  * @param {"high" | "normal" | "low" | undefined} [data.options.priority="normal"] - Email priority (default: normal).
107
+ * @param {boolean} [data.options.waitToResponse=true] - Wait until the email is sent (default: true).
107
108
  * @param {boolean} [data.options.composeTailwindClasses] - Whether to compose tailwind classes.
108
109
  * @param {Attachment[]} [data.attachments] - An array of attachments to be included in the email.
109
110
  * @param {string} data.attachments[].filename - The name of the attached file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",