@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,46 @@
|
|
|
1
|
+
export interface AccountGroupsService {
|
|
2
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
3
|
+
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
4
|
+
Update(request: UpdateRequest): Promise<UpdateResponse>;
|
|
5
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
6
|
+
ListGroupMembers(request: ListGroupMembersRequest): Promise<ListGroupMembersResponse>;
|
|
7
|
+
UpdateGroupMembers(request: UpdateGroupMembersRequest): Promise<UpdateGroupMembersResponse>;
|
|
8
|
+
}
|
|
9
|
+
export type ListRequest = {};
|
|
10
|
+
export type ListResponse_AccountGroup = {
|
|
11
|
+
name: string;
|
|
12
|
+
rights: Record<string, boolean>;
|
|
13
|
+
};
|
|
14
|
+
export type ListResponse = {
|
|
15
|
+
accountGroups: ListResponse_AccountGroup[];
|
|
16
|
+
};
|
|
17
|
+
export type CreateRequest = {
|
|
18
|
+
name?: string;
|
|
19
|
+
rights?: Record<string, boolean>;
|
|
20
|
+
};
|
|
21
|
+
export type CreateResponse = {};
|
|
22
|
+
export type UpdateRequest = {
|
|
23
|
+
name?: string;
|
|
24
|
+
rights?: Record<string, boolean>;
|
|
25
|
+
};
|
|
26
|
+
export type UpdateResponse = {};
|
|
27
|
+
export type DeleteRequest = {
|
|
28
|
+
name?: string;
|
|
29
|
+
};
|
|
30
|
+
export type DeleteResponse = {};
|
|
31
|
+
export type ListGroupMembersRequest = {
|
|
32
|
+
name?: string;
|
|
33
|
+
};
|
|
34
|
+
export type ListGroupMembersResponse_AccountGroupMember = {
|
|
35
|
+
username: string;
|
|
36
|
+
email: string;
|
|
37
|
+
isMember: boolean;
|
|
38
|
+
};
|
|
39
|
+
export type ListGroupMembersResponse = {
|
|
40
|
+
accountGroupMembers: ListGroupMembersResponse_AccountGroupMember[];
|
|
41
|
+
};
|
|
42
|
+
export type UpdateGroupMembersRequest = {
|
|
43
|
+
name?: string;
|
|
44
|
+
members?: Record<string, boolean>;
|
|
45
|
+
};
|
|
46
|
+
export type UpdateGroupMembersResponse = {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface AccountInvitesService {
|
|
2
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
3
|
+
Resend(request: ResendRequest): Promise<ResendResponse>;
|
|
4
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
5
|
+
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
6
|
+
}
|
|
7
|
+
export type ListRequest = {};
|
|
8
|
+
export type ListResponse_Invite = {
|
|
9
|
+
code: string;
|
|
10
|
+
email: string;
|
|
11
|
+
lastSentDate: Date;
|
|
12
|
+
status: string;
|
|
13
|
+
};
|
|
14
|
+
export type ListResponse = {
|
|
15
|
+
invites: ListResponse_Invite[];
|
|
16
|
+
};
|
|
17
|
+
export type ResendRequest = {
|
|
18
|
+
code?: string;
|
|
19
|
+
};
|
|
20
|
+
export type ResendResponse = {};
|
|
21
|
+
export type CreateRequest = {
|
|
22
|
+
email?: string;
|
|
23
|
+
};
|
|
24
|
+
export type CreateResponse = {};
|
|
25
|
+
export type DeleteRequest = {
|
|
26
|
+
code?: string;
|
|
27
|
+
};
|
|
28
|
+
export type DeleteResponse = {};
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export interface AccountsService {
|
|
2
|
+
GetEmailStatisticCount(request: GetEmailStatisticCountRequest): Promise<GetEmailStatisticCountResponse>;
|
|
3
|
+
GetActiveDevicesCount(request: GetActiveDevicesCountRequest): Promise<GetActiveDevicesCountResponse>;
|
|
4
|
+
GetSubscribersCount(request: GetSubscribersCountRequest): Promise<GetSubscribersCountResponse>;
|
|
5
|
+
GetActiveUsersCount(request: GetActiveUsersCountRequest): Promise<GetActiveUsersCountResponse>;
|
|
6
|
+
SetDebugMode(request: SetDebugModeRequest): Promise<SetDebugModeResponse>;
|
|
7
|
+
GetOnboardingInfo(request: GetOnboardingInfoRequest): Promise<GetOnboardingInfoResponse>;
|
|
8
|
+
UpdateOnboardingInfo(request: UpdateOnboardingInfoRequest): Promise<UpdateOnboardingInfoResponse>;
|
|
9
|
+
GetTotalEmailSubscribersCount(request: GetTotalEmailSubscribersCountRequest): Promise<GetTotalEmailSubscribersCountResponse>;
|
|
10
|
+
GetAccount(request: GetAccountRequest): Promise<GetAccountResponse>;
|
|
11
|
+
UpdateAccount(request: UpdateAccountRequest): Promise<UpdateAccountResponse>;
|
|
12
|
+
GetBillingInfo(request: GetBillingInfoRequest): Promise<GetBillingInfoResponse>;
|
|
13
|
+
UpdateBillingInfo(request: UpdateBillingInfoRequest): Promise<UpdateBillingInfoResponse>;
|
|
14
|
+
}
|
|
15
|
+
export type GetEmailStatisticCountRequest = {
|
|
16
|
+
dateFrom?: Date;
|
|
17
|
+
dateTo?: Date;
|
|
18
|
+
};
|
|
19
|
+
export type GetEmailStatisticCountResponse = {
|
|
20
|
+
dailyEmailStat: number;
|
|
21
|
+
monthlyEmailStat: number;
|
|
22
|
+
lastEmailStat: number;
|
|
23
|
+
paidEmailQuota: number;
|
|
24
|
+
freeEmailQuota: number;
|
|
25
|
+
freeEmailLimit: number;
|
|
26
|
+
billingMonthEmailSendsStat: number;
|
|
27
|
+
requestDateEmailStat: number;
|
|
28
|
+
};
|
|
29
|
+
export type GetActiveDevicesCountRequest = {
|
|
30
|
+
dateFrom?: Date;
|
|
31
|
+
dateTo?: Date;
|
|
32
|
+
};
|
|
33
|
+
export type GetActiveDevicesCountResponse = {
|
|
34
|
+
monthlyActiveDevices: number;
|
|
35
|
+
calendarMonthlyActiveDevices: number;
|
|
36
|
+
previousMonthActiveDevices: number;
|
|
37
|
+
requestDateActiveDevices: number;
|
|
38
|
+
};
|
|
39
|
+
export type GetSubscribersCountRequest = {
|
|
40
|
+
platforms?: number[];
|
|
41
|
+
};
|
|
42
|
+
export type GetSubscribersCountResponse = {
|
|
43
|
+
pushEnabled: number;
|
|
44
|
+
pushDisabled: number;
|
|
45
|
+
};
|
|
46
|
+
export type GetActiveUsersCountRequest = {
|
|
47
|
+
dateFrom?: Date;
|
|
48
|
+
dateTo?: Date;
|
|
49
|
+
};
|
|
50
|
+
export type GetActiveUsersCountResponse = {
|
|
51
|
+
monthlyActiveUsers: number;
|
|
52
|
+
calendarMonthlyActiveUsers: number;
|
|
53
|
+
previousMonthActiveUsers: number;
|
|
54
|
+
requestDateActiveUsers: number;
|
|
55
|
+
};
|
|
56
|
+
export type SetDebugModeRequest = {
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
};
|
|
59
|
+
export type SetDebugModeResponse = {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
expireAt: Date;
|
|
62
|
+
};
|
|
63
|
+
export type GetOnboardingInfoRequest = {};
|
|
64
|
+
export type GetOnboardingInfoResponse = {
|
|
65
|
+
isActive: boolean;
|
|
66
|
+
paywallPlan: boolean;
|
|
67
|
+
welcomeScreen: boolean;
|
|
68
|
+
getStarted: boolean;
|
|
69
|
+
showSurvey: boolean;
|
|
70
|
+
};
|
|
71
|
+
export type UpdateOnboardingInfoRequest_answer_list = {
|
|
72
|
+
answers: string[];
|
|
73
|
+
};
|
|
74
|
+
export type UpdateOnboardingInfoRequest = {
|
|
75
|
+
plan?: string;
|
|
76
|
+
step?: string;
|
|
77
|
+
survey?: Record<string, UpdateOnboardingInfoRequest_answer_list>;
|
|
78
|
+
};
|
|
79
|
+
export type UpdateOnboardingInfoResponse = {};
|
|
80
|
+
export type GetTotalEmailSubscribersCountRequest = {};
|
|
81
|
+
export type GetTotalEmailSubscribersCountResponse = {
|
|
82
|
+
totalEmailSubscribers: number;
|
|
83
|
+
};
|
|
84
|
+
export type BillingAddress = {
|
|
85
|
+
firstName: string;
|
|
86
|
+
lastName: string;
|
|
87
|
+
phone: string;
|
|
88
|
+
companyName: string;
|
|
89
|
+
companyNumber: string;
|
|
90
|
+
industry: string;
|
|
91
|
+
department: string;
|
|
92
|
+
country: string;
|
|
93
|
+
street: string;
|
|
94
|
+
zipCode: string;
|
|
95
|
+
paymentEmail: string;
|
|
96
|
+
vatNumber: string;
|
|
97
|
+
countryCode: string;
|
|
98
|
+
state: string;
|
|
99
|
+
stateCode: string;
|
|
100
|
+
secondaryPersonFirstName: string;
|
|
101
|
+
secondaryPersonLastName: string;
|
|
102
|
+
secondaryPersonEmail: string;
|
|
103
|
+
additionalEmails: string[];
|
|
104
|
+
city: string;
|
|
105
|
+
accountCompanyName: string;
|
|
106
|
+
};
|
|
107
|
+
export type Account = {
|
|
108
|
+
name: string;
|
|
109
|
+
};
|
|
110
|
+
export type GetAccountRequest = {};
|
|
111
|
+
export type GetAccountResponse = {
|
|
112
|
+
account: Account;
|
|
113
|
+
};
|
|
114
|
+
export type UpdateAccountRequest = {
|
|
115
|
+
account?: Account;
|
|
116
|
+
};
|
|
117
|
+
export type UpdateAccountResponse = {
|
|
118
|
+
account: Account;
|
|
119
|
+
};
|
|
120
|
+
export type BillingInfo = {
|
|
121
|
+
firstName: string;
|
|
122
|
+
lastName: string;
|
|
123
|
+
phone: string;
|
|
124
|
+
companyName: string;
|
|
125
|
+
companyNumber: string;
|
|
126
|
+
industry: string;
|
|
127
|
+
department: string;
|
|
128
|
+
country: string;
|
|
129
|
+
street: string;
|
|
130
|
+
zipCode: string;
|
|
131
|
+
paymentEmail: string;
|
|
132
|
+
vatNumber: string;
|
|
133
|
+
countryCode: string;
|
|
134
|
+
state: string;
|
|
135
|
+
stateCode: string;
|
|
136
|
+
secondaryPersonFirstName: string;
|
|
137
|
+
secondaryPersonLastName: string;
|
|
138
|
+
secondaryPersonEmail: string;
|
|
139
|
+
additionalEmails: string[];
|
|
140
|
+
city: string;
|
|
141
|
+
};
|
|
142
|
+
export type GetBillingInfoRequest = {};
|
|
143
|
+
export type GetBillingInfoResponse = {
|
|
144
|
+
billingInfo: BillingInfo;
|
|
145
|
+
};
|
|
146
|
+
export type UpdateBillingInfoRequest = {
|
|
147
|
+
billingInfo?: BillingInfo;
|
|
148
|
+
};
|
|
149
|
+
export type UpdateBillingInfoResponse = {
|
|
150
|
+
billingInfo: BillingInfo;
|
|
151
|
+
};
|
|
152
|
+
export interface EmailTemplatesService {
|
|
153
|
+
Create(request: CreateEmailTemplateRequest): Promise<CreateEmailTemplateResponse>;
|
|
154
|
+
Get(request: GetEmailTemplateRequest): Promise<GetEmailTemplateResponse>;
|
|
155
|
+
List(request: ListEmailTemplatesRequest): Promise<ListEmailTemplatesResponse>;
|
|
156
|
+
Update(request: UpdateEmailTemplateRequest): Promise<UpdateEmailTemplateResponse>;
|
|
157
|
+
Delete(request: DeleteEmailTemplateRequest): Promise<DeleteEmailTemplateResponse>;
|
|
158
|
+
GetEmailTemplateLabels(request: GetEmailTemplateLabelsRequest): Promise<GetEmailTemplateLabelsResponse>;
|
|
159
|
+
Test(request: TestEmailTemplateRequest): Promise<TestEmailTemplateResponse>;
|
|
160
|
+
}
|
|
161
|
+
export type UpdateEmailTemplateRequest = {
|
|
162
|
+
code?: string;
|
|
163
|
+
name?: string;
|
|
164
|
+
content?: EmailContent;
|
|
165
|
+
label?: string;
|
|
166
|
+
categories?: string[];
|
|
167
|
+
previewSettings?: object;
|
|
168
|
+
};
|
|
169
|
+
export type UpdateEmailTemplateResponse = {
|
|
170
|
+
emailTemplate: EmailTemplate;
|
|
171
|
+
};
|
|
172
|
+
export type EmailTemplate = {
|
|
173
|
+
name: string;
|
|
174
|
+
content: EmailContent;
|
|
175
|
+
label: string;
|
|
176
|
+
code: string;
|
|
177
|
+
created: Date;
|
|
178
|
+
updated: Date;
|
|
179
|
+
categories: string[];
|
|
180
|
+
previewSettings: object;
|
|
181
|
+
};
|
|
182
|
+
export type TestEmailTemplateRequest = {
|
|
183
|
+
application?: string;
|
|
184
|
+
code?: string;
|
|
185
|
+
email?: string;
|
|
186
|
+
dynamicContent?: object;
|
|
187
|
+
};
|
|
188
|
+
export type TestEmailTemplateResponse = {};
|
|
189
|
+
export type CreateEmailTemplateRequest = {
|
|
190
|
+
application?: string;
|
|
191
|
+
name?: string;
|
|
192
|
+
content?: EmailContent;
|
|
193
|
+
label?: string;
|
|
194
|
+
categories?: string[];
|
|
195
|
+
previewSettings?: object;
|
|
196
|
+
};
|
|
197
|
+
export type CreateEmailTemplateResponse = {
|
|
198
|
+
emailTemplate: EmailTemplate;
|
|
199
|
+
};
|
|
200
|
+
export type EmailContent_SenderInfo_Address = {
|
|
201
|
+
email: string;
|
|
202
|
+
name: string;
|
|
203
|
+
};
|
|
204
|
+
export type EmailContent_SenderInfo = {
|
|
205
|
+
from: EmailContent_SenderInfo_Address;
|
|
206
|
+
replyTo: EmailContent_SenderInfo_Address;
|
|
207
|
+
};
|
|
208
|
+
export type EmailContent_Unlayer = {
|
|
209
|
+
html: string;
|
|
210
|
+
localizationData: object;
|
|
211
|
+
editorConfig: object;
|
|
212
|
+
};
|
|
213
|
+
export type EmailContent_Pushwoosh = {
|
|
214
|
+
html: string;
|
|
215
|
+
localizationData: object;
|
|
216
|
+
};
|
|
217
|
+
export type EmailContent_Raw = {
|
|
218
|
+
html: Record<string, string>;
|
|
219
|
+
};
|
|
220
|
+
export type EmailContent_kind_unlayer = {
|
|
221
|
+
unlayer: EmailContent_Unlayer;
|
|
222
|
+
};
|
|
223
|
+
export type EmailContent_kind_pushwoosh = {
|
|
224
|
+
pushwoosh: EmailContent_Pushwoosh;
|
|
225
|
+
};
|
|
226
|
+
export type EmailContent_kind_raw = {
|
|
227
|
+
raw: EmailContent_Raw;
|
|
228
|
+
};
|
|
229
|
+
export type EmailContent_kind = EmailContent_kind_unlayer | EmailContent_kind_pushwoosh | EmailContent_kind_raw;
|
|
230
|
+
export type EmailContent = {
|
|
231
|
+
senderInfo: EmailContent_SenderInfo;
|
|
232
|
+
subject: Record<string, string>;
|
|
233
|
+
} & EmailContent_kind;
|
|
234
|
+
export type GetEmailTemplateRequest = {
|
|
235
|
+
code?: string;
|
|
236
|
+
};
|
|
237
|
+
export type GetEmailTemplateResponse = {
|
|
238
|
+
emailTemplate: EmailTemplate;
|
|
239
|
+
};
|
|
240
|
+
export type ListEmailTemplatesRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
241
|
+
export type ListEmailTemplatesRequest_OrderDirection = 'ASC' | 'DESC';
|
|
242
|
+
export type ListEmailTemplatesRequest = {
|
|
243
|
+
application?: string;
|
|
244
|
+
orderBy?: ListEmailTemplatesRequest_OrderBy;
|
|
245
|
+
orderDirection?: ListEmailTemplatesRequest_OrderDirection;
|
|
246
|
+
page?: number;
|
|
247
|
+
perPage?: number;
|
|
248
|
+
searchByName?: string;
|
|
249
|
+
searchByLabel?: string;
|
|
250
|
+
strictSearchByLabel?: boolean;
|
|
251
|
+
searchByCategory?: string[];
|
|
252
|
+
};
|
|
253
|
+
export type ListEmailTemplatesResponse = {
|
|
254
|
+
emailTemplates: EmailTemplate[];
|
|
255
|
+
page: number;
|
|
256
|
+
perPage: number;
|
|
257
|
+
total: number;
|
|
258
|
+
};
|
|
259
|
+
export type DeleteEmailTemplateRequest = {
|
|
260
|
+
code?: string;
|
|
261
|
+
};
|
|
262
|
+
export type DeleteEmailTemplateResponse = {};
|
|
263
|
+
export type GetEmailTemplateLabelsRequest = {
|
|
264
|
+
application?: string;
|
|
265
|
+
};
|
|
266
|
+
export type GetEmailTemplateLabelsResponse = {
|
|
267
|
+
labels: string[];
|
|
268
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { BillingAddress as pushwoosh_rpc_v2_accounts_BillingAddress } from './pushwoosh_rpc_v2_accounts';
|
|
2
|
+
import { RestrictionValue as pushwoosh_objects_restrictionValues_v1_RestrictionValue } from './pushwoosh_objects_restrictionValues_v1';
|
|
3
|
+
export interface GetAuthInfoService {
|
|
4
|
+
GetAuthInfo(request: GetAuthInfoRequest): Promise<GetAuthInfoResponse>;
|
|
5
|
+
}
|
|
6
|
+
export type GetAuthInfoRequest = {};
|
|
7
|
+
export type GetAuthInfoResponse = {
|
|
8
|
+
user: User;
|
|
9
|
+
account: Account;
|
|
10
|
+
};
|
|
11
|
+
export type User = {
|
|
12
|
+
username: string;
|
|
13
|
+
email: string;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
timezone: string;
|
|
16
|
+
timezoneOffset: string;
|
|
17
|
+
accountsCount: number;
|
|
18
|
+
allowNewsletters: boolean;
|
|
19
|
+
allowDailyStatsGlobal: boolean;
|
|
20
|
+
allowNotificationSubscribers: boolean;
|
|
21
|
+
allowNotificationIosLicense: boolean;
|
|
22
|
+
allowNotificationUserInactivity: boolean;
|
|
23
|
+
allowNotificationDisablePlatform: boolean;
|
|
24
|
+
intercomUserHash: string;
|
|
25
|
+
};
|
|
26
|
+
export type Account = {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
isEnterprise: boolean;
|
|
30
|
+
expireDate: string;
|
|
31
|
+
frozen: boolean;
|
|
32
|
+
productType: string;
|
|
33
|
+
domain: string;
|
|
34
|
+
admin: boolean;
|
|
35
|
+
restriction: string;
|
|
36
|
+
canUsePacks: boolean;
|
|
37
|
+
hasPersonalizationPack: boolean;
|
|
38
|
+
hasMarketingPack: boolean;
|
|
39
|
+
isUnderSu: boolean;
|
|
40
|
+
isAccountLocked: boolean;
|
|
41
|
+
isTwoFactorAuthEnabled: boolean;
|
|
42
|
+
hasActiveOrder: boolean;
|
|
43
|
+
registrationDate: Date;
|
|
44
|
+
appGroupsCount: number;
|
|
45
|
+
applicationsCount: number;
|
|
46
|
+
filtersCount: number;
|
|
47
|
+
tagsCount: number;
|
|
48
|
+
geoZonesCount: number;
|
|
49
|
+
campaignsCount: number;
|
|
50
|
+
presetsCount: number;
|
|
51
|
+
testDevicesCount: number;
|
|
52
|
+
autoPushesCount: number;
|
|
53
|
+
rssFeedsCount: number;
|
|
54
|
+
inAppsCount: number;
|
|
55
|
+
eventsCount: number;
|
|
56
|
+
deeplinksCount: number;
|
|
57
|
+
richMediaCount: number;
|
|
58
|
+
emailTemplatesCount: number;
|
|
59
|
+
accountMailsCount: number;
|
|
60
|
+
accountDomainsCount: number;
|
|
61
|
+
pushAvailableSubscribers: number;
|
|
62
|
+
pushNotAvailableSubscribers: number;
|
|
63
|
+
isDeviceLimitReached: boolean;
|
|
64
|
+
aceSeeApplications: boolean;
|
|
65
|
+
aceModifyApplications: boolean;
|
|
66
|
+
aceSeeAppGroups: boolean;
|
|
67
|
+
aceModifyAppGroups: boolean;
|
|
68
|
+
aceSeeMessages: boolean;
|
|
69
|
+
aceModifyMessages: boolean;
|
|
70
|
+
aceSendMessages: boolean;
|
|
71
|
+
aceSeeFilters: boolean;
|
|
72
|
+
aceModifyFilters: boolean;
|
|
73
|
+
aceSeeTags: boolean;
|
|
74
|
+
aceModifyTags: boolean;
|
|
75
|
+
aceSeeRichMedia: boolean;
|
|
76
|
+
aceModifyRichMedia: boolean;
|
|
77
|
+
aceSeeEmailTemplates: boolean;
|
|
78
|
+
aceModifyEmailTemplates: boolean;
|
|
79
|
+
aceSuperRight: boolean;
|
|
80
|
+
aceManageUsers: boolean;
|
|
81
|
+
aceManageSubscription: boolean;
|
|
82
|
+
aceSeeApiAccess: boolean;
|
|
83
|
+
aceDomainAndEmailVerification: boolean;
|
|
84
|
+
freeEmailLimitUpdateDate: string;
|
|
85
|
+
paidEmailExpireDate: string;
|
|
86
|
+
allowedPlatforms: number[];
|
|
87
|
+
billingAddress: pushwoosh_rpc_v2_accounts_BillingAddress;
|
|
88
|
+
restrictions: pushwoosh_objects_restrictionValues_v1_RestrictionValue;
|
|
89
|
+
userCentricStorageUsed: boolean;
|
|
90
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export interface ApiTokensService {
|
|
2
|
+
Create(request: CreateApiTokenRequest): Promise<CreateApiTokenResponse>;
|
|
3
|
+
Get(request: GetApiTokenRequest): Promise<GetApiTokenResponse>;
|
|
4
|
+
List(request: ListApiTokensRequest): Promise<ListApiTokensResponse>;
|
|
5
|
+
Update(request: UpdateApiTokenRequest): Promise<UpdateApiTokenResponse>;
|
|
6
|
+
Delete(request: DeleteApiTokenRequest): Promise<DeleteApiTokenResponse>;
|
|
7
|
+
GrantRightOnApplication(request: GrantRightOnApplicationRequest): Promise<GrantRightOnApplicationResponse>;
|
|
8
|
+
GrantMessageRightAll(request: GrantMessageRightAllRequest): Promise<GrantMessageRightAllResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type Restrictions = {
|
|
11
|
+
messageApplications: string[];
|
|
12
|
+
messageGroups: string[];
|
|
13
|
+
modifyAccount: boolean;
|
|
14
|
+
modifyApplication: boolean;
|
|
15
|
+
modifyMessage: boolean;
|
|
16
|
+
modifyTag: boolean;
|
|
17
|
+
applicationsSelectAll: boolean;
|
|
18
|
+
groupsSelectAll: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type CreateApiTokenRequest = {
|
|
21
|
+
name?: string;
|
|
22
|
+
restrictions?: Restrictions;
|
|
23
|
+
};
|
|
24
|
+
export type CreateApiTokenResponse = {
|
|
25
|
+
code: string;
|
|
26
|
+
name: string;
|
|
27
|
+
value: string;
|
|
28
|
+
restrictions: Restrictions;
|
|
29
|
+
};
|
|
30
|
+
export type GetApiTokenRequest = {
|
|
31
|
+
code?: string;
|
|
32
|
+
};
|
|
33
|
+
export type GetApiTokenResponse = {
|
|
34
|
+
code: string;
|
|
35
|
+
name: string;
|
|
36
|
+
value: string;
|
|
37
|
+
restrictions: Restrictions;
|
|
38
|
+
};
|
|
39
|
+
export type ListApiTokensRequest_OrderBy = 'NAME' | 'CREATED';
|
|
40
|
+
export type ListApiTokensRequest_OrderDirection = 'ASC' | 'DESC';
|
|
41
|
+
export type ListApiTokensRequest = {
|
|
42
|
+
orderBy?: ListApiTokensRequest_OrderBy;
|
|
43
|
+
orderDirection?: ListApiTokensRequest_OrderDirection;
|
|
44
|
+
page?: number;
|
|
45
|
+
perPage?: number;
|
|
46
|
+
searchByName?: string;
|
|
47
|
+
};
|
|
48
|
+
export type ListApiTokensResponse_ApiToken = {
|
|
49
|
+
code: string;
|
|
50
|
+
name: string;
|
|
51
|
+
value: string;
|
|
52
|
+
};
|
|
53
|
+
export type ListApiTokensResponse = {
|
|
54
|
+
apiTokens: ListApiTokensResponse_ApiToken[];
|
|
55
|
+
page: number;
|
|
56
|
+
perPage: number;
|
|
57
|
+
total: number;
|
|
58
|
+
};
|
|
59
|
+
export type UpdateApiTokenRequest = {
|
|
60
|
+
code?: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
restrictions?: Restrictions;
|
|
63
|
+
};
|
|
64
|
+
export type UpdateApiTokenResponse = {
|
|
65
|
+
code: string;
|
|
66
|
+
name: string;
|
|
67
|
+
value: string;
|
|
68
|
+
restrictions: Restrictions;
|
|
69
|
+
};
|
|
70
|
+
export type DeleteApiTokenRequest = {
|
|
71
|
+
code?: string;
|
|
72
|
+
};
|
|
73
|
+
export type DeleteApiTokenResponse = {};
|
|
74
|
+
export type GrantRightOnApplicationRequest_ModifyAccount = {};
|
|
75
|
+
export type GrantRightOnApplicationRequest_ModifyApplication = {};
|
|
76
|
+
export type GrantRightOnApplicationRequest_ModifyTag = {};
|
|
77
|
+
export type GrantRightOnApplicationRequest_ModifyMessage = {};
|
|
78
|
+
export type GrantRightOnApplicationRequest_MessageApplications = {
|
|
79
|
+
applicationCode: string;
|
|
80
|
+
};
|
|
81
|
+
export type GrantRightOnApplicationRequest_MessageGroups = {
|
|
82
|
+
applicationGroupCode: string;
|
|
83
|
+
};
|
|
84
|
+
export type GrantRightOnApplicationRequest_kind_modifyAccount = {
|
|
85
|
+
modifyAccount: GrantRightOnApplicationRequest_ModifyAccount;
|
|
86
|
+
};
|
|
87
|
+
export type GrantRightOnApplicationRequest_kind_modifyApplication = {
|
|
88
|
+
modifyApplication: GrantRightOnApplicationRequest_ModifyApplication;
|
|
89
|
+
};
|
|
90
|
+
export type GrantRightOnApplicationRequest_kind_modifyTag = {
|
|
91
|
+
modifyTag: GrantRightOnApplicationRequest_ModifyTag;
|
|
92
|
+
};
|
|
93
|
+
export type GrantRightOnApplicationRequest_kind_modifyMessage = {
|
|
94
|
+
modifyMessage: GrantRightOnApplicationRequest_ModifyMessage;
|
|
95
|
+
};
|
|
96
|
+
export type GrantRightOnApplicationRequest_kind_messageApplications = {
|
|
97
|
+
messageApplications: GrantRightOnApplicationRequest_MessageApplications;
|
|
98
|
+
};
|
|
99
|
+
export type GrantRightOnApplicationRequest_kind_messageGroups = {
|
|
100
|
+
messageGroups: GrantRightOnApplicationRequest_MessageGroups;
|
|
101
|
+
};
|
|
102
|
+
export type GrantRightOnApplicationRequest_kind = GrantRightOnApplicationRequest_kind_modifyAccount | GrantRightOnApplicationRequest_kind_modifyApplication | GrantRightOnApplicationRequest_kind_modifyTag | GrantRightOnApplicationRequest_kind_modifyMessage | GrantRightOnApplicationRequest_kind_messageApplications | GrantRightOnApplicationRequest_kind_messageGroups;
|
|
103
|
+
export type GrantRightOnApplicationRequest = {} & GrantRightOnApplicationRequest_kind;
|
|
104
|
+
export type GrantRightOnApplicationResponse = {};
|
|
105
|
+
export type GrantMessageRightAllRequest = {
|
|
106
|
+
code?: string;
|
|
107
|
+
selectAll?: boolean;
|
|
108
|
+
};
|
|
109
|
+
export type GrantMessageRightAllResponse = {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ApplicationPlatformsInfo_PlatformInfo as pushwoosh_rpc_v2_applications_info_ApplicationPlatformsInfo_PlatformInfo } from './pushwoosh_rpc_v2_applications_info';
|
|
2
|
+
export interface ApplicationsService {
|
|
3
|
+
Get(request: GetApplicationRequest): Promise<GetApplicationResponse>;
|
|
4
|
+
Create(request: CreateApplicationRequest): Promise<CreateApplicationResponse>;
|
|
5
|
+
Update(request: UpdateApplicationRequest): Promise<UpdateApplicationResponse>;
|
|
6
|
+
List(request: ListApplicationsRequest): Promise<ListApplicationsResponse>;
|
|
7
|
+
Delete(request: DeleteApplicationRequest): Promise<DeleteApplicationResponse>;
|
|
8
|
+
SetShortenerConfiguration(request: SetShortenerConfigurationRequest): Promise<SetShortenerConfigurationResponse>;
|
|
9
|
+
UpdateURLParams(request: UpdateURLParamsRequest): Promise<UpdateURLParamsResponse>;
|
|
10
|
+
SendEmailVerification(request: SendEmailVerificationRequest): Promise<SendEmailVerificationResponse>;
|
|
11
|
+
}
|
|
12
|
+
export type ApplicationPlatformSubscribersCount = {
|
|
13
|
+
pushEnabled: number;
|
|
14
|
+
pushDisabled: number;
|
|
15
|
+
};
|
|
16
|
+
export type ApplicationPermissions = {
|
|
17
|
+
canSee: boolean;
|
|
18
|
+
canModify: boolean;
|
|
19
|
+
canDelete: boolean;
|
|
20
|
+
canSendMessages: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type Application = {
|
|
23
|
+
code: string;
|
|
24
|
+
title: string;
|
|
25
|
+
iconUrl: string;
|
|
26
|
+
isDemo: boolean;
|
|
27
|
+
platforms: Record<number, pushwoosh_rpc_v2_applications_info_ApplicationPlatformsInfo_PlatformInfo>;
|
|
28
|
+
subscribers: Record<number, ApplicationPlatformSubscribersCount>;
|
|
29
|
+
languages: Record<string, number>;
|
|
30
|
+
permissions: ApplicationPermissions;
|
|
31
|
+
properties: Record<string, string>;
|
|
32
|
+
counters: Record<string, number>;
|
|
33
|
+
};
|
|
34
|
+
export type ApplicationSummary = {
|
|
35
|
+
code: string;
|
|
36
|
+
title: string;
|
|
37
|
+
iconUrl: string;
|
|
38
|
+
isDemo: boolean;
|
|
39
|
+
subscribers: Record<number, ApplicationPlatformSubscribersCount>;
|
|
40
|
+
platforms: Record<number, pushwoosh_rpc_v2_applications_info_ApplicationPlatformsInfo_PlatformInfo>;
|
|
41
|
+
};
|
|
42
|
+
export type GetApplicationRequest = {
|
|
43
|
+
code?: string;
|
|
44
|
+
};
|
|
45
|
+
export type GetApplicationResponse = {
|
|
46
|
+
application: Application;
|
|
47
|
+
};
|
|
48
|
+
export type CreateApplicationRequest = {
|
|
49
|
+
title?: string;
|
|
50
|
+
icon?: string;
|
|
51
|
+
};
|
|
52
|
+
export type CreateApplicationResponse = {
|
|
53
|
+
application: Application;
|
|
54
|
+
};
|
|
55
|
+
export type UpdateApplicationRequest = {
|
|
56
|
+
code?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
icon?: string;
|
|
59
|
+
};
|
|
60
|
+
export type UpdateApplicationResponse = {
|
|
61
|
+
application: Application;
|
|
62
|
+
};
|
|
63
|
+
export type ListApplicationsRequest_OrderBy = 'TITLE' | 'SUBSCRIBERS';
|
|
64
|
+
export type ListApplicationsRequest_OrderDirection = 'ASC' | 'DESC';
|
|
65
|
+
export type ListApplicationsRequest = {
|
|
66
|
+
orderBy?: ListApplicationsRequest_OrderBy;
|
|
67
|
+
orderDirection?: ListApplicationsRequest_OrderDirection;
|
|
68
|
+
page?: number;
|
|
69
|
+
perPage?: number;
|
|
70
|
+
search?: string;
|
|
71
|
+
};
|
|
72
|
+
export type ListApplicationsResponse = {
|
|
73
|
+
applications: ApplicationSummary[];
|
|
74
|
+
page: number;
|
|
75
|
+
perPage: number;
|
|
76
|
+
total: number;
|
|
77
|
+
};
|
|
78
|
+
export type DeleteApplicationRequest = {
|
|
79
|
+
code?: string;
|
|
80
|
+
};
|
|
81
|
+
export type DeleteApplicationResponse = {};
|
|
82
|
+
export type SetShortenerConfigurationRequest = {
|
|
83
|
+
code?: string;
|
|
84
|
+
bitlyAccessToken?: string;
|
|
85
|
+
};
|
|
86
|
+
export type SetShortenerConfigurationResponse = {};
|
|
87
|
+
export type UpdateURLParamsRequest = {
|
|
88
|
+
code?: string;
|
|
89
|
+
params?: Record<string, string>;
|
|
90
|
+
};
|
|
91
|
+
export type UpdateURLParamsResponse = {};
|
|
92
|
+
export type SendEmailVerificationRequest = {
|
|
93
|
+
code?: string;
|
|
94
|
+
website?: string;
|
|
95
|
+
email?: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
};
|
|
98
|
+
export type SendEmailVerificationResponse = {};
|