@pushwoosh/rpc-gateway-messaging 0.6.134 → 0.6.136

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": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.134",
3
+ "version": "0.6.136",
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;