@pushwoosh/rpc-gateway-journey-data 0.27.45 → 0.27.47

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
@@ -346,6 +346,177 @@ export const data = {
346
346
  "response": "pushwoosh.cj.journey.GetMetaAudiencesResponse",
347
347
  "method": "get",
348
348
  "path": "/api/v2/meta/ad-accounts/{ad_account_id}/audiences"
349
+ },
350
+ "OpenJourneyForEdit": {
351
+ "request": "pushwoosh.cj.journey.OpenJourneyForEditRequest",
352
+ "response": "pushwoosh.cj.journey.GetJourneyByUUIDResponse",
353
+ "method": "post",
354
+ "path": "/api/v2/journeygateway/open-for-edit"
355
+ },
356
+ "GetJourneyDraftChanges": {
357
+ "request": "pushwoosh.cj.journey.GetJourneyDraftChangesRequest",
358
+ "response": "pushwoosh.cj.journey.GetJourneyDraftChangesResponse",
359
+ "method": "get",
360
+ "path": "/api/v2/journeygateway/{uuid}/draft-changes"
361
+ },
362
+ "ResumeJourney": {
363
+ "request": "pushwoosh.cj.journey.ResumeJourneyRequest",
364
+ "response": "pushwoosh.cj.journey.ResumeJourneyResponse",
365
+ "method": "post",
366
+ "path": "/api/v2/journeygateway/resume"
367
+ },
368
+ "GetJourneyVersions": {
369
+ "request": "pushwoosh.cj.journey.GetJourneyVersionsRequest",
370
+ "response": "pushwoosh.cj.journey.GetJourneyVersionsResponse",
371
+ "method": "get",
372
+ "path": "/api/v2/journeygateway/{uuid}/versions"
373
+ },
374
+ "StopJourneyVersion": {
375
+ "request": "pushwoosh.cj.journey.StopJourneyVersionRequest",
376
+ "response": "pushwoosh.cj.journey.GetJourneyByUUIDResponse",
377
+ "method": "post",
378
+ "path": "/api/v2/journeygateway/stop-version"
379
+ }
380
+ }
381
+ },
382
+ "pushwoosh.cj.journey.OpenJourneyForEditRequest": {
383
+ "type": "I",
384
+ "fields": {
385
+ "uuid": {
386
+ "type": "string"
387
+ }
388
+ }
389
+ },
390
+ "pushwoosh.cj.journey.GetJourneyDraftChangesRequest": {
391
+ "type": "I",
392
+ "fields": {
393
+ "uuid": {
394
+ "type": "string"
395
+ }
396
+ }
397
+ },
398
+ "pushwoosh.cj.journey.DraftChangesKind": {
399
+ "type": "E",
400
+ "values": [
401
+ "DRAFT_CHANGES_NONE",
402
+ "DRAFT_CHANGES_PARAMS_ONLY",
403
+ "DRAFT_CHANGES_DESTRUCTIVE"
404
+ ]
405
+ },
406
+ "pushwoosh.cj.journey.GetJourneyDraftChangesResponse": {
407
+ "type": "I",
408
+ "fields": {
409
+ "kind": {
410
+ "type": "pushwoosh.cj.journey.DraftChangesKind"
411
+ },
412
+ "changedPaths": {
413
+ "type": "string",
414
+ "array": true
415
+ }
416
+ }
417
+ },
418
+ "pushwoosh.cj.journey.ResumeMode": {
419
+ "type": "E",
420
+ "values": [
421
+ "RESUME_MODE_KEEP_CURRENT",
422
+ "RESUME_MODE_NEW_VERSION"
423
+ ]
424
+ },
425
+ "pushwoosh.cj.journey.ResumeJourneyRequest": {
426
+ "type": "I",
427
+ "fields": {
428
+ "uuid": {
429
+ "type": "string"
430
+ },
431
+ "mode": {
432
+ "type": "pushwoosh.cj.journey.ResumeMode"
433
+ },
434
+ "stopCurrentPermanently": {
435
+ "type": "boolean"
436
+ },
437
+ "reenterPointUuids": {
438
+ "type": "string",
439
+ "array": true
440
+ }
441
+ }
442
+ },
443
+ "pushwoosh.cj.journey.ResumeJourneyResponse": {
444
+ "type": "I",
445
+ "fields": {
446
+ "response": {
447
+ "type": "pushwoosh.cj.journey.GetJourneyByUUIDResponse"
448
+ },
449
+ "validation": {
450
+ "type": "pushwoosh.cj.journey.ValidateJourneyResponse"
451
+ }
452
+ }
453
+ },
454
+ "pushwoosh.cj.journey.GetJourneyVersionsRequest": {
455
+ "type": "I",
456
+ "fields": {
457
+ "uuid": {
458
+ "type": "string"
459
+ }
460
+ }
461
+ },
462
+ "pushwoosh.cj.journey.JourneyVersionStatus": {
463
+ "type": "E",
464
+ "values": [
465
+ "JOURNEY_VERSION_STATUS_UNKNOWN",
466
+ "JOURNEY_VERSION_STATUS_ACTIVE",
467
+ "JOURNEY_VERSION_STATUS_PAUSED",
468
+ "JOURNEY_VERSION_STATUS_ACTIVE_CLOSED",
469
+ "JOURNEY_VERSION_STATUS_INACTIVE"
470
+ ]
471
+ },
472
+ "pushwoosh.cj.journey.JourneyVersion": {
473
+ "type": "I",
474
+ "fields": {
475
+ "uuid": {
476
+ "type": "string"
477
+ },
478
+ "versionNumber": {
479
+ "type": "number"
480
+ },
481
+ "status": {
482
+ "type": "pushwoosh.cj.journey.JourneyVersionStatus"
483
+ },
484
+ "usersLeft": {
485
+ "type": "number"
486
+ },
487
+ "activatedAt": {
488
+ "type": "string"
489
+ },
490
+ "activatedBy": {
491
+ "type": "pushwoosh.cj.journey.User"
492
+ },
493
+ "campaignCodes": {
494
+ "type": "string",
495
+ "array": true
496
+ },
497
+ "openForEntries": {
498
+ "type": "boolean"
499
+ },
500
+ "campaignCodesByOrigin": {
501
+ "type": "string",
502
+ "mapKeyType": "string"
503
+ }
504
+ }
505
+ },
506
+ "pushwoosh.cj.journey.GetJourneyVersionsResponse": {
507
+ "type": "I",
508
+ "fields": {
509
+ "versions": {
510
+ "type": "pushwoosh.cj.journey.JourneyVersion",
511
+ "array": true
512
+ }
513
+ }
514
+ },
515
+ "pushwoosh.cj.journey.StopJourneyVersionRequest": {
516
+ "type": "I",
517
+ "fields": {
518
+ "uuid": {
519
+ "type": "string"
349
520
  }
350
521
  }
351
522
  },
@@ -1190,6 +1361,9 @@ export const data = {
1190
1361
  },
1191
1362
  "page": {
1192
1363
  "type": "number"
1364
+ },
1365
+ "allVersions": {
1366
+ "type": "boolean"
1193
1367
  }
1194
1368
  }
1195
1369
  },
@@ -1978,6 +2152,12 @@ export const data = {
1978
2152
  },
1979
2153
  "enterTime": {
1980
2154
  "type": "Date"
2155
+ },
2156
+ "versionNumber": {
2157
+ "type": "number"
2158
+ },
2159
+ "journeyUuid": {
2160
+ "type": "string"
1981
2161
  }
1982
2162
  }
1983
2163
  },
@@ -2178,6 +2358,21 @@ export const data = {
2178
2358
  },
2179
2359
  "dynamicEntry": {
2180
2360
  "type": "boolean"
2361
+ },
2362
+ "versionNumber": {
2363
+ "type": "number"
2364
+ },
2365
+ "isDraft": {
2366
+ "type": "boolean"
2367
+ },
2368
+ "rootVersionUuid": {
2369
+ "type": "string"
2370
+ },
2371
+ "prevVersionUuid": {
2372
+ "type": "string"
2373
+ },
2374
+ "nextVersionUuid": {
2375
+ "type": "string"
2181
2376
  }
2182
2377
  }
2183
2378
  },
@@ -2249,6 +2444,9 @@ export const data = {
2249
2444
  },
2250
2445
  "pointType": {
2251
2446
  "type": "pushwoosh.cj.journey.PointType"
2447
+ },
2448
+ "originPointUuid": {
2449
+ "type": "string"
2252
2450
  }
2253
2451
  }
2254
2452
  },
@@ -4381,6 +4579,12 @@ export const data = {
4381
4579
  },
4382
4580
  "doNotIncrease": {
4383
4581
  "type": "boolean"
4582
+ },
4583
+ "mode": {
4584
+ "type": "string"
4585
+ },
4586
+ "timezone": {
4587
+ "type": "string"
4384
4588
  }
4385
4589
  }
4386
4590
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.27.45",
3
+ "version": "0.27.47",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -57,7 +57,55 @@ export interface Journey {
57
57
  GetEventsByApplicationCodes(request: GetEventsByApplicationCodesRequest): Promise<GetEventsByApplicationCodesResponse>;
58
58
  GetMetaAdAccounts(request: GetMetaAdAccountsRequest): Promise<GetMetaAdAccountsResponse>;
59
59
  GetMetaAudiences(request: GetMetaAudiencesRequest): Promise<GetMetaAudiencesResponse>;
60
+ OpenJourneyForEdit(request: OpenJourneyForEditRequest): Promise<GetJourneyByUUIDResponse>;
61
+ GetJourneyDraftChanges(request: GetJourneyDraftChangesRequest): Promise<GetJourneyDraftChangesResponse>;
62
+ ResumeJourney(request: ResumeJourneyRequest): Promise<ResumeJourneyResponse>;
63
+ GetJourneyVersions(request: GetJourneyVersionsRequest): Promise<GetJourneyVersionsResponse>;
64
+ StopJourneyVersion(request: StopJourneyVersionRequest): Promise<GetJourneyByUUIDResponse>;
60
65
  }
66
+ export type OpenJourneyForEditRequest = {
67
+ uuid?: string;
68
+ };
69
+ export type GetJourneyDraftChangesRequest = {
70
+ uuid?: string;
71
+ };
72
+ export type DraftChangesKind = 'DRAFT_CHANGES_NONE' | 'DRAFT_CHANGES_PARAMS_ONLY' | 'DRAFT_CHANGES_DESTRUCTIVE';
73
+ export type GetJourneyDraftChangesResponse = {
74
+ kind: DraftChangesKind;
75
+ changedPaths: string[];
76
+ };
77
+ export type ResumeMode = 'RESUME_MODE_KEEP_CURRENT' | 'RESUME_MODE_NEW_VERSION';
78
+ export type ResumeJourneyRequest = {
79
+ uuid?: string;
80
+ mode?: ResumeMode;
81
+ stopCurrentPermanently?: boolean;
82
+ reenterPointUuids?: string[];
83
+ };
84
+ export type ResumeJourneyResponse = {
85
+ response: GetJourneyByUUIDResponse;
86
+ validation: ValidateJourneyResponse;
87
+ };
88
+ export type GetJourneyVersionsRequest = {
89
+ uuid?: string;
90
+ };
91
+ export type JourneyVersionStatus = 'JOURNEY_VERSION_STATUS_UNKNOWN' | 'JOURNEY_VERSION_STATUS_ACTIVE' | 'JOURNEY_VERSION_STATUS_PAUSED' | 'JOURNEY_VERSION_STATUS_ACTIVE_CLOSED' | 'JOURNEY_VERSION_STATUS_INACTIVE';
92
+ export type JourneyVersion = {
93
+ uuid: string;
94
+ versionNumber: number;
95
+ status: JourneyVersionStatus;
96
+ usersLeft: number;
97
+ activatedAt: string;
98
+ activatedBy: User;
99
+ campaignCodes: string[];
100
+ openForEntries: boolean;
101
+ campaignCodesByOrigin: Record<string, string>;
102
+ };
103
+ export type GetJourneyVersionsResponse = {
104
+ versions: JourneyVersion[];
105
+ };
106
+ export type StopJourneyVersionRequest = {
107
+ uuid?: string;
108
+ };
61
109
  export type GetPlaceholdersRequest = {
62
110
  templateCode?: string;
63
111
  };
@@ -401,6 +449,7 @@ export type GetHistoryRequest = {
401
449
  userId?: number;
402
450
  pageSize?: number;
403
451
  page?: number;
452
+ allVersions?: boolean;
404
453
  };
405
454
  export type GetHistoryResponse = {
406
455
  items: HistoryItem[];
@@ -697,6 +746,8 @@ export type GetUserFlowResponse_Flow = {
697
746
  points: GetUserFlowResponse_Point[];
698
747
  status: GetUserFlowResponse_Status;
699
748
  enterTime: Date;
749
+ versionNumber: number;
750
+ journeyUuid: string;
700
751
  };
701
752
  export type GetUserFlowResponse = {
702
753
  flows: GetUserFlowResponse_Flow[];
@@ -774,6 +825,11 @@ export type Info = {
774
825
  stopReason: string;
775
826
  lastEditedBy: User;
776
827
  dynamicEntry: boolean;
828
+ versionNumber: number;
829
+ isDraft: boolean;
830
+ rootVersionUuid: string;
831
+ prevVersionUuid: string;
832
+ nextVersionUuid: string;
777
833
  };
778
834
  export type User = {
779
835
  id: number;
@@ -789,6 +845,7 @@ export type Point = {
789
845
  position: Position;
790
846
  pointData: PointDataWrapper;
791
847
  pointType: PointType;
848
+ originPointUuid: string;
792
849
  };
793
850
  export type PointDataWrapper_data_messageBus = {
794
851
  type: 'messageBus';
@@ -1616,6 +1673,8 @@ export type Capping = {
1616
1673
  count: number;
1617
1674
  days: number;
1618
1675
  doNotIncrease: boolean;
1676
+ mode: string;
1677
+ timezone: string;
1619
1678
  };
1620
1679
  export type InboxOptions = {
1621
1680
  enabled: boolean;