@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 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
@@ -8099,6 +8099,10 @@ export const data = {
8099
8099
  "fields": {
8100
8100
  "code": {
8101
8101
  "type": "string"
8102
+ },
8103
+ "includeHtml": {
8104
+ "type": "boolean",
8105
+ "optional": true
8102
8106
  }
8103
8107
  }
8104
8108
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",