@pushwoosh/rpc-v2-http-api-data 0.1.467 → 0.1.469
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/account_groups.d.ts +8 -0
- package/accounts.d.ts +20 -0
- package/data.js +97 -0
- package/package.json +1 -1
package/account_groups.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface AccountGroupsService {
|
|
|
5
5
|
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
6
6
|
ListGroupMembers(request: ListGroupMembersRequest): Promise<ListGroupMembersResponse>;
|
|
7
7
|
UpdateGroupMembers(request: UpdateGroupMembersRequest): Promise<UpdateGroupMembersResponse>;
|
|
8
|
+
UpdateUserMembership(request: UpdateUserMembershipRequest): Promise<UpdateUserMembershipResponse>;
|
|
8
9
|
}
|
|
9
10
|
export type ListRequest_OrderBy = 'NAME';
|
|
10
11
|
export type ListRequest_OrderDirection = 'ASC' | 'DESC';
|
|
@@ -55,3 +56,10 @@ export type UpdateGroupMembersRequest = {
|
|
|
55
56
|
members?: Record<string, boolean>;
|
|
56
57
|
};
|
|
57
58
|
export type UpdateGroupMembersResponse = {};
|
|
59
|
+
export type UpdateUserMembershipRequest = {
|
|
60
|
+
username?: string;
|
|
61
|
+
groupMembership?: string[];
|
|
62
|
+
};
|
|
63
|
+
export type UpdateUserMembershipResponse = {
|
|
64
|
+
groupMembership: string[];
|
|
65
|
+
};
|
package/accounts.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface AccountsService {
|
|
|
12
12
|
UpdateAccount(request: UpdateAccountRequest): Promise<UpdateAccountResponse>;
|
|
13
13
|
GetBillingInfo(request: GetBillingInfoRequest): Promise<GetBillingInfoResponse>;
|
|
14
14
|
UpdateBillingInfo(request: UpdateBillingInfoRequest): Promise<UpdateBillingInfoResponse>;
|
|
15
|
+
ListChild(request: ListChildRequest): Promise<ListChildResponse>;
|
|
15
16
|
}
|
|
16
17
|
export type GetEmailStatisticCountRequest = {
|
|
17
18
|
dateFrom?: Date;
|
|
@@ -155,6 +156,25 @@ export type UpdateBillingInfoRequest = {
|
|
|
155
156
|
export type UpdateBillingInfoResponse = {
|
|
156
157
|
billingInfo: BillingInfo;
|
|
157
158
|
};
|
|
159
|
+
export type ListChildRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
|
|
160
|
+
export type ListChildRequest_OrderDirection = 'ASC' | 'DESC';
|
|
161
|
+
export type ListChildRequest = {
|
|
162
|
+
orderBy?: ListChildRequest_OrderBy;
|
|
163
|
+
orderDirection?: ListChildRequest_OrderDirection;
|
|
164
|
+
page?: number;
|
|
165
|
+
perPage?: number;
|
|
166
|
+
searchByName?: string;
|
|
167
|
+
};
|
|
168
|
+
export type ListChildResponse_ChildAccount = {
|
|
169
|
+
code: string;
|
|
170
|
+
name: string;
|
|
171
|
+
};
|
|
172
|
+
export type ListChildResponse = {
|
|
173
|
+
accounts: ListChildResponse_ChildAccount[];
|
|
174
|
+
page: number;
|
|
175
|
+
perPage: number;
|
|
176
|
+
total: number;
|
|
177
|
+
};
|
|
158
178
|
export interface EmailTemplatesService {
|
|
159
179
|
Create(request: CreateEmailTemplateRequest): Promise<CreateEmailTemplateResponse>;
|
|
160
180
|
Get(request: GetEmailTemplateRequest): Promise<GetEmailTemplateResponse>;
|
package/data.js
CHANGED
|
@@ -39,6 +39,12 @@ export const data = {
|
|
|
39
39
|
"response": "pushwoosh.rpc_v2.account_groups.UpdateGroupMembersResponse",
|
|
40
40
|
"method": "put",
|
|
41
41
|
"path": "/api/account_groups/members"
|
|
42
|
+
},
|
|
43
|
+
"UpdateUserMembership": {
|
|
44
|
+
"request": "pushwoosh.rpc_v2.account_groups.UpdateUserMembershipRequest",
|
|
45
|
+
"response": "pushwoosh.rpc_v2.account_groups.UpdateUserMembershipResponse",
|
|
46
|
+
"method": "put",
|
|
47
|
+
"path": "/api/account_groups/user_membership"
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
},
|
|
@@ -196,6 +202,27 @@ export const data = {
|
|
|
196
202
|
"type": "I",
|
|
197
203
|
"fields": {}
|
|
198
204
|
},
|
|
205
|
+
"pushwoosh.rpc_v2.account_groups.UpdateUserMembershipRequest": {
|
|
206
|
+
"type": "I",
|
|
207
|
+
"fields": {
|
|
208
|
+
"username": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"groupMembership": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"array": true
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"pushwoosh.rpc_v2.account_groups.UpdateUserMembershipResponse": {
|
|
218
|
+
"type": "I",
|
|
219
|
+
"fields": {
|
|
220
|
+
"groupMembership": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"array": true
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
199
226
|
"pushwoosh.rpc_v2.account_invites.AccountInvitesService": {
|
|
200
227
|
"type": "S",
|
|
201
228
|
"key": "accountInvites",
|
|
@@ -512,6 +539,12 @@ export const data = {
|
|
|
512
539
|
"response": "pushwoosh.rpc_v2.accounts.UpdateBillingInfoResponse",
|
|
513
540
|
"method": "post",
|
|
514
541
|
"path": "/api/accounts/billing_address"
|
|
542
|
+
},
|
|
543
|
+
"ListChild": {
|
|
544
|
+
"request": "pushwoosh.rpc_v2.accounts.ListChildRequest",
|
|
545
|
+
"response": "pushwoosh.rpc_v2.accounts.ListChildResponse",
|
|
546
|
+
"method": "get",
|
|
547
|
+
"path": "/api/accounts:child"
|
|
515
548
|
}
|
|
516
549
|
}
|
|
517
550
|
},
|
|
@@ -928,6 +961,70 @@ export const data = {
|
|
|
928
961
|
}
|
|
929
962
|
}
|
|
930
963
|
},
|
|
964
|
+
"pushwoosh.rpc_v2.accounts.ListChildRequest.OrderBy": {
|
|
965
|
+
"type": "E",
|
|
966
|
+
"values": [
|
|
967
|
+
"NAME",
|
|
968
|
+
"CREATED",
|
|
969
|
+
"UPDATED"
|
|
970
|
+
]
|
|
971
|
+
},
|
|
972
|
+
"pushwoosh.rpc_v2.accounts.ListChildRequest.OrderDirection": {
|
|
973
|
+
"type": "E",
|
|
974
|
+
"values": [
|
|
975
|
+
"ASC",
|
|
976
|
+
"DESC"
|
|
977
|
+
]
|
|
978
|
+
},
|
|
979
|
+
"pushwoosh.rpc_v2.accounts.ListChildRequest": {
|
|
980
|
+
"type": "I",
|
|
981
|
+
"fields": {
|
|
982
|
+
"orderBy": {
|
|
983
|
+
"type": "pushwoosh.rpc_v2.accounts.ListChildRequest.OrderBy"
|
|
984
|
+
},
|
|
985
|
+
"orderDirection": {
|
|
986
|
+
"type": "pushwoosh.rpc_v2.accounts.ListChildRequest.OrderDirection"
|
|
987
|
+
},
|
|
988
|
+
"page": {
|
|
989
|
+
"type": "number"
|
|
990
|
+
},
|
|
991
|
+
"perPage": {
|
|
992
|
+
"type": "number"
|
|
993
|
+
},
|
|
994
|
+
"searchByName": {
|
|
995
|
+
"type": "string"
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"pushwoosh.rpc_v2.accounts.ListChildResponse.ChildAccount": {
|
|
1000
|
+
"type": "I",
|
|
1001
|
+
"fields": {
|
|
1002
|
+
"code": {
|
|
1003
|
+
"type": "string"
|
|
1004
|
+
},
|
|
1005
|
+
"name": {
|
|
1006
|
+
"type": "string"
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"pushwoosh.rpc_v2.accounts.ListChildResponse": {
|
|
1011
|
+
"type": "I",
|
|
1012
|
+
"fields": {
|
|
1013
|
+
"accounts": {
|
|
1014
|
+
"type": "pushwoosh.rpc_v2.accounts.ListChildResponse.ChildAccount",
|
|
1015
|
+
"array": true
|
|
1016
|
+
},
|
|
1017
|
+
"page": {
|
|
1018
|
+
"type": "number"
|
|
1019
|
+
},
|
|
1020
|
+
"perPage": {
|
|
1021
|
+
"type": "number"
|
|
1022
|
+
},
|
|
1023
|
+
"total": {
|
|
1024
|
+
"type": "number"
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
931
1028
|
"pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
|
|
932
1029
|
"type": "S",
|
|
933
1030
|
"key": "getAuthInfo",
|