@pushwoosh/rpc-gateway-journey-data 0.27.10 → 0.27.12

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
@@ -944,6 +944,9 @@ export const data = {
944
944
  },
945
945
  "frequencyCappingSuppressions": {
946
946
  "type": "number"
947
+ },
948
+ "openedAmpp": {
949
+ "type": "number"
947
950
  }
948
951
  }
949
952
  },
@@ -2128,7 +2131,8 @@ export const data = {
2128
2131
  "POINT_TYPE_SEND_KAKAO",
2129
2132
  "POINT_TYPE_SEND_TELEGRAM",
2130
2133
  "POINT_TYPE_AUDIENCE_SYNC",
2131
- "POINT_TYPE_SEND_VIBER"
2134
+ "POINT_TYPE_SEND_VIBER",
2135
+ "POINT_TYPE_SMART_CONTENT"
2132
2136
  ]
2133
2137
  },
2134
2138
  "pushwoosh.cj.journey.Point": {
@@ -2229,6 +2233,9 @@ export const data = {
2229
2233
  },
2230
2234
  "sendViber": {
2231
2235
  "type": "pushwoosh.cj.journey.PointParamsSendViber"
2236
+ },
2237
+ "smartContent": {
2238
+ "type": "pushwoosh.cj.journey.PointParamsSmartContent"
2232
2239
  }
2233
2240
  },
2234
2241
  "oneofs": {
@@ -2256,11 +2263,100 @@ export const data = {
2256
2263
  "sendKakao",
2257
2264
  "sendTelegram",
2258
2265
  "audienceSync",
2259
- "sendViber"
2266
+ "sendViber",
2267
+ "smartContent"
2260
2268
  ]
2261
2269
  }
2262
2270
  }
2263
2271
  },
2272
+ "pushwoosh.cj.journey.PointParamsSmartContent": {
2273
+ "type": "I",
2274
+ "fields": {
2275
+ "applicationCode": {
2276
+ "type": "string"
2277
+ },
2278
+ "campaignCode": {
2279
+ "type": "string",
2280
+ "optional": true
2281
+ },
2282
+ "campaignUid": {
2283
+ "type": "number",
2284
+ "optional": true
2285
+ },
2286
+ "arms": {
2287
+ "type": "pushwoosh.cj.journey.SmartContentArm",
2288
+ "array": true
2289
+ },
2290
+ "reward": {
2291
+ "type": "pushwoosh.cj.journey.SmartContentReward"
2292
+ },
2293
+ "hyperparams": {
2294
+ "type": "pushwoosh.cj.journey.SmartContentHyperparams"
2295
+ },
2296
+ "capping": {
2297
+ "type": "pushwoosh.cj.journey.Capping"
2298
+ },
2299
+ "sendRate": {
2300
+ "type": "pushwoosh.cj.journey.SendRate"
2301
+ },
2302
+ "messageType": {
2303
+ "type": "pushwoosh.cj.journey.MessageType"
2304
+ }
2305
+ },
2306
+ "oneofs": {}
2307
+ },
2308
+ "pushwoosh.cj.journey.SmartContentArm": {
2309
+ "type": "I",
2310
+ "fields": {
2311
+ "presetCode": {
2312
+ "type": "string"
2313
+ }
2314
+ }
2315
+ },
2316
+ "pushwoosh.cj.journey.SmartContentRewardType": {
2317
+ "type": "E",
2318
+ "values": [
2319
+ "SMART_CONTENT_REWARD_OPEN",
2320
+ "SMART_CONTENT_REWARD_EVENT"
2321
+ ]
2322
+ },
2323
+ "pushwoosh.cj.journey.SmartContentReward": {
2324
+ "type": "I",
2325
+ "fields": {
2326
+ "type": {
2327
+ "type": "pushwoosh.cj.journey.SmartContentRewardType"
2328
+ },
2329
+ "windowSec": {
2330
+ "type": "number"
2331
+ },
2332
+ "eventName": {
2333
+ "type": "string"
2334
+ }
2335
+ }
2336
+ },
2337
+ "pushwoosh.cj.journey.SmartContentHyperparams": {
2338
+ "type": "I",
2339
+ "fields": {
2340
+ "tau": {
2341
+ "type": "number"
2342
+ },
2343
+ "gamma": {
2344
+ "type": "number"
2345
+ },
2346
+ "halfLifeDays": {
2347
+ "type": "number"
2348
+ },
2349
+ "sigma": {
2350
+ "type": "number"
2351
+ },
2352
+ "theta": {
2353
+ "type": "number"
2354
+ },
2355
+ "historyWindowDays": {
2356
+ "type": "number"
2357
+ }
2358
+ }
2359
+ },
2264
2360
  "pushwoosh.cj.journey.Time": {
2265
2361
  "type": "I",
2266
2362
  "fields": {
@@ -4891,6 +4987,12 @@ export const data = {
4891
4987
  },
4892
4988
  "frequencyCappingSuppressions": {
4893
4989
  "type": "number"
4990
+ },
4991
+ "openedAmpp": {
4992
+ "type": "number"
4993
+ },
4994
+ "totalOpenedAmpp": {
4995
+ "type": "number"
4894
4996
  }
4895
4997
  }
4896
4998
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.27.10",
3
+ "version": "0.27.12",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -317,6 +317,7 @@ export type PointStatSendEmail = {
317
317
  totalOpened: number;
318
318
  frequencyCappingUniqueUsers: number;
319
319
  frequencyCappingSuppressions: number;
320
+ openedAmpp: number;
320
321
  };
321
322
  export type PointStatAudienceSync = {
322
323
  synced: number;
@@ -747,7 +748,7 @@ export type User = {
747
748
  email: string;
748
749
  username: string;
749
750
  };
750
- export type PointType = 'POINT_TYPE_UNKNOWN' | 'POINT_TYPE_WAIT' | 'POINT_TYPE_EVENT' | 'POINT_TYPE_EXIT' | 'POINT_TYPE_SEND_PUSH' | 'POINT_TYPE_GOAL_EVENT' | 'POINT_TYPE_SEND_EMAIL' | 'POINT_TYPE_SEND_SMS' | 'POINT_TYPE_SEND_WHATSAPP' | 'POINT_TYPE_SEND_LINE' | 'POINT_TYPE_SEND_DATA' | 'POINT_TYPE_BOOLEAN_SPLITTER' | 'POINT_TYPE_FILTER' | 'POINT_TYPE_WAIT_EVENT' | 'POINT_TYPE_INAPP' | 'POINT_TYPE_START_BY_SEGMENT' | 'POINT_TYPE_AB_SPLITTER' | 'POINT_TYPE_SET_TAGS' | 'POINT_TYPE_WEBHOOK' | 'POINT_TYPE_START_BY_API' | 'POINT_TYPE_SEND_KAKAO' | 'POINT_TYPE_SEND_TELEGRAM' | 'POINT_TYPE_AUDIENCE_SYNC' | 'POINT_TYPE_SEND_VIBER';
751
+ export type PointType = 'POINT_TYPE_UNKNOWN' | 'POINT_TYPE_WAIT' | 'POINT_TYPE_EVENT' | 'POINT_TYPE_EXIT' | 'POINT_TYPE_SEND_PUSH' | 'POINT_TYPE_GOAL_EVENT' | 'POINT_TYPE_SEND_EMAIL' | 'POINT_TYPE_SEND_SMS' | 'POINT_TYPE_SEND_WHATSAPP' | 'POINT_TYPE_SEND_LINE' | 'POINT_TYPE_SEND_DATA' | 'POINT_TYPE_BOOLEAN_SPLITTER' | 'POINT_TYPE_FILTER' | 'POINT_TYPE_WAIT_EVENT' | 'POINT_TYPE_INAPP' | 'POINT_TYPE_START_BY_SEGMENT' | 'POINT_TYPE_AB_SPLITTER' | 'POINT_TYPE_SET_TAGS' | 'POINT_TYPE_WEBHOOK' | 'POINT_TYPE_START_BY_API' | 'POINT_TYPE_SEND_KAKAO' | 'POINT_TYPE_SEND_TELEGRAM' | 'POINT_TYPE_AUDIENCE_SYNC' | 'POINT_TYPE_SEND_VIBER' | 'POINT_TYPE_SMART_CONTENT';
751
752
  export type Point = {
752
753
  uuid: string;
753
754
  title: string;
@@ -849,10 +850,42 @@ export type PointDataWrapper_data_sendViber = {
849
850
  type: 'sendViber';
850
851
  data: PointParamsSendViber;
851
852
  };
852
- 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;
853
+ export type PointDataWrapper_data_smartContent = {
854
+ type: 'smartContent';
855
+ data: PointParamsSmartContent;
856
+ };
857
+ 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;
853
858
  export type PointDataWrapper = {
854
859
  data: PointDataWrapper_data;
855
860
  };
861
+ export type PointParamsSmartContent = {
862
+ applicationCode: string;
863
+ campaignCode?: string;
864
+ campaignUid?: number;
865
+ arms: SmartContentArm[];
866
+ reward: SmartContentReward;
867
+ hyperparams: SmartContentHyperparams;
868
+ capping: Capping;
869
+ sendRate: SendRate;
870
+ messageType: MessageType;
871
+ };
872
+ export type SmartContentArm = {
873
+ presetCode: string;
874
+ };
875
+ export type SmartContentRewardType = 'SMART_CONTENT_REWARD_OPEN' | 'SMART_CONTENT_REWARD_EVENT';
876
+ export type SmartContentReward = {
877
+ type: SmartContentRewardType;
878
+ windowSec: number;
879
+ eventName: string;
880
+ };
881
+ export type SmartContentHyperparams = {
882
+ tau: number;
883
+ gamma: number;
884
+ halfLifeDays: number;
885
+ sigma: number;
886
+ theta: number;
887
+ historyWindowDays: number;
888
+ };
856
889
  export type Time = {
857
890
  hour: number;
858
891
  minute: number;
@@ -1766,6 +1799,8 @@ export type GetJourneyMetricsResponse_EmailTotals = {
1766
1799
  totalDeliveries: number;
1767
1800
  frequencyCappingUniqueUsers: number;
1768
1801
  frequencyCappingSuppressions: number;
1802
+ openedAmpp: number;
1803
+ totalOpenedAmpp: number;
1769
1804
  };
1770
1805
  export type GetJourneyMetricsResponse_WhatsAppTotals = {
1771
1806
  sent: number;