@pushwoosh/rpc-gateway-journey-data 0.26.388 → 0.26.390

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
@@ -268,6 +268,30 @@ export const data = {
268
268
  "method": "get",
269
269
  "path": "/api/application/{code}/email-preset"
270
270
  },
271
+ "GetEventsByApplicationCode": {
272
+ "request": "pushwoosh.cj.journey.GetEventsByApplicationCodeRequest",
273
+ "response": "pushwoosh.cj.journey.GetEventsByApplicationCodeResponse",
274
+ "method": "get",
275
+ "path": "/api/v2/application/{code}/event"
276
+ },
277
+ "GetEventAttributeValues": {
278
+ "request": "pushwoosh.cj.journey.GetEventAttributeValuesRequest",
279
+ "response": "pushwoosh.cj.journey.GetEventAttributeValuesResponse",
280
+ "method": "get",
281
+ "path": "/api/v2/application/{code}/event/{event_id}"
282
+ },
283
+ "GetRichMediaByApplicationCode": {
284
+ "request": "pushwoosh.cj.journey.GetRichMediaByApplicationCodeRequest",
285
+ "response": "pushwoosh.cj.journey.GetRichMediaByApplicationCodeResponse",
286
+ "method": "get",
287
+ "path": "/api/v2/application/{code}/richmedia"
288
+ },
289
+ "GetRichMediaByCode": {
290
+ "request": "pushwoosh.cj.journey.GetRichMediaByCodeRequest",
291
+ "response": "pushwoosh.cj.journey.GetRichMediaByCodeResponse",
292
+ "method": "get",
293
+ "path": "/api/v2/application/{code}/richmedia/{rmcode}"
294
+ },
271
295
  "TestWebhook": {
272
296
  "request": "pushwoosh.cj.journey.TestWebhookRequest",
273
297
  "response": "pushwoosh.cj.journey.TestWebhookResponse",
@@ -564,6 +588,9 @@ export const data = {
564
588
  },
565
589
  "sendKakao": {
566
590
  "type": "pushwoosh.cj.journey.PointStatSendKakao"
591
+ },
592
+ "sendTelegram": {
593
+ "type": "pushwoosh.cj.journey.PointStatSendTelegram"
567
594
  }
568
595
  },
569
596
  "oneofs": {
@@ -582,7 +609,8 @@ export const data = {
582
609
  "booleanSplitter",
583
610
  "waitEvent",
584
611
  "sendLine",
585
- "sendKakao"
612
+ "sendKakao",
613
+ "sendTelegram"
586
614
  ]
587
615
  }
588
616
  }
@@ -702,6 +730,26 @@ export const data = {
702
730
  }
703
731
  }
704
732
  },
733
+ "pushwoosh.cj.journey.PointStatSendTelegram": {
734
+ "type": "I",
735
+ "fields": {
736
+ "sent": {
737
+ "type": "number"
738
+ },
739
+ "delivered": {
740
+ "type": "number"
741
+ },
742
+ "errors": {
743
+ "type": "number"
744
+ },
745
+ "recipients": {
746
+ "type": "number"
747
+ },
748
+ "voucherStats": {
749
+ "type": "pushwoosh.cj.journey.VoucherPoolStats"
750
+ }
751
+ }
752
+ },
705
753
  "pushwoosh.cj.journey.PointStatSendWhatsApp": {
706
754
  "type": "I",
707
755
  "fields": {
@@ -1941,7 +1989,8 @@ export const data = {
1941
1989
  "POINT_TYPE_SET_TAGS",
1942
1990
  "POINT_TYPE_WEBHOOK",
1943
1991
  "POINT_TYPE_START_BY_API",
1944
- "POINT_TYPE_SEND_KAKAO"
1992
+ "POINT_TYPE_SEND_KAKAO",
1993
+ "POINT_TYPE_SEND_TELEGRAM"
1945
1994
  ]
1946
1995
  },
1947
1996
  "pushwoosh.cj.journey.Point": {
@@ -2033,6 +2082,9 @@ export const data = {
2033
2082
  },
2034
2083
  "sendKakao": {
2035
2084
  "type": "pushwoosh.cj.journey.PointParamsSendKakao"
2085
+ },
2086
+ "sendTelegram": {
2087
+ "type": "pushwoosh.cj.journey.PointParamsSendTelegram"
2036
2088
  }
2037
2089
  },
2038
2090
  "oneofs": {
@@ -2057,7 +2109,8 @@ export const data = {
2057
2109
  "sendWhatsapp",
2058
2110
  "sendData",
2059
2111
  "sendLine",
2060
- "sendKakao"
2112
+ "sendKakao",
2113
+ "sendTelegram"
2061
2114
  ]
2062
2115
  }
2063
2116
  }
@@ -2452,6 +2505,41 @@ export const data = {
2452
2505
  },
2453
2506
  "oneofs": {}
2454
2507
  },
2508
+ "pushwoosh.cj.journey.PointParamsSendTelegram": {
2509
+ "type": "I",
2510
+ "fields": {
2511
+ "content": {
2512
+ "type": "string"
2513
+ },
2514
+ "applicationCode": {
2515
+ "type": "string"
2516
+ },
2517
+ "campaignCode": {
2518
+ "type": "string",
2519
+ "optional": true
2520
+ },
2521
+ "campaignUid": {
2522
+ "type": "number",
2523
+ "optional": true
2524
+ },
2525
+ "personalise": {
2526
+ "type": "pushwoosh.cj.journey.PersonalisedParams"
2527
+ },
2528
+ "vouchersParams": {
2529
+ "type": "pushwoosh.cj.journey.VoucherParams"
2530
+ },
2531
+ "sendByUserId": {
2532
+ "type": "boolean"
2533
+ },
2534
+ "capping": {
2535
+ "type": "pushwoosh.cj.journey.Capping"
2536
+ },
2537
+ "sendRate": {
2538
+ "type": "pushwoosh.cj.journey.SendRate"
2539
+ }
2540
+ },
2541
+ "oneofs": {}
2542
+ },
2455
2543
  "pushwoosh.cj.journey.WhatsAppPersonalisedParams": {
2456
2544
  "type": "I",
2457
2545
  "fields": {
@@ -4908,6 +4996,185 @@ export const data = {
4908
4996
  }
4909
4997
  }
4910
4998
  },
4999
+ "pushwoosh.cj.journey.GetEventsByApplicationCodeRequest": {
5000
+ "type": "I",
5001
+ "fields": {
5002
+ "code": {
5003
+ "type": "string"
5004
+ }
5005
+ }
5006
+ },
5007
+ "pushwoosh.cj.journey.GetEventsByApplicationCodeResponse": {
5008
+ "type": "I",
5009
+ "fields": {
5010
+ "payload": {
5011
+ "type": "pushwoosh.cj.journey.EventsByApplicationCodePayload"
5012
+ }
5013
+ }
5014
+ },
5015
+ "pushwoosh.cj.journey.EventsByApplicationCodePayload": {
5016
+ "type": "I",
5017
+ "fields": {
5018
+ "items": {
5019
+ "type": "pushwoosh.cj.journey.EventItem",
5020
+ "array": true
5021
+ }
5022
+ }
5023
+ },
5024
+ "pushwoosh.cj.journey.EventItem": {
5025
+ "type": "I",
5026
+ "fields": {
5027
+ "id": {
5028
+ "type": "number"
5029
+ },
5030
+ "name": {
5031
+ "type": "string"
5032
+ },
5033
+ "description": {
5034
+ "type": "string"
5035
+ },
5036
+ "attributes": {
5037
+ "type": "pushwoosh.cj.journey.EventAttributeItem",
5038
+ "array": true
5039
+ }
5040
+ }
5041
+ },
5042
+ "pushwoosh.cj.journey.EventAttributeItem": {
5043
+ "type": "I",
5044
+ "fields": {
5045
+ "id": {
5046
+ "type": "number"
5047
+ },
5048
+ "name": {
5049
+ "type": "string"
5050
+ },
5051
+ "type": {
5052
+ "type": "number"
5053
+ }
5054
+ }
5055
+ },
5056
+ "pushwoosh.cj.journey.GetEventAttributeValuesRequest": {
5057
+ "type": "I",
5058
+ "fields": {
5059
+ "code": {
5060
+ "type": "string"
5061
+ },
5062
+ "eventId": {
5063
+ "type": "number"
5064
+ },
5065
+ "attribute": {
5066
+ "type": "string"
5067
+ },
5068
+ "limit": {
5069
+ "type": "number"
5070
+ },
5071
+ "searchValue": {
5072
+ "type": "string"
5073
+ }
5074
+ }
5075
+ },
5076
+ "pushwoosh.cj.journey.GetEventAttributeValuesResponse": {
5077
+ "type": "I",
5078
+ "fields": {
5079
+ "payload": {
5080
+ "type": "pushwoosh.cj.journey.EventAttributeValuesPayload"
5081
+ }
5082
+ }
5083
+ },
5084
+ "pushwoosh.cj.journey.EventAttributeValuesPayload": {
5085
+ "type": "I",
5086
+ "fields": {
5087
+ "values": {
5088
+ "type": "string",
5089
+ "array": true
5090
+ }
5091
+ }
5092
+ },
5093
+ "pushwoosh.cj.journey.GetRichMediaByApplicationCodeRequest": {
5094
+ "type": "I",
5095
+ "fields": {
5096
+ "code": {
5097
+ "type": "string"
5098
+ },
5099
+ "noContent": {
5100
+ "type": "boolean"
5101
+ }
5102
+ }
5103
+ },
5104
+ "pushwoosh.cj.journey.GetRichMediaByApplicationCodeResponse": {
5105
+ "type": "I",
5106
+ "fields": {
5107
+ "payload": {
5108
+ "type": "pushwoosh.cj.journey.RichMediaByApplicationCodePayload"
5109
+ }
5110
+ }
5111
+ },
5112
+ "pushwoosh.cj.journey.RichMediaByApplicationCodePayload": {
5113
+ "type": "I",
5114
+ "fields": {
5115
+ "items": {
5116
+ "type": "pushwoosh.cj.journey.RichMediaItem",
5117
+ "array": true
5118
+ }
5119
+ }
5120
+ },
5121
+ "pushwoosh.cj.journey.RichMediaItem": {
5122
+ "type": "I",
5123
+ "fields": {
5124
+ "name": {
5125
+ "type": "string"
5126
+ },
5127
+ "uid": {
5128
+ "type": "number"
5129
+ },
5130
+ "params": {
5131
+ "type": "string"
5132
+ },
5133
+ "code": {
5134
+ "type": "string"
5135
+ },
5136
+ "applicationId": {
5137
+ "type": "number"
5138
+ },
5139
+ "applicationCode": {
5140
+ "type": "string"
5141
+ },
5142
+ "defaultLanguage": {
5143
+ "type": "string"
5144
+ },
5145
+ "businessCase": {
5146
+ "type": "string"
5147
+ },
5148
+ "fileHash": {
5149
+ "type": "string"
5150
+ },
5151
+ "isSystem": {
5152
+ "type": "boolean"
5153
+ },
5154
+ "zipContent": {
5155
+ "type": "string"
5156
+ }
5157
+ }
5158
+ },
5159
+ "pushwoosh.cj.journey.GetRichMediaByCodeRequest": {
5160
+ "type": "I",
5161
+ "fields": {
5162
+ "code": {
5163
+ "type": "string"
5164
+ },
5165
+ "rmcode": {
5166
+ "type": "string"
5167
+ }
5168
+ }
5169
+ },
5170
+ "pushwoosh.cj.journey.GetRichMediaByCodeResponse": {
5171
+ "type": "I",
5172
+ "fields": {
5173
+ "payload": {
5174
+ "type": "pushwoosh.cj.journey.RichMediaItem"
5175
+ }
5176
+ }
5177
+ },
4911
5178
  "pushwoosh.cj.journey_category.Category": {
4912
5179
  "type": "S",
4913
5180
  "key": "category",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-journey-data",
3
- "version": "0.26.388",
3
+ "version": "0.26.390",
4
4
  "description": "CJ api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -45,6 +45,10 @@ export interface Journey {
45
45
  ValidateJourneyV2(request: ValidateJourneyV2Request): Promise<ValidateJourneyResponse>;
46
46
  GetWhatsAppPresetsByAppCode(request: GetWhatsAppPresetsByAppCodeRequest): Promise<GetWhatsAppPresetsByAppCodeResponse>;
47
47
  GetEmailPresetsByAppCode(request: GetEmailPresetsByAppCodeRequest): Promise<GetEmailPresetsByAppCodeResponse>;
48
+ GetEventsByApplicationCode(request: GetEventsByApplicationCodeRequest): Promise<GetEventsByApplicationCodeResponse>;
49
+ GetEventAttributeValues(request: GetEventAttributeValuesRequest): Promise<GetEventAttributeValuesResponse>;
50
+ GetRichMediaByApplicationCode(request: GetRichMediaByApplicationCodeRequest): Promise<GetRichMediaByApplicationCodeResponse>;
51
+ GetRichMediaByCode(request: GetRichMediaByCodeRequest): Promise<GetRichMediaByCodeResponse>;
48
52
  TestWebhook(request: TestWebhookRequest): Promise<TestWebhookResponse>;
49
53
  }
50
54
  export type GetPlaceholdersRequest = {
@@ -196,7 +200,11 @@ export type PointStat_pointStat_sendKakao = {
196
200
  type: 'sendKakao';
197
201
  data: PointStatSendKakao;
198
202
  };
199
- 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;
203
+ export type PointStat_pointStat_sendTelegram = {
204
+ type: 'sendTelegram';
205
+ data: PointStatSendTelegram;
206
+ };
207
+ 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;
200
208
  export type PointStat = {
201
209
  pointStat: PointStat_pointStat;
202
210
  };
@@ -240,6 +248,13 @@ export type PointStatSendKakao = {
240
248
  recipients: number;
241
249
  voucherStats: VoucherPoolStats;
242
250
  };
251
+ export type PointStatSendTelegram = {
252
+ sent: number;
253
+ delivered: number;
254
+ errors: number;
255
+ recipients: number;
256
+ voucherStats: VoucherPoolStats;
257
+ };
243
258
  export type PointStatSendWhatsApp = {
244
259
  sent: number;
245
260
  totalOpened: number;
@@ -691,7 +706,7 @@ export type User = {
691
706
  email: string;
692
707
  username: string;
693
708
  };
694
- 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';
709
+ 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';
695
710
  export type Point = {
696
711
  uuid: string;
697
712
  title: string;
@@ -781,7 +796,11 @@ export type PointDataWrapper_data_sendKakao = {
781
796
  type: 'sendKakao';
782
797
  data: PointParamsSendKakao;
783
798
  };
784
- 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;
799
+ export type PointDataWrapper_data_sendTelegram = {
800
+ type: 'sendTelegram';
801
+ data: PointParamsSendTelegram;
802
+ };
803
+ 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;
785
804
  export type PointDataWrapper = {
786
805
  data: PointDataWrapper_data;
787
806
  };
@@ -907,6 +926,17 @@ export type PointParamsSendKakao = {
907
926
  capping: Capping;
908
927
  sendRate: SendRate;
909
928
  };
929
+ export type PointParamsSendTelegram = {
930
+ content: string;
931
+ applicationCode: string;
932
+ campaignCode?: string;
933
+ campaignUid?: number;
934
+ personalise: PersonalisedParams;
935
+ vouchersParams: VoucherParams;
936
+ sendByUserId: boolean;
937
+ capping: Capping;
938
+ sendRate: SendRate;
939
+ };
910
940
  export type WhatsAppPersonalisedParams = {
911
941
  enabled: boolean;
912
942
  placeholders: WhatsAppPlaceholder[];
@@ -1783,3 +1813,66 @@ export type TestWebhookResponse = {
1783
1813
  statusCode: number;
1784
1814
  body: string;
1785
1815
  };
1816
+ export type GetEventsByApplicationCodeRequest = {
1817
+ code?: string;
1818
+ };
1819
+ export type GetEventsByApplicationCodeResponse = {
1820
+ payload: EventsByApplicationCodePayload;
1821
+ };
1822
+ export type EventsByApplicationCodePayload = {
1823
+ items: EventItem[];
1824
+ };
1825
+ export type EventItem = {
1826
+ id: number;
1827
+ name: string;
1828
+ description: string;
1829
+ attributes: EventAttributeItem[];
1830
+ };
1831
+ export type EventAttributeItem = {
1832
+ id: number;
1833
+ name: string;
1834
+ type: number;
1835
+ };
1836
+ export type GetEventAttributeValuesRequest = {
1837
+ code?: string;
1838
+ eventId?: number;
1839
+ attribute?: string;
1840
+ limit?: number;
1841
+ searchValue?: string;
1842
+ };
1843
+ export type GetEventAttributeValuesResponse = {
1844
+ payload: EventAttributeValuesPayload;
1845
+ };
1846
+ export type EventAttributeValuesPayload = {
1847
+ values: string[];
1848
+ };
1849
+ export type GetRichMediaByApplicationCodeRequest = {
1850
+ code?: string;
1851
+ noContent?: boolean;
1852
+ };
1853
+ export type GetRichMediaByApplicationCodeResponse = {
1854
+ payload: RichMediaByApplicationCodePayload;
1855
+ };
1856
+ export type RichMediaByApplicationCodePayload = {
1857
+ items: RichMediaItem[];
1858
+ };
1859
+ export type RichMediaItem = {
1860
+ name: string;
1861
+ uid: number;
1862
+ params: string;
1863
+ code: string;
1864
+ applicationId: number;
1865
+ applicationCode: string;
1866
+ defaultLanguage: string;
1867
+ businessCase: string;
1868
+ fileHash: string;
1869
+ isSystem: boolean;
1870
+ zipContent: string;
1871
+ };
1872
+ export type GetRichMediaByCodeRequest = {
1873
+ code?: string;
1874
+ rmcode?: string;
1875
+ };
1876
+ export type GetRichMediaByCodeResponse = {
1877
+ payload: RichMediaItem;
1878
+ };