@pushwoosh/rpc-gateway-messaging 0.6.142 → 0.6.144
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 +17 -1
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +12 -1
package/data.js
CHANGED
|
@@ -217,7 +217,17 @@ export const data = {
|
|
|
217
217
|
"values": [
|
|
218
218
|
"MESSAGE_TYPE_UNSPECIFIED",
|
|
219
219
|
"MESSAGE_TYPE_MARKETING",
|
|
220
|
-
"MESSAGE_TYPE_TRANSACTIONAL"
|
|
220
|
+
"MESSAGE_TYPE_TRANSACTIONAL",
|
|
221
|
+
"MESSAGE_TYPE_FUNCTIONAL"
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"pushwoosh.channels.messagingApi.v2.MessageTypeSource": {
|
|
225
|
+
"type": "E",
|
|
226
|
+
"values": [
|
|
227
|
+
"MESSAGE_TYPE_SOURCE_UNSPECIFIED",
|
|
228
|
+
"MESSAGE_TYPE_SOURCE_CLIENT",
|
|
229
|
+
"MESSAGE_TYPE_SOURCE_DEFAULT",
|
|
230
|
+
"MESSAGE_TYPE_SOURCE_APP_DEFAULT"
|
|
221
231
|
]
|
|
222
232
|
},
|
|
223
233
|
"pushwoosh.channels.messagingApi.v2.RegistrationType": {
|
|
@@ -320,6 +330,9 @@ export const data = {
|
|
|
320
330
|
},
|
|
321
331
|
"campaignName": {
|
|
322
332
|
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
"messageTypeSource": {
|
|
335
|
+
"type": "pushwoosh.channels.messagingApi.v2.MessageTypeSource"
|
|
323
336
|
}
|
|
324
337
|
},
|
|
325
338
|
"oneofs": {
|
|
@@ -440,6 +453,9 @@ export const data = {
|
|
|
440
453
|
},
|
|
441
454
|
"campaignName": {
|
|
442
455
|
"type": "string"
|
|
456
|
+
},
|
|
457
|
+
"messageTypeSource": {
|
|
458
|
+
"type": "pushwoosh.channels.messagingApi.v2.MessageTypeSource"
|
|
443
459
|
}
|
|
444
460
|
},
|
|
445
461
|
"oneofs": {
|
package/package.json
CHANGED
|
@@ -160,7 +160,14 @@ export type DeleteRequest = {
|
|
|
160
160
|
messageCode: string;
|
|
161
161
|
};
|
|
162
162
|
export type DeleteResponse = {};
|
|
163
|
-
export type MessageType = 'MESSAGE_TYPE_UNSPECIFIED' | 'MESSAGE_TYPE_MARKETING' | 'MESSAGE_TYPE_TRANSACTIONAL'
|
|
163
|
+
export type MessageType = 'MESSAGE_TYPE_UNSPECIFIED' | 'MESSAGE_TYPE_MARKETING' | 'MESSAGE_TYPE_TRANSACTIONAL'
|
|
164
|
+
/** A push with nothing to show (silent, data-only); set by the platform, a client may not choose it. */
|
|
165
|
+
| 'MESSAGE_TYPE_FUNCTIONAL';
|
|
166
|
+
/**
|
|
167
|
+
* MessageTypeSource tells where message_type came from; UNSPECIFIED is "none". Stored as the
|
|
168
|
+
* message_type_source property: client, default, app_default (channels/sdk pkg/messagetype).
|
|
169
|
+
*/
|
|
170
|
+
export type MessageTypeSource = 'MESSAGE_TYPE_SOURCE_UNSPECIFIED' | 'MESSAGE_TYPE_SOURCE_CLIENT' | 'MESSAGE_TYPE_SOURCE_DEFAULT' | 'MESSAGE_TYPE_SOURCE_APP_DEFAULT';
|
|
164
171
|
/**
|
|
165
172
|
* RegistrationType controls whether destinations referenced by hwid / push token /
|
|
166
173
|
* user_id / email address / phone number that are NOT yet present in Pushwoosh
|
|
@@ -253,6 +260,8 @@ export type NotifySegment = {
|
|
|
253
260
|
* Trimmed and cut to 255 characters; empty keeps the title.
|
|
254
261
|
*/
|
|
255
262
|
campaignName: string;
|
|
263
|
+
/** Internal: where message_type came from, e.g. a journey default baked at publish; ignored for external requests. */
|
|
264
|
+
messageTypeSource: MessageTypeSource;
|
|
256
265
|
target: NotifySegment_target;
|
|
257
266
|
messagePayload: NotifySegment_messagePayload;
|
|
258
267
|
};
|
|
@@ -350,6 +359,8 @@ export type NotifyTransactional = {
|
|
|
350
359
|
* Trimmed and cut to 255 characters; empty keeps the title.
|
|
351
360
|
*/
|
|
352
361
|
campaignName: string;
|
|
362
|
+
/** Internal: where message_type came from, e.g. a journey default baked at publish; ignored for external requests. */
|
|
363
|
+
messageTypeSource: MessageTypeSource;
|
|
353
364
|
target: NotifyTransactional_target;
|
|
354
365
|
messagePayload: NotifyTransactional_messagePayload;
|
|
355
366
|
};
|