@pushwoosh/rpc-v2-http-api-data 0.1.394
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/commonTypes.d.ts +1 -0
- package/commonTypes.js +2 -0
- package/data-bundle.js +1 -0
- package/data.d.ts +2 -0
- package/data.js +16898 -0
- package/google_api.d.ts +33 -0
- package/google_api.js +2 -0
- package/google_protobuf.d.ts +251 -0
- package/google_protobuf.js +2 -0
- package/index.d.ts +81 -0
- package/index.js +2 -0
- package/package.json +18 -0
- package/pushwoosh_channels_messagingApi_v2.d.ts +365 -0
- package/pushwoosh_channels_messagingApi_v2.js +2 -0
- package/pushwoosh_objects_filters_v1.d.ts +1223 -0
- package/pushwoosh_objects_filters_v1.js +2 -0
- package/pushwoosh_objects_restrictionValues_v1.d.ts +1694 -0
- package/pushwoosh_objects_restrictionValues_v1.js +2 -0
- package/pushwoosh_rpc_v2_account_groups.d.ts +46 -0
- package/pushwoosh_rpc_v2_account_groups.js +2 -0
- package/pushwoosh_rpc_v2_account_invites.d.ts +28 -0
- package/pushwoosh_rpc_v2_account_invites.js +2 -0
- package/pushwoosh_rpc_v2_accounts.d.ts +268 -0
- package/pushwoosh_rpc_v2_accounts.js +2 -0
- package/pushwoosh_rpc_v2_accounts_get_auth_info.d.ts +90 -0
- package/pushwoosh_rpc_v2_accounts_get_auth_info.js +2 -0
- package/pushwoosh_rpc_v2_api_tokens.d.ts +109 -0
- package/pushwoosh_rpc_v2_api_tokens.js +2 -0
- package/pushwoosh_rpc_v2_applications.d.ts +98 -0
- package/pushwoosh_rpc_v2_applications.js +2 -0
- package/pushwoosh_rpc_v2_applications_configurations.d.ts +119 -0
- package/pushwoosh_rpc_v2_applications_configurations.js +2 -0
- package/pushwoosh_rpc_v2_applications_groups.d.ts +52 -0
- package/pushwoosh_rpc_v2_applications_groups.js +2 -0
- package/pushwoosh_rpc_v2_applications_info.d.ts +22 -0
- package/pushwoosh_rpc_v2_applications_info.js +2 -0
- package/pushwoosh_rpc_v2_campaigns.d.ts +54 -0
- package/pushwoosh_rpc_v2_campaigns.js +2 -0
- package/pushwoosh_rpc_v2_categories.d.ts +19 -0
- package/pushwoosh_rpc_v2_categories.js +2 -0
- package/pushwoosh_rpc_v2_customer_journey.d.ts +28 -0
- package/pushwoosh_rpc_v2_customer_journey.js +2 -0
- package/pushwoosh_rpc_v2_deeplinks.d.ts +55 -0
- package/pushwoosh_rpc_v2_deeplinks.js +2 -0
- package/pushwoosh_rpc_v2_devices.d.ts +11 -0
- package/pushwoosh_rpc_v2_devices.js +2 -0
- package/pushwoosh_rpc_v2_emails_configurations.d.ts +39 -0
- package/pushwoosh_rpc_v2_emails_configurations.js +2 -0
- package/pushwoosh_rpc_v2_events.d.ts +149 -0
- package/pushwoosh_rpc_v2_events.js +2 -0
- package/pushwoosh_rpc_v2_filters.d.ts +138 -0
- package/pushwoosh_rpc_v2_filters.js +2 -0
- package/pushwoosh_rpc_v2_frequency_capping.d.ts +39 -0
- package/pushwoosh_rpc_v2_frequency_capping.js +2 -0
- package/pushwoosh_rpc_v2_geozones.d.ts +96 -0
- package/pushwoosh_rpc_v2_geozones.js +2 -0
- package/pushwoosh_rpc_v2_geozones_clusters.d.ts +40 -0
- package/pushwoosh_rpc_v2_geozones_clusters.js +2 -0
- package/pushwoosh_rpc_v2_integrations.d.ts +42 -0
- package/pushwoosh_rpc_v2_integrations.js +2 -0
- package/pushwoosh_rpc_v2_messages.d.ts +139 -0
- package/pushwoosh_rpc_v2_messages.js +2 -0
- package/pushwoosh_rpc_v2_presets.d.ts +139 -0
- package/pushwoosh_rpc_v2_presets.js +2 -0
- package/pushwoosh_rpc_v2_referral_partners.d.ts +66 -0
- package/pushwoosh_rpc_v2_referral_partners.js +2 -0
- package/pushwoosh_rpc_v2_restrictions.d.ts +8 -0
- package/pushwoosh_rpc_v2_restrictions.js +2 -0
- package/pushwoosh_rpc_v2_rich_medias.d.ts +189 -0
- package/pushwoosh_rpc_v2_rich_medias.js +2 -0
- package/pushwoosh_rpc_v2_segment_statistics.d.ts +21 -0
- package/pushwoosh_rpc_v2_segment_statistics.js +2 -0
- package/pushwoosh_rpc_v2_sms_presets.d.ts +60 -0
- package/pushwoosh_rpc_v2_sms_presets.js +2 -0
- package/pushwoosh_rpc_v2_statistics_dashboards.d.ts +47 -0
- package/pushwoosh_rpc_v2_statistics_dashboards.js +2 -0
- package/pushwoosh_rpc_v2_statistics_dashboards_widgets.d.ts +59 -0
- package/pushwoosh_rpc_v2_statistics_dashboards_widgets.js +2 -0
- package/pushwoosh_rpc_v2_tags.d.ts +67 -0
- package/pushwoosh_rpc_v2_tags.js +2 -0
- package/pushwoosh_rpc_v2_test_devices.d.ts +41 -0
- package/pushwoosh_rpc_v2_test_devices.js +2 -0
- package/pushwoosh_rpc_v2_users.d.ts +34 -0
- package/pushwoosh_rpc_v2_users.js +2 -0
- package/pushwoosh_rpc_v2_whatsapp.d.ts +22 -0
- package/pushwoosh_rpc_v2_whatsapp.js +2 -0
- package/pushwoosh_rpc_v2_whatsapp_presets.d.ts +34 -0
- package/pushwoosh_rpc_v2_whatsapp_presets.js +2 -0
- package/types.d.ts +46 -0
- package/types.js +1 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface ReferralPartnerService {
|
|
2
|
+
Get(request: GetRequest): Promise<GetResponse>;
|
|
3
|
+
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
4
|
+
GetWithdrawalsHistory(request: GetWithdrawalsHistoryRequest): Promise<GetWithdrawalsHistoryResponse>;
|
|
5
|
+
GetTotalStatistics(request: GetTotalStatisticsRequest): Promise<GetTotalStatisticsResponse>;
|
|
6
|
+
UpdateWithdrawalInfo(request: UpdateWithdrawalInfoRequest): Promise<UpdateWithdrawalInfoResponse>;
|
|
7
|
+
CreateWithdrawal(request: CreateWithdrawalRequest): Promise<CreateWithdrawalResponse>;
|
|
8
|
+
GetWithdrawalAdditionalInfo(request: GetWithdrawalAdditionalInfoRequest): Promise<GetWithdrawalAdditionalInfoResponse>;
|
|
9
|
+
GetCurrencies(request: GetCurrenciesRequest): Promise<GetCurrenciesResponse>;
|
|
10
|
+
}
|
|
11
|
+
export type GetRequest = {};
|
|
12
|
+
export type GetResponse_Status = 'UNKNOWN' | 'ACTIVE' | 'BLOCKED';
|
|
13
|
+
export type GetResponse = {
|
|
14
|
+
referralHash: string;
|
|
15
|
+
withdrawalInfo: string;
|
|
16
|
+
status: GetResponse_Status;
|
|
17
|
+
};
|
|
18
|
+
export type CreateRequest = {};
|
|
19
|
+
export type CreateResponse = {};
|
|
20
|
+
export type GetWithdrawalsHistoryRequest = {};
|
|
21
|
+
export type GetWithdrawalsHistoryResponse_Status = 'UNKNOWN' | 'CREATED' | 'IN_PROCESS' | 'SUCCESS' | 'ERROR';
|
|
22
|
+
export type GetWithdrawalsHistoryResponse_Withdrawal = {
|
|
23
|
+
date: Date;
|
|
24
|
+
status: GetWithdrawalsHistoryResponse_Status;
|
|
25
|
+
withdrawalInfo: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
};
|
|
28
|
+
export type GetWithdrawalsHistoryResponse = {
|
|
29
|
+
withdrawals: GetWithdrawalsHistoryResponse_Withdrawal[];
|
|
30
|
+
};
|
|
31
|
+
export type GetTotalStatisticsRequest = {};
|
|
32
|
+
export type GetTotalStatisticsResponse = {
|
|
33
|
+
expectedRevenues: number;
|
|
34
|
+
availableRevenues: number;
|
|
35
|
+
totalRevenues: number;
|
|
36
|
+
membersCount: number;
|
|
37
|
+
};
|
|
38
|
+
export type UpdateWithdrawalInfoRequest = {
|
|
39
|
+
withdrawalInfo?: string;
|
|
40
|
+
};
|
|
41
|
+
export type UpdateWithdrawalInfoResponse = {};
|
|
42
|
+
export type CreateWithdrawalRequest = {
|
|
43
|
+
amount?: number;
|
|
44
|
+
};
|
|
45
|
+
export type CreateWithdrawalResponse = {};
|
|
46
|
+
export type GetWithdrawalAdditionalInfoRequest = {
|
|
47
|
+
amount?: number;
|
|
48
|
+
currency?: string;
|
|
49
|
+
withForm?: boolean;
|
|
50
|
+
};
|
|
51
|
+
export type GetWithdrawalAdditionalInfoResponse = {
|
|
52
|
+
totalFee: number;
|
|
53
|
+
sourceAmount: number;
|
|
54
|
+
targetAmount: number;
|
|
55
|
+
targetCurrency: string;
|
|
56
|
+
form: string;
|
|
57
|
+
};
|
|
58
|
+
export type GetCurrenciesRequest = {};
|
|
59
|
+
export type GetCurrenciesResponse_Currency = {
|
|
60
|
+
code: string;
|
|
61
|
+
name: string;
|
|
62
|
+
supportsDecimals: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type GetCurrenciesResponse = {
|
|
65
|
+
currencies: GetCurrenciesResponse_Currency[];
|
|
66
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RestrictionValue as pushwoosh_objects_restrictionValues_v1_RestrictionValue } from './pushwoosh_objects_restrictionValues_v1';
|
|
2
|
+
export interface RestrictionsService {
|
|
3
|
+
GetRestrictionValues(request: GetRestrictionValuesRequest): Promise<GetRestrictionValuesResponse>;
|
|
4
|
+
}
|
|
5
|
+
export type GetRestrictionValuesRequest = {};
|
|
6
|
+
export type GetRestrictionValuesResponse = {
|
|
7
|
+
restrictionValues: pushwoosh_objects_restrictionValues_v1_RestrictionValue;
|
|
8
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export interface RichMediaService {
|
|
2
|
+
Get(request: GetRequest): Promise<GetResponse>;
|
|
3
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
4
|
+
GetDetailedStatistics(request: GetDetailedStatisticsRequest): Promise<GetDetailedStatisticsResponse>;
|
|
5
|
+
GetDetailedActionStatistics(request: GetDetailedActionStatisticsRequest): Promise<GetDetailedActionStatisticsResponse>;
|
|
6
|
+
GetSendChannels(request: GetSendChannelsRequest): Promise<GetSendChannelsResponse>;
|
|
7
|
+
GetDevices(request: GetDevicesRequest): Promise<GetDevicesResponse>;
|
|
8
|
+
GetEvents(request: GetEventsRequest): Promise<GetEventsResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type ActionType = 'ACTION_TYPE_UNSPECIFIED' | 'ELEMENT_CLICK' | 'FORM_SUBMIT' | 'OPEN' | 'CLOSE';
|
|
11
|
+
export type RichMediaSendChannel = 'RichMediaSendChannel_UNDEFINED' | 'IN_APP' | 'CJ' | 'PUSH';
|
|
12
|
+
export type AggregationInterval = 'HOUR' | 'DAY' | 'WEEK' | 'MONTH';
|
|
13
|
+
export type Metrics_SessionDuration = {
|
|
14
|
+
secondFrom: number;
|
|
15
|
+
secondTo: number;
|
|
16
|
+
count: number;
|
|
17
|
+
};
|
|
18
|
+
export type Metrics = {
|
|
19
|
+
shown: number;
|
|
20
|
+
interaction: number;
|
|
21
|
+
sessionDurations: Metrics_SessionDuration[];
|
|
22
|
+
skipped: number;
|
|
23
|
+
};
|
|
24
|
+
export type RichMedia_CreatedType = 'UNDEFINED' | 'TEMPLATE' | 'BUILDER';
|
|
25
|
+
export type RichMedia = {
|
|
26
|
+
code: string;
|
|
27
|
+
name: string;
|
|
28
|
+
content: string;
|
|
29
|
+
params: string;
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
isSystem: boolean;
|
|
32
|
+
isGdpr: boolean;
|
|
33
|
+
application: string;
|
|
34
|
+
defaultLanguage: string;
|
|
35
|
+
hasRightAceModify: boolean;
|
|
36
|
+
createdDate: Date;
|
|
37
|
+
updateDate: Date;
|
|
38
|
+
createdType: RichMedia_CreatedType;
|
|
39
|
+
categories: string[];
|
|
40
|
+
};
|
|
41
|
+
export type GetRequest = {
|
|
42
|
+
application?: string;
|
|
43
|
+
code?: string;
|
|
44
|
+
};
|
|
45
|
+
export type GetResponse = {
|
|
46
|
+
richMedia: RichMedia;
|
|
47
|
+
};
|
|
48
|
+
export type ListRequest_ListView = 'LIST' | 'TILES';
|
|
49
|
+
export type ListRequest_OrderBy = 'CREATED_DATE';
|
|
50
|
+
export type ListRequest_OrderType = 'ASC' | 'DESC';
|
|
51
|
+
export type ListRequest = {
|
|
52
|
+
search?: string;
|
|
53
|
+
application?: string;
|
|
54
|
+
viewType?: ListRequest_ListView;
|
|
55
|
+
withMetrics?: boolean;
|
|
56
|
+
withContent?: boolean;
|
|
57
|
+
searchByCategory?: string[];
|
|
58
|
+
codes?: string[];
|
|
59
|
+
orderBy?: ListRequest_OrderBy;
|
|
60
|
+
orderType?: ListRequest_OrderType;
|
|
61
|
+
page?: number;
|
|
62
|
+
perPage?: number;
|
|
63
|
+
};
|
|
64
|
+
export type ListResponse_Item = {
|
|
65
|
+
richMedia: RichMedia;
|
|
66
|
+
metrics: Metrics;
|
|
67
|
+
sendChannels: RichMediaSendChannel[];
|
|
68
|
+
};
|
|
69
|
+
export type ListResponse = {
|
|
70
|
+
items: ListResponse_Item[];
|
|
71
|
+
total: number;
|
|
72
|
+
};
|
|
73
|
+
export type GetDetailedStatisticsRequest = {
|
|
74
|
+
code?: string;
|
|
75
|
+
application?: string;
|
|
76
|
+
dateFrom?: Date;
|
|
77
|
+
dateTo?: Date;
|
|
78
|
+
sendChannels?: RichMediaSendChannel[];
|
|
79
|
+
platforms?: number[];
|
|
80
|
+
messageCode?: string;
|
|
81
|
+
campaignCode?: string;
|
|
82
|
+
inAppCode?: string;
|
|
83
|
+
aggregationInterval?: AggregationInterval;
|
|
84
|
+
};
|
|
85
|
+
export type GetDetailedStatisticsResponse_MetricsWithTimestamp = {
|
|
86
|
+
timestamp: Date;
|
|
87
|
+
platform: number;
|
|
88
|
+
metric: Metrics;
|
|
89
|
+
};
|
|
90
|
+
export type GetDetailedStatisticsResponse = {
|
|
91
|
+
items: GetDetailedStatisticsResponse_MetricsWithTimestamp[];
|
|
92
|
+
totals: GetDetailedStatisticsResponse_MetricsWithTimestamp[];
|
|
93
|
+
};
|
|
94
|
+
export type GetDetailedActionStatisticsRequest = {
|
|
95
|
+
code?: string;
|
|
96
|
+
application?: string;
|
|
97
|
+
dateFrom?: Date;
|
|
98
|
+
dateTo?: Date;
|
|
99
|
+
sendChannels?: RichMediaSendChannel[];
|
|
100
|
+
platforms?: number[];
|
|
101
|
+
messageCode?: string;
|
|
102
|
+
campaignCode?: string;
|
|
103
|
+
inAppCode?: string;
|
|
104
|
+
aggregationInterval?: AggregationInterval;
|
|
105
|
+
};
|
|
106
|
+
export type Action_ActionMetricsWithTimestamp = {
|
|
107
|
+
timestamp: Date;
|
|
108
|
+
platform: number;
|
|
109
|
+
count: number;
|
|
110
|
+
};
|
|
111
|
+
export type Action = {
|
|
112
|
+
elementId: string;
|
|
113
|
+
elementPath: string;
|
|
114
|
+
isSkipped: boolean;
|
|
115
|
+
actionType: ActionType;
|
|
116
|
+
metrics: Action_ActionMetricsWithTimestamp[];
|
|
117
|
+
};
|
|
118
|
+
export type GetDetailedActionStatisticsResponse = {
|
|
119
|
+
items: Action[];
|
|
120
|
+
totals: Action[];
|
|
121
|
+
};
|
|
122
|
+
export type GetSendChannelsRequest = {
|
|
123
|
+
code?: string;
|
|
124
|
+
application?: string;
|
|
125
|
+
dateFrom?: Date;
|
|
126
|
+
dateTo?: Date;
|
|
127
|
+
sendChannels?: RichMediaSendChannel[];
|
|
128
|
+
platforms?: number[];
|
|
129
|
+
messageCode?: string;
|
|
130
|
+
campaignCode?: string;
|
|
131
|
+
inAppCode?: string;
|
|
132
|
+
page?: number;
|
|
133
|
+
perPage?: number;
|
|
134
|
+
};
|
|
135
|
+
export type GetSendChannelsResponse_SendChannel = {
|
|
136
|
+
id: number;
|
|
137
|
+
code: string;
|
|
138
|
+
title: string;
|
|
139
|
+
journeyTitle: string;
|
|
140
|
+
startDate: Date;
|
|
141
|
+
channel: RichMediaSendChannel;
|
|
142
|
+
triggeredCount: number;
|
|
143
|
+
};
|
|
144
|
+
export type GetSendChannelsResponse = {
|
|
145
|
+
total: number;
|
|
146
|
+
items: GetSendChannelsResponse_SendChannel[];
|
|
147
|
+
};
|
|
148
|
+
export type GetDevicesRequest = {
|
|
149
|
+
code?: string;
|
|
150
|
+
application?: string;
|
|
151
|
+
dateFrom?: Date;
|
|
152
|
+
dateTo?: Date;
|
|
153
|
+
sendChannels?: RichMediaSendChannel[];
|
|
154
|
+
platforms?: number[];
|
|
155
|
+
messageCode?: string;
|
|
156
|
+
campaignCode?: string;
|
|
157
|
+
inAppCode?: string;
|
|
158
|
+
page?: number;
|
|
159
|
+
perPage?: number;
|
|
160
|
+
};
|
|
161
|
+
export type GetDevicesResponse_Device = {
|
|
162
|
+
hwid: string;
|
|
163
|
+
platform: number;
|
|
164
|
+
openTime: Date;
|
|
165
|
+
};
|
|
166
|
+
export type GetDevicesResponse = {
|
|
167
|
+
total: number;
|
|
168
|
+
items: GetDevicesResponse_Device[];
|
|
169
|
+
};
|
|
170
|
+
export type GetEventsRequest = {
|
|
171
|
+
code?: string;
|
|
172
|
+
application?: string;
|
|
173
|
+
dateFrom?: Date;
|
|
174
|
+
dateTo?: Date;
|
|
175
|
+
sendChannels?: RichMediaSendChannel[];
|
|
176
|
+
platforms?: number[];
|
|
177
|
+
messageCode?: string;
|
|
178
|
+
campaignCode?: string;
|
|
179
|
+
inAppCode?: string;
|
|
180
|
+
};
|
|
181
|
+
export type GetEventsResponse_EventStatistics = {
|
|
182
|
+
name: string;
|
|
183
|
+
platform: number;
|
|
184
|
+
triggeredCount: number;
|
|
185
|
+
uniqTriggeredCount: number;
|
|
186
|
+
};
|
|
187
|
+
export type GetEventsResponse = {
|
|
188
|
+
items: GetEventsResponse_EventStatistics[];
|
|
189
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface SegmentStatisticsService {
|
|
2
|
+
Prepare(request: PrepareRequest): Promise<PrepareResponse>;
|
|
3
|
+
Status(request: StatusRequest): Promise<StatusResponse>;
|
|
4
|
+
}
|
|
5
|
+
export type PrepareRequest = {
|
|
6
|
+
segments?: string[];
|
|
7
|
+
application?: string;
|
|
8
|
+
};
|
|
9
|
+
export type PrepareResponse = {};
|
|
10
|
+
export type StatusRequest = {
|
|
11
|
+
application?: string;
|
|
12
|
+
};
|
|
13
|
+
export type StatusResponse_Status = 'unknown' | 'prepared' | 'not_prepared' | 'in_process' | 'failed';
|
|
14
|
+
export type StatusResponse_SegmentStatus = {
|
|
15
|
+
segment: string;
|
|
16
|
+
status: StatusResponse_Status;
|
|
17
|
+
lastUpdatedTime: Date;
|
|
18
|
+
};
|
|
19
|
+
export type StatusResponse = {
|
|
20
|
+
segments: StatusResponse_SegmentStatus[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface smsPresetsService {
|
|
2
|
+
List(request: ListSmsPresetsRequest): Promise<ListSmsPresetsResponse>;
|
|
3
|
+
Get(request: GetSmsPresetRequest): Promise<GetSmsPresetResponse>;
|
|
4
|
+
Create(request: CreateSmsPresetRequest): Promise<CreateSmsPresetResponse>;
|
|
5
|
+
Update(request: UpdateSmsPresetRequest): Promise<UpdateSmsPresetResponse>;
|
|
6
|
+
Delete(request: DeleteSmsPresetRequest): Promise<DeleteSmsPresetResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type ListSmsPresetsRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
9
|
+
export type ListSmsPresetsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
10
|
+
export type ListSmsPresetsRequest = {
|
|
11
|
+
application?: string;
|
|
12
|
+
orderBy?: ListSmsPresetsRequest_OrderBy;
|
|
13
|
+
orderDirection?: ListSmsPresetsRequest_OrderDirection;
|
|
14
|
+
page?: number;
|
|
15
|
+
perPage?: number;
|
|
16
|
+
searchByName?: string;
|
|
17
|
+
searchByCategory?: string[];
|
|
18
|
+
};
|
|
19
|
+
export type SmsPreset = {
|
|
20
|
+
name: string;
|
|
21
|
+
code: string;
|
|
22
|
+
categories: string[];
|
|
23
|
+
localizedContent: Record<string, string>;
|
|
24
|
+
created: Date;
|
|
25
|
+
updated: Date;
|
|
26
|
+
};
|
|
27
|
+
export type ListSmsPresetsResponse = {
|
|
28
|
+
presets: SmsPreset[];
|
|
29
|
+
page: number;
|
|
30
|
+
perPage: number;
|
|
31
|
+
total: number;
|
|
32
|
+
};
|
|
33
|
+
export type GetSmsPresetRequest = {
|
|
34
|
+
code?: string;
|
|
35
|
+
};
|
|
36
|
+
export type GetSmsPresetResponse = {
|
|
37
|
+
preset: SmsPreset;
|
|
38
|
+
};
|
|
39
|
+
export type CreateSmsPresetRequest = {
|
|
40
|
+
application?: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
categories?: string[];
|
|
43
|
+
localizedContent?: Record<string, string>;
|
|
44
|
+
};
|
|
45
|
+
export type CreateSmsPresetResponse = {
|
|
46
|
+
preset: SmsPreset;
|
|
47
|
+
};
|
|
48
|
+
export type UpdateSmsPresetRequest = {
|
|
49
|
+
code?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
categories?: string[];
|
|
52
|
+
localizedContent?: Record<string, string>;
|
|
53
|
+
};
|
|
54
|
+
export type UpdateSmsPresetResponse = {
|
|
55
|
+
preset: SmsPreset;
|
|
56
|
+
};
|
|
57
|
+
export type DeleteSmsPresetRequest = {
|
|
58
|
+
code?: string;
|
|
59
|
+
};
|
|
60
|
+
export type DeleteSmsPresetResponse = {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Widget as pushwoosh_rpc_v2_statistics_dashboards_widgets_Widget } from './pushwoosh_rpc_v2_statistics_dashboards_widgets';
|
|
2
|
+
export interface StatisticsDashboardsService {
|
|
3
|
+
Load(request: LoadDashboardRequest): Promise<Dashboard>;
|
|
4
|
+
List(request: ListDashboardRequest): Promise<ListDashboardResponse>;
|
|
5
|
+
Create(request: CreateDashboardRequest): Promise<CreateDashboardResponse>;
|
|
6
|
+
Update(request: UpdateDashboardRequest): Promise<UpdateDashboardResponse>;
|
|
7
|
+
Delete(request: DeleteDashboardRequest): Promise<DeleteDashboardResponse>;
|
|
8
|
+
WidgetsList(request: WidgetsListRequest): Promise<WidgetsListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type Dashboard = {
|
|
11
|
+
name: string;
|
|
12
|
+
code: string;
|
|
13
|
+
created: Date;
|
|
14
|
+
updated: Date;
|
|
15
|
+
};
|
|
16
|
+
export type LoadDashboardRequest = {
|
|
17
|
+
code?: string;
|
|
18
|
+
};
|
|
19
|
+
export type ListDashboardRequest = {
|
|
20
|
+
application?: string;
|
|
21
|
+
searchByName?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ListDashboardResponse = {
|
|
24
|
+
dashboards: Dashboard[];
|
|
25
|
+
};
|
|
26
|
+
export type CreateDashboardRequest = {
|
|
27
|
+
name?: string;
|
|
28
|
+
application?: string;
|
|
29
|
+
};
|
|
30
|
+
export type CreateDashboardResponse = {
|
|
31
|
+
dashboard: Dashboard;
|
|
32
|
+
};
|
|
33
|
+
export type UpdateDashboardRequest = {
|
|
34
|
+
code?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
};
|
|
37
|
+
export type UpdateDashboardResponse = {};
|
|
38
|
+
export type DeleteDashboardRequest = {
|
|
39
|
+
code?: string;
|
|
40
|
+
};
|
|
41
|
+
export type DeleteDashboardResponse = {};
|
|
42
|
+
export type WidgetsListRequest = {
|
|
43
|
+
code?: string;
|
|
44
|
+
};
|
|
45
|
+
export type WidgetsListResponse = {
|
|
46
|
+
widgets: pushwoosh_rpc_v2_statistics_dashboards_widgets_Widget[];
|
|
47
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface StatisticsDashboardsWidgetsService {
|
|
2
|
+
Load(request: LoadDashboardWidgetRequest): Promise<Widget>;
|
|
3
|
+
Create(request: CreateDashboardWidgetRequest): Promise<CreateDashboardWidgetResponse>;
|
|
4
|
+
Update(request: UpdateDashboardWidgetRequest): Promise<UpdateDashboardWidgetResponse>;
|
|
5
|
+
Delete(request: DeleteDashboardWidgetRequest): Promise<DeleteDashboardWidgetResponse>;
|
|
6
|
+
GetCategoryTree(request: GetCategoryTreeRequest): Promise<GetCategoryTreeResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type WidgetType = 'WIDGET_TYPE_UNKNOWN' | 'LINE' | 'BARS' | 'PIE' | 'NUMBER' | 'FUNNEL' | 'RETENTION';
|
|
9
|
+
export type Widget = {
|
|
10
|
+
name: string;
|
|
11
|
+
code: string;
|
|
12
|
+
created: Date;
|
|
13
|
+
updated: Date;
|
|
14
|
+
type: WidgetType;
|
|
15
|
+
size: string;
|
|
16
|
+
params: string;
|
|
17
|
+
indexNumber: number;
|
|
18
|
+
};
|
|
19
|
+
export type LoadDashboardWidgetRequest = {
|
|
20
|
+
code?: string;
|
|
21
|
+
};
|
|
22
|
+
export type CreateDashboardWidgetRequest = {
|
|
23
|
+
application?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
type?: WidgetType;
|
|
26
|
+
size?: string;
|
|
27
|
+
params?: string;
|
|
28
|
+
dashboard?: string;
|
|
29
|
+
indexNumber?: number;
|
|
30
|
+
};
|
|
31
|
+
export type CreateDashboardWidgetResponse = {
|
|
32
|
+
widget: Widget;
|
|
33
|
+
};
|
|
34
|
+
export type UpdateDashboardWidgetRequest = {
|
|
35
|
+
application?: string;
|
|
36
|
+
code?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
type?: WidgetType;
|
|
39
|
+
size?: string;
|
|
40
|
+
params?: string;
|
|
41
|
+
indexNumber?: number;
|
|
42
|
+
};
|
|
43
|
+
export type UpdateDashboardWidgetResponse = {};
|
|
44
|
+
export type DeleteDashboardWidgetRequest = {
|
|
45
|
+
code?: string;
|
|
46
|
+
};
|
|
47
|
+
export type DeleteDashboardWidgetResponse = {};
|
|
48
|
+
export type GetCategoryTreeRequest = {
|
|
49
|
+
application?: string;
|
|
50
|
+
};
|
|
51
|
+
export type GetCategoryTreeResponse_Metric = {
|
|
52
|
+
id: number;
|
|
53
|
+
metric: string;
|
|
54
|
+
level: number;
|
|
55
|
+
subMetrics: GetCategoryTreeResponse_Metric[];
|
|
56
|
+
};
|
|
57
|
+
export type GetCategoryTreeResponse = {
|
|
58
|
+
metrics: GetCategoryTreeResponse_Metric;
|
|
59
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export interface TagsService {
|
|
2
|
+
Get(request: GetTagRequest): Promise<Tag>;
|
|
3
|
+
Create(request: CreateTagRequest): Promise<CreateTagResponse>;
|
|
4
|
+
Delete(request: DeleteTagRequest): Promise<DeleteTagResponse>;
|
|
5
|
+
List(request: ListTagsRequest): Promise<ListTagsResponse>;
|
|
6
|
+
GetTagValues(request: GetTagValuesRequest): Promise<GetTagValuesResponse>;
|
|
7
|
+
}
|
|
8
|
+
export type GetTagRequest = {
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
export type Tag_Type = 'UNKNOWN' | 'INTEGER' | 'STRING' | 'LIST' | 'DATE' | 'BOOLEAN' | 'PRICE' | 'VERSION' | 'TIMEZONE';
|
|
12
|
+
export type Tag = {
|
|
13
|
+
name: string;
|
|
14
|
+
type: Tag_Type;
|
|
15
|
+
system: boolean;
|
|
16
|
+
appSpecific: boolean;
|
|
17
|
+
userSpecific: boolean;
|
|
18
|
+
hasRightAceModify: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type CreateTagRequest = {
|
|
21
|
+
name?: string;
|
|
22
|
+
type?: Tag_Type;
|
|
23
|
+
appSpecific?: boolean;
|
|
24
|
+
userSpecific?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type CreateTagResponse = {
|
|
27
|
+
tag: Tag;
|
|
28
|
+
};
|
|
29
|
+
export type DeleteTagRequest = {
|
|
30
|
+
name?: string;
|
|
31
|
+
};
|
|
32
|
+
export type DeleteTagResponse = {};
|
|
33
|
+
export type ListTagsRequest_OrderBy = 'NAME' | 'CREATED';
|
|
34
|
+
export type ListTagsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
35
|
+
export type ListTagsRequest = {
|
|
36
|
+
searchByName?: string;
|
|
37
|
+
orderBy?: ListTagsRequest_OrderBy;
|
|
38
|
+
orderDirection?: ListTagsRequest_OrderDirection;
|
|
39
|
+
page?: number;
|
|
40
|
+
perPage?: number;
|
|
41
|
+
};
|
|
42
|
+
export type ListTagsResponse = {
|
|
43
|
+
tags: Tag[];
|
|
44
|
+
page: number;
|
|
45
|
+
perPage: number;
|
|
46
|
+
total: number;
|
|
47
|
+
};
|
|
48
|
+
export type GetTagValuesRequest_OrderBy = 'VALUE' | 'COUNT';
|
|
49
|
+
export type GetTagValuesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
50
|
+
export type GetTagValuesRequest_LikeOperator = 'STARTS_WITH' | 'ENDS_WITH' | 'CONTAINS';
|
|
51
|
+
export type GetTagValuesRequest = {
|
|
52
|
+
application?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
like?: string;
|
|
55
|
+
likeOp?: GetTagValuesRequest_LikeOperator;
|
|
56
|
+
orderBy?: GetTagValuesRequest_OrderBy;
|
|
57
|
+
orderDirection?: GetTagValuesRequest_OrderDirection;
|
|
58
|
+
limit?: number;
|
|
59
|
+
offset?: number;
|
|
60
|
+
};
|
|
61
|
+
export type GetTagValuesResponse_TagValue = {
|
|
62
|
+
value: string;
|
|
63
|
+
count: number;
|
|
64
|
+
};
|
|
65
|
+
export type GetTagValuesResponse = {
|
|
66
|
+
values: GetTagValuesResponse_TagValue[];
|
|
67
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface TestDevicesService {
|
|
2
|
+
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
3
|
+
Verify(request: VerifyRequest): Promise<VerifyResponse>;
|
|
4
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
5
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
6
|
+
}
|
|
7
|
+
export type TestDevice = {
|
|
8
|
+
name: string;
|
|
9
|
+
pushToken: string;
|
|
10
|
+
hwid: string;
|
|
11
|
+
description: string;
|
|
12
|
+
platform: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
};
|
|
15
|
+
export type CreateRequest = {
|
|
16
|
+
application?: string;
|
|
17
|
+
pushToken?: string;
|
|
18
|
+
hwid?: string;
|
|
19
|
+
platform?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
};
|
|
23
|
+
export type CreateResponse = {
|
|
24
|
+
needsVerify: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type VerifyRequest = {
|
|
27
|
+
code?: string;
|
|
28
|
+
};
|
|
29
|
+
export type VerifyResponse = {};
|
|
30
|
+
export type ListRequest = {
|
|
31
|
+
application?: string;
|
|
32
|
+
};
|
|
33
|
+
export type ListResponse = {
|
|
34
|
+
testDevices: TestDevice[];
|
|
35
|
+
};
|
|
36
|
+
export type DeleteRequest = {
|
|
37
|
+
application?: string;
|
|
38
|
+
hwid?: string;
|
|
39
|
+
pushToken?: string;
|
|
40
|
+
};
|
|
41
|
+
export type DeleteResponse = {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface UsersService {
|
|
2
|
+
UpdateUser(request: UpdateUserRequest): Promise<UpdateUserResponse>;
|
|
3
|
+
GetMailingSettings(request: GetMailingSettingsRequest): Promise<GetMailingSettingsResponse>;
|
|
4
|
+
UpdateMailingSettings(request: UpdateMailingSettingsRequest): Promise<UpdateMailingSettingsResponse>;
|
|
5
|
+
}
|
|
6
|
+
export type UpdateUserRequest = {
|
|
7
|
+
timezone?: string;
|
|
8
|
+
};
|
|
9
|
+
export type UpdateUserResponse = {};
|
|
10
|
+
export type GetMailingSettingsRequest = {};
|
|
11
|
+
export type GetMailingSettingsResponse = {
|
|
12
|
+
allowNewsletters: boolean;
|
|
13
|
+
allowDailyStatsGlobal: boolean;
|
|
14
|
+
allowNotificationSubscribers: boolean;
|
|
15
|
+
allowNotificationIosLicense: boolean;
|
|
16
|
+
allowNotificationUserInactivity: boolean;
|
|
17
|
+
allowNotificationDisablePlatform: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type UpdateMailingSettingsRequest = {
|
|
20
|
+
allowNewsletters?: boolean;
|
|
21
|
+
allowDailyStatsGlobal?: boolean;
|
|
22
|
+
allowNotificationSubscribers?: boolean;
|
|
23
|
+
allowNotificationIosLicense?: boolean;
|
|
24
|
+
allowNotificationUserInactivity?: boolean;
|
|
25
|
+
allowNotificationDisablePlatform?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type UpdateMailingSettingsResponse = {
|
|
28
|
+
allowNewsletters: boolean;
|
|
29
|
+
allowDailyStatsGlobal: boolean;
|
|
30
|
+
allowNotificationSubscribers: boolean;
|
|
31
|
+
allowNotificationIosLicense: boolean;
|
|
32
|
+
allowNotificationUserInactivity: boolean;
|
|
33
|
+
allowNotificationDisablePlatform: boolean;
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface WhatsAppService {
|
|
2
|
+
RegisterWABA(request: RegisterWABARequest): Promise<RegisterWABAResponse>;
|
|
3
|
+
RegisterWABATwilio(request: RegisterWABATwilioRequest): Promise<RegisterWABATwilioResponse>;
|
|
4
|
+
AuthResponseCode(request: AuthResponseCodeRequest): Promise<AuthResponseCodeResponse>;
|
|
5
|
+
}
|
|
6
|
+
export type RegisterWABARequest = {
|
|
7
|
+
application?: string;
|
|
8
|
+
wabaId?: string;
|
|
9
|
+
phonenumberId?: string;
|
|
10
|
+
};
|
|
11
|
+
export type RegisterWABAResponse = {};
|
|
12
|
+
export type AuthResponseCodeRequest = {
|
|
13
|
+
application?: string;
|
|
14
|
+
code?: string;
|
|
15
|
+
};
|
|
16
|
+
export type AuthResponseCodeResponse = {};
|
|
17
|
+
export type RegisterWABATwilioRequest = {
|
|
18
|
+
application?: string;
|
|
19
|
+
wabaId?: string;
|
|
20
|
+
phonenumberId?: string;
|
|
21
|
+
};
|
|
22
|
+
export type RegisterWABATwilioResponse = {};
|