@pushwoosh/rpc-gateway-messaging 0.6.50 → 0.6.52
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 +43 -3
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +29 -5
package/data.js
CHANGED
|
@@ -115,6 +115,18 @@ export const data = {
|
|
|
115
115
|
"response": "pushwoosh.channels.messagingApi.v2.CancelResponse",
|
|
116
116
|
"method": "post",
|
|
117
117
|
"path": "/messaging/v2/cancel"
|
|
118
|
+
},
|
|
119
|
+
"Update": {
|
|
120
|
+
"request": "pushwoosh.channels.messagingApi.v2.UpdateRequest",
|
|
121
|
+
"response": "pushwoosh.channels.messagingApi.v2.UpdateResponse",
|
|
122
|
+
"method": "post",
|
|
123
|
+
"path": "/messaging/v2/update"
|
|
124
|
+
},
|
|
125
|
+
"Delete": {
|
|
126
|
+
"request": "pushwoosh.channels.messagingApi.v2.DeleteRequest",
|
|
127
|
+
"response": "pushwoosh.channels.messagingApi.v2.DeleteResponse",
|
|
128
|
+
"method": "post",
|
|
129
|
+
"path": "/messaging/v2/delete"
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
},
|
|
@@ -172,6 +184,37 @@ export const data = {
|
|
|
172
184
|
"type": "I",
|
|
173
185
|
"fields": {}
|
|
174
186
|
},
|
|
187
|
+
"pushwoosh.channels.messagingApi.v2.UpdateRequest": {
|
|
188
|
+
"type": "I",
|
|
189
|
+
"fields": {
|
|
190
|
+
"messageCode": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"request": {
|
|
194
|
+
"type": "pushwoosh.channels.messagingApi.v2.NotifyRequest"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"pushwoosh.channels.messagingApi.v2.UpdateResponse": {
|
|
199
|
+
"type": "I",
|
|
200
|
+
"fields": {
|
|
201
|
+
"result": {
|
|
202
|
+
"type": "pushwoosh.channels.messagingApi.v2.NotifyResult"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"pushwoosh.channels.messagingApi.v2.DeleteRequest": {
|
|
207
|
+
"type": "I",
|
|
208
|
+
"fields": {
|
|
209
|
+
"messageCode": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"pushwoosh.channels.messagingApi.v2.DeleteResponse": {
|
|
215
|
+
"type": "I",
|
|
216
|
+
"fields": {}
|
|
217
|
+
},
|
|
175
218
|
"pushwoosh.channels.messagingApi.v2.MessageType": {
|
|
176
219
|
"type": "E",
|
|
177
220
|
"values": [
|
|
@@ -261,9 +304,6 @@ export const data = {
|
|
|
261
304
|
},
|
|
262
305
|
"messageType": {
|
|
263
306
|
"type": "pushwoosh.channels.messagingApi.v2.MessageType"
|
|
264
|
-
},
|
|
265
|
-
"registrationType": {
|
|
266
|
-
"type": "pushwoosh.channels.messagingApi.v2.RegistrationType"
|
|
267
307
|
}
|
|
268
308
|
},
|
|
269
309
|
"oneofs": {
|
package/package.json
CHANGED
|
@@ -45,6 +45,8 @@ export type ClearMessageRequest = {
|
|
|
45
45
|
export type ClearMessageResponse = {};
|
|
46
46
|
export type MessagingService_Notify = RpcMethod<NotifyRequest, NotifyResponse>;
|
|
47
47
|
export type MessagingService_Cancel = RpcMethod<CancelRequest, CancelResponse>;
|
|
48
|
+
export type MessagingService_Update = RpcMethod<UpdateRequest, UpdateResponse>;
|
|
49
|
+
export type MessagingService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
|
|
48
50
|
export interface MessagingService {
|
|
49
51
|
/** Notify creates a new message. Can be targeted to a segment or a list of users. */
|
|
50
52
|
Notify: MessagingService_Notify;
|
|
@@ -53,6 +55,18 @@ export interface MessagingService {
|
|
|
53
55
|
* Only messages in a cancelable state (pending, waiting, processing) can be canceled.
|
|
54
56
|
*/
|
|
55
57
|
Cancel: MessagingService_Cancel;
|
|
58
|
+
/**
|
|
59
|
+
* Update replaces a previously created message identified by message_code with
|
|
60
|
+
* a new definition. Only messages still in the pending (scheduled) state can be
|
|
61
|
+
* updated. The message_code does not change.
|
|
62
|
+
*/
|
|
63
|
+
Update: MessagingService_Update;
|
|
64
|
+
/**
|
|
65
|
+
* Delete permanently removes a previously created message identified by
|
|
66
|
+
* message_code. Only messages in a cancelable state (pending, waiting,
|
|
67
|
+
* processing) can be deleted.
|
|
68
|
+
*/
|
|
69
|
+
Delete: MessagingService_Delete;
|
|
56
70
|
}
|
|
57
71
|
export type NotifyRequest_kind_segment = {
|
|
58
72
|
type: 'segment';
|
|
@@ -84,6 +98,21 @@ export type CancelRequest = {
|
|
|
84
98
|
messageCode: string;
|
|
85
99
|
};
|
|
86
100
|
export type CancelResponse = {};
|
|
101
|
+
export type UpdateRequest = {
|
|
102
|
+
/** Code of the message to update (as returned by Notify in NotifyResult.message_code). */
|
|
103
|
+
messageCode: string;
|
|
104
|
+
/** Full new definition of the message. Same shape as Notify (full replace, not a patch). */
|
|
105
|
+
request: NotifyRequest;
|
|
106
|
+
};
|
|
107
|
+
export type UpdateResponse = {
|
|
108
|
+
/** Result carries the (unchanged) message_code and any unknown identifiers. */
|
|
109
|
+
result: NotifyResult;
|
|
110
|
+
};
|
|
111
|
+
export type DeleteRequest = {
|
|
112
|
+
/** Code of the message to delete (as returned by Notify in NotifyResult.message_code). */
|
|
113
|
+
messageCode: string;
|
|
114
|
+
};
|
|
115
|
+
export type DeleteResponse = {};
|
|
87
116
|
export type MessageType = 'MESSAGE_TYPE_UNSPECIFIED' | 'MESSAGE_TYPE_MARKETING' | 'MESSAGE_TYPE_TRANSACTIONAL';
|
|
88
117
|
/**
|
|
89
118
|
* RegistrationType controls whether destinations referenced by hwid / push token /
|
|
@@ -149,11 +178,6 @@ export type NotifySegment = {
|
|
|
149
178
|
* Used to control behavior like control group filtering.
|
|
150
179
|
*/
|
|
151
180
|
messageType: MessageType;
|
|
152
|
-
/**
|
|
153
|
-
* Whether to auto-create unknown destination identifiers.
|
|
154
|
-
* See RegistrationType for semantics. Applies across channels (email, SMS, …).
|
|
155
|
-
*/
|
|
156
|
-
registrationType: RegistrationType;
|
|
157
181
|
target: NotifySegment_target;
|
|
158
182
|
messagePayload: NotifySegment_messagePayload;
|
|
159
183
|
};
|