@pushwoosh/rpc-v2-http-api-data 0.1.468 → 0.1.470
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/accounts.d.ts +20 -0
- package/data.js +70 -0
- package/package.json +1 -1
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
|
@@ -539,6 +539,12 @@ export const data = {
|
|
|
539
539
|
"response": "pushwoosh.rpc_v2.accounts.UpdateBillingInfoResponse",
|
|
540
540
|
"method": "post",
|
|
541
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"
|
|
542
548
|
}
|
|
543
549
|
}
|
|
544
550
|
},
|
|
@@ -955,6 +961,70 @@ export const data = {
|
|
|
955
961
|
}
|
|
956
962
|
}
|
|
957
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
|
+
},
|
|
958
1028
|
"pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
|
|
959
1029
|
"type": "S",
|
|
960
1030
|
"key": "getAuthInfo",
|