@pushwoosh/rpc-v2-http-api-data 0.2.83 → 0.2.85
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/accounts.d.ts +7 -1
- package/data.js +4 -0
- package/package.json +1 -1
package/accounts.d.ts
CHANGED
|
@@ -266,7 +266,7 @@ export type EmailTemplatesService_Clone = RpcMethod<CloneEmailPresetsRequest, Cl
|
|
|
266
266
|
export interface EmailTemplatesService {
|
|
267
267
|
/** Creates a new email template (editor content plus a connected email preset) in an application. Use to author a reusable email; returns the generated template code. */
|
|
268
268
|
Create: EmailTemplatesService_Create;
|
|
269
|
-
/** Returns a single email template by its template code, including sender info, per-locale subjects and the full editor content. Use after list_email_templates to inspect one template's content. */
|
|
269
|
+
/** Returns a single email template by its template code, including sender info, per-locale subjects and the full editor content. Use after list_email_templates to inspect one template's content. Pass include_html false when you only need the structure — it drops the rendered html, which is more than half the response. */
|
|
270
270
|
Get: EmailTemplatesService_Get;
|
|
271
271
|
/** Lists an application's email templates (metadata only, no content) with paging, ordering and filtering by name, label or category. Use to browse templates or find a template code before fetching or editing one. */
|
|
272
272
|
List: EmailTemplatesService_List;
|
|
@@ -419,6 +419,12 @@ export type EmailContent = {
|
|
|
419
419
|
};
|
|
420
420
|
export type GetEmailTemplateRequest = {
|
|
421
421
|
code?: string;
|
|
422
|
+
/**
|
|
423
|
+
* Whether to return the rendered html alongside the editor content. Unset means true, so
|
|
424
|
+
* existing clients are unaffected; set false to skip it — the html is over half the payload
|
|
425
|
+
* and the editor content already describes the template.
|
|
426
|
+
*/
|
|
427
|
+
includeHtml?: boolean;
|
|
422
428
|
};
|
|
423
429
|
export type GetEmailTemplateResponse = {
|
|
424
430
|
emailTemplate: EmailTemplate;
|
package/data.js
CHANGED