@pushwoosh/rpc-v2-http-api-data 0.2.413 → 0.2.415
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 +267 -7
- package/events.d.ts +33 -0
- package/news.d.ts +109 -7
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -14810,6 +14810,18 @@ export const data = {
|
|
|
14810
14810
|
"method": "post",
|
|
14811
14811
|
"path": "/api/events:getRevenueStatistics"
|
|
14812
14812
|
},
|
|
14813
|
+
"GetRevenueSuggestions": {
|
|
14814
|
+
"request": "pushwoosh.rpc_v2.events.GetRevenueSuggestionsRequest",
|
|
14815
|
+
"response": "pushwoosh.rpc_v2.events.RevenueSuggestions",
|
|
14816
|
+
"method": "get",
|
|
14817
|
+
"path": "/api/events:revenue-suggestions"
|
|
14818
|
+
},
|
|
14819
|
+
"DismissRevenueSuggestions": {
|
|
14820
|
+
"request": "pushwoosh.rpc_v2.events.DismissRevenueSuggestionsRequest",
|
|
14821
|
+
"response": "pushwoosh.rpc_v2.events.DismissRevenueSuggestionsResponse",
|
|
14822
|
+
"method": "post",
|
|
14823
|
+
"path": "/api/events:dismiss-revenue-suggestions"
|
|
14824
|
+
},
|
|
14813
14825
|
"GetConversionEvents": {
|
|
14814
14826
|
"request": "pushwoosh.rpc_v2.events.GetConversionEventsRequest",
|
|
14815
14827
|
"response": "pushwoosh.rpc_v2.events.ConversionEvents",
|
|
@@ -15390,6 +15402,52 @@ export const data = {
|
|
|
15390
15402
|
}
|
|
15391
15403
|
}
|
|
15392
15404
|
},
|
|
15405
|
+
"pushwoosh.rpc_v2.events.RevenueSuggestion": {
|
|
15406
|
+
"type": "I",
|
|
15407
|
+
"fields": {
|
|
15408
|
+
"event": {
|
|
15409
|
+
"type": "string"
|
|
15410
|
+
},
|
|
15411
|
+
"valueAttr": {
|
|
15412
|
+
"type": "string"
|
|
15413
|
+
},
|
|
15414
|
+
"currencyAttr": {
|
|
15415
|
+
"type": "string"
|
|
15416
|
+
},
|
|
15417
|
+
"triggeredCount": {
|
|
15418
|
+
"type": "number"
|
|
15419
|
+
}
|
|
15420
|
+
}
|
|
15421
|
+
},
|
|
15422
|
+
"pushwoosh.rpc_v2.events.RevenueSuggestions": {
|
|
15423
|
+
"type": "I",
|
|
15424
|
+
"fields": {
|
|
15425
|
+
"suggestions": {
|
|
15426
|
+
"type": "pushwoosh.rpc_v2.events.RevenueSuggestion",
|
|
15427
|
+
"array": true
|
|
15428
|
+
}
|
|
15429
|
+
}
|
|
15430
|
+
},
|
|
15431
|
+
"pushwoosh.rpc_v2.events.GetRevenueSuggestionsRequest": {
|
|
15432
|
+
"type": "I",
|
|
15433
|
+
"fields": {
|
|
15434
|
+
"application": {
|
|
15435
|
+
"type": "string"
|
|
15436
|
+
}
|
|
15437
|
+
}
|
|
15438
|
+
},
|
|
15439
|
+
"pushwoosh.rpc_v2.events.DismissRevenueSuggestionsRequest": {
|
|
15440
|
+
"type": "I",
|
|
15441
|
+
"fields": {
|
|
15442
|
+
"application": {
|
|
15443
|
+
"type": "string"
|
|
15444
|
+
}
|
|
15445
|
+
}
|
|
15446
|
+
},
|
|
15447
|
+
"pushwoosh.rpc_v2.events.DismissRevenueSuggestionsResponse": {
|
|
15448
|
+
"type": "I",
|
|
15449
|
+
"fields": {}
|
|
15450
|
+
},
|
|
15393
15451
|
"pushwoosh.rpc_v2.events.GetConversionEventsRequest": {
|
|
15394
15452
|
"type": "I",
|
|
15395
15453
|
"fields": {
|
|
@@ -25009,6 +25067,36 @@ export const data = {
|
|
|
25009
25067
|
"response": "pushwoosh.rpc_v2.news.DeleteNewsFeedResponse",
|
|
25010
25068
|
"method": "post",
|
|
25011
25069
|
"path": "/api/news/feeds:delete"
|
|
25070
|
+
},
|
|
25071
|
+
"ListNewsFeedCampaigns": {
|
|
25072
|
+
"request": "pushwoosh.rpc_v2.news.ListNewsFeedCampaignsRequest",
|
|
25073
|
+
"response": "pushwoosh.rpc_v2.news.ListNewsFeedCampaignsResponse",
|
|
25074
|
+
"method": "get",
|
|
25075
|
+
"path": "/api/news/campaigns"
|
|
25076
|
+
},
|
|
25077
|
+
"GetNewsFeedCampaign": {
|
|
25078
|
+
"request": "pushwoosh.rpc_v2.news.GetNewsFeedCampaignRequest",
|
|
25079
|
+
"response": "pushwoosh.rpc_v2.news.GetNewsFeedCampaignResponse",
|
|
25080
|
+
"method": "get",
|
|
25081
|
+
"path": "/api/news/campaigns/{code}"
|
|
25082
|
+
},
|
|
25083
|
+
"SetNewsFeedCampaign": {
|
|
25084
|
+
"request": "pushwoosh.rpc_v2.news.SetNewsFeedCampaignRequest",
|
|
25085
|
+
"response": "pushwoosh.rpc_v2.news.SetNewsFeedCampaignResponse",
|
|
25086
|
+
"method": "post",
|
|
25087
|
+
"path": "/api/news/campaigns"
|
|
25088
|
+
},
|
|
25089
|
+
"SetNewsFeedCampaignStatus": {
|
|
25090
|
+
"request": "pushwoosh.rpc_v2.news.SetNewsFeedCampaignStatusRequest",
|
|
25091
|
+
"response": "pushwoosh.rpc_v2.news.SetNewsFeedCampaignStatusResponse",
|
|
25092
|
+
"method": "post",
|
|
25093
|
+
"path": "/api/news/campaigns/{code}:status"
|
|
25094
|
+
},
|
|
25095
|
+
"DeleteNewsFeedCampaign": {
|
|
25096
|
+
"request": "pushwoosh.rpc_v2.news.DeleteNewsFeedCampaignRequest",
|
|
25097
|
+
"response": "pushwoosh.rpc_v2.news.DeleteNewsFeedCampaignResponse",
|
|
25098
|
+
"method": "post",
|
|
25099
|
+
"path": "/api/news/campaigns:delete"
|
|
25012
25100
|
}
|
|
25013
25101
|
}
|
|
25014
25102
|
},
|
|
@@ -25048,9 +25136,6 @@ export const data = {
|
|
|
25048
25136
|
},
|
|
25049
25137
|
"syncIntervalMinutes": {
|
|
25050
25138
|
"type": "number"
|
|
25051
|
-
},
|
|
25052
|
-
"journeyUuid": {
|
|
25053
|
-
"type": "string"
|
|
25054
25139
|
}
|
|
25055
25140
|
}
|
|
25056
25141
|
},
|
|
@@ -25092,10 +25177,6 @@ export const data = {
|
|
|
25092
25177
|
"syncIntervalMinutes": {
|
|
25093
25178
|
"type": "number",
|
|
25094
25179
|
"optional": true
|
|
25095
|
-
},
|
|
25096
|
-
"journeyUuid": {
|
|
25097
|
-
"type": "string",
|
|
25098
|
-
"optional": true
|
|
25099
25180
|
}
|
|
25100
25181
|
}
|
|
25101
25182
|
},
|
|
@@ -25122,6 +25203,185 @@ export const data = {
|
|
|
25122
25203
|
"type": "I",
|
|
25123
25204
|
"fields": {}
|
|
25124
25205
|
},
|
|
25206
|
+
"pushwoosh.rpc_v2.news.NewsFeedCampaign": {
|
|
25207
|
+
"type": "I",
|
|
25208
|
+
"fields": {
|
|
25209
|
+
"code": {
|
|
25210
|
+
"type": "string"
|
|
25211
|
+
},
|
|
25212
|
+
"feedCode": {
|
|
25213
|
+
"type": "string"
|
|
25214
|
+
},
|
|
25215
|
+
"name": {
|
|
25216
|
+
"type": "string"
|
|
25217
|
+
},
|
|
25218
|
+
"status": {
|
|
25219
|
+
"type": "string"
|
|
25220
|
+
},
|
|
25221
|
+
"push": {
|
|
25222
|
+
"type": "boolean"
|
|
25223
|
+
},
|
|
25224
|
+
"inbox": {
|
|
25225
|
+
"type": "boolean"
|
|
25226
|
+
},
|
|
25227
|
+
"filterCode": {
|
|
25228
|
+
"type": "string"
|
|
25229
|
+
},
|
|
25230
|
+
"inboxExpiresInDays": {
|
|
25231
|
+
"type": "number",
|
|
25232
|
+
"optional": true
|
|
25233
|
+
},
|
|
25234
|
+
"maxArticles": {
|
|
25235
|
+
"type": "number"
|
|
25236
|
+
},
|
|
25237
|
+
"ttlSeconds": {
|
|
25238
|
+
"type": "number",
|
|
25239
|
+
"optional": true
|
|
25240
|
+
},
|
|
25241
|
+
"sendRate": {
|
|
25242
|
+
"type": "number",
|
|
25243
|
+
"optional": true
|
|
25244
|
+
},
|
|
25245
|
+
"campaignCode": {
|
|
25246
|
+
"type": "string"
|
|
25247
|
+
},
|
|
25248
|
+
"lastSentAt": {
|
|
25249
|
+
"type": "Date",
|
|
25250
|
+
"optional": true
|
|
25251
|
+
},
|
|
25252
|
+
"lastSentTitle": {
|
|
25253
|
+
"type": "string"
|
|
25254
|
+
},
|
|
25255
|
+
"created": {
|
|
25256
|
+
"type": "Date"
|
|
25257
|
+
},
|
|
25258
|
+
"updated": {
|
|
25259
|
+
"type": "Date"
|
|
25260
|
+
}
|
|
25261
|
+
}
|
|
25262
|
+
},
|
|
25263
|
+
"pushwoosh.rpc_v2.news.ListNewsFeedCampaignsRequest": {
|
|
25264
|
+
"type": "I",
|
|
25265
|
+
"fields": {
|
|
25266
|
+
"applicationCode": {
|
|
25267
|
+
"type": "string"
|
|
25268
|
+
}
|
|
25269
|
+
}
|
|
25270
|
+
},
|
|
25271
|
+
"pushwoosh.rpc_v2.news.ListNewsFeedCampaignsResponse": {
|
|
25272
|
+
"type": "I",
|
|
25273
|
+
"fields": {
|
|
25274
|
+
"campaigns": {
|
|
25275
|
+
"type": "pushwoosh.rpc_v2.news.NewsFeedCampaign",
|
|
25276
|
+
"array": true
|
|
25277
|
+
}
|
|
25278
|
+
}
|
|
25279
|
+
},
|
|
25280
|
+
"pushwoosh.rpc_v2.news.GetNewsFeedCampaignRequest": {
|
|
25281
|
+
"type": "I",
|
|
25282
|
+
"fields": {
|
|
25283
|
+
"applicationCode": {
|
|
25284
|
+
"type": "string"
|
|
25285
|
+
},
|
|
25286
|
+
"code": {
|
|
25287
|
+
"type": "string"
|
|
25288
|
+
}
|
|
25289
|
+
}
|
|
25290
|
+
},
|
|
25291
|
+
"pushwoosh.rpc_v2.news.GetNewsFeedCampaignResponse": {
|
|
25292
|
+
"type": "I",
|
|
25293
|
+
"fields": {
|
|
25294
|
+
"campaign": {
|
|
25295
|
+
"type": "pushwoosh.rpc_v2.news.NewsFeedCampaign"
|
|
25296
|
+
}
|
|
25297
|
+
}
|
|
25298
|
+
},
|
|
25299
|
+
"pushwoosh.rpc_v2.news.SetNewsFeedCampaignRequest": {
|
|
25300
|
+
"type": "I",
|
|
25301
|
+
"fields": {
|
|
25302
|
+
"applicationCode": {
|
|
25303
|
+
"type": "string"
|
|
25304
|
+
},
|
|
25305
|
+
"code": {
|
|
25306
|
+
"type": "string"
|
|
25307
|
+
},
|
|
25308
|
+
"feedCode": {
|
|
25309
|
+
"type": "string"
|
|
25310
|
+
},
|
|
25311
|
+
"name": {
|
|
25312
|
+
"type": "string"
|
|
25313
|
+
},
|
|
25314
|
+
"push": {
|
|
25315
|
+
"type": "boolean"
|
|
25316
|
+
},
|
|
25317
|
+
"inbox": {
|
|
25318
|
+
"type": "boolean"
|
|
25319
|
+
},
|
|
25320
|
+
"filterCode": {
|
|
25321
|
+
"type": "string"
|
|
25322
|
+
},
|
|
25323
|
+
"inboxExpiresInDays": {
|
|
25324
|
+
"type": "number",
|
|
25325
|
+
"optional": true
|
|
25326
|
+
},
|
|
25327
|
+
"maxArticles": {
|
|
25328
|
+
"type": "number"
|
|
25329
|
+
},
|
|
25330
|
+
"ttlSeconds": {
|
|
25331
|
+
"type": "number",
|
|
25332
|
+
"optional": true
|
|
25333
|
+
},
|
|
25334
|
+
"sendRate": {
|
|
25335
|
+
"type": "number",
|
|
25336
|
+
"optional": true
|
|
25337
|
+
}
|
|
25338
|
+
}
|
|
25339
|
+
},
|
|
25340
|
+
"pushwoosh.rpc_v2.news.SetNewsFeedCampaignResponse": {
|
|
25341
|
+
"type": "I",
|
|
25342
|
+
"fields": {
|
|
25343
|
+
"campaign": {
|
|
25344
|
+
"type": "pushwoosh.rpc_v2.news.NewsFeedCampaign"
|
|
25345
|
+
}
|
|
25346
|
+
}
|
|
25347
|
+
},
|
|
25348
|
+
"pushwoosh.rpc_v2.news.SetNewsFeedCampaignStatusRequest": {
|
|
25349
|
+
"type": "I",
|
|
25350
|
+
"fields": {
|
|
25351
|
+
"applicationCode": {
|
|
25352
|
+
"type": "string"
|
|
25353
|
+
},
|
|
25354
|
+
"code": {
|
|
25355
|
+
"type": "string"
|
|
25356
|
+
},
|
|
25357
|
+
"status": {
|
|
25358
|
+
"type": "string"
|
|
25359
|
+
}
|
|
25360
|
+
}
|
|
25361
|
+
},
|
|
25362
|
+
"pushwoosh.rpc_v2.news.SetNewsFeedCampaignStatusResponse": {
|
|
25363
|
+
"type": "I",
|
|
25364
|
+
"fields": {
|
|
25365
|
+
"campaign": {
|
|
25366
|
+
"type": "pushwoosh.rpc_v2.news.NewsFeedCampaign"
|
|
25367
|
+
}
|
|
25368
|
+
}
|
|
25369
|
+
},
|
|
25370
|
+
"pushwoosh.rpc_v2.news.DeleteNewsFeedCampaignRequest": {
|
|
25371
|
+
"type": "I",
|
|
25372
|
+
"fields": {
|
|
25373
|
+
"applicationCode": {
|
|
25374
|
+
"type": "string"
|
|
25375
|
+
},
|
|
25376
|
+
"code": {
|
|
25377
|
+
"type": "string"
|
|
25378
|
+
}
|
|
25379
|
+
}
|
|
25380
|
+
},
|
|
25381
|
+
"pushwoosh.rpc_v2.news.DeleteNewsFeedCampaignResponse": {
|
|
25382
|
+
"type": "I",
|
|
25383
|
+
"fields": {}
|
|
25384
|
+
},
|
|
25125
25385
|
"pushwoosh.objects.filters.v1.LogicExpression.Binary.Operator": {
|
|
25126
25386
|
"type": "E",
|
|
25127
25387
|
"values": [
|
package/events.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type EventsService_GetTriggeredCount = RpcMethod<GetTriggeredCountRequest
|
|
|
9
9
|
export type EventsService_GetDetailedStatistics = RpcMethod<GetDetailedStatisticsRequest, GetDetailedStatisticsResponse>;
|
|
10
10
|
export type EventsService_GetTotalStatistics = RpcMethod<GetTotalStatisticsRequest, GetTotalStatisticsResponse>;
|
|
11
11
|
export type EventsService_GetRevenueStatistics = RpcMethod<GetRevenueStatisticsRequest, GetRevenueStatisticsResponse>;
|
|
12
|
+
export type EventsService_GetRevenueSuggestions = RpcMethod<GetRevenueSuggestionsRequest, RevenueSuggestions>;
|
|
13
|
+
export type EventsService_DismissRevenueSuggestions = RpcMethod<DismissRevenueSuggestionsRequest, DismissRevenueSuggestionsResponse>;
|
|
12
14
|
export type EventsService_GetConversionEvents = RpcMethod<GetConversionEventsRequest, ConversionEvents>;
|
|
13
15
|
export type EventsService_SaveConversionEvents = RpcMethod<SaveConversionEventsRequest, ConversionEvents>;
|
|
14
16
|
export interface EventsService {
|
|
@@ -32,6 +34,10 @@ export interface EventsService {
|
|
|
32
34
|
GetTotalStatistics: EventsService_GetTotalStatistics;
|
|
33
35
|
/** Returns per-currency revenue totals and triggered counts for the revenue-mapped events of an application over a date range. Use to show how much revenue an event brought, kept in the original currencies. */
|
|
34
36
|
GetRevenueStatistics: EventsService_GetRevenueStatistics;
|
|
37
|
+
/** Returns the revenue mappings the daily cron suggests for an application: custom events that already carry a purchase amount and an ISO currency code and are not conversion events yet, best first, each with the two attribute names. An empty list means nothing suitable was found or the client dismissed the hint. */
|
|
38
|
+
GetRevenueSuggestions: EventsService_GetRevenueSuggestions;
|
|
39
|
+
/** Hides the suggested revenue mapping hint for an application for good; the suggestions are kept but no longer returned. */
|
|
40
|
+
DismissRevenueSuggestions: EventsService_DismissRevenueSuggestions;
|
|
35
41
|
/** Returns the events counted as conversions on the Conversions board, PW_Conversion first, each with its revenue attributes when it tracks revenue. */
|
|
36
42
|
GetConversionEvents: EventsService_GetConversionEvents;
|
|
37
43
|
/** Replaces the list of events counted as conversions on the Conversions board. Events left out of the request stop counting; PW_Conversion is always kept. Revenue attributes of an event are set through Update (revenue_mapping). A newly listed event is scheduled for a history recalculation. */
|
|
@@ -288,6 +294,33 @@ export type ConversionEvents = {
|
|
|
288
294
|
/** Events counted as conversions, PW_Conversion first. */
|
|
289
295
|
events: ConversionEvent[];
|
|
290
296
|
};
|
|
297
|
+
/**
|
|
298
|
+
* RevenueSuggestion is a revenue mapping found by the cron but not enabled yet: the event
|
|
299
|
+
* and the attributes that would feed PW_Conversion value and currency.
|
|
300
|
+
*/
|
|
301
|
+
export type RevenueSuggestion = {
|
|
302
|
+
/** Name of the suggested custom event. */
|
|
303
|
+
event: string;
|
|
304
|
+
/** Event attribute holding the purchase amount. */
|
|
305
|
+
valueAttr: string;
|
|
306
|
+
/** Event attribute holding the ISO currency code. */
|
|
307
|
+
currencyAttr: string;
|
|
308
|
+
/** How many times the event fired over the last 30 days when the suggestion was made. */
|
|
309
|
+
triggeredCount: number;
|
|
310
|
+
};
|
|
311
|
+
export type RevenueSuggestions = {
|
|
312
|
+
/** Candidate events best first: purchase-like names, then the most frequent. Empty when there is nothing to show. */
|
|
313
|
+
suggestions: RevenueSuggestion[];
|
|
314
|
+
};
|
|
315
|
+
export type GetRevenueSuggestionsRequest = {
|
|
316
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
317
|
+
application?: string;
|
|
318
|
+
};
|
|
319
|
+
export type DismissRevenueSuggestionsRequest = {
|
|
320
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
321
|
+
application?: string;
|
|
322
|
+
};
|
|
323
|
+
export type DismissRevenueSuggestionsResponse = {};
|
|
291
324
|
export type GetConversionEventsRequest = {
|
|
292
325
|
/** Application code (format XXXXX-XXXXX). */
|
|
293
326
|
application?: string;
|
package/news.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ import { RpcMethod } from './commonTypes';
|
|
|
2
2
|
export type NewsService_ListNewsFeeds = RpcMethod<ListNewsFeedsRequest, ListNewsFeedsResponse>;
|
|
3
3
|
export type NewsService_SetNewsFeed = RpcMethod<SetNewsFeedRequest, SetNewsFeedResponse>;
|
|
4
4
|
export type NewsService_DeleteNewsFeed = RpcMethod<DeleteNewsFeedRequest, DeleteNewsFeedResponse>;
|
|
5
|
+
export type NewsService_ListNewsFeedCampaigns = RpcMethod<ListNewsFeedCampaignsRequest, ListNewsFeedCampaignsResponse>;
|
|
6
|
+
export type NewsService_GetNewsFeedCampaign = RpcMethod<GetNewsFeedCampaignRequest, GetNewsFeedCampaignResponse>;
|
|
7
|
+
export type NewsService_SetNewsFeedCampaign = RpcMethod<SetNewsFeedCampaignRequest, SetNewsFeedCampaignResponse>;
|
|
8
|
+
export type NewsService_SetNewsFeedCampaignStatus = RpcMethod<SetNewsFeedCampaignStatusRequest, SetNewsFeedCampaignStatusResponse>;
|
|
9
|
+
export type NewsService_DeleteNewsFeedCampaign = RpcMethod<DeleteNewsFeedCampaignRequest, DeleteNewsFeedCampaignResponse>;
|
|
5
10
|
/**
|
|
6
11
|
* NewsService manages the registry of news feeds an application's email news
|
|
7
12
|
* blocks read from. Feeds are imported on their own interval by uds/rss-feeds.
|
|
@@ -13,6 +18,16 @@ export interface NewsService {
|
|
|
13
18
|
SetNewsFeed: NewsService_SetNewsFeed;
|
|
14
19
|
/** Removes a news feed of an application (code XXXXX-XXXXX) from the registry. Its already imported articles are deleted by the next import run. */
|
|
15
20
|
DeleteNewsFeed: NewsService_DeleteNewsFeed;
|
|
21
|
+
/** Lists the feed campaigns of an application (code XXXXX-XXXXX): each sends every new article of one of its news feeds as a push and/or an App Inbox message. Use to show the campaigns listing with the last article sent. */
|
|
22
|
+
ListNewsFeedCampaigns: NewsService_ListNewsFeedCampaigns;
|
|
23
|
+
/** Returns one feed campaign of an application (code XXXXX-XXXXX) by its code, for the edit form. */
|
|
24
|
+
GetNewsFeedCampaign: NewsService_GetNewsFeedCampaign;
|
|
25
|
+
/** Creates a feed campaign for an application (code XXXXX-XXXXX), or replaces the definition of one when code is given. A new campaign is active at once: the next check of its feed sends the articles that arrive from now on. The whole definition is sent every time. */
|
|
26
|
+
SetNewsFeedCampaign: NewsService_SetNewsFeedCampaign;
|
|
27
|
+
/** Pauses or resumes a feed campaign of an application (code XXXXX-XXXXX). An inactive campaign skips the articles that arrive meanwhile; they are not sent on resume. */
|
|
28
|
+
SetNewsFeedCampaignStatus: NewsService_SetNewsFeedCampaignStatus;
|
|
29
|
+
/** Deletes a feed campaign of an application (code XXXXX-XXXXX) together with its statistics campaign. Messages already sent stay in the history. */
|
|
30
|
+
DeleteNewsFeedCampaign: NewsService_DeleteNewsFeedCampaign;
|
|
16
31
|
}
|
|
17
32
|
export type NewsFeed = {
|
|
18
33
|
/** Stable feed id; an email block references the feed by this code. */
|
|
@@ -35,8 +50,6 @@ export type NewsFeed = {
|
|
|
35
50
|
lastSyncedArticles: number;
|
|
36
51
|
/** Minutes between imports of this feed. */
|
|
37
52
|
syncIntervalMinutes: number;
|
|
38
|
-
/** Journey started for every new article through its API-based entry point; empty when none. */
|
|
39
|
-
journeyUuid: string;
|
|
40
53
|
};
|
|
41
54
|
export type ListNewsFeedsRequest = {
|
|
42
55
|
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
@@ -56,11 +69,6 @@ export type SetNewsFeedRequest = {
|
|
|
56
69
|
enabled?: boolean;
|
|
57
70
|
/** Minutes between imports, 1..60. Absent keeps the stored value (60 for a new feed). */
|
|
58
71
|
syncIntervalMinutes?: number;
|
|
59
|
-
/**
|
|
60
|
-
* Journey to start for every new article: the application's own, with an API-based entry point.
|
|
61
|
-
* Absent keeps the stored link, empty removes it.
|
|
62
|
-
*/
|
|
63
|
-
journeyUuid?: string;
|
|
64
72
|
};
|
|
65
73
|
export type SetNewsFeedResponse = {
|
|
66
74
|
feed: NewsFeed;
|
|
@@ -71,3 +79,97 @@ export type DeleteNewsFeedRequest = {
|
|
|
71
79
|
code?: string;
|
|
72
80
|
};
|
|
73
81
|
export type DeleteNewsFeedResponse = {};
|
|
82
|
+
/**
|
|
83
|
+
* NewsFeedCampaign sends every new article of a news feed to an audience as a push
|
|
84
|
+
* and/or an App Inbox message; the article is the content, the campaign is the delivery rules.
|
|
85
|
+
*/
|
|
86
|
+
export type NewsFeedCampaign = {
|
|
87
|
+
/** Stable campaign id. */
|
|
88
|
+
code: string;
|
|
89
|
+
/** Feed whose new articles the campaign sends. */
|
|
90
|
+
feedCode: string;
|
|
91
|
+
name: string;
|
|
92
|
+
/**
|
|
93
|
+
* "active" | "inactive". A failing feed import pauses sending by itself without changing this;
|
|
94
|
+
* see the feed's last_status.
|
|
95
|
+
*/
|
|
96
|
+
status: string;
|
|
97
|
+
/** Send a push notification per article. */
|
|
98
|
+
push: boolean;
|
|
99
|
+
/** Leave an App Inbox entry per article: attached to the push, or standalone when push is off. */
|
|
100
|
+
inbox: boolean;
|
|
101
|
+
/** Audience segment; empty sends to all subscribers of the application. */
|
|
102
|
+
filterCode: string;
|
|
103
|
+
/** Days an inbox entry stays after the send; absent leaves the platform default. */
|
|
104
|
+
inboxExpiresInDays?: number;
|
|
105
|
+
/** How many new articles one feed check may send, newest first, a minute apart. */
|
|
106
|
+
maxArticles: number;
|
|
107
|
+
/** Push time to live in seconds; absent leaves the platform default. */
|
|
108
|
+
ttlSeconds?: number;
|
|
109
|
+
/** Messages per second; absent uses the account send rate. */
|
|
110
|
+
sendRate?: number;
|
|
111
|
+
/** Statistics campaign the messages are counted under. */
|
|
112
|
+
campaignCode: string;
|
|
113
|
+
/** When the last article went out and what it was. Absent before the first send. */
|
|
114
|
+
lastSentAt?: Date;
|
|
115
|
+
lastSentTitle: string;
|
|
116
|
+
created: Date;
|
|
117
|
+
updated: Date;
|
|
118
|
+
};
|
|
119
|
+
export type ListNewsFeedCampaignsRequest = {
|
|
120
|
+
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
121
|
+
applicationCode?: string;
|
|
122
|
+
};
|
|
123
|
+
export type ListNewsFeedCampaignsResponse = {
|
|
124
|
+
campaigns: NewsFeedCampaign[];
|
|
125
|
+
};
|
|
126
|
+
export type GetNewsFeedCampaignRequest = {
|
|
127
|
+
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
128
|
+
applicationCode?: string;
|
|
129
|
+
code?: string;
|
|
130
|
+
};
|
|
131
|
+
export type GetNewsFeedCampaignResponse = {
|
|
132
|
+
campaign: NewsFeedCampaign;
|
|
133
|
+
};
|
|
134
|
+
export type SetNewsFeedCampaignRequest = {
|
|
135
|
+
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
136
|
+
applicationCode?: string;
|
|
137
|
+
/** Empty creates a campaign; a code replaces that campaign's definition. */
|
|
138
|
+
code?: string;
|
|
139
|
+
/** One of the application's news feeds. */
|
|
140
|
+
feedCode?: string;
|
|
141
|
+
name?: string;
|
|
142
|
+
/** At least one of push and inbox. */
|
|
143
|
+
push?: boolean;
|
|
144
|
+
/** Needs App Inbox integrated in the application. */
|
|
145
|
+
inbox?: boolean;
|
|
146
|
+
/** Segment of the application or of the account; empty means all subscribers. */
|
|
147
|
+
filterCode?: string;
|
|
148
|
+
/** 1..365, only with inbox. Absent leaves the platform default. */
|
|
149
|
+
inboxExpiresInDays?: number;
|
|
150
|
+
/** 1..10; 0 means 1. */
|
|
151
|
+
maxArticles?: number;
|
|
152
|
+
/** 1..2419200 (28 days), only with push. Absent leaves the platform default. */
|
|
153
|
+
ttlSeconds?: number;
|
|
154
|
+
/** 1..10000 messages per second. Absent uses the account send rate. */
|
|
155
|
+
sendRate?: number;
|
|
156
|
+
};
|
|
157
|
+
export type SetNewsFeedCampaignResponse = {
|
|
158
|
+
campaign: NewsFeedCampaign;
|
|
159
|
+
};
|
|
160
|
+
export type SetNewsFeedCampaignStatusRequest = {
|
|
161
|
+
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
162
|
+
applicationCode?: string;
|
|
163
|
+
code?: string;
|
|
164
|
+
/** "active" | "inactive". */
|
|
165
|
+
status?: string;
|
|
166
|
+
};
|
|
167
|
+
export type SetNewsFeedCampaignStatusResponse = {
|
|
168
|
+
campaign: NewsFeedCampaign;
|
|
169
|
+
};
|
|
170
|
+
export type DeleteNewsFeedCampaignRequest = {
|
|
171
|
+
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
172
|
+
applicationCode?: string;
|
|
173
|
+
code?: string;
|
|
174
|
+
};
|
|
175
|
+
export type DeleteNewsFeedCampaignResponse = {};
|