@pushwoosh/rpc-v2-http-api-data 0.1.716 → 0.1.718

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.
Files changed (3) hide show
  1. package/accounts.d.ts +23 -0
  2. package/data.js +81 -0
  3. package/package.json +1 -1
package/accounts.d.ts CHANGED
@@ -13,6 +13,7 @@ export interface AccountsService {
13
13
  GetBillingInfo(request: GetBillingInfoRequest): Promise<GetBillingInfoResponse>;
14
14
  UpdateBillingInfo(request: UpdateBillingInfoRequest): Promise<UpdateBillingInfoResponse>;
15
15
  ListChild(request: ListChildRequest): Promise<ListChildResponse>;
16
+ GetAuthHistory(request: GetAuthHistoryRequest): Promise<GetAuthHistoryResponse>;
16
17
  }
17
18
  export type GetEmailStatisticCountRequest = {
18
19
  dateFrom?: Date;
@@ -174,6 +175,28 @@ export type ListChildResponse = {
174
175
  perPage: number;
175
176
  total: number;
176
177
  };
178
+ export type GetAuthHistoryRequest_OrderBy = 'DATE';
179
+ export type GetAuthHistoryRequest_OrderDirection = 'DESC' | 'ASC';
180
+ export type GetAuthHistoryRequest = {
181
+ orderBy?: GetAuthHistoryRequest_OrderBy;
182
+ orderDirection?: GetAuthHistoryRequest_OrderDirection;
183
+ page?: number;
184
+ perPage?: number;
185
+ searchByEmail?: string;
186
+ };
187
+ export type GetAuthHistoryResponse_AuthRecord_AuthStatus = 'SUCCESS' | 'FAILED';
188
+ export type GetAuthHistoryResponse_AuthRecord = {
189
+ email: string;
190
+ status: GetAuthHistoryResponse_AuthRecord_AuthStatus;
191
+ ip: string;
192
+ date: Date;
193
+ };
194
+ export type GetAuthHistoryResponse = {
195
+ records: GetAuthHistoryResponse_AuthRecord[];
196
+ page: number;
197
+ perPage: number;
198
+ total: number;
199
+ };
177
200
  export interface EmailTemplatesService {
178
201
  Create(request: CreateEmailTemplateRequest): Promise<CreateEmailTemplateResponse>;
179
202
  Get(request: GetEmailTemplateRequest): Promise<GetEmailTemplateResponse>;
package/data.js CHANGED
@@ -585,6 +585,12 @@ export const data = {
585
585
  "response": "pushwoosh.rpc_v2.accounts.ListChildResponse",
586
586
  "method": "get",
587
587
  "path": "/api/accounts:child"
588
+ },
589
+ "GetAuthHistory": {
590
+ "request": "pushwoosh.rpc_v2.accounts.GetAuthHistoryRequest",
591
+ "response": "pushwoosh.rpc_v2.accounts.GetAuthHistoryResponse",
592
+ "method": "get",
593
+ "path": "/api/accounts/auth_history"
588
594
  }
589
595
  }
590
596
  },
@@ -1062,6 +1068,81 @@ export const data = {
1062
1068
  }
1063
1069
  }
1064
1070
  },
1071
+ "pushwoosh.rpc_v2.accounts.GetAuthHistoryRequest.OrderBy": {
1072
+ "type": "E",
1073
+ "values": [
1074
+ "DATE"
1075
+ ]
1076
+ },
1077
+ "pushwoosh.rpc_v2.accounts.GetAuthHistoryRequest.OrderDirection": {
1078
+ "type": "E",
1079
+ "values": [
1080
+ "DESC",
1081
+ "ASC"
1082
+ ]
1083
+ },
1084
+ "pushwoosh.rpc_v2.accounts.GetAuthHistoryRequest": {
1085
+ "type": "I",
1086
+ "fields": {
1087
+ "orderBy": {
1088
+ "type": "pushwoosh.rpc_v2.accounts.GetAuthHistoryRequest.OrderBy"
1089
+ },
1090
+ "orderDirection": {
1091
+ "type": "pushwoosh.rpc_v2.accounts.GetAuthHistoryRequest.OrderDirection"
1092
+ },
1093
+ "page": {
1094
+ "type": "number"
1095
+ },
1096
+ "perPage": {
1097
+ "type": "number"
1098
+ },
1099
+ "searchByEmail": {
1100
+ "type": "string"
1101
+ }
1102
+ }
1103
+ },
1104
+ "pushwoosh.rpc_v2.accounts.GetAuthHistoryResponse.AuthRecord.AuthStatus": {
1105
+ "type": "E",
1106
+ "values": [
1107
+ "SUCCESS",
1108
+ "FAILED"
1109
+ ]
1110
+ },
1111
+ "pushwoosh.rpc_v2.accounts.GetAuthHistoryResponse.AuthRecord": {
1112
+ "type": "I",
1113
+ "fields": {
1114
+ "email": {
1115
+ "type": "string"
1116
+ },
1117
+ "status": {
1118
+ "type": "pushwoosh.rpc_v2.accounts.GetAuthHistoryResponse.AuthRecord.AuthStatus"
1119
+ },
1120
+ "ip": {
1121
+ "type": "string"
1122
+ },
1123
+ "date": {
1124
+ "type": "Date"
1125
+ }
1126
+ }
1127
+ },
1128
+ "pushwoosh.rpc_v2.accounts.GetAuthHistoryResponse": {
1129
+ "type": "I",
1130
+ "fields": {
1131
+ "records": {
1132
+ "type": "pushwoosh.rpc_v2.accounts.GetAuthHistoryResponse.AuthRecord",
1133
+ "array": true
1134
+ },
1135
+ "page": {
1136
+ "type": "number"
1137
+ },
1138
+ "perPage": {
1139
+ "type": "number"
1140
+ },
1141
+ "total": {
1142
+ "type": "number"
1143
+ }
1144
+ }
1145
+ },
1065
1146
  "pushwoosh.rpc_v2.accounts_get_auth_info.GetAuthInfoService": {
1066
1147
  "type": "S",
1067
1148
  "key": "getAuthInfo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.716",
3
+ "version": "0.1.718",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",