@pushwoosh/rpc-v2-http-api-data 0.2.373 → 0.2.375
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 +33 -26
- package/events.d.ts +17 -19
- package/news.d.ts +16 -5
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -14421,17 +14421,17 @@ export const data = {
|
|
|
14421
14421
|
"method": "post",
|
|
14422
14422
|
"path": "/api/events:getRevenueStatistics"
|
|
14423
14423
|
},
|
|
14424
|
-
"
|
|
14425
|
-
"request": "pushwoosh.rpc_v2.events.
|
|
14426
|
-
"response": "pushwoosh.rpc_v2.events.
|
|
14424
|
+
"GetConversionEvents": {
|
|
14425
|
+
"request": "pushwoosh.rpc_v2.events.GetConversionEventsRequest",
|
|
14426
|
+
"response": "pushwoosh.rpc_v2.events.ConversionEvents",
|
|
14427
14427
|
"method": "get",
|
|
14428
|
-
"path": "/api/events:conversion-
|
|
14428
|
+
"path": "/api/events:conversion-events"
|
|
14429
14429
|
},
|
|
14430
|
-
"
|
|
14431
|
-
"request": "pushwoosh.rpc_v2.events.
|
|
14432
|
-
"response": "pushwoosh.rpc_v2.events.
|
|
14430
|
+
"SaveConversionEvents": {
|
|
14431
|
+
"request": "pushwoosh.rpc_v2.events.SaveConversionEventsRequest",
|
|
14432
|
+
"response": "pushwoosh.rpc_v2.events.ConversionEvents",
|
|
14433
14433
|
"method": "put",
|
|
14434
|
-
"path": "/api/events:conversion-
|
|
14434
|
+
"path": "/api/events:conversion-events"
|
|
14435
14435
|
}
|
|
14436
14436
|
}
|
|
14437
14437
|
},
|
|
@@ -14978,38 +14978,30 @@ export const data = {
|
|
|
14978
14978
|
}
|
|
14979
14979
|
}
|
|
14980
14980
|
},
|
|
14981
|
-
"pushwoosh.rpc_v2.events.ContactType": {
|
|
14982
|
-
"type": "E",
|
|
14983
|
-
"values": [
|
|
14984
|
-
"CONTACT_TYPE_UNSPECIFIED",
|
|
14985
|
-
"CONTACT_TYPE_CLICK",
|
|
14986
|
-
"CONTACT_TYPE_SENT"
|
|
14987
|
-
]
|
|
14988
|
-
},
|
|
14989
14981
|
"pushwoosh.rpc_v2.events.ConversionEvent": {
|
|
14990
14982
|
"type": "I",
|
|
14991
14983
|
"fields": {
|
|
14992
14984
|
"name": {
|
|
14993
14985
|
"type": "string"
|
|
14994
14986
|
},
|
|
14995
|
-
"
|
|
14996
|
-
"type": "
|
|
14987
|
+
"revenueMapping": {
|
|
14988
|
+
"type": "pushwoosh.rpc_v2.events.RevenueMapping"
|
|
14989
|
+
},
|
|
14990
|
+
"isDefault": {
|
|
14991
|
+
"type": "boolean"
|
|
14997
14992
|
}
|
|
14998
14993
|
}
|
|
14999
14994
|
},
|
|
15000
|
-
"pushwoosh.rpc_v2.events.
|
|
14995
|
+
"pushwoosh.rpc_v2.events.ConversionEvents": {
|
|
15001
14996
|
"type": "I",
|
|
15002
14997
|
"fields": {
|
|
15003
14998
|
"events": {
|
|
15004
14999
|
"type": "pushwoosh.rpc_v2.events.ConversionEvent",
|
|
15005
15000
|
"array": true
|
|
15006
|
-
},
|
|
15007
|
-
"contactType": {
|
|
15008
|
-
"type": "pushwoosh.rpc_v2.events.ContactType"
|
|
15009
15001
|
}
|
|
15010
15002
|
}
|
|
15011
15003
|
},
|
|
15012
|
-
"pushwoosh.rpc_v2.events.
|
|
15004
|
+
"pushwoosh.rpc_v2.events.GetConversionEventsRequest": {
|
|
15013
15005
|
"type": "I",
|
|
15014
15006
|
"fields": {
|
|
15015
15007
|
"application": {
|
|
@@ -15017,14 +15009,15 @@ export const data = {
|
|
|
15017
15009
|
}
|
|
15018
15010
|
}
|
|
15019
15011
|
},
|
|
15020
|
-
"pushwoosh.rpc_v2.events.
|
|
15012
|
+
"pushwoosh.rpc_v2.events.SaveConversionEventsRequest": {
|
|
15021
15013
|
"type": "I",
|
|
15022
15014
|
"fields": {
|
|
15023
15015
|
"application": {
|
|
15024
15016
|
"type": "string"
|
|
15025
15017
|
},
|
|
15026
|
-
"
|
|
15027
|
-
"type": "pushwoosh.rpc_v2.events.
|
|
15018
|
+
"events": {
|
|
15019
|
+
"type": "pushwoosh.rpc_v2.events.ConversionEvent",
|
|
15020
|
+
"array": true
|
|
15028
15021
|
}
|
|
15029
15022
|
}
|
|
15030
15023
|
},
|
|
@@ -24079,6 +24072,12 @@ export const data = {
|
|
|
24079
24072
|
},
|
|
24080
24073
|
"lastSyncedArticles": {
|
|
24081
24074
|
"type": "number"
|
|
24075
|
+
},
|
|
24076
|
+
"syncIntervalMinutes": {
|
|
24077
|
+
"type": "number"
|
|
24078
|
+
},
|
|
24079
|
+
"journeyUuid": {
|
|
24080
|
+
"type": "string"
|
|
24082
24081
|
}
|
|
24083
24082
|
}
|
|
24084
24083
|
},
|
|
@@ -24116,6 +24115,14 @@ export const data = {
|
|
|
24116
24115
|
},
|
|
24117
24116
|
"enabled": {
|
|
24118
24117
|
"type": "boolean"
|
|
24118
|
+
},
|
|
24119
|
+
"syncIntervalMinutes": {
|
|
24120
|
+
"type": "number",
|
|
24121
|
+
"optional": true
|
|
24122
|
+
},
|
|
24123
|
+
"journeyUuid": {
|
|
24124
|
+
"type": "string",
|
|
24125
|
+
"optional": true
|
|
24119
24126
|
}
|
|
24120
24127
|
}
|
|
24121
24128
|
},
|
package/events.d.ts
CHANGED
|
@@ -9,8 +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
|
|
13
|
-
export type
|
|
12
|
+
export type EventsService_GetConversionEvents = RpcMethod<GetConversionEventsRequest, ConversionEvents>;
|
|
13
|
+
export type EventsService_SaveConversionEvents = RpcMethod<SaveConversionEventsRequest, ConversionEvents>;
|
|
14
14
|
export interface EventsService {
|
|
15
15
|
/** Returns one custom event by name for an application, including its attributes, store-days and revenue mapping. Use after list_events to inspect a single event's definition. */
|
|
16
16
|
Get: EventsService_Get;
|
|
@@ -32,10 +32,10 @@ export interface EventsService {
|
|
|
32
32
|
GetTotalStatistics: EventsService_GetTotalStatistics;
|
|
33
33
|
/** 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
34
|
GetRevenueStatistics: EventsService_GetRevenueStatistics;
|
|
35
|
-
/** Returns
|
|
36
|
-
|
|
37
|
-
/** Replaces the
|
|
38
|
-
|
|
35
|
+
/** Returns the events counted as conversions on the Conversions board, PW_Conversion first, each with its revenue attributes when it tracks revenue. */
|
|
36
|
+
GetConversionEvents: EventsService_GetConversionEvents;
|
|
37
|
+
/** 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. */
|
|
38
|
+
SaveConversionEvents: EventsService_SaveConversionEvents;
|
|
39
39
|
}
|
|
40
40
|
export type GetEventRequest = {
|
|
41
41
|
/** Application code (format XXXXX-XXXXX) the event belongs to. */
|
|
@@ -276,27 +276,25 @@ export type GetRevenueStatisticsResponse_EventRevenue = {
|
|
|
276
276
|
export type GetRevenueStatisticsResponse = {
|
|
277
277
|
metrics: GetRevenueStatisticsResponse_EventRevenue[];
|
|
278
278
|
};
|
|
279
|
-
/** ContactType is the touch a conversion is counted from: the click on the message (default) or the send itself. */
|
|
280
|
-
export type ContactType = 'CONTACT_TYPE_UNSPECIFIED' | 'CONTACT_TYPE_CLICK' | 'CONTACT_TYPE_SENT';
|
|
281
279
|
export type ConversionEvent = {
|
|
282
|
-
/** Name of the application's
|
|
280
|
+
/** Name of the application's event that counts as a conversion. */
|
|
283
281
|
name: string;
|
|
284
|
-
/**
|
|
285
|
-
|
|
282
|
+
/** Where the event keeps its amount and currency; unset for an event counted without revenue. */
|
|
283
|
+
revenueMapping: RevenueMapping;
|
|
284
|
+
/** PW_Conversion: always listed, always tracks revenue, cannot be removed. */
|
|
285
|
+
isDefault: boolean;
|
|
286
286
|
};
|
|
287
|
-
export type
|
|
288
|
-
/**
|
|
287
|
+
export type ConversionEvents = {
|
|
288
|
+
/** Events counted as conversions, PW_Conversion first. */
|
|
289
289
|
events: ConversionEvent[];
|
|
290
|
-
/** Contact type shared by all events of the application; UNSPECIFIED reads as CLICK. */
|
|
291
|
-
contactType: ContactType;
|
|
292
290
|
};
|
|
293
|
-
export type
|
|
291
|
+
export type GetConversionEventsRequest = {
|
|
294
292
|
/** Application code (format XXXXX-XXXXX). */
|
|
295
293
|
application?: string;
|
|
296
294
|
};
|
|
297
|
-
export type
|
|
295
|
+
export type SaveConversionEventsRequest = {
|
|
298
296
|
/** Application code (format XXXXX-XXXXX). */
|
|
299
297
|
application?: string;
|
|
300
|
-
/** Full replacement of the application's conversion
|
|
301
|
-
|
|
298
|
+
/** Full replacement of the application's conversion events; events left out stop counting. */
|
|
299
|
+
events?: ConversionEvent[];
|
|
302
300
|
};
|
package/news.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ export type NewsService_SetNewsFeed = RpcMethod<SetNewsFeedRequest, SetNewsFeedR
|
|
|
4
4
|
export type NewsService_DeleteNewsFeed = RpcMethod<DeleteNewsFeedRequest, DeleteNewsFeedResponse>;
|
|
5
5
|
/**
|
|
6
6
|
* NewsService manages the registry of news feeds an application's email news
|
|
7
|
-
* blocks read from. Feeds are imported
|
|
7
|
+
* blocks read from. Feeds are imported on their own interval by uds/rss-feeds.
|
|
8
8
|
*/
|
|
9
9
|
export interface NewsService {
|
|
10
|
-
/** Lists the news feeds registered for an application (code XXXXX-XXXXX), each with the outcome of its last
|
|
10
|
+
/** Lists the news feeds registered for an application (code XXXXX-XXXXX), each with the outcome of its last import. Use to fill the feed selector of an email news block and to show why a feed went quiet. */
|
|
11
11
|
ListNewsFeeds: NewsService_ListNewsFeeds;
|
|
12
|
-
/** Registers an RSS/Atom news feed for an application (code XXXXX-XXXXX), or updates one when code is given. Articles are imported
|
|
12
|
+
/** Registers an RSS/Atom news feed for an application (code XXXXX-XXXXX), or updates one when code is given. Articles are imported on the feed's interval; an application may have several feeds. */
|
|
13
13
|
SetNewsFeed: NewsService_SetNewsFeed;
|
|
14
|
-
/** Removes a news feed of an application (code XXXXX-XXXXX) from the registry. Its already imported articles are deleted by the next
|
|
14
|
+
/** 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
15
|
DeleteNewsFeed: NewsService_DeleteNewsFeed;
|
|
16
16
|
}
|
|
17
17
|
export type NewsFeed = {
|
|
@@ -25,7 +25,7 @@ export type NewsFeed = {
|
|
|
25
25
|
enabled: boolean;
|
|
26
26
|
created: Date;
|
|
27
27
|
updated: Date;
|
|
28
|
-
/** Outcome of the last
|
|
28
|
+
/** Outcome of the last import: "ok" | "error", empty before the first run. */
|
|
29
29
|
lastStatus: string;
|
|
30
30
|
/** Why that import failed; empty when it succeeded. */
|
|
31
31
|
lastError: string;
|
|
@@ -33,6 +33,10 @@ export type NewsFeed = {
|
|
|
33
33
|
lastSyncedAt?: Date;
|
|
34
34
|
/** Articles the last successful import stored. */
|
|
35
35
|
lastSyncedArticles: number;
|
|
36
|
+
/** Minutes between imports of this feed. */
|
|
37
|
+
syncIntervalMinutes: number;
|
|
38
|
+
/** Journey started for every new article through its API-based entry point; empty when none. */
|
|
39
|
+
journeyUuid: string;
|
|
36
40
|
};
|
|
37
41
|
export type ListNewsFeedsRequest = {
|
|
38
42
|
/** Pushwoosh application code (XXXXX-XXXXX). */
|
|
@@ -50,6 +54,13 @@ export type SetNewsFeedRequest = {
|
|
|
50
54
|
/** http(s) URL of an RSS or Atom feed. */
|
|
51
55
|
url?: string;
|
|
52
56
|
enabled?: boolean;
|
|
57
|
+
/** Minutes between imports, 1..60. Absent keeps the stored value (60 for a new feed). */
|
|
58
|
+
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;
|
|
53
64
|
};
|
|
54
65
|
export type SetNewsFeedResponse = {
|
|
55
66
|
feed: NewsFeed;
|