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

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
@@ -2128,7 +2128,8 @@ export const data = {
2128
2128
  "POINT_TYPE_SEND_KAKAO",
2129
2129
  "POINT_TYPE_SEND_TELEGRAM",
2130
2130
  "POINT_TYPE_AUDIENCE_SYNC",
2131
- "POINT_TYPE_SEND_VIBER"
2131
+ "POINT_TYPE_SEND_VIBER",
2132
+ "POINT_TYPE_SMART_CONTENT"
2132
2133
  ]
2133
2134
  },
2134
2135
  "pushwoosh.cj.journey.Point": {
@@ -2229,6 +2230,9 @@ export const data = {
2229
2230
  },
2230
2231
  "sendViber": {
2231
2232
  "type": "pushwoosh.cj.journey.PointParamsSendViber"
2233
+ },
2234
+ "smartContent": {
2235
+ "type": "pushwoosh.cj.journey.PointParamsSmartContent"
2232
2236
  }
2233
2237
  },
2234
2238
  "oneofs": {
@@ -2256,11 +2260,100 @@ export const data = {
2256
2260
  "sendKakao",
2257
2261
  "sendTelegram",
2258
2262
  "audienceSync",
2259
- "sendViber"
2263
+ "sendViber",
2264
+ "smartContent"
2260
2265
  ]
2261
2266
  }
2262
2267
  }
2263
2268
  },
2269
+ "pushwoosh.cj.journey.PointParamsSmartContent": {
2270
+ "type": "I",
2271
+ "fields": {
2272
+ "applicationCode": {
2273
+ "type": "string"
2274
+ },
2275
+ "campaignCode": {
2276
+ "type": "string",
2277
+ "optional": true
2278
+ },
2279
+ "campaignUid": {
2280
+ "type": "number",
2281
+ "optional": true
2282
+ },
2283
+ "arms": {
2284
+ "type": "pushwoosh.cj.journey.SmartContentArm",
2285
+ "array": true
2286
+ },
2287
+ "reward": {
2288
+ "type": "pushwoosh.cj.journey.SmartContentReward"
2289
+ },
2290
+ "hyperparams": {
2291
+ "type": "pushwoosh.cj.journey.SmartContentHyperparams"
2292
+ },
2293
+ "capping": {
2294
+ "type": "pushwoosh.cj.journey.Capping"
2295
+ },
2296
+ "sendRate": {
2297
+ "type": "pushwoosh.cj.journey.SendRate"
2298
+ },
2299
+ "messageType": {
2300
+ "type": "pushwoosh.cj.journey.MessageType"
2301
+ }
2302
+ },
2303
+ "oneofs": {}
2304
+ },
2305
+ "pushwoosh.cj.journey.SmartContentArm": {
2306
+ "type": "I",
2307
+ "fields": {
2308
+ "presetCode": {
2309
+ "type": "string"
2310
+ }
2311
+ }
2312
+ },
2313
+ "pushwoosh.cj.journey.SmartContentRewardType": {
2314
+ "type": "E",
2315
+ "values": [
2316
+ "SMART_CONTENT_REWARD_OPEN",
2317
+ "SMART_CONTENT_REWARD_EVENT"
2318
+ ]
2319
+ },
2320
+ "pushwoosh.cj.journey.SmartContentReward": {
2321
+ "type": "I",
2322
+ "fields": {
2323
+ "type": {
2324
+ "type": "pushwoosh.cj.journey.SmartContentRewardType"
2325
+ },
2326
+ "windowSec": {
2327
+ "type": "number"
2328
+ },
2329
+ "eventName": {
2330
+ "type": "string"
2331
+ }
2332
+ }
2333
+ },
2334
+ "pushwoosh.cj.journey.SmartContentHyperparams": {
2335
+ "type": "I",
2336
+ "fields": {
2337
+ "tau": {
2338
+ "type": "number"
2339
+ },
2340
+ "gamma": {
2341
+ "type": "number"
2342
+ },
2343
+ "halfLifeDays": {
2344
+ "type": "number"
2345
+ },
2346
+ "sigma": {
2347
+ "type": "number"
2348
+ },
2349
+ "theta": {
2350
+ "type": "number"
2351
+ },
2352
+ "historyWindowDays": {
2353
+ "type": "number"
2354
+ }
2355
+ }
2356
+ },
2264
2357
  "pushwoosh.cj.journey.Time": {
2265
2358
  "type": "I",
2266
2359
  "fields": {
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.11",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -747,7 +747,7 @@ export type User = {
747
747
  email: string;
748
748
  username: string;
749
749
  };
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';
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' | 'POINT_TYPE_SMART_CONTENT';
751
751
  export type Point = {
752
752
  uuid: string;
753
753
  title: string;
@@ -849,10 +849,42 @@ export type PointDataWrapper_data_sendViber = {
849
849
  type: 'sendViber';
850
850
  data: PointParamsSendViber;
851
851
  };
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;
852
+ export type PointDataWrapper_data_smartContent = {
853
+ type: 'smartContent';
854
+ data: PointParamsSmartContent;
855
+ };
856
+ 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
857
  export type PointDataWrapper = {
854
858
  data: PointDataWrapper_data;
855
859
  };
860
+ export type PointParamsSmartContent = {
861
+ applicationCode: string;
862
+ campaignCode?: string;
863
+ campaignUid?: number;
864
+ arms: SmartContentArm[];
865
+ reward: SmartContentReward;
866
+ hyperparams: SmartContentHyperparams;
867
+ capping: Capping;
868
+ sendRate: SendRate;
869
+ messageType: MessageType;
870
+ };
871
+ export type SmartContentArm = {
872
+ presetCode: string;
873
+ };
874
+ export type SmartContentRewardType = 'SMART_CONTENT_REWARD_OPEN' | 'SMART_CONTENT_REWARD_EVENT';
875
+ export type SmartContentReward = {
876
+ type: SmartContentRewardType;
877
+ windowSec: number;
878
+ eventName: string;
879
+ };
880
+ export type SmartContentHyperparams = {
881
+ tau: number;
882
+ gamma: number;
883
+ halfLifeDays: number;
884
+ sigma: number;
885
+ theta: number;
886
+ historyWindowDays: number;
887
+ };
856
888
  export type Time = {
857
889
  hour: number;
858
890
  minute: number;