@pushwoosh/rpc-v2-http-api-data 0.2.109 → 0.2.110
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/data.js +72 -0
- package/messages.d.ts +30 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -15550,6 +15550,12 @@ export const data = {
|
|
|
15550
15550
|
"response": "pushwoosh.rpc_v2.messages.GetDevicesListResponse",
|
|
15551
15551
|
"method": "post",
|
|
15552
15552
|
"path": "/api/messages/getDevicesList"
|
|
15553
|
+
},
|
|
15554
|
+
"GetUserInboxMessages": {
|
|
15555
|
+
"request": "pushwoosh.rpc_v2.messages.GetUserInboxMessagesRequest",
|
|
15556
|
+
"response": "pushwoosh.rpc_v2.messages.GetUserInboxMessagesResponse",
|
|
15557
|
+
"method": "post",
|
|
15558
|
+
"path": "/api/messages/getUserInboxMessages"
|
|
15553
15559
|
}
|
|
15554
15560
|
}
|
|
15555
15561
|
},
|
|
@@ -16165,6 +16171,72 @@ export const data = {
|
|
|
16165
16171
|
}
|
|
16166
16172
|
}
|
|
16167
16173
|
},
|
|
16174
|
+
"pushwoosh.rpc_v2.messages.GetUserInboxMessagesRequest": {
|
|
16175
|
+
"type": "I",
|
|
16176
|
+
"fields": {
|
|
16177
|
+
"application": {
|
|
16178
|
+
"type": "string"
|
|
16179
|
+
},
|
|
16180
|
+
"userId": {
|
|
16181
|
+
"type": "string"
|
|
16182
|
+
},
|
|
16183
|
+
"platform": {
|
|
16184
|
+
"type": "number"
|
|
16185
|
+
}
|
|
16186
|
+
}
|
|
16187
|
+
},
|
|
16188
|
+
"pushwoosh.rpc_v2.messages.GetUserInboxMessagesResponse.InboxMessage.Status": {
|
|
16189
|
+
"type": "E",
|
|
16190
|
+
"values": [
|
|
16191
|
+
"created",
|
|
16192
|
+
"delivered",
|
|
16193
|
+
"read",
|
|
16194
|
+
"opened",
|
|
16195
|
+
"deleted_by_user",
|
|
16196
|
+
"deleted"
|
|
16197
|
+
]
|
|
16198
|
+
},
|
|
16199
|
+
"pushwoosh.rpc_v2.messages.GetUserInboxMessagesResponse.InboxMessage": {
|
|
16200
|
+
"type": "I",
|
|
16201
|
+
"fields": {
|
|
16202
|
+
"inboxId": {
|
|
16203
|
+
"type": "string"
|
|
16204
|
+
},
|
|
16205
|
+
"messageId": {
|
|
16206
|
+
"type": "number"
|
|
16207
|
+
},
|
|
16208
|
+
"title": {
|
|
16209
|
+
"type": "string"
|
|
16210
|
+
},
|
|
16211
|
+
"text": {
|
|
16212
|
+
"type": "string"
|
|
16213
|
+
},
|
|
16214
|
+
"image": {
|
|
16215
|
+
"type": "string"
|
|
16216
|
+
},
|
|
16217
|
+
"status": {
|
|
16218
|
+
"type": "pushwoosh.rpc_v2.messages.GetUserInboxMessagesResponse.InboxMessage.Status"
|
|
16219
|
+
},
|
|
16220
|
+
"platform": {
|
|
16221
|
+
"type": "number"
|
|
16222
|
+
},
|
|
16223
|
+
"sendDate": {
|
|
16224
|
+
"type": "Date"
|
|
16225
|
+
},
|
|
16226
|
+
"expireAt": {
|
|
16227
|
+
"type": "Date"
|
|
16228
|
+
}
|
|
16229
|
+
}
|
|
16230
|
+
},
|
|
16231
|
+
"pushwoosh.rpc_v2.messages.GetUserInboxMessagesResponse": {
|
|
16232
|
+
"type": "I",
|
|
16233
|
+
"fields": {
|
|
16234
|
+
"messages": {
|
|
16235
|
+
"type": "pushwoosh.rpc_v2.messages.GetUserInboxMessagesResponse.InboxMessage",
|
|
16236
|
+
"array": true
|
|
16237
|
+
}
|
|
16238
|
+
}
|
|
16239
|
+
},
|
|
16168
16240
|
"pushwoosh.rpc_v2.messages.GetDevicesListRequest": {
|
|
16169
16241
|
"type": "I",
|
|
16170
16242
|
"fields": {
|
package/messages.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type MessagesService_GetDeliveryReport = RpcMethod<GetDeliveryReportReque
|
|
|
9
9
|
export type MessagesService_FindRecipients = RpcMethod<FindRecipientsRequest, FindRecipientsResponse>;
|
|
10
10
|
export type MessagesService_GetDeviceReceivedMessages = RpcMethod<GetDeviceReceivedMessagesRequest, GetDeviceReceivedMessagesResponse>;
|
|
11
11
|
export type MessagesService_GetDevicesList = RpcMethod<GetDevicesListRequest, GetDevicesListResponse>;
|
|
12
|
+
export type MessagesService_GetUserInboxMessages = RpcMethod<GetUserInboxMessagesRequest, GetUserInboxMessagesResponse>;
|
|
12
13
|
export interface MessagesService {
|
|
13
14
|
/** Lists messages (push, email or SMS sends) for an application, newest first, with paging, free-text search and an optional type filter. Use to browse sends or find a message code before fetching details or statistics. */
|
|
14
15
|
List: MessagesService_List;
|
|
@@ -30,6 +31,8 @@ export interface MessagesService {
|
|
|
30
31
|
GetDeviceReceivedMessages: MessagesService_GetDeviceReceivedMessages;
|
|
31
32
|
/** Returns the device hwids and user ids targeted by a message code. Use to see the exact audience a message was sent to. */
|
|
32
33
|
GetDevicesList: MessagesService_GetDevicesList;
|
|
34
|
+
/** Lists the message inbox of a single user (by user id): what the app's inbox screen would show, with per-message inbox status, send date and expiration. Use to check what a user still has in their inbox, as opposed to what was sent to their device. */
|
|
35
|
+
GetUserInboxMessages: MessagesService_GetUserInboxMessages;
|
|
33
36
|
}
|
|
34
37
|
export type Type = 'All' | 'Push' | 'Email' | 'Sms';
|
|
35
38
|
export type PushInfo = {
|
|
@@ -261,6 +264,33 @@ export type GetDeviceReceivedMessagesResponse_Message = {
|
|
|
261
264
|
export type GetDeviceReceivedMessagesResponse = {
|
|
262
265
|
messages: GetDeviceReceivedMessagesResponse_Message[];
|
|
263
266
|
};
|
|
267
|
+
export type GetUserInboxMessagesRequest = {
|
|
268
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
269
|
+
application?: string;
|
|
270
|
+
/** Inbox owner: user id set by the SDK, or the device hwid for anonymous users. */
|
|
271
|
+
userId?: string;
|
|
272
|
+
/** Platform (device type) to filter by; 0 returns every platform. */
|
|
273
|
+
platform?: number;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Inbox lifecycle status reported by the SDK. Messages deleted by the user are
|
|
277
|
+
* dropped from the inbox, so they are never returned.
|
|
278
|
+
*/
|
|
279
|
+
export type GetUserInboxMessagesResponse_InboxMessage_Status = 'created' | 'delivered' | 'read' | 'opened' | 'deleted_by_user' | 'deleted';
|
|
280
|
+
export type GetUserInboxMessagesResponse_InboxMessage = {
|
|
281
|
+
inboxId: string;
|
|
282
|
+
messageId: number;
|
|
283
|
+
title: string;
|
|
284
|
+
text: string;
|
|
285
|
+
image: string;
|
|
286
|
+
status: GetUserInboxMessagesResponse_InboxMessage_Status;
|
|
287
|
+
platform: number;
|
|
288
|
+
sendDate: Date;
|
|
289
|
+
expireAt: Date;
|
|
290
|
+
};
|
|
291
|
+
export type GetUserInboxMessagesResponse = {
|
|
292
|
+
messages: GetUserInboxMessagesResponse_InboxMessage[];
|
|
293
|
+
};
|
|
264
294
|
export type GetDevicesListRequest = {
|
|
265
295
|
/** Message code whose targeted device hwids and user ids to return. */
|
|
266
296
|
messageCode?: string;
|