@pushwoosh/rpc-gateway-journey-data 0.26.299 → 0.26.301

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
@@ -177,6 +177,72 @@ export const data = {
177
177
  "response": "pushwoosh.cj.journey.GetVoucherPoolsResponse",
178
178
  "method": "post",
179
179
  "path": "/api/v2/journeygateway/voucher-pools"
180
+ },
181
+ "StartJourneyV2": {
182
+ "request": "pushwoosh.cj.journey.StartJourneyV2Request",
183
+ "response": "pushwoosh.cj.journey.StartJourneyResponse",
184
+ "method": "post",
185
+ "path": "/api/v3/journeygateway/start"
186
+ },
187
+ "PauseJourneyV2": {
188
+ "request": "pushwoosh.cj.journey.PauseJourneyV2Request",
189
+ "response": "pushwoosh.cj.journey.PauseJourneyResponse",
190
+ "method": "post",
191
+ "path": "/api/v3/journeygateway/pause"
192
+ },
193
+ "FinishJourneyV2": {
194
+ "request": "pushwoosh.cj.journey.FinishJourneyV2Request",
195
+ "response": "pushwoosh.cj.journey.FinishJourneyResponse",
196
+ "method": "post",
197
+ "path": "/api/v3/journeygateway/finish"
198
+ },
199
+ "DraftJourneyV2": {
200
+ "request": "pushwoosh.cj.journey.DraftJourneyV2Request",
201
+ "response": "pushwoosh.cj.journey.DraftJourneyResponse",
202
+ "method": "post",
203
+ "path": "/api/v3/journeygateway/draft"
204
+ },
205
+ "ArchiveJourneyV2": {
206
+ "request": "pushwoosh.cj.journey.ArchiveJourneyV2Request",
207
+ "response": "pushwoosh.cj.journey.ArchiveJourneyResponse",
208
+ "method": "post",
209
+ "path": "/api/v3/journeygateway/archive"
210
+ },
211
+ "UpdateJourneyV2": {
212
+ "request": "pushwoosh.cj.journey.UpdateJourneyV2Request",
213
+ "response": "pushwoosh.cj.journey.UpdateJourneyResponse",
214
+ "method": "put",
215
+ "path": "/api/v3/journeygateway/{uuid}"
216
+ },
217
+ "UpdateAndResumeJourneyV2": {
218
+ "request": "pushwoosh.cj.journey.UpdateAndResumeJourneyV2Request",
219
+ "response": "pushwoosh.cj.journey.UpdateAndResumeJourneyResponseV2",
220
+ "method": "post",
221
+ "path": "/api/v3/journeygateway/{uuid}/resume"
222
+ },
223
+ "CreateV2": {
224
+ "request": "pushwoosh.cj.journey.CreateV2Request",
225
+ "response": "pushwoosh.cj.journey.CreateJourneyResponse",
226
+ "method": "post",
227
+ "path": "/api/v3/journeygateway"
228
+ },
229
+ "RenameV2": {
230
+ "request": "pushwoosh.cj.journey.RenameV2Request",
231
+ "response": "pushwoosh.cj.journey.RenameJourneyResponse",
232
+ "method": "post",
233
+ "path": "/api/v3/journeygateway/{uuid}/rename"
234
+ },
235
+ "UpdateABSSplitterParamsV2": {
236
+ "request": "pushwoosh.cj.journey.UpdateABSSplitterParamsV2Request",
237
+ "response": "pushwoosh.cj.journey.UpdateABSSplitterParamsResponse",
238
+ "method": "post",
239
+ "path": "/api/v3/journeygateway/abs-splitter-params/update"
240
+ },
241
+ "ValidateJourneyV2": {
242
+ "request": "pushwoosh.cj.journey.ValidateJourneyV2Request",
243
+ "response": "pushwoosh.cj.journey.ValidateJourneyResponse",
244
+ "method": "post",
245
+ "path": "/api/v3/journeygateway/validate"
180
246
  }
181
247
  }
182
248
  },
@@ -1100,6 +1166,329 @@ export const data = {
1100
1166
  }
1101
1167
  }
1102
1168
  },
1169
+ "pushwoosh.cj.journey.StartJourneyResponse": {
1170
+ "type": "I",
1171
+ "fields": {
1172
+ "info": {
1173
+ "type": "pushwoosh.cj.journey.Info"
1174
+ },
1175
+ "points": {
1176
+ "type": "pushwoosh.cj.journey.Point",
1177
+ "array": true
1178
+ },
1179
+ "comments": {
1180
+ "type": "pushwoosh.cj.journey.JourneyComment",
1181
+ "array": true
1182
+ }
1183
+ }
1184
+ },
1185
+ "pushwoosh.cj.journey.PauseJourneyResponse": {
1186
+ "type": "I",
1187
+ "fields": {
1188
+ "info": {
1189
+ "type": "pushwoosh.cj.journey.Info"
1190
+ },
1191
+ "points": {
1192
+ "type": "pushwoosh.cj.journey.Point",
1193
+ "array": true
1194
+ },
1195
+ "comments": {
1196
+ "type": "pushwoosh.cj.journey.JourneyComment",
1197
+ "array": true
1198
+ }
1199
+ }
1200
+ },
1201
+ "pushwoosh.cj.journey.FinishJourneyResponse": {
1202
+ "type": "I",
1203
+ "fields": {
1204
+ "info": {
1205
+ "type": "pushwoosh.cj.journey.Info"
1206
+ },
1207
+ "points": {
1208
+ "type": "pushwoosh.cj.journey.Point",
1209
+ "array": true
1210
+ },
1211
+ "comments": {
1212
+ "type": "pushwoosh.cj.journey.JourneyComment",
1213
+ "array": true
1214
+ }
1215
+ }
1216
+ },
1217
+ "pushwoosh.cj.journey.DraftJourneyResponse": {
1218
+ "type": "I",
1219
+ "fields": {
1220
+ "info": {
1221
+ "type": "pushwoosh.cj.journey.Info"
1222
+ },
1223
+ "points": {
1224
+ "type": "pushwoosh.cj.journey.Point",
1225
+ "array": true
1226
+ },
1227
+ "comments": {
1228
+ "type": "pushwoosh.cj.journey.JourneyComment",
1229
+ "array": true
1230
+ }
1231
+ }
1232
+ },
1233
+ "pushwoosh.cj.journey.ArchiveJourneyResponse": {
1234
+ "type": "I",
1235
+ "fields": {
1236
+ "info": {
1237
+ "type": "pushwoosh.cj.journey.Info"
1238
+ },
1239
+ "points": {
1240
+ "type": "pushwoosh.cj.journey.Point",
1241
+ "array": true
1242
+ },
1243
+ "comments": {
1244
+ "type": "pushwoosh.cj.journey.JourneyComment",
1245
+ "array": true
1246
+ }
1247
+ }
1248
+ },
1249
+ "pushwoosh.cj.journey.UpdateJourneyResponse": {
1250
+ "type": "I",
1251
+ "fields": {
1252
+ "info": {
1253
+ "type": "pushwoosh.cj.journey.Info"
1254
+ },
1255
+ "points": {
1256
+ "type": "pushwoosh.cj.journey.Point",
1257
+ "array": true
1258
+ },
1259
+ "comments": {
1260
+ "type": "pushwoosh.cj.journey.JourneyComment",
1261
+ "array": true
1262
+ }
1263
+ }
1264
+ },
1265
+ "pushwoosh.cj.journey.CreateJourneyResponse": {
1266
+ "type": "I",
1267
+ "fields": {
1268
+ "info": {
1269
+ "type": "pushwoosh.cj.journey.Info"
1270
+ },
1271
+ "points": {
1272
+ "type": "pushwoosh.cj.journey.Point",
1273
+ "array": true
1274
+ },
1275
+ "comments": {
1276
+ "type": "pushwoosh.cj.journey.JourneyComment",
1277
+ "array": true
1278
+ }
1279
+ }
1280
+ },
1281
+ "pushwoosh.cj.journey.RenameJourneyResponse": {
1282
+ "type": "I",
1283
+ "fields": {
1284
+ "info": {
1285
+ "type": "pushwoosh.cj.journey.Info"
1286
+ },
1287
+ "points": {
1288
+ "type": "pushwoosh.cj.journey.Point",
1289
+ "array": true
1290
+ },
1291
+ "comments": {
1292
+ "type": "pushwoosh.cj.journey.JourneyComment",
1293
+ "array": true
1294
+ }
1295
+ }
1296
+ },
1297
+ "pushwoosh.cj.journey.UpdateABSSplitterParamsResponse": {
1298
+ "type": "I",
1299
+ "fields": {
1300
+ "info": {
1301
+ "type": "pushwoosh.cj.journey.Info"
1302
+ },
1303
+ "points": {
1304
+ "type": "pushwoosh.cj.journey.Point",
1305
+ "array": true
1306
+ },
1307
+ "comments": {
1308
+ "type": "pushwoosh.cj.journey.JourneyComment",
1309
+ "array": true
1310
+ }
1311
+ }
1312
+ },
1313
+ "pushwoosh.cj.journey.UpdateAndResumeJourneyInfo": {
1314
+ "type": "I",
1315
+ "fields": {
1316
+ "info": {
1317
+ "type": "pushwoosh.cj.journey.Info"
1318
+ },
1319
+ "points": {
1320
+ "type": "pushwoosh.cj.journey.Point",
1321
+ "array": true
1322
+ },
1323
+ "comments": {
1324
+ "type": "pushwoosh.cj.journey.JourneyComment",
1325
+ "array": true
1326
+ }
1327
+ }
1328
+ },
1329
+ "pushwoosh.cj.journey.UpdateAndResumeJourneyResponseV2": {
1330
+ "type": "I",
1331
+ "fields": {
1332
+ "response": {
1333
+ "type": "pushwoosh.cj.journey.UpdateAndResumeJourneyInfo"
1334
+ },
1335
+ "validation": {
1336
+ "type": "pushwoosh.cj.journey.ValidateJourneyResponse"
1337
+ }
1338
+ }
1339
+ },
1340
+ "pushwoosh.cj.journey.StartJourneyV2Request": {
1341
+ "type": "I",
1342
+ "fields": {
1343
+ "uuid": {
1344
+ "type": "string"
1345
+ }
1346
+ }
1347
+ },
1348
+ "pushwoosh.cj.journey.PauseJourneyV2Request": {
1349
+ "type": "I",
1350
+ "fields": {
1351
+ "uuid": {
1352
+ "type": "string"
1353
+ }
1354
+ }
1355
+ },
1356
+ "pushwoosh.cj.journey.FinishJourneyV2Request": {
1357
+ "type": "I",
1358
+ "fields": {
1359
+ "uuid": {
1360
+ "type": "string"
1361
+ }
1362
+ }
1363
+ },
1364
+ "pushwoosh.cj.journey.DraftJourneyV2Request": {
1365
+ "type": "I",
1366
+ "fields": {
1367
+ "uuid": {
1368
+ "type": "string"
1369
+ }
1370
+ }
1371
+ },
1372
+ "pushwoosh.cj.journey.ArchiveJourneyV2Request": {
1373
+ "type": "I",
1374
+ "fields": {
1375
+ "uuid": {
1376
+ "type": "string"
1377
+ }
1378
+ }
1379
+ },
1380
+ "pushwoosh.cj.journey.UpdateJourneyV2Request": {
1381
+ "type": "I",
1382
+ "fields": {
1383
+ "uuid": {
1384
+ "type": "string"
1385
+ },
1386
+ "title": {
1387
+ "type": "string"
1388
+ },
1389
+ "params": {
1390
+ "type": "pushwoosh.cj.journey.JourneyParams"
1391
+ },
1392
+ "points": {
1393
+ "type": "pushwoosh.cj.journey.Point",
1394
+ "array": true
1395
+ },
1396
+ "comments": {
1397
+ "type": "pushwoosh.cj.journey.JourneyComment",
1398
+ "array": true
1399
+ },
1400
+ "autosave": {
1401
+ "type": "boolean"
1402
+ }
1403
+ }
1404
+ },
1405
+ "pushwoosh.cj.journey.UpdateAndResumeJourneyV2Request": {
1406
+ "type": "I",
1407
+ "fields": {
1408
+ "uuid": {
1409
+ "type": "string"
1410
+ },
1411
+ "title": {
1412
+ "type": "string"
1413
+ },
1414
+ "params": {
1415
+ "type": "pushwoosh.cj.journey.JourneyParams"
1416
+ },
1417
+ "points": {
1418
+ "type": "pushwoosh.cj.journey.Point",
1419
+ "array": true
1420
+ },
1421
+ "comments": {
1422
+ "type": "pushwoosh.cj.journey.JourneyComment",
1423
+ "array": true
1424
+ },
1425
+ "autosave": {
1426
+ "type": "boolean"
1427
+ }
1428
+ }
1429
+ },
1430
+ "pushwoosh.cj.journey.CreateV2Request": {
1431
+ "type": "I",
1432
+ "fields": {
1433
+ "title": {
1434
+ "type": "string"
1435
+ },
1436
+ "params": {
1437
+ "type": "pushwoosh.cj.journey.JourneyParams"
1438
+ },
1439
+ "points": {
1440
+ "type": "pushwoosh.cj.journey.Point",
1441
+ "array": true
1442
+ },
1443
+ "comments": {
1444
+ "type": "pushwoosh.cj.journey.JourneyComment",
1445
+ "array": true
1446
+ }
1447
+ }
1448
+ },
1449
+ "pushwoosh.cj.journey.RenameV2Request": {
1450
+ "type": "I",
1451
+ "fields": {
1452
+ "uuid": {
1453
+ "type": "string"
1454
+ },
1455
+ "title": {
1456
+ "type": "string"
1457
+ }
1458
+ }
1459
+ },
1460
+ "pushwoosh.cj.journey.UpdateABSSplitterParamsV2Request": {
1461
+ "type": "I",
1462
+ "fields": {
1463
+ "journeyUuid": {
1464
+ "type": "string"
1465
+ },
1466
+ "pointUuid": {
1467
+ "type": "string"
1468
+ },
1469
+ "params": {
1470
+ "type": "number",
1471
+ "array": true
1472
+ },
1473
+ "autoSelectWinner": {
1474
+ "type": "boolean"
1475
+ },
1476
+ "winnerStrategy": {
1477
+ "type": "pushwoosh.cj.journey.WinnerStrategy"
1478
+ },
1479
+ "goalUuid": {
1480
+ "type": "string"
1481
+ }
1482
+ }
1483
+ },
1484
+ "pushwoosh.cj.journey.ValidateJourneyV2Request": {
1485
+ "type": "I",
1486
+ "fields": {
1487
+ "uuid": {
1488
+ "type": "string"
1489
+ }
1490
+ }
1491
+ },
1103
1492
  "pushwoosh.cj.journey.MoveJourneysToCategoryRequest": {
1104
1493
  "type": "I",
1105
1494
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.26.299",
3
+ "version": "0.26.301",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -30,6 +30,17 @@ export interface Journey {
30
30
  GetJourneyGeneralTimeStatistics(request: GetJourneyGeneralTimeStatisticsRequest): Promise<GetJourneyGeneralTimeStatisticsResponse>;
31
31
  GetJourneyUsers(request: GetJourneyUsersRequest): Promise<GetJourneyUsersResponse>;
32
32
  GetVoucherPools(request: GetVoucherPoolsRequest): Promise<GetVoucherPoolsResponse>;
33
+ StartJourneyV2(request: StartJourneyV2Request): Promise<StartJourneyResponse>;
34
+ PauseJourneyV2(request: PauseJourneyV2Request): Promise<PauseJourneyResponse>;
35
+ FinishJourneyV2(request: FinishJourneyV2Request): Promise<FinishJourneyResponse>;
36
+ DraftJourneyV2(request: DraftJourneyV2Request): Promise<DraftJourneyResponse>;
37
+ ArchiveJourneyV2(request: ArchiveJourneyV2Request): Promise<ArchiveJourneyResponse>;
38
+ UpdateJourneyV2(request: UpdateJourneyV2Request): Promise<UpdateJourneyResponse>;
39
+ UpdateAndResumeJourneyV2(request: UpdateAndResumeJourneyV2Request): Promise<UpdateAndResumeJourneyResponseV2>;
40
+ CreateV2(request: CreateV2Request): Promise<CreateJourneyResponse>;
41
+ RenameV2(request: RenameV2Request): Promise<RenameJourneyResponse>;
42
+ UpdateABSSplitterParamsV2(request: UpdateABSSplitterParamsV2Request): Promise<UpdateABSSplitterParamsResponse>;
43
+ ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
33
44
  }
34
45
  export type GetPlaceholdersRequest = {
35
46
  templateCode?: string;
@@ -423,6 +434,112 @@ export type GetJourneyByUUIDResponseWithErrors = {
423
434
  response: GetJourneyByUUIDResponse;
424
435
  validation: ValidateJourneyResponse;
425
436
  };
437
+ export type StartJourneyResponse = {
438
+ info: Info;
439
+ points: Point[];
440
+ comments: JourneyComment[];
441
+ };
442
+ export type PauseJourneyResponse = {
443
+ info: Info;
444
+ points: Point[];
445
+ comments: JourneyComment[];
446
+ };
447
+ export type FinishJourneyResponse = {
448
+ info: Info;
449
+ points: Point[];
450
+ comments: JourneyComment[];
451
+ };
452
+ export type DraftJourneyResponse = {
453
+ info: Info;
454
+ points: Point[];
455
+ comments: JourneyComment[];
456
+ };
457
+ export type ArchiveJourneyResponse = {
458
+ info: Info;
459
+ points: Point[];
460
+ comments: JourneyComment[];
461
+ };
462
+ export type UpdateJourneyResponse = {
463
+ info: Info;
464
+ points: Point[];
465
+ comments: JourneyComment[];
466
+ };
467
+ export type CreateJourneyResponse = {
468
+ info: Info;
469
+ points: Point[];
470
+ comments: JourneyComment[];
471
+ };
472
+ export type RenameJourneyResponse = {
473
+ info: Info;
474
+ points: Point[];
475
+ comments: JourneyComment[];
476
+ };
477
+ export type UpdateABSSplitterParamsResponse = {
478
+ info: Info;
479
+ points: Point[];
480
+ comments: JourneyComment[];
481
+ };
482
+ export type UpdateAndResumeJourneyInfo = {
483
+ info: Info;
484
+ points: Point[];
485
+ comments: JourneyComment[];
486
+ };
487
+ export type UpdateAndResumeJourneyResponseV2 = {
488
+ response: UpdateAndResumeJourneyInfo;
489
+ validation: ValidateJourneyResponse;
490
+ };
491
+ export type StartJourneyV2Request = {
492
+ uuid?: string;
493
+ };
494
+ export type PauseJourneyV2Request = {
495
+ uuid?: string;
496
+ };
497
+ export type FinishJourneyV2Request = {
498
+ uuid?: string;
499
+ };
500
+ export type DraftJourneyV2Request = {
501
+ uuid?: string;
502
+ };
503
+ export type ArchiveJourneyV2Request = {
504
+ uuid?: string;
505
+ };
506
+ export type UpdateJourneyV2Request = {
507
+ uuid?: string;
508
+ title?: string;
509
+ params?: JourneyParams;
510
+ points?: Point[];
511
+ comments?: JourneyComment[];
512
+ autosave?: boolean;
513
+ };
514
+ export type UpdateAndResumeJourneyV2Request = {
515
+ uuid?: string;
516
+ title?: string;
517
+ params?: JourneyParams;
518
+ points?: Point[];
519
+ comments?: JourneyComment[];
520
+ autosave?: boolean;
521
+ };
522
+ export type CreateV2Request = {
523
+ title?: string;
524
+ params?: JourneyParams;
525
+ points?: Point[];
526
+ comments?: JourneyComment[];
527
+ };
528
+ export type RenameV2Request = {
529
+ uuid?: string;
530
+ title?: string;
531
+ };
532
+ export type UpdateABSSplitterParamsV2Request = {
533
+ journeyUuid?: string;
534
+ pointUuid?: string;
535
+ params?: number[];
536
+ autoSelectWinner?: boolean;
537
+ winnerStrategy?: WinnerStrategy;
538
+ goalUuid?: string;
539
+ };
540
+ export type ValidateJourneyV2Request = {
541
+ uuid?: string;
542
+ };
426
543
  export type MoveJourneysToCategoryRequest = {
427
544
  journeyUuids?: string[];
428
545
  categoryUuid?: string;