@pushwoosh/rpc-v2-http-api-data 0.2.381 → 0.2.382

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
@@ -19846,6 +19846,24 @@ export const data = {
19846
19846
  "response": "pushwoosh.rpc_v2.inapp_messages.PublishInappResponse",
19847
19847
  "method": "post",
19848
19848
  "path": "/api/inapp_messages/{code}:publish"
19849
+ },
19850
+ "StopInappMessages": {
19851
+ "request": "pushwoosh.rpc_v2.inapp_messages.StopInappMessagesRequest",
19852
+ "response": "pushwoosh.rpc_v2.inapp_messages.StopInappMessagesResponse",
19853
+ "method": "post",
19854
+ "path": "/api/inapp_messages/stop"
19855
+ },
19856
+ "PublishInappMessages": {
19857
+ "request": "pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesRequest",
19858
+ "response": "pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesResponse",
19859
+ "method": "post",
19860
+ "path": "/api/inapp_messages/publish"
19861
+ },
19862
+ "DeleteInappMessages": {
19863
+ "request": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesRequest",
19864
+ "response": "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesResponse",
19865
+ "method": "post",
19866
+ "path": "/api/inapp_messages/delete"
19849
19867
  }
19850
19868
  }
19851
19869
  },
@@ -20243,6 +20261,54 @@ export const data = {
20243
20261
  }
20244
20262
  }
20245
20263
  },
20264
+ "pushwoosh.rpc_v2.inapp_messages.StopInappMessagesRequest": {
20265
+ "type": "I",
20266
+ "fields": {
20267
+ "application": {
20268
+ "type": "string"
20269
+ },
20270
+ "codes": {
20271
+ "type": "string",
20272
+ "array": true
20273
+ }
20274
+ }
20275
+ },
20276
+ "pushwoosh.rpc_v2.inapp_messages.StopInappMessagesResponse": {
20277
+ "type": "I",
20278
+ "fields": {}
20279
+ },
20280
+ "pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesRequest": {
20281
+ "type": "I",
20282
+ "fields": {
20283
+ "application": {
20284
+ "type": "string"
20285
+ },
20286
+ "codes": {
20287
+ "type": "string",
20288
+ "array": true
20289
+ }
20290
+ }
20291
+ },
20292
+ "pushwoosh.rpc_v2.inapp_messages.PublishInappMessagesResponse": {
20293
+ "type": "I",
20294
+ "fields": {}
20295
+ },
20296
+ "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesRequest": {
20297
+ "type": "I",
20298
+ "fields": {
20299
+ "application": {
20300
+ "type": "string"
20301
+ },
20302
+ "codes": {
20303
+ "type": "string",
20304
+ "array": true
20305
+ }
20306
+ }
20307
+ },
20308
+ "pushwoosh.rpc_v2.inapp_messages.DeleteInappMessagesResponse": {
20309
+ "type": "I",
20310
+ "fields": {}
20311
+ },
20246
20312
  "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhooksService": {
20247
20313
  "type": "S",
20248
20314
  "key": "inboundWebhooks",
@@ -7,6 +7,9 @@ export type InAppMessagesService_Create = RpcMethod<CreateInappRequest, CreateIn
7
7
  export type InAppMessagesService_Update = RpcMethod<UpdateInappRequest, UpdateInappResponse>;
8
8
  export type InAppMessagesService_Stop = RpcMethod<StopInappRequest, StopInappResponse>;
9
9
  export type InAppMessagesService_Publish = RpcMethod<PublishInappRequest, PublishInappResponse>;
10
+ export type InAppMessagesService_StopInappMessages = RpcMethod<StopInappMessagesRequest, StopInappMessagesResponse>;
11
+ export type InAppMessagesService_PublishInappMessages = RpcMethod<PublishInappMessagesRequest, PublishInappMessagesResponse>;
12
+ export type InAppMessagesService_DeleteInappMessages = RpcMethod<DeleteInappMessagesRequest, DeleteInappMessagesResponse>;
10
13
  export interface InAppMessagesService {
11
14
  /** Lists in-app messages for an application (format XXXXX-XXXXX), newest first, with paging, name/code search and an optional status filter. Use to browse in-app messages or find an in-app message code before fetching, editing or publishing one. */
12
15
  List: InAppMessagesService_List;
@@ -22,6 +25,12 @@ export interface InAppMessagesService {
22
25
  Stop: InAppMessagesService_Stop;
23
26
  /** Activates a draft in-app message by code after validating it has a name, a trigger filter expression and rich media. Use to publish a prepared draft; the reverse is disable_inapp_message. */
24
27
  Publish: InAppMessagesService_Publish;
28
+ /** Stops several active in-app messages of an application (code XXXXX-XXXXX) in one request, up to 1000 codes. All-or-nothing: if any code is not found or is not active (scheduled ones included), nothing changes. Use disable_inapp_message for a single one. */
29
+ StopInappMessages: InAppMessagesService_StopInappMessages;
30
+ /** Resumes several stopped in-app messages of an application (code XXXXX-XXXXX) in one request, up to 1000 codes, with the same checks as enable_inapp_message. All-or-nothing: if any code is not found, not stopped or fails the checks, nothing changes. */
31
+ PublishInappMessages: InAppMessagesService_PublishInappMessages;
32
+ /** Permanently deletes several in-app messages of an application (code XXXXX-XXXXX) in one request, up to 1000 codes. Active and scheduled ones can't be deleted. All-or-nothing: if any code is not found or is active or scheduled, nothing is deleted. */
33
+ DeleteInappMessages: InAppMessagesService_DeleteInappMessages;
25
34
  }
26
35
  export type ListInappMessagesRequest_OrderBy = 'CREATED' | 'NAME' | 'UPDATED';
27
36
  export type ListInappMessagesRequest_OrderDirection = 'DESC' | 'ASC';
@@ -163,3 +172,24 @@ export type PublishInappRequest = {
163
172
  export type PublishInappResponse = {
164
173
  code: string;
165
174
  };
175
+ export type StopInappMessagesRequest = {
176
+ /** Application code (XXXXX-XXXXX) the in-app messages belong to. */
177
+ application?: string;
178
+ /** In-app message codes to stop. */
179
+ codes?: string[];
180
+ };
181
+ export type StopInappMessagesResponse = {};
182
+ export type PublishInappMessagesRequest = {
183
+ /** Application code (XXXXX-XXXXX) the in-app messages belong to. */
184
+ application?: string;
185
+ /** In-app message codes to resume. */
186
+ codes?: string[];
187
+ };
188
+ export type PublishInappMessagesResponse = {};
189
+ export type DeleteInappMessagesRequest = {
190
+ /** Application code (XXXXX-XXXXX) the in-app messages belong to. */
191
+ application?: string;
192
+ /** In-app message codes to delete. */
193
+ codes?: string[];
194
+ };
195
+ export type DeleteInappMessagesResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.381",
3
+ "version": "0.2.382",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",