@pushwoosh/rpc-v2-http-api-data 0.2.273 → 0.2.275
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 +30 -0
- package/email_ads.d.ts +16 -0
- package/package.json +1 -1
- package/presets.d.ts +11 -0
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
|
},
|
|
@@ -28353,6 +28371,9 @@ export const data = {
|
|
|
28353
28371
|
},
|
|
28354
28372
|
"contentVersionNo": {
|
|
28355
28373
|
"type": "number"
|
|
28374
|
+
},
|
|
28375
|
+
"adCampaignId": {
|
|
28376
|
+
"type": "number"
|
|
28356
28377
|
}
|
|
28357
28378
|
}
|
|
28358
28379
|
},
|
|
@@ -28534,6 +28555,9 @@ export const data = {
|
|
|
28534
28555
|
},
|
|
28535
28556
|
"contentSource": {
|
|
28536
28557
|
"type": "pushwoosh.rpc_v2.presets.ContentSource"
|
|
28558
|
+
},
|
|
28559
|
+
"adCampaignId": {
|
|
28560
|
+
"type": "number"
|
|
28537
28561
|
}
|
|
28538
28562
|
}
|
|
28539
28563
|
},
|
|
@@ -28680,6 +28704,9 @@ export const data = {
|
|
|
28680
28704
|
},
|
|
28681
28705
|
"contentSource": {
|
|
28682
28706
|
"type": "pushwoosh.rpc_v2.presets.ContentSource"
|
|
28707
|
+
},
|
|
28708
|
+
"adCampaignId": {
|
|
28709
|
+
"type": "number"
|
|
28683
28710
|
}
|
|
28684
28711
|
}
|
|
28685
28712
|
},
|
|
@@ -28807,6 +28834,9 @@ export const data = {
|
|
|
28807
28834
|
},
|
|
28808
28835
|
"contentSource": {
|
|
28809
28836
|
"type": "pushwoosh.rpc_v2.presets.ContentSource"
|
|
28837
|
+
},
|
|
28838
|
+
"adCampaignId": {
|
|
28839
|
+
"type": "number"
|
|
28810
28840
|
}
|
|
28811
28841
|
}
|
|
28812
28842
|
},
|
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
package/presets.d.ts
CHANGED
|
@@ -189,6 +189,11 @@ export type Preset = {
|
|
|
189
189
|
* content approval.
|
|
190
190
|
*/
|
|
191
191
|
contentVersionNo: number;
|
|
192
|
+
/**
|
|
193
|
+
* Ad campaign this preset sells: a send made from it carries the creative
|
|
194
|
+
* instead of its own content. 0 = an ordinary push.
|
|
195
|
+
*/
|
|
196
|
+
adCampaignId: number;
|
|
192
197
|
};
|
|
193
198
|
export type ListPresetsResponse = {
|
|
194
199
|
presets: Preset[];
|
|
@@ -272,6 +277,8 @@ export type CreatePresetRequest = {
|
|
|
272
277
|
isV2?: boolean;
|
|
273
278
|
/** The recipe the content was assembled from; unset stores a hand-written preset. */
|
|
274
279
|
contentSource?: ContentSource;
|
|
280
|
+
/** Ad campaign the preset sells; 0 = an ordinary push. */
|
|
281
|
+
adCampaignId?: number;
|
|
275
282
|
};
|
|
276
283
|
export type CreatePresetResponse = {
|
|
277
284
|
preset: Preset;
|
|
@@ -344,6 +351,8 @@ export type UpdatePresetRequest = {
|
|
|
344
351
|
* an empty source clears it.
|
|
345
352
|
*/
|
|
346
353
|
contentSource?: ContentSource;
|
|
354
|
+
/** Ad campaign the preset sells; absent leaves it as it is, 0 clears it. */
|
|
355
|
+
adCampaignId?: number;
|
|
347
356
|
};
|
|
348
357
|
export type UpdatePresetPartialRequest = {
|
|
349
358
|
/** Preset code of the push preset to patch. */
|
|
@@ -406,6 +415,8 @@ export type UpdatePresetPartialRequest = {
|
|
|
406
415
|
isV2?: boolean;
|
|
407
416
|
/** The recipe the content was assembled from; unset leaves the stored one untouched. */
|
|
408
417
|
contentSource?: ContentSource;
|
|
418
|
+
/** Ad campaign the preset sells; absent leaves it as it is, 0 clears it. */
|
|
419
|
+
adCampaignId?: number;
|
|
409
420
|
};
|
|
410
421
|
export type UpdatePresetResponse = {
|
|
411
422
|
preset: Preset;
|