@pushwoosh/rpc-v2-http-api-data 0.1.463 → 0.1.464
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 +12 -1
- package/account_users.d.ts +27 -0
- package/account_users.js +2 -0
- package/data.js +132 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/account_groups.d.ts
CHANGED
|
@@ -6,13 +6,24 @@ export interface AccountGroupsService {
|
|
|
6
6
|
ListGroupMembers(request: ListGroupMembersRequest): Promise<ListGroupMembersResponse>;
|
|
7
7
|
UpdateGroupMembers(request: UpdateGroupMembersRequest): Promise<UpdateGroupMembersResponse>;
|
|
8
8
|
}
|
|
9
|
-
export type
|
|
9
|
+
export type ListRequest_OrderBy = 'NAME';
|
|
10
|
+
export type ListRequest_OrderDirection = 'ASC' | 'DESC';
|
|
11
|
+
export type ListRequest = {
|
|
12
|
+
page?: number;
|
|
13
|
+
perPage?: number;
|
|
14
|
+
orderBy?: ListRequest_OrderBy;
|
|
15
|
+
orderDirection?: ListRequest_OrderDirection;
|
|
16
|
+
searchByName?: string;
|
|
17
|
+
};
|
|
10
18
|
export type ListResponse_AccountGroup = {
|
|
11
19
|
name: string;
|
|
12
20
|
rights: Record<string, boolean>;
|
|
13
21
|
};
|
|
14
22
|
export type ListResponse = {
|
|
15
23
|
accountGroups: ListResponse_AccountGroup[];
|
|
24
|
+
page: number;
|
|
25
|
+
perPage: number;
|
|
26
|
+
total: number;
|
|
16
27
|
};
|
|
17
28
|
export type CreateRequest = {
|
|
18
29
|
name?: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface AccountUsersService {
|
|
2
|
+
List(request: ListRequest): Promise<ListResponse>;
|
|
3
|
+
Delete(request: DeleteRequest): Promise<DeleteResponse>;
|
|
4
|
+
}
|
|
5
|
+
export type ListRequest_OrderBy = 'EMAIL';
|
|
6
|
+
export type ListRequest_OrderDirection = 'ASC' | 'DESC';
|
|
7
|
+
export type ListRequest = {
|
|
8
|
+
page?: number;
|
|
9
|
+
perPage?: number;
|
|
10
|
+
orderBy?: ListRequest_OrderBy;
|
|
11
|
+
orderDirection?: ListRequest_OrderDirection;
|
|
12
|
+
searchByEmail?: string;
|
|
13
|
+
};
|
|
14
|
+
export type ListResponse_AccountUser = {
|
|
15
|
+
email: string;
|
|
16
|
+
userGroups: Record<string, boolean>;
|
|
17
|
+
};
|
|
18
|
+
export type ListResponse = {
|
|
19
|
+
accountUsers: ListResponse_AccountUser[];
|
|
20
|
+
page: number;
|
|
21
|
+
perPage: number;
|
|
22
|
+
total: number;
|
|
23
|
+
};
|
|
24
|
+
export type DeleteRequest = {
|
|
25
|
+
email?: string;
|
|
26
|
+
};
|
|
27
|
+
export type DeleteResponse = {};
|
package/account_users.js
ADDED
package/data.js
CHANGED
|
@@ -42,9 +42,38 @@ export const data = {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
+
"pushwoosh.rpc_v2.account_groups.ListRequest.OrderBy": {
|
|
46
|
+
"type": "E",
|
|
47
|
+
"values": [
|
|
48
|
+
"NAME"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"pushwoosh.rpc_v2.account_groups.ListRequest.OrderDirection": {
|
|
52
|
+
"type": "E",
|
|
53
|
+
"values": [
|
|
54
|
+
"ASC",
|
|
55
|
+
"DESC"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
45
58
|
"pushwoosh.rpc_v2.account_groups.ListRequest": {
|
|
46
59
|
"type": "I",
|
|
47
|
-
"fields": {
|
|
60
|
+
"fields": {
|
|
61
|
+
"page": {
|
|
62
|
+
"type": "number"
|
|
63
|
+
},
|
|
64
|
+
"perPage": {
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
"orderBy": {
|
|
68
|
+
"type": "pushwoosh.rpc_v2.account_groups.ListRequest.OrderBy"
|
|
69
|
+
},
|
|
70
|
+
"orderDirection": {
|
|
71
|
+
"type": "pushwoosh.rpc_v2.account_groups.ListRequest.OrderDirection"
|
|
72
|
+
},
|
|
73
|
+
"searchByName": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
48
77
|
},
|
|
49
78
|
"pushwoosh.rpc_v2.account_groups.ListResponse.AccountGroup": {
|
|
50
79
|
"type": "I",
|
|
@@ -64,6 +93,15 @@ export const data = {
|
|
|
64
93
|
"accountGroups": {
|
|
65
94
|
"type": "pushwoosh.rpc_v2.account_groups.ListResponse.AccountGroup",
|
|
66
95
|
"array": true
|
|
96
|
+
},
|
|
97
|
+
"page": {
|
|
98
|
+
"type": "number"
|
|
99
|
+
},
|
|
100
|
+
"perPage": {
|
|
101
|
+
"type": "number"
|
|
102
|
+
},
|
|
103
|
+
"total": {
|
|
104
|
+
"type": "number"
|
|
67
105
|
}
|
|
68
106
|
}
|
|
69
107
|
},
|
|
@@ -297,6 +335,99 @@ export const data = {
|
|
|
297
335
|
"type": "I",
|
|
298
336
|
"fields": {}
|
|
299
337
|
},
|
|
338
|
+
"pushwoosh.rpc_v2.account_users.AccountUsersService": {
|
|
339
|
+
"type": "S",
|
|
340
|
+
"key": "accountUsers",
|
|
341
|
+
"methods": {
|
|
342
|
+
"List": {
|
|
343
|
+
"request": "pushwoosh.rpc_v2.account_users.ListRequest",
|
|
344
|
+
"response": "pushwoosh.rpc_v2.account_users.ListResponse",
|
|
345
|
+
"method": "get",
|
|
346
|
+
"path": "/api/account_users"
|
|
347
|
+
},
|
|
348
|
+
"Delete": {
|
|
349
|
+
"request": "pushwoosh.rpc_v2.account_users.DeleteRequest",
|
|
350
|
+
"response": "pushwoosh.rpc_v2.account_users.DeleteResponse",
|
|
351
|
+
"method": "delete",
|
|
352
|
+
"path": "/api/account_users"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"pushwoosh.rpc_v2.account_users.ListRequest.OrderBy": {
|
|
357
|
+
"type": "E",
|
|
358
|
+
"values": [
|
|
359
|
+
"EMAIL"
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"pushwoosh.rpc_v2.account_users.ListRequest.OrderDirection": {
|
|
363
|
+
"type": "E",
|
|
364
|
+
"values": [
|
|
365
|
+
"ASC",
|
|
366
|
+
"DESC"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"pushwoosh.rpc_v2.account_users.ListRequest": {
|
|
370
|
+
"type": "I",
|
|
371
|
+
"fields": {
|
|
372
|
+
"page": {
|
|
373
|
+
"type": "number"
|
|
374
|
+
},
|
|
375
|
+
"perPage": {
|
|
376
|
+
"type": "number"
|
|
377
|
+
},
|
|
378
|
+
"orderBy": {
|
|
379
|
+
"type": "pushwoosh.rpc_v2.account_users.ListRequest.OrderBy"
|
|
380
|
+
},
|
|
381
|
+
"orderDirection": {
|
|
382
|
+
"type": "pushwoosh.rpc_v2.account_users.ListRequest.OrderDirection"
|
|
383
|
+
},
|
|
384
|
+
"searchByEmail": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"pushwoosh.rpc_v2.account_users.ListResponse.AccountUser": {
|
|
390
|
+
"type": "I",
|
|
391
|
+
"fields": {
|
|
392
|
+
"email": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
},
|
|
395
|
+
"userGroups": {
|
|
396
|
+
"type": "boolean",
|
|
397
|
+
"mapKeyType": "string"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"pushwoosh.rpc_v2.account_users.ListResponse": {
|
|
402
|
+
"type": "I",
|
|
403
|
+
"fields": {
|
|
404
|
+
"accountUsers": {
|
|
405
|
+
"type": "pushwoosh.rpc_v2.account_users.ListResponse.AccountUser",
|
|
406
|
+
"array": true
|
|
407
|
+
},
|
|
408
|
+
"page": {
|
|
409
|
+
"type": "number"
|
|
410
|
+
},
|
|
411
|
+
"perPage": {
|
|
412
|
+
"type": "number"
|
|
413
|
+
},
|
|
414
|
+
"total": {
|
|
415
|
+
"type": "number"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"pushwoosh.rpc_v2.account_users.DeleteRequest": {
|
|
420
|
+
"type": "I",
|
|
421
|
+
"fields": {
|
|
422
|
+
"email": {
|
|
423
|
+
"type": "string"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"pushwoosh.rpc_v2.account_users.DeleteResponse": {
|
|
428
|
+
"type": "I",
|
|
429
|
+
"fields": {}
|
|
430
|
+
},
|
|
300
431
|
"pushwoosh.rpc_v2.accounts.AccountsService": {
|
|
301
432
|
"type": "S",
|
|
302
433
|
"key": "accounts",
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccountGroupsService as pushwoosh_rpc_v2_account_groups_AccountGroupsService } from './account_groups';
|
|
2
2
|
import { AccountInvitesService as pushwoosh_rpc_v2_account_invites_AccountInvitesService } from './account_invites';
|
|
3
|
+
import { AccountUsersService as pushwoosh_rpc_v2_account_users_AccountUsersService } from './account_users';
|
|
3
4
|
import { AccountsService as pushwoosh_rpc_v2_accounts_AccountsService } from './accounts';
|
|
4
5
|
import { GetAuthInfoService as pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService } from './accounts_get_auth_info';
|
|
5
6
|
import { ApiTokensService as pushwoosh_rpc_v2_api_tokens_ApiTokensService } from './api_tokens';
|
|
@@ -43,6 +44,7 @@ import { WhatsAppPresetsService as pushwoosh_rpc_v2_whatsapp_presets_WhatsAppPre
|
|
|
43
44
|
export type API = {
|
|
44
45
|
accountGroups: pushwoosh_rpc_v2_account_groups_AccountGroupsService;
|
|
45
46
|
accountInvites: pushwoosh_rpc_v2_account_invites_AccountInvitesService;
|
|
47
|
+
accountUsers: pushwoosh_rpc_v2_account_users_AccountUsersService;
|
|
46
48
|
accounts: pushwoosh_rpc_v2_accounts_AccountsService;
|
|
47
49
|
getAuthInfo: pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService;
|
|
48
50
|
apiTokens: pushwoosh_rpc_v2_api_tokens_ApiTokensService;
|