@pushwoosh/rpc-v2-http-api-data 0.1.492 → 0.1.494
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 +11 -0
- package/data.js +34 -0
- package/package.json +1 -1
package/account_groups.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export interface AccountGroupsService {
|
|
2
|
+
Get(request: GetRequest): Promise<GetResponse>;
|
|
2
3
|
List(request: ListRequest): Promise<ListResponse>;
|
|
3
4
|
Create(request: CreateRequest): Promise<CreateResponse>;
|
|
4
5
|
Update(request: UpdateRequest): Promise<UpdateResponse>;
|
|
@@ -65,3 +66,13 @@ export type UpdateUserMembershipRequest = {
|
|
|
65
66
|
export type UpdateUserMembershipResponse = {
|
|
66
67
|
groupMembership: string[];
|
|
67
68
|
};
|
|
69
|
+
export type GetRequest = {
|
|
70
|
+
name?: string;
|
|
71
|
+
};
|
|
72
|
+
export type GetResponse_AccountGroup = {
|
|
73
|
+
name: string;
|
|
74
|
+
rights: Record<string, boolean>;
|
|
75
|
+
};
|
|
76
|
+
export type GetResponse = {
|
|
77
|
+
accountGroup: GetResponse_AccountGroup;
|
|
78
|
+
};
|
package/data.js
CHANGED
|
@@ -4,6 +4,12 @@ export const data = {
|
|
|
4
4
|
"type": "S",
|
|
5
5
|
"key": "accountGroups",
|
|
6
6
|
"methods": {
|
|
7
|
+
"Get": {
|
|
8
|
+
"request": "pushwoosh.rpc_v2.account_groups.GetRequest",
|
|
9
|
+
"response": "pushwoosh.rpc_v2.account_groups.GetResponse",
|
|
10
|
+
"method": "get",
|
|
11
|
+
"path": "/api/account_groups/{name}"
|
|
12
|
+
},
|
|
7
13
|
"List": {
|
|
8
14
|
"request": "pushwoosh.rpc_v2.account_groups.ListRequest",
|
|
9
15
|
"response": "pushwoosh.rpc_v2.account_groups.ListResponse",
|
|
@@ -229,6 +235,34 @@ export const data = {
|
|
|
229
235
|
}
|
|
230
236
|
}
|
|
231
237
|
},
|
|
238
|
+
"pushwoosh.rpc_v2.account_groups.GetRequest": {
|
|
239
|
+
"type": "I",
|
|
240
|
+
"fields": {
|
|
241
|
+
"name": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"pushwoosh.rpc_v2.account_groups.GetResponse.AccountGroup": {
|
|
247
|
+
"type": "I",
|
|
248
|
+
"fields": {
|
|
249
|
+
"name": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"rights": {
|
|
253
|
+
"type": "boolean",
|
|
254
|
+
"mapKeyType": "string"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"pushwoosh.rpc_v2.account_groups.GetResponse": {
|
|
259
|
+
"type": "I",
|
|
260
|
+
"fields": {
|
|
261
|
+
"accountGroup": {
|
|
262
|
+
"type": "pushwoosh.rpc_v2.account_groups.GetResponse.AccountGroup"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
232
266
|
"pushwoosh.rpc_v2.account_invites.AccountInvitesService": {
|
|
233
267
|
"type": "S",
|
|
234
268
|
"key": "accountInvites",
|