@pushwoosh/rpc-gateway-messaging 0.6.133 → 0.6.135

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 CHANGED
@@ -29,6 +29,12 @@ export const data = {
29
29
  "method": "post",
30
30
  "path": "/messaging/v2/update"
31
31
  },
32
+ "Rename": {
33
+ "request": "pushwoosh.channels.messagingApi.v2.RenameRequest",
34
+ "response": "pushwoosh.channels.messagingApi.v2.RenameResponse",
35
+ "method": "post",
36
+ "path": "/messaging/v2/rename"
37
+ },
32
38
  "Delete": {
33
39
  "request": "pushwoosh.channels.messagingApi.v2.DeleteRequest",
34
40
  "response": "pushwoosh.channels.messagingApi.v2.DeleteResponse",
@@ -179,6 +185,21 @@ export const data = {
179
185
  }
180
186
  }
181
187
  },
188
+ "pushwoosh.channels.messagingApi.v2.RenameRequest": {
189
+ "type": "I",
190
+ "fields": {
191
+ "messageCode": {
192
+ "type": "string"
193
+ },
194
+ "campaignName": {
195
+ "type": "string"
196
+ }
197
+ }
198
+ },
199
+ "pushwoosh.channels.messagingApi.v2.RenameResponse": {
200
+ "type": "I",
201
+ "fields": {}
202
+ },
182
203
  "pushwoosh.channels.messagingApi.v2.DeleteRequest": {
183
204
  "type": "I",
184
205
  "fields": {
@@ -296,6 +317,9 @@ export const data = {
296
317
  },
297
318
  "holdoutPercentage": {
298
319
  "type": "number"
320
+ },
321
+ "campaignName": {
322
+ "type": "string"
299
323
  }
300
324
  },
301
325
  "oneofs": {
@@ -413,6 +437,9 @@ export const data = {
413
437
  },
414
438
  "controlGroup": {
415
439
  "type": "string"
440
+ },
441
+ "campaignName": {
442
+ "type": "string"
416
443
  }
417
444
  },
418
445
  "oneofs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.133",
3
+ "version": "0.6.135",
4
4
  "description": "Channels Messaging API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -4,6 +4,7 @@ export type MessagingService_Notify = RpcMethod<NotifyRequest, NotifyResponse>;
4
4
  export type MessagingService_NotifyBatch = RpcMethod<NotifyBatchRequest, NotifyBatchResponse>;
5
5
  export type MessagingService_Cancel = RpcMethod<CancelRequest, CancelResponse>;
6
6
  export type MessagingService_Update = RpcMethod<UpdateRequest, UpdateResponse>;
7
+ export type MessagingService_Rename = RpcMethod<RenameRequest, RenameResponse>;
7
8
  export type MessagingService_Delete = RpcMethod<DeleteRequest, DeleteResponse>;
8
9
  export interface MessagingService {
9
10
  /** Notify creates a new message. Can be targeted to a segment or a list of users. */
@@ -32,6 +33,12 @@ export interface MessagingService {
32
33
  * updated. The message_code does not change.
33
34
  */
34
35
  Update: MessagingService_Update;
36
+ /**
37
+ * Rename sets the campaign name of a message still in the pending (scheduled)
38
+ * state, identified by message_code. An empty name clears it, and Message
39
+ * History falls back to the message title. Nothing else about the message changes.
40
+ */
41
+ Rename: MessagingService_Rename;
35
42
  /**
36
43
  * Delete permanently removes a previously created message identified by
37
44
  * message_code. Only messages in a cancelable state (pending, waiting,
@@ -141,6 +148,13 @@ export type UpdateResponse = {
141
148
  /** Result carries the (unchanged) message_code and any unknown identifiers. */
142
149
  result: NotifyResult;
143
150
  };
151
+ export type RenameRequest = {
152
+ /** Code of the message to rename (as returned by Notify in NotifyResult.message_code). */
153
+ messageCode: string;
154
+ /** New internal campaign name, trimmed and cut to 255 characters. Empty clears it. */
155
+ campaignName: string;
156
+ };
157
+ export type RenameResponse = {};
144
158
  export type DeleteRequest = {
145
159
  /** Code of the message to delete (as returned by Notify in NotifyResult.message_code). */
146
160
  messageCode: string;
@@ -234,6 +248,11 @@ export type NotifySegment = {
234
248
  * its own. Mutually exclusive with control_group.
235
249
  */
236
250
  holdoutPercentage: number;
251
+ /**
252
+ * Internal name of the message shown in Message History and exports instead of the title.
253
+ * Trimmed and cut to 255 characters; empty keeps the title.
254
+ */
255
+ campaignName: string;
237
256
  target: NotifySegment_target;
238
257
  messagePayload: NotifySegment_messagePayload;
239
258
  };
@@ -326,6 +345,11 @@ export type NotifyTransactional = {
326
345
  * effect on a marketing message: a transactional one is never held back.
327
346
  */
328
347
  controlGroup: string;
348
+ /**
349
+ * Internal name of the message shown in Message History and exports instead of the title.
350
+ * Trimmed and cut to 255 characters; empty keeps the title.
351
+ */
352
+ campaignName: string;
329
353
  target: NotifyTransactional_target;
330
354
  messagePayload: NotifyTransactional_messagePayload;
331
355
  };