@pushwoosh/rpc-v2-http-api-data 0.2.272 → 0.2.274

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/data.js +18 -0
  2. package/email_ads.d.ts +16 -0
  3. package/package.json +1 -1
package/data.js CHANGED
@@ -10892,6 +10892,12 @@ export const data = {
10892
10892
  },
10893
10893
  "sendsCount": {
10894
10894
  "type": "number"
10895
+ },
10896
+ "allowEmail": {
10897
+ "type": "boolean"
10898
+ },
10899
+ "allowPush": {
10900
+ "type": "boolean"
10895
10901
  }
10896
10902
  }
10897
10903
  },
@@ -11007,6 +11013,12 @@ export const data = {
11007
11013
  },
11008
11014
  "sendsLimit": {
11009
11015
  "type": "number"
11016
+ },
11017
+ "allowEmail": {
11018
+ "type": "boolean"
11019
+ },
11020
+ "allowPush": {
11021
+ "type": "boolean"
11010
11022
  }
11011
11023
  }
11012
11024
  },
@@ -11044,6 +11056,12 @@ export const data = {
11044
11056
  },
11045
11057
  "sendsLimit": {
11046
11058
  "type": "number"
11059
+ },
11060
+ "allowEmail": {
11061
+ "type": "boolean"
11062
+ },
11063
+ "allowPush": {
11064
+ "type": "boolean"
11047
11065
  }
11048
11066
  }
11049
11067
  },
package/email_ads.d.ts CHANGED
@@ -50,6 +50,13 @@ export type AdCampaign = {
50
50
  * counts it as it produces them, and a client write would be lost anyway.
51
51
  */
52
52
  sendsCount: number;
53
+ /**
54
+ * Channels the campaign may run in. Both false is read as email only: that is
55
+ * what every campaign created before push existed was, and what a client that
56
+ * does not send the flags means.
57
+ */
58
+ allowEmail: boolean;
59
+ allowPush: boolean;
53
60
  };
54
61
  export type AdCreative = {
55
62
  id: number;
@@ -97,6 +104,12 @@ export type CreateAdCampaignRequest = {
97
104
  startAt?: Date;
98
105
  endAt?: Date;
99
106
  sendsLimit?: number;
107
+ /**
108
+ * Both false is read as email only, so a client that knows nothing about
109
+ * channels keeps creating the campaigns it used to.
110
+ */
111
+ allowEmail?: boolean;
112
+ allowPush?: boolean;
100
113
  };
101
114
  export type CreateAdCampaignResponse = {
102
115
  campaign: AdCampaign;
@@ -111,6 +124,9 @@ export type UpdateAdCampaignRequest = {
111
124
  startAt?: Date;
112
125
  endAt?: Date;
113
126
  sendsLimit?: number;
127
+ /** Same reading as on create: both false means email only, never "no channel". */
128
+ allowEmail?: boolean;
129
+ allowPush?: boolean;
114
130
  };
115
131
  export type UpdateAdCampaignResponse = {
116
132
  campaign: AdCampaign;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.272",
3
+ "version": "0.2.274",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",