@pushwoosh/rpc-v2-http-api-data 0.2.453 → 0.2.455

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
@@ -15854,9 +15854,306 @@ export const data = {
15854
15854
  "response": "pushwoosh.export_messages.v2.GetLastTasksResponse",
15855
15855
  "method": "post",
15856
15856
  "path": "/api/export_messages/statistics_export/lastTasks"
15857
+ },
15858
+ "ListReports": {
15859
+ "request": "pushwoosh.rpc_v2.export_messages.ListReportsRequest",
15860
+ "response": "pushwoosh.rpc_v2.export_messages.ListReportsResponse",
15861
+ "method": "get",
15862
+ "path": "/api/export_messages/applications/{application_code}/reports"
15863
+ },
15864
+ "GetReport": {
15865
+ "request": "pushwoosh.rpc_v2.export_messages.GetReportRequest",
15866
+ "response": "pushwoosh.rpc_v2.export_messages.GetReportResponse",
15867
+ "method": "get",
15868
+ "path": "/api/export_messages/applications/{application_code}/reports/{code}"
15869
+ },
15870
+ "CreateReport": {
15871
+ "request": "pushwoosh.rpc_v2.export_messages.CreateReportRequest",
15872
+ "response": "pushwoosh.rpc_v2.export_messages.CreateReportResponse",
15873
+ "method": "post",
15874
+ "path": "/api/export_messages/applications/{application_code}/reports"
15875
+ },
15876
+ "UpdateReport": {
15877
+ "request": "pushwoosh.rpc_v2.export_messages.UpdateReportRequest",
15878
+ "response": "pushwoosh.rpc_v2.export_messages.UpdateReportResponse",
15879
+ "method": "post",
15880
+ "path": "/api/export_messages/applications/{application_code}/reports/{code}"
15881
+ },
15882
+ "DeleteReport": {
15883
+ "request": "pushwoosh.rpc_v2.export_messages.DeleteReportRequest",
15884
+ "response": "pushwoosh.rpc_v2.export_messages.DeleteReportResponse",
15885
+ "method": "delete",
15886
+ "path": "/api/export_messages/applications/{application_code}/reports/{code}"
15887
+ },
15888
+ "PauseReport": {
15889
+ "request": "pushwoosh.rpc_v2.export_messages.PauseReportRequest",
15890
+ "response": "pushwoosh.rpc_v2.export_messages.PauseReportResponse",
15891
+ "method": "post",
15892
+ "path": "/api/export_messages/applications/{application_code}/reports/{code}/pause"
15893
+ },
15894
+ "ResumeReport": {
15895
+ "request": "pushwoosh.rpc_v2.export_messages.ResumeReportRequest",
15896
+ "response": "pushwoosh.rpc_v2.export_messages.ResumeReportResponse",
15897
+ "method": "post",
15898
+ "path": "/api/export_messages/applications/{application_code}/reports/{code}/resume"
15899
+ },
15900
+ "SendReportNow": {
15901
+ "request": "pushwoosh.rpc_v2.export_messages.SendReportNowRequest",
15902
+ "response": "pushwoosh.rpc_v2.export_messages.SendReportNowResponse",
15903
+ "method": "post",
15904
+ "path": "/api/export_messages/applications/{application_code}/reports/{code}/send_now"
15905
+ }
15906
+ }
15907
+ },
15908
+ "pushwoosh.rpc_v2.export_messages.ReportFrequency": {
15909
+ "type": "E",
15910
+ "values": [
15911
+ "REPORT_FREQUENCY_UNSPECIFIED",
15912
+ "REPORT_FREQUENCY_DAILY",
15913
+ "REPORT_FREQUENCY_WEEKLY",
15914
+ "REPORT_FREQUENCY_MONTHLY"
15915
+ ]
15916
+ },
15917
+ "pushwoosh.rpc_v2.export_messages.ReportStatus": {
15918
+ "type": "E",
15919
+ "values": [
15920
+ "REPORT_STATUS_UNSPECIFIED",
15921
+ "REPORT_STATUS_ACTIVE",
15922
+ "REPORT_STATUS_PAUSED"
15923
+ ]
15924
+ },
15925
+ "pushwoosh.rpc_v2.export_messages.ReportSchedule": {
15926
+ "type": "I",
15927
+ "fields": {
15928
+ "frequency": {
15929
+ "type": "pushwoosh.rpc_v2.export_messages.ReportFrequency"
15930
+ },
15931
+ "day": {
15932
+ "type": "number"
15933
+ },
15934
+ "time": {
15935
+ "type": "string"
15936
+ },
15937
+ "timezone": {
15938
+ "type": "string"
15939
+ }
15940
+ }
15941
+ },
15942
+ "pushwoosh.rpc_v2.export_messages.ReportFilters": {
15943
+ "type": "I",
15944
+ "fields": {
15945
+ "channels": {
15946
+ "type": "string",
15947
+ "array": true
15948
+ },
15949
+ "sources": {
15950
+ "type": "string",
15951
+ "array": true
15952
+ },
15953
+ "messageType": {
15954
+ "type": "string"
15955
+ }
15956
+ }
15957
+ },
15958
+ "pushwoosh.rpc_v2.export_messages.ReportForm": {
15959
+ "type": "I",
15960
+ "fields": {
15961
+ "name": {
15962
+ "type": "string"
15963
+ },
15964
+ "filters": {
15965
+ "type": "pushwoosh.rpc_v2.export_messages.ReportFilters"
15966
+ },
15967
+ "schedule": {
15968
+ "type": "pushwoosh.rpc_v2.export_messages.ReportSchedule"
15969
+ },
15970
+ "recipients": {
15971
+ "type": "string",
15972
+ "array": true
15857
15973
  }
15858
15974
  }
15859
15975
  },
15976
+ "pushwoosh.rpc_v2.export_messages.Report": {
15977
+ "type": "I",
15978
+ "fields": {
15979
+ "code": {
15980
+ "type": "string"
15981
+ },
15982
+ "name": {
15983
+ "type": "string"
15984
+ },
15985
+ "filters": {
15986
+ "type": "pushwoosh.rpc_v2.export_messages.ReportFilters"
15987
+ },
15988
+ "schedule": {
15989
+ "type": "pushwoosh.rpc_v2.export_messages.ReportSchedule"
15990
+ },
15991
+ "status": {
15992
+ "type": "pushwoosh.rpc_v2.export_messages.ReportStatus"
15993
+ },
15994
+ "recipients": {
15995
+ "type": "string",
15996
+ "array": true
15997
+ },
15998
+ "nextRunAt": {
15999
+ "type": "Date"
16000
+ },
16001
+ "lastSentAt": {
16002
+ "type": "Date"
16003
+ },
16004
+ "created": {
16005
+ "type": "Date"
16006
+ },
16007
+ "updated": {
16008
+ "type": "Date"
16009
+ }
16010
+ }
16011
+ },
16012
+ "pushwoosh.rpc_v2.export_messages.ListReportsRequest": {
16013
+ "type": "I",
16014
+ "fields": {
16015
+ "applicationCode": {
16016
+ "type": "string"
16017
+ }
16018
+ }
16019
+ },
16020
+ "pushwoosh.rpc_v2.export_messages.ListReportsResponse": {
16021
+ "type": "I",
16022
+ "fields": {
16023
+ "reports": {
16024
+ "type": "pushwoosh.rpc_v2.export_messages.Report",
16025
+ "array": true
16026
+ }
16027
+ }
16028
+ },
16029
+ "pushwoosh.rpc_v2.export_messages.GetReportRequest": {
16030
+ "type": "I",
16031
+ "fields": {
16032
+ "applicationCode": {
16033
+ "type": "string"
16034
+ },
16035
+ "code": {
16036
+ "type": "string"
16037
+ }
16038
+ }
16039
+ },
16040
+ "pushwoosh.rpc_v2.export_messages.GetReportResponse": {
16041
+ "type": "I",
16042
+ "fields": {
16043
+ "report": {
16044
+ "type": "pushwoosh.rpc_v2.export_messages.Report"
16045
+ }
16046
+ }
16047
+ },
16048
+ "pushwoosh.rpc_v2.export_messages.CreateReportRequest": {
16049
+ "type": "I",
16050
+ "fields": {
16051
+ "applicationCode": {
16052
+ "type": "string"
16053
+ },
16054
+ "form": {
16055
+ "type": "pushwoosh.rpc_v2.export_messages.ReportForm"
16056
+ }
16057
+ }
16058
+ },
16059
+ "pushwoosh.rpc_v2.export_messages.CreateReportResponse": {
16060
+ "type": "I",
16061
+ "fields": {
16062
+ "report": {
16063
+ "type": "pushwoosh.rpc_v2.export_messages.Report"
16064
+ }
16065
+ }
16066
+ },
16067
+ "pushwoosh.rpc_v2.export_messages.UpdateReportRequest": {
16068
+ "type": "I",
16069
+ "fields": {
16070
+ "applicationCode": {
16071
+ "type": "string"
16072
+ },
16073
+ "code": {
16074
+ "type": "string"
16075
+ },
16076
+ "form": {
16077
+ "type": "pushwoosh.rpc_v2.export_messages.ReportForm"
16078
+ }
16079
+ }
16080
+ },
16081
+ "pushwoosh.rpc_v2.export_messages.UpdateReportResponse": {
16082
+ "type": "I",
16083
+ "fields": {
16084
+ "report": {
16085
+ "type": "pushwoosh.rpc_v2.export_messages.Report"
16086
+ }
16087
+ }
16088
+ },
16089
+ "pushwoosh.rpc_v2.export_messages.DeleteReportRequest": {
16090
+ "type": "I",
16091
+ "fields": {
16092
+ "applicationCode": {
16093
+ "type": "string"
16094
+ },
16095
+ "code": {
16096
+ "type": "string"
16097
+ }
16098
+ }
16099
+ },
16100
+ "pushwoosh.rpc_v2.export_messages.DeleteReportResponse": {
16101
+ "type": "I",
16102
+ "fields": {}
16103
+ },
16104
+ "pushwoosh.rpc_v2.export_messages.PauseReportRequest": {
16105
+ "type": "I",
16106
+ "fields": {
16107
+ "applicationCode": {
16108
+ "type": "string"
16109
+ },
16110
+ "code": {
16111
+ "type": "string"
16112
+ }
16113
+ }
16114
+ },
16115
+ "pushwoosh.rpc_v2.export_messages.PauseReportResponse": {
16116
+ "type": "I",
16117
+ "fields": {
16118
+ "report": {
16119
+ "type": "pushwoosh.rpc_v2.export_messages.Report"
16120
+ }
16121
+ }
16122
+ },
16123
+ "pushwoosh.rpc_v2.export_messages.ResumeReportRequest": {
16124
+ "type": "I",
16125
+ "fields": {
16126
+ "applicationCode": {
16127
+ "type": "string"
16128
+ },
16129
+ "code": {
16130
+ "type": "string"
16131
+ }
16132
+ }
16133
+ },
16134
+ "pushwoosh.rpc_v2.export_messages.ResumeReportResponse": {
16135
+ "type": "I",
16136
+ "fields": {
16137
+ "report": {
16138
+ "type": "pushwoosh.rpc_v2.export_messages.Report"
16139
+ }
16140
+ }
16141
+ },
16142
+ "pushwoosh.rpc_v2.export_messages.SendReportNowRequest": {
16143
+ "type": "I",
16144
+ "fields": {
16145
+ "applicationCode": {
16146
+ "type": "string"
16147
+ },
16148
+ "code": {
16149
+ "type": "string"
16150
+ }
16151
+ }
16152
+ },
16153
+ "pushwoosh.rpc_v2.export_messages.SendReportNowResponse": {
16154
+ "type": "I",
16155
+ "fields": {}
16156
+ },
15860
16157
  "pushwoosh.export_messages.v2.TaskType": {
15861
16158
  "type": "E",
15862
16159
  "values": [
@@ -15,6 +15,14 @@ export type ExportStatisticsService_StatisticsExport = RpcMethod<pushwoosh_expor
15
15
  export type ExportStatisticsService_StatisticsExportStatus = RpcMethod<pushwoosh_export_messages_v2_StatusRequest, pushwoosh_export_messages_v2_StatusResponse>;
16
16
  export type ExportStatisticsService_StatisticsExportResult = RpcMethod<pushwoosh_export_messages_v2_ResultRequest, pushwoosh_export_messages_v2_ResultResponse>;
17
17
  export type ExportStatisticsService_StatisticsExportLastTasks = RpcMethod<pushwoosh_export_messages_v2_GetLastTasksRequest, pushwoosh_export_messages_v2_GetLastTasksResponse>;
18
+ export type ExportStatisticsService_ListReports = RpcMethod<ListReportsRequest, ListReportsResponse>;
19
+ export type ExportStatisticsService_GetReport = RpcMethod<GetReportRequest, GetReportResponse>;
20
+ export type ExportStatisticsService_CreateReport = RpcMethod<CreateReportRequest, CreateReportResponse>;
21
+ export type ExportStatisticsService_UpdateReport = RpcMethod<UpdateReportRequest, UpdateReportResponse>;
22
+ export type ExportStatisticsService_DeleteReport = RpcMethod<DeleteReportRequest, DeleteReportResponse>;
23
+ export type ExportStatisticsService_PauseReport = RpcMethod<PauseReportRequest, PauseReportResponse>;
24
+ export type ExportStatisticsService_ResumeReport = RpcMethod<ResumeReportRequest, ResumeReportResponse>;
25
+ export type ExportStatisticsService_SendReportNow = RpcMethod<SendReportNowRequest, SendReportNowResponse>;
18
26
  export interface ExportStatisticsService {
19
27
  /** Starts an asynchronous export or computation task (CSV of message history, recipients, bounced emails, journey users, retention, or create-segment-from-message) and returns its numeric task uid. The task type and its args select what is produced; poll get_export_task_status, then fetch get_export_task_result. */
20
28
  Export: ExportStatisticsService_Export;
@@ -35,4 +43,128 @@ export interface ExportStatisticsService {
35
43
  StatisticsExportResult: ExportStatisticsService_StatisticsExportResult;
36
44
  /** Recent statistics export tasks of the application. Same right as their Export. */
37
45
  StatisticsExportLastTasks: ExportStatisticsService_StatisticsExportLastTasks;
46
+ /** Auto-reports: the CSV of the Overview export emailed on a schedule to up to 25 recipients. Lists them, newest first. */
47
+ ListReports: ExportStatisticsService_ListReports;
48
+ /** Returns one auto-report. */
49
+ GetReport: ExportStatisticsService_GetReport;
50
+ /** Creates an active auto-report. An application holds at most 25 of them, and no two share a name in any case. */
51
+ CreateReport: ExportStatisticsService_CreateReport;
52
+ /** Replaces the name, filters, schedule and recipients of an auto-report; the status is kept. */
53
+ UpdateReport: ExportStatisticsService_UpdateReport;
54
+ /** Deletes an auto-report; its recipients stop receiving it. */
55
+ DeleteReport: ExportStatisticsService_DeleteReport;
56
+ /** Stops sending an auto-report until it is resumed. */
57
+ PauseReport: ExportStatisticsService_PauseReport;
58
+ /** Resumes a paused auto-report from its next scheduled time. */
59
+ ResumeReport: ExportStatisticsService_ResumeReport;
60
+ /** Sends the report now for the same period as its schedule, outside the schedule. Once an hour per report. */
61
+ SendReportNow: ExportStatisticsService_SendReportNow;
38
62
  }
63
+ export type ReportFrequency = 'REPORT_FREQUENCY_UNSPECIFIED' | 'REPORT_FREQUENCY_DAILY' | 'REPORT_FREQUENCY_WEEKLY' | 'REPORT_FREQUENCY_MONTHLY';
64
+ export type ReportStatus = 'REPORT_STATUS_UNSPECIFIED' | 'REPORT_STATUS_ACTIVE' | 'REPORT_STATUS_PAUSED';
65
+ /** Daily covers yesterday, weekly the last 7 full days, monthly the previous calendar month. */
66
+ export type ReportSchedule = {
67
+ frequency: ReportFrequency;
68
+ /** Weekly: 1-7 from Monday. Monthly: 1-31, a day past the end of a month sends on its last day. Unused for daily. */
69
+ day: number;
70
+ /** HH:MM in timezone */
71
+ time: string;
72
+ /** IANA name, e.g. Europe/Berlin */
73
+ timezone: string;
74
+ };
75
+ /** The filters of the unified messages export. */
76
+ export type ReportFilters = {
77
+ /** "push" and "email", at least one */
78
+ channels: string[];
79
+ /** "one-time" and "journey", at least one */
80
+ sources: string[];
81
+ /** "marketing" or "transactional"; empty keeps both */
82
+ messageType: string;
83
+ };
84
+ export type ReportForm = {
85
+ name: string;
86
+ filters: ReportFilters;
87
+ schedule: ReportSchedule;
88
+ /** 1-25 addresses */
89
+ recipients: string[];
90
+ };
91
+ export type Report = {
92
+ /** Report code (XXXXX-XXXXX). */
93
+ code: string;
94
+ name: string;
95
+ filters: ReportFilters;
96
+ schedule: ReportSchedule;
97
+ status: ReportStatus;
98
+ recipients: string[];
99
+ /** empty while paused */
100
+ nextRunAt: Date;
101
+ lastSentAt: Date;
102
+ created: Date;
103
+ updated: Date;
104
+ };
105
+ export type ListReportsRequest = {
106
+ /** Application code (XXXXX-XXXXX). */
107
+ applicationCode?: string;
108
+ };
109
+ export type ListReportsResponse = {
110
+ reports: Report[];
111
+ };
112
+ export type GetReportRequest = {
113
+ /** Application code (XXXXX-XXXXX). */
114
+ applicationCode?: string;
115
+ /** Report code (XXXXX-XXXXX). */
116
+ code?: string;
117
+ };
118
+ export type GetReportResponse = {
119
+ report: Report;
120
+ };
121
+ export type CreateReportRequest = {
122
+ /** Application code (XXXXX-XXXXX). */
123
+ applicationCode?: string;
124
+ form?: ReportForm;
125
+ };
126
+ export type CreateReportResponse = {
127
+ report: Report;
128
+ };
129
+ export type UpdateReportRequest = {
130
+ /** Application code (XXXXX-XXXXX). */
131
+ applicationCode?: string;
132
+ /** Report code (XXXXX-XXXXX). */
133
+ code?: string;
134
+ form?: ReportForm;
135
+ };
136
+ export type UpdateReportResponse = {
137
+ report: Report;
138
+ };
139
+ export type DeleteReportRequest = {
140
+ /** Application code (XXXXX-XXXXX). */
141
+ applicationCode?: string;
142
+ /** Report code (XXXXX-XXXXX). */
143
+ code?: string;
144
+ };
145
+ export type DeleteReportResponse = {};
146
+ export type PauseReportRequest = {
147
+ /** Application code (XXXXX-XXXXX). */
148
+ applicationCode?: string;
149
+ /** Report code (XXXXX-XXXXX). */
150
+ code?: string;
151
+ };
152
+ export type PauseReportResponse = {
153
+ report: Report;
154
+ };
155
+ export type ResumeReportRequest = {
156
+ /** Application code (XXXXX-XXXXX). */
157
+ applicationCode?: string;
158
+ /** Report code (XXXXX-XXXXX). */
159
+ code?: string;
160
+ };
161
+ export type ResumeReportResponse = {
162
+ report: Report;
163
+ };
164
+ export type SendReportNowRequest = {
165
+ /** Application code (XXXXX-XXXXX). */
166
+ applicationCode?: string;
167
+ /** Report code (XXXXX-XXXXX). */
168
+ code?: string;
169
+ };
170
+ export type SendReportNowResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.453",
3
+ "version": "0.2.455",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",