@pushwoosh/rpc-v2-http-api-data 0.2.116 → 0.2.118

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.
Files changed (3) hide show
  1. package/accounts.d.ts +32 -0
  2. package/data.js +65 -0
  3. package/package.json +1 -1
package/accounts.d.ts CHANGED
@@ -493,3 +493,35 @@ export type MigrateRequest = {
493
493
  export type MigrateResponse = {
494
494
  code: string;
495
495
  };
496
+ export type RebakeEmailTemplatesRequest = {
497
+ /** Template codes to process; empty walks every smartcards template on the share. */
498
+ codes: string[];
499
+ /** Report what would change and write nothing. */
500
+ dryRun: boolean;
501
+ /** Templates per call. 0 = 100, capped at 500 — a render is a network call. */
502
+ limit: number;
503
+ /** Resume point: only codes strictly greater than this are considered. */
504
+ afterCode: string;
505
+ };
506
+ export type RebakeEmailTemplatesResponse = {
507
+ scanned: number;
508
+ /** Templates rewritten. A dry run writes nothing and counts into would_change. */
509
+ changed: number;
510
+ failed: number;
511
+ /** Last code considered; pass it as after_code to continue the walk. */
512
+ lastCode: string;
513
+ /** Candidates left after this page. */
514
+ remaining: number;
515
+ /** Only the templates that changed or failed; unchanged ones are counted, not listed. */
516
+ results: RebakeEmailTemplateResult[];
517
+ /** Templates a dry run would have rewritten. */
518
+ wouldChange: number;
519
+ };
520
+ export type RebakeEmailTemplateResult = {
521
+ code: string;
522
+ /** changed | would_change | failed */
523
+ status: string;
524
+ error: string;
525
+ htmlBytesBefore: number;
526
+ htmlBytesAfter: number;
527
+ };
package/data.js CHANGED
@@ -8296,6 +8296,71 @@ export const data = {
8296
8296
  }
8297
8297
  }
8298
8298
  },
8299
+ "pushwoosh.rpc_v2.accounts.RebakeEmailTemplatesRequest": {
8300
+ "type": "I",
8301
+ "fields": {
8302
+ "codes": {
8303
+ "type": "string",
8304
+ "array": true
8305
+ },
8306
+ "dryRun": {
8307
+ "type": "boolean"
8308
+ },
8309
+ "limit": {
8310
+ "type": "number"
8311
+ },
8312
+ "afterCode": {
8313
+ "type": "string"
8314
+ }
8315
+ }
8316
+ },
8317
+ "pushwoosh.rpc_v2.accounts.RebakeEmailTemplatesResponse": {
8318
+ "type": "I",
8319
+ "fields": {
8320
+ "scanned": {
8321
+ "type": "number"
8322
+ },
8323
+ "changed": {
8324
+ "type": "number"
8325
+ },
8326
+ "failed": {
8327
+ "type": "number"
8328
+ },
8329
+ "lastCode": {
8330
+ "type": "string"
8331
+ },
8332
+ "remaining": {
8333
+ "type": "number"
8334
+ },
8335
+ "results": {
8336
+ "type": "pushwoosh.rpc_v2.accounts.RebakeEmailTemplateResult",
8337
+ "array": true
8338
+ },
8339
+ "wouldChange": {
8340
+ "type": "number"
8341
+ }
8342
+ }
8343
+ },
8344
+ "pushwoosh.rpc_v2.accounts.RebakeEmailTemplateResult": {
8345
+ "type": "I",
8346
+ "fields": {
8347
+ "code": {
8348
+ "type": "string"
8349
+ },
8350
+ "status": {
8351
+ "type": "string"
8352
+ },
8353
+ "error": {
8354
+ "type": "string"
8355
+ },
8356
+ "htmlBytesBefore": {
8357
+ "type": "number"
8358
+ },
8359
+ "htmlBytesAfter": {
8360
+ "type": "number"
8361
+ }
8362
+ }
8363
+ },
8299
8364
  "pushwoosh.rpc_v2.emails_configurations.EmailsConfigurationsService": {
8300
8365
  "type": "S",
8301
8366
  "key": "emailsConfigurations",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.116",
3
+ "version": "0.2.118",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",