@pushwoosh/rpc-v2-http-api-data 0.2.238 → 0.2.239

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/data.js CHANGED
@@ -10659,6 +10659,12 @@ export const data = {
10659
10659
  "method": "post",
10660
10660
  "path": "/api/email_suppressions:reactivate"
10661
10661
  },
10662
+ "ListEmailSuppressions": {
10663
+ "request": "pushwoosh.rpc_v2.email_suppressions.ListEmailSuppressionsRequest",
10664
+ "response": "pushwoosh.rpc_v2.email_suppressions.ListEmailSuppressionsResponse",
10665
+ "method": "get",
10666
+ "path": "/api/email_suppressions"
10667
+ },
10662
10668
  "ListEmailReactivations": {
10663
10669
  "request": "pushwoosh.rpc_v2.email_suppressions.ListEmailReactivationsRequest",
10664
10670
  "response": "pushwoosh.rpc_v2.email_suppressions.ListEmailReactivationsResponse",
@@ -10667,6 +10673,73 @@ export const data = {
10667
10673
  }
10668
10674
  }
10669
10675
  },
10676
+ "pushwoosh.rpc_v2.email_suppressions.ListEmailSuppressionsRequest": {
10677
+ "type": "I",
10678
+ "fields": {
10679
+ "application": {
10680
+ "type": "string"
10681
+ },
10682
+ "email": {
10683
+ "type": "string"
10684
+ },
10685
+ "source": {
10686
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionSource"
10687
+ },
10688
+ "dateFrom": {
10689
+ "type": "Date"
10690
+ },
10691
+ "dateTo": {
10692
+ "type": "Date"
10693
+ },
10694
+ "recordedInApplication": {
10695
+ "type": "string"
10696
+ },
10697
+ "limit": {
10698
+ "type": "number"
10699
+ },
10700
+ "offset": {
10701
+ "type": "number"
10702
+ }
10703
+ }
10704
+ },
10705
+ "pushwoosh.rpc_v2.email_suppressions.ListEmailSuppressionsResponse": {
10706
+ "type": "I",
10707
+ "fields": {
10708
+ "suppressions": {
10709
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionEntry",
10710
+ "array": true
10711
+ },
10712
+ "total": {
10713
+ "type": "number"
10714
+ }
10715
+ }
10716
+ },
10717
+ "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionEntry": {
10718
+ "type": "I",
10719
+ "fields": {
10720
+ "email": {
10721
+ "type": "string"
10722
+ },
10723
+ "source": {
10724
+ "type": "pushwoosh.rpc_v2.email_suppressions.EmailSuppressionSource"
10725
+ },
10726
+ "occurredAt": {
10727
+ "type": "Date"
10728
+ },
10729
+ "reason": {
10730
+ "type": "string"
10731
+ },
10732
+ "smtpCode": {
10733
+ "type": "string"
10734
+ },
10735
+ "diagnosticCode": {
10736
+ "type": "string"
10737
+ },
10738
+ "application": {
10739
+ "type": "string"
10740
+ }
10741
+ }
10742
+ },
10670
10743
  "pushwoosh.rpc_v2.email_suppressions.ReactivateEmailRequest": {
10671
10744
  "type": "I",
10672
10745
  "fields": {
@@ -1,15 +1,48 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type EmailSuppressionsService_GetEmailSuppression = RpcMethod<GetEmailSuppressionRequest, GetEmailSuppressionResponse>;
3
3
  export type EmailSuppressionsService_ReactivateEmail = RpcMethod<ReactivateEmailRequest, ReactivateEmailResponse>;
4
+ export type EmailSuppressionsService_ListEmailSuppressions = RpcMethod<ListEmailSuppressionsRequest, ListEmailSuppressionsResponse>;
4
5
  export type EmailSuppressionsService_ListEmailReactivations = RpcMethod<ListEmailReactivationsRequest, ListEmailReactivationsResponse>;
5
6
  export interface EmailSuppressionsService {
6
7
  /** Returns whether an email address is suppressed (spam complaint or hard bounce) for the application's account, with the source, date and the provider's verbatim reason including SMTP and diagnostic codes. Use to explain why emails to a subscriber are not going out while the profile still looks subscribed. */
7
8
  GetEmailSuppression: EmailSuppressionsService_GetEmailSuppression;
8
9
  /** Takes an email address off the suppression lists for the account: removes the complaint and hard-bounce records, clears the Bounced Email tag and re-registers the email device when the complaint had unregistered it. Requires the ManageEmailSuppression right, and consent_confirmed for an address suppressed by a spam complaint. */
9
10
  ReactivateEmail: EmailSuppressionsService_ReactivateEmail;
11
+ /** Lists the account's suppressed email addresses with the source, date and provider reason, newest first. Filter by source, by the date the suppression happened, by the application it was recorded in, or look one exact address up — the support scenario "which list is this address on". */
12
+ ListEmailSuppressions: EmailSuppressionsService_ListEmailSuppressions;
10
13
  /** Returns the journal of suppression removals for the account — who reactivated which address, from which list, with what comment and through which channel. Use to prove to a mailbox provider that returns were deliberate. */
11
14
  ListEmailReactivations: EmailSuppressionsService_ListEmailReactivations;
12
15
  }
16
+ export type ListEmailSuppressionsRequest = {
17
+ /** Pushwoosh application code (XXXXX-XXXXX) the caller works from; the list itself is account-wide. */
18
+ application?: string;
19
+ /** Exact address filter, matched case-insensitively; empty lists everything. */
20
+ email?: string;
21
+ /** Source filter; unspecified returns both lists merged by date. */
22
+ source?: EmailSuppressionSource;
23
+ dateFrom?: Date;
24
+ dateTo?: Date;
25
+ /** Application code the suppression was recorded in; empty covers the whole account. */
26
+ recordedInApplication?: string;
27
+ /** Page size, 50 by default, 500 at most. */
28
+ limit?: number;
29
+ offset?: number;
30
+ };
31
+ export type ListEmailSuppressionsResponse = {
32
+ suppressions: EmailSuppressionEntry[];
33
+ total: number;
34
+ };
35
+ export type EmailSuppressionEntry = {
36
+ email: string;
37
+ source: EmailSuppressionSource;
38
+ occurredAt: Date;
39
+ /** Human-readable reason extracted from the provider feedback. */
40
+ reason: string;
41
+ smtpCode: string;
42
+ diagnosticCode: string;
43
+ /** Application the suppression was recorded in; empty when that application is gone. */
44
+ application: string;
45
+ };
13
46
  export type ReactivateEmailRequest = {
14
47
  /** Pushwoosh application code (XXXXX-XXXXX) the reactivation is performed from. */
15
48
  application?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.238",
3
+ "version": "0.2.239",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",