@pushwoosh/rpc-gateway-journey-data 0.27.225 → 0.27.227
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 +117 -3
- package/package.json +1 -1
- package/pushwoosh_cj_journey.d.ts +76 -3
package/data.js
CHANGED
|
@@ -419,6 +419,12 @@ export const data = {
|
|
|
419
419
|
"method": "post",
|
|
420
420
|
"path": "/api/v2/journeygateway/test-webhook"
|
|
421
421
|
},
|
|
422
|
+
"PreviewWebPlacement": {
|
|
423
|
+
"request": "pushwoosh.cj.journey.PreviewWebPlacementRequest",
|
|
424
|
+
"response": "pushwoosh.cj.journey.PreviewWebPlacementResponse",
|
|
425
|
+
"method": "post",
|
|
426
|
+
"path": "/api/v2/journeygateway/preview-web-placement"
|
|
427
|
+
},
|
|
422
428
|
"GetApplicationsByAccountId": {
|
|
423
429
|
"request": "pushwoosh.cj.journey.GetApplicationsByAccountIdRequest",
|
|
424
430
|
"response": "pushwoosh.cj.journey.GetApplicationsByAccountIdResponse",
|
|
@@ -958,6 +964,9 @@ export const data = {
|
|
|
958
964
|
},
|
|
959
965
|
"sendLiveActivity": {
|
|
960
966
|
"type": "pushwoosh.cj.journey.PointStatSendLiveActivity"
|
|
967
|
+
},
|
|
968
|
+
"webPlacement": {
|
|
969
|
+
"type": "pushwoosh.cj.journey.PointStatWebPlacement"
|
|
961
970
|
}
|
|
962
971
|
},
|
|
963
972
|
"oneofs": {
|
|
@@ -985,7 +994,8 @@ export const data = {
|
|
|
985
994
|
"sendInbox",
|
|
986
995
|
"sendFbMessenger",
|
|
987
996
|
"webhook",
|
|
988
|
-
"sendLiveActivity"
|
|
997
|
+
"sendLiveActivity",
|
|
998
|
+
"webPlacement"
|
|
989
999
|
]
|
|
990
1000
|
}
|
|
991
1001
|
}
|
|
@@ -1430,6 +1440,17 @@ export const data = {
|
|
|
1430
1440
|
}
|
|
1431
1441
|
}
|
|
1432
1442
|
},
|
|
1443
|
+
"pushwoosh.cj.journey.PointStatWebPlacement": {
|
|
1444
|
+
"type": "I",
|
|
1445
|
+
"fields": {
|
|
1446
|
+
"shows": {
|
|
1447
|
+
"type": "number"
|
|
1448
|
+
},
|
|
1449
|
+
"interactions": {
|
|
1450
|
+
"type": "number"
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1433
1454
|
"pushwoosh.cj.journey.PointStatSendLiveActivity": {
|
|
1434
1455
|
"type": "I",
|
|
1435
1456
|
"fields": {
|
|
@@ -2766,7 +2787,8 @@ export const data = {
|
|
|
2766
2787
|
"POINT_TYPE_SEND_FB_MESSENGER",
|
|
2767
2788
|
"POINT_TYPE_HOLDOUT_SPLIT",
|
|
2768
2789
|
"POINT_TYPE_SEND_LIVE_ACTIVITY",
|
|
2769
|
-
"POINT_TYPE_LOOP"
|
|
2790
|
+
"POINT_TYPE_LOOP",
|
|
2791
|
+
"POINT_TYPE_WEB_PLACEMENT"
|
|
2770
2792
|
]
|
|
2771
2793
|
},
|
|
2772
2794
|
"pushwoosh.cj.journey.Point": {
|
|
@@ -2891,6 +2913,9 @@ export const data = {
|
|
|
2891
2913
|
},
|
|
2892
2914
|
"loop": {
|
|
2893
2915
|
"type": "pushwoosh.cj.journey.PointParamsLoop"
|
|
2916
|
+
},
|
|
2917
|
+
"webPlacement": {
|
|
2918
|
+
"type": "pushwoosh.cj.journey.PointParamsWebPlacement"
|
|
2894
2919
|
}
|
|
2895
2920
|
},
|
|
2896
2921
|
"oneofs": {
|
|
@@ -2925,7 +2950,8 @@ export const data = {
|
|
|
2925
2950
|
"sendFbMessenger",
|
|
2926
2951
|
"holdoutSplit",
|
|
2927
2952
|
"sendLiveActivity",
|
|
2928
|
-
"loop"
|
|
2953
|
+
"loop",
|
|
2954
|
+
"webPlacement"
|
|
2929
2955
|
]
|
|
2930
2956
|
}
|
|
2931
2957
|
}
|
|
@@ -4643,6 +4669,69 @@ export const data = {
|
|
|
4643
4669
|
}
|
|
4644
4670
|
}
|
|
4645
4671
|
},
|
|
4672
|
+
"pushwoosh.cj.journey.WebPlacementKind": {
|
|
4673
|
+
"type": "E",
|
|
4674
|
+
"values": [
|
|
4675
|
+
"WEB_PLACEMENT_KIND_POPUP",
|
|
4676
|
+
"WEB_PLACEMENT_KIND_EMBEDDED"
|
|
4677
|
+
]
|
|
4678
|
+
},
|
|
4679
|
+
"pushwoosh.cj.journey.WebPlacementPriority": {
|
|
4680
|
+
"type": "E",
|
|
4681
|
+
"values": [
|
|
4682
|
+
"WEB_PLACEMENT_PRIORITY_MEDIUM",
|
|
4683
|
+
"WEB_PLACEMENT_PRIORITY_LOW",
|
|
4684
|
+
"WEB_PLACEMENT_PRIORITY_HIGH"
|
|
4685
|
+
]
|
|
4686
|
+
},
|
|
4687
|
+
"pushwoosh.cj.journey.PointParamsWebPlacement": {
|
|
4688
|
+
"type": "I",
|
|
4689
|
+
"fields": {
|
|
4690
|
+
"applicationCode": {
|
|
4691
|
+
"type": "string"
|
|
4692
|
+
},
|
|
4693
|
+
"contentCode": {
|
|
4694
|
+
"type": "string"
|
|
4695
|
+
},
|
|
4696
|
+
"kind": {
|
|
4697
|
+
"type": "pushwoosh.cj.journey.WebPlacementKind"
|
|
4698
|
+
},
|
|
4699
|
+
"cssSelector": {
|
|
4700
|
+
"type": "string"
|
|
4701
|
+
},
|
|
4702
|
+
"width": {
|
|
4703
|
+
"type": "string"
|
|
4704
|
+
},
|
|
4705
|
+
"priority": {
|
|
4706
|
+
"type": "pushwoosh.cj.journey.WebPlacementPriority"
|
|
4707
|
+
},
|
|
4708
|
+
"expireInMinutes": {
|
|
4709
|
+
"type": "number"
|
|
4710
|
+
},
|
|
4711
|
+
"triggerEvent": {
|
|
4712
|
+
"type": "pushwoosh.cj.journey.PointInappTriggerEvent",
|
|
4713
|
+
"optional": true
|
|
4714
|
+
},
|
|
4715
|
+
"hideEvent": {
|
|
4716
|
+
"type": "pushwoosh.cj.journey.PointInappTriggerEvent",
|
|
4717
|
+
"optional": true
|
|
4718
|
+
},
|
|
4719
|
+
"dismissible": {
|
|
4720
|
+
"type": "boolean"
|
|
4721
|
+
},
|
|
4722
|
+
"campaignCode": {
|
|
4723
|
+
"type": "string",
|
|
4724
|
+
"optional": true
|
|
4725
|
+
},
|
|
4726
|
+
"campaignUid": {
|
|
4727
|
+
"type": "number",
|
|
4728
|
+
"optional": true
|
|
4729
|
+
},
|
|
4730
|
+
"maxShowsPerDay": {
|
|
4731
|
+
"type": "number"
|
|
4732
|
+
}
|
|
4733
|
+
}
|
|
4734
|
+
},
|
|
4646
4735
|
"pushwoosh.cj.journey.PointParamsSendInbox": {
|
|
4647
4736
|
"type": "I",
|
|
4648
4737
|
"fields": {
|
|
@@ -5917,6 +6006,9 @@ export const data = {
|
|
|
5917
6006
|
},
|
|
5918
6007
|
"allowJourneyLoopPoint": {
|
|
5919
6008
|
"type": "boolean"
|
|
6009
|
+
},
|
|
6010
|
+
"allowWebPlacement": {
|
|
6011
|
+
"type": "boolean"
|
|
5920
6012
|
}
|
|
5921
6013
|
}
|
|
5922
6014
|
},
|
|
@@ -7622,6 +7714,28 @@ export const data = {
|
|
|
7622
7714
|
}
|
|
7623
7715
|
}
|
|
7624
7716
|
},
|
|
7717
|
+
"pushwoosh.cj.journey.PreviewWebPlacementRequest": {
|
|
7718
|
+
"type": "I",
|
|
7719
|
+
"fields": {
|
|
7720
|
+
"applicationCode": {
|
|
7721
|
+
"type": "string"
|
|
7722
|
+
},
|
|
7723
|
+
"hwid": {
|
|
7724
|
+
"type": "string"
|
|
7725
|
+
},
|
|
7726
|
+
"params": {
|
|
7727
|
+
"type": "pushwoosh.cj.journey.PointParamsWebPlacement"
|
|
7728
|
+
}
|
|
7729
|
+
}
|
|
7730
|
+
},
|
|
7731
|
+
"pushwoosh.cj.journey.PreviewWebPlacementResponse": {
|
|
7732
|
+
"type": "I",
|
|
7733
|
+
"fields": {
|
|
7734
|
+
"userId": {
|
|
7735
|
+
"type": "string"
|
|
7736
|
+
}
|
|
7737
|
+
}
|
|
7738
|
+
},
|
|
7625
7739
|
"pushwoosh.cj.journey.GetEventsByApplicationCodeRequest": {
|
|
7626
7740
|
"type": "I",
|
|
7627
7741
|
"fields": {
|
package/package.json
CHANGED
|
@@ -69,6 +69,7 @@ export type Journey_GetEventAttributeValues = RpcMethod<GetEventAttributeValuesR
|
|
|
69
69
|
export type Journey_GetRichMediaByApplicationCode = RpcMethod<GetRichMediaByApplicationCodeRequest, GetRichMediaByApplicationCodeResponse>;
|
|
70
70
|
export type Journey_GetRichMediaByCode = RpcMethod<GetRichMediaByCodeRequest, GetRichMediaByCodeResponse>;
|
|
71
71
|
export type Journey_TestWebhook = RpcMethod<TestWebhookRequest, TestWebhookResponse>;
|
|
72
|
+
export type Journey_PreviewWebPlacement = RpcMethod<PreviewWebPlacementRequest, PreviewWebPlacementResponse>;
|
|
72
73
|
export type Journey_GetApplicationsByAccountId = RpcMethod<GetApplicationsByAccountIdRequest, GetApplicationsByAccountIdResponse>;
|
|
73
74
|
export type Journey_GetFiltersByAccountId = RpcMethod<GetFiltersByAccountIdRequest, GetFiltersByAccountIdResponse>;
|
|
74
75
|
export type Journey_GetEventsByApplicationCodes = RpcMethod<GetEventsByApplicationCodesRequest, GetEventsByApplicationCodesResponse>;
|
|
@@ -258,6 +259,8 @@ export interface Journey {
|
|
|
258
259
|
GetRichMediaByCode: Journey_GetRichMediaByCode;
|
|
259
260
|
/** Fires a test HTTP request to a customer-supplied webhook URL and returns the live response status and body. Reaches an external endpoint; use to verify a journey webhook point before saving. */
|
|
260
261
|
TestWebhook: Journey_TestWebhook;
|
|
262
|
+
/** Shows a web placement, as configured in the point form, on one test device of the application: it appears on the device's next page view for an hour, outside any journey and its statistics. */
|
|
263
|
+
PreviewWebPlacement: Journey_PreviewWebPlacement;
|
|
261
264
|
/** Returns the applications available to the current account for journey building. Read-only lookup used to populate app pickers. */
|
|
262
265
|
GetApplicationsByAccountId: Journey_GetApplicationsByAccountId;
|
|
263
266
|
/** Returns the filters/segments available to the current account for use in journey audience and split points. Read-only lookup. */
|
|
@@ -639,7 +642,11 @@ export type PointStat_pointStat_sendLiveActivity = {
|
|
|
639
642
|
type: 'sendLiveActivity';
|
|
640
643
|
data: PointStatSendLiveActivity;
|
|
641
644
|
};
|
|
642
|
-
export type
|
|
645
|
+
export type PointStat_pointStat_webPlacement = {
|
|
646
|
+
type: 'webPlacement';
|
|
647
|
+
data: PointStatWebPlacement;
|
|
648
|
+
};
|
|
649
|
+
export type PointStat_pointStat = PointStat_pointStat_sendPush | PointStat_pointStat_inApp | PointStat_pointStat_sendSms | PointStat_pointStat_sendWhatsapp | PointStat_pointStat_sendData | PointStat_pointStat_sendEmail | PointStat_pointStat_messageBus | PointStat_pointStat_goalEvent | PointStat_pointStat_terminator | PointStat_pointStat_delay | PointStat_pointStat_booleanSplitter | PointStat_pointStat_waitEvent | PointStat_pointStat_sendLine | PointStat_pointStat_sendKakao | PointStat_pointStat_sendTelegram | PointStat_pointStat_audienceSync | PointStat_pointStat_sendViber | PointStat_pointStat_smartContent | PointStat_pointStat_issueWalletPass | PointStat_pointStat_sendInbox | PointStat_pointStat_sendFbMessenger | PointStat_pointStat_webhook | PointStat_pointStat_sendLiveActivity | PointStat_pointStat_webPlacement;
|
|
643
650
|
/** PointStat contains statistics specific to the point type */
|
|
644
651
|
export type PointStat = {
|
|
645
652
|
pointStat: PointStat_pointStat;
|
|
@@ -939,6 +946,13 @@ export type PointStatIssueWalletPass = {
|
|
|
939
946
|
/** Number of travelers skipped: anonymous or the issuing call failed */
|
|
940
947
|
skipped: number;
|
|
941
948
|
};
|
|
949
|
+
/** PointStatWebPlacement contains statistics for web placement points */
|
|
950
|
+
export type PointStatWebPlacement = {
|
|
951
|
+
/** Number of times the placement was shown */
|
|
952
|
+
shows: number;
|
|
953
|
+
/** Number of clicks inside the placement */
|
|
954
|
+
interactions: number;
|
|
955
|
+
};
|
|
942
956
|
/** PointStatSendLiveActivity contains statistics for Live Activity points */
|
|
943
957
|
export type PointStatSendLiveActivity = {
|
|
944
958
|
/** Number of travelers the card action was pushed for */
|
|
@@ -1858,7 +1872,9 @@ export type PointType =
|
|
|
1858
1872
|
/** Holdout split point (holds a share of travelers out of the journey) */
|
|
1859
1873
|
| 'POINT_TYPE_HOLDOUT_SPLIT'
|
|
1860
1874
|
/** Live Activity card point */
|
|
1861
|
-
| 'POINT_TYPE_SEND_LIVE_ACTIVITY' | 'POINT_TYPE_LOOP'
|
|
1875
|
+
| 'POINT_TYPE_SEND_LIVE_ACTIVITY' | 'POINT_TYPE_LOOP'
|
|
1876
|
+
/** Web popup or inline block shown on the customer's website */
|
|
1877
|
+
| 'POINT_TYPE_WEB_PLACEMENT';
|
|
1862
1878
|
/** Point represents a single node in the journey */
|
|
1863
1879
|
export type Point = {
|
|
1864
1880
|
/** Unique identifier (UUID) of the point */
|
|
@@ -1998,7 +2014,11 @@ export type PointDataWrapper_data_loop = {
|
|
|
1998
2014
|
type: 'loop';
|
|
1999
2015
|
data: PointParamsLoop;
|
|
2000
2016
|
};
|
|
2001
|
-
export type
|
|
2017
|
+
export type PointDataWrapper_data_webPlacement = {
|
|
2018
|
+
type: 'webPlacement';
|
|
2019
|
+
data: PointParamsWebPlacement;
|
|
2020
|
+
};
|
|
2021
|
+
export type PointDataWrapper_data = PointDataWrapper_data_messageBus | PointDataWrapper_data_delay | PointDataWrapper_data_terminator | PointDataWrapper_data_sendPush | PointDataWrapper_data_goalEvent | PointDataWrapper_data_sendEmail | PointDataWrapper_data_booleanSplitter | PointDataWrapper_data_waitEvent | PointDataWrapper_data_inapp | PointDataWrapper_data_startBySegment | PointDataWrapper_data_abSplitter | PointDataWrapper_data_setTags | PointDataWrapper_data_webHook | PointDataWrapper_data_filter | PointDataWrapper_data_sendSms | PointDataWrapper_data_startByApi | PointDataWrapper_data_sendWhatsapp | PointDataWrapper_data_sendData | PointDataWrapper_data_sendLine | PointDataWrapper_data_sendKakao | PointDataWrapper_data_sendTelegram | PointDataWrapper_data_audienceSync | PointDataWrapper_data_sendViber | PointDataWrapper_data_smartContent | PointDataWrapper_data_issueWalletPass | PointDataWrapper_data_sendInbox | PointDataWrapper_data_sendFbMessenger | PointDataWrapper_data_holdoutSplit | PointDataWrapper_data_sendLiveActivity | PointDataWrapper_data_loop | PointDataWrapper_data_webPlacement;
|
|
2002
2022
|
/** PointDataWrapper contains point-specific configuration based on type */
|
|
2003
2023
|
export type PointDataWrapper = {
|
|
2004
2024
|
data: PointDataWrapper_data;
|
|
@@ -3160,6 +3180,43 @@ export type PointInappTriggerEvent = {
|
|
|
3160
3180
|
/** Conditions to match event attributes, all must hold */
|
|
3161
3181
|
eventConditions: PointEventCondition[];
|
|
3162
3182
|
};
|
|
3183
|
+
/** WebPlacementKind is how the placement is shown on the website */
|
|
3184
|
+
export type WebPlacementKind =
|
|
3185
|
+
/** Modal popup over the page */
|
|
3186
|
+
'WEB_PLACEMENT_KIND_POPUP'
|
|
3187
|
+
/** Inline block inserted into a page element */
|
|
3188
|
+
| 'WEB_PLACEMENT_KIND_EMBEDDED';
|
|
3189
|
+
/** WebPlacementPriority picks one placement when several target the same element */
|
|
3190
|
+
export type WebPlacementPriority = 'WEB_PLACEMENT_PRIORITY_MEDIUM' | 'WEB_PLACEMENT_PRIORITY_LOW' | 'WEB_PLACEMENT_PRIORITY_HIGH';
|
|
3191
|
+
/** PointParamsWebPlacement shows a web popup content on the user's next page view or on an event */
|
|
3192
|
+
export type PointParamsWebPlacement = {
|
|
3193
|
+
/** Application code (must have a web platform) */
|
|
3194
|
+
applicationCode: string;
|
|
3195
|
+
/** Web popup content code (kind CONTENT, without form fields) */
|
|
3196
|
+
contentCode: string;
|
|
3197
|
+
/** Popup or inline block */
|
|
3198
|
+
kind: WebPlacementKind;
|
|
3199
|
+
/** CSS selector of the page element an inline block goes into; required for EMBEDDED, empty for POPUP */
|
|
3200
|
+
cssSelector: string;
|
|
3201
|
+
/** CSS width of the block; empty keeps the element's own width */
|
|
3202
|
+
width: string;
|
|
3203
|
+
/** Priority among placements targeting the same element */
|
|
3204
|
+
priority: WebPlacementPriority;
|
|
3205
|
+
/** How long the placement waits and stays on the site, 1..10080 minutes */
|
|
3206
|
+
expireInMinutes: number;
|
|
3207
|
+
/** Event that shows the placement; unset shows it on the next page view */
|
|
3208
|
+
triggerEvent?: PointInappTriggerEvent;
|
|
3209
|
+
/** Event that removes the placement */
|
|
3210
|
+
hideEvent?: PointInappTriggerEvent;
|
|
3211
|
+
/** Whether the visitor can close the placement */
|
|
3212
|
+
dismissible: boolean;
|
|
3213
|
+
/** Campaign code, assigned when the journey starts. Leave empty in Create and in new points, except for the system campaign created for this point; in existing points, leave empty or as read. Otherwise the request is rejected. */
|
|
3214
|
+
campaignCode?: string;
|
|
3215
|
+
/** Campaign UID, assigned when the journey starts. Leave empty in Create and in new points, except for the system campaign created for this point; in existing points, leave empty or as read. Otherwise the request is rejected. */
|
|
3216
|
+
campaignUid?: number;
|
|
3217
|
+
/** Popups only: shows per visitor per day, 0..100; 0 is no cap. Inline blocks keep 0 */
|
|
3218
|
+
maxShowsPerDay: number;
|
|
3219
|
+
};
|
|
3163
3220
|
/** PointParamsSendInbox contains App Inbox message point configuration */
|
|
3164
3221
|
export type PointParamsSendInbox = {
|
|
3165
3222
|
/** App Inbox preset code (message content) */
|
|
@@ -4044,6 +4101,8 @@ export type AccountRestrictionValues = {
|
|
|
4044
4101
|
allowJourneyPointTemplates: boolean;
|
|
4045
4102
|
/** Whether the Loop point can be placed on the canvas */
|
|
4046
4103
|
allowJourneyLoopPoint: boolean;
|
|
4104
|
+
/** Whether the Web placement point can be placed on the canvas */
|
|
4105
|
+
allowWebPlacement: boolean;
|
|
4047
4106
|
};
|
|
4048
4107
|
/**
|
|
4049
4108
|
* SavePointTemplateRequest carries one manifest version. A published (slug, version) is immutable:
|
|
@@ -5043,6 +5102,20 @@ export type TestWebhookResponse = {
|
|
|
5043
5102
|
statusCode: number;
|
|
5044
5103
|
body: string;
|
|
5045
5104
|
};
|
|
5105
|
+
/** PreviewWebPlacementRequest shows the placement of an unsaved or saved point to a test device */
|
|
5106
|
+
export type PreviewWebPlacementRequest = {
|
|
5107
|
+
/** Application code; params.application_code must match it */
|
|
5108
|
+
applicationCode?: string;
|
|
5109
|
+
/** HWID of a test device registered in the application */
|
|
5110
|
+
hwid?: string;
|
|
5111
|
+
/** The placement as configured in the point form */
|
|
5112
|
+
params?: PointParamsWebPlacement;
|
|
5113
|
+
};
|
|
5114
|
+
/** PreviewWebPlacementResponse names who the placement was queued for */
|
|
5115
|
+
export type PreviewWebPlacementResponse = {
|
|
5116
|
+
/** User ID the placement waits under: the device's user, or its HWID when it has none */
|
|
5117
|
+
userId: string;
|
|
5118
|
+
};
|
|
5046
5119
|
/** GetEventsByApplicationCodeRequest requests events for an application */
|
|
5047
5120
|
export type GetEventsByApplicationCodeRequest = {
|
|
5048
5121
|
/** Application code */
|