@pushwoosh/rpc-v2-http-api-data 0.1.407 → 0.1.408
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 +28 -68
- package/messages.d.ts +14 -28
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -8319,11 +8319,11 @@ export const data = {
|
|
|
8319
8319
|
"method": "post",
|
|
8320
8320
|
"path": "/api/messages/deliveryReport"
|
|
8321
8321
|
},
|
|
8322
|
-
"
|
|
8323
|
-
"request": "pushwoosh.rpc_v2.messages.
|
|
8324
|
-
"response": "pushwoosh.rpc_v2.messages.
|
|
8322
|
+
"FindRecipients": {
|
|
8323
|
+
"request": "pushwoosh.rpc_v2.messages.FindRecipientsRequest",
|
|
8324
|
+
"response": "pushwoosh.rpc_v2.messages.FindRecipientsResponse",
|
|
8325
8325
|
"method": "post",
|
|
8326
|
-
"path": "/api/messages/
|
|
8326
|
+
"path": "/api/messages/findRecipients"
|
|
8327
8327
|
}
|
|
8328
8328
|
}
|
|
8329
8329
|
},
|
|
@@ -8738,99 +8738,59 @@ export const data = {
|
|
|
8738
8738
|
}
|
|
8739
8739
|
}
|
|
8740
8740
|
},
|
|
8741
|
-
"pushwoosh.rpc_v2.messages.
|
|
8741
|
+
"pushwoosh.rpc_v2.messages.FindRecipientsRequest": {
|
|
8742
8742
|
"type": "I",
|
|
8743
8743
|
"fields": {
|
|
8744
|
-
"
|
|
8744
|
+
"application": {
|
|
8745
8745
|
"type": "string"
|
|
8746
8746
|
},
|
|
8747
|
-
"messageId": {
|
|
8748
|
-
"type": "number"
|
|
8749
|
-
},
|
|
8750
8747
|
"messageCode": {
|
|
8751
8748
|
"type": "string"
|
|
8752
8749
|
},
|
|
8753
|
-
"
|
|
8754
|
-
"type": "string"
|
|
8755
|
-
},
|
|
8756
|
-
"hwid": {
|
|
8757
|
-
"type": "string"
|
|
8758
|
-
},
|
|
8759
|
-
"dateFrom": {
|
|
8760
|
-
"type": "string"
|
|
8761
|
-
},
|
|
8762
|
-
"dateTo": {
|
|
8763
|
-
"type": "string"
|
|
8764
|
-
},
|
|
8765
|
-
"limit": {
|
|
8766
|
-
"type": "number"
|
|
8767
|
-
},
|
|
8768
|
-
"userId": {
|
|
8750
|
+
"campaign": {
|
|
8769
8751
|
"type": "string"
|
|
8770
8752
|
},
|
|
8771
|
-
"
|
|
8753
|
+
"search": {
|
|
8772
8754
|
"type": "string"
|
|
8773
|
-
},
|
|
8774
|
-
"actions": {
|
|
8775
|
-
"type": "string",
|
|
8776
|
-
"array": true
|
|
8777
|
-
},
|
|
8778
|
-
"platforms": {
|
|
8779
|
-
"type": "string",
|
|
8780
|
-
"array": true
|
|
8781
8755
|
}
|
|
8782
8756
|
}
|
|
8783
8757
|
},
|
|
8784
|
-
"pushwoosh.rpc_v2.messages.
|
|
8758
|
+
"pushwoosh.rpc_v2.messages.FindRecipientsResponse.SearchBy": {
|
|
8759
|
+
"type": "E",
|
|
8760
|
+
"values": [
|
|
8761
|
+
"hwid",
|
|
8762
|
+
"user_id"
|
|
8763
|
+
]
|
|
8764
|
+
},
|
|
8765
|
+
"pushwoosh.rpc_v2.messages.FindRecipientsResponse.Recipient": {
|
|
8785
8766
|
"type": "I",
|
|
8786
8767
|
"fields": {
|
|
8787
|
-
"timestamp": {
|
|
8788
|
-
"type": "string"
|
|
8789
|
-
},
|
|
8790
|
-
"messageId": {
|
|
8791
|
-
"type": "string"
|
|
8792
|
-
},
|
|
8793
|
-
"messageCode": {
|
|
8794
|
-
"type": "string"
|
|
8795
|
-
},
|
|
8796
|
-
"campaignCode": {
|
|
8797
|
-
"type": "string"
|
|
8798
|
-
},
|
|
8799
8768
|
"hwid": {
|
|
8800
8769
|
"type": "string"
|
|
8801
8770
|
},
|
|
8802
|
-
"
|
|
8803
|
-
"type": "string"
|
|
8804
|
-
},
|
|
8805
|
-
"action": {
|
|
8771
|
+
"userId": {
|
|
8806
8772
|
"type": "string"
|
|
8807
8773
|
},
|
|
8808
8774
|
"pushAlertsEnabled": {
|
|
8809
|
-
"type": "
|
|
8810
|
-
},
|
|
8811
|
-
"status": {
|
|
8812
|
-
"type": "string"
|
|
8813
|
-
},
|
|
8814
|
-
"errorReason": {
|
|
8815
|
-
"type": "string"
|
|
8775
|
+
"type": "boolean"
|
|
8816
8776
|
},
|
|
8817
|
-
"
|
|
8818
|
-
"type": "
|
|
8777
|
+
"sendTime": {
|
|
8778
|
+
"type": "Date"
|
|
8819
8779
|
},
|
|
8820
|
-
"
|
|
8821
|
-
"type": "
|
|
8780
|
+
"openedTime": {
|
|
8781
|
+
"type": "Date"
|
|
8822
8782
|
}
|
|
8823
8783
|
}
|
|
8824
8784
|
},
|
|
8825
|
-
"pushwoosh.rpc_v2.messages.
|
|
8785
|
+
"pushwoosh.rpc_v2.messages.FindRecipientsResponse": {
|
|
8826
8786
|
"type": "I",
|
|
8827
8787
|
"fields": {
|
|
8828
|
-
"
|
|
8829
|
-
"type": "
|
|
8830
|
-
},
|
|
8831
|
-
"data": {
|
|
8832
|
-
"type": "pushwoosh.rpc_v2.messages.GetMessageLogResponse.TrackingLogStatistic",
|
|
8788
|
+
"recipients": {
|
|
8789
|
+
"type": "pushwoosh.rpc_v2.messages.FindRecipientsResponse.Recipient",
|
|
8833
8790
|
"array": true
|
|
8791
|
+
},
|
|
8792
|
+
"searchBy": {
|
|
8793
|
+
"type": "pushwoosh.rpc_v2.messages.FindRecipientsResponse.SearchBy"
|
|
8834
8794
|
}
|
|
8835
8795
|
}
|
|
8836
8796
|
},
|
package/messages.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface MessagesService {
|
|
|
6
6
|
GetStatistics(request: GetStatisticsRequest): Promise<GetStatisticsResponse>;
|
|
7
7
|
GetLinkClicksStatistics(request: GetLinkClicksStatisticsRequest): Promise<GetLinkClicksStatisticsResponse>;
|
|
8
8
|
GetDeliveryReport(request: GetDeliveryReportRequest): Promise<GetDeliveryReportResponse>;
|
|
9
|
-
|
|
9
|
+
FindRecipients(request: FindRecipientsRequest): Promise<FindRecipientsResponse>;
|
|
10
10
|
}
|
|
11
11
|
export type Type = 'All' | 'Push' | 'Email';
|
|
12
12
|
export type PushInfo = {
|
|
@@ -143,35 +143,21 @@ export type GetDeliveryReportResponse = {
|
|
|
143
143
|
senderErrors: GetDeliveryReportResponse_DeliveryReport[];
|
|
144
144
|
mailErrors: GetDeliveryReportResponse_DeliveryReport;
|
|
145
145
|
};
|
|
146
|
-
export type
|
|
147
|
-
|
|
148
|
-
messageId?: number;
|
|
146
|
+
export type FindRecipientsRequest = {
|
|
147
|
+
application?: string;
|
|
149
148
|
messageCode?: string;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
userId?: string;
|
|
156
|
-
applicationCode?: string;
|
|
157
|
-
actions?: string[];
|
|
158
|
-
platforms?: string[];
|
|
159
|
-
};
|
|
160
|
-
export type GetMessageLogResponse_TrackingLogStatistic = {
|
|
161
|
-
timestamp: string;
|
|
162
|
-
messageId: string;
|
|
163
|
-
messageCode: string;
|
|
164
|
-
campaignCode: string;
|
|
149
|
+
campaign?: string;
|
|
150
|
+
search?: string;
|
|
151
|
+
};
|
|
152
|
+
export type FindRecipientsResponse_SearchBy = 'hwid' | 'user_id';
|
|
153
|
+
export type FindRecipientsResponse_Recipient = {
|
|
165
154
|
hwid: string;
|
|
166
|
-
platform: string;
|
|
167
|
-
action: string;
|
|
168
|
-
pushAlertsEnabled: string;
|
|
169
|
-
status: string;
|
|
170
|
-
errorReason: string;
|
|
171
155
|
userId: string;
|
|
172
|
-
|
|
156
|
+
pushAlertsEnabled: boolean;
|
|
157
|
+
sendTime: Date;
|
|
158
|
+
openedTime: Date;
|
|
173
159
|
};
|
|
174
|
-
export type
|
|
175
|
-
|
|
176
|
-
|
|
160
|
+
export type FindRecipientsResponse = {
|
|
161
|
+
recipients: FindRecipientsResponse_Recipient[];
|
|
162
|
+
searchBy: FindRecipientsResponse_SearchBy;
|
|
177
163
|
};
|