@pushwoosh/rpc-v2-http-api-data 0.1.450 → 0.1.452

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
@@ -7960,6 +7960,9 @@ export const data = {
7960
7960
  },
7961
7961
  "isEmail": {
7962
7962
  "type": "boolean"
7963
+ },
7964
+ "errorMessage": {
7965
+ "type": "string"
7963
7966
  }
7964
7967
  }
7965
7968
  },
@@ -16603,12 +16606,42 @@ export const data = {
16603
16606
  "type": "S",
16604
16607
  "key": "richMedia",
16605
16608
  "methods": {
16609
+ "Create": {
16610
+ "request": "pushwoosh.rpc_v2.rich_medias.CreateRequest",
16611
+ "response": "pushwoosh.rpc_v2.rich_medias.CreateResponse",
16612
+ "method": "post",
16613
+ "path": "/api/rich-medias"
16614
+ },
16615
+ "Clone": {
16616
+ "request": "pushwoosh.rpc_v2.rich_medias.CloneRequest",
16617
+ "response": "pushwoosh.rpc_v2.rich_medias.CloneResponse",
16618
+ "method": "post",
16619
+ "path": "/api/rich-medias/{code}:clone"
16620
+ },
16621
+ "Delete": {
16622
+ "request": "pushwoosh.rpc_v2.rich_medias.DeleteRequest",
16623
+ "response": "pushwoosh.rpc_v2.rich_medias.DeleteResponse",
16624
+ "method": "delete",
16625
+ "path": "/api/rich-medias/{code}"
16626
+ },
16606
16627
  "Get": {
16607
16628
  "request": "pushwoosh.rpc_v2.rich_medias.GetRequest",
16608
16629
  "response": "pushwoosh.rpc_v2.rich_medias.GetResponse",
16609
16630
  "method": "get",
16610
16631
  "path": "/api/rich-medias/{code}"
16611
16632
  },
16633
+ "GetBlockTemplate": {
16634
+ "request": "pushwoosh.rpc_v2.rich_medias.GetBlockTemplateRequest",
16635
+ "response": "pushwoosh.rpc_v2.rich_medias.GetBlockTemplateResponse",
16636
+ "method": "get",
16637
+ "path": "/api/rich-medias/{code}:block-template"
16638
+ },
16639
+ "UpdateBlockTemplate": {
16640
+ "request": "pushwoosh.rpc_v2.rich_medias.UpdateBlockTemplateRequest",
16641
+ "response": "pushwoosh.rpc_v2.rich_medias.UpdateBlockTemplateResponse",
16642
+ "method": "post",
16643
+ "path": "/api/rich-medias/{code}:block-template"
16644
+ },
16612
16645
  "List": {
16613
16646
  "request": "pushwoosh.rpc_v2.rich_medias.ListRequest",
16614
16647
  "response": "pushwoosh.rpc_v2.rich_medias.ListResponse",
@@ -17222,6 +17255,139 @@ export const data = {
17222
17255
  }
17223
17256
  }
17224
17257
  },
17258
+ "pushwoosh.rpc_v2.rich_medias.CreateRequest.RichMediaType": {
17259
+ "type": "E",
17260
+ "values": [
17261
+ "BLOCK_BASED",
17262
+ "ZIP"
17263
+ ]
17264
+ },
17265
+ "pushwoosh.rpc_v2.rich_medias.CreateRequest": {
17266
+ "type": "I",
17267
+ "fields": {
17268
+ "name": {
17269
+ "type": "string"
17270
+ },
17271
+ "type": {
17272
+ "type": "pushwoosh.rpc_v2.rich_medias.CreateRequest.RichMediaType"
17273
+ },
17274
+ "closeButtonType": {
17275
+ "type": "boolean"
17276
+ },
17277
+ "zipContent": {
17278
+ "type": "string"
17279
+ }
17280
+ }
17281
+ },
17282
+ "pushwoosh.rpc_v2.rich_medias.CreateResponse": {
17283
+ "type": "I",
17284
+ "fields": {
17285
+ "code": {
17286
+ "type": "string"
17287
+ },
17288
+ "isBlockBased": {
17289
+ "type": "boolean"
17290
+ }
17291
+ }
17292
+ },
17293
+ "pushwoosh.rpc_v2.rich_medias.CloneRequest": {
17294
+ "type": "I",
17295
+ "fields": {
17296
+ "code": {
17297
+ "type": "string"
17298
+ },
17299
+ "name": {
17300
+ "type": "string"
17301
+ }
17302
+ }
17303
+ },
17304
+ "pushwoosh.rpc_v2.rich_medias.CloneResponse": {
17305
+ "type": "I",
17306
+ "fields": {
17307
+ "code": {
17308
+ "type": "string"
17309
+ },
17310
+ "blockBased": {
17311
+ "type": "boolean"
17312
+ }
17313
+ }
17314
+ },
17315
+ "pushwoosh.rpc_v2.rich_medias.DeleteRequest": {
17316
+ "type": "I",
17317
+ "fields": {
17318
+ "code": {
17319
+ "type": "string"
17320
+ }
17321
+ }
17322
+ },
17323
+ "pushwoosh.rpc_v2.rich_medias.DeleteResponse": {
17324
+ "type": "I",
17325
+ "fields": {}
17326
+ },
17327
+ "pushwoosh.rpc_v2.rich_medias.GetBlockTemplateRequest": {
17328
+ "type": "I",
17329
+ "fields": {
17330
+ "code": {
17331
+ "type": "string"
17332
+ }
17333
+ }
17334
+ },
17335
+ "pushwoosh.rpc_v2.rich_medias.GetBlockTemplateResponse": {
17336
+ "type": "I",
17337
+ "fields": {
17338
+ "code": {
17339
+ "type": "string"
17340
+ },
17341
+ "content": {
17342
+ "type": "string"
17343
+ },
17344
+ "name": {
17345
+ "type": "string"
17346
+ },
17347
+ "downloadUrl": {
17348
+ "type": "string"
17349
+ },
17350
+ "params": {
17351
+ "type": "string"
17352
+ },
17353
+ "defaultLanguage": {
17354
+ "type": "string"
17355
+ },
17356
+ "inputGroups": {
17357
+ "type": "string"
17358
+ },
17359
+ "editorJson": {
17360
+ "type": "string"
17361
+ }
17362
+ }
17363
+ },
17364
+ "pushwoosh.rpc_v2.rich_medias.UpdateBlockTemplateRequest": {
17365
+ "type": "I",
17366
+ "fields": {
17367
+ "code": {
17368
+ "type": "string"
17369
+ },
17370
+ "name": {
17371
+ "type": "string"
17372
+ },
17373
+ "html": {
17374
+ "type": "string"
17375
+ },
17376
+ "editorJson": {
17377
+ "type": "string"
17378
+ },
17379
+ "localization": {
17380
+ "type": "string"
17381
+ },
17382
+ "defaultLanguage": {
17383
+ "type": "string"
17384
+ }
17385
+ }
17386
+ },
17387
+ "pushwoosh.rpc_v2.rich_medias.UpdateBlockTemplateResponse": {
17388
+ "type": "I",
17389
+ "fields": {}
17390
+ },
17225
17391
  "pushwoosh.rpc_v2.segment_statistics.SegmentStatisticsService": {
17226
17392
  "type": "S",
17227
17393
  "key": "segmentStatistics",
package/messages.d.ts CHANGED
@@ -183,6 +183,7 @@ export type GetDeviceReceivedMessagesResponse_Message = {
183
183
  sendTime: Date;
184
184
  openedTime: Date;
185
185
  isEmail: boolean;
186
+ errorMessage: string;
186
187
  };
187
188
  export type GetDeviceReceivedMessagesResponse = {
188
189
  messages: GetDeviceReceivedMessagesResponse_Message[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.450",
3
+ "version": "0.1.452",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/rich_medias.d.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  export interface RichMediaService {
2
+ Create(request: CreateRequest): Promise<CreateResponse>;
3
+ Clone(request: CloneRequest): Promise<CloneResponse>;
4
+ Delete(request: DeleteRequest): Promise<DeleteResponse>;
2
5
  Get(request: GetRequest): Promise<GetResponse>;
6
+ GetBlockTemplate(request: GetBlockTemplateRequest): Promise<GetBlockTemplateResponse>;
7
+ UpdateBlockTemplate(request: UpdateBlockTemplateRequest): Promise<UpdateBlockTemplateResponse>;
3
8
  List(request: ListRequest): Promise<ListResponse>;
4
9
  GetDetailedStatistics(request: GetDetailedStatisticsRequest): Promise<GetDetailedStatisticsResponse>;
5
10
  GetDetailedActionStatistics(request: GetDetailedActionStatisticsRequest): Promise<GetDetailedActionStatisticsResponse>;
@@ -187,3 +192,48 @@ export type GetEventsResponse_EventStatistics = {
187
192
  export type GetEventsResponse = {
188
193
  items: GetEventsResponse_EventStatistics[];
189
194
  };
195
+ export type CreateRequest_RichMediaType = 'BLOCK_BASED' | 'ZIP';
196
+ export type CreateRequest = {
197
+ name?: string;
198
+ type?: CreateRequest_RichMediaType;
199
+ closeButtonType?: boolean;
200
+ zipContent?: string;
201
+ };
202
+ export type CreateResponse = {
203
+ code: string;
204
+ isBlockBased: boolean;
205
+ };
206
+ export type CloneRequest = {
207
+ code?: string;
208
+ name?: string;
209
+ };
210
+ export type CloneResponse = {
211
+ code: string;
212
+ blockBased: boolean;
213
+ };
214
+ export type DeleteRequest = {
215
+ code?: string;
216
+ };
217
+ export type DeleteResponse = {};
218
+ export type GetBlockTemplateRequest = {
219
+ code?: string;
220
+ };
221
+ export type GetBlockTemplateResponse = {
222
+ code: string;
223
+ content: string;
224
+ name: string;
225
+ downloadUrl: string;
226
+ params: string;
227
+ defaultLanguage: string;
228
+ inputGroups: string;
229
+ editorJson: string;
230
+ };
231
+ export type UpdateBlockTemplateRequest = {
232
+ code?: string;
233
+ name?: string;
234
+ html?: string;
235
+ editorJson?: string;
236
+ localization?: string;
237
+ defaultLanguage?: string;
238
+ };
239
+ export type UpdateBlockTemplateResponse = {};